/* Стили секций. Мобайл-first, десктоп через @media (min-width:1024px). */

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
@media (min-width: 1024px) { .header__inner { padding-block: 18px; } }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--fg); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.logo__tagline { font-size: 11px; color: var(--muted); }
@media (min-width: 1024px) { .logo__name { font-size: 18px; } }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .nav__list { display: flex; gap: 30px; }
  .nav__link { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
  .nav__link:hover { color: var(--fg); }
}

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone, .header__cta { display: none; }
.header__phone { align-items: center; gap: 7px; font-weight: 600; font-size: 15px; }
.header__phone svg { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .header__phone { display: inline-flex; }
  .header__cta { display: inline-flex; }
}

.icon-btn, .burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-m);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg);
}
.icon-btn svg { width: 19px; height: 19px; }
.burger svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .burger { display: none; } }

.mobile-menu {
  position: fixed; top: 67px; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--bg);
  padding: 20px var(--pad-x) 32px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu__link { display: block; padding: 16px 0; font-size: 19px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.mobile-menu__contact { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.mobile-menu__contact svg { width: 19px; height: 19px; color: var(--accent); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ============ Hero ============ */
.hero__inner { display: grid; gap: 36px; padding-block: 32px 40px; }
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 660px) 1fr;
    align-items: center; gap: 64px; padding-block: 80px 88px;
  }
}
.hero__content { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1024px) { .hero__content { gap: 28px; } }

.hero__title { font-size: 31px; }
.hero__title .accent { color: var(--accent); }
@media (min-width: 1024px) { .hero__title { font-size: 56px; letter-spacing: -0.03em; } }

.hero__subtitle { font-size: 15px; color: var(--muted); max-width: 540px; }
@media (min-width: 1024px) { .hero__subtitle { font-size: 18px; } }

.hero__cta { display: flex; flex-direction: column; gap: 14px; }
.hero__cta .btn--primary { width: 100%; }
.hero__cta .link-arrow { justify-content: center; }
@media (min-width: 560px) {
  .hero__cta { flex-direction: row; align-items: center; gap: 24px; }
  .hero__cta .btn--primary { width: auto; }
}

.hero__adv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.hero__adv li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 500; }
.hero__adv svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 1px; }
@media (min-width: 1024px) { .hero__adv li { font-size: 14.5px; } }

.hero__trust { font-size: 13px; color: var(--muted); max-width: 540px; }
@media (min-width: 1024px) { .hero__trust { font-size: 14px; } }

/* ===== Мокап-окно «Реестр» ===== */
.window {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden;
}
.window__chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.window__dots { display: flex; gap: 6px; flex: none; }
.window__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.window__title { font-size: 13px; font-weight: 600; }
.window__ver { font-family: var(--font-mono); font-size: 11px; color: var(--muted); flex: none; }

.window__toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.window__h { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.window__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge--verified {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 6px 11px; border-radius: var(--r-pill); border: 1px solid var(--accent);
  color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge--verified svg { width: 14px; height: 14px; }

.reg__head, .reg__row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 11px 16px;
}
@media (min-width: 1024px) {
  .reg__head, .reg__row { grid-template-columns: 1fr 70px 60px 104px; padding: 12px 18px; }
}
.reg__head {
  background: var(--surface);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}
.reg__row { border-top: 1px solid var(--border); }
.reg__col--hide { display: none; }
@media (min-width: 1024px) { .reg__col--hide { display: block; } }

.reg__doc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.reg__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reg__name { font-size: 14px; font-weight: 600; }
.reg__type { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg__period { font-size: 13px; color: var(--muted); }
.thumb {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 38px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg);
}
.tag {
  display: inline-flex; padding: 2px 7px; border-radius: 5px; background: var(--surface);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status svg { width: 13px; height: 13px; flex: none; }
.status--done { color: var(--accent); }
.status--idle { color: var(--muted); }

.window__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--surface); border-top: 1px solid var(--border);
}
.window__footer .mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
/* Мобайл: укороченный реестр — 2 строки + «ещё 6 документов» */
.reg-foot-mobile { display: none; }
@media (max-width: 1023px) {
  .reg__row--extra { display: none; }
  .reg-foot-desktop { display: none; }
  .reg-foot-mobile { display: inline; }
}

