/* ===== Налоговый навигатор ИП 2026 — лендинг ===== */

:root {
  /* Премиальная тёмная тема: глубокий сине-чёрный фон, индиго-фиолетовые акценты */
  --bg: #0a0b14;            /* почти чёрный с синевой */
  --bg-soft: #0e1020;       /* секции-подложки */
  --bg-dark: #060710;       /* футер, самый тёмный */
  --surface: #14172a;       /* карточки */
  --surface-2: #1b1f37;     /* поля ввода, вложенные блоки */
  --surface-3: #232843;     /* hover / прогресс-дорожки */
  --ink: #f1f3fb;           /* основной текст */
  --ink-soft: #aab2cf;      /* вторичный текст */
  --ink-mute: #6b7390;      /* приглушённый */
  --line: rgba(255,255,255,.09);   /* границы */
  --line-2: rgba(255,255,255,.14);
  --brand: #6366f1;         /* индиго */
  --brand-2: #a855f7;       /* фиолетовый */
  --brand-ink: #c7d2fe;     /* светлый акцент текста на тёмном */
  --win: #34d399;           /* зелёный (ярче для тёмного фона) */
  --win-soft: rgba(52,211,153,.12);
  --win-line: rgba(52,211,153,.35);
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 16px 40px -16px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 80px -24px rgba(99,102,241,.5);
  --maxw: 1140px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 760px; }
.section { padding: 88px 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.section__head p { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Кнопки ===== */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: var(--pad-y) var(--pad-x); border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,70,229,.6); }
.btn--primary:hover { box-shadow: 0 12px 26px -8px rgba(79,70,229,.7); transform: translateY(-1px); }
.btn--ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--light { background: #fff; color: #4338ca; }
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--lg { --pad-y: 15px; --pad-x: 28px; font-size: 16px; border-radius: 14px; }
.btn--sm { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.btn--block { width: 100%; }
.tg-ico { flex: none; margin-right: -2px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--win-soft); color: var(--win); font-weight: 700; font-size: 13.5px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--win-line);
}
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill--win { background: var(--win-soft); color: var(--win); border: 1px solid var(--win-line); }

