/* ============================================================
   QuickSlot — qslot.ru  •  styles.css  (v2)
   Calm-confidence, product-led. Refs: Stripe, starterapp.ru
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --brand-primary: #0056FF;
  --brand-accent:  #00C2FF;
  --brand-gradient: linear-gradient(135deg, #0056FF 0%, #00C2FF 100%);
  --brand-gradient-soft: linear-gradient(135deg, #2E7BFF 0%, #36CFFF 100%);

  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;

  --surface:      #FFFFFF;
  --surface-alt:  #F8FAFC;
  --surface-soft: #F1F5F9;

  --ink:        #0B1220;   /* deep navy for dark sections */
  --ink-2:      #111A2E;

  --border:        #E2E8F0;
  --border-strong: #CBD5E1;

  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lift: 0 8px 16px rgba(15, 23, 42, 0.06), 0 24px 48px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 18px 50px rgba(0, 86, 255, 0.22);
  --shadow-modal: 0 32px 80px rgba(11, 18, 32, 0.30);

  --container-max-width: 1200px;
  --pad-x: 24px;
  --section-gap: 96px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { position: relative; padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-top: 0; }

.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: 44px; letter-spacing: -0.035em; }
.section__subtitle {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Eyebrow — leading rule + label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--brand-primary);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: var(--brand-gradient);
}
.section__head--center .eyebrow { margin-left: auto; margin-right: auto; }

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease, filter .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(0, 86, 255, 0.30); filter: saturate(1.05); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  color: var(--text-primary);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn--white { color: var(--brand-primary); background: #fff; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand-primary); font-weight: 600; font-size: 16px;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }

.logo { display: inline-flex; align-items: center; }
.logo__img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--text-secondary); white-space: nowrap;
  padding: 8px 14px; border-radius: var(--radius-pill);
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--text-primary); background: var(--surface-soft); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.msg-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.msg-btn:hover { color: var(--brand-primary); border-color: var(--border-strong); transform: translateY(-1px); }
.msg-btn svg { width: 19px; height: 19px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-primary);
}
.burger svg { width: 22px; height: 22px; }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: #fff;
  padding: 16px var(--pad-x) 24px;
  display: none;
  flex-direction: column;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-nav__links { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.mobile-nav__links a {
  font-size: 22px; font-weight: 600; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__footer { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.mobile-nav__msgs { display: flex; gap: 10px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 84px;
  padding-bottom: 110px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
/* aurora glow */
.hero__bg::before {
  content: "";
  position: absolute; top: -240px; right: -160px;
  width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(0, 194, 255, 0.30), rgba(0, 86, 255, 0.16) 45%, transparent 72%);
  filter: blur(8px);
}
.hero__bg::after {
  content: "";
  position: absolute; top: -120px; left: -200px;
  width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(0, 86, 255, 0.14), transparent 70%);
}
/* dotted grid */
.hero__grid-tex {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: 62px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero__subtitle {
  margin-top: 26px;
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 540px;
  text-wrap: pretty;
}
.hero__subtitle strong { color: var(--text-primary); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero__note {
  display: flex; align-items: center; gap: 9px;
  margin-top: 22px; font-size: 14px; color: var(--text-muted); max-width: 460px;
}
.hero__note svg { width: 16px; height: 16px; flex: none; color: var(--text-muted); }

/* operator trust strip */
.trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.trust__label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.trust__item { font-size: 15px; font-weight: 600; color: var(--text-secondary); letter-spacing: -0.01em; }
.trust__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ---------- Hero monitor widget ---------- */
.hero__visual { position: relative; }
.hero__visual > * { position: relative; z-index: 1; }
.hero__visual::before {
  /* angled gradient panel behind the monitor */
  content: "";
  z-index: 0;
  position: absolute; inset: -10% -6% -14% 4%;
  background: var(--brand-gradient);
  border-radius: 36px;
  transform: rotate(3.5deg);
  opacity: 0.16;
  filter: blur(2px);
}
.monitor {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.monitor__head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.monitor__live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.monitor__title { font-size: 13px; color: var(--text-muted); }
.monitor__dots { margin-left: auto; display: flex; gap: 6px; }
.monitor__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-soft); border: 1px solid var(--border); }
.monitor__tg {
  margin-left: auto;
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff; background: var(--brand-gradient);
  box-shadow: 0 4px 12px rgba(0, 86, 255, 0.30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.monitor__tg:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 86, 255, 0.38); }
.monitor__tg svg { width: 17px; height: 17px; }

/* live feed */
.feed { position: relative; height: 196px; overflow: hidden; background: var(--surface-alt); }
.feed::before, .feed::after {
  content: ""; position: absolute; left: 0; right: 0; height: 36px; z-index: 2; pointer-events: none;
}
.feed::before { top: 0; background: linear-gradient(var(--surface-alt), transparent); }
.feed::after { bottom: 0; background: linear-gradient(transparent, var(--surface-alt)); }
.feed__track { display: flex; flex-direction: column; animation: feedScroll 16s linear infinite; }
@keyframes feedScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.feed:hover .feed__track { animation-play-state: paused; }

.feed__row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}
.feed__flag {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--surface); border: 1px solid var(--border);
}
.feed__main { min-width: 0; flex: 1; }
.feed__title { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.feed__sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.feed__status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--success);
  white-space: nowrap;
}
.feed__status svg { width: 14px; height: 14px; }