/* ============ Заголовок секции (общий) ============ */
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin-bottom: 28px; }
.section__title { font-size: 25px; }
@media (min-width: 1024px) {
  .section__head { gap: 16px; margin-bottom: 44px; }
  .section__title { font-size: 40px; }
}

/* ============ TrustBar (сетка с волосяными линиями) ============ */
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
}
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-cell { background: var(--card); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.trust-cell__icon { color: var(--fg); }
.trust-cell__icon svg { width: 24px; height: 24px; }
.trust-cell__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.trust-cell__desc { display: none; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (min-width: 1024px) {
  .trust-cell { padding: 30px; gap: 16px; }
  .trust-cell__title { font-size: 18px; }
  .trust-cell__desc { display: block; }
}

/* ============ Tasks (bento) ============ */
.section__lead { font-size: 15px; color: var(--muted); line-height: 1.5; }
@media (min-width: 1024px) { .section__lead { font-size: 18px; } }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.bento-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--border);
}
@media (min-width: 1024px) { .bento-card { padding: 28px; gap: 18px; } }
.bento-card__icon { color: var(--fg); }
.bento-card__icon svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .bento-card__icon svg { width: 28px; height: 28px; } }
.bento-card__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; line-height: 1.15; }
.bento-card__desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@media (min-width: 1024px) {
  .bento-card--lg { grid-column: span 2; }
  .bento-card__title { font-size: 19px; }
  .bento-card--lg .bento-card__title { font-size: 22px; }
  .bento-card__desc { font-size: 14.5px; line-height: 1.5; }
}

.bento-card--accent { background: var(--accent); border-color: transparent; }
.bento-card--accent .bento-card__icon,
.bento-card--accent .bento-card__title { color: #fff; }
.bento-card--accent .bento-card__desc { color: rgba(255, 255, 255, 0.82); }
.bento-card__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  padding-top: 6px; font-weight: 600; font-size: 14px; color: #fff;
}
.bento-card__cta svg { width: 16px; height: 16px; }

/* ============ Footer (тёмный) ============ */
.footer { background: var(--fg); color: rgba(255, 255, 255, 0.66); }
.footer a { color: rgba(255, 255, 255, 0.66); transition: color 0.15s; }
.footer a:hover { color: #fff; }

.footer__top { display: grid; gap: 36px; padding-block: 52px 40px; }
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1.7fr 1fr 1.5fr; gap: 48px; padding-block: 64px 48px; }
}

.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer-logo { display: inline-flex; align-items: center; gap: 11px; }
.footer-logo__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px; background: #fff; color: var(--fg);
  font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
}
.footer-logo__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; letter-spacing: -0.02em; }
.footer__desc { font-size: 14px; line-height: 1.55; }
.footer__contacts { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer__contacts a { display: inline-flex; align-items: center; gap: 9px; }
.footer__contacts svg { width: 16px; height: 16px; flex: none; }

.footer__col-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer__req { margin-top: 18px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.5); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 22px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
}

/* ============ Documents (виды документов) ============ */
.doc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-card); overflow: hidden;
}
/* Моб: компактная плитка — мокап сверху, заголовок снизу, без описания */
.doc-cell { background: var(--card); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.doc-cell__sheet { flex: none; }
.doc-cell__sheet .sheet { width: 40px; height: 50px; }
.doc-cell__text { min-width: 0; }
.doc-cell__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; line-height: 1.25; }
.doc-cell__desc { display: none; margin-top: 5px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (min-width: 768px) {
  .doc-cell { flex-direction: row; gap: 16px; padding: 20px; }
  .doc-cell__sheet .sheet { width: 48px; height: 60px; }
  .doc-cell__title { font-size: 16px; }
  .doc-cell__desc { display: block; }
}
@media (min-width: 1024px) {
  .doc-cell { padding: 24px; gap: 18px; }
  .doc-cell__title { font-size: 17px; }
  .doc-cell__desc { font-size: 14px; }
}

/* ============ Калькулятор-форма ============ */
.calc-intro { display: grid; gap: 24px; margin-bottom: 36px; }
.calc-intro__text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.calc-intro__art { display: none; }
@media (min-width: 900px) {
  .calc-intro { grid-template-columns: 1fr auto; align-items: center; gap: 40px; margin-bottom: 44px; }
  .calc-intro__art { display: block; width: 200px; height: auto; }
}

.calc { display: grid; gap: 16px; }
@media (min-width: 1024px) { .calc { grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; } }

.calc-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px;
}
@media (min-width: 1024px) { .calc-form { padding: 36px; } }

