/* ============ Tokens — light by default ============ */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #eef1f6;
  --gray-200: #e5eaf2;
  --navy: #1e3a8a;
  --navy-700: #1b3378;
  --emerald: #10b981;
  --emerald-600: #0ea271;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --emerald-dark: #059669;
  --range-track: #e5eaf2;
  --range-fill: #10b981;
  --header-bg: rgba(255, 255, 255, .72);
  --header-stuck-shadow: 0 6px 24px rgba(15, 23, 42, .05);
  --nav-panel-bg: rgba(255, 255, 255, .96);
  --cookie-bg: #ffffff;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, .05);
  --shadow: 0 12px 40px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 70px rgba(30, 58, 138, .16);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1160px;
}

html[data-theme="dark"] {
  --bg: #121820;
  --surface: #1a2332;
  --surface-2: #222d3d;
  --white: #1a2332;
  --gray-50: #151c28;
  --gray-100: #1e2838;
  --gray-200: #2d3a4d;
  --navy: #e8eef7;
  --navy-700: #c5d0e0;
  --emerald: #3ecf9a;
  --emerald-600: #2bb882;
  --ink: #dce4ef;
  --muted: #8fa0b8;
  --muted-2: #6b7d96;
  --gray-500: #8fa0b8;
  --gray-600: #9aabc0;
  --gray-700: #c5d0e0;
  --emerald-dark: #6ee7b7;
  --range-track: #2d3a4d;
  --range-fill: #3ecf9a;
  --header-bg: rgba(18, 24, 32, .82);
  --header-stuck-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --nav-panel-bg: rgba(18, 24, 32, .96);
  --cookie-bg: #1a2332;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .25);
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

button, a, .btn, .toggle__opt, .cfield__step, .channel, .theme-toggle, .burger, .fab__btn, .fab__item, .nav__link, summary, .cookie-banner__btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ Scroll progress — hidden ============ */
.scroll-progress { display: none !important; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 12px 22px;
  transition: none;
  white-space: nowrap;
}
.btn:active { opacity: .88; transform: none; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn svg { transition: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-600));
  color: #fff; box-shadow: 0 10px 26px rgba(16, 185, 129, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16, 185, 129, .45); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--soft { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.btn--soft:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--ghost {
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px);
  color: var(--emerald-600); border: 1px solid var(--gray-200); font-size: 14px; padding: 10px 18px;
}
.btn--ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .btn--ghost {
  background: rgba(26, 35, 50, .85);
  color: var(--emerald);
}
html[data-theme="dark"] .btn--ghost:hover { background: rgba(34, 45, 61, .95); }

.header__cta {
  margin-left: 0; font-size: 13px; line-height: 1.25; padding: 10px 14px; max-width: 260px;
  white-space: normal; text-align: center; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background .35s, color .35s;
}
.header__cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(16, 185, 129, .22) 50%, transparent 75%);
  transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none;
}
.header__cta:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, .55);
  background: rgba(16, 185, 129, .1);
  box-shadow: 0 8px 28px rgba(16, 185, 129, .22), 0 0 0 1px rgba(16, 185, 129, .12);
  color: var(--emerald-600);
}
.header__cta:hover::before { transform: translateX(120%); }

.theme-toggle {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--gray-200);
  background: var(--gray-50); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--emerald); }
.theme-toggle:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(16, 185, 129, .35); border-color: var(--emerald);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.header.is-stuck { border-color: var(--gray-200); box-shadow: var(--header-stuck-shadow); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 40px; height: 40px; display: grid; place-items: center; color: var(--emerald);
  background: linear-gradient(135deg, #ecfdf5, #f0fdf9); border-radius: 12px; box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .logo__mark {
  background: linear-gradient(135deg, rgba(62, 207, 154, .15), rgba(43, 184, 130, .08));
  border: 1px solid rgba(62, 207, 154, .2);
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.logo__text b { color: var(--emerald-600); font-weight: 800; }
.logo__text small { font-size: 11px; font-weight: 500; color: var(--muted-2); margin-top: 3px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--muted); position: relative; padding: 4px 0; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--emerald); transition: width .25s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(16, 185, 129, .12), transparent 60%),
    radial-gradient(50% 50% at 12% 8%, rgba(30, 58, 138, .08), transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--navy);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; margin-bottom: 24px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); } 50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }

.hero__title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--navy); }
.grad { background: linear-gradient(120deg, var(--emerald), var(--emerald-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { margin: 22px 0 32px; font-size: 18px; color: var(--muted); max-width: 520px; }
.hero__subtitle b { color: var(--ink); font-weight: 600; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.hero__badges li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero__badges svg { color: var(--emerald); flex-shrink: 0; }

/* ---- Hero visual ---- */
.hero__visual { position: relative; height: 480px; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb--1 { width: 340px; height: 340px; right: 0; top: 40px; background: radial-gradient(circle at 30% 30%, #d1fae5, #a7f3d0 60%, transparent 75%); opacity: .7; }
.orb--2 { width: 200px; height: 200px; left: 10px; bottom: 30px; background: radial-gradient(circle at 40% 40%, #dbeafe, #bfdbfe 60%, transparent 75%); opacity: .6; }

.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.card-approved { top: 24px; left: 20px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; z-index: 3; }
.approved-ring { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), var(--emerald-600)); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(16, 185, 129, .4); }
.approved-ring svg { width: 24px; height: 24px; }
.card-approved__title { font-weight: 700; font-size: 15px; color: var(--navy); }
.card-approved__sub { font-size: 12px; color: var(--muted); }

.card-phone { right: 18px; top: 84px; width: 228px; padding: 22px; z-index: 2; }
.phone-line { height: 12px; border-radius: 6px; background: var(--gray-100); margin-bottom: 12px; }
.phone-line--lg { width: 62%; height: 15px; background: linear-gradient(90deg, var(--navy), #3b5bd6); margin-bottom: 16px; }
.bank-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.bank-chip { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--navy); background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 10px; padding: 6px 10px; }
.bank-chip i { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.bank-chip__logo { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; object-fit: contain; background: #fff; }
.phone-cta { margin-top: 2px; text-align: center; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--emerald-600)); padding: 11px; border-radius: 12px; }

.card-donut { left: 8px; bottom: 30px; padding: 18px; display: flex; align-items: center; gap: 12px; z-index: 3; }
.donut { width: 76px; height: 76px; transform: rotate(-90deg); }
.donut__val { transition: stroke-dashoffset 1.6s var(--ease); }
.card-donut__label { display: flex; flex-direction: column; }
.card-donut__label b { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1; }
.card-donut__label span { font-size: 12px; color: var(--muted); }

.card-stat { right: 8px; bottom: 60px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--navy); z-index: 4; }
.card-stat__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); }

.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out infinite .6s; }
.float-c { animation: float 8s ease-in-out infinite 1.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============ Sections ============ */
.section { padding: 64px 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-600); margin-bottom: 12px; }
.eyebrow--light { color: var(--emerald-600); }
.section__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 17px; }
.section__cta { text-align: center; margin-top: 36px; }

.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Feature cards */
.feature {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gray-200); }
.feature__icon { display: block; margin-bottom: 16px; background: none; border-radius: 0; width: auto; height: auto; }
.feature__icon img { width: 72px; height: 72px; object-fit: contain; display: block; border-radius: 16px; background: #fff; }
html[data-theme="dark"] .feature__icon img { box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.feature__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature__text { font-size: 14.5px; color: var(--muted); }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps__line { position: absolute; top: 52px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gray-200) 0 10px, transparent 10px 18px); z-index: 0; }
.step {
  position: relative; z-index: 1; background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num { position: absolute; top: 20px; right: 24px; font-size: 44px; font-weight: 800; color: var(--gray-100); line-height: 1; }
.step__icon { display: block; margin-bottom: 16px; background: none; border-radius: 0; width: auto; height: auto; }
/* У иконок непрозрачная светлая подложка — оформляем её плашкой, иначе на тёмной теме это белый квадрат */
.step__icon img { width: 56px; height: 56px; object-fit: contain; display: block; border-radius: 14px; background: #fff; }
html[data-theme="dark"] .step__icon img { box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.step__title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step__text { font-size: 14px; color: var(--muted); }

/* Trust */
.trust { display: flex; align-items: center; justify-content: space-around; gap: 20px; padding: 48px 40px; border-radius: var(--radius-lg); text-align: center; }
.glass { background: linear-gradient(135deg, rgba(245, 247, 250, .9), rgba(255, 255, 255, .7)); backdrop-filter: blur(14px); border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.trust__num { font-size: clamp(38px, 5vw, 58px); font-weight: 900; letter-spacing: -.03em; background: linear-gradient(120deg, var(--navy), var(--emerald-600)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.trust__label { margin-top: 8px; color: var(--muted); font-weight: 500; }
.trust__sep { width: 1px; height: 64px; background: var(--gray-200); }

.assurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.assurance__item { display: flex; align-items: center; gap: 10px; background: #ecfdf5; color: var(--emerald-600); border: 1px solid #a7f3d0; font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: 999px; }
.assurance__item svg { flex-shrink: 0; }

/* Lead */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px; border-radius: var(--radius-lg); align-items: center; }
/* Android/Huawei: backdrop-filter on form parent blocks input focus — revert by deleting this rule */
.lead.glass {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.lead__title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; color: var(--navy); margin: 6px 0 14px; }
.lead__text { color: var(--muted); font-size: 16px; }
.lead__list { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.lead__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.lead__list li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 12 4 4 8-9' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.lead__form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: var(--muted-2); }
.field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--gray-50); resize: vertical; min-height: 88px; transition: .2s var(--ease);
}
.field textarea::placeholder { color: var(--muted-2); }
.field textarea:focus { outline: none; border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.field__optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input:focus { outline: none; border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.field.is-error input { border-color: #ef4444; background: #fef2f2; }
.field__error { display: none; margin-top: 6px; font-size: 12.5px; color: #ef4444; font-weight: 500; }
.field.is-error .field__error { display: block; }

.lead__consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.lead__consent svg { flex-shrink: 0; margin-top: 2px; color: var(--muted-2); }
.lead__consent a { color: var(--emerald-600); text-decoration: underline; }

.lead__success { display: none; flex-direction: column; gap: 14px; margin-top: 16px; padding: 18px 20px; background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf9 100%); border: 1px solid #a7f3d0; border-radius: var(--radius); color: var(--emerald-600); }
.lead__success.is-visible { display: flex; animation: pop .4s var(--ease); }
.lead__success-head { display: flex; align-items: flex-start; gap: 12px; }
.lead__success-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--emerald); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(16, 185, 129, .28); }
.lead__success-copy { min-width: 0; }
.lead__success-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #065f46; line-height: 1.3; }
.lead__success-text { margin: 0; font-size: 14px; line-height: 1.5; color: #047857; font-weight: 500; }
.lead__success-chat { margin-top: 2px; }
.lead__success-chat svg { flex-shrink: 0; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 4px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--emerald); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ============ Footer ============ */
.footer { background: var(--gray-50); border-top: 1px solid var(--gray-200); padding: 56px 0 0; margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.logo--footer .logo__text { color: var(--navy); }
.footer__note { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 340px; }
.footer__col h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--emerald-600); }
.footer__soc { display: flex; align-items: center; gap: 10px; }
.footer__soc svg { color: var(--emerald-600); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; margin-top: 40px; border-top: 1px solid var(--gray-200); color: var(--muted-2); font-size: 13.5px; }
.footer__bottom a:hover { color: var(--emerald-600); }

/* Placeholder contacts — hidden until real contacts are configured */
.footer__inner .footer__col:has(a[data-c="phone"]),
.footer__inner .footer__col:has(a[data-c="email"]),
.footer__inner .footer__col:has(a[data-c="wa"]),
.footer__inner .footer__col:has(a[data-c="tg"]),
.footer__inner .footer__col:has(a[data-call]) {
  display: none !important;
}

/* ============ Partners marquee ============ */
.partners { padding: 8px 0 8px; }
.partners__label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 20px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee.is-paused .marquee__track,
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pchip { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow-sm); }
.pchip i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; }
.pchip__logo { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; object-fit: contain; background: #fff; }
.pchip__logo--wide { width: auto; max-width: 96px; height: 26px; border-radius: 6px; }

/* ============ Calculator ============ */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; padding: 40px; border-radius: var(--radius-lg); align-items: stretch; }
.calc__form { display: flex; flex-direction: column; gap: 22px; }
.cfield { display: flex; flex-direction: column; gap: 12px; }
.cfield__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cfield__top label { font-size: 15px; font-weight: 600; color: var(--ink); }
.cfield__val { display: flex; align-items: center; gap: 5px; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 6px 10px; font-weight: 700; color: var(--navy); }
.cfield__val input { width: 96px; border: 0; background: none; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--navy); text-align: right; outline: none; }
.cfield__val span { font-size: 13px; color: var(--muted); }

/* Native range (desktop) */
.cfield__controls {
  display: flex; align-items: center; gap: 10px;
}
.cfield__controls input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 44px; margin: 0; padding: 0;
  background: var(--range-track); background-size: 100% 10px; background-repeat: no-repeat; background-position: center;
  outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cfield__controls input[type="range"]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px; background: transparent;
}
.cfield__controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--emerald);
  box-shadow: 0 4px 12px rgba(16,185,129,.4); margin-top: -9px;
}
.cfield__controls input[type="range"]::-moz-range-track {
  height: 10px; border-radius: 999px; background: transparent; border: 0;
}
.cfield__controls input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface);
  border: 3px solid var(--emerald); box-shadow: 0 4px 12px rgba(16,185,129,.4);
}
.cfield__hint { margin: 0; font-size: 12.5px; color: var(--muted-2); }

/* Mobile: только поля ввода, без ползунков */
@media (pointer: coarse), (max-width: 900px) {
  .calc__form .cfield__controls,
  .calc__form input[type="range"],
  .cfield__range,
  .mslider,
  .cfield__step {
    display: none !important;
    pointer-events: none !important;
  }
  .calc__form .cfield__top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .calc__form .cfield__top label {
    pointer-events: auto;
  }
  .calc__form .cfield__val {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    gap: 8px;
    min-height: 52px;
    cursor: text;
    -webkit-tap-highlight-color: rgba(16,185,129,.15);
    pointer-events: auto;
  }
  .calc__form .cfield__val input {
    width: 100%;
    min-width: 0;
    flex: 1;
    font-size: 18px !important;
    min-height: 32px;
    text-align: left;
    pointer-events: auto !important;
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: manipulation;
  }
  .calc__form .cfield__val span {
    font-size: 15px;
    pointer-events: none;
  }
  /* Крупные кнопки на всю ширину: у правого края их перекрывала кнопка чата */
  .calc__form .cfield--toggle {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .calc__form .cfield--toggle .toggle { display: flex; }
  .calc__form .cfield--toggle .toggle__opt { flex: 1; min-height: 48px; font-size: 15px; }
}

/* legacy */
.cfield__range, .mslider { display: none !important; }

.cfield--toggle { flex-direction: row; align-items: center; justify-content: space-between; }
.cfield--toggle label { font-size: 15px; font-weight: 600; color: var(--ink); }
.toggle { display: inline-flex; background: var(--gray-100); border-radius: 999px; padding: 4px; }
.toggle__opt { border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: none; touch-action: manipulation; }
.toggle__opt.is-active { background: var(--emerald); color: #fff; box-shadow: 0 4px 14px rgba(16, 185, 129, .3); }

.calc__result { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; position: relative; display: flex; }
.calc__state { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; width: 100%; margin: auto; }
.calc__state.is-active { display: flex; animation: pop .4s var(--ease); }
.calc__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, #ecfdf5, #f0fdf9); color: var(--emerald-600); }
.calc__icon svg { width: 32px; height: 32px; }
.calc__state--idle p { color: var(--muted); font-size: 15px; max-width: 260px; }

.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid var(--gray-200); border-top-color: var(--emerald); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.calc__steps { min-height: 24px; color: var(--navy); font-weight: 600; font-size: 15px; }
.calc__steps span { display: inline-block; animation: fadeStep .4s var(--ease); }
@keyframes fadeStep { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.gauge { position: relative; width: 150px; height: 150px; }
.gauge svg { width: 150px; height: 150px; }
#gaugeArc { transition: stroke-dashoffset 1.4s var(--ease); }
.gauge__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge__num b { font-size: 38px; font-weight: 900; letter-spacing: -.02em; background: linear-gradient(120deg, var(--navy), var(--emerald-600)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.gauge__num span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.calc__verdict { font-size: 16px; font-weight: 600; color: var(--ink); }
.calc__verdict b { color: var(--navy); }
.calc__disclaimer { font-size: 12px; color: var(--muted-2); max-width: 280px; }
.calc__free { font-size: 12.5px; color: var(--emerald-600); font-weight: 600; }
.calc__result .btn { margin-top: 4px; }

/* ============ Channels ============ */
.channels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 12px 6px; cursor: pointer; transition: none; text-align: center; }
.channel svg { color: var(--muted-2); transition: none; }
.channel:hover { border-color: var(--emerald); color: var(--ink); }
.channel.is-active { border-color: var(--emerald); background: #ecfdf5; color: var(--emerald-600); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.channel.is-active svg { color: var(--emerald-600); }

/* ============ Floating widget ============ */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
body.has-cookie-banner .fab { bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.fab__menu { display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px) scale(.96); transform-origin: bottom right; transition: .3s var(--ease); }
.fab.is-open .fab__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.fab__item { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; padding: 11px 16px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: transform .2s var(--ease); }
.fab__item:hover { transform: translateX(-3px); }
.fab__item svg { flex-shrink: 0; }
.fab__item--wa svg { color: #25D366; }
.fab__item--tg svg { color: #29A9EB; }
.fab__item--tel svg { color: var(--emerald-600); }
.fab__btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--emerald), var(--emerald-600)); color: #fff; box-shadow: 0 12px 28px rgba(16,185,129,.45); display: grid; place-items: center; transition: none; }
.fab__btn:hover { transform: none; }
.fab__btn::after { display: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70%,100% { box-shadow: 0 0 0 16px rgba(16,185,129,0); } }
.fab__ico-close { display: none; }
.fab.is-open .fab__ico-chat { display: none; }
.fab.is-open .fab__ico-close { display: block; }
.fab.is-open .fab__btn::after { display: none; }
.fab--pulse .fab__btn { animation: none; }
.fab--pulse .fab__btn::after { display: none; }
@keyframes fabPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 28px rgba(16,185,129,.45); }
  50% { transform: scale(1.08); box-shadow: 0 16px 36px rgba(16,185,129,.65); }
}

/* ============ Live chat widget ============ */
.fab.is-chat { gap: 14px; }
.livechat {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
  overflow: hidden;
  /* display:none when closed — opacity/visibility+transform leaves a huge invisible hitbox on Android */
  display: none;
  flex-direction: column;
  max-height: min(480px, calc(100dvh - 140px));
  pointer-events: none;
}
.fab.is-open .livechat {
  display: flex;
  pointer-events: auto;
}
.livechat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: linear-gradient(135deg, var(--emerald), var(--emerald-600)); color: #fff;
}
.livechat__head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.livechat__consultant { display: flex; align-items: center; gap: 10px; min-width: 0; }
.livechat__avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.75); flex-shrink: 0;
}
.livechat__title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.livechat__role { font-size: 12px; font-weight: 600; opacity: .9; }
.livechat__sub { font-size: 11px; opacity: .92; margin-top: 2px; line-height: 1.3; }
.livechat__badge {
  font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2);
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.livechat__body { flex: 1; overflow-y: auto; padding: 16px; background: var(--gray-50); min-height: 160px; }
.livechat__welcome { text-align: center; padding: 24px 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.livechat__name-form { display: grid; gap: 12px; padding: 8px 0; }
.livechat__name-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 12px;
  font-size: 15px; font-family: inherit;
}
.livechat__name-form input:focus { outline: 2px solid rgba(16,185,129,.35); border-color: var(--emerald); }
.livechat__form-error {
  margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: #dc2626; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2);
}
.livechat__form-error[hidden] { display: none !important; }
.livechat__msgs { display: flex; flex-direction: column; gap: 10px; }
.livechat__msg {
  max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-break: break-word;
}
.livechat__msg--visitor { align-self: flex-end; background: var(--emerald); color: #fff; border-bottom-right-radius: 4px; }
.livechat__msg--operator { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; }
.livechat__msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; }
.livechat__msg-row--operator { align-self: flex-start; }
.livechat__msg-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--gray-200); }
.livechat__msg-bubble {
  background: #fff; color: var(--ink); border: 1px solid var(--gray-200);
  border-radius: 14px 14px 14px 4px; padding: 8px 12px; min-width: 0;
}
.livechat__msg-name { font-size: 11px; font-weight: 700; color: var(--emerald-600); margin-bottom: 4px; }
.livechat__msg-text { font-size: 14px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.livechat__link {
  display: inline;
  color: #059669 !important;
  font-weight: 800;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  word-break: break-word;
  -webkit-tap-highlight-color: rgba(16,185,129,.45);
  padding: 0 2px;
}
.livechat__msg--visitor .livechat__link {
  color: #fff !important;
  text-decoration: underline !important;
}
html[data-theme="dark"] .livechat__link {
  color: #6ee7b7 !important;
}
html[data-theme="dark"] .livechat__msg--visitor .livechat__link {
  color: #fff !important;
}
.livechat__msg--sys { align-self: center; background: #e2e8f0; color: var(--muted); font-size: 12px; padding: 6px 12px; border-radius: 999px; }
.livechat__close {
  width: 36px; height: 36px; border: 0; border-radius: 10px; cursor: pointer; flex-shrink: 0;
  background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center;
}
.livechat__close:hover { background: rgba(255,255,255,.28); }
.livechat__close svg { width: 18px; height: 18px; }
.livechat__foot {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--gray-100); background: #fff;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
/* Author display:flex overrides UA [hidden] on some Android WebViews */
.livechat__foot[hidden],
.livechat:not(.is-started) .livechat__foot {
  display: none !important;
}
.livechat__foot input {
  flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 12px;
  font-size: 16px; font-family: inherit; /* 16px avoids iOS zoom on focus */
}
.livechat__foot input:focus { outline: 2px solid rgba(16,185,129,.35); border-color: var(--emerald); }
.livechat__send {
  width: 48px; height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--emerald); color: #fff; display: grid; place-items: center; flex-shrink: 0;
}
.livechat__send:disabled { opacity: .5; cursor: not-allowed; }
.livechat__send svg { width: 20px; height: 20px; }
.livechat__name-form input { font-size: 16px; }

@media (max-width: 640px) {
  .fab.is-chat.is-open {
    inset: 0;
    right: 0; left: 0; top: 0; bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 400;
    padding: 0;
    align-items: stretch;
    gap: 0;
    /* Keyboard-safe height set via --kp-vvh from JS when available */
    height: var(--kp-vvh, 100dvh);
    max-height: var(--kp-vvh, 100dvh);
  }
  body.has-cookie-banner .fab.is-chat.is-open { bottom: 0; }
  .fab.is-chat.is-open .livechat {
    width: 100%;
    max-height: none;
    height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .fab.is-chat.is-open .fab__btn { display: none; }
  .livechat__body { min-height: 0; }
  .livechat__head { padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
  body.kp-chat-open {
    overflow: hidden;
    touch-action: none;
  }
}

.chat-promo {
  position: fixed; inset: 0; z-index: 250; display: none; align-items: center; justify-content: center; padding: 16px;
}
.chat-promo.is-open { display: flex; }
.chat-promo__overlay { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); }
.chat-promo__box {
  position: relative; width: min(420px, 100%); background: transparent; padding: 0;
  text-align: center; animation: pop .35s var(--ease);
}
.chat-promo__visual { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.28); }
.chat-promo__img { display: block; width: 100%; height: auto; }
.chat-promo__cta {
  position: absolute; left: 50%; bottom: 7.5%; transform: translateX(-50%);
  width: 78%; max-width: 320px; padding: 14px 20px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #34d399 0%, #10b981 55%, #059669 100%);
  color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px rgba(16,185,129,.45); transition: transform .2s, box-shadow .2s;
}
.chat-promo__cta:hover { transform: translateX(-50%) translateY(-1px); box-shadow: 0 14px 28px rgba(16,185,129,.5); }
.chat-promo__later {
  margin-top: 12px; border: 0; background: transparent; color: rgba(255,255,255,.92);
  font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.chat-promo__close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 12px rgba(15,23,42,.15);
}

.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.modal__box { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-lg); padding: 40px 32px 32px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gray-50); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.modal__close:hover { background: var(--gray-100); color: var(--ink); }
.modal__icon { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: #fff1f2; color: #ef4444; }
.modal__title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.modal__text { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.modal__actions { display: flex; flex-direction: column; gap: 10px; }
.modal__actions .btn { width: 100%; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============ Guide page ============ */
.guide-hero { position: relative; padding: 56px 0 24px; overflow: hidden; }
.guide-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 80% 0%, rgba(16,185,129,.1), transparent 60%), radial-gradient(50% 50% at 10% 0%, rgba(30,58,138,.07), transparent 60%); }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 22px; transition: color .2s; }
.back-link:hover { color: var(--emerald-600); }

