/*
 * Общий стиль сайта vizit.asia: главная, страницы продуктов и документы.
 * Один шрифт, белый фон, один акцент на экран — страницы должны читаться как одно целое.
 */
/* Onest с нашего сервера: один вариативный файл 400–700, латиница + кириллица
 * + казахские буквы + ₸ и ₽ (36 КБ). Собран pyftsubset из Onest[wght].ttf, лицензия OFL
 * рядом. Имя файла без ?v — preload в <head> ссылается на тот же адрес. */
@font-face {
  font-family: 'Onest';
  src: url(/site/fonts/onest.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #FFFFFF;
  --soft: #F4F7F5;
  --ink: #10201B;
  --text: #34433E;
  --muted: #5E6D67;
  --line: #E4EAE7;
  --brand: #10715A;
  --brand-hover: #0C5F4B;
  --brand-lift: #1CA37F;
  --wash: #E7F3EE;
  --amber: #F2A93B;
  --sky: #3B8DE0;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --radius: 20px;
  --font: 'Onest', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.025em; font-weight: 600; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 10px 24px -12px rgba(16, 113, 90, .7); }
.btn-soft { background: var(--wash); color: var(--brand); }
.btn-soft:hover { background: #D9EDE4; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #F0F5F2; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.more {
  display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.more i {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--brand); transition: transform .3s var(--ease);
}
.more:hover i { transform: rotate(90deg); }

/* --- Шапка --- */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo b { font-size: 20px; font-weight: 700; letter-spacing: .05em; color: var(--ink); }
.nav { display: flex; gap: 32px; }
.nav > a, .drop > button {
  font: 500 16px/1 var(--font); color: var(--muted); text-decoration: none; background: none; border: 0;
  padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .2s;
}
.nav > a:hover, .drop > button:hover, .nav > a[aria-current] { color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.drop { position: relative; }
.drop > button svg { transition: transform .25s var(--ease); }
.drop.open > button svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 12px); left: -16px; min-width: 300px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(16, 32, 27, .22);
  opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.drop.right .drop-menu { left: auto; right: 0; }
.drop.open .drop-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.drop-menu a {
  display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center;
  padding: 12px; border-radius: 12px; text-decoration: none;
}
.drop-menu a:hover { background: var(--soft); }
.drop-menu .tile { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; }
.drop-menu b { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; }
.drop-menu span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.login-link { font-weight: 500; color: var(--brand); }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.sheet { display: none; }

/* Плитка-значок: квадрат с иконкой, как у продуктов */
.tile { display: grid; place-items: center; color: #fff; flex: none; }
.tile-green { background: var(--brand); }
.tile-amber { background: var(--amber); color: #3A2504; }
.tile-ink { background: var(--ink); }
.tile-sky { background: var(--sky); }

/* --- Общие блоки --- */
section { padding: 120px 0; }
.soft { background: var(--soft); }
.head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; }
.head p { margin: 18px auto 0; color: var(--muted); font-size: 19px; max-width: 620px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--wash); color: var(--brand); font-size: 15px; font-weight: 500; text-decoration: none;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-lift); }