/* Honeypot (скрытое поле-ловушка для ботов) */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Сообщение об успешной отправке (заменяет форму) */
.form-success {
  display: flex; flex-direction: column; gap: 8px; padding: 32px;
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--r-card);
}
.form-success strong { font-family: var(--font-head); font-size: 20px; color: var(--accent-strong); letter-spacing: -0.01em; }
.form-success span { color: var(--muted); }
.calc-form__fields { display: flex; flex-direction: column; counter-reset: step; margin-bottom: 18px; }
/* Пунктирные разделители между группами («смета») */
.field + .field { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
@media (min-width: 768px) {
  .calc-form__fields { margin-bottom: 24px; }
  .field + .field { margin-top: 22px; padding-top: 22px; }
}

.field__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.field__label::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong); font-family: var(--font-mono); font-size: 11px; flex: none;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center;
  padding: 9px 15px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--surface); font-size: 14px; font-weight: 500; color: var(--fg); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip::before {
  content: ""; display: inline-flex; align-items: center; justify-content: center;
  width: 6px; height: 6px; margin-right: 9px; flex: none; border-radius: 50%;
  background: var(--border-strong); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
  transition: background 0.15s ease, margin-right 0.15s ease;
}
.chip:hover { background: var(--border); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip:hover:not(:has(input:checked))::before { background: var(--muted); }
.chip:has(input:checked) { background: var(--fg); border-color: var(--fg); color: #fff; box-shadow: none; }
.chip:has(input:checked)::before { content: "✓"; width: auto; height: auto; margin-right: 6px; background: transparent; }
.chip:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Свитч способа связи (Телефон | Telegram) */
.seg { display: inline-flex; margin-top: 10px; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); }
.seg__opt { position: relative; display: inline-flex; }
.seg__opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg__btn svg { width: 15px; height: 15px; }
.seg__opt:has(input:checked) .seg__btn { background: var(--fg); color: #fff; }
.seg__opt:has(input:focus-visible) .seg__btn { outline: 2px solid var(--ring); outline-offset: 2px; }

.calc-form__row { display: grid; gap: 12px; }
@media (min-width: 560px) { .calc-form__row { grid-template-columns: 1fr 1fr; } }
.input, .textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--r-m); font: inherit; font-size: 15px; background: var(--bg); color: var(--fg);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input--error, .input--error:focus { border-color: #e0524d; box-shadow: 0 0 0 3px rgba(224, 82, 77, 0.14); }
.textarea { min-height: 64px; resize: vertical; line-height: 1.5; }
.calc-form__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Контакт + комментарий — в две колонки (не на всю ширину) */
.field-row { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border-strong); display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }
@media (min-width: 768px) { .field-row { margin-top: 22px; padding-top: 22px; } }
.field-row .field + .field { margin-top: 0; padding-top: 0; border-top: 0; }

/* Футер формы: согласие + кнопка */
.calc-form__foot { display: flex; flex-direction: column; gap: 16px; }
.calc-form__foot .calc-form__note { margin-top: 0; max-width: 380px; }
.calc-form__submit { width: 100%; white-space: nowrap; }
@media (min-width: 600px) {
  .calc-form__foot { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 24px; }
  .calc-form__submit { width: auto; padding-inline: 32px; }
}

.calc-aside {
  background: var(--fg); color: rgba(255, 255, 255, 0.72);
  border-radius: var(--r-card); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.calc-aside__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: -0.01em; }
.calc-aside__text { font-size: 14px; line-height: 1.5; }
.calc-aside__btn { margin-top: 4px; }
.calc-aside__list { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; font-size: 14px; }
.calc-aside__list li { display: flex; align-items: flex-start; gap: 9px; color: rgba(255, 255, 255, 0.82); }
/* На мобильном тёмная панель компактнее: заголовок + кнопка + 2 пункта */
@media (max-width: 767px) {
  .calc-aside { padding: 22px; }
  .calc-aside__text { display: none; }
  .calc-aside__list li:nth-child(3) { display: none; }
}
.calc-aside__list svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 1px; }