/* ===== Навигация ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,20,.72); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 14px -6px rgba(79,70,229,.7);
}
.nav__links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.nav__links a:hover { color: var(--brand-ink); }
.nav .btn { margin-left: 8px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 80px; background: radial-gradient(120% 80% at 50% -10%, #161a33 0%, var(--bg) 55%); }
.hero__glow {
  position: absolute; inset: -30% -10% auto -10%; height: 700px; z-index: 0;
  background:
    radial-gradient(600px 320px at 75% 8%, rgba(168,85,247,.30), transparent 62%),
    radial-gradient(560px 300px at 18% 0%, rgba(99,102,241,.32), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 18px; }
.hero__subtitle { font-size: 18px; color: var(--ink-soft); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; margin: 28px 0 26px; flex-wrap: wrap; }
.hero__trust { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; }
.hero__trust li { font-size: 14px; color: var(--ink-soft); }
.hero__trust b { display: block; font-size: 24px; color: var(--ink); font-weight: 800; }
.hero__handle { margin: 0 0 24px; font-size: 14.5px; color: var(--ink-soft); }
.tg-handle { color: var(--brand-ink); font-weight: 700; }
.tg-handle:hover { text-decoration: underline; }
.footer__handle { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* Превью карточки */
.hero__preview { display: grid; place-items: center; }
.rcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg); width: 100%; max-width: 420px;
}
.rcard--float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.rcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rcard__label { font-size: 13px; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; }
.rcard__big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.rcard__sum { font-size: 32px; font-weight: 800; color: var(--brand-ink); margin-top: 4px; }
.rcard__sum span { font-size: 15px; font-weight: 600; color: var(--ink-mute); }
.rcard__save {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  background: var(--win-soft); color: var(--win); border: 1px solid var(--win-line);
  padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
}
.rcard__rate { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
.rcard__bars { margin-top: 20px; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; }
.bar__name { color: var(--ink-soft); font-weight: 600; }
.bar__track { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar__track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.bar:first-child .bar__track i { background: linear-gradient(90deg, #10b981, #34d399); }
.bar__val { text-align: right; color: var(--ink-mute); font-weight: 600; }

/* ===== Проблема ===== */
.problem { background: var(--bg-soft); }
.problem__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.problem__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.problem__col h3 { font-size: 19px; margin-bottom: 16px; }
.problem__col ul { list-style: none; display: grid; gap: 12px; }
.problem__col li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.problem__col--bad li::before { content: '✕'; position: absolute; left: 0; color: var(--danger); font-weight: 800; }
.problem__col--good { border-color: rgba(99,102,241,.45); box-shadow: var(--shadow); }
.problem__col--good li::before { content: '✓'; position: absolute; left: 0; color: var(--win); font-weight: 800; }
.problem__arrow { display: grid; place-items: center; font-size: 32px; color: var(--brand); font-weight: 800; }

/* ===== Калькулятор ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.calc__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.calc__form { padding: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; position: relative; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field .hint { font-weight: 500; color: var(--ink-mute); font-size: 12.5px; }

/* Вводная подсказка над формой */
.form-intro { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
/* Кнопка-подсказка «?» */
.help { display: inline-grid; place-items: center; width: 19px; height: 19px; vertical-align: middle; border-radius: 50%; border: none; background: var(--surface-3); color: var(--ink-soft); font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; line-height: 1; margin-left: 4px; font-family: inherit; transition: .15s; }
.help:hover { background: var(--brand); color: #fff; }
.chip-help { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; position: relative; }
.chip-help .help { width: auto; height: auto; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--brand-ink); }
.chip-help .help:hover { background: var(--brand); color: #fff; }
/* Поповер с текстом подсказки */
.help-pop { position: absolute; z-index: 20; left: 0; right: 0; margin-top: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 38px 14px 16px; box-shadow: var(--shadow); animation: popin .15s ease; }
.help-pop p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.help-pop__x { position: absolute; top: 8px; right: 10px; background: none; border: none; color: var(--ink-mute); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.help-pop__x:hover { color: var(--ink); }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.field input[type=text], .field input[type=number] {
  font-family: inherit; font-size: 17px; font-weight: 600; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  transition: border .15s, box-shadow .15s; width: 100%;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99,102,241,.25); background: var(--surface); }
.field--row { grid-template-columns: 1fr 1fr; gap: 16px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; user-select: none; transition: border .15s; }
.toggle:hover { border-color: var(--brand); }
.toggle__label { font-size: 13.5px; font-weight: 600; }
.switch { position: relative; width: 44px; height: 26px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #f1f3fb; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(18px); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--surface-3); width: 100%; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); cursor: pointer; }

.calc__privacy { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--win); background: var(--win-soft); border: 1px solid var(--win-line); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.field-warn { color: var(--warn); background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.32); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; margin-top: -4px; }
.field-warn[hidden] { display: none; }

.calc__result { display: grid; gap: 20px; }
.rcard--main { box-shadow: var(--shadow); }
.compare { padding: 22px 24px; }
.compare__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.compare__head h4 { font-size: 16px; font-weight: 700; }
.compare__hint { font-size: 12.5px; color: var(--ink-mute); }
.compare__list { display: grid; gap: 11px; }
.crow { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: .15s; }
.crow--best { background: var(--win-soft); border-color: var(--win-line); }
.crow--off { opacity: .55; }
.crow__name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.crow__tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); color: var(--ink-mute); }
.crow--best .crow__tag { background: var(--win); color: #fff; border-color: var(--win); }
.crow__sum { font-weight: 800; font-size: 16px; text-align: right; }
.crow__bar { grid-column: 1 / -1; height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.crow__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .5s ease; }
.crow--best .crow__bar i { background: linear-gradient(90deg, #10b981, #34d399); }
.crow__na { font-size: 13px; color: var(--ink-mute); font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: 6px; }
.crow--off { cursor: help; }
/* Маркер «?» рядом со словом «недоступен» */
.crow__why {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-soft); font-size: 11px; font-weight: 800; line-height: 1;
}
.crow--off:hover .crow__why, .crow--off:focus .crow__why, .crow--off.is-open .crow__why { background: var(--brand); color: #fff; }
/* Раскрывающаяся причина — скрыта по умолчанию, видна при наведении (десктоп) или тапе (.is-open) */
.crow__reason {
  grid-column: 1 / -1; overflow: hidden; max-height: 0; opacity: 0;
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft); text-align: left;
  transition: max-height .25s ease, opacity .2s ease, margin .2s ease;
}
.crow--off:hover .crow__reason, .crow--off:focus .crow__reason, .crow--off.is-open .crow__reason {
  max-height: 80px; opacity: 1; margin-top: 4px;
}
.crow--off:hover, .crow--off:focus, .crow--off.is-open { opacity: .9; outline: none; border-color: var(--line-2); }

/* Pro-замок */
.prolock { position: relative; overflow: hidden; padding: 24px; }
.prolock__blur { filter: blur(5px); opacity: .5; user-select: none; display: grid; gap: 14px; }
.prolock__row { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink-soft); }
.prolock__overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; background: linear-gradient(180deg, rgba(20,23,42,.55), rgba(20,23,42,.94)); padding: 20px; }
.prolock__lock { font-size: 30px; }
.prolock__overlay h4 { font-size: 18px; }
.prolock__overlay p { color: var(--ink-soft); font-size: 14px; max-width: 340px; margin-bottom: 6px; }
.calc__disclaimer { text-align: center; color: var(--ink-mute); font-size: 13px; max-width: 760px; margin: 30px auto 0; }

/* ===== Возможности ===== */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__ico { font-size: 30px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; }
.feature--pro { border-color: rgba(168,85,247,.4); }
.feature__tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: .05em; color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2)); padding: 3px 9px; border-radius: 999px; }

/* ===== Тарифы ===== */
.pricing { background: var(--bg-soft); }
.pricing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.plan__name { font-size: 15px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.plan__price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; }
.plan__period { font-size: 16px; font-weight: 600; color: var(--ink-mute); }
.plan__desc { color: var(--ink-soft); margin-bottom: 22px; }
.plan__list { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan__list li { font-size: 14.5px; }
.plan__list .muted { color: var(--ink-mute); }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.plan__note { text-align: center; font-size: 13px; color: var(--ink-mute); margin-top: 12px; }

/* ===== FAQ ===== */
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; transition: box-shadow .2s; }
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 24px; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--ink-soft); padding: 0 0 18px; font-size: 15px; }

/* ===== Финальный CTA ===== */
.cta-final { padding: 70px 0; }
.cta-final__box { background: linear-gradient(125deg, var(--brand), var(--brand-2)); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-final__box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 80% 0%, rgba(255,255,255,.18), transparent 60%); }
.cta-final__box h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; position: relative; }
.cta-final__box p { font-size: 18px; opacity: .92; margin: 14px auto 28px; max-width: 520px; position: relative; }
.cta-final .btn { position: relative; }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: #cbd5e1; padding: 50px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer { color: #fff; margin-bottom: 10px; }
.footer__brand p { font-size: 13.5px; color: var(--ink-mute); max-width: 360px; }
.footer__links { display: flex; gap: 22px; font-weight: 600; flex-wrap: wrap; }
.footer__links a:hover { color: #fff; }
.footer__disclaimer { font-size: 12.5px; color: #64748b; margin-top: 22px; line-height: 1.6; }

/* ===== Адаптив ===== */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__preview { order: -1; }
  .calc__layout { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .problem__grid { grid-template-columns: 1fr; }
  .problem__arrow { transform: rotate(90deg); }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .features__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .cta-final__box { padding: 44px 24px; }
}
