/* =============================================
   ДИЗАЙН-СИСТЕМА СРО ПСК — СВЕТЛАЯ ТЕМА 2.0
   IBM Plex Sans / Navy+Royal Blue / Mobile-first
   2026-06-15
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* =============================================
   CSS-ПЕРЕМЕННЫЕ
   ============================================= */
:root {
  /* ФОНЫ */
  --bg-primary:         #FFFFFF;
  --bg-secondary:       #F5F6F8;
  --bg-accent-subtle:   #EEF2FA;
  --bg-footer:          #1B2845;

  /* NAVY — бренд */
  --navy-900: #0F1E3D;
  --navy-800: #1B2845;
  --navy-700: #243359;
  --navy-600: #2E4275;
  --navy-100: #D6E0F5;
  --navy-50:  #EEF2FA;

  /* АКЦЕНТ CTA */
  --accent-blue:       #1D4ED8;
  --accent-blue-hover: #1E40AF;
  --accent-warm:       #B45309;
  --accent-warm-light: #FEF3C7;

  /* СЕРЫЕ */
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  /* СЕМАНТИКА */
  --color-text-primary:   var(--gray-900);
  --color-text-secondary: var(--gray-600);
  --color-text-brand:     var(--navy-900);
  --color-text-inverse:   #FFFFFF;
  --color-border:         var(--gray-200);
  --color-border-strong:  var(--gray-400);
  --color-border-navy:    var(--navy-100);
  --color-success:        #059669;
  --color-success-bg:     #ECFDF5;
  --color-error:          #DC2626;
  --color-error-bg:       #FEF2F2;

  /* ТЕНИ */
  --shadow-sm:        0 1px 3px rgba(15,30,61,.06), 0 1px 2px rgba(15,30,61,.04);
  --shadow-md:        0 4px 12px rgba(15,30,61,.08), 0 2px 4px rgba(15,30,61,.04);
  --shadow-lg:        0 8px 32px rgba(15,30,61,.10), 0 4px 8px rgba(15,30,61,.06);
  --shadow-xl:        0 20px 60px rgba(15,30,61,.12), 0 8px 20px rgba(15,30,61,.08);
  --shadow-card:      0 2px 8px rgba(15,30,61,.06);
  --shadow-card-hover:0 4px 20px rgba(15,30,61,.10);
  --shadow-calc:      0 8px 40px rgba(15,30,61,.10);

  /* РАДИУСЫ */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* ТИПОГРАФИКА */
  --font: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  /* SPACING (base 8px) */
  --s1:  4px;  --s2:  8px;  --s3: 12px;  --s4: 16px;
  --s5: 20px;  --s6: 24px;  --s8: 32px;  --s10: 40px;
  --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

  /* СЕКЦИИ */
  --section-py:    var(--s20);
  --section-py-lg: var(--s24);
  --cmax:   1200px;
  --cpx:    var(--s6);
  --header-h: 68px;

  /* АНИМАЦИИ */
  --dur-fast:  150ms;
  --dur-base:  200ms;
  --dur-slow:  350ms;
  --ease:      cubic-bezier(.4,0,.2,1);
  --ease-out:  cubic-bezier(0,0,.2,1);

  /* Z-INDEX */
  --z-header:     100;
  --z-sticky-cta:  50;
  --z-overlay:    200;
}

/* МОБИЛЬНЫЕ ПЕРЕОПРЕДЕЛЕНИЯ */
@media (max-width: 768px) {
  :root {
    --section-py:    48px;
    --section-py-lg: 56px;
    --cpx:    16px;
    --header-h: 60px;
  }
}
@media (max-width: 480px) {
  :root {
    --section-py: 40px;
  }
}

/* =============================================
   RESET / BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  color: var(--navy-900);
  line-height: 1.15;
}
h1 { font-size: clamp(1.875rem, 5vw, 3rem);    font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: clamp(1.125rem, 3vw, 1.5rem);  font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 500; }

p  { line-height: 1.65; }
a  { color: var(--accent-blue); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); }
ul, ol { list-style: none; }
table { border-collapse: collapse; }
input, textarea, select { font-family: var(--font); }

/* =============================================
   УТИЛИТЫ
   ============================================= */
.container {
  max-width: var(--cmax);
  margin: 0 auto;
  padding: 0 var(--cpx);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1; transform: none;
}
/* Fallback только для noscript / очень медленных браузеров — добавляется JS через 4s */
.anim-fallback [data-reveal] {
  opacity: 1; transform: none; transition: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =============================================
   HERO ANIMATIONS — stagger fade-up
   ============================================= */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.hero-anim.is-visible {
  opacity: 1;
  transform: none;
}
.hero-anim--1 { transition-delay: .05s; }
.hero-anim--2 { transition-delay: .15s; }
.hero-anim--3 { transition-delay: .28s; }
.hero-anim--4 { transition-delay: .42s; }
.hero-anim--5 { transition-delay: .56s; }
.hero-anim--6 { transition-delay: .68s; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim { opacity: 1; transform: none; transition: none; }
}

/* =============================================
   КНОПКИ
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  min-height: 48px;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  cursor: pointer;
}
.btn:focus-visible {
  outline: 3px solid rgba(29,78,216,.5);
  outline-offset: 2px;
}

/* PRIMARY — royal blue (живой синий, не чёрный navy) */
.btn-primary {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
}
.btn-primary:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  color: #FFFFFF;
  text-decoration: none;
}

/* SECONDARY — контурная navy */
.btn-secondary {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
  font-weight: 500;
}
.btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--navy-800);
  text-decoration: none;
}

/* GHOST — тихий */
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
  font-size: .9375rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--navy-800); text-decoration: underline; }