/* metric row */
.monitor__stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.mstat { padding: 18px 16px; text-align: center; }
.mstat + .mstat { border-left: 1px solid var(--border); }
.mstat__num { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.mstat__label { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.35; }

/* ============================================================
   COUNTRY CARDS
   ============================================================ */
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 8px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card__top {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 0;
  background: linear-gradient(135deg, #EAF2FF 0%, #E6FAFF 100%);
  margin-bottom: 22px;
}
.card__flag {
  position: relative; z-index: 1;
  display: block; width: 50%;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}
/* SVG flags */
.flag { display: block; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.10); }
.card__flag .flag { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08); }
.feed__flag .flag { width: 22px; height: 15px; }
.case__flag .flag { width: 26px; height: 18px; }
.card__body { padding: 0 20px; display: flex; flex-direction: column; flex: 1; }
.card__title {
  font-size: 22px; letter-spacing: -0.03em; line-height: 1.2;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: calc(2 * 1.2em);
}
.card__op {
  display: inline-flex; align-self: flex-start; margin-top: 8px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--surface-soft);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--brand-primary);
}
.card__text {
  margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--text-secondary);
  text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  min-height: calc(3 * 1.5em);
}
.card__price { margin-top: auto; padding-top: 20px; }
.card__price-amount {
  font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--text-primary);
}
.card__price-unit { font-size: 17px; font-weight: 600; color: var(--text-secondary); margin-left: 5px; }
.card__price-note {
  display: block; margin-top: 10px;
  font-size: 12px; line-height: 1.45; color: var(--text-secondary);
}
.card__badge {
  display: flex; align-items: center; gap: 9px;
  margin-top: auto; padding: 12px 14px;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3;
}
.card__badge svg { width: 18px; height: 18px; flex: none; color: var(--brand-primary); }
.card__cities { margin-top: 16px; }
.card__cities-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 9px;
}
.card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card__city {
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--surface-soft); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-primary);
}
.card__cta { margin-top: 18px; }

/* ============================================================
   HOW IT WORKS — light editorial numerals
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin-top: 8px; }
.flow__step { position: relative; padding: 0 28px; text-align: center; }
/* connector line between node centers */
.flow__step::before {
  content: ""; position: absolute; z-index: 0;
  top: 31px; left: -50%; width: 100%; height: 2px;
  background: var(--border-strong);
}
.flow__step:first-child::before { display: none; }
/* directional chevron at the midpoint of each connector */
.flow__step::after {
  content: ""; position: absolute; z-index: 1;
  top: 26px; left: -6px; width: 11px; height: 11px;
  border-top: 2px solid var(--brand-primary);
  border-right: 2px solid var(--brand-primary);
  transform: rotate(45deg);
}
.flow__step:first-child::after { display: none; }
.flow__node {
  position: relative; z-index: 1;
  width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 700; line-height: 1;
  box-shadow: 0 12px 26px rgba(0, 86, 255, 0.30);
  border: 4px solid var(--surface);
}
.flow__title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; min-height: calc(2 * 1.25em); text-wrap: balance; }
.flow__text { margin-top: 10px; font-size: 15px; color: var(--text-secondary); text-wrap: pretty; line-height: 1.55; }

