/* ============================================================
   paymenttechno.com — design system (светлая тема)
   Брендбук: ../reference/BRANDBOOK.md
   ============================================================ */

:root {
  --color-primary: #2C3957;        /* Tealish Blue — заголовки, шапка, текст */
  --color-accent: #4AB27C;         /* Medium Sea Green — плашки, CTA-фон, иконки ≥24px */
  --color-accent-text: #2F8E5C;    /* зелёный для ТЕКСТА/тонких линий на белом (WCAG AA) */
  --color-accent-hover: #3F9D6D;
  --color-surface: #E6F5FB;        /* Water — светлые подложки секций */
  --color-bg: #FFFFFF;
  --color-text: #2C3957;
  --color-text-muted: rgba(44, 57, 87, 0.70);
  --color-divider: rgba(44, 57, 87, 0.12);
  --color-link: #1A6FE8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 12px rgba(44, 57, 87, 0.08);
  --shadow-card-hover: 0 6px 24px rgba(44, 57, 87, 0.12);

  --maxw: 1160px;
  --gap: 8px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25em; }

/* ── Типографика ───────────────────────────────────────── */
h1, h2, h3 { color: var(--color-primary); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.375rem); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); font-weight: 300; color: var(--color-text-muted); }
.muted { color: var(--color-text-muted); }

/* ── Layout ────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--surface { background: var(--color-surface); }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head .lead { margin-top: 12px; }
/* ритмический маркер секции — короткая акцент-черта над H2 */
.section__head h2::before {
  content: ''; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--color-accent); margin-bottom: 18px;
}
.stack > * + * { margin-top: 16px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ── Кнопки ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-accent); color: var(--color-primary); }
.btn--accent { background: var(--color-accent); color: var(--color-primary); }
.btn--accent:hover { background: var(--color-accent-hover); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-divider); }
.btn--outline:hover { border-color: var(--color-primary); }
.btn--ghost { background: transparent; color: var(--color-primary); }

/* ── Хедер ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.header__logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--color-primary); font-weight: 400; font-size: .975rem;
}
.nav__link:hover { background: var(--color-surface); text-decoration: none; }
.nav__link[aria-current="page"] { font-weight: 700; }

/* выпадающее меню «Направления» */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--color-divider);
  border-radius: var(--radius); box-shadow: var(--shadow-card-hover);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--color-primary); font-size: .95rem;
}
.nav__dropdown a:hover { background: var(--color-surface); text-decoration: none; }
.nav__caret { transition: transform .16s ease; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.header__cta { margin-left: 8px; }

/* бургер */
.burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm); cursor: pointer; padding: 0;
}
.burger span, .burger span::before, .burger span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--color-primary);
  margin-inline: auto; position: relative; transition: .2s;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%); position: relative; }
/* фирменный паттерн «соты» — фоновый акцент по правому краю (по брендбуку) */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/deco/hex-dark.svg'); background-size: 28px 49px;
  -webkit-mask-image: linear-gradient(100deg, transparent 52%, #000 88%);
  mask-image: linear-gradient(100deg, transparent 52%, #000 88%);
  pointer-events: none;
}
/* «залипательный» слой: зелёные соты проявляются вокруг курсора (координаты из JS) */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url('/img/deco/hex-accent.svg'); background-size: 28px 49px;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 72%);
  mask-image: radial-gradient(240px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner { padding-block: clamp(48px, 8vw, 96px); max-width: 860px; }
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}
.hero__art { width: 100%; height: auto; }
.hero h1 { margin-bottom: 16px; }
.hero__slogan { font-size: clamp(1.125rem, 1.8vw, 1.375rem); color: var(--color-accent-text); font-weight: 700; margin-bottom: 20px; }
.hero__support { font-size: 1.0625rem; color: var(--color-text-muted); max-width: 720px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.trust-badge {
  display: inline-flex; flex-wrap: wrap; gap: 10px 22px;
  padding: 14px 20px; background: #fff; border: 1px solid var(--color-divider);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  font-size: .95rem; font-weight: 700; color: var(--color-primary);
}
.trust-badge span { display: inline-flex; align-items: center; gap: 8px; }
.trust-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }

/* Регуляторный локап в hero (Приём 01+02): факт-числа табличными цифрами */
.trust-lockup {
  display: inline-flex; flex-wrap: wrap; align-items: stretch;
  background: #fff; border: 1px solid var(--color-divider);
  border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
}
.trust-lockup__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; }
.trust-lockup__item + .trust-lockup__item { border-left: 1px solid var(--color-divider); }
.trust-lockup__fig {
  font-size: 1.5rem; font-weight: 700; line-height: 1.05; color: var(--color-primary);
  letter-spacing: -0.01em;
}
.trust-lockup__cap {
  font-size: .8125rem; font-weight: 400; color: var(--color-text-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.trust-lockup__cap svg { width: 14px; height: 14px; color: var(--color-accent-text); flex: none; }

/* Табличные (моноширинные) цифры — на всех финансовых/регуляторных данных */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

/* ── Карточки ──────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--color-divider);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);
  transition: box-shadow .18s ease, transform .18s ease;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-muted); }
.card--link:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card__more { margin-top: auto; padding-top: 16px; color: var(--color-accent-text); font-weight: 700; display: inline-block; transition: transform .2s ease; }
.card--link:hover .card__more { transform: translateX(4px); }
.card__ill { display: block; margin-bottom: 18px; }
.card__ill img { width: 100%; height: auto; }

/* список преимуществ с маркером-галочкой */
.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--color-text); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* фичи (2-3 в ряд, без рамок) */
.feature h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feature p { color: var(--color-text-muted); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 10px; margin-bottom: 14px;
  background: var(--color-surface); color: var(--color-accent-text);
  display: grid; place-items: center;
}
.feature__icon svg { width: 26px; height: 26px; }

/* Комплаенс-модуль (Приём 09): иконка + утверждение, editorial-подача */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; }
.trust-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; background: #fff; border: 1px solid var(--color-divider);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.trust-row__icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--color-surface); display: grid; place-items: center; color: var(--color-accent-text);
}
.trust-row__icon svg { width: 24px; height: 24px; }
.trust-row p { color: var(--color-text); margin: 0; line-height: 1.45; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }

/* Сдержанный scroll-reveal (Приём 10) — мягкое появление блоков */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease, ease), transform .6s var(--ease, ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-instant { transition: none; }
.reveal-2 { transition-delay: .08s; }
.reveal-3 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── FAQ ───────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item { border: 1px solid var(--color-divider); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 18px 22px; font-family: inherit; font-size: 1.0625rem; font-weight: 700;
  color: var(--color-primary); display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq__q .sign { flex: none; transition: transform .2s; color: var(--color-accent-text); font-size: 1.4rem; }
.faq__item.is-open .faq__q .sign { transform: rotate(45deg); }
.faq__a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq__a p { color: var(--color-text-muted); padding-bottom: 18px; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* ── CTA-блок ──────────────────────────────────────────── */
.cta {
  background: var(--color-primary); color: #fff; border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px); text-align: center;
  position: relative; overflow: hidden;
}
/* паттерн «соты» по краям CTA-плашки */
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/deco/hex-light.svg'); background-size: 28px 49px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 22%, transparent 78%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 22%, transparent 78%, #000 100%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
/* шиммер сот за курсором на CTA-плашках */
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('/img/deco/hex-glow.svg'); background-size: 28px 49px;
  -webkit-mask-image: radial-gradient(200px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 72%);
  mask-image: radial-gradient(200px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 72%);
  pointer-events: none;
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 620px; margin: 0 auto 24px; }
.cta__contacts { color: rgba(255, 255, 255, .9); margin-bottom: 24px; font-weight: 700; }
.cta__contacts a { color: #fff; }
.cta .btn--primary { background: var(--color-accent); color: var(--color-primary); }
.cta .btn--primary:hover { background: var(--color-accent-hover); }
.cta .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn--outline:hover { border-color: #fff; }

/* блок «строится на наших расчётах» (Railly / som.place) */
.proof { display: grid; gap: 24px; }
.proof__item { background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.proof__item h3 { margin-bottom: 8px; }
.proof__item p { color: var(--color-text-muted); margin-bottom: 12px; }

/* витрина проекта: панель с фактами вместо чужой картинки */
.proof-stats {
  background: var(--color-primary); border-radius: var(--radius);
  padding: 26px 28px; margin: 16px 0 18px;
  position: relative; overflow: hidden;
}
.proof-stats::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/deco/hex-light.svg'); background-size: 28px 49px;
  -webkit-mask-image: linear-gradient(110deg, transparent 55%, #000 100%);
  mask-image: linear-gradient(110deg, transparent 55%, #000 100%);
  pointer-events: none;
}
.proof-stats > * { position: relative; }
.proof-stats .proof-stats__head { color: #fff; font-weight: 700; font-size: 1.125rem; margin-bottom: 18px; }
.proof-stats__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof-stats__cell b {
  display: block; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1;
  color: var(--color-accent); font-variant-numeric: tabular-nums;
}
.proof-stats__cell span { display: block; margin-top: 4px; font-size: .85rem; color: rgba(255, 255, 255, .75); line-height: 1.35; }
@media (max-width: 640px) { .proof-stats__row { grid-template-columns: 1fr; gap: 14px; } }

/* шапка страницы направления — брендовый герой-бэнд */
.dir-hero { background: linear-gradient(180deg, var(--color-surface) 0%, #fff 100%); position: relative; overflow: hidden; }
.dir-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/deco/hex-dark.svg'); background-size: 28px 49px;
  -webkit-mask-image: linear-gradient(100deg, transparent 54%, #000 92%);
  mask-image: linear-gradient(100deg, transparent 54%, #000 92%);
  pointer-events: none;
}
.dir-hero .container { position: relative; }
.dir-hero .breadcrumbs { padding-top: 24px; }
.page-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 4vw, 64px);
  align-items: center; padding-block: clamp(28px, 4vw, 52px) clamp(44px, 6vw, 76px);
}
.page-hero .section__head { margin-bottom: 0; }
.page-hero__art { width: 100%; height: auto; }

/* строка фактов в герое направления */
.fact-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 28px; }
.fact {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--color-divider); border-radius: 999px;
  padding: 9px 16px; font-size: .9rem; font-weight: 700; color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.fact::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); flex: none; }
.page-hero .btn--primary { align-self: flex-start; }

/* ── Хлебные крошки ────────────────────────────────────── */
.breadcrumbs { font-size: .9rem; color: var(--color-text-muted); padding-top: 20px; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs span { margin-inline: 6px; }

/* ── Раскрытие информации (двухпанельная) ──────────────── */
.disclosure { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.disclosure__menu { position: sticky; top: calc(var(--header-h) + 24px); }
.disclosure__menu ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.disclosure__menu a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--color-text-muted); font-size: .95rem; border-left: 3px solid transparent;
}
.disclosure__menu a:hover { background: var(--color-surface); text-decoration: none; color: var(--color-primary); }
.disclosure__menu a.is-active { background: var(--color-surface); color: var(--color-primary); font-weight: 700; border-left-color: var(--color-accent); }

.disclosure__select { display: none; width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-divider); font-family: inherit; font-size: 1rem; background: #fff; color: var(--color-primary); }

.disc-section { padding-block: 16px 40px; border-bottom: 1px solid var(--color-divider); }
.disc-section:last-child { border-bottom: 0; }
.disc-section h2 { margin-bottom: 20px; }

.doc-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.doc-item {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 14px 18px; border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
  background: #fff;
}
.doc-item__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.doc-item__icon { flex: none; width: 24px; height: 24px; color: var(--color-accent-text); }
.doc-item__title { color: var(--color-primary); }
.doc-item__date { color: var(--color-text-muted); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-item--pending { opacity: .65; }
.doc-item--pending .doc-item__title::after { content: ' — файл готовится'; color: var(--color-text-muted); font-size: .85rem; }

.req-table { width: 100%; border-collapse: collapse; }
.req-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.req-table td:first-child { color: var(--color-text-muted); width: 38%; }
.req-table td:last-child { color: var(--color-primary); font-weight: 700; }

.legal-text p { color: var(--color-text); margin-bottom: 14px; }

/* ── Форма ─────────────────────────────────────────────── */
.form { max-width: 560px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--color-primary); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
  background: #fff; color: var(--color-text); transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--color-text-muted); }
.consent input { margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form__status { font-size: .95rem; min-height: 1.2em; }
.form__status.is-ok { color: var(--color-accent-text); }
.form__status.is-err { color: #C0392B; }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .label { color: var(--color-text-muted); font-size: .9rem; }
.contact-list .value { color: var(--color-primary); font-weight: 700; font-size: 1.0625rem; }

/* ── Футер ─────────────────────────────────────────────── */
.footer { background: var(--color-primary); color: rgba(255, 255, 255, .82); padding-block: 48px 32px; font-size: .9rem; }
.footer a { color: rgba(255, 255, 255, .92); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer__logo img { height: 36px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
/* Реквизиты в футере (Приём 14): зона due diligence, читаемо, табличные цифры */
.footer__req {
  border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 24px; margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .85rem; color: rgba(255, 255, 255, .8);
}
.footer__req b { color: #fff; font-weight: 700; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 24px; display: grid; gap: 14px; font-size: .8125rem; line-height: 1.6; color: rgba(255, 255, 255, .68); }
.footer__legal p { margin: 0; }
.footer__copy { margin-top: 12px; color: rgba(255, 255, 255, .82); }

/* ── Адаптив ───────────────────────────────────────────── */
@media (max-width: 920px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  /* мобайл: соты не лезут под текст, иллюстрация компактная и прижата к плашке */
  .hero::before, .hero::after { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__art { max-width: 300px; justify-self: center; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero__art { display: none; }
  /* карточки направлений — горизонтальная лента со свайпом */
  .grid--swipe {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 6px; margin-inline: -24px; padding-inline: 24px;
  }
  .grid--swipe::-webkit-scrollbar { display: none; }
  .grid--swipe > * { scroll-snap-align: center; }
  .disclosure { grid-template-columns: 1fr; gap: 20px; }
  .disclosure__menu { position: static; }
  .disclosure__menu ul { display: none; }
  .disclosure__select { display: block; }
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .header.is-menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-divider);
    padding: 12px 24px 20px; box-shadow: var(--shadow-card);
  }
  .header.is-menu-open .header__cta { display: flex; padding: 0 24px 20px; position: absolute; top: calc(var(--header-h) + 220px); left: 0; right: 0; }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding-left: 12px; display: none; }
  .nav__item.is-open .nav__dropdown { display: block; }
  .footer__top { grid-template-columns: 1fr; }
  /* длинные подписи кнопок переносятся, а не обрезаются overflow:hidden у hero/cta */
  .btn { white-space: normal; max-width: 100%; text-align: center; }
}

/* ── Внутренние страницы направлений: визуальные якоря ──── */

/* «О направлении» — панель-стейтмент вместо плоского абзаца */
.statement {
  max-width: 860px; background: var(--color-surface);
  border-left: 4px solid var(--color-accent); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
  position: relative; overflow: hidden;
}
.statement::after {
  content: ''; position: absolute; inset: 0;
  background: url('/img/deco/hex-dark.svg'); background-size: 28px 49px;
  -webkit-mask-image: linear-gradient(110deg, transparent 62%, #000 100%);
  mask-image: linear-gradient(110deg, transparent 62%, #000 100%);
  pointer-events: none;
}
.statement p { position: relative; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); font-weight: 300; line-height: 1.55; color: var(--color-text); margin: 0; }

/* «Что входит» — карточки услуг с иконками */
.service-card {
  background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card);
}
.service-card .feature__icon { margin-bottom: 16px; }
.service-card h3 { font-size: 1.125rem; margin-bottom: 12px; }
.service-card .checklist { gap: 10px; }
.service-card .checklist li { font-size: .95rem; color: var(--color-text-muted); }

/* нумерованные карточки (финтех: этапы того, что входит) */
.num-card {
  background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card);
}
.num-card__no {
  font-size: 2.25rem; font-weight: 700; line-height: 1;
  color: var(--color-accent-text); font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 14px;
}
.num-card h3 { font-size: 1.125rem; margin-bottom: 12px; }
.num-card .checklist { gap: 10px; }
.num-card .checklist li { font-size: .95rem; color: var(--color-text-muted); }

/* теги-пилюли (suitable-for и т.п.) */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tag {
  font-size: .85rem; font-weight: 700; color: var(--color-primary);
  background: var(--color-surface); border-radius: 999px; padding: 6px 14px;
}

/* ── Тарифы на страницах направлений ───────────────────── */
.tariff-card {
  background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: clamp(20px, 3vw, 32px); max-width: 760px;
}
.tariff-table { width: 100%; max-width: 720px; border-collapse: collapse; }
.tariff-table td:last-child.free { color: var(--color-accent-text); }
.tariff-table td { padding: 14px 8px; border-bottom: 1px solid var(--color-divider); vertical-align: baseline; }
.tariff-table td:last-child { text-align: right; font-weight: 700; color: var(--color-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tariff-table td:first-child { color: var(--color-text); }
.tariff-note { margin-top: 16px; }

/* блок-ссылка (перечень документов и т.п.) */
.link-row {
  display: flex; align-items: center; gap: 14px; max-width: 720px;
  padding: 18px 22px; background: #fff; border: 1px solid var(--color-divider);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  color: var(--color-primary); font-weight: 700; transition: box-shadow .18s ease;
}
.link-row:hover { box-shadow: var(--shadow-card-hover); text-decoration: none; }
.link-row svg { flex: none; width: 24px; height: 24px; color: var(--color-accent-text); }

/* группированный список услуг («Что входит» с подгруппами) */
.service-groups { display: grid; gap: 32px; max-width: 860px; }
.service-group h3 { margin-bottom: 14px; }
.service-group .checklist { gap: 10px; }

/* ── Утилиты (вместо inline-стилей — strict CSP, без unsafe-inline) ── */
.mw-820 { max-width: 820px; }
.mw-860 { max-width: 860px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.grid--top { align-items: start; }
.section--tight { padding-top: 32px; }
.section--tight-sm { padding-top: 24px; }
.checklist--cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 920px) { .checklist--cols { grid-template-columns: 1fr; } }
.payjar-block { margin-block: 8px; }
.proof__img { border-radius: var(--radius); margin: 16px 0; }
.footer__contact { margin-top: 14px; }
.checklist.mt-24 { margin-top: 24px; }
.my-18 { margin-block: 18px; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.intro-center { max-width: 620px; margin: 16px auto 28px; }

/* skip-link: скрыт, появляется при фокусе с клавиатуры */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; padding: 8px 14px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }

/* Интернет-банк: акцентный (зелёный) вариант CTA-блока */
.cta--accent { background: var(--color-accent); }
.cta--accent h2 { color: var(--color-primary); }
.cta--accent p { color: var(--color-primary); opacity: .85; }
.cta--accent .btn--primary { background: var(--color-primary); color: #fff; }
.cta--accent .btn--primary:hover { background: var(--color-primary); opacity: .9; }

/* доступность: видимый фокус */
:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }

/* уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