.breadcrumbs { margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); font-weight: 600; transition: color .2s; }
.breadcrumbs a:hover { color: var(--emerald-600); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 700; }

.article-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.article-meta time { font-weight: 600; color: var(--navy); }
.article-meta__author { font-weight: 600; color: var(--navy); }
.guide-hero__title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-top: 6px; }
.guide-hero__lead { margin-top: 16px; max-width: 620px; font-size: 18px; color: var(--muted); }

.guide { padding-top: 32px; }
.gstep { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 28px 0; }
.gstep + .gstep { border-top: 1px solid var(--gray-100); }
.gstep--rev .gstep__text { order: 2; }
.gstep__badge { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-600); background: #ecfdf5; border: 1px solid #a7f3d0; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.gstep__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--navy); margin-bottom: 12px; letter-spacing: -.01em; }
.gstep__desc { font-size: 16.5px; color: var(--muted); }
.gstep__desc b { color: var(--ink); font-weight: 600; }
.gstep__art { display: flex; justify-content: center; }
.gstep__art svg { width: 100%; max-width: 360px; filter: drop-shadow(0 20px 40px rgba(30,58,138,.1)); }

.gnote { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.5; }
.gnote svg { flex-shrink: 0; margin-top: 1px; }
.gnote b { font-weight: 700; }
.gnote--warn { background: #fff7ed; border: 1px solid #fed7aa; color: #b45309; }
.gnote--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--emerald-600); }