/* ============ FAQ (аккордеон) ============ */
.faq { display: grid; gap: 24px; }
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 1.7fr; gap: 48px; align-items: start; } }
.faq__intro { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1024px) { .faq__intro { position: sticky; top: 100px; } }
.faq__help { font-size: 14px; color: var(--muted); }
.faq__help a { color: var(--accent); font-weight: 600; }

.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.faq__q::-webkit-details-marker { display: none; }
@media (min-width: 1024px) { .faq__q { font-size: 17px; padding: 20px 0; } }
.faq__icon { flex: none; color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.faq__icon svg { width: 20px; height: 20px; }
.faq__item[open] .faq__icon { transform: rotate(180deg); color: var(--fg); }
.faq__a { padding: 0 0 20px; font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 64ch; }

/* ============ Process (как работаем) ============ */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(6, 1fr); gap: 24px; } }

.step { position: relative; padding-left: 54px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }

.step__num {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 14px; color: var(--fg); flex: none;
}
.step__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 7px; }
.step__desc { font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (min-width: 1024px) {
  .step { padding-left: 0; padding-bottom: 0; }
  .step::before { left: 40px; right: -24px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .step__num { position: static; margin-bottom: 22px; }
}

/* ============ Оживление: текстура + hover ============ */
.hero {
  background-image: radial-gradient(circle, rgba(14, 21, 37, 0.05) 1px, transparent 1.6px);
  background-size: 23px 23px;
}
.footer {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1.6px);
  background-size: 23px 23px;
}
.bento-card:not(.bento-card--accent) { transition: border-color 0.15s ease, transform 0.15s ease; }
.bento-card:not(.bento-card--accent):hover { border-color: var(--border-strong); transform: translateY(-2px); }
.bento-card--accent { transition: transform 0.15s ease; }
.bento-card--accent:hover { transform: translateY(-2px); }

/* ============ Categories (категории расходов) ============ */
/* Categories: облако пилюль (иконка + название), переносится по строкам */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--fg);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cat-pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.cat-pill__icon { display: inline-flex; color: var(--accent); }
.cat-pill__icon svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .cat-pill { font-size: 16px; padding: 14px 22px; } .cat-pill__icon svg { width: 22px; height: 22px; } }