/* --- Первый экран --- */
.hero { padding: 88px 0 0; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 26px auto 0; max-width: 980px; }
.hero h1 span { color: var(--brand); }
.hero .sub { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 640px; margin: 24px auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.showcase {
  margin-top: 72px; border-radius: 32px; padding: 56px 56px 0; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #DCEFE7 0%, #EAF3F0 45%, #DDE9F2 100%);
}

/* Настоящий скриншот в рамке окна браузера */
.shot { margin: 0; background: #fff; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(16, 32, 27, .4); border: 1px solid rgba(16, 32, 27, .08); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #F3F5F4; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #DDE3E0; }
.shot-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; transform: translateX(-20px); }
.shot img { width: 100%; height: auto; }
.pic .shot { border-radius: 14px; width: 100%; }
.showcase .shot { text-align: left; }

/* Скриншот с телефона */
.phone { margin: 0; width: min(290px, 100%); border-radius: 42px; padding: 9px; background: var(--ink); box-shadow: 0 40px 70px -30px rgba(16, 32, 27, .5); }
.phone img { width: 100%; height: auto; border-radius: 33px; }

/* --- Карточки услуг --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 48px -28px rgba(16, 32, 27, .25); }
.card .tile { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 28px; }
.card h3 { font-size: 23px; line-height: 1.25; }
.card p { margin: 12px 0 0; color: var(--muted); }
.card ul { list-style: none; padding: 20px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.card li { display: flex; gap: 10px; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-lift); margin-top: 9px; }
.card { display: flex; flex-direction: column; }
.card .from { margin-top: auto; padding-top: 24px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.audit {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--soft); border-radius: 24px; padding: 28px 36px;
}
.audit b { display: block; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.audit span { display: block; color: var(--muted); margin-top: 4px; }
.audit .btn { flex: none; }
.also { text-align: center; color: var(--muted); margin: 40px 0 0; }
.also b { color: var(--ink); font-weight: 600; }

/* --- Шаги --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 24px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--brand-lift), rgba(28, 163, 127, .15));
}
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps.three::before { left: 16.6%; right: 16.6%; }
.step { text-align: center; position: relative; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 24px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand-lift); color: var(--brand);
  font-weight: 700; font-size: 18px; position: relative;
}
.step h3 { font-size: 20px; line-height: 1.3; }
.step p { margin: 10px auto 0; color: var(--muted); font-size: 16px; max-width: 250px; }

/* --- Ряды продуктов, как у Workly: текст слева, картинка справа --- */
.rows { display: grid; gap: 120px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.row .tile { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 36px; }
.row small { display: block; color: var(--muted); font-size: 16px; margin-bottom: 6px; }
.row h3 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; }
.row p { color: var(--muted); font-size: 18px; margin: 20px 0 36px; max-width: 480px; }
.row .price { color: var(--ink); font-weight: 600; margin: -16px 0 32px; }

/* --- Призыв --- */
.cta-box {
  border-radius: 32px; padding: clamp(48px, 7vw, 88px) 24px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 15% 0%, rgba(28, 163, 127, .6), transparent 70%), var(--brand);
}
.cta-box h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; max-width: 760px; margin: 0 auto; }
.cta-box p { color: rgba(255, 255, 255, .92); font-size: 19px; margin: 18px auto 0; max-width: 560px; }
.cta-box .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; align-items: center; margin-top: 36px; }
.cta-box .actions a.plain { color: #fff; text-decoration: none; font-weight: 500; opacity: .9; }
.cta-box .actions a.plain:hover { opacity: 1; text-decoration: underline; }

/* --- Тарифы (страницы продуктов) --- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.plan-main { border: 2px solid var(--brand); }
.plan .tile { width: 48px; height: 48px; border-radius: 14px; }
.plan .sum small:first-child { margin: 0 4px 0 0; }
.plan .sum-text { font-size: 32px; }
.plan h3 { font-size: 22px; }
.plan .for { color: var(--muted); font-size: 15px; margin: -8px 0 0; }
.plan .sum { font-size: 40px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.plan .sum small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; margin-top: 2px; color: var(--brand-lift); }
.plan .btn { margin-top: auto; }
.plan .details { align-self: center; margin-top: -4px; font-size: 15px; font-weight: 500; color: var(--brand); }
.also a { color: var(--brand); }

/* --- Возможности (страницы продуктов) --- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--wash); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.feat h3 { font-size: 19px; line-height: 1.3; }
.feat p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* --- Документы --- */
.doc { padding: 72px 0 120px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; }
.doc .upd { color: var(--muted); margin: 14px 0 48px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--brand); }
.doc .box { background: var(--soft); border-radius: 16px; padding: 20px 24px; margin-top: 24px; }

/* --- Подвал --- */
footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr 1.2fr; gap: 40px; }
.foot h4 { margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot a { text-decoration: none; color: var(--muted); transition: color .2s; }
.foot a:hover { color: var(--brand); }
.foot p { color: var(--muted); margin: 18px 0 0; max-width: 280px; }
.foot dl { margin: 0; display: grid; gap: 8px; color: var(--muted); }
.foot dl div { display: flex; gap: 6px; flex-wrap: wrap; }
.foot dt { color: var(--ink); }
.foot dd { margin: 0; }
.copy a { color: inherit; }
.copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }

/* --- Доступность --- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-lift); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { outline-offset: 3px; border-radius: 12px; }

/* --- Факты под кнопками первого экрана --- */
.facts { list-style: none; padding: 0; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { color: var(--brand); flex: none; }
.caption { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

/* --- Заголовок блока слева --- */
.head.left { text-align: left; margin-left: 0; }
.head.left p { margin-left: 0; }

/* --- Сцены «где теряются клиенты»: пузырь WhatsApp как сквозной мотив --- */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--soft); }
.scene time { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.scene .bubble {
  margin: 0; align-self: flex-start; max-width: 92%; padding: 12px 16px; border-radius: 4px 16px 16px 16px;
  background: #fff; color: var(--ink); font-size: 16px; line-height: 1.45; box-shadow: 0 1px 0 rgba(16, 32, 27, .06);
}
.scene p:not(.bubble) { margin: 0; color: var(--text); font-size: 16px; }
.scene b { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--brand); font-weight: 600; font-size: 15px; line-height: 1.45; }

/* --- Кейс --- */
.case { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 56px; border-radius: 32px; background: var(--ink); color: #D5E2DD; }
.case h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; margin-top: 20px; }
.case .badge { background: rgba(28, 163, 127, .18); color: #7FD9BC; }
.case-meta { margin: 32px 0 0; display: grid; gap: 14px; }
.case-meta div { display: grid; gap: 2px; }
.case-meta dt { font-size: 13px; color: #8FA9A0; }
.case-meta dd { margin: 0; color: #fff; }
.case-body { display: grid; gap: 28px; align-content: start; }
.case-step { padding-left: 22px; border-left: 2px solid rgba(127, 217, 188, .35); }
.case-step h3 { color: #7FD9BC; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.case-step p, .case-step ul { margin: 8px 0 0; font-size: 16px; }
.case-step ul { padding-left: 18px; display: grid; gap: 6px; }

/* --- Шаги работы: список с номером слева --- */
.flow { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flow li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.flow li > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wash); color: var(--brand); font-weight: 700; font-size: 18px; }
.flow h3 { font-size: 20px; line-height: 1.3; }
.flow p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.flow-3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
.flow-3 li { grid-template-columns: 1fr; }
/* Строки сетки не растягиваются под высоту соседней карточки: заголовки на одной линии. */
.flow li { align-content: start; }

/* --- Вопросы --- */
.faq { display: grid; gap: 12px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  color: var(--ink); font-weight: 600; font-size: 18px; line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa p { margin: 0; padding: 0 24px 22px; color: var(--text); }
.qa a { color: var(--brand); }

/* --- Два скриншота рядом --- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; align-items: start; }
.duo .shot { border-radius: 14px; }

/* --- Честно с сотрудниками --- */
.honest { display: grid; grid-template-columns: .9fr 1.4fr; gap: 56px; padding: 56px; border-radius: 32px; border: 1px solid var(--line); }
.honest .tile { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 24px; }
.honest h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; }
.honest > div p { color: var(--muted); margin: 14px 0 0; }
.honest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.honest li { padding-left: 20px; border-left: 2px solid var(--brand-lift); }
.honest li b { display: block; color: var(--ink); }

/* --- Нижняя панель связи на телефоне --- */
.mbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.mbar .btn { flex: 1; height: 50px; }
.mbar .mbar-tel { flex: none; width: 50px; padding: 0; }

/* --- Хлебные крошки --- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: var(--ink); }
.hero .crumbs { justify-content: center; }

/* --- Сводка: цена, срок, формат --- */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 48px auto 0; max-width: 980px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-align: left; }
.summary div { background: #fff; padding: 20px 22px; }
.summary dt { font-size: 13px; color: var(--muted); }
.summary dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.35; }
.summary.three { grid-template-columns: repeat(3, 1fr); }

/* --- Список с галочками в две колонки --- */
.checks { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.checks li { display: flex; gap: 12px; }
.checks li svg { flex: none; margin-top: 4px; color: var(--brand-lift); }
.checks b { color: var(--ink); font-weight: 600; }

/* --- Две колонки: подходит / не подходит --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.split > div { border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: #fff; }
.split h3 { font-size: 20px; margin-bottom: 14px; }
.split ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* --- Карточки-ссылки на соседние страницы --- */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.links a { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.links a:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(16, 32, 27, .3); }
.links small { color: var(--muted); font-size: 14px; }
.links b { color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.links span { color: var(--muted); font-size: 15px; }
.links em { margin-top: auto; padding-top: 8px; font-style: normal; color: var(--brand); font-weight: 600; font-size: 15px; }

/* --- Текстовые страницы: статьи и страны --- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; margin: 56px 0 16px; }
.prose h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--brand); }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose > :first-child { margin-top: 0; }
.note { background: var(--soft); border-left: 3px solid var(--brand-lift); border-radius: 0 16px 16px 0; padding: 18px 22px; margin: 24px 0; }
.note p:last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--amber); background: #FCF5E9; }
.table-wrap { overflow-x: auto; margin: 20px 0 28px; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--soft); color: var(--ink); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.src { font-size: 14px; color: var(--muted); }
.src a { color: var(--muted); }

/* Заголовок статьи */
.post-head { padding: 64px 0 8px; }
.post-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.post-head .lead { font-size: clamp(18px, 1.8vw, 20px); color: var(--muted); margin: 20px 0 0; }
.post-head .meta { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.post-body { padding: 40px 0 96px; }
.toc { background: var(--soft); border-radius: 16px; padding: 20px 24px; margin: 0 0 32px; }
.toc b { display: block; color: var(--ink); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

/* Список статей */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.posts a { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.posts a:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(16, 32, 27, .3); }
.posts small { color: var(--brand); font-weight: 600; font-size: 14px; }
.posts b { color: var(--ink); font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.posts span { color: var(--muted); font-size: 16px; }

/* География на главной */
.geo { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 20px; }
.geo > * { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.geo b { color: var(--ink); font-size: 20px; font-weight: 600; }
.geo span { color: var(--muted); font-size: 15px; }
.geo em { margin-top: auto; padding-top: 8px; font-style: normal; color: var(--brand); font-weight: 600; font-size: 15px; }
.geo a:hover { border-color: var(--brand-lift); }

@media (max-width: 1020px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .links, .geo { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .summary, .summary.three, .checks, .split, .links, .posts, .geo { grid-template-columns: 1fr; }
  .split > div, .posts a, .links a { padding: 24px; }
  .post-head { padding-top: 40px; }
}

/* --- Плашка о cookie --- */
.cookies {
  position: fixed; left: 24px; bottom: 24px; z-index: 70; max-width: 420px; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(16, 32, 27, .35);
  font-size: 14px; line-height: 1.5;
}
.cookies p { margin: 0 0 14px; color: var(--text); }
.cookies a { color: var(--brand); }
.cookies div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 680px) {
  .cookies { left: 12px; right: 12px; bottom: 84px; max-width: none; padding: 16px; }
}

/* --- Появление при прокрутке --- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- Адаптив --- */
@media (max-width: 1020px) {
  .nav, .top-right .drop { display: none; }
  .top-right { gap: 8px; }
  .burger { display: grid; }
  .sheet {
    display: block; position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; box-shadow: 0 24px 40px -24px rgba(16, 32, 27, .3);
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .sheet.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .sheet a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
  .sheet .btn { width: 100%; margin-top: 12px; }
  .sheet .btn:first-of-type { margin-top: 20px; }
  .cards, .plans, .feats { grid-template-columns: 1fr 1fr; }
  .scenes, .flow-3 { grid-template-columns: 1fr; }
  .case, .honest { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .duo { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .steps::before { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .showcase { padding: 32px 24px 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .hero { padding-top: 48px; }
  .badge { font-size: 13px; padding: 7px 12px; white-space: nowrap; }
  .hero .actions .btn { flex: 1 1 100%; }
  .showcase { margin-top: 48px; border-radius: 24px; padding: 20px 16px 0; }
  .head { margin-bottom: 44px; }
  .head p { font-size: 17px; }
  .cards, .plans, .feats, .steps, .steps.three, .foot, .flow { grid-template-columns: 1fr; }
  .qa summary { font-size: 17px; padding: 18px 48px 18px 20px; }
  .qa p { padding: 0 20px 20px; }
  .card, .plan { padding: 28px; }
  .audit { flex-direction: column; align-items: stretch; padding: 24px; }
  .rows { gap: 80px; }
  .row .tile { margin-bottom: 24px; }
  .cta-box { border-radius: 24px; }
  .cta-box .actions .btn { width: 100%; }
  .top-cta { width: 44px; padding: 0; }
  .top-cta span { display: none; }
  .mbar { display: flex; }
  body { padding-bottom: 84px; }
  .flow li { grid-template-columns: 40px 1fr; gap: 16px; }
  .flow li > span { width: 40px; height: 40px; font-size: 16px; }
  .case { padding: 28px 22px; }
  .honest { padding: 32px 22px; }
  .facts { justify-content: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