.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 36px 40px; border-radius: var(--radius-lg); }
.guide-cta__title { font-size: 26px; font-weight: 800; color: var(--navy); }
.guide-cta__text { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 460px; }

.disclaimers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.disclaimer { padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.disclaimer__title { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 14px; }
.disclaimer__text { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.disclaimer__text a { color: var(--emerald-600); text-decoration: underline; }

.expert-reads { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; padding: 16px 20px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.expert-reads__label { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.expert-reads a { font-size: 14px; font-weight: 600; color: var(--emerald-600); }
.expert-reads a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .gstep { grid-template-columns: 1fr; gap: 24px; }
  .gstep--rev .gstep__text { order: 0; }
  .gstep__art { order: -1; }
  .gstep__art svg { max-width: 300px; }
  .guide-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .disclaimers { grid-template-columns: 1fr; }
}

/* ============ Infographic blocks (cluster articles) ============ */
.infographic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 28px 0; padding: 20px; background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #a7f3d0; border-radius: var(--radius-lg);
}
.infographic__step {
  background: var(--white); border-radius: var(--radius); padding: 18px 16px;
  border: 1px solid var(--gray-200); text-align: center; position: relative;
}
.infographic__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--emerald);
  color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 10px;
}
.infographic__title { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.infographic__text { font-size: 13px; color: var(--muted); line-height: 1.45; }
.infographic__arrow { display: none; }
.infographic--scale .infographic__signal {
  width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 10px;
}
.infographic__step--green .infographic__signal { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.infographic__step--yellow .infographic__signal { background: #eab308; box-shadow: 0 0 0 4px rgba(234,179,8,.25); }
.infographic__step--red .infographic__signal { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.25); }
.guide-cta--inline { margin: 28px 0; padding: 28px 32px; }
@media (max-width: 760px) {
  .infographic { grid-template-columns: 1fr; }
}

/* ============ Blog & articles ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Author .blog-grid {display:grid} overrides UA [hidden] — force hide for tabs */
.blog-grid[hidden], .blog-grid.is-tab-hidden { display: none !important; }
.blog-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer; text-decoration: none; color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #a7f3d0; text-decoration: none; }
.blog-card:focus-visible { outline: 2px solid var(--emerald-600); outline-offset: 3px; }
.blog-card__tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-600); margin-bottom: 10px; }
.blog-card__title { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: 10px; transition: color .2s; }
.blog-card:hover .blog-card__title { color: var(--emerald-600); }
.blog-card__excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.blog-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100);
}
.blog-card__date { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.blog-card__more {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700;
  color: var(--emerald-600); white-space: nowrap;
}
.blog-card__more svg { transition: transform .2s var(--ease); }
.blog-card:hover .blog-card__more svg { transform: translateX(4px); }

.article-body { max-width: 760px; font-size: 17px; color: var(--muted); line-height: 1.7; opacity: 1; transform: none; }
.article-body h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin: 36px 0 16px; letter-spacing: -.02em; }
.article-body h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body b, .article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--emerald-600); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
/* Кнопки внутри текста статьи сохраняют свои цвета, а не цвет ссылки */
.article-body a.btn--primary { color: #fff; }
.article-body a.btn--soft { color: var(--navy); }
.article-body a.btn--ghost { color: var(--emerald-600); }
.article-body a.btn:hover { text-decoration: none; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--gray-200); padding: 12px 14px; text-align: left; }
.article-body th { background: var(--gray-50); color: var(--navy); font-weight: 700; }
.article-toc { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 28px; }
.article-toc__title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.article-toc ol { margin: 0 0 0 20px; font-size: 15px; }
.article-toc a { color: var(--emerald-600); font-weight: 600; }
.article-related { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.article-related h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.article-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.article-related a { font-weight: 600; color: var(--emerald-600); font-size: 15px; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10050;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  width: min(920px, calc(100vw - 40px));
  padding: 20px 24px;
  background: var(--cookie-bg);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.is-visible {
  display: grid;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  min-width: 0;
}
.cookie-banner__text a {
  color: var(--emerald-600);
  font-weight: 600;
}
.cookie-banner__btn {
  min-width: 96px;
  padding: 12px 32px !important;
  font-size: 15px;
  box-shadow: 0 10px 26px rgba(16, 185, 129, .4) !important;
}
.cookie-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(16, 185, 129, .5) !important;
}
@media (max-width: 720px) {
  .cookie-banner {
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px 20px;
    grid-template-columns: 1fr;
  }
  .cookie-banner__text { font-size: 14px; }
  .cookie-banner__btn { width: 100%; }
}

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (pointer: coarse), (max-width: 900px) {
  /* Мгновенный UI: никаких анимаций на телефоне */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .float-a, .float-b, .float-c { animation: none !important; }
  .fab__btn::after, .pill__dot { animation: none !important; box-shadow: none !important; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass, .glass-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .chat-promo__overlay, .modal__overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn:hover, .btn--primary:hover, .fab__btn:hover, .channel:hover { transform: none; }
  .btn:active, .channel:active, .toggle__opt:active, .fab__btn:active, .theme-toggle:active {
    opacity: .85;
  }
  .header__cta { display: none; }
}
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps__line { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { padding: 32px 0 24px; }
  .lead { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .channels { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .burger { display: flex; }
  .header__inner { height: 64px; gap: 12px; }
  .logo__text small { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--nav-panel-bg); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 20px 24px;
    gap: 4px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow);
  }
  .nav.is-open .nav__link { padding: 12px 0; }
  .hero { padding: 20px 0 28px; }
  .hero__title { font-size: clamp(30px, 8.5vw, 40px); line-height: 1.08; }
  .hero__subtitle { max-width: none; font-size: 16px; margin: 16px 0 24px; line-height: 1.55; }
  .hero__actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__badges { margin-top: 20px; }
  .hero__badges li:nth-child(n+2) { display: none; }
  .trust { flex-direction: column; padding: 36px 24px; }
  .trust__sep { width: 64px; height: 1px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .lead__form { padding: 24px; }
  .lead { padding: 32px 24px; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .channel { font-size: 12px; padding: 10px 4px; }
  .calc { padding: 26px 20px; gap: 26px; }
  .cfield__val input { width: 110px; font-size: 16px; min-height: 28px; }
  .calc__result { padding: 26px 20px; }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  /* лента не прокручивается — вторая копия логотипов только дублировала бы список */
  .pchip--dup { display: none; }
  .cookie-banner {
    width: calc(100vw - 24px); bottom: max(12px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr; text-align: center; padding: 16px;
  }
  .cookie-banner__btn { width: 100%; }
  body.has-cookie-banner .fab { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .grid--4, .steps { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 16px 0 24px; }
  .pill { font-size: 12px; padding: 7px 12px; margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Reviews / Cases page ============ */
.section--tight { padding-top: 32px; }
.nav__link--active { color: var(--emerald); font-weight: 700; }
.reviews-empty { color: var(--muted); padding: 24px 0; }
.nav__link--nowrap { white-space: nowrap; }
.feed-list { display: grid; gap: 20px; }
.feed-write { margin-top: 24px; text-align: center; }
.review-card__head { gap: 8px; }
.review-card__head .review-card__name { margin-right: auto; }
.case-card, .review-card { padding: 24px; border-radius: var(--radius-lg); }
.case-card__head, .review-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.case-card__tag {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(16,185,129,.1); color: var(--emerald);
}
.case-card__date, .review-card__date { font-size: 13px; color: var(--gray-500); }
.case-card__title { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.case-card__summary { color: var(--gray-600); margin: 0 0 16px; line-height: 1.6; }
.case-card__body { font-size: 15px; line-height: 1.65; color: var(--gray-700); }
.review-card__name { font-size: 16px; color: var(--navy); }
.review-card__text { margin: 0; line-height: 1.65; color: var(--gray-700); white-space: normal; }
.review-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.review-photo {
  display: block; width: 96px; height: 96px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gray-200); background: var(--gray-100);
}
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-form-wrap { padding: 24px; border-radius: var(--radius-lg); max-width: 720px; }
.review-form__warn { margin-bottom: 20px; }
.review-form textarea {
  width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font: inherit; resize: vertical;
}
.review-form textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.review-form input[type="file"] { font-size: 14px; }
.review-form__consent {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--gray-700); margin: 8px 0 16px;
}
.review-form__consent input { margin-top: 4px; flex-shrink: 0; }
.review-form__consent-error { display: none; margin-top: -8px; margin-bottom: 12px; }
.review-form.is-consent-error .review-form__consent-error { display: block; }
.review-form__preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-form__preview img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gray-200);
}
.review-form__success {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(16,185,129,.1); color: var(--emerald-dark, #059669); font-weight: 600;
}

/* ============ Dark theme component overrides ============ */
html[data-theme="dark"] .hero::before {
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(62, 207, 154, .08), transparent 60%),
    radial-gradient(50% 50% at 12% 8%, rgba(100, 130, 180, .06), transparent 60%);
}
html[data-theme="dark"] .glass,
html[data-theme="dark"] .glass-card {
  background: rgba(26, 35, 50, .72) !important;
  border-color: var(--gray-200) !important;
}
html[data-theme="dark"] .glass {
  background: linear-gradient(135deg, rgba(26, 35, 50, .92), rgba(22, 28, 40, .78)) !important;
}
html[data-theme="dark"] .hero__visual .glass-card {
  background: rgba(26, 35, 50, .78) !important;
  border-color: var(--gray-200) !important;
}
html[data-theme="dark"] .pill { background: var(--surface); border-color: var(--gray-200); color: var(--ink); }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .review-form textarea,
html[data-theme="dark"] .cfield__val input {
  background: var(--gray-50); color: var(--ink); border-color: var(--gray-200);
}
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .review-form textarea:focus {
  background: var(--surface-2); box-shadow: 0 0 0 4px rgba(62, 207, 154, .12);
}
html[data-theme="dark"] .lead__form { background: var(--surface); }
html[data-theme="dark"] .lead__success { background: rgba(43, 184, 130, .12); border-color: rgba(62, 207, 154, .25); }
html[data-theme="dark"] .lead__success-title { color: #a7f3d0; }
html[data-theme="dark"] .lead__success-text { color: #6ee7b7; }
html[data-theme="dark"] .assurance__item { background: rgba(43, 184, 130, .1); border-color: rgba(62, 207, 154, .25); color: var(--emerald); }
html[data-theme="dark"] .footer { background: var(--gray-50); }
html[data-theme="dark"] .pchip { background: var(--surface); }
html[data-theme="dark"] .channel.is-active { background: rgba(43, 184, 130, .12); }
html[data-theme="dark"] .toggle__opt.is-active { background: var(--emerald); color: #06231a; }
html[data-theme="dark"] .calc__result,
html[data-theme="dark"] .calc__icon { background: var(--surface); }
html[data-theme="dark"] .calc__icon { background: linear-gradient(135deg, rgba(43, 184, 130, .15), rgba(62, 207, 154, .08)); }
html[data-theme="dark"] .fab__item { background: var(--surface); border-color: var(--gray-200); }
html[data-theme="dark"] .livechat { background: var(--surface); border-color: var(--gray-200); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .livechat__body { background: var(--gray-50); }
html[data-theme="dark"] .livechat__msg--operator { background: var(--surface-2); border-color: var(--gray-200); color: var(--ink); }
html[data-theme="dark"] .livechat__msg-bubble { background: var(--surface-2); border-color: var(--gray-200); color: var(--ink); }
html[data-theme="dark"] .livechat__msg--sys { background: var(--gray-200); color: var(--muted); }
html[data-theme="dark"] .livechat__foot {
  background: var(--surface);
  border-top-color: var(--gray-200);
}
html[data-theme="dark"] .livechat__foot input,
html[data-theme="dark"] .livechat__name-form input { background: var(--gray-50); color: var(--ink); border-color: var(--gray-200); }
html[data-theme="dark"] .orb--1,
html[data-theme="dark"] .orb--2 { opacity: .35; }
html[data-theme="dark"] .hero__visual .glass-card {
  background: rgba(26, 35, 50, .78) !important;
  border-color: var(--gray-200) !important;
}
html[data-theme="dark"] .case-card__date,
html[data-theme="dark"] .review-card__date { color: var(--muted-2); }
html[data-theme="dark"] .case-card__summary,
html[data-theme="dark"] .case-card__body,
html[data-theme="dark"] .review-card__text { color: var(--muted); }
html[data-theme="dark"] .review-form__consent { color: var(--muted); }
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .guide-hero__lead,
html[data-theme="dark"] .article-card { color: var(--muted); }
html[data-theme="dark"] .article-card { background: var(--surface); border-color: var(--gray-200); }
html[data-theme="dark"] .guide-hero { background: linear-gradient(180deg, var(--gray-50) 0%, var(--bg) 100%); }
html[data-theme="dark"] .breadcrumbs { color: var(--muted-2); }
.review-video {
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius-sm); margin-top: 16px; border: 1px solid var(--gray-200); background: #0a0e14;
}
.review-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* Text-only bank labels (no trademark logos) */
.bank-chip--text,
.pchip--text {
  gap: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.bank-chip--text img,
.pchip--text img { display: none !important; }

/* ============ Portfolio page (scoped, pf-*) ============ */
.pf-intro {
  display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap;
  padding: 28px; border-radius: var(--radius-lg);
}
.pf-team {
  max-width: 1024px; margin: 0 auto 20px; padding: 12px;
  border-radius: var(--radius-lg);
}
.pf-team img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--gray-200); background: var(--gray-100);
}
.pf-team figcaption {
  margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--gray-600);
}
.pf-intro__text { flex: 1 1 340px; }
.pf-intro__text h2 { margin-top: 0; }
.pf-intro__text .article-body p:last-child { margin-bottom: 20px; }
.pf-photo { flex: 0 0 auto; }
.pf-photo img {
  width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); background: var(--gray-100);
}
.pf-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-top: 24px;
}
.pf-stat {
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--gray-200);
  background: var(--surface); text-align: center;
}
.pf-stat__num { font-size: 28px; font-weight: 900; color: var(--emerald); line-height: 1.1; }
.pf-stat__label { margin-top: 6px; font-size: 14px; color: var(--gray-600); }
.pf-skills {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
}
.pf-skills li {
  position: relative; padding: 14px 16px 14px 42px; border-radius: var(--radius);
  border: 1px solid var(--gray-200); background: var(--surface);
  color: var(--gray-700); line-height: 1.5;
}
.pf-skills li b { color: var(--navy); font-weight: 700; }
.pf-skills li::before {
  content: ""; position: absolute; left: 16px; top: 19px; width: 14px; height: 8px;
  border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald);
  transform: rotate(-45deg);
}
.work-with__pay {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, .35);
  background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(16,185,129,.04));
  color: var(--gray-700);
  line-height: 1.55;
  font-size: 15px;
}
.work-with__pay strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}
html[data-theme="dark"] .work-with__pay {
  background: rgba(43, 184, 130, .12);
  border-color: rgba(62, 207, 154, .28);
}
html[data-theme="dark"] .work-with__pay strong { color: var(--ink); }

