/* ============================================================
   YourBanK — Hero block (desktop + mobile)
   Значения контейнеров/типографики/цветов — строго из Figma.
   Метод адаптива — mobile-first по скиллу frontend-design.
   Брейкпоинт десктоп/мобилка — 1024px (rung "lg" из лестницы
   скилла, между Figma-фреймами 393 и 1920).
   ============================================================ */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/onest-400.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/onest-500.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/onest-600.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/onest-700.ttf") format("truetype"); }

:root {
  --bg:          #f9fcff;
  --card-border: #c9def6;
  --blue:        #3261ec;
  --blue-dark:   #0050aa;
  --ink:         #0f1a24;
  --muted:       #62738e;
  --muted-2:     #98a2b3;
  --badge:       #c9f6d5;
  --white:       #fff;

  /* "Кнопка тень" — многослойная тень из Figma */
  --btn-shadow:
    1px 3px 3px   rgba(0,0,0,.10),
    3px 10px 5.5px rgba(0,0,0,.09),
    6px 23px 7px  rgba(0,0,0,.05),
    11px 41px 8.5px rgba(0,0,0,.01),
    17px 64px 9.5px rgba(0,0,0,0);
  --pop-shadow: 0 12px 32px rgba(15,26,36,.14);

  --grad-blue: linear-gradient(180deg, var(--blue) 38.889%, var(--blue-dark) 100%);
}

* , *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* защита от случайного гориз. скролла (скилл) */
}

img { display: block; }

/* Контейнер: 361px @393 … 1596px @1920 — ровно как в Figma */
.wrap {
  width: min(100% - 32px, 1596px);
  margin-inline: auto;
}
.wrap--hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 24px 40px;
}

/* ===================== NAVBAR ===================== */
.site-header { display: contents; }
.site-header--auth-loading .navbar__actions,
.site-header--auth-loading .navbar__mobile > .avatar,
.site-header--auth-loading .mobile-menu__actions {
  visibility: hidden;
  pointer-events: none;
}

.navbar {
  position: relative;
  z-index: 50;                /* держим навбар + выпадашку над hero/контентом */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 14px 16px;
}

.navbar__logo { display: inline-flex; flex: none; }
.navbar__logo img { height: 30px; width: auto; }

/* десктоп-меню (центр) и actions (право) спрятаны на мобилке */
.navbar__menu,
.navbar__actions { display: none; }

/* мобильные контролы */
.navbar__mobile { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-blue);
  border: 2px solid rgba(255,255,255,.3);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--btn-shadow);
}
.avatar img { width: 20px; height: 20px; }

.burger {
  width: 44px; height: 44px;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--blue);
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----- меню-кнопки (десктоп) ----- */
.menu-item { position: relative; }
.menu-item__btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  background: transparent; border: 0; cursor: pointer;
  padding: 10px 17px; border-radius: 29px; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.menu-item__arrow { width: 20px; height: 20px; transition: transform .22s ease; }
.menu-item__btn--toggle[aria-expanded="true"] .menu-item__arrow { transform: rotate(180deg); }

/* ----- dropdown "Услуги" ----- */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 340px; max-width: calc(100vw - 40px); margin: 0; padding: 8px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--pop-shadow);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 40;
  max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain;
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: background-color .16s ease, color .16s ease;
}

/* ----- Регистрация + Войти + Выйти -----
   Тот же класс носят и <a> (Регистрация/Войти — маркетинг), и <button> «Выйти»
   (кабинет, Header.onLogout). Нейтрализация UA-стилей кнопки (font/border/padding/
   background) держит <button> байт-в-байт как <a>; для <a> все сбросы — no-op. */
.link-register {
  color: var(--blue); font-size: 16px; font-weight: 600; font-family: inherit;
  text-decoration: none; line-height: 1.5;
  border: none; border-bottom: 1px solid var(--blue); padding: 0 0 1px;
  background: none; cursor: pointer;
  transition: opacity .16s ease;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-blue);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 82px;
  padding: 14px 30px;
  color: var(--white); font-size: 16px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  box-shadow: var(--btn-shadow);
  transition: transform .18s ease, filter .18s ease;
}
.btn-primary img { width: 24px; height: 24px; }

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  margin-left: 16px;                 /* Figma mobile: крошки на x32 (16+16) */
}
.breadcrumbs__item {
  display: inline-flex; align-items: center;
  color: var(--muted-2); font-size: 14px; line-height: 1.5; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.breadcrumbs__item--current { color: var(--ink); white-space: normal; min-width: 0; }
.breadcrumbs__sep { width: 16px; height: 16px; }

/* ===================== CONTENT ===================== */
.content { display: flex; flex-direction: column; gap: 24px; }

/* ----- HERO ----- */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
  min-height: 558px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero__bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 42% 48%;   /* cover — без искажений на любой ширине */
}
.hero__text, .hero__cta { position: relative; z-index: 1; }
.hero__text { display: flex; flex-direction: column; gap: 20px; }
.hero__title { margin: 0; color: var(--white); font-size: 28px; font-weight: 600; line-height: 1.2; }
.hero__subtitle {
  margin: 0; color: var(--white);
  font-size: 16px; font-weight: 400; line-height: 1.2; letter-spacing: -.16px;
}
.hero__cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background: var(--white); color: var(--ink);
  font-size: 18px; font-weight: 600; text-decoration: none;
  border-radius: 82px; padding: 16px 24px;
  transition: transform .18s ease, filter .18s ease;
}

/* ----- PROMO CARDS ----- */
.promos { display: flex; flex-direction: column; gap: 24px; }
.promo {
  display: flex; align-items: center; gap: 20px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  min-height: 143px; overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.promo__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.promo__title { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -.54px; }
.promo__desc  { margin: 0; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.2; letter-spacing: -.42px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--badge); color: var(--ink);
  font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: -.1px;
  border-radius: 100px; padding: 4px 12px;
}

.promo__img { position: relative; flex: none; width: 151px; height: 112px; overflow: hidden; }
.promo__img img { position: absolute; max-width: none; }
.promo--1 .promo__img img { width: 95.37%;  height: 128.27%; left:  2.53%;  top: -14.29%; }
.promo--2 .promo__img img { width: 141.13%; height: 126.61%; left: -20.30%; top: -13.45%; }
.promo--3 .promo__img img { width: 131.95%; height: 118.37%; left: -16.02%; top:  -8.72%; }

/* ===================== MOBILE MENU ===================== */
.mobile-menu { position: fixed; inset: 0; z-index: 100; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__backdrop {
  position: absolute; inset: 0; background: rgba(15,26,36,.35);
  opacity: 0; transition: opacity .28s ease;
}
.mobile-menu.open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(84vw, 320px);
  background: var(--white);
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: -14px 0 40px rgba(15,26,36,.18);
  transform: translateX(100%); transition: transform .28s ease;
}
.mobile-menu.open .mobile-menu__panel { transform: none; }
.mobile-menu__close {
  align-self: flex-end; position: relative;
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
}
.mobile-menu__close span {
  position: absolute; top: 50%; left: 50%; width: 22px; height: 2.5px;
  background: var(--ink); border-radius: 2px;
}
.mobile-menu__close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.mobile-menu__close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__list a {
  display: block; padding: 12px 10px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500;
  transition: background-color .16s ease, color .16s ease;
}
.mobile-menu__actions { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.mobile-menu__actions .link-register { align-self: flex-start; }
.mobile-menu__actions .btn-primary { justify-content: center; }

/* лочим скролл body, пока открыто меню */
body.is-locked { overflow: hidden; }

/* Ховеры — только там, где есть настоящий указатель (скилл: на тач — :active/:focus-visible) */
@media (hover: hover) {
  .menu-item__btn:hover { background: rgba(50,97,236,.07); color: var(--blue); }
  .dropdown a:hover { background: rgba(50,97,236,.08); color: var(--blue); }
  .link-register:hover { opacity: .7; }
  .btn-primary:hover { transform: translateY(-1px); filter: saturate(1.05); }
  .hero__cta:hover { transform: translateY(-1px); filter: brightness(.98); }
  .promo:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(50,97,236,.10); transform: translateY(-2px); }
  .mobile-menu__list a:hover { background: rgba(50,97,236,.08); color: var(--blue); }
}

/* фокус для клавиатуры */
:where(a, button):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.menu-item__btn:active,
.btn-primary:active,
.hero__cta:active { transform: translateY(0); }

/* ============================================================
   ДЕСКТОП  ≥ 1024px  (rung "lg" — переход десктоп/мобилка)
   ============================================================ */
@media (min-width: 1024px) {
  .wrap--hero { gap: 24px; padding-block: 32px 100px; }

  /* navbar */
  .navbar { padding: 20px 34px; }
  .navbar__logo img { height: 40px; }
  .navbar__mobile { display: none; }
  .navbar__menu {
    display: flex; align-items: center; gap: 8.6px;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(6.5px);
  }
  .navbar__actions { display: flex; align-items: center; gap: 30px; }

  /* breadcrumbs */
  .breadcrumbs { margin-left: 16px; }
  .breadcrumbs__item { font-size: 16px; }
  .breadcrumbs__sep { width: 24px; height: 24px; }

  /* content: hero + promos в строку, пропорции Figma 1056:516 */
  .content { flex-direction: row; align-items: stretch; gap: 24px; }

  .hero {
    flex: 1056 1 0; min-width: 0;
    height: 518px; min-height: 0;
    padding: clamp(36px, 3.34vw, 64px);
  }
  .hero__bg img { object-position: 50% 40%; } /* кадрирование под десктоп */
  .hero__title { font-size: 48px; }
  /* геро инфо-страниц: ширина текста как в Figma (597px) → заголовок в 3 строки, не 2 */
  .hero--about .hero__text, .hero--kak .hero__text { max-width: 597px; }
  .hero__subtitle { font-size: 18px; letter-spacing: -.18px; max-width: 333px; }
  .hero__cta { width: 228px; padding: 14px 30px; }

  .promos { flex: 516 1 0; min-width: 0; height: 518px; justify-content: center; gap: 24px; }
  .promo {
    flex: 1 1 0; min-height: 0;
    border-radius: 24px;
    padding: clamp(24px, 2.6vw, 40px);
    gap: 20px;
  }
  .promo__text { flex: 1 1 auto; }
  .promo__title { font-size: 24px; letter-spacing: -.72px; }
  .promo__desc  { font-size: 18px; letter-spacing: -.54px; white-space: nowrap; }
  .badge { font-size: 12px; letter-spacing: -.12px; }
  .promo__img { flex: none; width: clamp(150px, 11.04vw, 212px); height: auto; aspect-ratio: 212 / 157; }

  .mobile-menu { display: none !important; }
}

/* ============================================================
   ОБЩЕЕ ДЛЯ СЕКЦИЙ
   ============================================================ */
.sec { position: relative; }

/* ===================== ACTION CARD (категории) ===================== */
.sec--action { background: var(--white); }
.sec--action > .wrap { padding-block: 40px; }

.ac-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 16px;
  padding-top: 18px;                     /* место под бэйджи сверху */
}
.ac-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ac-tile__card {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 157px;
  background: var(--white); border: 1px solid var(--card-border); border-radius: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ac-tile__icon { position: absolute; inset: 0; }
/* у SVG из Figma нет своих размеров → задаём И ширину, И высоту (в %), иначе height уходит в дефолтные 150px */
.ac-ic { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); object-fit: contain; max-width: none; }
.ac-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: #45bcf8; color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: -.12px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 100px; white-space: nowrap; line-height: 1.5;
}
.ac-tile__label { font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.4; }

/* tile-1 «кошелёк» — фрагменты из Figma (точные координаты внутри 157px) */
.ac-wallet { position: absolute; inset: 0; }
.ac-wallet .acw { position: absolute; display: flex; align-items: center; justify-content: center; }
.ac-wallet .acw > span { display: block; }
.ac-wallet .acw-box { position: relative; display: block; }
.ac-wallet .acw-box img { position: absolute; max-width: none; }
.ac-wallet .acw-abs { position: absolute; max-width: none; }
.ac-wallet .acw-rub { position: absolute; font-weight: 800; font-size: 27.986px; line-height: 1.1; letter-spacing: -.56px; color: #fff; }

@media (hover: hover) {
  .ac-tile__card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(50,97,236,.10); transform: translateY(-2px); }
}

@media (min-width: 1024px) {
  .sec--action > .wrap { padding-block: 56px; }
  .ac-row { display: flex; gap: 24px; padding: 0; }
  .ac-tile { flex: 1 1 0; min-width: 0; gap: 16px; }
  .ac-badge { top: -19px; font-size: 16px; padding: 6px 24px; letter-spacing: -.16px; }
  .ac-tile__label { font-size: 16px; line-height: 1.5; width: 162px; letter-spacing: -0.4px; }
}

/* ===================== ACTION FILTER (лучшие предложения) ===================== */
.sec-title { margin: 0; color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.2; }
.sec--help .sec-title { text-align: center; }

.sec--filter { background: var(--white); }
.sec--filter > .wrap { padding-block: 64px; }
.sec--filter .sec-title { text-align: center; }
.af-body { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }

.af-tabs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.af-tab {
  flex: 0 0 auto;
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.48px;
  color: var(--blue); background: transparent;
  border: 2px solid var(--card-border); border-radius: 100px;
  padding: 16px 22px; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.af-tab.is-active { background: var(--grad-blue); border-color: rgba(255,255,255,.2); color: #fff; box-shadow: var(--btn-shadow); }

.af-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.af-card { background: #f9fafb; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; cursor: pointer; transition: background-color .18s ease; }
.af-card__head { display: flex; gap: 10px; align-items: flex-start; }
.af-card__title { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.6px; }
.af-card__arrow { flex: none; width: 32px; height: 32px; transition: transform .18s ease; }
.af-card__text { margin: 0; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: -.48px; }

@media (hover: hover) {
  .af-tab:hover:not(.is-active) { border-color: var(--blue); }
  .af-card:hover { background: #eef4fc; }
  .af-card:hover .af-card__arrow { transform: translate(3px, -3px); }
  .faq-contacts__link:hover { text-decoration: underline; }
}

@media (min-width: 1024px) {
  .sec-title { font-size: 48px; }
  .sec--filter > .wrap { padding-block: 100px; }
  .sec--filter .sec-title { text-align: left; line-height: 1.2; }
  .sec--help .sec-title { text-align: left; }
  .af-body { flex-direction: row; gap: 30px; align-items: flex-start; margin-top: 56px; }
  .af-tabs {
    flex-direction: column; gap: 24px; flex: none; width: 276px;
    overflow: visible; padding: 32px;
    background: #f9fafb; border-radius: 24px;
    box-shadow: 0 5px 6px rgba(0,0,0,.05), 0 21px 12px rgba(0,0,0,.03);
  }
  .af-tab { width: 100%; justify-content: center; display: flex; font-size: 18px; letter-spacing: -.54px; padding: 16px 24px; }
  .af-cards { flex: 1 1 0; min-width: 0; grid-template-columns: 1fr 1fr; gap: 32px; }
  .af-card { padding: 48px 32px; gap: 32px; }
  .af-card__title { font-size: 24px; letter-spacing: -.72px; }
  .af-card__text { font-size: 18px; letter-spacing: -.54px; }
}

/* ===================== STEPS (как мы работаем) ===================== */
.sec--steps { background: var(--bg); }
.sec--steps > .wrap { padding-block: 64px; }
.steps-row { display: flex; flex-direction: column-reverse; gap: 32px; }

.steps-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--white); border-radius: 20px; padding: 24px;
  box-shadow: 0 5px 6px rgba(0,0,0,.05), 0 21px 14px rgba(0,0,0,.03);
}
.step {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: #f9fafb; border-radius: 24px; padding: 16px 24px;
}
.step__left { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.step__icon { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.step__icon img { width: 20px; height: 20px; }
.step__text { min-width: 0; }
.step__title { margin: 0 0 4px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.4; }
.step__sub { margin: 0; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.4; }
.step__num { position: absolute; top: 16px; right: 24px; color: var(--blue); font-size: 14px; font-weight: 600; }

.steps-info { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.steps-info__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }
.steps-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps-checklist li { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }
.check { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #60c20b; display: inline-flex; align-items: center; justify-content: center; }
.check img { width: 21px; height: 21px; }

.btn-dark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-family: inherit; font-size: 18px; font-weight: 600;
  text-decoration: none; border: none; border-radius: 82px; padding: 14px 30px;
  box-shadow: var(--btn-shadow); transition: transform .18s ease, filter .18s ease;
}
@media (hover: hover) {
  .btn-dark:hover { transform: translateY(-1px); filter: brightness(1.15); }
  .step:hover { background: #eef4fc; }
}

@media (min-width: 1024px) {
  .sec--steps > .wrap { padding-block: 100px; }
  .steps-row { flex-direction: row; align-items: center; justify-content: center; gap: clamp(48px, 9vw, 128px); }
  .steps-card { flex: 0 1 683px; min-width: 0; padding: 32px; gap: 16px; }
  .step { position: static; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; }
  .step__left { flex-direction: row; align-items: center; gap: 16px; }
  .step__icon { width: 52px; height: 52px; border-radius: 12px; }
  .step__icon img { width: 32px; height: 32px; }
  .step__title { font-size: 20px; }
  .step__sub { font-size: 16px; }
  .step__num { position: static; font-size: 18px; }
  .steps-info { flex: 0 1 543px; min-width: 0; gap: 24px; }
  .steps-info__desc { font-size: 18px; letter-spacing: -.54px; }
  .steps-checklist li { font-size: 18px; letter-spacing: -.54px; }
}

/* ===================== Кнопки секций (переиспользуемые) ===================== */
.btn-grad, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 18px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-radius: 82px; padding: 18px 24px;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, background-color .18s ease;
}
.btn-grad { background: var(--grad-blue); border: 2px solid rgba(255,255,255,.2); color: #fff; box-shadow: var(--btn-shadow); }
.btn-outline { background: transparent; border: 2px solid rgba(201,222,246,.5); color: var(--blue); }
@media (hover: hover) {
  .btn-grad:hover { transform: translateY(-1px); filter: saturate(1.05); }
  .btn-outline:hover { border-color: var(--blue); background: rgba(50,97,236,.04); }
}

/* ===================== INFO COMPANY (статистика + авто) ===================== */
.sec--info-company { background: var(--white); }
.sec--info-company > .wrap { padding-block: 56px; }
.icompany { display: flex; flex-direction: column; gap: 40px; }
.icompany__main { display: flex; flex-direction: column; gap: 32px; }
.icompany__head { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.icompany__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }

.ic-stats { display: flex; flex-direction: column; gap: 16px; align-items: stretch; width: 100%; }
.ic-stat {
  flex: none; width: 100%;
  background: var(--white); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: 3px 3px 9px rgba(0,0,0,.05), 13px 10px 18px rgba(0,0,0,.035);
}
.ic-stat__num { margin: 0; color: var(--blue); font-size: 36px; font-weight: 600; letter-spacing: -2px; line-height: 1.2; }
.ic-stat__label { margin: 0; color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: -.45px; line-height: 1.4; }
.ic-stat__div { flex: none; width: 100%; height: 1px; background: var(--card-border); }

.icompany__buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.icompany__media { border-radius: 24px; overflow: hidden; aspect-ratio: 361 / 320; }
.icompany__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 1024px) {
  .sec--info-company > .wrap { padding-block: 100px; }
  .icompany { flex-direction: row; align-items: center; gap: 72px; }
  .icompany__main { flex: 1 1 0; min-width: 0; gap: 80px; }
  .icompany__desc { font-size: 18px; letter-spacing: -.54px; max-width: 748px; }
  .ic-stats { flex-direction: row; overflow: visible; gap: 16px; max-width: 684px; }
  .ic-stat { flex: 1 1 0; min-width: 0; padding: 24px; }
  .ic-stat__div { width: 1px; height: auto; align-self: stretch; }
  .ic-stat__num { font-size: 48px; letter-spacing: -2.88px; }
  .ic-stat__label { font-size: 18px; }
  .icompany__buttons { gap: 24px; }
  .icompany__media { flex: 1 1 0; min-width: 0; height: 580px; aspect-ratio: auto; align-self: stretch; }
}

/* ===================== MAIN FRAME (калькулятор кредита) ===================== */
.sec--calc { background: var(--white); }
.sec--calc > .wrap { padding-block: 56px; }
.calc-shell { display: flex; flex-direction: column; gap: 24px; background: #f9fafb; border-radius: 32px; padding: 24px; overflow: hidden; }
.calc-head { display: flex; flex-direction: column; gap: 16px; }
.calc-tabs { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calc-tab {
  flex: 0 0 auto; font-family: inherit; font-size: 18px; font-weight: 500; color: var(--muted);
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 14px; cursor: pointer; white-space: nowrap; transition: color .18s ease, border-color .18s ease;
}
.calc-tab.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.calc { display: flex; flex-direction: column; gap: 28px; background: var(--white); border-radius: 20px; padding: 20px; box-shadow: 0 5px 6px rgba(0,0,0,.05), 0 21px 14px rgba(0,0,0,.03); }
.calc__title { margin: 0; color: var(--ink); font-size: 28px; font-weight: 600; line-height: 1.2; }

.calc__inputs { display: flex; flex-direction: column; gap: 16px; }
.calc-field { display: flex; flex-direction: column; gap: 14px; background: #f9fafb; border-radius: 24px; padding: 18px; }
.calc-field__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calc-field__label { color: var(--muted); font-size: 15px; font-weight: 400; }
.calc-field__value { color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -.72px; white-space: nowrap; }
.calc-field__minmax { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }

.calc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 24px; cursor: pointer; outline: none;
  background:
    linear-gradient(90deg, #3392ff, #5bfbc0) left center / var(--p, 10%) 8px no-repeat,
    linear-gradient(#c9def6, #c9def6) left center / 100% 8px no-repeat;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid #3392ff; box-shadow: 0 2px 6px rgba(50,97,236,.25); cursor: pointer;
}
.calc-range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #3392ff;
  box-shadow: 0 2px 6px rgba(50,97,236,.25); cursor: pointer;
}
.calc-range::-moz-range-track { background: transparent; }
.calc-range:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }

.calc-offer { display: flex; flex-direction: column; gap: 16px; }
.calc-offer__title { margin: 0; color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.2; }
.calc-offer__row { display: flex; flex-direction: column; gap: 16px; }
.calc-offer__nums { display: flex; flex-direction: column; gap: 12px; }
.calc-rate, .calc-pay { display: flex; flex-direction: column; gap: 2px; border-radius: 24px; padding: 16px 24px; }
.calc-rate { border: 2px solid var(--blue); align-items: center; justify-content: center; }
.calc-pay { background: var(--blue); }
.calc-rate__num { color: var(--blue); font-size: 40px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.1; }
.calc-rate__cap { color: var(--muted); font-size: 15px; }
.calc-pay__num { color: #fff; font-size: 40px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.1; white-space: nowrap; }
.calc-pay__cap { color: #fff; font-size: 15px; }
.calc-note { display: flex; align-items: center; background: #f9fafb; border-radius: 24px; padding: 18px; }
.calc-note p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }
.calc-note p span { color: var(--ink); }

.calc-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.calc-actions .btn-outline, .calc-actions .btn-grad { flex: 1 1 auto; }

@media (min-width: 1024px) {
  .sec--calc > .wrap { padding-block: 100px; }
  .calc-shell { gap: 32px; padding: 64px; }
  .calc-head { gap: 24px; }
  .calc-tab { font-size: 24px; letter-spacing: -.24px; padding: 10px 17px; }
  .calc { gap: 56px; padding: 40px; }
  .calc__title { font-size: 48px; }
  .calc__inputs { flex-direction: row; gap: 16px; margin-top: -24px; }
  .calc-field { flex: 1 1 0; min-width: 0; min-height: 137px; justify-content: space-between; padding: 22px; }
  .calc-field__label { font-size: 16px; }
  .calc-field__value { font-size: 32px; letter-spacing: -.96px; }
  .calc-field__minmax { font-size: 14px; }
  .calc-offer__title { font-size: 32px; }
  .calc-offer__row { flex-direction: row; align-items: stretch; gap: 16px; }
  .calc-offer__nums { flex-direction: row; flex: none; gap: 32px; align-items: stretch; }
  .calc-rate__num, .calc-pay__num { font-size: 56px; letter-spacing: -1.68px; }
  .calc-rate__cap, .calc-pay__cap { font-size: 16px; }
  .calc-note { flex: 1 1 0; min-width: 0; justify-content: center; padding: 22px 32px; }
  .calc-note p { font-size: 18px; letter-spacing: -.54px; }
  .calc-actions { justify-content: flex-end; }
  .calc-actions .btn-outline, .calc-actions .btn-grad { flex: 0 0 auto; }
}

/* ===================== REVIEWS (отзывы клиентов) ===================== */
.sec--reviews { background: var(--white); }
.sec--reviews > .wrap { padding-block: 48px; }
.rv-wrap { display: flex; flex-direction: column; gap: 24px; }
.rv-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.rv-track::-webkit-scrollbar { display: none; }

.rv-card { flex: 0 0 auto; width: min(82vw, 340px); scroll-snap-align: start; background: #f9fafb; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.rv-card__head { display: flex; gap: 16px; align-items: center; }
.rv-ava { flex: none; width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rv-ava img { width: 26px; height: 26px; }
.rv-ava--1 { background: linear-gradient(135deg, #5b8def, #3261ec); }
.rv-ava--2 { background: linear-gradient(135deg, #38b6ff, #0050aa); }
.rv-ava--3 { background: linear-gradient(135deg, #7c83fd, #3a40b0); }
.rv-ava--4 { background: linear-gradient(135deg, #4cc7c0, #2a7de1); }
.rv-ava-img { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; }
.rv-card__name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rv-card__person { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -.54px; line-height: 1.2; }
.rv-card__role { margin: 2px 0 4px; color: var(--muted); font-size: 13px; }
.rv-stars { color: #3392ff; font-size: 14px; letter-spacing: 2px; line-height: 1; }
.rv-card__text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }

.rv-dots { display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.rv-dot { width: 8px; height: 8px; border-radius: 100px; background: var(--card-border); transition: width .22s ease, background-color .22s ease; }
.rv-dot.is-active { width: 32px; background: var(--blue); }

@media (hover: hover) {
  .rv-card:hover { background: #eef4fc; }
}

@media (min-width: 1024px) {
  .sec--reviews > .wrap { padding-block: 56px; }
  .rv-wrap { gap: 32px; }
  .rv-track { gap: 40px; }
  .rv-card { width: 369px; padding: 32px; gap: 24px; }
  .rv-stars { font-size: 16px; }
}

/* ===================== CTA (присоединяйтесь) ===================== */
.accent { color: var(--blue); }
.sec--cta { background: var(--white); }
.sec--cta > .wrap { padding-block: 64px; }
.cta { display: flex; flex-direction: column; gap: 24px; }
.cta__title { margin: 0; color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.2; }
.cta-card { position: relative; background: #f9fafb; border-radius: 24px; padding: 40px 16px 0; display: flex; flex-direction: column-reverse; gap: 32px; overflow: hidden; }
.cta-photo { width: 100%; aspect-ratio: 329 / 399; border-radius: 16px; overflow: hidden; }
.cta-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }
.cta-text { display: flex; flex-direction: column; gap: 24px; }
.cta-text__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; text-align: center; }
.cta-offer { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.cta-offer__text { margin: 0; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.66px; }
.cta-offer__text .accent { font-weight: 600; }
.cta-arrows { display: flex; gap: 12px; flex: none; }
.cta-arrow { width: 48px; height: 48px; border-radius: 53px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--card-border); background: transparent; transition: transform .15s ease, background-color .15s ease; }
.cta-arrow img { width: 28px; height: 28px; }
.cta-arrow--next { background: var(--blue); border-color: rgba(255,255,255,.2); }
@media (hover: hover) { .cta-arrow:hover { transform: translateY(-1px); } }
.cta-buttons { display: flex; flex-direction: column-reverse; gap: 12px; }
.cta-buttons .btn-grad, .cta-buttons .btn-outline { flex: 1 1 auto; }

@media (min-width: 1024px) {
  .sec--cta > .wrap { padding-block: 120px 100px; }
  .cta { align-items: flex-end; gap: 40px; padding-top: 90px; }
  .cta__title { width: 828px; max-width: 100%; font-size: 40px; line-height: 1.2; }
  .cta-card { width: 100%; min-height: 386px; padding: 0; overflow: visible; display: block; }
  .cta-photo { position: absolute; left: 2%; bottom: 0; width: 36.7%; aspect-ratio: 527 / 639; border-radius: 0 0 0 24px; }
  .cta-photo img { object-position: center bottom; }
  .cta-text { position: absolute; left: 42.3%; right: 3.5%; top: 50%; transform: translateY(-50%); gap: 40px; }
  .cta-text__desc { font-size: 24px; line-height: 1.4; letter-spacing: -.24px; text-align: left; }
  .cta-offer { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .cta-offer__text { font-size: 32px; letter-spacing: -.96px; }
  .cta-buttons { flex-direction: row; flex-wrap: wrap; }
  .cta-buttons .btn-grad, .cta-buttons .btn-outline { flex: 0 0 auto; }
}

/* ===================== INFO (новости + карточки) ===================== */
.sec--info { background: var(--white); }
.sec--info > .wrap { padding-block: 56px; }
.info-head { display: flex; flex-direction: column; gap: 14px; }
.info-head__desc { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.4; letter-spacing: -.18px; }
.info-body { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.info-filter { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.news-card { background: #f9fafb; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.news-card__img { width: 100%; aspect-ratio: 16 / 10; border-radius: 24px 24px 12px 12px; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__title { margin: 0; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.6px; }
.news-card__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-blue { background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: -.13px; padding: 6px 18px; border-radius: 100px; white-space: nowrap; }
.news-card__text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }

@media (hover: hover) { .news-card:hover { background: #eef4fc; } }

@media (min-width: 1024px) {
  .sec--info > .wrap { padding-block: 100px; }
  .info-head__desc { font-size: 24px; letter-spacing: -.24px; max-width: 1243px; }
  .info-body { flex-direction: row; gap: 30px; margin-top: 80px; align-items: flex-start; }
  .info-filter {
    flex-direction: column; gap: 24px; flex: none; width: 276px;
    overflow: visible; padding: 32px; background: #f9fafb; border-radius: 24px;
    box-shadow: 0 5px 6px rgba(0,0,0,.05), 0 21px 12px rgba(0,0,0,.03);
  }
  .info-filter .af-tab { width: 100%; justify-content: center; display: flex; }
  .info-grid { flex: 1 1 0; min-width: 0; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .news-card { padding: 32px 32px 48px; gap: 32px; }
  .news-card__img { aspect-ratio: auto; height: 333px; border-radius: 30px 30px 12px 12px; }
  .news-card__title { font-size: 24px; letter-spacing: -.72px; }
  .tag-blue { font-size: 16px; padding: 6px 24px; }
  .news-card__text { font-size: 18px; letter-spacing: -.54px; }
}

/* ===================== FOOTER ===================== */
.sec--footer { background: var(--bg); }
.sec--footer > .wrap { display: flex; flex-direction: column; gap: 32px; padding-block: 64px 64px; }

/* синий CTA-блок */
.ft-cta { position: relative; overflow: hidden; border-radius: 24px; background: linear-gradient(129deg, #3392ff 68%, #1f5899 109%); display: flex; flex-direction: column; }
.ft-cta__panel { position: relative; overflow: hidden; background: #fff; border-radius: 24px; margin: 0; padding: 40px 24px; display: flex; align-items: center; }
.ft-cta__panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/icons/ft-stars-fill.svg") left top / 360px auto repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(95deg, #000 30%, transparent 88%);
  mask-image: linear-gradient(95deg, #000 30%, transparent 88%);
}
.ft-cta__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.ft-cta__title { margin: 0; color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.2; }
.ft-cta__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.ft-cta__btns { display: flex; flex-direction: column; gap: 16px; padding: 40px 24px; }
.ft-btn { display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #fff; border-radius: 82px; padding: 16px 24px; color: var(--ink); font-family: inherit; font-size: 18px; font-weight: 600; text-decoration: none; box-shadow: var(--btn-shadow); transition: transform .15s ease; }
@media (hover: hover) { .ft-btn:hover { transform: translateY(-1px); } }

/* основной футер */
/* Контейнер ссылок футера в Figma уже основного (1320 vs 1596) и отцентрован */
.ft-main { display: flex; flex-direction: column; gap: 32px; width: 100%; max-width: 1320px; margin-inline: auto; }
.ft-section { display: flex; flex-direction: column; gap: 28px; border-bottom: 1.5px solid rgba(15,26,36,.08); padding-bottom: 32px; }
.ft-info { display: flex; flex-direction: column; gap: 40px; }
.ft-brand { display: flex; flex-direction: column; gap: 24px; }
.ft-logo { height: 40px; width: auto; align-self: flex-start; flex: none; }
.ft-brand__text { display: flex; flex-direction: column; gap: 12px; max-width: 402px; }
.ft-brand__title { margin: 0; color: var(--ink); font-size: 18px; font-weight: 600; }
.ft-brand__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.16px; }

.ft-subscribe { position: relative; display: flex; flex-direction: column; gap: 16px; }
.ft-email { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 100px; padding: 8px; box-shadow: var(--btn-shadow); max-width: 520px; margin-bottom: 22px; }
.ft-email__icon { flex: none; width: 44px; height: 44px; border-radius: 100px; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.ft-email__icon img { width: 24px; height: 24px; }
.ft-email__input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 16px; color: var(--ink); padding: 0 4px; }
.ft-email__input::placeholder { color: var(--ink); opacity: .9; }
.ft-email__btn { flex: none; background: var(--ink); color: #fff; border: 0; border-radius: 100px; padding: 14px 24px; font-family: inherit; font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: filter .15s ease; }
.ft-email__btn:hover { filter: brightness(1.2); }
/* мобилка: кнопка подписки = тёмный круг со стрелкой (как в Figma), чтобы не ужимать плейсхолдер инпута */
@media (max-width: 1023px) {
  .ft-email__btn { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 0; display: inline-flex; align-items: center; justify-content: center; }
  .ft-email__btn::after { content: "\2192"; font-size: 22px; line-height: 1; color: #fff; }
}
.ft-privacy { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; letter-spacing: -.14px; }
.ft-privacy a { color: var(--ink); text-decoration: underline; }

.ft-linkcol { display: flex; flex-direction: column; gap: 32px; }
.ft-services { display: flex; flex-direction: column; gap: 32px; }
.ft-links__head { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.16px; padding-bottom: 8px; border-bottom: 1.5px solid rgba(15,26,36,.08); }
.ft-links__lists { display: flex; gap: 24px; }
.ft-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ft-list a { color: #595959; font-size: 16px; text-decoration: none; line-height: 1.4; transition: color .15s ease; }
.ft-list a:hover { color: var(--blue); }
.ft-legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.ft-legal-links a { color: var(--ink); font-size: 14px; text-decoration: underline; letter-spacing: -.28px; }
.ft-legal-links a.accent { color: var(--blue); }
.ft-legal { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; letter-spacing: -.14px; }
.ft-copy { margin: 0; color: var(--ink); font-size: 14px; text-align: center; font-weight: 700; }

@media (min-width: 768px) {
  .ft-links__head { width: 100%; }
}

@media (min-width: 1024px) {
  .sec--footer > .wrap { gap: 80px; padding-block: 120px 64px; }
  .ft-cta { flex-direction: row; align-items: stretch; min-height: 304px; }
  .ft-cta__panel { flex: 1 1 auto; min-width: 0; margin: 0; border-radius: 24px 48px 48px 24px; padding: 48px 56px 48px 80px; }
  .ft-cta__title { font-size: 48px; line-height: 1.2; }
  .ft-cta__desc { font-size: 24px; letter-spacing: -.24px; max-width: 1058px; }
  .ft-cta__btns { flex: none; width: 368px; justify-content: center; padding: 0 75px 0 65px; }
  .ft-section { gap: 32px; }
  .ft-info { flex-direction: row; justify-content: space-between; gap: 60px; }
  .ft-brand { flex: none; width: 402px; gap: 32px; }
  .ft-linkcol { flex: none; width: 735px; gap: 48px; }
  .ft-services { flex-direction: row; gap: 64px; align-items: flex-start; }
  .ft-links__lists { gap: 32px; }
  .ft-services__col .ft-list { width: 210px; }
  .ft-list { gap: 20px; }
}

/* ════════════════════════════════════════════════════════════
   СТРАНИЦЫ УСЛУГ — дополнительные блоки
   ════════════════════════════════════════════════════════════ */

/* ===== Преимущества (6 фич-карточек) ===== */
.sec--adv { background: var(--bg); }
.sec--adv > .wrap { padding-block: 56px; }
.adv { display: flex; flex-direction: column; gap: 32px; }
.adv-head { display: flex; flex-direction: column; gap: 24px; }
.adv-head__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }
.adv-gridwrap { position: relative; }
.adv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: #fff; border-radius: 26px; padding: 10px;
  box-shadow: 0 5px 12px rgba(0,0,0,.05), 0 21px 21px rgba(0,0,0,.03);
}
.adv-card { background: var(--bg); border-radius: 14px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 20px; transition: background-color .18s ease; }
.adv-card__icon { flex: none; width: 48px; height: 48px; border-radius: 8px; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.adv-card__icon img { width: 24px; height: 24px; }
.adv-card__label { color: #14191f; font-size: 13px; font-weight: 500; text-align: center; line-height: 1.4; letter-spacing: -.3px; }
.adv-logo { display: none; }
@media (hover: hover) { .adv-card:hover { background: #eef4fc; } }
@media (min-width: 1024px) {
  .sec--adv > .wrap { padding-block: 100px; }
  .adv { flex-direction: row; align-items: center; justify-content: center; gap: clamp(48px, 7vw, 105px); }
  .adv-head { flex: 0 1 536px; }
  .adv-head__desc { font-size: 18px; letter-spacing: -.54px; }
  .adv-gridwrap { flex: 0 1 779px; min-width: 0; }
  .adv-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px; }
  .adv-card { padding: 43px 27px; gap: 32px; border-radius: 21px; }
  .adv-card__icon { width: 64px; height: 64px; border-radius: 12px; }
  .adv-card__icon img { width: 36px; height: 36px; }
  .adv-card__label { font-size: 18px; letter-spacing: -.54px; }
  .adv-logo {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 306px; padding: 12px 48px; border-radius: 100px;
    background: rgba(255,255,255,.65); backdrop-filter: blur(19.5px); -webkit-backdrop-filter: blur(19.5px);
    border: 2px solid #fff; box-shadow: 0 0 43px rgba(0,0,0,.06); z-index: 2;
  }
  .adv-logo img { height: 40px; width: auto; }
}

/* ===== «Помогаем получить кредит» + телефон ===== */
.sec--help { background: #fff; }
.sec--help > .wrap { padding-block: 56px; }
.help-row { display: flex; flex-direction: column; gap: 40px; }
.help-text { display: flex; flex-direction: column; gap: 24px; }
.help-list { display: flex; flex-direction: column; gap: 16px; }
.help-item { display: flex; gap: 24px; align-items: center; }
.help-item__icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.help-item__icon img { width: 28px; height: 28px; }
.help-item__text { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.help-item__title { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -.54px; }
.help-item__desc { margin: 0; color: #595959; font-size: 14px; line-height: 1.5; letter-spacing: -.42px; }

/* телефон-мокап */
.help-phone { position: relative; width: fit-content; margin: 24px auto; }
.help-phone::before { content: ""; position: absolute; left: -11%; right: -11%; top: 23%; bottom: 23%; background: var(--blue); border-radius: 32px; }
.help-phone__frame { position: relative; z-index: 1; width: 248px; background: #000100; border: 4px solid #c7c4bf; border-radius: 44px; padding: 5px; box-shadow: 0 22px 46px rgba(0,0,0,.28); }
.help-phone__screen { position: relative; width: 100%; background: #fff; border-radius: 38px; padding: 44px 18px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; }
.help-phone__island { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 64px; height: 19px; z-index: 2; }
.help-phone__logo { width: 116px; height: 30px; }
.help-phone__label { margin: 0; color: #62738e; font-size: 11px; letter-spacing: -.3px; text-align: center; }
.help-phone__balance { width: 84%; border: 3px solid var(--blue); border-radius: 16px; padding: 46px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.help-phone__sum { margin: 0; color: var(--blue); font-size: 27px; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.help-phone__note { margin: 0; color: #62738e; font-size: 10px; text-align: center; line-height: 1.5; }
@media (min-width: 1024px) {
  .sec--help > .wrap { padding-block: 100px; }
  .help-row { flex-direction: row-reverse; align-items: center; justify-content: center; gap: clamp(48px, 11vw, 159px); }
  .help-text { flex: 0 1 505px; min-width: 0; gap: 40px; }
  .help-list { gap: 32px; }
  .help-item__text { gap: 16px; }
  .help-item__title { font-size: 24px; letter-spacing: -.72px; }
  .help-item__desc { font-size: 18px; letter-spacing: -.54px; }
  .help-phone { flex: 0 0 auto; width: fit-content; margin: 0; }
  .help-phone__frame { width: 460px; border-width: 7px; border-radius: 72px; padding: 9px; }
  .help-phone__screen { border-radius: 60px; padding: 78px 32px 36px; gap: 26px; }
  .help-phone__island { top: 22px; width: 112px; height: 33px; }
  .help-phone__logo { width: 188px; height: 49px; }
  .help-phone__label { font-size: 18px; letter-spacing: -.54px; }
  .help-phone__balance { width: 80%; border-width: 4px; border-radius: 24px; padding: 88px 22px; gap: 10px; }
  .help-phone__sum { font-size: 46px; letter-spacing: -1.5px; }
  .help-phone__note { font-size: 16px; }
  .help-phone::before { left: -11%; right: -11%; top: 24%; bottom: 24%; height: auto; border-radius: 40px; }
}

/* ===== FAQ-аккордеон ===== */
.sec--faq { background: var(--bg); }
.sec--faq > .wrap { display: flex; flex-direction: column; gap: 32px; padding-block: 56px; }
.faq-head { display: flex; flex-direction: column; gap: 16px; }
.faq-contacts { display: flex; flex-direction: column; gap: 6px; }
.faq-contacts__label { margin: 0; color: var(--muted); font-size: 16px; }
.faq-contacts__link { color: var(--blue); font-size: 24px; font-weight: 600; text-decoration: none; letter-spacing: -.5px; width: fit-content; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid rgba(15,26,36,.08); }
.faq-item:last-child { border-bottom: 1px solid rgba(15,26,36,.08); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; padding: 24px 0; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.3; }
.faq-icon { position: relative; flex: none; width: 24px; height: 24px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink); border-radius: 2px; }
.faq-icon::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 16px; transform: translate(-50%, -50%); transition: opacity .2s ease, transform .2s ease; }
.faq-item.is-open .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; max-width: 760px; }
@media (min-width: 1024px) {
  .sec--faq > .wrap { flex-direction: row; align-items: flex-start; gap: 60px; padding-block: 100px; }
  .faq-head { flex: 0 0 380px; }
  .faq-list { flex: 1 1 0; min-width: 0; }
  .faq-contacts__link { font-size: 32px; }
  .faq-q { font-size: 22px; padding: 28px 0; }
}

/* чек-лист документов в 2 колонки */
@media (min-width: 480px) {
  .steps-checklist--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* hero на странице услуги — своя картинка/кадрирование + кнопка авто-ширины */
.hero--svc .hero__bg img { inset: -12.77% auto auto -281.15%; width: 424.89%; height: 179.75%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--svc .hero__bg img { inset: 0; width: 100%; height: 100%; object-position: 50% 100%; }
  .hero--svc .hero__cta { width: auto; align-self: flex-start; white-space: nowrap; padding: 16px 36px; }
}

/* hero «Кредитная карта»: фон-кроп под карту + маркированный подзаголовок */
.hero--card .hero__bg img { inset: 3.87% auto auto -162.68%; width: 356.67%; height: 150.89%; max-width: none; object-fit: cover; object-position: center; }
.hero__list {
  margin: 0; padding-left: 22px;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--white); font-size: 16px; line-height: 1.2; letter-spacing: -.16px;
}
.hero__list li { padding-left: 4px; }
@media (min-width: 1024px) {
  .hero__list { font-size: 18px; letter-spacing: -.18px; max-width: 491px; gap: 10px; }
}

/* hero «Рефинансирование»: свой кроп фона (по Figma) + широкий подзаголовок */
.hero--refin .hero__bg img { inset: 0.08% auto auto -48.79%; width: 309.47%; height: 130.92%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--refin .hero__bg img { inset: -16% auto auto 0; width: 121.95%; height: auto; }
  .hero--refin .hero__subtitle { max-width: 600px; }
}

/* hero «Финансовое оздоровление»: свой кроп фона */
.hero--fin .hero__bg img { inset: -3.17% auto auto -226.42%; width: 357.42%; height: 151.2%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--fin .hero__bg img { inset: -5.22% auto auto 0; width: 114.14%; height: auto; }
  .hero--fin .hero__subtitle { max-width: 586px; }
}

/* hero «Кредит для ЮЛ»: свой кроп фона */
.hero--yul .hero__bg img { inset: 0.05% auto auto -166.44%; width: 267.19%; height: 113.04%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--yul .hero__bg img { inset: -25.21% auto auto 0; width: 107.76%; height: auto; }
  .hero--yul .hero__subtitle { max-width: 586px; }
}

/* hero «Услуга СЗ»: свой кроп фона */
.hero--sz .hero__bg img { inset: -11.58% auto auto -193.67%; width: 527.19%; height: 223.03%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--sz .hero__bg img { inset: -25.21% auto auto 0; width: 125.01%; height: auto; }
  .hero--sz .hero__subtitle { max-width: 586px; }
}

/* hero «Лизинг»: свой кроп фона (та же картинка, что у ЮЛ) */
.hero--lizing .hero__bg img { inset: -3.17% auto auto -185%; width: 284.98%; height: 120.56%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--lizing .hero__bg img { inset: -25.21% auto auto 0; width: 125.01%; height: auto; }
  .hero--lizing .hero__subtitle { max-width: 586px; }
}

/* hero «Автокредит»: свой кроп фона */
.hero--auto .hero__bg img { inset: 0.07% auto auto -165.66%; width: 365.41%; height: 154.59%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--auto .hero__bg img { inset: -19.74% auto auto 0; width: 116.96%; height: auto; }
  .hero--auto .hero__subtitle { max-width: 586px; }
}

/* hero «Тревэл карта»: свой кроп фона */
.hero--trevel .hero__bg img { inset: -10.7% auto auto -282.78%; width: 451.03%; height: 190.81%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--trevel .hero__bg img { inset: 0 auto auto 0; width: 147.45%; height: auto; }
  .hero--trevel .hero__subtitle { max-width: 586px; }
}

/* hero «Проверка КИ»: свой кроп фона */
.hero--ki .hero__bg img { inset: -3.17% auto auto -193.67%; width: 304.2%; height: 128.69%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--ki .hero__bg img { inset: -25.21% auto auto 0; width: 125.01%; height: auto; }
  .hero--ki .hero__subtitle { max-width: 586px; }
}
.steps-info__legal { margin: 0; color: var(--blue); font-size: 14px; line-height: 1.5; letter-spacing: -.42px; text-decoration: underline; max-width: 617px; }

/* hero «Кредит под залог»: свой кроп фона (та же картинка, что у СЗ) */
.hero--zalog .hero__bg img { inset: -14.1% auto auto -166.47%; width: 487.45%; height: 206.21%; max-width: none; object-fit: cover; object-position: center; }
@media (min-width: 1024px) {
  .hero--zalog .hero__bg img { inset: -25.21% auto auto 0; width: 125.01%; height: auto; }
  .hero--zalog .hero__subtitle { max-width: 586px; }
}

/* калькулятор «Кредит под залог» */
.rfc-form--zalog { gap: 24px; }
.zlg-fields { display: flex; flex-direction: column; gap: 16px; }
.rfc-label--q { display: inline-flex; align-items: center; gap: 10px; }
.rfc-cal { width: 20px; height: 20px; flex: none; }
.zlg-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.zlg-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 6px 20px; border-radius: 100px;
  border: 1px solid var(--blue); background: transparent; color: var(--blue);
  font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: -.14px;
  white-space: nowrap; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.zlg-chip.is-active { background: var(--blue); color: #fff; font-weight: 600; }
.zlg-add {
  display: inline-flex; align-items: center; align-self: flex-start;
  background: #fff; border: 0; border-radius: 12px; padding: 14px 18px;
  font-family: inherit; color: var(--blue); font-size: 16px; cursor: pointer; white-space: nowrap;
}
@media (min-width: 1024px) {
  .rfc-form--zalog { gap: 56px; }
  .zlg-chips { gap: 16px; }
  .zlg-chip { height: 55px; padding: 6px 24px; font-size: 16px; letter-spacing: -.16px; }
  .zlg-add { width: 654px; max-width: 100%; padding: 16px 24px; font-size: 24px; }
}

/* ───── Калькулятор кэшбэка и льготного периода (Кредитная карта) ───── */
.calc--cc { gap: 32px; }
.cc-grid { display: flex; flex-direction: column; gap: 24px; }
.cc-left { display: flex; flex-direction: column; gap: 32px; background: #f9fafb; border-radius: 24px; padding: 20px; }
.cc-right { display: flex; flex-direction: column; gap: 24px; }
.cc-label { margin: 0; color: #62738e; font-size: 16px; line-height: 1.5; }

.cc-cats { display: flex; flex-direction: column; gap: 16px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.cc-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 6px 20px; border-radius: 100px;
  border: 1px solid var(--blue); background: transparent; color: var(--blue);
  font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: -.14px;
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cc-chip.is-active { background: var(--blue); color: #fff; font-weight: 600; }

.cc-analysis { display: flex; flex-direction: column; gap: 16px; }
.cc-analysis__box { display: flex; flex-direction: column; gap: 20px; background: #fff; border-radius: 24px; padding: 20px; }
.cc-expense { position: relative; display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.cc-expense__label { color: var(--ink); font-size: 16px; }
.cc-expense__input { width: 100%; background: #f9fafb; border: 0; border-radius: 12px; padding: 12px 20px; font-family: inherit; font-size: 18px; color: var(--ink); letter-spacing: -.6px; }
.cc-expense__input::placeholder { color: rgba(15,26,36,.2); }
.cc-expense__input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cc-expense__input.is-invalid { box-shadow: inset 0 0 0 1.5px #e5484d; background: #fff; }
.cc-error { position: absolute; left: 0; right: 0; bottom: 0; display: none; margin: 0; color: #e5484d; font-size: 13px; line-height: 1.35; pointer-events: none; z-index: 2; }
.cc-results { display: flex; flex-direction: column; gap: 16px; }
.cc-result { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 20px; padding: 18px 12px; text-align: center; }
.cc-result--month { border: 2px solid var(--blue); }
.cc-result--year { background: var(--blue); }
.cc-result__num { font-size: clamp(22px, 6.5vw, 30px); font-weight: 600; letter-spacing: -1px; line-height: 1.15; white-space: nowrap; }
.cc-result--month .cc-result__num { color: var(--blue); }
.cc-result--year .cc-result__num { color: #fff; }
.cc-result__cap { font-size: 13px; }
.cc-result--month .cc-result__cap { color: #62738e; }
.cc-result--year .cc-result__cap { color: #fff; }

.cc-grace { display: flex; flex-direction: column; gap: 20px; }
.cc-grace__title { margin: 0; color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.2; }
.cc-grace__box { display: flex; flex-direction: column; gap: 24px; background: #f9fafb; border-radius: 24px; padding: 18px; }
.cc-steps { display: flex; justify-content: space-between; gap: 8px; color: #62738e; font-size: 13px; line-height: 1.4; }
.cc-step--center { text-align: center; }
.cc-step--right { text-align: right; }
.cc-progress { display: flex; flex-direction: column; gap: 12px; }
.cc-progress__track { position: relative; height: 24px; }
.cc-progress__track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 8px; border-radius: 45px; background: rgba(201,222,246,.4); }
.cc-progress__fill { position: absolute; left: 0; top: 8px; height: 8px; width: 31%; border-radius: 45px; background: linear-gradient(90deg, #3392ff, #5bfbc0); }
.cc-progress__dot { position: absolute; top: 0; width: 24px; height: 24px; }
.cc-progress__dot--1 { left: 0; }
.cc-progress__dot--2 { left: calc(50% - 12px); }
.cc-progress__dot--3 { left: calc(100% - 24px); }
.cc-progress__days { margin: 0; color: var(--blue); font-size: 18px; font-weight: 600; text-align: center; }

.cc-disclaimer { display: flex; align-items: center; justify-content: center; background: #f9fafb; border-radius: 24px; padding: 18px; }
.cc-disclaimer p { margin: 0; color: #62738e; font-size: 15px; line-height: 1.5; letter-spacing: -.45px; }
.cc-disclaimer p span { color: var(--ink); }

@media (min-width: 1024px) {
  .calc--cc { gap: 40px; }
  .cc-grid { flex-direction: row; gap: 16px; align-items: stretch; }
  .cc-left { flex: 1 1 0; min-width: 0; gap: 56px; padding: 24px; }
  .cc-right { flex: 1 1 0; min-width: 0; justify-content: space-between; gap: 24px; }
  .cc-chips { gap: 16px; }
  .cc-chip { height: 55px; padding: 6px 24px; font-size: 16px; letter-spacing: -.16px; }
  .cc-analysis__box { gap: 32px; padding: 24px; }
  .cc-expense { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .cc-expense__input { width: 311px; flex: none; padding: 12px 24px; font-size: 20px; }
  .cc-results { flex-direction: row; gap: 32px; }
  .cc-result { padding: 12px 24px; border-radius: 24px; }
  .cc-result--month { flex: 1 1 0; }
  .cc-result--year { flex: 0 0 auto; }
  .cc-result__num { font-size: clamp(30px, 3.3vw, 56px); letter-spacing: -1.5px; }
  .cc-result__cap { font-size: 16px; }
  .cc-grace { gap: 32px; }
  .cc-grace__title { font-size: 32px; }
  .cc-steps { font-size: 16px; }
  .cc-disclaimer { padding: 22px; }
  .cc-disclaimer p { font-size: 18px; letter-spacing: -.54px; }
}

/* ───── Калькулятор рефинансирования (форма) ───── */
.calc-shell--refin { gap: 24px; }
.rfc-aside { position: relative; display: flex; flex-direction: column; gap: 24px; }
.rfc-deco { display: none; }
.calc--rfc { gap: 32px; }
.rfc-form { display: flex; flex-direction: column; gap: 16px; background: #f9fafb; border-radius: 24px; padding: 20px; }
.rfc-field { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-bottom: 18px; }
.rfc-label { color: #62738e; font-size: 16px; line-height: 1.5; }
.rfc-row { display: flex; flex-direction: column; gap: 16px; }
.rfc-input, .rfc-select {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-radius: 12px; padding: 14px 18px; min-height: 56px; box-sizing: border-box;
  color: var(--ink); font-size: 16px; line-height: 1.3;
}
.rfc-input > span, .rfc-select > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rfc-select { cursor: pointer; }
.rfc-arrow { width: 20px; height: 20px; flex: none; }
.rfc-results { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.rfc-result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rfc-result-label { color: #62738e; font-size: 16px; }
.rfc-savings { color: #4bb13b; font-weight: 700; font-size: 18px; letter-spacing: -.54px; text-decoration: underline; white-space: nowrap; }
.rfc-payment { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -.6px; white-space: nowrap; }
.rfc-q { width: 22px; height: 22px; flex: none; }

/* интерактивные поля калькулятора: инпуты / селекты / маски / ошибки */
.rfc-inp { flex: 1 1 auto; width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: inherit; line-height: inherit; color: var(--ink); padding: 0; }
.rfc-inp::placeholder { color: #9aa6b8; }
select.rfc-inp { cursor: pointer; appearance: none; -webkit-appearance: none; }
.rfc-input--date { position: relative; }
.rfc-datepick { position: absolute; right: 16px; bottom: 6px; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.rfc-cal { cursor: pointer; }
.rfc-input--readonly { background: #eef1f6; }
.rfc-error { position: absolute; left: 0; right: 0; bottom: 0; display: none; margin: 0; color: #e5484d; font-size: 13px; line-height: 1.35; pointer-events: none; z-index: 2; }
.rfc-field.is-invalid .rfc-error { display: block; }
.rfc-field.is-invalid .rfc-input,
.rfc-field.is-invalid .rfc-select { box-shadow: inset 0 0 0 1.5px #e5484d; }

/* подписка в подвале: валидация email */
.ft-email.is-invalid { box-shadow: 0 0 0 1.5px #e5484d, var(--btn-shadow); }
.ft-email.is-valid { box-shadow: 0 0 0 1.5px #2f9e44, var(--btn-shadow); }
.ft-email__msg { position: absolute; left: 4px; right: 4px; top: 68px; margin: 0; font-size: 13px; line-height: 1.4; max-width: 520px; pointer-events: none; z-index: 2; }
.ft-email__msg.is-err { color: #e5484d; }
.ft-email__msg.is-ok { color: #2f9e44; }

/* CTA-слайдер: плавная смена слайда */
.cta-offer__text, .cta-text__desc { transition: opacity .25s ease; }

/* Страница 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 48px 20px; box-sizing: border-box; }
.nf__logo { margin-bottom: 20px; }
.nf__logo img { display: block; height: 40px; width: auto; }
.nf__code { margin: 0; font-weight: 700; font-size: clamp(96px, 20vw, 180px); line-height: .9; letter-spacing: -6px; color: var(--blue); }
.nf__title { margin: 0; font-weight: 600; font-size: clamp(24px, 5vw, 38px); letter-spacing: -1px; color: var(--ink); }
.nf__text { margin: 0 0 8px; max-width: 440px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ═══ CTA-модалка (форма консультации) ═══ */
.cmodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; overflow-x: hidden; padding: 16px; opacity: 0; transition: opacity .25s ease; }
.cmodal[hidden] { display: none; }
.cmodal.is-open { opacity: 1; }
.cmodal__overlay { position: fixed; inset: 0; background: rgba(15,26,36,.55); }
.cmodal__dialog { position: relative; margin: auto; display: flex; flex-direction: column; gap: 32px; width: min(100%, 361px); min-height: 1239px; overflow: hidden; background: #f9fafb; border-radius: 16px; padding: 32px 16px; transform: translateY(14px); transition: transform .25s ease; box-sizing: border-box; }
.cmodal.is-open .cmodal__dialog { transform: none; }
.cmodal__close { order: 10; align-self: center; z-index: 4; width: 64px; height: 64px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: transform .15s ease; }
.cmodal__close img { width: 100%; height: 100%; display: block; }
.cmodal__close:hover { transform: scale(1.08); }

.cmodal__aside { position: relative; z-index: 2; min-width: 0; }
.cmodal__heading { margin: 0; font-size: clamp(26px, 8.2vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -1px; color: var(--ink); }
.cmodal__heading .accent { color: var(--blue); font-weight: 600; }
.cmodal__art { position: relative; z-index: 1; width: 345px; max-width: calc(100vw - 16px); height: 135px; margin: 32px -8px 0; }
.cmodal__shape { position: absolute; z-index: 0; left: 8px; top: 186px; width: 329px; height: 329px; pointer-events: none; }
.cmodal__shape img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cmodal__person { position: absolute; left: 74px; top: -44px; transform: none; width: 197px; height: 238px; object-fit: contain; object-position: bottom; }

.cmodal__form { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; background: #fff; border-radius: 20px; padding: 24px 12px 40px; box-shadow: 0 6px 13px rgba(0,0,0,.05), 0 52px 31px rgba(0,0,0,.03), 0 145px 41px rgba(0,0,0,0); }
.cmodal__form-title { margin: 0; font-size: clamp(20px, 6.1vw, 24px); font-weight: 600; line-height: 1.2; letter-spacing: -.8px; color: var(--ink); }
.cmodal__fields { display: flex; flex-direction: column; gap: 16px; background: #f9fafb; border-radius: 12px; padding: 12px; }
.cmodal__field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmodal__row { display: flex; flex-direction: column; gap: 16px; }
.cmodal__label { color: #62738e; font-size: 12px; line-height: 1.5; }
.cmodal__input { width: 100%; box-sizing: border-box; background: #fff; border: 0; border-radius: 12px; padding: 12px; font-family: inherit; font-size: 18px; line-height: 1.5; color: var(--ink); outline: none; }
.cmodal__input::placeholder { color: #9aa6b8; }
.cmodal__input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cmodal__select { position: relative; display: flex; }
select.cmodal__input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px; color: transparent; }
select.cmodal__input option { color: var(--ink); }
.cmodal__select-value { position: absolute; left: 12px; right: 46px; top: 12px; z-index: 1; color: var(--ink); font-size: 18px; line-height: 1.5; pointer-events: none; }
.cmodal__fields > .cmodal__field:nth-child(2) .cmodal__input { min-height: 78px; }
.cmodal__select-arrow { position: absolute; right: 18px; top: 50%; z-index: 1; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.cmodal__err { position: absolute; left: 0; right: 0; bottom: -15px; display: none; color: #e5484d; font-size: 12px; line-height: 1.25; pointer-events: none; z-index: 2; }
.cmodal__field.is-invalid .cmodal__input { box-shadow: inset 0 0 0 1.5px #e5484d; }
.cmodal__field.is-invalid .cmodal__err { display: block; }
.cmodal__err.is-show { display: block; }
.cmodal__check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cmodal__check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cmodal__check-box { flex: none; width: 32px; height: 32px; border-radius: 6px; border: 2px solid var(--card-border); background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, border-color .15s ease; }
.cmodal__check-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); opacity: 0; transition: opacity .15s ease; }
.cmodal__check input:checked + .cmodal__check-box { background: var(--blue); border-color: var(--blue); }
.cmodal__check input:checked + .cmodal__check-box::after { opacity: 1; }
.cmodal__check input:focus-visible + .cmodal__check-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.cmodal__check.is-invalid .cmodal__check-box { border-color: #e5484d; }
.cmodal__check-text { color: rgba(98,115,142,.9); font-size: 8px; line-height: 1.2; }
.cmodal__check-text b { font-weight: 700; color: var(--ink); }
.cmodal__msg { margin: 0; font-size: 14px; line-height: 1.4; }
.cmodal__msg.is-ok { color: #2f9e44; }
.cmodal__msg.is-err { color: #e5484d; }
.cmodal__actions { align-self: center; display: flex; flex-direction: column; flex-wrap: nowrap; width: min(286px, 100%); gap: 16px; margin-top: 15px; }
.cmodal__actions .btn-outline, .cmodal__actions .btn-grad { width: 100%; min-height: 63px; text-align: center; justify-content: center; cursor: pointer; }
.cmodal__actions .btn-grad:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; filter: none; }

@media (min-width: 1024px) {
  .cmodal { --cmodal-scale: 1; align-items: center; }
  .cmodal__dialog { flex: 0 0 auto; flex-direction: row; align-items: stretch; gap: 32px; width: 1596px; max-width: none; height: 900px; min-height: 0; padding: 64px; overflow: hidden; border-radius: 32px; transform: scale(var(--cmodal-scale)); transform-origin: center center; margin: calc((900px * (var(--cmodal-scale) - 1)) / 2) calc((1596px * (var(--cmodal-scale) - 1)) / 2); }
  .cmodal.is-open .cmodal__dialog { transform: scale(var(--cmodal-scale)); }
  .cmodal__close { position: absolute; top: 122px; right: 40px; order: 0; align-self: auto; width: 64px; height: 64px; }
  .cmodal__aside { flex: 0 0 626px; max-width: 626px; display: flex; flex-direction: column; }
  .cmodal__heading { width: 626px; font-size: 48px; padding-right: 0; letter-spacing: -1px; }
  .cmodal__art { position: static; width: auto; max-width: none; height: auto; margin: 0; }
  .cmodal__shape { left: 64px; top: 326px; right: auto; bottom: auto; width: 768px; height: 768px; }
  .cmodal__person { left: 64px; top: 241px; bottom: auto; width: 579px; height: 702px; transform: none; object-position: left bottom; }
  .cmodal__form { flex: 0 0 1166px; width: 1166px; min-width: 0; height: 772px; gap: 12px; padding: 40px; justify-content: flex-start; box-shadow: 0 5px 12px rgba(0,0,0,.05), 2px 21px 21px rgba(0,0,0,.04), 4px 47px 29px rgba(0,0,0,.03), 7px 84px 34px rgba(0,0,0,.01); }
  .cmodal__form-title { width: 597px; font-size: 48px; letter-spacing: -1px; }
  .cmodal__fields { width: 794px; padding: 24px; gap: 16px; border-radius: 24px; box-sizing: border-box; }
  .cmodal__field { gap: 16px; }
  .cmodal__check { min-height: 60px; align-items: center; }
  .cmodal__row { flex-direction: row; gap: 32px; }
  .cmodal__row > .cmodal__field { flex: 1 1 0; }
  .cmodal__input { min-height: 60px; font-size: 24px; padding: 12px 24px; }
  .cmodal__fields > .cmodal__field:nth-child(2) .cmodal__input { min-height: 60px; }
  .cmodal__select-value { left: 24px; right: 46px; top: 12px; font-size: 24px; white-space: nowrap; }
  .cmodal__label { font-size: 16px; }
  .cmodal__err { bottom: -16px; font-size: 12px; }
  .cmodal__check-box { width: 32px; height: 32px; }
  .cmodal__check-text { font-size: 12px; line-height: 1.2; }
  .cmodal__actions { align-self: flex-start; flex-direction: row; justify-content: flex-end; width: 506px; gap: 32px; margin-top: 41px; margin-left: 290px; }
  .cmodal__actions .btn-outline, .cmodal__actions .btn-grad { flex: 0 0 auto; min-height: 63px; }
  .cmodal__actions .btn-outline { width: 215px; }
  .cmodal__actions .btn-grad { width: 259px; }
}

@media (min-width: 1024px) and (max-width: 1199px) { .cmodal { --cmodal-scale: .62; } }
@media (min-width: 1200px) and (max-width: 1279px) { .cmodal { --cmodal-scale: .73; } }
@media (min-width: 1280px) and (max-width: 1399px) { .cmodal { --cmodal-scale: .78; } }
@media (min-width: 1400px) and (max-width: 1499px) { .cmodal { --cmodal-scale: .88; } }
@media (min-width: 1500px) and (max-width: 1599px) { .cmodal { --cmodal-scale: .93; } }
@media (min-width: 1600px) and (max-width: 1627px) { .cmodal { --cmodal-scale: .98; } }
@media (min-width: 1280px) and (max-height: 820px) { .cmodal { --cmodal-scale: .82; } }

@media (min-width: 1024px) {
  .calc-shell--refin { flex-direction: row; align-items: stretch; gap: 32px; }
  .rfc-aside { flex: 0 0 38%; max-width: 560px; }
  .rfc-aside .sec-title { position: relative; z-index: 1; }
  .rfc-deco { display: block; position: absolute; left: -10px; bottom: 0; width: 440px; height: 440px; max-width: 92%; background: url("assets/refin-deco.svg") no-repeat left bottom / contain; pointer-events: none; z-index: 0; }
  .calc--rfc { flex: 1 1 0; min-width: 0; gap: 56px; }
  .rfc-form { padding: 24px; }
  .rfc-field { gap: 16px; }
  .rfc-row { flex-direction: row; gap: 32px; }
  .rfc-row > .rfc-field { flex: 1 1 0; }
  .rfc-row--term { gap: 16px; }
  .rfc-input--term { flex: 1 1 auto; }
  .rfc-select--year { flex: 0 0 170px; }
  .rfc-input, .rfc-select { font-size: 24px; padding: 16px 24px; min-height: 60px; }
  .rfc-payment { font-size: 24px; letter-spacing: -.72px; }
}

/* На очень больших экранах контейнер уже зафиксирован на 1596 (симметричные поля) */

/* ───────────── Страница «Контакты» ───────────── */
.sec--contacts { background: var(--bg); }
.sec--contacts > .contacts { padding-block: 48px 64px; }
.contacts { display: flex; flex-direction: column; gap: 32px; }
.contacts__info { display: flex; flex-direction: column; gap: 40px; }
.sec--contacts .faq-contacts { gap: 16px; }
.sec--contacts .faq-contacts__link { font-size: 32px; }
.contacts__title { margin: 0; color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.2; }
.contacts__map { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contacts__mapwrap { position: relative; width: 100%; }
.contacts__map-img { display: block; width: 100%; height: auto; mix-blend-mode: darken; }
.contacts__pin { position: absolute; width: 9%; aspect-ratio: 1 / 1; background: #fff; border-radius: 22%; display: grid; place-items: center; box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 3px 2px rgba(0,0,0,.09), 0 7px 4px rgba(0,0,0,.05); }
.contacts__pin img { display: block; width: 50%; height: 50%; object-fit: cover; }
.contacts__map-text { margin: 0; color: var(--blue); font-size: 30px; font-weight: 600; line-height: 1.2; text-align: center; }

@media (min-width: 1024px) {
  .sec--contacts > .contacts { padding-block: 80px 120px; }
  .contacts { flex-direction: row; align-items: center; gap: 43px; }
  .contacts__info { flex: 0 0 472px; }
  .contacts__title { font-size: 48px; }
  .contacts__map { flex: 1 1 auto; min-width: 0; position: relative; }
  .contacts__pin { width: 3.7%; }
  .contacts__map-text { position: absolute; top: 27%; right: 11%; width: 50%; font-size: 48px; text-align: right; }
}

/* ═══════════════════ О КОМПАНИИ (o-kompanii.html) ═══════════════════ */

/* — HERO: кроп илло под about (перекрывает .hero--svc) — */
.hero--about .hero__bg img, .hero--kak .hero__bg img { inset: 0 auto auto 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.br-desk { display: none; }

/* — INTRO: экспертиза, центрированный абзац с синими акцентами — */
.sec--about-intro { background: var(--white); }
.sec--about-intro > .wrap { padding-block: 56px; }
.about-intro__text { margin: 0; text-align: center; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.5; }
.about-intro__text .accent { color: var(--blue); }

/* — TRUST: почему доверять + 3 карточки + статистика — */
.sec--trust { background: var(--bg); }
.sec--trust > .wrap { padding-block: 56px; }
.trust { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.trust-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; text-align: left; }
.trust-head .sec-title { text-align: left; }
.trust-head__desc { margin: 0; max-width: 1243px; color: var(--muted); font-size: 16px; line-height: 1.4; letter-spacing: -.16px; }
.trust-cards { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.trust-card { position: relative; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; padding: 24px; background: var(--white); border-radius: 32px; overflow: hidden;
  box-shadow: 0 5px 12px rgba(0,0,0,.05), 2px 21px 21px rgba(0,0,0,.04), 4px 47px 29px rgba(0,0,0,.03); }
.trust-card__icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; background: var(--blue); border-radius: 16.6px; }
.trust-card__icon img { width: 44px; height: 44px; }
.trust-card__body { display: flex; flex-direction: column; gap: 24px; }
.trust-card__title { margin: 0; color: #151515; font-size: 32px; font-weight: 600; line-height: 1.4; letter-spacing: -.32px; }
.trust-card__desc { margin: 0; color: var(--muted); font-size: 18px; font-weight: 400; line-height: 1.5; letter-spacing: -.54px; }
.trust-card--blue { background: var(--grad-blue); gap: 24px; }
.trust-card--blue .trust-card__title, .trust-card--blue .trust-card__desc { position: relative; z-index: 1; color: var(--white); }
.trust-card__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; background: var(--white); border-radius: 82px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.trust-card__shape { position: absolute; left: 50%; top: calc(50% + 108px); width: 435px; height: 435px; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
/* статистика — 3 отдельные карточки (не ic-stats с разделителями) */
.about-stats { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.about-stat { display: flex; flex-direction: column; gap: 5px; padding: 24px; background: var(--white); border-radius: 24px;
  box-shadow: 3px 3px 4.5px rgba(0,0,0,.05), 13px 10px 8.5px rgba(0,0,0,.04), 29px 23px 11px rgba(0,0,0,.03); }
.about-stat__num { margin: 0; color: var(--blue); font-size: 36px; font-weight: 600; letter-spacing: -2px; line-height: 1.5; }
.about-stat__label { margin: 0; color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: -.45px; line-height: 1.5; }

/* — BRANDS: логотипы партнёров — */
.sec--brands { background: var(--white); }
.sec--brands > .wrap { padding-block: 56px; }
.brands { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.brands-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; text-align: left; }
.brands-head .sec-title { text-align: left; }
.brands-head__desc { margin: 0; max-width: 1243px; color: var(--muted); font-size: 16px; line-height: 1.4; letter-spacing: -.16px; }
.brands-grid { display: flex; flex-wrap: wrap; gap: 29px; align-items: center; justify-content: center; width: 100%; }
.brand { display: grid; place-items: center; width: 100%; height: 142px; padding: 53px 40px; background: var(--bg); border-radius: 24px;
  box-shadow: 0 5px 12px rgba(0,0,0,.05), 2px 21px 21px rgba(0,0,0,.04), 4px 47px 29px rgba(0,0,0,.03); }
.brand img { display: block; width: auto; height: 36px; max-width: 100%; }

/* — CERTS: наши достижения — */
.sec--certs { background: var(--bg); }
.sec--certs > .wrap { padding-block: 56px; }
.certs { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.certs-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; text-align: left; }
.certs-head .sec-title { text-align: left; }
.certs-head__desc { margin: 0; max-width: 1243px; color: var(--muted); font-size: 16px; line-height: 1.4; letter-spacing: -.16px; }
.certs-row { display: flex; flex-direction: column; gap: 24px; width: 100%; align-items: center; }
.cert { width: 100%; max-width: 411px; padding: 24px; background: var(--white); border-radius: 24px; box-shadow: 0 5px 12px rgba(0,0,0,.05), 2px 21px 21px rgba(0,0,0,.04); }
.cert img { display: block; width: 100%; height: auto; }

@media (min-width: 1024px) {
  .sec--about-intro > .wrap { padding-block: 100px; }
  .about-intro__text { max-width: 1325px; margin-inline: auto; font-size: 28px; }
  .br-desk { display: inline; }

  .sec--trust > .wrap { padding-block: 100px; }
  .trust { gap: 56px; }
  .trust-head__desc { font-size: 24px; letter-spacing: -.24px; }
  .trust-cards { flex-direction: row; gap: 24px; max-width: 1280px; justify-content: center; align-items: stretch; }
  .trust-card { flex: 1 1 0; min-width: 0; gap: 32px; padding: 40px; border-radius: 32px; }
  .trust-card__body { gap: 24px; }
  .trust-card__title { font-size: 32px; letter-spacing: -.32px; }
  .trust-card__desc { font-size: 18px; letter-spacing: -.54px; }
  .trust-card--blue { gap: 32px; justify-content: center; }
  .trust-card__btn { font-size: 18px; }
  .about-stats { flex-direction: row; gap: 24px; max-width: 1280px; justify-content: center; }
  .about-stat { flex: 1 1 0; min-width: 0; }
  .about-stat__num { font-size: 48px; letter-spacing: -2.88px; }
  .about-stat__label { font-size: 18px; letter-spacing: -.54px; }
  .trust-head, .brands-head, .certs-head { align-items: center; text-align: center; }
  .trust-head .sec-title, .brands-head .sec-title, .certs-head .sec-title { text-align: center; }

  .sec--brands > .wrap { padding-block: 100px; }
  .brands { gap: 56px; }
  .brands-head__desc { font-size: 24px; letter-spacing: -.24px; }
  .brand { width: 298px; padding: 53px 76px; }

  .sec--certs > .wrap { padding-block: 100px; }
  .certs { gap: 56px; }
  .certs-head__desc { font-size: 24px; letter-spacing: -.24px; }
  .certs-row { flex-direction: row; gap: 24px; justify-content: center; align-items: stretch; }
  .cert { flex: 0 1 411px; max-width: 411px; padding: 40px; border-radius: 32px; }
}

/* ═══════════════════ КАК МЫ РАБОТАЕМ (kak-rabotaem.html) ═══════════════════ */

/* — Info Company: что даёт личный кабинет (медиа слева, текст справа) — */
.sec--kabinet { background: var(--white); }
.sec--kabinet > .wrap { padding-block: 56px; }
.kabinet { display: flex; flex-direction: column; gap: 40px; align-items: stretch; }
.kabinet__media { width: 100%; max-width: 588px; aspect-ratio: 361 / 320; border-radius: 24px; overflow: hidden; align-self: stretch; }
.kabinet__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kabinet__text { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.kabinet__head { display: flex; flex-direction: column; gap: 14px; }
.kabinet__desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }
.kabinet__link { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.48px; }
.kabinet__link a { color: var(--blue); text-decoration: underline; }
.kabinet__buttons { display: flex; flex-direction: column; gap: 16px; align-items: stretch; width: 100%; }
.kabinet__buttons .btn-grad, .kabinet__buttons .btn-outline { width: 100%; }

/* — Steps (10 шагов): мобилка — инфо сверху, список снизу — */
.sec--steps-kak .steps-row { flex-direction: column; gap: 40px; }
.sec--steps-kak .step { border-radius: 12px; padding: 16px; }
.sec--steps-kak .steps-card { border-radius: 12px; }
.sec--steps-kak .step__num { font-size: 18px; }
.sec--steps-kak .steps-info .btn-dark { margin-top: 8px; }

@media (min-width: 1024px) {
  .sec--kabinet > .wrap { padding-block: 100px; }
  .kabinet { flex-direction: row; gap: 72px; align-items: center; justify-content: center; max-width: 1354px; margin-inline: auto; }
  .kabinet__media { flex: none; width: 588px; height: 448px; max-width: none; aspect-ratio: auto; align-self: auto; }
  .kabinet__text { flex: 1 1 0; min-width: 0; gap: 80px; }
  .kabinet__desc, .kabinet__link { font-size: 18px; letter-spacing: -.54px; }
  .kabinet__buttons { flex-direction: row; gap: 24px; align-items: center; width: auto; }
  .kabinet__buttons .btn-grad, .kabinet__buttons .btn-outline { width: auto; }

  .sec--steps-kak .steps-row { flex-direction: row; align-items: flex-start; gap: clamp(48px, 9vw, 128px); }
  .sec--steps-kak .steps-card { flex: 0 1 683px; border-radius: 20px; }
  .sec--steps-kak .steps-info { flex: 0 1 543px; }
  .sec--steps-kak .step { min-height: 113px; border-radius: 24px; padding: 22px; }
  .sec--steps-kak .step__title { font-size: 24px; line-height: 1.5; margin-bottom: 6px; }
  .sec--steps-kak .step__sub { font-size: 18px; line-height: 1.5; }
}

/* ═══════════════════ БЛОГ (blog.html) ═══════════════════ */
.content.blog { display: block; }
.blog__title { margin: 0 0 32px; }
.blog-body { display: flex; flex-direction: column; gap: 24px; }
.blog-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.blog-grid { width: 100%; }
.news-card { color: inherit; text-decoration: none; }
.news-card__img { display: block; }
.blog-grid .news-card__title { line-height: 1.5; }

/* пагинация */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.pg-btn { display: inline-flex; align-items: center; gap: 8px; height: 55px; padding: 8px 32px; background: #fff; border: 2px solid rgba(201,222,246,.5); border-radius: 100px; color: var(--ink); font-size: 16px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.pg-btn img { width: 24px; height: 24px; flex: none; }
.pg-nums { display: flex; gap: 4px; }
.pg-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; color: rgba(15,26,36,.5); font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.pg-num.is-active { background: var(--blue); color: #fff; }
.pg-dots { pointer-events: none; font-size: 14px; }

@media (min-width: 1024px) {
  .blog__title { margin-bottom: 32px; }
  .blog-body { flex-direction: row; gap: 30px; align-items: flex-start; }
  .blog-main { flex: 1 1 0; gap: 32px; }
  .blog-grid { flex: none; }
  .blog-grid .news-card__title, .blog-grid .news-card__tags, .blog-grid .news-card__text { padding-inline: 16px; }
  .blog-grid .news-card__tags { margin-top: -12px; }
  .pagination { flex-wrap: nowrap; justify-content: space-between; width: 100%; max-width: 927px; margin-inline: auto; }
}

@media (max-width: 1023px) {
  .blog-grid .news-card__title, .blog-grid .news-card__tags, .blog-grid .news-card__text { padding-inline: 8px; }
  .blog-grid .news-card__img { aspect-ratio: 3 / 2; }
  .blog-body .info-filter { gap: 12px; flex-wrap: wrap; overflow-x: visible; }
  .blog-body .info-filter .af-tab { font-size: 14px; letter-spacing: -.42px; padding: 10px 18px; }
}

/* ═══════════════════ БЛОГ-СТАТЬЯ (blog-statya.html) ═══════════════════ */
.content.article { display: flex; flex-direction: column; gap: 32px; align-items: stretch; }
.post { background: #f9fafb; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 32px; }
.post__hero { width: 100%; aspect-ratio: 16 / 9; border-radius: 24px 24px 12px 12px; overflow: hidden; }
.post__hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.post__body { display: flex; flex-direction: column; gap: 32px; }
.post__head { display: flex; flex-direction: column; gap: 20px; }
.post__title { margin: 0; color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.5; letter-spacing: -.72px; }
.post__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.post__text { display: flex; flex-direction: column; gap: 24px; }
.post__block { display: flex; flex-direction: column; }
.post__p { margin: 0 0 10px; color: var(--muted); font-size: 18px; line-height: 1.5; letter-spacing: -.54px; text-align: justify; }
.post__p:last-child { margin-bottom: 0; }
.post__p--dark { color: var(--ink); }
.post__p--link { color: var(--blue); text-decoration: underline; }
.post__p--blue { color: var(--blue); }
.post__p .accent { color: var(--blue); }
.post__split { display: flex; flex-direction: column; gap: 24px; }
.post__split-text { display: flex; flex-direction: column; }
.post__split-img { width: 100%; aspect-ratio: 565 / 333; border-radius: 30px 30px 12px 12px; overflow: hidden; }
.post__split-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

@media (min-width: 1024px) {
  .post { padding: 32px 32px 48px; gap: 32px; }
  .post__hero { aspect-ratio: auto; height: 563px; border-radius: 30px 30px 12px 12px; }
  .post__body { padding-inline: 16px; }
  .post__split { flex-direction: row; align-items: center; gap: 32px; }
  .post__split-text { flex: 1 1 0; min-width: 0; }
  .post__split-img { flex: none; width: 565px; aspect-ratio: auto; height: 333px; }
  .post-nav { width: 100%; max-width: 927px; margin-inline: auto; flex-wrap: nowrap; }
}

@media (max-width: 1023px) {
  .post { padding: 16px 16px 24px; }
  .post__body { padding-inline: 16px; }
  .post__p { font-size: 16px; }
  .post__hero, .post__split-img { border-radius: 12px; aspect-ratio: auto; height: 219px; }
  .post__split { gap: 32px; }
  .post-nav { flex-direction: column; align-items: stretch; gap: 24px; }
  .post-nav .pg-btn { height: 59px; }
  .breadcrumbs--article .breadcrumbs__item--current { white-space: nowrap; max-width: 186px; overflow: hidden; text-overflow: ellipsis; }
}

/* — FOOTER mobile: услуги в одну колонку (Figma), не две — */
@media (max-width: 1023px) {
  .ft-links__lists { flex-direction: column; gap: 18px; }
  .ft-links__lists .ft-list + .ft-list { margin-top: 0; }
}

/* ═══════════════════ AUTH (login.html / register.html) ═══════════════════ */
.content--auth { display: block; padding-block: 24px 0; }
.auth { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.auth__head { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; max-width: 540px; margin-inline: auto; }
.auth__title { margin: 0; color: var(--blue); font-size: 32px; font-weight: 600; line-height: 1.2; }
.auth__subtitle { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; letter-spacing: -.18px; }
.auth__form { position: relative; display: flex; flex-direction: column; gap: 40px; width: 100%; max-width: 498px; }
.auth__fields { display: flex; flex-direction: column; gap: 44px; }
.auth-field-wrap { position: relative; display: block; min-width: 0; }
.auth-field { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--card-border); border-radius: 88px; padding: 18px 24px; }
.auth-field.is-invalid { border-color: #e5484d; box-shadow: inset 0 0 0 1px #e5484d; }
.auth-field__input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: 18px; color: var(--ink); letter-spacing: -.54px; }
.auth-field__input::placeholder { color: var(--muted); }
.auth-field__err { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 2; margin: 0; color: #e5484d; font-size: 14px; line-height: 1.35; padding-inline: 24px; pointer-events: none; }
.auth-field__eye { flex: none; position: relative; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; background: none; border: none; color: var(--ink); cursor: pointer; opacity: .46; filter: grayscale(1); }
.auth-field__eye img { display: block; width: 22px; height: 18px; object-fit: contain; }
.auth-field__eye::after { content: ""; position: absolute; left: -1px; top: 11px; width: 26px; height: 2px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 1px var(--white); transform: rotate(-42deg); transform-origin: center; }
.auth-field__eye.is-on { opacity: 1; filter: none; }
.auth-field__eye.is-on::after { opacity: 0; }
.auth__forgot { align-self: flex-end; color: var(--ink); font-size: 16px; line-height: 1.5; text-decoration: underline; }
.auth__actions { display: flex; flex-direction: column; gap: 24px; }
.auth__error { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; color: #e5484d; font-size: 14px; line-height: 1.4; text-align: center; pointer-events: none; z-index: 2; }
.auth__submit { width: 100%; border-radius: 63px; }
.auth__submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.15); }
.auth__alt { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 18px 20px; background: var(--white); border: 1px solid var(--card-border); border-radius: 63px; color: var(--blue); font-size: 18px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
@media (hover:hover){ .auth__alt:hover { border-color: var(--blue); } }
.auth__social { display: flex; flex-direction: column; gap: 30px; }
.auth__divider { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 18px; line-height: 1.5; white-space: nowrap; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--card-border); }
.auth__socials { display: flex; gap: 24px; justify-content: center; }
.auth-soc { display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 16px; background: rgba(50,97,236,.05); transition: background .15s ease, transform .15s ease; }
@media (hover:hover){ .auth-soc:hover { background: rgba(50,97,236,.12); transform: translateY(-2px); } }
.auth-soc img { width: 30px; height: 30px; }
@media (min-width: 1024px) {
  .content--auth { padding-block: 56px 0; }
  .auth { gap: 56px; }
  .auth__title { font-size: 48px; }
  .auth__subtitle { font-size: 24px; letter-spacing: -.24px; }
  .auth__fields { gap: 52px; }
  .auth-field { padding: 24px; }
}

/* — register: ФИО+телефон+почта+пароль в 2 колонки, кнопки в узкой колонке — */
.auth__head--reg { max-width: 920px; }
.auth__form--reg { max-width: 744px; }
.auth__fields--grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
.auth__narrow { display: flex; flex-direction: column; gap: 30px; width: 100%; max-width: 498px; margin-inline: auto; }
.auth__forgot--center { align-self: center; }
@media (min-width: 1024px) {
  .auth__fields--grid { grid-template-columns: 1fr 1fr; gap: 52px 32px; }
}

/* ═══════════════════ ЛИЧНЫЙ КАБИНЕТ (lk*.html) ═══════════════════ */
/* аватар-кружок «ЛО» (CSS-градиент, без картинки) */
.nav-ava { display: inline-grid; place-items: center; background: var(--grad-blue); border: 2px solid rgba(255,255,255,.3); box-shadow: var(--btn-shadow); color: #fff; font-weight: 600; text-decoration: none; border-radius: 50%; }
.nav-ava span { line-height: 1; }
.nav-ava--52 { width: 52px; height: 52px; font-size: 16px; }
.nav-ava--40 { width: 40px; height: 40px; font-size: 16px; }
.nav-ava--72 { width: 72px; height: 72px; font-size: 22px; border-width: 2.8px; }
.navbar--lk .navbar__actions { gap: 30px; }

/* раскладка кабинета */
.content--lk { display: flex; flex-direction: column; gap: 24px; padding-block: 24px 0; }
.cab-side { display: none; flex-direction: column; gap: 32px; padding: 24px 24px 40px; background: #f9fafb; border-radius: 24px; }
.cab-user { display: flex; flex-direction: column; gap: 16px; }
.cab-user__text { display: flex; flex-direction: column; gap: 8px; }
.cab-user__name { margin: 0; color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.2; }
.cab-user__id { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.cab-menu { display: flex; flex-direction: column; gap: 8px; }
.cab-menu__item { display: flex; align-items: center; padding: 12px; border-radius: 12px; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -.54px; text-decoration: none; transition: background .15s ease, color .15s ease; }
.cab-menu__item.is-active { background: #fff; color: var(--blue); }
@media (hover:hover){ .cab-menu__item:not(.is-active):hover { background: rgba(50,97,236,.07); color: var(--blue); } }

.cab-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cab-greeting { margin: 0; color: var(--ink); font-size: 28px; font-weight: 600; line-height: 1.2; }
.cab-card { background: #f9fafb; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.cab-card__title { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -.54px; }
.cab-card__btn { align-self: stretch; }

/* статус-степпер */
.cab-status__head { display: flex; flex-direction: column; gap: 8px; }
.cab-status__label { color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -.54px; }
.cab-status__app { color: var(--muted); font-size: 14px; }
.cab-stepper { list-style: none; margin: 8px 0 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.cab-stepper::before, .cab-stepper::after { content: ""; position: absolute; top: 4px; height: 8px; border-radius: 45px; }
.cab-stepper::before { left: 8px; right: 8px; background: rgba(201,222,246,.2); z-index: 0; }
.cab-stepper::after { left: 8px; width: calc((100% - 16px) / 6); background: linear-gradient(90deg, #3392ff, #5bfbc0); z-index: 1; }
.cab-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cab-step__dot { width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--blue); background: #fff; box-sizing: border-box; }
.cab-step.is-done .cab-step__dot { background: var(--blue); }
.cab-step__lbl { color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; max-width: 80px; }

/* статистика */
.cab-stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cab-stat { display: flex; flex-direction: column; gap: 5px; padding: 24px; background: #fff; border-radius: 12px; }
.cab-stat__num { margin: 0; color: var(--ink); font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -2px; }
.cab-stat__num--green { color: #4bb13b; }
.cab-stat__num--blue { color: var(--blue); }
.cab-stat__num--red { color: #c02828; }
.cab-stat__lbl { margin: 0; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.5; }

/* события */
.cab-events__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cab-event { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 12px; padding: 12px; }
.cab-event__text { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.2; }
.cab-event__time { flex: none; color: var(--muted); font-size: 10px; white-space: nowrap; }

/* быстрые действия */
.cab-quick { display: flex; flex-direction: column; gap: 16px; }
.cab-quick__row { display: flex; flex-direction: column; gap: 24px; }
.cab-action { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px; border-radius: 16px; background: var(--blue); color: #fff; text-decoration: none; box-shadow: 0 5px 12px rgba(0,0,0,.05), 2px 21px 21px rgba(0,0,0,.04); transition: transform .15s ease, filter .15s ease; }
.cab-action__text { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.18px; }
.cab-action__ic { flex: none; width: 56px; height: 56px; }
@media (hover:hover){ .cab-action:hover { transform: translateY(-2px); filter: brightness(1.06); } }

@media (min-width: 1024px) {
  .content--lk { flex-direction: row; gap: 32px; align-items: flex-start; padding-block: 56px 0; }
  .cab-side { display: flex; flex: none; width: 422px; }
  .cab-user { gap: 24px; }
  .cab-user__name { font-size: 32px; }
  .cab-user__id { font-size: 16px; }
  .cab-menu { gap: 16px; }
  .cab-menu__item { font-size: 24px; letter-spacing: -.72px; }
  .cab-main { flex: 1 1 0; gap: 32px; }
  .cab-greeting { font-size: 32px; }
  .cab-card { padding: 24px; border-radius: 24px; gap: 24px; }
  .cab-card__title { font-size: 24px; letter-spacing: -.72px; }
  .cab-status__head { flex-direction: row; justify-content: space-between; align-items: center; }
  .cab-status__label { font-size: 24px; letter-spacing: -.72px; }
  .cab-status__app { font-size: 16px; }
  .cab-stepper::before, .cab-stepper::after { top: 12px; }
  .cab-stepper::before { left: 16px; right: 16px; }
  .cab-stepper::after { left: 16px; width: calc((100% - 32px) / 6); }
  .cab-step__dot { width: 32px; height: 32px; }
  .cab-step__lbl { font-size: 14px; max-width: 118px; }
  .cab-row2 { display: flex; gap: 32px; }
  .cab-row2 > .cab-card { flex: 1 1 0; min-width: 0; }
  .cab-stats__grid { width: 100%; }
  .cab-stat__num { font-size: 48px; letter-spacing: -2.88px; }
  .cab-stat__lbl { font-size: 18px; }
  .cab-card__btn { align-self: flex-end; width: auto; }
  .cab-event { padding: 12px 24px; }
  .cab-event__text { font-size: 16px; }
  .cab-event__time { font-size: 12px; }
  .cab-quick__row { flex-direction: row; gap: 24px; }
  .cab-quick__row .cab-action { flex: 1 1 0; min-width: 0; }
  .cab-action__text { font-size: 20px; letter-spacing: -.2px; }
}

/* кабинет: клип степпера на мобилке (как в Figma), защита от overflow */
.cab-card { min-width: 0; }
.cab-stepper { overflow: hidden; }
.cab-action { min-width: 0; }
.cab-action__text { min-width: 0; word-break: break-word; }

/* — кабинет: список заявок (lk-zayavki) — */
.cab-create { display: flex; align-items: center; gap: 16px; }
.cab-create__label { display: none; }
.cab-pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 24px; background: #fff; border-radius: 82px; color: var(--blue); font-size: 18px; font-weight: 600; text-decoration: none; transition: background .15s ease; }
.cab-pill img { flex: none; }
@media (hover:hover){ .cab-pill:hover { background: #eef4fc; } }
.cab-create__btn { width: 100%; }
.cab-history { gap: 16px; }
.cab-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cab-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "id badge" "type arrow"; gap: 12px; background: #fff; border: 2px solid rgba(201,222,246,.5); border-radius: 12px; padding: 12px; text-decoration: none; }
.cab-row__id { grid-area: id; display: flex; align-items: baseline; gap: 8px; }
.cab-row__num { color: var(--blue); font-size: 18px; font-weight: 600; }
.cab-row__date { color: var(--muted); font-size: 10px; }
.cab-row__type { grid-area: type; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cab-row__t { color: var(--ink); font-size: 16px; font-weight: 600; }
.cab-row__s { color: var(--muted); font-size: 14px; }
.cab-badge { grid-area: badge; justify-self: end; align-self: center; display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid; border-radius: 24px; font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.cab-badge--review { color: var(--ink); border-color: var(--ink); }
.cab-badge--ok { color: var(--blue); border-color: var(--blue); }
.cab-badge--deny { color: #c02828; border-color: #c02828; }
.cab-badge--done { color: #4bb13b; border-color: #4bb13b; }
.cab-row__arrow { grid-area: arrow; justify-self: end; align-self: end; display: flex; }
.cab-row__arrow img { width: 24px; height: 24px; }

@media (min-width: 1024px) {
  .cab-create { justify-content: space-between; }
  .cab-create__label { display: block; color: var(--blue); font-size: 24px; font-weight: 600; }
  .cab-create__btn { width: auto; }
  .cab-history { gap: 24px; }
  .cab-row { display: flex; align-items: center; gap: 24px; padding: 22px; border-radius: 24px; }
  .cab-row__id { flex-direction: column; align-items: flex-start; gap: 0; }
  .cab-row__num { font-size: 24px; }
  .cab-row__date { font-size: 12px; }
  .cab-row__type { margin-left: 32px; margin-right: auto; gap: 6px; }
  .cab-row__t { font-size: 20px; }
  .cab-row__s { font-size: 16px; }
  .cab-badge { font-size: 16px; }
  .cab-row__arrow img { width: 32px; height: 32px; }
}

/* — кабинет: детали заявки (lk-zayavka) — */
.cab-main--detail { gap: 24px; }
.cab-detail__head { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cab-outline-pill { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; background: transparent; border: 2px solid rgba(201,222,246,.5); border-radius: 82px; color: var(--blue); font-size: 18px; font-weight: 600; text-decoration: none; transition: border-color .15s ease; }
@media (hover:hover){ .cab-outline-pill:hover { border-color: var(--blue); } }
.cab-detail__body { gap: 16px; }
.cab-detail__sub { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cab-subline { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; text-align: center; }
.cab-subline__num { color: var(--blue); text-decoration: none; }
.cab-subline__date { color: var(--ink); text-decoration: underline; }
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc__item { background: #fff; border-radius: 12px; padding: 12px; }
.acc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; color: var(--ink); font-size: 18px; font-weight: 600; }
.acc__head::-webkit-details-marker { display: none; }
.acc__chev { flex: none; display: grid; place-items: center; width: 18px; height: 18px; background: #f9fcff; border-radius: 3px; transition: transform .2s ease; }
.acc__chev img { width: 100%; height: 100%; }
.acc__item[open] > .acc__head .acc__chev { transform: scaleY(-1); }
.acc__body { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.cab-flds { display: flex; gap: 16px; }
.cab-flds > .cab-fld { flex: 1 1 0; min-width: 0; }
.cab-fld { display: flex; flex-direction: column; gap: 4px; }
.cab-fld__l { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cab-fld__v { background: #f9fcff; border-radius: 12px; padding: 12px 24px; color: var(--ink); font-size: 18px; }
.cab-fld__v--white { background: #fff; }
.cab-fld__v--row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cab-fld-inline { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.cab-fld-inline .cab-fld__l { flex: none; }
.cab-fld__banks { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; font-weight: 700; }
.cab-stage { display: flex; flex-direction: column; gap: 8px; }
.cab-stage__total { color: var(--ink); font-size: 16px; }
.cab-stage__total b { color: var(--blue); font-size: 24px; }
.cab-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.cab-doc { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cab-doc__name { color: var(--ink); font-size: 16px; font-weight: 500; }
.cab-badge--maybe { color: var(--muted); border: none; padding-left: 0; gap: 10px; }
.cab-docs__foot { display: flex; flex-direction: column; gap: 16px; }
.cab-docs__foot p { margin: 0; color: var(--muted); font-size: 12px; }
.cab-offer { display: flex; flex-direction: column; gap: 16px; background: #f9fcff; border-radius: 24px; padding: 24px; }
.cab-offer__head { display: flex; flex-direction: column; gap: 8px; }
.cab-offer__bank { color: var(--ink); font-size: 18px; font-weight: 700; }
.cab-offer__app { color: var(--muted); font-size: 14px; }
.cab-offer__totals { display: flex; flex-direction: column; gap: 12px; }
.cab-offer__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cab-offer__val { color: var(--ink); font-size: 16px; font-weight: 500; }
.cab-offer__val--big { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.cab-offer__btn { width: 100%; }

@media (min-width: 1024px) {
  .cab-main--detail { gap: 32px; }
  .cab-detail__head { flex-direction: row; justify-content: space-between; align-items: center; }
  .cab-detail__body { gap: 24px; }
  .cab-detail__sub { flex-direction: row; justify-content: space-between; align-items: center; }
  .cab-subline { font-size: 24px; text-align: left; }
  .acc__item { padding: 24px; }
  .acc__head { font-size: 24px; }
  .acc__chev { width: 32px; height: 32px; border-radius: 6px; }
  .acc__body { gap: 32px; margin-top: 32px; }
  .cab-flds { gap: 32px; }
  .cab-fld__l { font-size: 16px; }
  .cab-fld__v { font-size: 24px; }
  .cab-fld__banks { font-size: 24px; }
  .cab-stage__total { font-size: 24px; }
  .cab-doc__name { font-size: 24px; }
  .cab-docs__foot { flex-direction: row; justify-content: space-between; align-items: center; }
  .cab-docs__foot p { font-size: 16px; max-width: 403px; }
  .cab-offer__head { flex-direction: row; justify-content: space-between; align-items: center; }
  .cab-offer__bank { font-size: 24px; }
  .cab-offer__app { font-size: 16px; }
  .cab-offer__val { font-size: 18px; }
  .cab-offer__val--big { font-size: 24px; }
  .cab-offer__btn { width: auto; align-self: flex-end; padding: 18px 24px; }
}

/* fix: карточка «Создать заявку» в ряд на десктопе (не наследовать column от .cab-card) */
@media (min-width: 1024px) { .cab-create { flex-direction: row; align-items: center; } }

/* ═══════════ кабинет: Документы / Кредитная история / ЭЦП ═══════════ */
/* атрибут hidden должен побеждать display компонентов (переключение состояний) */
[hidden] { display: none !important; }
/* пилюли-кнопки w-204 (Удалить/Скачать/Просмотреть/Подписать/Обновить) */
.cab-btn { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: center; padding: 18px 24px; border: 2px solid rgba(201,222,246,.5); border-radius: 82px; font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; transition: filter .15s ease, border-color .15s ease; }
.cab-btn--out { background: transparent; color: var(--blue); }
.cab-btn--fill { background: var(--blue); color: #fff; }
@media (hover:hover){ .cab-btn--out:hover { border-color: var(--blue); } .cab-btn--fill:hover { filter: brightness(1.08); } }

/* карточка «Загрузить документы» — вариант cab-create */
.cab-upload__label { color: var(--blue); }

/* обёртка списка документов (Все документы / Документы на подписание) */
.cab-docwrap { background: #f9fafb; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.cab-docwrap__title { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -.54px; }

/* файл-строка (общая: Документы + ЭЦП-активна) */
.cab-file { display: flex; flex-direction: column; gap: 16px; }
.cab-file__row { display: flex; flex-direction: column; gap: 16px; }
.cab-file__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cab-file__lbl { color: var(--muted); font-size: 16px; line-height: 1.5; }
.cab-file__box { background: #f9fcff; border-radius: 12px; padding: 12px 24px; min-width: 0; }
.cab-file__box span { display: block; color: var(--ink); font-size: 18px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-file__btns { display: flex; flex-direction: column; gap: 12px; }
.cab-file__meta { display: flex; flex-direction: column; gap: 6px; }
.cab-file__meta p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cab-file__meta b { color: var(--ink); font-weight: 400; }

/* промо-карточка (Кредит-CTA / ЭЦП-неактивна) */
.cab-promo-wrap { background: #f9fafb; border-radius: 12px; padding: 12px; }
.cab-promo { background: #fff; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 24px; }
.cab-promo__head { display: flex; flex-direction: column; gap: 12px; }
.cab-promo__title { margin: 0; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.3; }
.cab-promo__sub { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: -.18px; }
.cab-promo__img { position: relative; overflow: hidden; flex: none; align-self: center; width: 100%; max-width: 320px; aspect-ratio: 501 / 327; }
.cab-promo__img img { position: absolute; max-width: none; width: 141.16%; height: 144%; left: -20.38%; top: -22.22%; }
.cab-promo__btn { width: 100%; }

/* результат кредитного рейтинга (gauge card) */
.cab-result { background: #fff; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 24px; }
.cab-result__head { display: flex; flex-direction: column; gap: 8px; }
.cab-result__title { margin: 0; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.3; }
.cab-result__sub { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cab-result__btns { display: flex; flex-direction: column; gap: 12px; }

/* гейдж-спидометр (5 SVG-дуг Figma + число + пилюля) */
.cab-gauge { position: relative; width: 260px; height: 220px; flex: none; align-self: center; overflow: hidden; }
.cab-gauge__dial { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 260px; height: 260px; }
.cab-gauge__arc { position: absolute; }
.cab-gauge__arc img { display: block; width: 100%; height: 100%; }
/* инсеты дуг 1:1 из Figma (top right bottom left), циферблат — квадрат */
.cab-gauge__arc--red    { inset: 36.43% 88.63% 25.55% 0; }
.cab-gauge__arc--yellow { inset: 0 30.14% 64.09% 3.23%; }
.cab-gauge__arc--lgreen { inset: 6.35% 3.48% 64.72% 70.53%; }
.cab-gauge__arc--dgreen { inset: 35.97% 0 25.97% 88.84%; }
.cab-gauge__arc--track  { inset: 8.08% 7.9% 29.28% 8.25%; }
.cab-gauge__num { position: absolute; left: 50%; top: 26.75%; transform: translateX(-50%); color: var(--ink); font-size: 64px; font-weight: 600; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cab-gauge__pill { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; box-sizing: border-box; width: 160px; padding: 8px 24px; border: 2px solid rgba(201,222,246,.5); border-radius: 82px; background: #fff; }
.cab-gauge__pill small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cab-gauge__pill b { color: var(--blue); font-size: 18px; font-weight: 600; line-height: 1.5; }

.cab-status-pill { cursor: default; }

@media (min-width: 1024px) {
  .cab-btn { width: auto; }
  .cab-btn--w204 { width: 204px; }
  .cab-docwrap { padding: 24px; gap: 24px; }
  .cab-docwrap__title { font-size: 24px; letter-spacing: -.72px; }
  .cab-file__row { flex-direction: row; align-items: flex-end; gap: 32px; }
  .cab-file__main { flex: 1 1 0; gap: 16px; }
  .cab-file__box span { font-size: 24px; }
  .cab-file__btns { flex-direction: row; gap: 32px; flex: none; }
  .cab-file__meta { gap: 16px; }

  .cab-promo-wrap { padding: 24px; }
  .cab-promo { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head img" "btn img"; align-content: center; align-items: center; justify-items: start; row-gap: 32px; column-gap: 32px; height: 375px; padding: 24px; }
  .cab-promo__head { grid-area: head; gap: 16px; }
  .cab-promo__img  { grid-area: img; justify-self: end; width: 501px; max-width: none; height: 327px; aspect-ratio: auto; }
  .cab-promo__btn  { grid-area: btn; justify-self: start; width: auto; }
  .cab-promo__title { font-size: 24px; line-height: 1.5; }
  .cab-promo__sub { font-size: 18px; max-width: 367px; }

  .cab-result { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head gauge" "btns gauge"; align-content: center; align-items: center; justify-items: start; row-gap: 32px; column-gap: 32px; height: 375px; padding: 24px; }
  .cab-result__head { grid-area: head; gap: 16px; }
  .cab-result__btns { grid-area: btns; flex-direction: row; gap: 32px; }
  .cab-result__gauge { grid-area: gauge; justify-self: end; }
  .cab-result__title { font-size: 24px; }
  .cab-result__sub { font-size: 18px; max-width: 367px; }

  .cab-gauge { width: 346px; height: 293px; }
  .cab-gauge__dial { width: 346px; height: 346px; }
  .cab-gauge__num { font-size: 86px; }
  .cab-gauge__pill { width: 204px; }
}

/* ═══════════ кабинет: Профиль (хаб + поля + тумблеры) ═══════════ */
/* хаб «Управление профилем» — строки-навигация (плоский шеврон) */
.prof-nav { display: flex; flex-direction: column; gap: 12px; background: #f9fafb; border-radius: 12px; padding: 12px; }
.prof-nav__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; box-sizing: border-box; background: #fff; border: none; border-radius: 12px; padding: 12px; font-family: inherit; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.5; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.prof-nav__chev { flex: none; display: block; width: 18px; height: 18px; }
.prof-nav__chev img { display: block; width: 100%; height: 100%; }
@media (hover:hover){ .prof-nav__item:hover { background: #f1f7ff; } }

/* серая обёртка под-раздела (карточки внутри, gap-24) */
.prof-sec { display: flex; flex-direction: column; gap: 24px; background: #f9fafb; border-radius: 12px; padding: 12px; }

/* поле-значение (label + box) */
.cab-input { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cab-input__l { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cab-input__box { background: #f9fcff; border-radius: 12px; padding: 12px; color: var(--ink); font-size: 18px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-input-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.cab-input-foot { display: flex; flex-direction: column; gap: 16px; }
.cab-input-foot__note { color: var(--muted); font-size: 16px; line-height: 1.5; }
.cab-input-foot__btns { display: flex; flex-direction: column; gap: 16px; }

/* карта с тумблерами (Уведомления / Согласия) */
.cab-switch-card { display: flex; flex-direction: column; gap: 24px; background: #f9fafb; border-radius: 12px; padding: 12px; }
.cab-switch-card__rows { display: flex; flex-direction: column; gap: 12px; }
.cab-switch-card__save { width: 204px; align-self: center; }
.cab-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-radius: 12px; padding: 12px; }
.cab-toggle-row__label { margin: 0; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.5; }

/* CSS-тумблер 56×28 */
.cab-switch { position: relative; display: inline-block; flex: none; width: 56px; height: 28px; }
.cab-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cab-switch__slider { position: absolute; inset: 0; background: #dbe5f5; border-radius: 999px; transition: background .2s ease; }
.cab-switch__slider::before { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(15,26,36,.18); transition: transform .2s ease; }
.cab-switch input:checked + .cab-switch__slider { background: var(--blue); }
.cab-switch input:checked + .cab-switch__slider::before { transform: translateX(28px); }
.cab-switch input:focus-visible + .cab-switch__slider { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (min-width: 1024px) {
  .prof-nav { border-radius: 20px; padding: 24px; }
  .prof-nav__item { padding: 24px; font-size: 24px; }
  .prof-nav__chev { width: 32px; height: 32px; }
  .prof-sec { border-radius: 20px; padding: 24px; }
  .cab-input { gap: 16px; }
  .cab-input__l { font-size: 16px; }
  .cab-input__box { padding: 12px 24px; font-size: 24px; }
  .cab-input-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cab-input-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .cab-input-foot__btns { flex-direction: row; gap: 32px; }
  .cab-switch-card { border-radius: 20px; padding: 24px; }
  .cab-switch-card__save { align-self: flex-end; }
  .cab-toggle-row { padding: 24px; }
  .cab-toggle-row__label { font-size: 24px; }
}

/* ═══════════ кабинет: Коммуникации (список + активный чат) ═══════════ */
/* обёртка списка чатов — радиус 12 (по Figma), не 20 */
.cab-docwrap--chat { border-radius: 12px; padding: 12px; }
@media (min-width: 1024px){ .cab-docwrap--chat { padding: 24px; } }
/* строка чата: бокс + одна кнопка «Открыть» */
.cab-chat-row { display: flex; flex-direction: column; gap: 24px; }
.cab-chat-row .cab-file__box { width: 100%; }
.cab-chat-row .cab-btn { width: 100%; }

/* активный чат */
.chat__card { background: #f9fafb; border-radius: 12px; padding: 12px; min-height: 472px; display: flex; }
.chat__inner { flex: 1; min-width: 0; background: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.chat__header { background: #f9fcff; border-radius: 12px; padding: 12px; }
.chat__peer { display: flex; align-items: center; gap: 24px; }
.chat__ava { flex: none; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #3261ec 38.889%, #0050aa); border: 2.77px solid rgba(255,255,255,.3); color: #fff; font-weight: 600; font-size: 22px; line-height: 1.5; }
.chat__peer-txt { display: flex; flex-direction: column; gap: 8px; }
.chat__name { margin: 0; color: var(--ink); font-weight: 600; font-size: 18px; line-height: 1.2; }
.chat__status { margin: 0; color: var(--muted); font-weight: 400; font-size: 14px; line-height: 1.5; }
.chat__msgs { flex: 1; display: flex; flex-direction: column; gap: 32px; justify-content: flex-end; }
.chat__row { display: flex; flex-direction: column; gap: 8px; }
.chat__row--in { align-items: flex-start; }
.chat__row--out { align-items: flex-end; }
.chat__time { color: var(--muted); font-size: 12px; line-height: 1.5; }
.chat__bubble { border: 2px solid rgba(201,222,246,.5); border-radius: 12px; padding: 12px; font-weight: 400; font-size: 14px; line-height: 1.5; }
.chat__bubble--in { background: #fff; color: var(--ink); width: 100%; text-align: left; }
.chat__bubble--out { background: var(--blue); color: #fff; width: 100%; text-align: right; }
.chat__empty { flex: 1; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; }
.chat__empty-title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.chat__empty-sub { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.chat__input-row { position: relative; display: flex; gap: 16px; align-items: stretch; margin-top: 16px; margin-bottom: 22px; }
.chat__input { flex: 1; min-width: 0; background: #f9fcff; border-radius: 12px; padding: 12px; display: flex; align-items: center; }
.chat__input input { width: 100%; border: 0; background: transparent; outline: none; font-family: inherit; font-size: 14px; color: var(--ink); }
.chat__input input::placeholder { color: rgba(15,26,36,.5); }
.chat__send { flex: none; width: 48px; background: #f9fcff; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 12px; cursor: pointer; transition: filter .15s ease; }
.chat__send img { width: 24px; height: 24px; }
.chat__error { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; color: #e5484d; font-size: 14px; line-height: 1.35; pointer-events: none; z-index: 2; }
.chat__input-row > .chat__error { top: auto; bottom: calc(100% + 8px); }
@media (hover:hover){ .chat__send:hover { filter: brightness(.96); } }

@media (min-width: 1024px) {
  .cab-chat-row { flex-direction: row; align-items: flex-end; gap: 32px; }
  .cab-chat-row .cab-file__box { flex: 1 1 0; }
  .cab-chat-row .cab-btn { width: 204px; }
  .chat__card { min-height: 719px; padding: 24px; }
  .chat__inner { padding: 24px; }
  .chat__header { padding: 12px 24px; }
  .chat__ava { width: 72px; height: 72px; }
  .chat__name { font-size: 32px; }
  .chat__status { font-size: 16px; }
  .chat__time { font-size: 16px; }
  .chat__bubble { padding: 12px 24px; font-size: 18px; }
  .chat__bubble--out { width: auto; max-width: 72%; text-align: center; }
  .chat__empty-title { font-size: 24px; }
  .chat__empty-sub { font-size: 18px; }
  .chat__input-row { gap: 32px; margin-top: 32px; }
  .chat__input { padding: 12px 24px; }
  .chat__input input { font-size: 24px; }
  .chat__send { width: 56px; }
  .chat__send img { width: 32px; height: 32px; }
}

/* ═══════════ плавающий чат-виджет (глобальный, на всех страницах) ═══════════ */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.chat-fab__btn { flex: none; width: 64px; height: 64px; border: 0; border-radius: 20px; background: var(--blue); box-shadow: 0 8px 24px rgba(50,97,236,.35); cursor: pointer; display: grid; place-items: center; transition: transform .15s ease, filter .15s ease; }
.chat-fab__btn img { width: 32px; height: 32px; }
@media (hover:hover){ .chat-fab__btn:hover { transform: translateY(-2px); filter: brightness(1.06); } }
.chat-fab__panel { width: 498px; max-width: calc(100vw - 40px); height: 671px; max-height: calc(100vh - 110px); box-sizing: border-box; display: flex; flex-direction: column; background: #fff; border: 4px solid var(--blue); border-radius: 24px; padding: 24px; box-shadow: 0 24px 64px rgba(15,26,36,.22); }
/* компактные размеры чата внутри виджета (переопределяют десктоп .chat__*) */
.chat-fab__panel .chat__header { padding: 12px; }
.chat-fab__panel .chat__ava { width: 56px; height: 56px; font-size: 22px; }
.chat-fab__panel .chat__name { font-size: 18px; }
.chat-fab__panel .chat__status { font-size: 14px; }
.chat-fab__panel .chat__empty-title { font-size: 20px; }
.chat-fab__panel .chat__empty-sub { font-size: 14px; }
.chat-fab__panel .chat__bubble { font-size: 14px; padding: 12px; }
.chat-fab__panel .chat__time { font-size: 12px; }
.chat-fab__panel .chat__input { padding: 12px 16px; }
.chat-fab__panel .chat__input input { font-size: 16px; }
.chat-fab__panel .chat__send { width: 48px; }
.chat-fab__panel .chat__send img { width: 24px; height: 24px; }
.chat-fab__panel .chat__input-row { margin-top: 16px; }
.chat-fab__panel .chat__error { font-size: 12px; }
@media (max-width: 1023px) {
  .chat-fab { right: 14px; bottom: 14px; gap: 12px; }
  .chat-fab__btn { width: 56px; height: 56px; border-radius: 16px; }
  .chat-fab__btn img { width: 28px; height: 28px; }
  .chat-fab__panel { width: 337px; height: 485px; padding: 16px; border-width: 3px; }
}