/* CTA КАЛЬКУЛЯТОРА — royal blue */
.btn-cta-calc {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
  width: 100%;
  padding: 16px 28px;
}
.btn-cta-calc:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-full { width: 100%; }

/* Loading */
.btn--loading { position: relative; pointer-events: none; }
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn--loading .btn-spinner { display: block; }
.btn--loading .btn-text { visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   ПРОГРЕСС-БАР ЧТЕНИЯ
   ============================================= */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200; pointer-events: none;
}
.read-progress__bar {
  height: 100%; width: 0;
  background: var(--accent-blue);
  transition: width .1s linear;
}

/* =============================================
   SKIP LINK
   ============================================= */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  z-index: 9999; padding: 12px 24px;
  background: var(--accent-blue); color: #fff;
  text-decoration: none; font-weight: 600;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* =============================================
   ШАПКА
   ============================================= */
.site-header {
  position: sticky;
  top: 0; z-index: var(--z-header);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  transition: box-shadow var(--dur-base) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.site-header.header--scrolled {
  box-shadow: 0 2px 8px rgba(15,30,61,.08);
}
/* На десктопе НЕ прятать при скролле вниз */
.site-header.header--hidden { transform: translateY(-100%); }
@media (min-width: 768px) {
  .site-header.header--hidden { transform: none; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--s6);
  max-width: var(--cmax);
  margin: 0 auto;
  padding: 0 var(--cpx);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo {
  width: 40px; height: 40px;
  background: var(--navy-800);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.header-brand-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.2;
  display: block;
}
.header-brand-sub {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.3;
  display: block;
}

.header-nav {
  display: none;
}
@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: var(--s5);
  }
  .header-nav a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--dur-fast);
  }
  .header-nav a:hover { color: var(--navy-800); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.header-phone {
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy-800);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent-blue); text-decoration: none; }

.header-phone-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  color: var(--navy-800);
  text-decoration: none;
  transition: background var(--dur-fast);
}
.header-phone-icon-btn:hover { background: var(--navy-100); }

/* Показываем/прячем в зависимости от ширины */
.header-phone-text { display: none; }
@media (min-width: 640px) {
  .header-phone-text { display: block; }
  .header-phone-icon-btn { display: none; }
}

.header-btn {
  display: none;
  font-size: .875rem;
  padding: 10px 18px;
  min-height: 40px;
}
@media (min-width: 640px) { .header-btn { display: inline-flex; } }

/* Бургер */
.header-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 9px;
}
@media (min-width: 1024px) { .header-burger { display: none; } }
.burger-line {
  display: block; width: 100%; height: 2px;
  background: var(--navy-800); border-radius: 2px;
  transition: transform var(--dur-base), opacity var(--dur-base);
}

/* Мобильное меню */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-h); left: 0; right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  z-index: calc(var(--z-header) - 1);
  padding: var(--s4) var(--cpx) var(--s6);
}
.mobile-menu.is-open { display: block; }
.mobile-menu nav {
  display: flex; flex-direction: column; gap: var(--s1);
}
.mobile-menu nav a {
  display: block;
  padding: 12px 8px;
  font-size: 1rem; font-weight: 500;
  color: var(--gray-800);
  border-radius: var(--r-md);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu nav a:hover { background: var(--bg-secondary); }
.mobile-menu-cta {
  margin-top: var(--s4);
  display: flex; flex-direction: column; gap: var(--s3);
}

/* =============================================
   HERO — первый экран
   ============================================= */
.hero {
  background: var(--bg-primary);
  padding: var(--s12) 0 var(--s10);
  position: relative;
  overflow: hidden;
}

/* Декор: чертёжная сетка */
.hero-decor {
  position: absolute;
  right: 0; top: 0;
  width: 45%; height: 100%;
  pointer-events: none; opacity: .06;
  display: none;
}
@media (min-width: 1024px) { .hero-decor { display: block; } }

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: var(--s5);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.hero-h1 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -.02em;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: var(--s5);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: var(--s8);
}

/* 4 цифры */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s8);
  max-width: 820px;
}
@media (max-width: 639px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}

.hero-stat {
  padding: var(--s5) var(--s3);
  border-right: 1px solid var(--color-border);
  min-width: 0;
}
.hero-stat:last-child { border-right: none; }
@media (max-width: 639px) {
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid var(--color-border); }
}
.hero-stat-num {
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.1;
  font-feature-settings: "tnum" 1;
  margin-bottom: 6px;
}
/* Числа в одну строку — не переносятся никогда */
.stat-nowrap {
  white-space: nowrap;
  display: inline-block;
}
.hero-stat-num--success { color: var(--color-success); }
.hero-stat-label {
  font-size: .75rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* CTA */
.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.hero-trust {
  font-size: .75rem;
  color: var(--gray-600);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.hero-trust-sep { color: var(--gray-400); font-size: 10px; }

/* =============================================
   БЛОК «БЕЗ ПОСРЕДНИКА» — 2-й экран
   ============================================= */
.no-middleman {
  background: var(--bg-secondary);
  padding: var(--section-py) 0;
}

.section-eyebrow {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}

.section-h2 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -.01em;
  margin-bottom: var(--s4);
}
.section-h2--accent {
  padding-left: var(--s5);
  border-left: 4px solid var(--accent-blue);
}

.section-sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: var(--s10);
}