.section--soft {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--bg) 100%);
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.who-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.who-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(16, 185, 129, .35);
}
.who-card__mark {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--emerald-600);
}
.who-card__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
  line-height: 1.35;
}
.who-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.who-pay {
  margin-top: 28px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.who-pay__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}
.who-pay__text {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 900px) {
  .who-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-pay { padding: 22px 20px; }
  .who-pay__title { font-size: 18px; }
}
html[data-theme="dark"] .section--soft {
  background: linear-gradient(180deg, rgba(21, 28, 40, .9) 0%, var(--bg) 100%);
}
html[data-theme="dark"] .who-card {
  background: var(--surface);
  border-color: var(--gray-200);
}
html[data-theme="dark"] .who-card:hover {
  border-color: rgba(62, 207, 154, .35);
}
.pf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.pf-chips__label { font-size: 14px; color: var(--gray-600); margin-right: 4px; }
.pf-chip {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--gray-200); background: var(--surface); color: var(--gray-700);
}
.pf-tl { display: grid; gap: 16px; }
.pf-tl__item {
  padding: 22px 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); background: var(--surface);
  border-left: 3px solid var(--emerald);
}
.pf-tl__title { margin: 12px 0 8px; font-size: 20px; font-weight: 800; color: var(--navy); }
.pf-tl__text { margin: 0; color: var(--gray-600); line-height: 1.6; }
@media (max-width: 640px) {
  .pf-intro { padding: 20px; gap: 20px; }
  .pf-photo img { width: 140px; height: 140px; }
  .pf-team { padding: 8px; }
  .pf-team figcaption { font-size: 12.5px; }
}
html[data-theme="dark"] .pf-stat,
html[data-theme="dark"] .pf-skills li,
html[data-theme="dark"] .pf-chip,
html[data-theme="dark"] .pf-tl__item { background: var(--surface); border-color: var(--gray-200); }
html[data-theme="dark"] .pf-skills li,
html[data-theme="dark"] .pf-tl__text,
html[data-theme="dark"] .pf-stat__label { color: var(--muted); }