/* ============================================================
   WHY — dark section
   ============================================================ */
.why {
  position: relative;
  background: radial-gradient(120% 120% at 85% 0%, #16233F 0%, var(--ink) 55%);
  color: #fff;
  overflow: hidden;
  border-radius: 40px;
  margin: 0 var(--pad-x);
}
.why::before {
  content: ""; position: absolute; top: -180px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(0, 194, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.why__inner { position: relative; max-width: var(--container-max-width); margin: 0 auto; padding: 77px var(--pad-x); }
.why .eyebrow { color: #5EA6FF; }
.why .section__title { color: #fff; }
.why .section__subtitle { color: #94A3B8; }

.usps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.usp {
  display: flex; gap: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.usp:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); transform: translateY(-3px); }
.usp__icon {
  width: 52px; height: 52px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 86, 255, 0.35);
}
.usp__icon svg { width: 26px; height: 26px; }
.usp__title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.usp__text { margin-top: 9px; font-size: 15px; color: #94A3B8; text-wrap: pretty; line-height: 1.55; }

/* ============================================================
   CASES
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.case__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.case__flag {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px; background: var(--surface-alt); border: 1px solid var(--border);
}
.case__tag { font-size: 14px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.case__tag span { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.case__quote { font-size: 17px; color: var(--text-primary); text-wrap: pretty; line-height: 1.55; }
.case__quote b { font-weight: 600; }
.case__meta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
}
.case__result {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.10); color: #0E9C6E;
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
}
.case__result svg { width: 14px; height: 14px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews__bar {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 20px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}
.reviews__stars { color: var(--warning); font-size: 18px; letter-spacing: 2px; }
.reviews__rating { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.reviews__source { color: var(--text-secondary); font-size: 14px; }
.reviews__widget { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.reviews__widget iframe { display: block; }
.reviews__link { margin-top: 20px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-soft); color: var(--brand-primary);
  transition: transform .25s ease, background .2s ease, color .2s ease;
}
.faq__icon svg { width: 16px; height: 16px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--brand-gradient); color: #fff; }
.faq__a { padding: 0 24px 24px; font-size: 16px; color: var(--text-secondary); text-wrap: pretty; line-height: 1.6; }

/* ============================================================
   FOR AGENCIES (B2B)
   ============================================================ */
.agency {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #EAF2FF 0%, #E8FAFF 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px;
}
.agency__intro .section__title { font-size: 36px; }
.agency__intro .section__subtitle { font-size: 18px; max-width: 420px; }
.agency__intro .btn { margin-top: 28px; }
.agency__list { display: flex; flex-direction: column; gap: 14px; }
.agency__item {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.agency__icon {
  width: 48px; height: 48px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-gradient); color: #fff;
  box-shadow: 0 8px 20px rgba(0, 86, 255, 0.30);
}
.agency__icon svg { width: 24px; height: 24px; }
.agency__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.agency__text { margin-top: 6px; font-size: 15px; color: var(--text-secondary); text-wrap: pretty; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding: 0 var(--pad-x) var(--section-gap); }
.cta-band__inner {
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  background: var(--brand-gradient);
  border-radius: 40px;
  padding: 72px 56px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.cta-band__inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 70%);
}
.cta-band__title { position: relative; font-size: 42px; color: #fff; letter-spacing: -0.035em; text-wrap: balance; }
.cta-band__text { position: relative; margin: 16px auto 0; max-width: 560px; font-size: 19px; color: rgba(255,255,255,0.88); }
.cta-band__actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 18, 32, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  animation: modalIn .26s cubic-bezier(.2,.7,.3,1);
}
.modal__scroll {
  overflow-y: auto;
  min-height: 0;
  padding: 34px;
}
.modal__scroll::-webkit-scrollbar { width: 6px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; margin: 20px 0; }
.modal__scroll::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.20); border-radius: 999px; }
.modal__scroll::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.32); }
@supports not selector(::-webkit-scrollbar) {
  .modal__scroll { scrollbar-width: thin; scrollbar-color: rgba(15, 23, 42, 0.25) transparent; }
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: var(--surface-soft); border-radius: 50%;
  color: var(--text-secondary); transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--surface-alt); color: var(--text-primary); }