/* Сравнение */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin-top: var(--s8);
}
@media (max-width: 639px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
  border-radius: var(--r-xl);
  padding: var(--s8);
}
.compare-card--bad  { background: #FEF2F2; border: 1px solid #FECACA; }
.compare-card--good { background: var(--color-success-bg); border: 1px solid #A7F3D0; }

.compare-badge {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: var(--s4); display: block;
}
.compare-card--bad  .compare-badge { color: #DC2626; }
.compare-card--good .compare-badge { color: var(--color-success); }

.compare-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--s4);
}
.compare-card--bad  h3 { color: #991B1B; }
.compare-card--good h3 { color: #065F46; }

.compare-list { display: flex; flex-direction: column; gap: var(--s3); }
.compare-item {
  display: flex; gap: var(--s3);
  align-items: flex-start;
  font-size: 1rem; line-height: 1.55;
}
.compare-item svg { flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
.compare-card--bad  .compare-item svg { color: #DC2626; }
.compare-card--good .compare-item svg { color: var(--color-success); }

/* =============================================
   БЛОК БОЛИ
   ============================================= */
.pain-section { background: var(--bg-primary); padding: var(--section-py) 0; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s10);
}
@media (max-width: 767px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}
.pain-card:hover {
  border-color: var(--navy-100);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.pain-card--nrs {
  border-color: var(--accent-blue);
  background: var(--bg-accent-subtle);
}

.pain-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-accent-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-600);
  margin-bottom: var(--s4);
}
.pain-card--nrs .pain-icon {
  background: rgba(29,78,216,.12);
  color: var(--accent-blue);
}
.pain-icon svg { width: 24px; height: 24px; }

.pain-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 500;
  color: var(--accent-blue);
  background: rgba(29,78,216,.08);
  border-radius: var(--r-full);
  padding: 4px 10px;
  margin-bottom: var(--s3);
}
.pain-card h3 { font-size: 1.125rem; margin-bottom: var(--s3); }
.pain-card p  { font-size: 1rem; color: var(--gray-700); line-height: 1.65; }

/* =============================================
   КАЛЬКУЛЯТОР — «остров внимания»
   ============================================= */
.calculator-section {
  background: var(--bg-accent-subtle);
  padding: var(--section-py) 0;
}

.calc-header {
  text-align: center;
  margin-bottom: var(--s10);
}
.calc-header .section-h2 { margin-bottom: var(--s3); }
.calc-header-sub {
  font-size: 1.125rem; color: var(--gray-600);
  max-width: 600px; margin: 0 auto; line-height: 1.65;
}

/* 2-колоночная сетка */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}
@media (max-width: 959px) { .calc-layout { grid-template-columns: 1fr; } }

/* Карточка калькулятора */
.calc-card {
  background: var(--bg-primary);
  border: 1px solid var(--navy-100);
  border-radius: var(--r-xl);
  padding: var(--s10);
  box-shadow: var(--shadow-calc);
  position: relative; overflow: hidden;
}
@media (max-width: 767px) { .calc-card { padding: var(--s6) var(--s5); } }

/* угловой декор убран — две диагонали читались как артефакт-крест */

.calc-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--s2);
  padding-left: var(--s4);
  border-left: 4px solid var(--accent-blue);
  line-height: 1.3;
}
.calc-sub {
  font-size: .875rem; color: var(--gray-600);
  margin-bottom: var(--s8);
  padding-left: var(--s4);
  line-height: 1.5;
}

/* Поле */
.calc-field { margin-bottom: var(--s6); }
.calc-label {
  display: block;
  font-size: .875rem; font-weight: 500;
  color: var(--gray-800);
  margin-bottom: var(--s3);
}
.calc-hint {
  font-size: .75rem; color: var(--gray-600);
  margin-top: var(--s2); line-height: 1.5;
}

/* Таб-переключатели уровней */
.calc-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
}
@media (max-width: 479px) { .calc-tabs { grid-template-columns: repeat(2, 1fr); } }

.calc-tab { position: relative; }
.calc-tab input[type="radio"] {
  position: absolute; width: 1px; height: 1px; opacity: 0;
}
.calc-tab label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s3) var(--s2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  cursor: pointer; text-align: center;
  transition: all var(--dur-fast);
  min-height: 60px; gap: 3px;
}
.tab-level {
  font-size: .875rem; font-weight: 600;
  color: var(--gray-800); line-height: 1.2;
}
.tab-sum {
  font-size: .6875rem; color: var(--gray-600);
  line-height: 1.3;
  font-feature-settings: "tnum" 1;
}
.calc-tab input:checked + label {
  background: var(--navy-800);
  border-color: var(--navy-800);
  box-shadow: var(--shadow-md);
}
.calc-tab input:checked + label .tab-level,
.calc-tab input:checked + label .tab-sum { color: #fff; }
.calc-tab input:focus-visible + label {
  outline: 3px solid rgba(29,78,216,.4);
  outline-offset: 2px;
}
.calc-tab label:hover {
  border-color: var(--navy-100);
  background: var(--bg-accent-subtle);
}
.calc-tab input:checked + label:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
}

/* Тумблер ОДО */
.toggle-row {
  display: flex; align-items: flex-start; gap: var(--s3);
}
.toggle-wrap { flex-shrink: 0; margin-top: 2px; }
.toggle-switch {
  position: relative; width: 44px; height: 24px; display: inline-block;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--gray-200);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--dur-base);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--dur-base);
  box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .toggle-slider { background: var(--navy-800); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:focus-visible + .toggle-slider {
  outline: 3px solid rgba(29,78,216,.4);
  outline-offset: 2px;
}
.toggle-text { flex: 1; }
.toggle-text label {
  font-size: .875rem; font-weight: 500;
  color: var(--gray-800); cursor: pointer;
  display: block; margin-bottom: 4px;
}
.toggle-hint { font-size: .75rem; color: var(--gray-600); line-height: 1.5; }

/* ОДО fieldset */
.odo-fieldset {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease-out), opacity .35s;
  opacity: 0;
}
.odo-fieldset.is-open { max-height: 200px; opacity: 1; }