/* ============ Benefits (почему выбирают) ============ */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 38px 40px; } }
.benefit__icon { display: inline-flex; color: var(--accent); margin-bottom: 12px; }
.benefit__icon svg { width: 26px; height: 26px; }
@media (min-width: 1024px) { .benefit__icon svg { width: 28px; height: 28px; } }
.benefit__title { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.2; }
.benefit__desc { display: none; font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (min-width: 1024px) {
  .benefit__title { font-size: 17px; margin-bottom: 7px; }
  .benefit__desc { display: block; }
}

/* ============ Case (пример задачи) ============ */
.case-card {
  background: var(--accent-soft); border: 1px solid rgba(17, 132, 90, 0.16);
  border-radius: var(--r-card); padding: 28px;
}
@media (min-width: 1024px) { .case-card { padding: 40px; } }
.case-card__lead { max-width: 760px; margin-bottom: 28px; font-size: 16px; line-height: 1.6; color: var(--fg); }
@media (min-width: 1024px) { .case-card__lead { font-size: 18px; } }
.case-flow { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .case-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px; } }
.case-step { background: var(--bg); border-radius: var(--r-m); padding: 20px; }
.case-step__label {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.case-step--result .case-step__label { color: var(--accent-strong); }
.case-step__text { font-size: 14px; line-height: 1.5; color: var(--fg); }
.case-flow__arrow { display: none; }
@media (min-width: 768px) {
  .case-flow__arrow { display: inline-flex; align-items: center; color: var(--accent); }
  .case-flow__arrow svg { width: 22px; height: 22px; }
}

/* ============ Final CTA (зелёный баннер) ============ */
.final-cta { background: var(--accent); color: #fff; }
.final-cta__inner {
  max-width: 720px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.final-cta__title { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: #fff; }
@media (min-width: 1024px) { .final-cta__title { font-size: 40px; } }
.final-cta__text { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
@media (min-width: 1024px) { .final-cta__text { font-size: 18px; } }
.final-cta__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; margin-top: 6px; }
@media (min-width: 560px) { .final-cta__actions { flex-direction: row; justify-content: center; width: auto; max-width: none; } }
.final-cta__primary { background: #fff; color: var(--accent-strong); }
.final-cta__primary:hover { background: rgba(255, 255, 255, 0.9); }
.final-cta__ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.final-cta__ghost:hover { border-color: #fff; }
.final-cta__note { font-size: 13px; color: rgba(255, 255, 255, 0.8); margin-top: 4px; }

/* ============ Split-раскладка (заголовок слева — контент справа) ============ */
.split { display: grid; gap: 28px; }
.split__head { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 330px 1fr; gap: 56px; align-items: start; }
  .split__head { position: sticky; top: 100px; gap: 16px; }
}

/* ============ Fit (подходит / не берём) ============ */
.fit { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .fit { grid-template-columns: 1fr 1fr; gap: 0; } }
.fit__col { display: flex; flex-direction: column; }
.fit__col--no { border-top: 1px solid var(--border); padding-top: 28px; }
@media (min-width: 768px) {
  .fit__col { padding-right: 44px; }
  .fit__col--no { border-top: 0; padding-top: 0; padding-right: 0; padding-left: 44px; border-left: 1px solid var(--border); }
}
.fit__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;
}
.fit__badge svg { width: 16px; height: 16px; }
.fit__badge--yes { color: var(--accent-strong); }
.fit__badge--no { color: var(--muted); }
.fit__intro { margin-bottom: 18px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.fit__list { display: flex; flex-direction: column; gap: 14px; }
.fit__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; }
.fit__list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.fit__list--no svg { color: var(--muted); }
.fit__note {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
  max-width: 760px; font-size: 15px; font-weight: 500; color: var(--fg); line-height: 1.55;
}

/* Моб: таб-переключатель «Кому подходит / не подходит» (CSS-only) */
.fit__tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill);
}
.fit__tab { position: relative; }
.fit__tab input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fit__tab > span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.fit__tab > span svg { width: 14px; height: 14px; }
.fit__tab:has(input:checked) > span { background: var(--fg); color: #fff; }
.fit__tab:has(input:focus-visible) > span { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (max-width: 767px) {
  .fit__badge { display: none; }
  .fit__col--no { border-top: 0; padding-top: 0; }
  .fit:has(.fit__tab input[value="yes"]:checked) .fit__col--no { display: none; }
  .fit:has(.fit__tab input[value="no"]:checked) .fit__col:not(.fit__col--no) { display: none; }
}
@media (min-width: 768px) { .fit__tabs { display: none; } }

/* ============ Sticky-CTA (мобайл) ============ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--pad-x); padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -12px rgba(14, 21, 37, 0.15);
  transform: translateY(120%); transition: transform 0.25s ease;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta__btn { flex: 1; }
.mobile-cta__tg {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: var(--r-m);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg);
}
.mobile-cta__tg svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 74px; } }

/* ============ Внутренние страницы ============ */
.page-hero__title { margin: 14px 0 24px; font-size: 34px; }
@media (min-width: 1024px) { .page-hero__title { font-size: 52px; margin: 16px 0 28px; } }
.page-hero__lead { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.page-hero__lead p { font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (min-width: 1024px) { .page-hero__lead p { font-size: 18px; } }

.principles { display: grid; grid-template-columns: 1fr; gap: 28px 40px; }
@media (min-width: 600px) { .principles { grid-template-columns: 1fr 1fr; } }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .contacts { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; } }
.contact-list { display: flex; flex-direction: column; gap: 6px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.contact-item__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--accent);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.contact-item__value { display: block; font-size: 16px; font-weight: 600; color: var(--fg); }
.contact-item:hover .contact-item__value { color: var(--accent); }

.geo {
  display: flex; gap: 14px; margin-top: 20px; padding: 22px;
  border-radius: var(--r-card); background: var(--card); border: 1px solid var(--border);
  background-image: radial-gradient(circle, rgba(14, 21, 37, 0.05) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
.geo__icon { display: inline-flex; color: var(--accent); flex: none; }
.geo__icon svg { width: 26px; height: 26px; }
.geo__title { font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 5px; }
.geo__text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.requisites { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.8; color: var(--muted); }
.contacts__form { background: var(--card); }
