/* =========================================================
   Santa World — ВНЖ Испании под ключ
   Палитра: rojigualda (красный/жёлтый флага) + золото логотипа
   ========================================================= */
:root {
  --cream: #EFFAFF;
  --cream-2: #E2F3F9;
  --sand: #D8F0F5;
  --ink: #102B47;
  --ink-2: #1B4A78;
  --ink-3: #143F68;
  --yellow: #F4BD29;
  --yellow-2: #FFD45C;
  --red: #E34E45;
  --red-2: #E34E45;
  --gold: #C9A13A;
  --deep: #143F68;
  --text: var(--ink);
  --muted: #577187;
  --line: rgba(16, 43, 71, 0.14);
  --line-dark: rgba(220, 240, 255, 0.16);

  --f-sans: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Forum", "Times New Roman", serif;

  --pad: clamp(16px, 2vw, 32px);
  --radius: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--f-sans);
  font-stretch: 105%;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
body.is-loading { overflow: hidden; }
img { 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, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- типографика ---------- */
.t-sans, .wm-sans {
  font-family: var(--f-sans);
  font-weight: 800;
  font-stretch: 122%;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.t-serif, .wm-serif {
  font-family: var(--f-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow svg { width: 14px; height: 14px; }
.eyebrow--center { display: flex; justify-content: center; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--accent { background: var(--yellow); color: var(--ink); }
.btn--accent:hover { background: var(--deep); color: var(--yellow); }
[data-theme="dark"] .btn--accent:hover, .footer .btn--accent:hover, .menu .btn--accent:hover { background: var(--cream); color: var(--ink); }
.btn--wide { width: 100%; height: 54px; }
.btn:active { transform: scale(.97); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  transition: transform .5s var(--ease);
}
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- топо-фон ---------- */
canvas.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   ПРЕЛОАДЕР
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 0 0);
}
.preloader__mark {
  display: flex;
  gap: 4px;
  font-family: var(--f-sans);
  font-weight: 900;
  font-stretch: 130%;
  font-size: 54px;
  line-height: 1;
}
.preloader__mark span { display: inline-block; transform: translateY(20px) rotate(-12deg); opacity: 0; }
.preloader__mark span:last-child { color: var(--red); }
.preloader__count {
  position: absolute;
  top: calc(50% + 50px);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
}
.preloader__label {
  position: absolute;
  bottom: 28px;
  font-size: 10px; font-weight: 800; font-stretch: 120%; letter-spacing: .08em;
}

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink);
  transition: color .4s, transform .6s var(--ease);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header.is-dark { color: var(--cream); }
.header.is-hidden { transform: translateY(-110%); }

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: .82;
  font-size: 27px;
  justify-self: start;
}
.header__logo .wm-sans { font-size: 25px; }
.header__mark { grid-column: 2; width: 30px; height: 30px; color: currentColor; transition: transform .8s var(--ease); }
.header__mark:hover { transform: rotate(180deg); }
.header__mark svg { width: 100%; height: 100%; }
.header__actions { grid-column: 3; justify-self: end; display: flex; gap: 10px; align-items: center; }
.header__cta svg { width: 15px; height: 15px; }

.burger {
  width: 44px; height: 44px;
  border-radius: 9px;
  border: 1.5px solid currentColor;
  position: relative;
  transition: background-color .3s, color .3s;
  background: rgba(239, 250, 255, 0.4);
  backdrop-filter: blur(6px);
}
.header.is-dark .burger { background: rgba(16, 43, 71, .3); }
.burger span {
  position: absolute;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .5s var(--ease), width .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { width: 12px; top: 17px; left: 17px; }
.burger span:last-child { width: 16px; top: 24px; left: 11px; }
body.menu-open .burger span:first-child { width: 18px; left: 12px; top: 20.5px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { width: 18px; left: 12px; top: 20.5px; transform: rotate(-45deg); }
body.menu-open .header { color: var(--cream); }

/* =========================================================
   МЕНЮ
   ========================================================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--deep);
  color: var(--cream);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.menu__inner {
  position: relative; z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: calc(var(--header-h) + 40px) var(--pad) 40px;
  align-items: end;
}
.menu__links { margin-top: 18px; }
.menu__links a {
  display: block;
  overflow: hidden;
  font-weight: 800;
  font-stretch: 122%;
  text-transform: uppercase;
  font-size: clamp(36px, 6.2vw, 92px);
  line-height: .98;
  letter-spacing: -.03em;
}
.menu__links a span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease), color .3s; }
body.menu-open .menu__links a span { transform: none; }
.menu__links li:nth-child(2) a span { transition-delay: .05s; }
.menu__links li:nth-child(3) a span { transition-delay: .1s; }
.menu__links li:nth-child(4) a span { transition-delay: .15s; }
.menu__links li:nth-child(5) a span { transition-delay: .2s; }
.menu__links li:nth-child(6) a span { transition-delay: .25s; }
.menu__links a:hover span { color: var(--yellow); font-family: var(--f-serif); font-weight: 400; }
.menu__col--side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.menu__phone { font-family: var(--f-serif); font-size: clamp(30px, 3.2vw, 46px); color: var(--yellow); }
.menu__socials { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; font-size: 14px; }
.menu__socials a:hover { color: var(--yellow); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--cream);
}
.hero__stage { position: absolute; inset: 0; z-index: 1; }
#heroCanvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#heroCanvas:active { cursor: grabbing; }
.hero__fallback { position: absolute; left: 50%; top: 54%; width: min(70vw, 460px); transform: translate(-50%, -50%); }

.hero__title {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(var(--header-h) + 2px);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.hero__title h1 { font-size: clamp(30px, 3vw, 46px); line-height: 1; display: flex; gap: .18em; justify-content: center; align-items: baseline; }
.hero__title h1 .wm-serif { font-size: 1.06em; }
.hero__sub { margin-top: 8px; font-size: 10px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .05em; }

.hero__card {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: var(--pad);
  width: 128px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(239, 250, 255, .55);
  backdrop-filter: blur(6px);
  text-align: center;
}
.hero__card-label { font-size: 8px; font-weight: 800; font-stretch: 120%; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.hero__card-flag { display: grid; grid-template-rows: 1fr 2fr 1fr; width: 46px; height: 30px; margin: 10px auto 6px; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.hero__card-flag i:nth-child(odd) { background: var(--red); }
.hero__card-flag i:nth-child(2) { background: var(--yellow); }
.hero__card-big { font-weight: 900; font-stretch: 125%; font-size: 26px; line-height: 1; }
.hero__card-big small { font-size: 10px; margin-left: 3px; }
.hero__card-big--sm { font-size: 20px; margin-top: 6px; color: var(--red); }
.hero__card-foot { font-size: 8px; color: var(--muted); margin-top: 4px; text-transform: uppercase; font-weight: 700; }
.hero__card-sep { height: 1px; background: var(--line); margin: 10px 0; }

.hero__scroll {
  position: absolute; z-index: 2;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .08em;
}
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); animation: scrollLine 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.hero__drag {
  position: absolute; z-index: 2;
  right: var(--pad); bottom: var(--pad);
  display: flex; align-items: center; gap: 12px;
  font-size: 9px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .06em;
}
.hero__drag i { width: 46px; height: 46px; border-radius: 8px; background: var(--yellow); display: grid; place-items: center; transition: transform .4s var(--ease); }
.hero__drag i svg { width: 24px; height: 24px; }
.hero__drag:hover i, .hero__drag.is-active i { transform: rotate(-12deg) scale(1.06); }

/* =========================================================
   ПОСЛАНИЕ ОТ КОМАНДЫ
   ========================================================= */
.message {
  position: relative;
  background: var(--deep);
  color: var(--cream);
  min-height: 115vh;
  padding: 120px 0 110px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.message__label {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 26px;
}
.message__label svg { width: 26px; height: 26px; color: var(--yellow); }
.message__stage { position: relative; width: 100%; display: flex; justify-content: center; }
.message__marquee {
  position: absolute; z-index: 1;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.marquee-row { white-space: nowrap; line-height: .92; will-change: transform; }
.marquee-row span { display: inline-block; }
.marquee-row--serif { font-family: var(--f-serif); color: var(--yellow); font-size: clamp(64px, 9.4vw, 150px); text-transform: uppercase; }
.marquee-row--sans { font-weight: 800; font-stretch: 122%; text-transform: uppercase; font-size: clamp(56px, 8.4vw, 136px); letter-spacing: -.03em; }

.message__photo {
  position: relative; z-index: 2;
  width: clamp(240px, 27vw, 420px);
  aspect-ratio: 4 / 4.6;
}
.message__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.9); }
.signature {
  position: absolute;
  left: -32%; top: -14%;
  width: 165%; height: auto;
  overflow: visible;
  pointer-events: none;
}
.signature path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.message__text { position: relative; z-index: 2; max-width: 480px; text-align: center; margin-top: 56px; padding: 0 var(--pad); }
.message__text p { color: rgba(239, 250, 255, .72); font-size: 15px; }
.message__sign { margin-top: 14px; font-family: var(--f-serif); color: var(--yellow) !important; font-size: 20px !important; text-transform: uppercase; }

/* =========================================================
   МАНИФЕСТ
   ========================================================= */
.manifesto {
  position: relative;
  background: var(--deep);
  color: var(--cream);
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px var(--pad) 120px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.manifesto .eyebrow { position: relative; z-index: 1; color: rgba(239, 250, 255,.7); margin-bottom: 40px; }
.manifesto__wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.manifesto__text {
  font-weight: 800;
  font-stretch: 122%;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(34px, 6.1vw, 96px);
  line-height: .96;
  letter-spacing: -.03em;
}
.manifesto__text em {
  font-style: normal;
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--yellow);
  letter-spacing: -.01em;
}
.manifesto__text .w { opacity: .16; transition: opacity .2s linear; }
.pixels {
  position: absolute;
  inset: -2% -1%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 16), 1fr);
  grid-template-rows: repeat(var(--rows, 7), 1fr);
  pointer-events: none;
}
.pixels i { background: var(--yellow); }

/* =========================================================
   ГАЛЕРЕЯ
   ========================================================= */
.gallery {
  position: relative;
  background: var(--sand);
  height: 290vh;
  min-height: 2100px;
  overflow: hidden;
}
.g-item { position: absolute; z-index: 1; will-change: transform; }
.g-item::before {
  content: "";
  position: absolute; left: 0; top: -14px;
  width: 34px; height: 5px;
  background: var(--yellow);
}
.g-item figcaption {
  position: absolute; left: 0; top: -32px;
  font-size: 9px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .06em;
}
.g-item::before { top: -14px; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(.18) contrast(1.02);
  transition: filter .8s var(--ease), transform 1.2s var(--ease);
}
.g-item.is-color img, .g-item:hover img { filter: none; }
.g-item { overflow: visible; }
.g-item > img { clip-path: inset(0); }

.g-1 { left: 4%;  top: 4%;  width: 17vw; aspect-ratio: 4/3; }
.g-2 { left: 33%; top: 13%; width: 30vw; aspect-ratio: 1/1; }
.g-3 { right: 4%; top: 5%;  width: 13vw; aspect-ratio: 3/4; }
.g-4 { left: 8%;  top: 30%; width: 14vw; aspect-ratio: 4/5; }
.g-5 { right: 6%; top: 41%; width: 18vw; aspect-ratio: 4/5; }
.g-6 { left: 24%; top: 50%; width: 25vw; aspect-ratio: 4/3; }
.g-7 { left: 3%;  top: 63%; width: 15vw; aspect-ratio: 3/4; }
.g-8 { right: 5%; top: 70%; width: 23vw; aspect-ratio: 1/1; }
.g-9 { left: 25%; top: 83%; width: 13vw; aspect-ratio: 3/4; }
.g-10 { left: 55%; top: 88%; width: 15vw; aspect-ratio: 4/3; }

.gallery__quote {
  position: absolute; z-index: 2;
  text-align: center;
  font-family: var(--f-serif);
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.05;
}
.gallery__quote span { display: block; margin-top: 14px; font-family: var(--f-sans); font-size: 9px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gallery__quote--1 { left: 50%; top: 4.5%; transform: translateX(-50%); width: 40vw; }
.gallery__quote--2 { left: 54%; top: 64%; transform: translateX(-50%); width: 38vw; }

.gallery__stat { position: absolute; z-index: 2; right: 30%; top: 36%; display: flex; align-items: flex-end; gap: 12px; }
.gallery__stat-num { font-family: var(--f-serif); font-size: clamp(110px, 13vw, 210px); line-height: .75; color: var(--red); }
.gallery__stat-label { font-size: 10px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 6px; }

/* =========================================================
   ДВА НАПРАВЛЕНИЯ
   ========================================================= */
.paths {
  position: relative;
  min-height: 100vh;
  background: var(--cream);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 120px var(--pad);
}
.paths__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 330px));
  gap: clamp(60px, 13vw, 240px);
}
.path { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.path h2 { display: flex; flex-direction: column; font-size: clamp(36px, 3.6vw, 66px); line-height: .86; white-space: nowrap; }
.path h2 .t-serif { font-size: 1.08em; }
.path--travel h2 { font-size: clamp(30px, 2.7vw, 48px); }
.path p { font-size: 12.5px; max-width: 250px; color: var(--muted); }
.path:hover .icon-btn { transform: rotate(45deg); }

.paths__visual { position: absolute; z-index: 1; top: 50%; }
.paths__visual--left { left: -9vw; transform: translateY(-50%); perspective: 1200px; }
.paths__visual--right { right: -4vw; transform: translateY(-50%); width: 21vw; height: 78vh; }
.paths__visual--right img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px 0 0 14px; }