/* Чекбокс новичок */
.calc-checkbox {
  display: flex; align-items: center; gap: var(--s3);
}
.calc-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--navy-800);
  cursor: pointer;
}
.calc-checkbox label {
  font-size: .875rem; color: var(--gray-700); cursor: pointer;
}

/* Итог */
.calc-result {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s5) var(--s6);
  margin-top: var(--s6);
}
.calc-result-title {
  font-size: .75rem; font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: var(--s4);
}
.calc-rows { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s4); }
.calc-row {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: var(--s4);
  font-size: .875rem; color: var(--gray-700);
}
.calc-row-label { flex: 1; }
.calc-row-badge { font-size: .6875rem; color: var(--gray-400); font-weight: 500; }
.calc-row-val {
  font-weight: 500; color: var(--navy-900);
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
}
.calc-divider { border: none; border-top: 1px solid var(--gray-200); margin: var(--s3) 0; }
.calc-total-row {
  display: flex; justify-content: space-between;
  align-items: center; gap: var(--s4);
}
.calc-total-label { font-size: 1rem; font-weight: 600; color: var(--navy-900); }
.calc-total-val {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy-900);
  font-feature-settings: "tnum" 1;
  line-height: 1;
}
.calc-total-val.is-bumped { animation: bump .4s var(--ease-out); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.06)} 100%{transform:scale(1)} }

.calc-note {
  font-size: .75rem; color: var(--gray-600);
  margin-top: var(--s3); line-height: 1.5;
}
.calc-note--ok { color: var(--color-success); font-weight: 500; }

.calc-btn-wrap { margin-top: var(--s5); }
.calc-micro {
  font-size: .75rem; color: var(--gray-600);
  margin-top: var(--s2); text-align: center;
}

/* Блок «не переплати» */
.no-overpay-card {
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--s10);
  box-shadow: var(--shadow-card);
}
@media (max-width: 767px) { .no-overpay-card { padding: var(--s6); } }

.no-overpay-icon {
  width: 56px; height: 56px;
  background: var(--accent-warm-light);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-warm);
  margin-bottom: var(--s5);
}
.no-overpay-icon svg { width: 28px; height: 28px; }
.no-overpay-card h3 { font-size: 1.25rem; margin-bottom: var(--s4); }
.no-overpay-card p {
  font-size: 1rem; color: var(--gray-700);
  line-height: 1.65; margin-bottom: var(--s5);
}

/* Таблица уровней */
.levels-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  margin-top: var(--s4);
}
.levels-table {
  border-collapse: collapse;
  width: 100%; min-width: 320px;
  font-size: .875rem;
}
.levels-table th {
  background: var(--bg-secondary);
  color: var(--gray-800); font-weight: 600;
  padding: 10px 14px; text-align: left;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.levels-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--gray-900);
}
.levels-table tr:last-child td { border-bottom: none; }
.levels-table tr:hover td { background: var(--gray-50); }
.levels-table tr.row-rec td { background: var(--bg-accent-subtle); font-weight: 500; }
.levels-table .rec-note {
  display: block; font-size: .6875rem;
  color: var(--accent-blue); font-weight: 400;
  margin-top: 2px;
}

/* =============================================
   ОФФЕР (5 пунктов)
   ============================================= */
.offer-section { background: var(--bg-secondary); padding: var(--section-py) 0; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s10);
}
@media (max-width: 959px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: box-shadow var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}
.offer-card:hover {
  border-color: var(--navy-100);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.offer-card--featured {
  border-color: var(--accent-blue);
  background: var(--bg-accent-subtle);
}
.offer-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--bg-accent-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-600);
  margin-bottom: var(--s4);
}
.offer-card--featured .offer-icon { background: rgba(29,78,216,.12); color: var(--accent-blue); }
.offer-icon svg { width: 24px; height: 24px; }
.offer-badge {
  display: inline-block;
  font-size: .6875rem; font-weight: 500;
  color: var(--accent-blue);
  background: rgba(29,78,216,.08);
  border-radius: var(--r-full);
  padding: 3px 10px;
  margin-bottom: var(--s3);
}
.offer-card h3 { font-size: 1.0625rem; margin-bottom: var(--s3); }
.offer-card p  { font-size: .9375rem; color: var(--gray-700); line-height: 1.65; }

.offer-cta { margin-top: var(--s10); text-align: center; }

/* =============================================
   ДОВЕРИЕ
   ============================================= */
.trust-section { background: var(--bg-primary); padding: var(--section-py) 0; }

.trust-intro { max-width: 640px; margin-bottom: var(--s10); }
.trust-intro p { font-size: 1.125rem; color: var(--gray-600); margin-top: var(--s3); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
@media (max-width: 959px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .trust-grid { grid-template-columns: 1fr; } }

.trust-card {
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: box-shadow var(--dur-base), border-color var(--dur-base);
}
.trust-card:hover { border-color: var(--navy-100); box-shadow: var(--shadow-card-hover); }

.trust-num {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700; color: var(--navy-900);
  line-height: 1.1; margin-bottom: var(--s2);
  font-feature-settings: "tnum" 1;
}
.trust-num--warm { color: var(--accent-warm); }
.trust-label { font-size: .875rem; color: var(--gray-600); line-height: 1.5; margin-bottom: var(--s4); }

.trust-link {
  font-size: .875rem; color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex; align-items: center; gap: 4px;
}
.trust-link:hover { color: var(--accent-blue-hover); }
.trust-link svg { width: 14px; height: 14px; }

/* Карточка менеджера */
.manager-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--navy-100);
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: var(--s4);
  color: var(--navy-600);
  font-size: 1.5rem; font-weight: 700;
}
.manager-avatar img { width: 100%; height: 100%; object-fit: cover; }
.manager-name { font-size: 1rem; font-weight: 600; color: var(--navy-900); margin-bottom: 4px; }
.manager-role { font-size: .875rem; color: var(--gray-600); margin-bottom: var(--s3); }
.manager-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; color: var(--color-success); font-weight: 500;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); flex-shrink: 0; }