.modal__title { font-size: 27px; letter-spacing: -0.03em; }
.modal__subtitle { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }

.form { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.field__label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.12);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channel input { position: absolute; opacity: 0; pointer-events: none; }
.channel__box {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all .15s ease;
}
.channel__box svg { width: 17px; height: 17px; }
.channel input:checked + .channel__box {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(0, 86, 255, 0.06);
}
.channel input:focus-visible + .channel__box { box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.12); }

.consents { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand-primary); }
.check a { color: var(--brand-primary); font-weight: 500; }
.check a:hover { text-decoration: underline; }

.form__note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.form__success {
  display: none;
  flex-direction: column; align-items: center; text-align: center;
  padding: 32px 8px;
}
.form__success.is-shown { display: flex; }
.form__success-icon {
  width: 68px; height: 68px; margin-bottom: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(16, 185, 129, 0.12); color: var(--success);
}
.form__success-icon svg { width: 34px; height: 34px; }
.form__success h3 { font-size: 23px; letter-spacing: -0.02em; }
.form__success p { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr 1fr; gap: 40px; }
.footer__logo { display: inline-flex; align-items: center; gap: 11px; }
.footer__logo svg { width: 36px; height: 36px; }
.footer__logo-text { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.footer__about { margin-top: 18px; font-size: 15px; color: #94A3B8; max-width: 340px; line-height: 1.6; }
.footer__col-title { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #64748B; margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 13px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; color: #CBD5E1; font-size: 15px; transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__links svg { width: 18px; height: 18px; flex: none; }
.footer__legal {
  margin-top: 60px; padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; color: #64748B; line-height: 1.75;
}

/* ============================================================
   COOKIE
   ============================================================ */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: none;
  align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 780px; margin: 0 auto;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}
.cookie.is-shown { display: flex; }
.cookie__text { flex: 1; min-width: 240px; font-size: 14px; color: var(--text-secondary); }
.cookie__text a { color: var(--brand-primary); font-weight: 500; }
.cookie__actions { display: flex; gap: 10px; }

/* ============================================================
   Entrance animations
   ============================================================ */
/* Transform-only entrance — never hides content (no opacity gate),
   so a paused timeline / non-painting load can never blank the hero. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: revealUp .7s cubic-bezier(.2,.7,.3,1) both; }
  .reveal--1 { animation-delay: .04s; }
  .reveal--2 { animation-delay: .12s; }
  .reveal--3 { animation-delay: .20s; }
  @keyframes revealUp { from { transform: translateY(18px); } to { transform: none; } }
}

/* ============================================================
   RESPONSIVE — breakpoint 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad-x: 16px; --section-gap: 58px; --header-h: 56px; }

  .section__title { font-size: 30px; }
  .section__subtitle { font-size: 17px; }
  .section__head { margin-bottom: 36px; }

  .nav { display: none; }
  .header__actions .btn,
  .header__actions .msg-btn { display: none; }
  .burger { display: inline-flex; }

  .hero { padding-top: 44px; padding-bottom: 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: 38px; letter-spacing: -0.035em; }
  .hero__subtitle { font-size: 17px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1; }
  .hero__visual::before { inset: -6% 0 -8% 0; transform: rotate(2deg); }
  .trust { gap: 8px 16px; }

  .countries { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__step {
    display: grid; grid-template-columns: 64px 1fr; column-gap: 18px;
    text-align: left; padding: 0 0 34px;
  }
  .flow__node { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .flow__title { grid-column: 2; grid-row: 1; align-self: center; }
  .flow__text { grid-column: 2; grid-row: 2; }
  /* vertical connector */
  .flow__step::before {
    top: 64px; left: 31px; width: 2px; height: calc(100% - 64px + 34px);
  }
  .flow__step:last-child::before { display: none; }
  .flow__step:first-child::before { display: block; }
  .flow__step::after { display: none; }

  .why { border-radius: 28px; margin: 0 var(--pad-x); }
  .why__inner { padding: 45px var(--pad-x); }
  .usps { grid-template-columns: 1fr; }

  .cases { grid-template-columns: 1fr; }

  .cta-band__inner { padding: 48px 24px; border-radius: 28px; }
  .cta-band__title { font-size: 28px; }
  .cta-band__text { font-size: 17px; }

  .agency { grid-template-columns: 1fr; gap: 28px; padding: 32px 22px; }
  .agency__intro .section__title { font-size: 26px; }
  .agency__intro .section__subtitle { font-size: 16px; }
  .agency__intro .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .modal { padding: 0; align-items: stretch; }
  .modal__dialog { max-width: none; max-height: 100vh; border-radius: 0; }
  .modal__scroll { padding: 24px 20px; }

  .reviews__widget iframe { height: 600px !important; }

  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions .btn { flex: 1; }
}

/* ===== nav dropdown «Направления» (ТЗ-2 B1) ===== */
.nav__drop{position:relative;display:flex;align-items:center}
.nav__drop>.nav__link{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.nav__drop::after{content:"";position:absolute;top:100%;left:0;right:0;height:14px}
.nav__chev{width:14px;height:14px;margin-left:1px;transition:transform .15s}
.nav__drop:hover .nav__chev,.nav__drop:focus-within .nav__chev{transform:rotate(180deg)}
.nav__menu{position:absolute;top:calc(100% + 12px);left:-18px;display:grid;grid-template-columns:repeat(3,max-content);gap:6px 30px;padding:20px 24px;background:var(--bg-surface,#fff);border:1px solid var(--border-strong);border-radius:var(--radius-lg);box-shadow:0 18px 48px rgba(15,23,42,.14);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s,transform .18s,visibility .18s;z-index:70}
.nav__drop:hover .nav__menu,.nav__drop:focus-within .nav__menu{opacity:1;visibility:visible;transform:translateY(0)}
.nav__menu-group{display:flex;flex-direction:column;gap:2px;min-width:170px}
.nav__menu a{display:block;padding:7px 10px;border-radius:8px;font-size:14px;font-weight:500;color:var(--text-secondary);text-decoration:none;white-space:nowrap;transition:background .12s,color .12s}
.nav__menu a:hover{background:rgba(0,86,255,.06);color:var(--brand-primary)}
.nav__menu .nav__menu-head{font-size:14.5px;font-weight:700;color:var(--text-primary);margin-bottom:4px}
.mobile-nav__links .mnav-sub{padding-left:14px;font-size:16px;color:var(--text-secondary)}

/* ===== a11y: skip-to-content (ТЗ-2 E1) ===== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;padding:12px 20px;background:var(--brand-primary);color:#fff;font-weight:600;border-radius:0 0 12px 0;text-decoration:none}
.skip-link:focus{left:0}

/* ===== E5: кнопка «наверх» + липкий мобильный CTA ===== */
.to-top{position:fixed;right:18px;bottom:18px;z-index:80;width:46px;height:46px;border-radius:50%;background:#fff;border:1px solid var(--border-strong);box-shadow:0 8px 24px rgba(15,23,42,.16);display:grid;place-items:center;color:var(--text-secondary);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s,color .15s,border-color .15s}
.to-top.is-shown{opacity:1;visibility:visible;transform:none}
.to-top:hover{color:var(--brand-primary);border-color:var(--brand-primary)}
.to-top svg{width:20px;height:20px}
.mcta{position:fixed;left:0;right:0;bottom:0;z-index:75;display:none;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--border-strong);transform:translateY(110%);transition:transform .25s}
.mcta.is-shown{transform:none}
.mcta .btn{width:100%}
@media (max-width:720px){
  .mcta{display:block}
  .to-top{bottom:78px;width:42px;height:42px}
  body.has-mcta .cookie{bottom:82px}
}
