/* ========== Токены ========== */
:root {
  --bg: #070b18;
  --bg-2: #0a1022;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eaf0ff;
  --muted: #94a0c4;
  --primary: #4f7cff;
  --primary-2: #86a6ff;
  --accent: #ff3b4a;
  --gold: #f5b53d;
  --navy: #0d1e5c;
  --ok: #3ad29f;
  --danger: #ff6b7a;
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.25, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --header-h: 76px;
  color-scheme: dark;
}

/* ========== База ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
html.menu-lock, html.menu-lock body { overflow: hidden; }
::selection { background: rgba(79, 124, 255, 0.4); }
:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; border-radius: 8px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ========== Кнопки ========== */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s, box-shadow 0.35s var(--ease), border-color 0.3s;
  isolation: isolate;
}
.btn .ic { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #5b86ff, #3d63f0);
  box-shadow: 0 10px 30px -10px rgba(79, 124, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 120% 0;
  transition: background-position 0.9s var(--ease);
  z-index: -1;
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(79, 124, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--primary:hover::after { background-position: -20% 0; }
.btn--ghost { border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: scale(0.97); }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading .ic { opacity: 0; }
.btn.is-loading::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Шапка ========== */
/* Фон и размытие шапки — на отдельном слое ::before.
   Если повесить backdrop-filter на саму шапку, она станет «рамкой» для fixed-меню
   и мобильное меню будет открываться внутри неё. */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-bottom: 1px solid transparent;
  opacity: 0;
  background: rgba(7, 11, 24, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: opacity 0.4s, border-color 0.4s;
}
.header.is-scrolled::before { opacity: 1; border-color: var(--border); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; flex: none; transition: opacity 0.3s, transform 0.4s var(--ease); }
.logo:hover { transform: scale(1.03); }
.logo img { height: 50px; width: auto; }
.logo--footer img { height: 72px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav > a { position: relative; padding: 8px 10px; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--muted); border-radius: 10px; transition: color 0.25s, background-color 0.25s; }
.nav > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.03); flex: none; }
.lang__btn { padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); transition: color 0.25s, background-color 0.25s; }
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.header__phone { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.header__phone .ic { width: 18px; height: 18px; color: var(--primary-2); }
.header__phone { width: 42px; height: 42px; justify-content: center; border-radius: 50%; border: 1px solid var(--border-2); transition: background-color 0.25s, border-color 0.25s; }
.header__phone:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.24); }
.header__phone span { display: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.blob--1 { width: 620px; height: 620px; right: -120px; top: -80px; background: radial-gradient(circle, rgba(79, 124, 255, 0.35), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.blob--2 { width: 520px; height: 520px; left: -180px; bottom: -160px; background: radial-gradient(circle, rgba(255, 59, 74, 0.13), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; will-change: transform; }

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 24px; }
.hero__content { position: relative; z-index: 3; max-width: 600px; }

.hero-in { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.is-ready .hero-in { opacity: 1; transform: none; filter: blur(0); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px; font-weight: 600; color: #c9d3f2;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(58, 210, 159, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(58, 210, 159, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 210, 159, 0); } }

.hero__title { margin: 22px 0 22px; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -0.035em; }
.rotator { display: grid; height: 1.18em; overflow: hidden; margin: 2px 0 6px; }
.rotator__word {
  grid-area: 1 / 1;
  justify-self: start;
  align-self: center;
  white-space: nowrap;
  background: linear-gradient(100deg, #b4c8ff 0%, #6a92ff 45%, #ff5a68 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.85s var(--ease-io), opacity 0.6s var(--ease);
}
.rotator__word.is-active { transform: none; opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-105%); opacity: 0; }
.hero__title-line { display: block; font-size: 0.56em; letter-spacing: -0.02em; color: #c5cfee; font-weight: 500; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.hero__trust small { color: var(--muted); font-size: 13.5px; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; margin-left: -10px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, hsl(var(--h) 70% 62%), hsl(calc(var(--h) + 40) 70% 45%));
  border: 2px solid var(--bg);
}
.avatars span:first-child { margin-left: 0; }
.stars-row { display: flex; align-items: center; gap: 2px; color: var(--gold); }
.stars-row .ic { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars-row b { margin-left: 8px; color: var(--text); }

/* Визуал */
.hero__visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 680px; justify-self: end; }
.globe-wrap { position: absolute; inset: 0; opacity: 0; transform: scale(0.92); transition: opacity 1.6s var(--ease) 0.2s, transform 1.8s var(--ease) 0.2s; }
.is-ready .globe-wrap { opacity: 1; transform: none; }
.globe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: grab; touch-action: pan-y; }
.globe.is-dragging { cursor: grabbing; }
.orbit { position: absolute; left: 2%; width: 96%; top: 50%; height: auto; transform: translateY(-50%) rotate(-16deg); fill: none; pointer-events: none; overflow: visible; }
.orbit path { stroke: rgba(143, 176, 255, 0.35); stroke-width: 1.2; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.orbit .orbit__track { stroke: none; }
.orbit--back { z-index: 0; opacity: 0.5; }
.orbit--front { z-index: 2; }
.orbit__plane circle { fill: rgba(79, 124, 255, 0.95); stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; filter: drop-shadow(0 0 8px rgba(79, 124, 255, 0.9)); }
.orbit__plane use { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(14, 21, 46, 0.66);
  border: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 1s var(--ease), translate 1.2s var(--ease);
  translate: 0 20px;
  animation: bob 6s ease-in-out infinite;
}
.is-ready .chip { opacity: 1; translate: 0 0; }
.chip small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.chip b { display: block; font-size: 14.5px; line-height: 1.3; white-space: nowrap; }
.chip b span { display: inline-block; }
.chip__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(79, 124, 255, 0.18); color: var(--primary-2); }
.chip__icon--ok { background: rgba(58, 210, 159, 0.15); color: var(--ok); }
.chip__icon .ic { width: 18px; height: 18px; }
.chip--route { top: 9%; right: 2%; transition-delay: 1.4s; }
.chip--approved { right: -2%; bottom: 25%; animation-delay: -3s; transition-delay: 1.6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ========== Паспорт ========== */
.passport-stage {
  --pw: 200px;
  --ph: 282px;
  position: absolute; z-index: 5;
  left: -6%; bottom: 3%;
  width: calc(var(--pw) * 2); height: var(--ph);
  perspective: 1800px;
  perspective-origin: 50% 30%;
  scale: var(--s, 1);
  transform-origin: 0 100%;
  opacity: 0;
  transform: translateY(70px) rotate(10deg) scale(0.86);
  transition: opacity 0.9s var(--ease), transform 1.3s var(--ease);
  pointer-events: none;
}
.passport-stage.is-in { opacity: 1; transform: none; }
.passport {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(16deg + var(--rx, 0deg))) rotateY(calc(-10deg + var(--ry, 0deg))) rotateZ(-5deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.book {
  position: absolute; top: 0; left: calc(var(--pw) / 2);
  width: var(--pw); height: var(--ph);
  transform-style: preserve-3d;
  transition: transform 1.4s var(--ease-io);
}
.book.is-open { transform: translateX(calc(var(--pw) / 2)); }
.passport__shadow {
  position: absolute; left: 50%; bottom: -10px; width: var(--pw); height: 60px; margin-left: calc(var(--pw) / -2);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
  transform: translateZ(-40px) translateY(30px) scaleX(1.1);
  transition: transform 1.4s var(--ease-io);
}
.is-open .passport__shadow { transform: translateZ(-40px) translateY(30px) scaleX(2.1); }

.page {
  position: absolute; inset: 0;
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  color: #2a3350;
  background:
    linear-gradient(90deg, rgba(60, 50, 30, 0.22), rgba(60, 50, 30, 0) 9%),
    repeating-radial-gradient(circle at 50% 120%, rgba(90, 120, 180, 0.06) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #fbf8f0, #efe8d8);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.page--left {
  border-radius: 10px 3px 3px 10px;
  background:
    linear-gradient(270deg, rgba(60, 50, 30, 0.22), rgba(60, 50, 30, 0) 9%),
    repeating-radial-gradient(circle at 50% -20%, rgba(90, 120, 180, 0.06) 0 2px, transparent 2px 9px),
    linear-gradient(200deg, #fbf8f0, #efe8d8);
}
.page--right { transform: translateZ(0); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 3px 0 0 #e4dccb, 5px 1px 0 #d8cfbc, 0 20px 40px -10px rgba(0, 0, 0, 0.5); overflow: visible; }
.page__head { position: absolute; top: 10px; left: 18px; right: 12px; display: flex; justify-content: space-between; font-size: 7px; letter-spacing: 0.3em; font-weight: 700; color: rgba(42, 51, 80, 0.45); }
.page__num { position: absolute; bottom: 8px; right: 12px; font-size: 8px; font-weight: 700; color: rgba(42, 51, 80, 0.4); }

.leaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transform: translateZ(1.5px); visibility: hidden; }
.leaf.is-flipping { visibility: visible; }
.leaf__face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.leaf__back { transform: rotateY(180deg); }
.shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.shade--front { background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)); }
.shade--back { background: linear-gradient(270deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)); }

.cover {
  position: absolute; inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: translateZ(3px) rotateY(0deg);
  transition: transform 1.4s var(--ease-io);
}
.book.is-open .cover { transform: translateZ(0px) rotateY(-180deg); }
.cover__front, .cover__back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cover__back { transform: rotateY(180deg); }
.cover__front {
  border-radius: 4px 12px 12px 4px;
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(255, 255, 255, 0.08), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 4px),
    linear-gradient(160deg, #1b2c5e, #0f1a3d 60%, #0b1430);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 6px 0 10px -4px rgba(0, 0, 0, 0.6), 0 24px 50px -16px rgba(0, 0, 0, 0.75);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 30px;
}
.cover__title, .cover__sub {
  background: linear-gradient(180deg, #f9df9c, #c99a3e 55%, #f2d185);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; text-align: center;
}
.cover__title { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.22em; padding-left: 0.22em; }
.cover__sub { font-size: 8.5px; letter-spacing: 0.3em; margin-top: 4px; }
.cover__emblem { width: 52%; margin-top: 26px; fill: none; stroke: #d9b060; stroke-width: 2; opacity: 0.95; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4)); }
.cover__chip { width: 34px; margin-top: auto; margin-bottom: 26px; fill: none; stroke: #d9b060; stroke-width: 1.6; }

/* Виза-вклейка */
.visa-slot { position: absolute; inset: 24px 10px 26px 16px; }
.visa {
  position: relative; overflow: hidden;
  height: 74%;
  padding: 9px 10px 8px;
  border-radius: 5px;
  color: var(--ink);
  background:
    repeating-radial-gradient(circle at 20% 130%, transparent 0 5px, color-mix(in srgb, var(--ink) 9%, transparent) 5px 6px),
    repeating-radial-gradient(circle at 100% -30%, transparent 0 7px, color-mix(in srgb, var(--ink) 6%, transparent) 7px 8px),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent);
  display: flex; flex-direction: column;
}
.visa__top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding-bottom: 5px; }
.visa__top b { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.12em; }
.visa__top span { font-size: 6.5px; font-weight: 800; letter-spacing: 0.08em; text-align: right; line-height: 1.2; }
.visa__body { display: grid; grid-template-columns: 38px 1fr; gap: 8px; margin-top: 8px; }
.visa__photo { color: var(--ink); border-radius: 2px; overflow: hidden; height: 46px; }
.visa__photo svg { width: 100%; height: 100%; }
.visa__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px; }
.visa__fields .wide { grid-column: 1 / -1; }
.visa__fields small { display: block; font-size: 5px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.6; line-height: 1.2; }
.visa__fields b { display: block; font-size: 7.5px; line-height: 1.3; color: #1c2135; }
.visa__mrz { margin-top: auto; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 6.2px; line-height: 1.45; letter-spacing: 0.06em; color: #2a2f45; white-space: nowrap; overflow: hidden; }
.visa__holo {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 46%, rgba(160, 220, 255, 0.6) 50%, rgba(255, 200, 240, 0.5) 54%, transparent 64%);
  background-size: 300% 100%;
  animation: holo 5s var(--ease-io) infinite;
}
@keyframes holo { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

.stamp {
  position: absolute; right: -6px; bottom: -14px; width: 92px;
  color: var(--ink);
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.stamp.is-stamped { opacity: 0.82; transform: rotate(-14deg); }
.stamp svg { width: 100%; height: auto; fill: none; stroke: currentColor; }
.stamp text { fill: currentColor; stroke: none; font-family: var(--font); font-weight: 800; }
.stamp__ring { font-size: 8.4px; letter-spacing: 0.06em; }
.stamp__big { font-family: var(--font-display) !important; font-size: 13px; letter-spacing: 0.08em; }
.stamp__date { font-size: 8.5px; letter-spacing: 0.04em; }

/* Страница с данными */
.data-page { position: absolute; inset: 14px 14px 12px 14px; display: flex; flex-direction: column; }
.dp-head { display: flex; justify-content: space-between; font-size: 6.5px; font-weight: 800; letter-spacing: 0.14em; color: rgba(42, 51, 80, 0.6); padding-bottom: 6px; border-bottom: 1px solid rgba(42, 51, 80, 0.15); }
.dp-body { display: grid; grid-template-columns: 54px 1fr; gap: 10px; margin-top: 12px; }
.dp-photo { height: 68px; color: #1d2a55; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(42, 51, 80, 0.12); }
.dp-photo svg { width: 100%; height: 100%; }
.dp-fields { display: grid; gap: 6px; align-content: start; }
.dp-fields small { display: block; font-size: 5.2px; font-weight: 700; letter-spacing: 0.04em; color: rgba(42, 51, 80, 0.55); line-height: 1.25; }
.dp-fields b { display: block; font-size: 8px; color: #1b2340; line-height: 1.25; }
.dp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dp-sign { margin-top: 12px; font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 17px; color: #2b3f86; opacity: 0.8; transform: rotate(-4deg); }
.dp-mrz { margin-top: auto; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 5.6px; line-height: 1.5; letter-spacing: 0.04em; color: #2a2f45; white-space: nowrap; overflow: hidden; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.25); z-index: 3; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 2s var(--ease-io) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ========== Бегущая строка ========== */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee__track span { display: flex; align-items: center; gap: 48px; padding-right: 48px; font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; color: rgba(234, 240, 255, 0.55); white-space: nowrap; }
.marquee__track span::after { content: '✦'; font-size: 0.6em; color: var(--primary-2); opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== Секции ========== */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 46px); letter-spacing: -0.03em; max-width: 760px; }
.section__lead { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-2); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section__head--center .eyebrow::after { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.spotlight::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 124, 255, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.spotlight:hover::before { opacity: 1; }

/* Цифры */
.stats { padding: 72px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 12px; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.04em; line-height: 1.1;
  background: linear-gradient(180deg, #fff, #9fb6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-weight: 600; }

/* Направления */
.tabs { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.tab { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--muted); transition: color 0.3s; }
.tab.is-active { color: #fff; }
.tabs__pill { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: linear-gradient(135deg, #5b86ff, #3d63f0); box-shadow: 0 6px 20px -6px rgba(79, 124, 255, 0.8); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dest { padding: 22px; display: flex; flex-direction: column; transition: transform 0.45s var(--ease), border-color 0.3s, opacity 0.9s var(--ease), background-color 0.3s; }
.dest.is-in:hover { transform: translateY(-5px); border-color: rgba(134, 166, 255, 0.35); }
.dest__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dest__flag { width: 44px; height: 33px; object-fit: cover; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 14px -6px rgba(0, 0, 0, 0.6); }
.dest__tag { font-size: 12px; font-weight: 700; color: var(--primary-2); padding: 4px 10px; border-radius: 999px; background: rgba(79, 124, 255, 0.12); }
.dest h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.dest p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.dest__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 700; color: var(--primary-2); align-self: flex-start; }
.dest__link .ic { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.dest__link:hover .ic { transform: translateX(4px); }
.dest-more { display: flex; justify-content: center; margin-top: 36px; }
.dest-more .ic { transition: transform 0.45s var(--ease); }
.dest-more .btn:hover .ic { transform: translateY(2px); }
#destMore.is-expanded .ic { transform: rotate(180deg); }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service { padding: 28px 24px; transition: transform 0.45s var(--ease), border-color 0.3s, opacity 0.9s var(--ease); }
.service.is-in:hover { transform: translateY(-5px); border-color: rgba(134, 166, 255, 0.3); }
.service__icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  color: #fff; background: linear-gradient(135deg, rgba(91, 134, 255, 0.9), rgba(61, 99, 240, 0.6));
  box-shadow: 0 10px 24px -10px rgba(79, 124, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.5s var(--ease);
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.06); }
.service__icon .ic { width: 24px; height: 24px; }
.service h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.service p { color: var(--muted); font-size: 14.5px; margin-top: 10px; line-height: 1.6; }
.service--cta { display: block; background: linear-gradient(160deg, rgba(79, 124, 255, 0.2), rgba(255, 59, 74, 0.08)); border-color: rgba(134, 166, 255, 0.3); }
.service__phone { display: block; margin-top: 14px; font-size: 17px; color: #fff; }

/* Процесс */
.process { background: linear-gradient(180deg, transparent, rgba(79, 124, 255, 0.05) 50%, transparent); }
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps__line { position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--primary)); transform-origin: left; transform: scaleX(var(--p)); }
.step { position: relative; }
.step__num {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; margin-bottom: 24px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--border-2);
  box-shadow: 0 0 0 8px var(--bg);
}
.step.is-in .step__num { border-color: rgba(134, 166, 255, 0.55); box-shadow: 0 0 0 8px var(--bg), 0 0 30px -4px rgba(79, 124, 255, 0.6); transition: border-color 0.6s 0.3s, box-shadow 0.6s 0.3s; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* Подбор визы */
.checker { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 48px; overflow: hidden; }
.checker::after { content: ''; position: absolute; width: 500px; height: 500px; left: -200px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 124, 255, 0.18), transparent 65%); pointer-events: none; }
.checker h2 { font-size: clamp(26px, 2.8vw, 38px); }
.checker__form { position: relative; z-index: 1; }
.checker__form .field { margin-top: 26px; }
.field { display: block; }
.field > span { display: block; font-size: 13.5px; font-weight: 700; color: #c4cdea; margin-bottom: 8px; }
.field input, .field textarea, .select select {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #66729a; }
.field input:focus, .field textarea:focus, .select select:focus { border-color: var(--primary); background: rgba(79, 124, 255, 0.06); box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.18); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select option { background: #0e1530; }
.select .ic { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field__error { display: block; height: 0; overflow: hidden; font-style: normal; font-size: 13px; color: var(--danger); transition: height 0.3s var(--ease), margin 0.3s; }
.has-error input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.14); }
.has-error .field__error { height: 20px; margin-top: 6px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.segmented button { padding: 11px 6px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.segmented button:hover { color: var(--text); }
.segmented button.is-active { color: #fff; background: rgba(79, 124, 255, 0.9); box-shadow: 0 6px 18px -6px rgba(79, 124, 255, 0.9); }
.checker__result { position: relative; z-index: 1; min-height: 420px; border-radius: 18px; background: rgba(5, 9, 22, 0.55); border: 1px solid var(--border); padding: 28px; }
.res { animation: resIn 0.6s var(--ease) both; }
@keyframes resIn { from { opacity: 0; transform: translateY(14px); } }
.res__head { display: flex; align-items: center; gap: 16px; }
.res__head img { width: 56px; height: 42px; object-fit: cover; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.res__head small { color: var(--primary-2); font-weight: 700; font-size: 13px; }
.res__head h3 { font-family: var(--font-display); font-size: 24px; }
.res__stats { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 22px 0; }
.res__stats div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.res__stats small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.res__stats b { font-size: 14.5px; line-height: 1.35; display: block; margin-top: 2px; }
.res__stats .is-free { background: rgba(58, 210, 159, 0.1); border-color: rgba(58, 210, 159, 0.3); }
.res__stats .is-free b { color: var(--ok); }
.res__how { display: flex; gap: 10px; align-items: flex-start; margin: -8px 0 20px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; color: #c9d3f2; background: rgba(79, 124, 255, 0.08); border: 1px solid rgba(79, 124, 255, 0.2); }
.res__how .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--primary-2); }
.res h4 { font-size: 14px; color: #c4cdea; font-weight: 700; margin-bottom: 10px; }
.res__docs { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.res__docs li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; animation: resIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 0.1s); }
.res__docs .ic { width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; color: var(--ok); background: rgba(58, 210, 159, 0.14); stroke-width: 3; }
.res__note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Отзывы */
.reviews { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews__track { display: flex; gap: 18px; width: max-content; padding: 6px 0; animation: marquee 60s linear infinite; }
.reviews:hover .reviews__track { animation-play-state: paused; }
.review { width: 370px; margin: 0; padding: 26px; display: flex; flex-direction: column; }
.review__stars { display: flex; gap: 2px; color: var(--gold); }
.review__stars .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.review blockquote { margin: 16px 0 22px; font-size: 15.5px; line-height: 1.65; color: #d5ddf5; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, hsl(var(--h) 70% 60%), hsl(calc(var(--h) + 50) 70% 42%)); }
.review figcaption b { display: block; font-size: 15px; }
.review figcaption small { color: var(--muted); font-size: 13px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro .btn { margin-top: 28px; }
.qa { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font-size: 18px; font-weight: 700; transition: color 0.3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--primary-2); }
.qa summary .ic { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 50%; border: 1px solid var(--border-2); transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s; }
.qa.is-open summary .ic { transform: rotate(180deg); background: var(--primary); border-color: var(--primary); color: #fff; }
.qa__body { overflow: hidden; }
.qa__body p { padding-bottom: 24px; color: var(--muted); max-width: 640px; }

/* Контакты */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; color: var(--primary-2); background: rgba(79, 124, 255, 0.12); border: 1px solid rgba(79, 124, 255, 0.2); }
.contact__list small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.contact__list b { font-size: 15px; line-height: 1.4; }
.contact__list a:hover b { color: var(--primary-2); }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); height: 230px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(195deg) saturate(0.55) brightness(0.92) contrast(0.95); }

.form { padding: 36px; display: grid; overflow: hidden; }
.form__body, .form__success { grid-area: 1 / 1; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s; }
.form__body { display: grid; gap: 18px; }
.form h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 4px; }
.form .field > span { margin-bottom: 8px; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; }
.form__error { font-size: 14px; line-height: 1.5; color: #ffb3ba; text-align: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 107, 122, 0.1); border: 1px solid rgba(255, 107, 122, 0.3); }
.form__error a { color: #fff; font-weight: 700; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(20px); }
.form__success p { color: var(--muted); max-width: 300px; margin-bottom: 12px; }
.form.is-sent .form__body { opacity: 0; visibility: hidden; transform: translateY(-20px); }
.form.is-sent .form__success { opacity: 1; visibility: visible; transform: none; transition-delay: 0.2s; }
.success-check svg { width: 84px; height: 84px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; opacity: 0.6; }
.success-check path { stroke-dasharray: 36; stroke-dashoffset: 36; stroke-width: 3.5; }
.form.is-sent .success-check circle { animation: draw 0.8s var(--ease) 0.35s forwards; }
.form.is-sent .success-check path { animation: draw 0.5s var(--ease) 0.95s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Оплата */
.pay { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 48px; overflow: hidden; }
.pay::after { content: ''; position: absolute; width: 520px; height: 520px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 204, 204, 0.16), transparent 65%); pointer-events: none; }
.pay h2 { font-size: clamp(26px, 2.8vw, 38px); }
.pay__steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.pay__steps li { display: flex; gap: 14px; align-items: flex-start; }
.pay__steps li > span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #00cccc; background: rgba(0, 204, 204, 0.12); border: 1px solid rgba(0, 204, 204, 0.3); }
.pay__steps b { display: block; font-size: 16px; }
.pay__steps small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.pay__steps a { color: var(--primary-2); font-weight: 700; }
.pay__card { position: relative; z-index: 1; align-self: center; padding: 30px; border-radius: 22px; background: rgba(5, 9, 22, 0.6); border: 1px solid var(--border-2); display: grid; gap: 12px; text-align: center; }
.pay__brand { display: flex; justify-content: center; margin-bottom: 6px; }
.payme-word { font-family: var(--font); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; color: #fff; }
.payme-word b { color: #00cccc; font-weight: 800; }
.pay__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.pay__sub { color: var(--muted); font-size: 14px; margin-top: -8px; }
.pay__cards { display: flex; justify-content: center; gap: 8px; margin: 4px 0 8px; }
.pay__cards span { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-2); color: #c9d3f2; }
.btn--payme { color: #fff; background: linear-gradient(135deg, #00d2d2, #00a8b5); box-shadow: 0 12px 30px -10px rgba(0, 204, 204, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--payme:hover { box-shadow: 0 16px 40px -12px rgba(0, 204, 204, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.pay__secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pay__secure .ic { width: 14px; height: 14px; flex: none; }

/* Подвал */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; gap: 28px; }
.footer p { color: var(--muted); font-size: 13.5px; flex: 1; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border-2); color: var(--muted); transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.footer__social a:hover { color: #fff; border-color: var(--primary); transform: translateY(-3px); }
.footer__social .ic { width: 18px; height: 18px; }

.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #37aee2, #1e96c8);
  box-shadow: 0 14px 30px -10px rgba(30, 150, 200, 0.9);
  transition: transform 0.4s var(--ease);
}
.fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #37aee2; animation: fabPing 2.4s var(--ease) infinite; }
.fab:hover { transform: scale(1.08) rotate(-8deg); }
.fab .ic { width: 24px; height: 24px; margin-left: -2px; }
@keyframes fabPing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }


/* Ссылки на карты */
.map__links { display: flex; gap: 10px; margin-top: 12px; }
.map__links a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; font-size: 14px; font-weight: 700; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.03); transition: background-color 0.3s, border-color 0.3s; }
.map__links a:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.map__links .ic { width: 16px; height: 16px; color: var(--primary-2); }

/* Кнопки в мобильном меню и короткие подписи — только на телефоне */
.nav__extra { display: none; }
.dest__link .l-short { display: none; }

/* Нижняя панель на телефоне */
.mbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 11, 24, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.mbar.is-visible { transform: none; }
.menu-open .mbar { transform: translateY(110%); }
.mbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; font-weight: 700; font-size: 15.5px; color: #fff; background: linear-gradient(135deg, #5b86ff, #3d63f0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.mbar__btn--tg { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.mbar__btn .ic { width: 18px; height: 18px; }

/* ========== Адаптив ========== */

@media (max-width: 1260px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: 0; z-index: -1; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: calc(var(--header-h) + 20px) 28px 40px;
    background: var(--bg);
    overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
  }
  .nav > a { font-family: var(--font-display); font-size: clamp(24px, 6vw, 36px); color: var(--text); padding: 8px 0; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
  .nav > a:hover { background: none; color: var(--primary-2); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .nav > a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: 0.04s; }
  .menu-open .nav a:nth-child(3) { transition-delay: 0.08s; }
  .menu-open .nav a:nth-child(4) { transition-delay: 0.12s; }
  .menu-open .nav a:nth-child(5) { transition-delay: 0.16s; }
  .menu-open .nav a:nth-child(6) { transition-delay: 0.2s; }
  .menu-open .nav a:nth-child(7) { transition-delay: 0.24s; }
  .menu-open .nav a:nth-child(8) { transition-delay: 0.28s; }
  .menu-open .header::before { opacity: 0; transition: none; }
  .dest-grid, .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { padding-bottom: 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__content { max-width: 680px; }
  .hero__visual { justify-self: center; max-width: 620px; margin-top: 8px; }
  .passport-stage { --s: 0.86; left: 0; bottom: 0; }
  .dest-grid, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps__line { display: none; }
  .checker { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .pay { grid-template-columns: minmax(0, 1fr); padding: 32px; gap: 32px; }
  .faq, .contact { grid-template-columns: 1fr; gap: 40px; }
  .faq__intro { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .header__phone span { display: none; }
  .scroll-hint { display: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .container { padding: 0 16px; }
  .logo img { height: 42px; }
  .header__phone, .header .btn--sm { display: none; }

  /* Меню */
  .nav { justify-content: flex-start; padding-top: calc(var(--header-h) + 24px); overflow-y: auto; }
  .nav > a { font-size: 26px; padding: 7px 0; }
  .nav__extra { display: grid; gap: 10px; width: 100%; margin-top: 24px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease) 0.3s, transform 0.6s var(--ease) 0.3s; }
  .menu-open .nav__extra { opacity: 1; transform: none; }
  .nav__extra .btn { width: 100%; font-family: var(--font); font-size: 16px; }

  /* Hero */
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 24px; min-height: 0; }
  .hero__title { font-size: clamp(30px, 8.6vw, 40px); margin: 18px 0; }
  .hero__lead { font-size: 16px; }
  .hero__cta { flex-direction: column; margin-top: 26px; gap: 12px; }
  .hero__cta .btn { width: 100%; }
  .hero__trust { margin-top: 26px; }
  .hero__visual { width: calc(100% + 32px); margin-inline: -16px; max-width: none; aspect-ratio: 1 / 1.34; margin-top: 18px; }
  .globe-wrap { inset: 48px 0 30% 0; }
  .orbit { left: 6%; width: 88%; }
  .passport-stage { --s: 0.72; left: 50%; margin-left: calc(var(--pw) * -0.72); bottom: 0; }
  .chip { padding: 7px 12px 7px 7px; border-radius: 13px; animation: none; }
  .chip__icon { width: 30px; height: 30px; border-radius: 9px; }
  .chip b { font-size: 13px; }
  .chip--route { top: 0; left: 50%; right: auto; translate: -50% 0 !important; }
  .chip--approved { display: none; }
  .scroll-hint { display: none; }

  /* Общие отступы */
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 28px; gap: 20px; }
  .section h2 { font-size: clamp(26px, 7.4vw, 32px); }
  .section__lead { font-size: 15.5px; }
  .marquee { padding: 18px 0; }

  /* Цифры */
  .stats { padding: 40px 0 8px; }
  .stats__grid { gap: 12px; }
  .stat { padding: 18px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
  .stat b { font-size: 30px; white-space: nowrap; }
  .stat span { font-size: 13.5px; line-height: 1.35; display: block; margin-top: 4px; }

  /* Направления: 2 колонки, вся карточка кликабельна */
  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 8px 11px; font-size: 13.5px; }
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dest { padding: 14px; border-radius: 16px; }
  .dest__top { margin-bottom: 12px; }
  .dest__flag { width: 34px; height: 25px; border-radius: 5px; }
  .dest__tag { font-size: 10.5px; padding: 3px 7px; }
  .dest h3 { font-size: 15.5px; line-height: 1.25; }
  .dest p { font-size: 12.5px; line-height: 1.4; }
  .dest__link { padding-top: 12px; font-size: 13px; }
  .dest__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
  .dest__link .l-full { display: none; }
  .dest__link .l-short { display: inline; }
  .dest-more { margin-top: 24px; }

  /* Услуги: иконка слева, текст справа */
  .services { grid-template-columns: 1fr; gap: 10px; }
  .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 16px; border-radius: 16px; }
  .service__icon { grid-row: span 3; width: 44px; height: 44px; border-radius: 13px; margin: 0; }
  .service__icon .ic { width: 21px; height: 21px; }
  .service h3 { font-size: 16px; margin-top: 2px; }
  .service p { font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
  .service__phone { margin-top: 8px; font-size: 16px; }

  /* Шаги: вертикальная линия с прогрессом */
  .steps { grid-template-columns: 1fr; row-gap: 26px; }
  .steps__line { display: block; left: 25px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; }
  .steps__line span { transform-origin: top; transform: scaleY(var(--p)); background: linear-gradient(180deg, var(--accent), var(--primary)); }
  .step { padding-left: 70px; min-height: 52px; }
  .step__num { position: absolute; left: 0; top: 0; width: 52px; height: 52px; margin: 0; font-size: 14px; }
  .step h3 { font-size: 18px; padding-top: 2px; }
  .step p { font-size: 14.5px; margin-top: 6px; }

  /* Подбор визы */
  .checker { padding: 22px 16px; border-radius: 18px; gap: 24px; }
  .checker__form .field { margin-top: 20px; }
  .checker__result { padding: 18px 14px; min-height: 0; }
  .res__head h3 { font-size: 21px; }
  .res__head img { width: 46px; height: 34px; }
  .res__docs li { font-size: 14px; }

  /* Отзывы: листаются пальцем */
  .reviews { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; padding: 0 16px; scroll-padding: 0 16px; }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews__track { animation: none; gap: 12px; padding-right: 16px; }
  .review { width: 82vw; max-width: 330px; scroll-snap-align: start; padding: 22px; }
  .review[aria-hidden="true"] { display: none; }

  /* FAQ */
  .faq { gap: 24px; }
  .qa summary { font-size: 16.5px; padding: 20px 0; }

  /* Контакты: форма сразу после заголовка */
  .contact { row-gap: 0; }
  .contact__info { display: contents; }
  .contact .form { order: 1; margin-top: 28px; padding: 22px 16px; }
  .contact .form h3 { display: none; }
  .contact__list { order: 2; grid-template-columns: 1fr; gap: 6px; margin: 28px 0 16px; }
  .contact__list li { position: relative; padding: 8px 0; }
  .contact__list a::after { content: ''; position: absolute; inset: 0; }
  .map { order: 3; height: 210px; }
  .map iframe { pointer-events: none; }
  .map__links { order: 4; }

  /* Поля: 16px, чтобы iPhone не увеличивал страницу */
  .field input, .field textarea, .select select { font-size: 16px; }

  /* Оплата */
  .pay { padding: 22px 16px; border-radius: 18px; gap: 24px; }
  .pay__card { padding: 22px 16px; }

  /* Подвал и кнопки внизу */
  .footer { padding: 32px 0 calc(100px + env(safe-area-inset-bottom)); }
  .footer__inner { flex-direction: column; text-align: center; gap: 20px; }
  .fab { display: none; }
  .mbar { display: grid; }
}

@media (max-width: 360px) {
  .hero__title { font-size: 28px; }
  .dest-grid { gap: 8px; }
  .dest { padding: 12px; }
  .tab { padding: 8px 7px; font-size: 12.5px; }
  .segmented button { font-size: 13px; padding: 11px 2px; }
  .checker, .pay { padding-left: 12px; padding-right: 12px; }
  .stat b { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee__track, .reviews__track { animation: none; }
}