/* Карточка НОПРИЗ */
.noprz-logo {
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px;
  margin-bottom: var(--s4);
  font-size: .875rem; font-weight: 700;
  color: var(--navy-800); letter-spacing: .02em;
}

/* Карточка географии */
.geo-list { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.geo-item {
  display: flex; align-items: center; gap: var(--s2);
  font-size: .875rem; color: var(--gray-700);
}
.geo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); flex-shrink: 0; }

/* =============================================
   ШАГИ ВСТУПЛЕНИЯ
   ============================================= */
.steps-section { background: var(--bg-secondary); padding: var(--section-py) 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s3);
  margin-top: var(--s10);
  position: relative;
}
@media (max-width: 959px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; }
}
.steps-grid::before {
  content: ''; position: absolute;
  top: 28px; left: 0; right: 0; height: 2px;
  background: var(--navy-100); z-index: 0;
}
@media (max-width: 959px) { .steps-grid::before { display: none; } }

.step-item {
  position: relative; z-index: 1;
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4);
  text-align: center;
  transition: border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base);
}
.step-item--active { border-color: var(--navy-100); box-shadow: var(--shadow-md); }
@media (hover: hover) {
  .step-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--navy-100); }
}

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--navy-100);
  color: var(--navy-600);
  font-size: .875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s4);
  transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}
.step-item--active .step-num { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.step-item h3 { font-size: .875rem; font-weight: 600; color: var(--navy-900); margin-bottom: var(--s2); line-height: 1.4; }
.step-item p  { font-size: .75rem; color: var(--gray-600); line-height: 1.5; }

@media (max-width: 959px) {
  .step-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: start;
    text-align: left;
    gap: var(--s2) var(--s4);
    padding: var(--s4) var(--s5);
  }
  .step-num { margin: 0; grid-column: 1; grid-row: 1 / span 2; }
  .step-item h3 { grid-column: 2; margin: 0 0 var(--s1); }
  .step-item p  { grid-column: 2; }
}

/* =============================================
   FAQ
   ============================================= */
.faq-section { background: var(--bg-primary); padding: var(--section-py) 0; }

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s12);
  align-items: start;
  margin-top: var(--s8);
}
@media (max-width: 767px) { .faq-layout { grid-template-columns: 1fr; gap: var(--s6); } }

.faq-sidebar p { font-size: 1rem; color: var(--gray-600); margin-top: var(--s3); line-height: 1.65; }
.faq-contact-box {
  margin-top: var(--s6); padding: var(--s5);
  background: var(--bg-accent-subtle);
  border-radius: var(--r-lg);
  border: 1px solid var(--navy-100);
}
.faq-contact-box p { font-size: .875rem; margin-bottom: var(--s3); margin-top: 0; }
.faq-contact-box a {
  font-size: .875rem; font-weight: 600;
  color: var(--navy-800); text-decoration: none;
  display: block; margin-bottom: var(--s2);
}
.faq-contact-box a:hover { color: var(--accent-blue); }

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-question {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding: var(--s5) 0;
  cursor: pointer; text-align: left;
}
.faq-question h3 {
  font-size: 1rem; font-weight: 500;
  color: var(--navy-900); line-height: 1.45; flex: 1;
}
.faq-item.is-open .faq-question h3 { font-weight: 600; color: var(--navy-800); }

.faq-chevron {
  color: var(--navy-600); flex-shrink: 0;
  width: 20px; height: 20px;
  transition: transform var(--dur-base) var(--ease);
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease-out), padding .35s;
}
.faq-item.is-open .faq-answer { max-height: 400px; padding-bottom: var(--s5); }
.faq-answer p { font-size: 1rem; color: var(--gray-700); line-height: 1.65; }

/* =============================================
   ЛИД-МАГНИТ
   ============================================= */
.leadmagnet-section { background: var(--bg-secondary); padding: var(--section-py) 0; }

.leadmagnet-card {
  background: var(--bg-primary);
  border: 1px solid var(--navy-100);
  border-radius: var(--r-xl);
  padding: var(--s10);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s10); align-items: center;
}
@media (max-width: 767px) {
  .leadmagnet-card { grid-template-columns: 1fr; padding: var(--s6); gap: var(--s6); }
}

.lm-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: var(--bg-accent-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-blue); margin-bottom: var(--s5);
}
.lm-icon svg { width: 28px; height: 28px; }

.leadmagnet-text h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-bottom: var(--s4); }
.leadmagnet-text p  { font-size: 1rem; color: var(--gray-600); line-height: 1.65; margin-bottom: var(--s4); }

.checklist { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.checklist-item {
  display: flex; align-items: flex-start; gap: var(--s2);
  font-size: .875rem; color: var(--gray-700);
}
.checklist-item svg { color: var(--color-success); flex-shrink: 0; margin-top: 1px; width: 18px; height: 18px; }

.lm-form { display: flex; flex-direction: column; gap: var(--s3); }
.lm-form-title { font-size: 1.25rem; font-weight: 600; color: var(--navy-900); margin-bottom: var(--s2); }
.lm-form-sub   { font-size: .875rem; color: var(--gray-600); margin-bottom: var(--s2); }

/* =============================================
   ФОРМА ЗАЯВКИ
   ============================================= */
.form-section { background: var(--bg-accent-subtle); padding: var(--section-py) 0; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12); align-items: start;
}
@media (max-width: 767px) { .form-layout { grid-template-columns: 1fr; gap: var(--s8); } }