/* ============ Offer popup (lead magnet) ============ */
.offer-pop {
  position: fixed;
  left: 50%;
  bottom: max(88px, calc(72px + env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  z-index: 160;
  width: min(640px, calc(100vw - 24px));
  padding: 22px 24px 16px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .06);
  border: 1px solid rgba(226, 232, 240, .9);
  /* hidden via display — avoids Android bottom hitbox from opacity+transform */
  display: none;
  pointer-events: none;
}
.offer-pop.is-on {
  display: block;
  pointer-events: auto;
}
.offer-pop__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.offer-pop__close:hover { color: #475569; background: #f1f5f9; }
.offer-pop__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.offer-pop__icon {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.offer-pop__icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #f1f5f9;
}
.offer-pop__phone {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  color: #22c55e;
}
.offer-pop__check {
  position: absolute;
  top: 6px;
  right: 4px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(34, 197, 94, .35);
}
.offer-pop__spark {
  position: absolute;
  color: #4ade80;
  font-size: 14px;
  line-height: 1;
  z-index: 2;
}
.offer-pop__spark--1 { top: 4px; left: 10px; }
.offer-pop__spark--2 { bottom: 14px; left: 2px; font-size: 11px; }
.offer-pop__spark--3 { bottom: 8px; right: 0; font-size: 12px; }
.offer-pop__copy { min-width: 0; }
.offer-pop__eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.offer-pop__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #1e3a8a;
}
.offer-pop__sub {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #334155;
}
.offer-pop__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.offer-pop__timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.offer-pop__time {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.offer-pop__time-sep {
  opacity: .55;
  padding: 0 2px;
}
.offer-pop__time-block { text-align: center; }
.offer-pop__time-label {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.offer-pop__cta {
  flex: 1;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #34d399 0%, #22c55e 55%, #16a34a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(34, 197, 94, .35);
}
.offer-pop__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(34, 197, 94, .45);
  color: #fff;
}
.offer-pop__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}
.offer-pop__trust svg { flex-shrink: 0; color: #22c55e; }
html[data-theme="dark"] .offer-pop {
  background: #1a2332;
  border-color: rgba(148, 163, 184, .2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .offer-pop__eyebrow { color: #94a3b8; }
html[data-theme="dark"] .offer-pop__title { color: #93c5fd; }
html[data-theme="dark"] .offer-pop__sub { color: #e2e8f0; }
html[data-theme="dark"] .offer-pop__timer {
  background: #121820;
  border-color: rgba(148, 163, 184, .2);
}
html[data-theme="dark"] .offer-pop__icon-ring { background: #243044; }
html[data-theme="dark"] .offer-pop__trust { color: #64748b; }
@media (max-width: 560px) {
  .offer-pop {
    bottom: max(78px, calc(64px + env(safe-area-inset-bottom)));
    padding: 18px 16px 12px;
    border-radius: 22px;
  }
  .offer-pop__row { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .offer-pop__icon { margin: 0 auto; width: 72px; height: 72px; }
  .offer-pop__phone { width: 42px; height: 42px; }
  .offer-pop__actions { justify-content: center; }
  .offer-pop__cta { width: 100%; }
  .offer-pop__title { font-size: 20px; }
}
@media (pointer: coarse), (max-width: 900px) {
  .offer-pop__cta:hover { transform: none; }
}

/* Motivate toast after CTA */
.offer-motivate {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%) translateY(12px) scale(.96);
  z-index: 320;
  width: min(420px, calc(100vw - 32px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.offer-motivate.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
.offer-motivate__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%, #eff6ff 100%);
  border: 1px solid rgba(16, 185, 129, .25);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
  text-align: left;
}
.offer-motivate__ico {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.offer-motivate__text {
  margin: 0;
  font-size: clamp(16px, 3.5vw, 19px);
  font-weight: 800;
  line-height: 1.35;
  color: #1e3a8a;
}
html[data-theme="dark"] .offer-motivate__card {
  background: linear-gradient(135deg, #123024 0%, #1a2332 60%, #172554 100%);
  border-color: rgba(52, 211, 153, .3);
}
html[data-theme="dark"] .offer-motivate__text { color: #e2e8f0; }
@media (pointer: coarse), (max-width: 900px) {
  .offer-motivate {
    transition: opacity .35s ease, transform .35s ease, visibility .35s !important;
  }
  .offer-motivate.is-on {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }
}