/* TIE — стилизованная карта резидента */
.tie {
  width: clamp(300px, 30vw, 500px);
  aspect-ratio: 85.6 / 54;
  border-radius: 18px;
  padding: 4% 5%;
  background:
    radial-gradient(120% 140% at 90% 0%, rgba(244, 189, 41,.35), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(227, 78, 69,.22), transparent 60%),
    linear-gradient(135deg, #FBF6EA, #EFE6D2);
  box-shadow: 0 40px 80px -30px rgba(16, 43, 71,.45), inset 0 0 0 1px rgba(16, 43, 71,.08);
  transform: rotate(-14deg) rotateY(18deg);
  transform-style: preserve-3d;
  position: relative;
  color: var(--ink);
  overflow: hidden;
  font-stretch: 110%;
}
.tie__band { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: clamp(9px, .95vw, 15px); letter-spacing: .1em; }
.tie__flag { display: grid; grid-template-rows: 1fr 2fr 1fr; width: 13%; aspect-ratio: 3/2; border-radius: 3px; overflow: hidden; }
.tie__flag b:nth-child(odd) { background: var(--red); }
.tie__flag b:nth-child(2) { background: var(--yellow); }
.tie__title { margin-top: 3%; font-size: clamp(7px, .72vw, 11px); font-weight: 800; letter-spacing: .06em; color: var(--red); }
.tie__body { display: grid; grid-template-columns: 26% 1fr 14%; gap: 5%; margin-top: 4%; align-items: start; }
.tie__photo { aspect-ratio: 3/4; border-radius: 8px; background: linear-gradient(180deg, #d9cfb9, #c6b99d); position: relative; overflow: hidden; }
.tie__photo::before { content: ""; position: absolute; left: 30%; top: 18%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: #a99a7c; }
.tie__photo::after { content: ""; position: absolute; left: 12%; top: 60%; width: 76%; height: 60%; border-radius: 50% 50% 0 0; background: #a99a7c; }
.tie__fields p { font-size: clamp(9px, .9vw, 14px); font-weight: 800; margin-bottom: 7%; line-height: 1.1; }
.tie__fields small { display: block; font-size: .6em; color: var(--muted); letter-spacing: .06em; margin-bottom: 2px; }
.tie__chip { aspect-ratio: 1/.8; border-radius: 6px; background: linear-gradient(135deg, #e9c766, #b8902c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.tie__mrz { position: absolute; left: 5%; right: 5%; bottom: 6%; font-family: ui-monospace, Menlo, monospace; font-size: clamp(8px, .85vw, 13px); letter-spacing: .12em; color: rgba(16, 43, 71,.55); overflow: hidden; white-space: nowrap; }
.tie__holo { position: absolute; right: 7%; bottom: 20%; width: 20%; color: rgba(201,161,58,.45); }

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.reviews { position: relative; background: var(--ink-3); color: var(--cream); overflow-x: clip; }
.reviews__banner { position: relative; overflow: hidden; }
.reviews__banner-bar {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  padding: 70px var(--pad) 26px;
  background: var(--ink-3);
}
.reviews__banner-bar h2 { display: flex; align-items: baseline; gap: .3em; font-size: clamp(40px, 5vw, 80px); line-height: .9; }
.reviews__banner-bar h2 .t-serif { color: var(--yellow); }
.reviews__banner-bar p { max-width: 380px; font-size: 13px; color: rgba(239, 250, 255,.75); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 1.6vw;
  padding: 60px var(--pad) 14vw;
}
.rv-card {
  display: block;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 1.6vw;
  transition: border-color .4s, background-color .4s;
}
.rv-card:nth-child(4n+2), .rv-card:nth-child(4n+4) { transform: translateY(11vw); }
.rv-card__media { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: 3px; background: #1B4A78; }
.rv-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.rv-card__play {
  position: absolute; right: 10px; bottom: 10px;
  width: 40px; height: 40px; border-radius: 6px;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center;
  transform: scale(.7); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
}
.rv-card__play svg { width: 18px; height: 18px; }
.rv-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px 2px; }
.rv-card__name { font-size: 11px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card__num { font-size: 11px; font-weight: 800; color: var(--yellow); }
.rv-card:hover { border-color: rgba(244, 189, 41,.6); background: rgba(255,255,255,.03); }
.rv-card:hover img { transform: scale(1.06); filter: none; }
.rv-card:hover .rv-card__play { transform: none; opacity: 1; }

.reviews__more { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 var(--pad) 110px; text-align: center; }
.reviews__more p { font-family: var(--f-serif); font-size: clamp(26px, 2.6vw, 40px); text-transform: uppercase; }

/* =========================================================
   УСЛУГИ
   ========================================================= */
.services { position: relative; background: var(--cream); overflow: hidden; }
.services > *:not(canvas) { position: relative; z-index: 1; }
.services__hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  padding: 120px var(--pad) 60px;
  gap: 4vw;
}
.services__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.services__title { display: flex; flex-direction: column; font-size: clamp(54px, 7.4vw, 124px); line-height: .84; }
.services__title .t-serif { position: relative; }
.services__title .t-serif::after {
  content: ""; display: inline-block; width: .5em; height: .72em; background: var(--deep); margin-left: .08em; vertical-align: -.04em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.services__lead { max-width: 440px; font-size: 14px; color: var(--muted); }

.services__collage { position: relative; height: min(80vh, 760px); }
.sc { position: absolute; will-change: transform; }
.sc img { width: 100%; height: 100%; object-fit: cover; }
.sc-1 { left: 26%; top: 0; width: 46%; height: 78%; border-radius: 4px; overflow: hidden; }
.sc-2 { right: 0; top: 10%; width: 32%; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.sc-3 { left: 6%; bottom: 0; width: 25%; aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; }
.sc-badge {
  left: 0; top: 18%;
  width: 150px; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-10deg);
  box-shadow: 0 20px 40px -20px rgba(227, 78, 69,.7);
}
.sc-badge span { font-family: var(--f-serif); font-size: 76px; line-height: .8; color: var(--yellow); }
.sc-badge small { font-size: 9px; font-weight: 800; text-transform: uppercase; text-align: center; letter-spacing: .06em; line-height: 1.2; margin-top: 4px; }
.sc-gold {
  right: 10%; bottom: 4%;
  padding: 18px 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e7c766, #b8902c 60%, #e2c060);
  color: #4a3510;
  transform: rotate(6deg);
  text-align: center;
  box-shadow: 0 20px 40px -20px rgba(120,90,20,.8);
}
.sc-gold span { display: block; font-family: var(--f-serif); font-size: 38px; line-height: 1; }
.sc-gold small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }

.services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px var(--pad) 0;
  border-top: 1px solid var(--line);
}
.svc {
  padding: 34px 28px 40px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 250px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.svc:nth-child(3n) { border-right: 0; }
.svc__num { font-size: 11px; font-weight: 800; color: var(--red); }
.svc h3 { font-weight: 800; font-stretch: 122%; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); line-height: .95; letter-spacing: -.02em; margin-top: auto; }
.svc p { font-size: 13px; color: var(--muted); max-width: 340px; transition: color .5s; }
.svc:hover { background: var(--deep); color: var(--cream); }
.svc:hover p { color: rgba(239, 250, 255,.7); }
.svc:hover .svc__num { color: var(--yellow); }

.steps { padding: 140px var(--pad) 120px; }
.steps__title { font-size: clamp(44px, 5.4vw, 90px); line-height: .9; text-align: center; margin-bottom: 70px; }
.steps__title .t-serif { color: var(--red); }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2vw; list-style: none; }
.steps__list li { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps__list li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: var(--p, 0%); background: var(--yellow); }
.steps__list h3 { font-weight: 800; font-stretch: 120%; text-transform: uppercase; font-size: 18px; margin-bottom: 10px; }
.steps__list p { font-size: 13px; color: var(--muted); }

/* =========================================================
   ПРОГРАММЫ
   ========================================================= */
.programs { position: relative; background: var(--cream); padding: 40px 0 120px; overflow: hidden; }
.programs__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 0 var(--pad); margin-bottom: 70px; }
.programs__head h2 { display: flex; flex-direction: column; font-size: clamp(44px, 5.4vw, 90px); line-height: .86; }
.programs__head p { max-width: 330px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.programs__marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.programs__track { display: flex; width: max-content; align-items: center; gap: 36px; animation: marquee 38s linear infinite; }
.programs__track span { font-weight: 800; font-stretch: 122%; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.02em; white-space: nowrap; }
.programs__track span:nth-of-type(even) { font-family: var(--f-serif); font-weight: 400; color: var(--red); }
.programs__track i { font-style: normal; color: var(--gold); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   СОЦСЕТИ
   ========================================================= */
.socials {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 60px var(--pad) 200px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 60%, #FBE3A0 85%, var(--yellow) 100%);
}
.socials__icon { width: 34px; height: 34px; color: var(--red); margin-bottom: 26px; }
.socials__icon svg { width: 100%; height: 100%; }
.socials__title { display: flex; flex-direction: column; font-size: clamp(46px, 5.6vw, 92px); line-height: .86; margin-bottom: 50px; }
.socials__phone {
  position: relative;
  width: clamp(240px, 22vw, 320px);
  aspect-ratio: 9 / 17;
  border-radius: 42px;
  padding: 7px;
  background: linear-gradient(160deg, var(--yellow), var(--red));
  box-shadow: 0 40px 80px -30px rgba(227, 78, 69,.5);
}
.socials__phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.socials__phone-ui {
  position: absolute; left: 22px; right: 22px; top: 24px;
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 12px; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.socials__avatar { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 2px var(--yellow); }
.socials__avatar canvas { width: 26px; height: 26px; }
.socials__lead { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 30px); max-width: 600px; margin: 44px 0 18px; line-height: 1.1; }
.socials__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.socials__links a { font-size: 11px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .04em; position: relative; }
.socials__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.socials__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   ФУТЕР
   ========================================================= */
.footer { background: var(--yellow); padding: 40px 14px 0; color: var(--cream); }
.footer__panel {
  position: relative;
  background: var(--deep);
  border-radius: 36px;
  min-height: 92vh;
  padding: 120px var(--pad) 40px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
}
.footer__panel::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  width: 38%; height: 26px;
  transform: translateX(-50%);
  background: var(--yellow);
  border-radius: 0 0 26px 26px;
  z-index: 1;
}
.footer__panel > *:not(canvas) { position: relative; z-index: 1; }
.footer__title {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(46px, 6.4vw, 108px);
  line-height: .88;
  text-align: center;
}
.footer__title .t-serif { color: var(--yellow); }
.footer__cols { display: contents; }
.footer__col { align-self: center; padding-top: 40px; }
.footer__col .eyebrow { color: rgba(239, 250, 255,.55); margin-bottom: 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 4px; }
.footer__col a { font-weight: 800; font-stretch: 122%; text-transform: uppercase; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.05; letter-spacing: -.01em; transition: color .3s; }
.footer__col a:hover, .footer__col a.is-accent { color: var(--yellow); }
.footer__col--right { justify-self: end; text-align: right; }
.footer__col--right ul { align-items: flex-end; }

.footer__logo {
  position: absolute !important;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  width: clamp(320px, 42vw, 620px);
  aspect-ratio: 4 / 3;
}
.footer__logo canvas { width: 100%; height: 100%; display: block; }
.footer__cta { grid-column: 1 / -1; justify-self: center; align-self: end; position: relative; z-index: 5 !important; }

/* CSS-орбита флага вокруг логотипа */
.orbit { position: absolute; inset: -18% -38%; z-index: 1; pointer-events: none; }
.orbit__ring { position: absolute; inset: 22% 4%; border: 1.5px dashed rgba(201,161,58,.5); border-radius: 50%; transform: rotate(-10deg); }
.orbit__flag {
  position: absolute; left: 0; top: 0;
  width: 54px; height: 36px;
  offset-path: ellipse(46% 28% at 50% 50%);
  offset-rotate: 0deg;
  animation: orbit 7s linear infinite;
}
.orbit__flag span {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--red) 0 25%, var(--yellow) 25% 75%, var(--red) 75%);
  border-radius: 3px;
  box-shadow: -3px 0 0 #C9A13A;
  animation: wave 1.1s ease-in-out infinite alternate;
  transform-origin: left center;
}
@keyframes orbit {
  0% { offset-distance: 0%; z-index: 3; transform: rotate(-10deg) scale(1.1); }
  50% { z-index: 3; transform: rotate(-10deg) scale(1); }
  50.01% { z-index: 0; }
  100% { offset-distance: 100%; z-index: 0; transform: rotate(-10deg) scale(.85); }
}
@keyframes wave { from { transform: skewY(-6deg) scaleX(1); } to { transform: skewY(5deg) scaleX(.92); } }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 16px 12px 18px;
  color: var(--ink);
  font-size: 9px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .04em;
}
.footer__legal { display: flex; gap: 18px; }

/* =========================================================
   ФОРМА ЗАЯВКИ
   ========================================================= */
.lead { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.lead.is-open { visibility: visible; }
.lead__backdrop { position: absolute; inset: 0; background: rgba(10, 34, 60,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.lead.is-open .lead__backdrop { opacity: 1; }
.lead__panel {
  position: absolute; right: 12px; top: 12px; bottom: 12px;
  width: min(520px, calc(100% - 24px));
  background: var(--cream);
  border-radius: 22px;
  padding: 34px 32px;
  overflow-y: auto;
  transform: translateX(110%);
  transition: transform .8s var(--ease);
  display: flex; flex-direction: column; gap: 14px;
}
.lead.is-open .lead__panel { transform: none; }
.lead__panel h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: .9; }
.lead__panel h2 .t-serif { color: var(--red); }
.lead__text { font-size: 13px; color: var(--muted); }
.lead__close { position: absolute; right: 20px; top: 20px; width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--ink); }
.lead__close span { position: absolute; left: 10px; top: 18px; width: 18px; height: 1.8px; background: var(--deep); transform: rotate(45deg); }
.lead__close span + span { transform: rotate(-45deg); }
.lead__form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span, .chips legend { font-size: 10px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field textarea {
  font: inherit; font-size: 15px;
  padding: 14px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.is-error input { border-color: var(--red-2); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 13px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; cursor: pointer; transition: all .3s; }
.chips input:checked + span { background: var(--deep); color: var(--yellow); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.lead__alt { font-size: 12px; color: var(--muted); text-align: center; }
.lead__alt a { color: var(--ink); font-weight: 700; text-decoration: underline; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1100px) {
  .services__hero { grid-template-columns: 1fr; }
  .services__collage { height: 70vh; }
  .services__list { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(3n) { border-right: 1px solid var(--line); }
  .svc:nth-child(2n) { border-right: 0; }
  .steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .header { grid-template-columns: auto 1fr auto; }
  .header__logo { display: none; }
  .header__mark { grid-column: 2; justify-self: center; }
  .header__actions { display: contents; }
  .header__cta { grid-column: 1; grid-row: 1; justify-self: start; height: 46px; padding: 0 16px; }
  .burger { grid-column: 3; grid-row: 1; width: 48px; height: 48px; }
  .burger span:first-child { top: 19px; left: 19px; }
  .burger span:last-child { top: 26px; left: 13px; }
  body.menu-open .burger span:first-child, body.menu-open .burger span:last-child { left: 14px; top: 22.5px; }

  .menu__inner { grid-template-columns: 1fr; align-items: start; align-content: space-between; }

  .hero__title { top: calc(var(--header-h) + 14px); }
  .hero__title h1 { font-size: 38px; }
  .hero__card { display: none; }
  .hero__scroll { display: none; }
  .hero__drag { bottom: 18px; right: 16px; }

  .message { min-height: auto; padding: 110px 0 90px; }
  .message__photo { width: 64vw; }

  .manifesto { padding: 70px var(--pad) 110px; }

  .gallery { height: auto; min-height: 0; padding: 70px 0 60px; display: flex; flex-direction: column; gap: 70px; }
  .g-item, .gallery__quote, .gallery__stat { position: relative; left: auto !important; right: auto !important; top: auto !important; transform: none; }
  .g-1 { width: 56vw; margin-left: 6vw; }
  .g-2 { width: 78vw; align-self: flex-end; margin-right: 4vw; }
  .g-3 { width: 40vw; align-self: flex-end; margin-right: 10vw; margin-top: -30px; }
  .g-4 { width: 46vw; margin-left: 4vw; margin-top: -90px; }
  .g-5 { width: 52vw; align-self: flex-end; margin-right: 6vw; }
  .g-6 { width: 84vw; margin-left: 4vw; }
  .g-7 { width: 44vw; align-self: flex-end; margin-right: 8vw; }
  .g-8 { width: 70vw; margin-left: 6vw; }
  .g-9 { width: 42vw; align-self: flex-end; margin-right: 6vw; margin-top: -60px; }
  .g-10 { width: 60vw; margin-left: 10vw; }
  .gallery__quote { width: auto !important; padding: 0 var(--pad); font-size: 30px; }
  .gallery__stat { align-self: center; }

  .paths { padding: 110px var(--pad) 0; display: flex; flex-direction: column; align-items: center; gap: 50px; }
  .paths__visual { position: relative; top: auto; left: auto !important; right: auto !important; transform: none !important; }
  .paths__visual--left { order: -1; }
  .tie { width: min(84vw, 420px); transform: rotate(-8deg); }
  .paths__grid { grid-template-columns: 1fr; gap: 60px; }
  .path h2 { font-size: 54px; }
  .path--travel h2 { font-size: clamp(28px, 8.8vw, 46px); }
  .paths__visual--right { width: calc(100% + var(--pad) * 2); height: 70vh; }
  .paths__visual--right img { border-radius: 0; }

  .reviews__banner-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .reviews__banner-bar h2 { flex-direction: column; gap: 0; font-size: 56px; }
  .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 40px 12px 30vw; }
  .rv-card { margin-bottom: 12px; padding: 7px; }
  .rv-card:nth-child(4n+2), .rv-card:nth-child(4n+4) { transform: none; }
  .rv-card:nth-child(2n) { transform: translateY(26vw); }
  .rv-card__play { opacity: 1; transform: scale(.85); right: 6px; bottom: 6px; width: 32px; height: 32px; }
  .rv-card__name { font-size: 10px; }

  .services__hero { padding: 110px var(--pad) 40px; }
  .services__collage { height: 115vw; }
  .sc-badge { width: 110px; }
  .sc-badge span { font-size: 54px; }
  .sc-gold { padding: 12px 16px; }
  .sc-gold span { font-size: 26px; }

  .programs__head { flex-direction: column; gap: 18px; margin-bottom: 40px; }

  .footer { padding: 24px 8px 0; }
  .footer__panel { grid-template-columns: 1fr; min-height: 0; padding: 100px 20px 30px; border-radius: 28px; gap: 0; }
  .footer__panel::before { width: 46%; }
  .footer__col, .footer__col--right { justify-self: center; text-align: center; padding-top: 44px; }
  .footer__col ul, .footer__col--right ul { align-items: center; }
  .footer__logo { position: relative !important; left: auto; bottom: auto; transform: none; margin: 30px auto 0; width: 100%; max-width: 460px; }
  .footer__cta { margin-top: 26px; }
  .footer__bottom { justify-content: center; text-align: center; }

  .lead__panel { right: 0; left: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(105%); padding: 28px 20px 30px; }
}

@media (max-width: 600px) {
  .services__list { grid-template-columns: 1fr; margin: 30px 0 0; }
  .svc { border-right: 0 !important; min-height: 0; padding: 26px var(--pad) 30px; }
  .svc h3 { margin-top: 18px; }
  .steps { padding: 100px var(--pad) 90px; }
  .steps__list { grid-template-columns: 1fr; }
  .steps__title { margin-bottom: 50px; }
  .manifesto__text { font-size: 9.4vw; }
}


/* =========================================================
   v3: белый прелоадер, линии достопримечательностей,
   отзывы-фоторамки, видео-плеер, два канала в соцсетях
   ========================================================= */
.preloader { background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; clip-path: none; }
.preloader__logo { width: min(62vw, 300px); height: auto; aspect-ratio: 460 / 334; opacity: 0; transform-origin: 50% 50%; will-change: transform; }
.preloader__count { position: static; color: var(--muted); }

#heroCanvas { position: relative; z-index: 1; }

/* доска с фоторамками */
.reviews__board { position: relative; height: 100vw; max-height: 1560px; margin: 60px var(--pad) 40px; }
.pf {
  --r: 0deg;
  position: absolute; left: var(--x); top: var(--y);
  width: 19vw; max-width: 300px;
  padding: 12px 12px 0;
  background: #FBF8F1;
  border-radius: 3px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.65), 0 2px 0 rgba(0,0,0,.05);
  transform: rotate(var(--r));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.pf:hover, .pf:focus-visible { transform: rotate(0deg) translateY(-10px) scale(1.04); z-index: 5; box-shadow: 0 40px 70px -20px rgba(0,0,0,.75); outline: none; }
.pf__tape { position: absolute; left: 50%; top: -12px; width: 86px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(244, 189, 41, .55); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.pf:nth-child(3n) .pf__tape { transform: translateX(-50%) rotate(4deg); background: rgba(255,255,255,.55); }
.pf__img { position: relative; display: block; aspect-ratio: 4 / 4.6; overflow: hidden; background: #1B4A78; }
.pf__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.9) contrast(1.02); transition: transform 1.2s var(--ease); }
.pf:hover .pf__img img { transform: scale(1.05); }
.pf__play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(244, 189, 41,.95); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .5s var(--ease); }
.pf__play svg { width: 22px; height: 22px; margin-left: 3px; }
.pf:hover .pf__play { transform: scale(1.12); }
.pf__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 2px 14px; font-family: "Caveat", cursive; }
.pf__cap b { font-weight: 600; font-size: 26px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf__cap i { font-style: normal; font-size: 20px; color: var(--red); }
.btn--big { height: 58px; padding: 0 28px; font-size: 13px; }
.reviews__more p { font-family: var(--f-sans); font-size: 12px; text-transform: none; color: rgba(239, 250, 255,.6); }

/* видео-плеер */
.vmodal { position: fixed; inset: 0; z-index: 130; visibility: hidden; }
.vmodal.is-open { visibility: visible; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(8, 28, 50, .82); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.vmodal.is-open .vmodal__backdrop { opacity: 1; }
.vmodal__body {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.96); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
  display: flex; align-items: center; gap: 44px;
  max-width: calc(100vw - 32px);
}
.vmodal.is-open .vmodal__body { transform: translate(-50%, -50%); opacity: 1; }
.vmodal__frame { flex: none; height: min(84vh, 760px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.vmodal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vmodal__info { width: 340px; color: var(--cream); }
.vmodal__num { font-size: 11px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.vmodal__name { font-size: 44px; line-height: .9; margin-top: 12px; }
.vmodal__title { font-size: 24px; line-height: 1.05; color: var(--yellow); margin-top: 10px; }
.vmodal__text { font-size: 14px; line-height: 1.55; color: rgba(239, 250, 255,.8); margin-top: 18px; }
.vmodal__more { display: inline-block; margin-top: 18px; font-size: 11px; font-weight: 800; font-stretch: 120%; text-transform: uppercase; border-bottom: 1.5px solid var(--yellow); padding-bottom: 3px; color: var(--cream); }
.vmodal__close { position: fixed; right: 20px; top: 20px; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--cream); z-index: 2; }
.vmodal__close span { position: absolute; left: 13px; top: 21px; width: 18px; height: 1.8px; background: var(--cream); transform: rotate(45deg); }
.vmodal__close span + span { transform: rotate(-45deg); }
html.vmodal-open, html.vmodal-open body { overflow: hidden; }

/* два канала в соцсетях */
.socials__channels { display: flex; gap: clamp(40px, 8vw, 140px); justify-content: center; align-items: flex-start; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 360px; }
.socials__phone { display: block; }
.socials__phone img { object-position: 50% 0; }
.socials__phone--alt { background: linear-gradient(160deg, var(--gold), var(--ink)); }
.channel:first-child .socials__phone { transform: rotate(-4deg); }
.channel:last-child .socials__phone { transform: rotate(4deg); }
.channel__title { margin-top: 30px; font-size: clamp(26px, 2.4vw, 38px); line-height: .95; }
.channel__title .t-serif { color: var(--red); }
.channel__text { font-size: 14px; color: var(--muted); max-width: 320px; }
.socials__lead { margin: 70px 0 14px; font-size: clamp(20px, 1.8vw, 26px); }

/* страница всех отзывов */
.all { position: relative; padding: calc(var(--header-h) + 40px) var(--pad) 40px; overflow: hidden; min-height: 100vh; }
.all > *:not(canvas) { position: relative; z-index: 1; }
.all__head { text-align: center; margin-bottom: 70px; }
.all__title { font-size: clamp(54px, 8vw, 130px); line-height: .88; }
.all__title .t-serif { color: var(--yellow); }
.all__lead { margin: 18px auto 0; max-width: 460px; font-size: 14px; color: rgba(239, 250, 255,.7); }
.all__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 60px 3vw; max-width: 1320px; margin: 0 auto 80px; }
.all__grid .pf { position: relative; left: auto; top: auto; width: auto; max-width: none; }
.all__grid .pf:nth-child(4n+2), .all__grid .pf:nth-child(4n+4) { margin-top: 50px; }

@media (max-width: 900px) {
  .reviews__board { height: auto; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; margin: 40px 14px 30px; }
  .pf { position: relative; left: auto; top: auto; width: auto; max-width: none; padding: 8px 8px 0; }
  .reviews__board .pf:nth-child(2n) { margin-top: 40px; }
  .pf__cap b { font-size: 20px; }
  .pf__cap i { font-size: 16px; }
  .pf__play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .pf__tape { width: 60px; height: 20px; top: -9px; }

  .vmodal__body { flex-direction: column; gap: 14px; width: calc(100vw - 24px); }
  .vmodal__frame { height: auto; width: min(100%, calc((100svh - 190px) * 9 / 16)); }
  .vmodal__info { width: 100%; text-align: center; }
  .vmodal__name { font-size: 30px; margin-top: 6px; }
  .vmodal__title { font-size: 18px; }
  .vmodal__text { display: none; }
  .vmodal__more { margin-top: 10px; }
  .vmodal__body { padding-top: 58px; }
  .vmodal__close { position: absolute; right: 0; top: 0; }
  .vmodal__frame { width: min(100%, calc((100svh - 250px) * 9 / 16)); }

  .socials__channels { flex-direction: column; align-items: center; gap: 70px; }
  .all__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .all__grid .pf:nth-child(4n+2), .all__grid .pf:nth-child(4n+4) { margin-top: 0; }
  .all__grid .pf:nth-child(2n) { margin-top: 40px; }
}

/* первый экран: линии, открывающие фото */

/* На телефоне — без фото справа в «Жить / Ездить». */
@media (max-width: 900px) {
  .paths__visual--right { display: none; }
  .paths { padding-bottom: 110px; }
}

/* карточка ВНЖ — картинка-образец от клиента */
.tie--img { display: block; height: auto; aspect-ratio: 1200 / 848; padding: 0; background: none; border-radius: 22px; object-fit: cover; }
.paths__visual--left picture { display: block; }


/* =========================================================
   Палитра «Море» — как в макете: светлые отзывы и низ страницы,
   тёмно-синие только «Открываем Европу», меню и футер
   ========================================================= */
.reviews { background: var(--cream); color: var(--ink); }
.reviews__banner-bar { background: var(--cream); }
.reviews__banner-bar p { color: var(--muted); }
.reviews__more p { color: var(--muted); }
.pf { box-shadow: 0 18px 40px -18px rgba(16,43,71,.38), 0 1px 0 rgba(16,43,71,.06); }
.pf:hover, .pf:focus-visible { box-shadow: 0 30px 60px -22px rgba(16,43,71,.45); }
.socials { background: var(--cream); }
.footer { background: var(--cream); }
.footer__panel::before { background: var(--cream); }
.footer__title .t-serif { color: #FFF8E9; }
.footer__bottom { color: var(--muted); }
.services__title .t-serif { color: var(--red); }
.services__title .t-serif::after { background: var(--red); }
.sc-1 picture { display: block; width: 100%; height: 100%; }
.sc-1 img { object-position: 52% 50%; }

/* Ночная Европа — самостоятельные фоновые слои под текстом. */
.manifesto, .footer__panel { background: #031c2e; isolation: isolate; }
.earth-scene,
.footer__panel > .earth-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.earth-scene img, .earth-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.earth-scene img { max-width: none; object-fit: cover; object-position: 50% 64%; filter: brightness(.82); }
.earth-scene canvas { opacity: 0; transition: opacity 1.2s ease; }
.earth-scene.is-animating canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .earth-scene canvas { transition: none; }
}
.earth-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,20,34,.12), rgba(3,20,34,.28) 45%, rgba(3,20,34,.08));
}
.earth-scene--network img { object-position: 50% 64%; }
.earth-scene--network::after {
  background: linear-gradient(180deg, rgba(3,20,34,.08), rgba(3,20,34,.24) 35%, rgba(3,20,34,.04));
}
.manifesto__text, .footer__title, .footer__col { text-shadow: 0 2px 24px rgba(0,12,24,.5); }
.footer__title { font-size: clamp(38px, 4.6vw, 76px); line-height: 1.02; gap: .08em; }
.footer__title .t-serif { color: var(--cream); }
@media (max-width: 900px) {
  .earth-scene--orbit img { object-position: 47% 64%; }
  .earth-scene--network img { object-position: 50% 70%; }
  .footer__title { font-size: clamp(28px, 7vw, 54px); line-height: 1.08; }
}