.form-info h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); margin-bottom: var(--s4); }
.form-info p  { font-size: 1.125rem; color: var(--gray-600); line-height: 1.65; margin-bottom: var(--s6); }
.form-benefits { display: flex; flex-direction: column; gap: var(--s3); }
.form-benefit  { display: flex; align-items: flex-start; gap: var(--s3); font-size: 1rem; color: var(--gray-700); }
.form-benefit svg { color: var(--color-success); flex-shrink: 0; margin-top: 2px; width: 20px; height: 20px; }

.form-card {
  background: var(--bg-primary);
  border-radius: var(--r-xl);
  padding: var(--s10);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--navy-100);
}
@media (max-width: 479px) { .form-card { padding: var(--s6) var(--s4); } }

.form-title {
  font-size: 1.375rem; font-weight: 600;
  color: var(--navy-900); margin-bottom: var(--s6);
  line-height: 1.3;
}

.form-group { margin-bottom: var(--s5); }
.form-label {
  display: block;
  font-size: .8125rem; font-weight: 500;
  color: var(--gray-800); margin-bottom: 6px;
}
.form-label .req { color: var(--color-error); margin-left: 2px; }

.form-input,
.form-textarea {
  display: block; width: 100%; height: 48px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--r-md);
  padding: 0 16px;
  font-size: 1rem; /* не меньше 16px — iOS не зумит */
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--bg-primary);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none;
}
.form-textarea {
  height: auto; min-height: 96px;
  padding: 12px 16px; resize: vertical; line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-400); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,.15);
  outline: none;
}
.form-input.is-error { border-color: var(--color-error); }
.form-input.is-error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.form-err {
  font-size: .75rem; color: var(--color-error);
  margin-top: 5px; display: block; min-height: 16px;
}

/* Спойлер ИНН/комментарий */
.spoiler-toggle {
  background: none; border: none;
  font-family: var(--font); font-size: .875rem;
  color: var(--accent-blue); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: underline; text-underline-offset: 2px;
  margin-bottom: var(--s2);
}
.spoiler-toggle:hover { color: var(--accent-blue-hover); }
.spoiler-chevron { transition: transform var(--dur-base); width: 16px; height: 16px; }
.spoiler-chevron.is-open { transform: rotate(180deg); }

.spoiler-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease-out), opacity .35s;
  opacity: 0;
}
.spoiler-body.is-open { max-height: 300px; opacity: 1; }

/* Согласие */
.consent-row {
  display: flex; align-items: flex-start; gap: var(--s3);
  margin-bottom: var(--s4);
}
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--navy-800); cursor: pointer;
}
.consent-text { font-size: .875rem; color: var(--gray-600); line-height: 1.5; }
.consent-text a { color: var(--accent-blue); }
.consent-err { font-size: .75rem; color: var(--color-error); display: block; margin-top: 4px; }

/* Trust-строка над кнопкой */
.form-trust-line {
  font-size: .75rem; color: var(--gray-600);
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  align-items: center; margin-bottom: var(--s4);
}
.form-trust-sep { color: var(--gray-400); }

/* Счётчик символов */
.textarea-footer {
  display: flex; justify-content: flex-end;
  font-size: .75rem; color: var(--gray-400);
  margin-top: 4px;
}

/* Успех/ошибка */
.form-success {
  display: none; padding: var(--s8);
  text-align: center;
  background: var(--color-success-bg);
  border-radius: var(--r-lg);
  border: 1px solid #A7F3D0;
}
.form-success.is-shown { display: block; }
.form-success h3 { font-size: 1.5rem; color: #065F46; margin-bottom: var(--s3); }
.form-success p  { font-size: 1rem; color: #065F46; line-height: 1.65; }
.form-success-phone { margin-top: var(--s4); font-size: 1.125rem; font-weight: 600; color: #065F46; }

.form-send-error {
  padding: var(--s4);
  background: var(--color-error-bg);
  border: 1px solid #FECACA;
  border-radius: var(--r-md);
  font-size: .875rem; color: var(--color-error);
  margin-top: var(--s4);
}

/* =============================================
   STICKY MOBILE CTA
   ============================================= */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky-cta);
  background: var(--bg-primary);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(15,30,61,.08);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 767px) {
  .sticky-cta.is-visible { display: block; }
}
.sticky-cta .btn-primary { width: 100%; min-height: 52px; }

/* =============================================
   ПОДВАЛ
   ============================================= */
.site-footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,.8);
  padding: var(--s16) 0 var(--s10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s10);
  margin-bottom: var(--s12);
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s8); } }

.footer-brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.footer-logo {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9); font-size: .8125rem; font-weight: 700;
}
.footer-brand-name { font-size: .875rem; font-weight: 600; color: #fff; display: block; }
.footer-brand-sub  { font-size: 11px; color: rgba(255,255,255,.5); display: block; }

.footer-desc {
  font-size: .875rem; line-height: 1.65;
  color: rgba(255,255,255,.6);
  max-width: 320px; margin-bottom: var(--s5);
}
.footer-rekviz { display: flex; flex-direction: column; gap: var(--s2); }
.footer-ritem {
  font-size: .75rem; color: rgba(255,255,255,.5);
  display: flex; gap: var(--s2); align-items: flex-start;
}
.footer-ritem strong { color: rgba(255,255,255,.75); font-weight: 500; white-space: nowrap; }

.footer-col-title { font-size: .875rem; font-weight: 600; color: #fff; margin-bottom: var(--s4); }

.footer-contacts { display: flex; flex-direction: column; gap: var(--s3); }
.footer-contact { display: flex; flex-direction: column; gap: 2px; }
.footer-contact a { font-size: .875rem; color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; }
.footer-contact a:hover { color: #fff; text-decoration: none; }
.footer-contact span { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-offices { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: var(--s4); line-height: 1.6; }

.footer-links { display: flex; flex-direction: column; gap: var(--s3); }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color var(--dur-fast); }
.footer-links a:hover { color: #fff; }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin-bottom: var(--s6); }

.footer-bottom {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: var(--s4);
}
.footer-copy    { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-disclaimer {
  font-size: .6875rem; color: rgba(255,255,255,.35);
  max-width: 540px; line-height: 1.5; text-align: right;
}
@media (max-width: 639px) { .footer-disclaimer { text-align: left; } }

/* =============================================
   PRINT
   ============================================= */
@media print {
  .site-header, .sticky-cta, .read-progress { display: none; }
  body { padding-bottom: 0; }
  * { box-shadow: none !important; }
}


/* =============================================
   v3 — БРЕНД-КОД «ПРОЕКТНОЙ ДОКУМЕНТАЦИИ»
   Все новые блоки из брейншторм_бренд.md
   ============================================= */

/* -------------------------------------------
   КООРДИНАТНАЯ СЕТКА — фирменный паттерн-подложка
   Opacity ≤ 6%, никогда не мешает тексту
   ------------------------------------------- */
.psk-grid-bg {
  background-image:
    linear-gradient(to right,  rgba(27,40,69,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,40,69,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Координатные засечки по верхнему краю секции — «поле чертежа» */
.psk-ruler-top {
  position: relative;
}
.psk-ruler-top::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    to right,
    var(--navy-100) 0, var(--navy-100) 1px,
    transparent 1px, transparent 24px
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

/* -------------------------------------------
   ШТАМП РЕЕСТРА — главный знак бренда
   radius:0 намеренно — это штамп, не карточка
   ------------------------------------------- */
.psk-stamp {
  border: 1.5px solid var(--navy-800);
  border-radius: 0;
  font-feature-settings: "tnum" 1;
  background: #FFFFFF;
  display: inline-block;
}

/* Мини-штамп в hero */
.hero-stamp {
  float: right;
  margin: 0 0 var(--s6) var(--s6);
  min-width: 240px;
  font-size: .8125rem;
}
@media (max-width: 767px) {
  .hero-stamp { float: none; display: block; margin: 0 0 var(--s6) 0; width: 100%; max-width: 320px; }
}

.psk-stamp__title {
  background: var(--navy-800);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 12px;
  font-feature-settings: "tnum" 1;
}

.psk-stamp__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-top: 1px solid var(--navy-100);
}
.psk-stamp__label {
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 6px 10px;
  border-right: 1px solid var(--navy-100);
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.psk-stamp__value {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy-900);
  padding: 6px 10px;
  font-feature-settings: "tnum" 1;
  display: flex;
  align-items: center;
}

/* Большой штамп в trust-блоке */
.trust-stamp {
  display: block;
  margin: 0 0 var(--s8) 0;
  max-width: 560px;
}
.psk-stamp__header {
  background: var(--navy-800);
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: baseline;
  gap: var(--s4);
}
.psk-stamp__title-big {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .06em;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.psk-stamp__subtitle {
  color: rgba(255,255,255,.6);
  font-size: .6875rem;
  line-height: 1.4;
}
.psk-stamp__body .psk-stamp__row {
  grid-template-columns: 140px 1fr;
}
.psk-stamp__body .psk-stamp__label {
  font-size: 11px;
}
.psk-stamp__body .psk-stamp__value {
  font-size: .875rem;
}
.psk-stamp__footer {
  border-top: 1px solid var(--navy-100);
  padding: var(--s3) var(--s5);
}

/* -------------------------------------------
   «АРТИКУЛ ДОВЕРИЯ» — №СРО как маркировка
   ------------------------------------------- */
.psk-article-num {
  font-family: var(--font);
  font-feature-settings: "tnum" 1;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: .02em;
}

/* -------------------------------------------
   ЦИФРЫ КАК «СПЕЦИФИКАЦИЯ» — dot-leader линии
   ------------------------------------------- */
.psk-spec-block .hero-stat-num {
  position: relative;
}

/* Dot-leaders в строках калькулятора */
.psk-spec-rows .calc-row {
  position: relative;
}
.calc-row-dots {
  flex: 1;
  border-bottom: 1px dotted var(--gray-300);
  margin: 0 var(--s2);
  margin-bottom: 4px;
  min-width: 20px;
  align-self: flex-end;
}

/* -------------------------------------------
   ШТАМП-ВЕРДИКТ «ДОПУЩЕНО»
   Используется максимум 2-3 раза на лендинг
   Лёгкий наклон = «поставили печать»
   ------------------------------------------- */
.psk-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--color-success);
  color: var(--color-success);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  background: var(--color-success-bg);
  font-feature-settings: "tnum" 1;
  user-select: none;
}
@media (prefers-reduced-motion: reduce) {
  .psk-verdict { transform: none; }
}

/* -------------------------------------------
   МИКРОКОПИЯ — «ПОМЕТКИ НА ПОЛЯХ»
   Голос наставника, карандашные пометки
   ------------------------------------------- */
.psk-margin-note {
  font-size: .8125rem;
  color: var(--gray-500, #6B7280);
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid var(--gray-200);
  padding-left: var(--s3);
  margin: var(--s3) 0;
}

/* -------------------------------------------
   АВТОФОРМА ПО ИНН
   ------------------------------------------- */
.inn-section {
  background: var(--bg-primary);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--color-border);
}

.inn-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: start;
}
@media (max-width: 767px) {
  .inn-layout { grid-template-columns: 1fr; gap: var(--s8); }
}

.inn-intro .section-h2 {
  margin-bottom: var(--s4);
}
.inn-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: var(--s4);
}

.inn-features {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s5);
}
.inn-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: .9375rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.inn-feature svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.inn-form-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--navy-100);
  border-radius: var(--r-xl);
  padding: var(--s8);
  box-shadow: var(--shadow-calc);
  position: relative;
}
@media (max-width: 479px) {
  .inn-form-card { padding: var(--s5) var(--s4); }
}

.inn-input-row {
  display: flex;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.inn-input {
  flex: 1;
  height: 52px;
  font-size: 1.125rem;
  font-feature-settings: "tnum" 1;
  letter-spacing: .02em;
}
.inn-btn {
  width: auto;
  padding: 0 var(--s6);
  height: 52px;
  white-space: nowrap;
}

.inn-hint {
  font-size: .75rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.inn-error-msg {
  font-size: .875rem;
  color: var(--color-error);
  padding: var(--s3) var(--s4);
  background: var(--color-error-bg);
  border: 1px solid #FECACA;
  border-radius: var(--r-md);
  margin-top: var(--s3);
  line-height: 1.5;
}

.inn-demo-note {
  font-size: .75rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: var(--s3);
  font-style: italic;
}

/* Карточка результата ИНН */
.inn-card {
  margin-top: var(--s5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.inn-card.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .inn-card { opacity: 1; transform: none; transition: none; }
}

.inn-found-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-success);
  background: var(--color-success-bg);
  border: 1px solid #A7F3D0;
  border-radius: var(--r-full);
  padding: 4px 12px;
  margin-bottom: var(--s4);
  letter-spacing: .02em;
}

.inn-company-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--s4);
  line-height: 1.3;
}

.inn-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--s4);
}
.inn-detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--color-border);
  font-size: .875rem;
}
.inn-detail-row:last-child { border-bottom: none; }
.inn-detail-row dt {
  padding: 8px 12px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--bg-secondary);
  border-right: 1px solid var(--color-border);
}
.inn-detail-row dd {
  padding: 8px 12px;
  color: var(--gray-900);
  line-height: 1.4;
  font-feature-settings: "tnum" 1;
}

/* Вердикт по ОКВЭД */
.inn-verdict {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: .875rem;
  font-weight: 600;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  margin-bottom: var(--s4);
}
.inn-verdict--ok {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #A7F3D0;
}
.inn-verdict--warn {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.inn-progress-hint {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: var(--s4);
}

.inn-calc-btn {
  width: 100%;
  margin-bottom: var(--s2);
}

.inn-micro {
  font-size: .75rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.5;
}

/* -------------------------------------------
   ЦИТАТА ИВАНА — блок-врезка
   ------------------------------------------- */
.ivan-quote {
  margin-top: var(--s10);
  display: flex;
  gap: var(--s5);
  align-items: flex-start;
  background: var(--bg-accent-subtle);
  border: 1px solid var(--navy-100);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: var(--s6) var(--s8);
}
@media (max-width: 639px) {
  .ivan-quote { flex-direction: column; padding: var(--s5) var(--s5); }
}

.ivan-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--navy-100);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-600);
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.ivan-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ivan-quote blockquote {
  flex: 1;
}
.ivan-quote blockquote p {
  font-size: 1rem;
  color: var(--navy-900);
  line-height: 1.7;
  margin-bottom: var(--s3);
  font-style: italic;
}
.ivan-quote blockquote footer {
  font-size: .875rem;
  color: var(--gray-500, #6B7280);
  font-style: normal;
  margin-top: var(--s2);
  padding-left: var(--s3);
  border-left: 2px solid var(--navy-100);
}
.ivan-quote blockquote footer strong {
  color: var(--navy-900);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* Обновлённая карточка Ивана в trust-блоке */
.ivan-card {
  border-color: var(--navy-100);
  background: var(--bg-accent-subtle);
}
.ivan-tagline {
  font-size: .875rem;
  color: var(--navy-800);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--s3);
}

/* -------------------------------------------
   НАВИГАЦИОННАЯ РАЗВИЛКА (НОК для строителей)
   ------------------------------------------- */
.nok-crosslink {
  background: var(--bg-secondary);
  padding: var(--s10) 0;
  border-top: 1px solid var(--color-border);
}

.nok-crosslink-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
  padding: var(--s6) var(--s8);
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
}
@media (max-width: 767px) {
  .nok-crosslink-inner { flex-direction: column; align-items: flex-start; padding: var(--s5); gap: var(--s5); }
  .nok-crosslink-btn { width: 100%; }
}

.nok-crosslink-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-500, #6B7280);
  margin-bottom: var(--s2);
}
.nok-crosslink-text p {
  font-size: .9375rem;
  color: var(--gray-700);
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}
.nok-crosslink-btn {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}

/* -------------------------------------------
   МИНИ-ШТАМП В ПОДВАЛЕ
   ------------------------------------------- */
.footer-stamp {
  margin-top: var(--s4);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
}
.footer-stamp-row {
  display: flex;
  gap: var(--s3);
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
}
.footer-stamp-row:last-child { border-bottom: none; }
.footer-stamp-row span:first-child { color: rgba(255,255,255,.35); }
.footer-stamp .psk-article-num {
  color: rgba(255,255,255,.65);
  font-size: .75rem;
}

/* -------------------------------------------
   FORM-SUCCESS — исправление display:none
   ------------------------------------------- */
#form-success[hidden] { display: none !important; }
#form-success:not([hidden]) { display: block; }

/* -------------------------------------------
   CALC CHECKBOX — исправление стиля
   ------------------------------------------- */
.calc-checkbox span {
  font-size: .875rem;
  color: var(--gray-700);
  cursor: pointer;
  line-height: 1.4;
}

/* -------------------------------------------
   STICKY CTA — цвет серого
   ------------------------------------------- */
:root {
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
}
