/* ===== Tokens ===== */
:root {
  --mata: #0D3B2C;        /* глубокий тропический зелёный — карнавал */
  --mata-2: #145040;
  --mata-3: #0A2E22;
  --ouro: #F5C518;        /* золото пайеток — цены, главные кнопки */
  --ouro-soft: #FBE38A;
  --pluma: #E2336B;       /* перья — уроки */
  --pluma-deep: #8E1442;
  --mar: #0E6E78;         /* Атлантика — туризм */
  --espuma: #E6F3F0;
  --ink: #0F1F19;
  --paper: #FFFFFF;
  --line-dark: rgba(255,255,255,.16);
  --line-light: rgba(15,31,25,.14);

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 140px);
  --r-sm: 10px;
  --r-lg: 22px;
  --header-h: 68px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top)); /* room for the fixed header */
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mata);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ouro); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; border-radius: 4px; }

.h-xl { font-size: clamp(34px, 5.4vw, 68px); font-weight: 900; }
.h-lg { font-size: clamp(26px, 3.4vw, 42px); }
.h-md { font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 62ch; }
.sub { max-width: 60ch; opacity: .85; margin-top: 14px; }
.muted { opacity: .7; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--ouro); color: var(--ink); }
.btn-sea { background: var(--mar); color: #fff; }
.btn-pink { background: var(--ouro); color: var(--ink); }
.btn-ghost { background: transparent; border: 1.5px solid currentColor; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-gold:hover, .btn-pink:hover { background: var(--ouro-soft); }
  .btn-sea:hover { background: #0B5D66; }
  .btn-ghost:hover { background: rgba(15,31,25,.06); }
}

/* ===== Header ===== */
.top {
  /* fixed, not sticky: Safari on iOS 26 only paints its top bar in the header colour for fixed elements */
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: rgba(13,59,44,.96);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
/* iOS Safari: while the toolbar collapses, page content shows above the sticky header.
   Extend the header colour upwards so nothing ever peeks out behind the status bar. */
.top::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: 100vh; background: var(--mata); pointer-events: none;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark {
  width: 42px; height: 42px; flex: none; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 200deg, var(--ouro), var(--pluma), var(--mar), var(--ouro));
}
.logo-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--mata); }
@media (max-width: 600px) { .logo-mark { width: 38px; height: 38px; } }
.logo-text { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.logo-text small { font-family: var(--f-body); font-weight: 500; font-size: 12px; opacity: .7; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .82; padding: 6px 0; border-bottom: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.nav a:hover, .nav a.is-active { opacity: 1; border-color: var(--ouro); }
.top-cta { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  height: 40px; min-width: 52px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line-dark); background: transparent;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-btn::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.lang-btn:hover { border-color: rgba(255,255,255,.4); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 170px; padding: 6px;
  background: #fff; color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.45);
  transform-origin: top right;
  animation: menuIn .16s ease-out;
}
@keyframes menuIn { from { opacity: 0; transform: scale(.96); } }
.lang-menu button {
  width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 9px; font-size: 15px;
}
.lang-menu button:hover { background: var(--espuma); }
.lang-menu button[aria-checked="true"] { font-weight: 700; }
.lang-menu button[aria-checked="true"]::after { content: ""; float: right; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--pluma); }

/* ===== Hero ===== */
.hero { color: #fff; padding: clamp(40px, 6vw, 80px) var(--gutter) var(--gutter); }
.hero-head { max-width: 1400px; margin: 0 auto clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: end; }
.hero h1 { font-size: clamp(38px, 5.6vw, 84px); font-weight: 900; line-height: .98; letter-spacing: -0.025em; }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); opacity: .88; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.6vw, 34px); }
.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); gap: 10px; }
@media (hover: hover) { .btn-line:hover { border-color: var(--ouro); color: var(--ouro); } }

.doors { display: flex; gap: 12px; height: min(68vh, 640px); min-height: 440px; max-width: 1400px; margin: 0 auto; }
.door {
  position: relative; flex: 1; min-width: 0;
  border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: #fff;
  transition: flex-grow .55s cubic-bezier(.2,.8,.2,1);
  isolation: isolate;
}
.door img, .door-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(5,20,15,.88) 100%); }
.door--carnaval .door-video { object-position: 50% 30%; }
.door--uroki img { object-position: 50% 32%; }
.door-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.door-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(24px, 2.6vw, 38px); line-height: 1; }
.door-text { max-width: 36ch; font-size: 16px; line-height: 1.45; opacity: .9; }
.door-price { align-self: flex-start; margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: var(--ouro); color: var(--ink); font-weight: 700; font-size: 15px; }
.door--rio .door-price { background: #fff; }
.door--uroki .door-price { background: var(--pluma); color: #fff; }
@media (hover: hover) and (min-width: 900px) {
  .door:hover, .door:focus-visible { flex-grow: 1.9; }
  .door:hover img, .door:hover .door-video { transform: scale(1.04); }
  .door-text { opacity: 0; transform: translateY(8px); transition: opacity .3s .1s, transform .3s .1s; }
  .doors:not(:hover) .door-text, .door:hover .door-text, .door:focus-visible .door-text { opacity: .9; transform: none; }
  .doors:hover .door:not(:hover) .door-text { opacity: 0; }
}

/* Hero load: one orchestrated entrance */
/* Hero entrance is driven by GSAP in script.js (content stays visible without JS). */

/* ===== Carnaval ===== */
.carnaval { color: #fff; padding: var(--sec) 0; background: var(--mata); }
.kicker { font-weight: 600; color: var(--ouro); margin-bottom: 18px; font-size: 16px; }
.carnaval .h-xl { max-width: 18ch; }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: clamp(28px, 4vw, 48px); }
.dream-list li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line-dark); position: relative; }
.dream-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.dream-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--ouro); }
.pull {
  margin: clamp(48px, 7vw, 96px) 0 0; padding: 0;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2;
  color: var(--ouro); max-width: 26ch;
}

.path-block, .worlds, .car-film, .formats, .escort, .practical { margin-top: var(--sec); }

/* Path: the avenida */
.path {
  counter-reset: step;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
  margin-top: 40px; position: relative;
}
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--ouro) 0 14px, transparent 14px 24px); opacity: .7; transform-origin: left; transform: scaleX(var(--p, 1)); }
.path li { counter-increment: step; position: relative; padding-right: 18px; }
.path li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mata); border: 2px solid var(--ouro); color: var(--ouro);
  font-family: var(--f-display); font-weight: 700; font-size: 17px;
  position: relative; margin-bottom: 18px;
}
.path li:last-child::before { background: var(--ouro); color: var(--ink); }
.path strong { display: block; font-size: 17px; margin-bottom: 6px; }
.path span { font-size: 15px; opacity: .78; line-height: 1.5; display: block; }

/* Worlds */
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.world { border-radius: var(--r-lg); overflow: hidden; background: var(--mata-2); display: flex; flex-direction: column; }
.world img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.world-body { padding: clamp(22px, 3vw, 36px); }
.world h4 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px; }
.world-tag { color: var(--ouro); font-weight: 600; }
.world--intendente { background: #1B4D2E; }
.world p:not(.world-tag) { opacity: .86; }

.compare-wrap { margin-top: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.compare thead th { font-family: var(--f-display); font-size: 18px; color: var(--ouro); }
.compare tbody th { font-weight: 500; opacity: .7; width: 22%; }

/* Formats + calc */
.formats-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 28px; margin-top: 36px; align-items: start; }
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--mata-3); margin-bottom: 18px; max-width: 100%; }
.tabs button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.75); white-space: nowrap; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--ouro); color: var(--ink); }

.offer-list { display: flex; flex-direction: column; gap: 10px; }
[hidden] { display: none !important; }
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center;
  width: 100%; text-align: left;
  padding: 18px 22px; border-radius: 16px;
  background: var(--mata-2); border: 2px solid transparent; color: #fff;
  transition: border-color .2s, background-color .2s;
}
.offer:hover { background: #185a47; }
.offer[aria-pressed="true"] { border-color: var(--ouro); background: #185a47; }
.offer-school { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.2; }
.offer-role { color: var(--ouro); font-weight: 600; }
.offer-meta { grid-column: 1; font-size: 15px; opacity: .78; }
.offer-price { grid-column: 2; grid-row: 1 / span 3; text-align: right; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); white-space: nowrap; }
.offer-price small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 13px; opacity: .7; }
.offer--premium { background: linear-gradient(120deg, #3a2a05, #5c4308); }
.offer--premium:hover, .offer--premium[aria-pressed="true"] { background: linear-gradient(120deg, #4a3507, #74550a); }
.offer--premium .offer-price { color: var(--ouro); }

.glossary { margin-top: 20px; border-top: 1px solid var(--line-dark); padding-top: 16px; }
.glossary summary { cursor: pointer; font-weight: 600; color: var(--ouro); }
.glossary dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0; opacity: .82; }

.calc {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top) + 20px);
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg); padding: 26px;
}
.calc h4 { font-size: 22px; margin-bottom: 14px; }
.calc-empty { opacity: .6; padding: 18px 0; }
.calc-pick { font-weight: 700; font-size: 18px; line-height: 1.3; margin-bottom: 12px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-light); font-size: 15px; }
.calc-lines li span:last-child { font-weight: 600; white-space: nowrap; }
.calc-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 14px 0; cursor: pointer; font-size: 15px; }
.calc-toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mata); flex: none; }
.calc-total { background: var(--mata); color: #fff; border-radius: 14px; padding: 16px 18px; margin: 4px 0 12px; }
.calc-total span { font-size: 14px; opacity: .8; display: block; }
.calc-total strong { display: block; font-family: var(--f-display); font-size: 30px; color: var(--ouro); line-height: 1.2; margin-top: 4px; }
.calc-total small { opacity: .75; font-size: 14px; }
.calc-note { font-size: 14px; color: #6b4a00; background: #FFF6D6; padding: 10px 12px; border-radius: 10px; }
.calc-note:empty { display: none; }
.calc-foot { font-size: 13px; opacity: .65; margin-top: 16px; line-height: 1.5; }

/* Escort */
.escort { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; grid-template-areas: "photo head" "photo steps"; column-gap: clamp(28px, 5vw, 72px); row-gap: 28px; align-items: start; gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); background: var(--ouro); color: var(--ink); }
.escort .sub { opacity: .85; }
.escort-photo { grid-area: photo; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-sm); }
.escort-price { margin-top: 18px; font-size: 18px; }
.escort-price strong { font-family: var(--f-display); font-size: 44px; margin-right: 6px; }
.escort-price span { opacity: .7; }
.escort-steps { counter-reset: e; display: flex; flex-direction: column; }
.escort-steps li { counter-increment: e; padding: 18px 0 18px 54px; position: relative; border-top: 1.5px solid rgba(15,31,25,.2); }
.escort-steps li::before { content: counter(e); position: absolute; left: 0; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--ouro); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 15px; }
.escort-steps strong { display: block; font-size: 18px; margin-bottom: 4px; }

.practical { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.practical .h-md { margin-bottom: 14px; color: var(--ouro); }
.practical p { opacity: .86; font-size: 16px; }
.plain-list li { padding: 7px 0 7px 20px; position: relative; font-size: 16px; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 2px; background: currentColor; opacity: .6; }

/* ===== Olga ===== */
.olga { background: var(--paper); color: var(--ink); padding: var(--sec) 0; }
.olga-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.olga-photo { margin: 0; }
.photo-slot {
  aspect-ratio: 4/5; border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, #F7D7E2 0 18px, #FBE6EE 18px 36px);
  display: grid; place-items: center; text-align: center; padding: 20px;
  color: var(--pluma-deep); font-weight: 600; border: 2px dashed rgba(142,20,66,.35);
}
.olga .lead { margin-top: 22px; }
.facts { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts li { padding: 16px 18px; border-radius: 14px; background: #FBEAF0; font-size: 15px; line-height: 1.4; }
.facts b { display: block; font-family: var(--f-display); font-size: 17px; color: var(--pluma-deep); margin-bottom: 4px; }

.timeline-head { margin-top: var(--sec); margin-bottom: 30px; max-width: 72ch; }
.timeline-title { margin-bottom: 8px; }
.timeline-sub { opacity: .7; font-size: 16px; margin: 0; }
/* Age timeline: number column, a line that fills as you read, text column */
.timeline { --age-w: 92px; --rail: 30px; --tl: 1; position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 14px; bottom: 14px; left: calc(var(--age-w) + var(--rail) / 2 - 1px); width: 2px; border-radius: 2px; }
.timeline::before { background: #F2C6D5; }
.timeline::after { background: var(--pluma); transform: scaleY(var(--tl)); transform-origin: top; }
.timeline li { position: relative; display: grid; grid-template-columns: var(--age-w) var(--rail) minmax(0, 72ch); align-items: start; padding: 10px 0; }
.timeline li::before { content: ""; grid-column: 2; grid-row: 1; justify-self: center; margin-top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--pluma); z-index: 1; }
.timeline .age { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; padding-right: 10px; line-height: 1; color: var(--pluma-deep); }
.timeline .age b { font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: -0.02em; white-space: nowrap; }
.timeline .age.is-range b { font-size: 20px; padding-top: 6px; }
.timeline .age small { margin-top: 4px; font-size: 13px; font-weight: 500; opacity: .7; }
.timeline li > span:last-child { grid-column: 3; grid-row: 1; padding-top: 6px; font-size: 17px; line-height: 1.5; }
.timeline li.hl::before { width: 18px; height: 18px; margin-top: 9px; background: var(--pluma); border-color: var(--pluma); box-shadow: 0 0 0 5px rgba(226,51,107,.18); }
.timeline li.hl .age { color: var(--pluma); }
.timeline li.hl > span:last-child { padding: 10px 16px; margin-top: -4px; border-radius: 14px; background: #FCE7EF; font-weight: 600; color: var(--pluma-deep); }
.timeline.is-collapsed li:not(.hl):not(:nth-child(-n+3)) { display: none; }
.timeline-more { margin-top: 22px; margin-left: calc(var(--age-w, 84px) + 30px); color: var(--pluma-deep); }
@media (max-width: 600px) {
  .timeline { --age-w: 58px; --rail: 24px; }
  .timeline .age b { font-size: 22px; }
  .timeline .age small { font-size: 12px; }
  .timeline .age.is-range b { font-size: 14px; padding-top: 5px; }
  .timeline li > span:last-child { font-size: 16px; }
  .timeline li.hl > span:last-child { padding: 8px 12px; }
  .timeline-more { margin-left: 0; }
}

.olga-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 0%; border-radius: var(--r-lg); }
.uroki-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }

@media (max-width: 600px) {
  .uroki-gallery { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .uroki-gallery::-webkit-scrollbar { display: none; }
  .uroki-gallery .vcard { scroll-snap-align: start; }
}

/* Instagram social proof */
.ig-card {
  margin-top: 16px; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 16px; text-decoration: none;
  background: var(--ink); color: #fff;
  transition: transform .15s ease, background-color .2s ease;
}
.ig-card:active { transform: scale(.98); }
@media (hover: hover) { .ig-card:hover { background: #1B2E26; } }
.ig-logo { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.ig-text { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.ig-handle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; }
.ig-check { flex: none; }
.ig-count { font-size: 15px; opacity: .75; }
.ig-go { flex: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); white-space: nowrap; }
.contact-count { font-weight: 500; opacity: .65; margin-left: 4px; font-size: 13px; }
@media (max-width: 600px) { .ig-go { display: none; } }

/* ===== Rio ===== */
.rio { background: var(--espuma); color: var(--ink); padding-bottom: var(--sec); }
.rio-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.rio-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rio-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,28,32,.15) 30%, rgba(4,28,32,.8) 100%); }
.rio-hero-text { width: 100%; padding-bottom: clamp(40px, 6vw, 80px); }
.rio-hero-text h2 { max-width: 16ch; }
.rio-hero-text p { font-size: clamp(18px, 1.7vw, 22px); max-width: 44ch; margin-top: 18px; opacity: .92; }
.rio-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 80px); padding: clamp(56px, 8vw, 110px) 0; align-items: end; }
.rio-intro > p:last-child { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--mar); }
.rio-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.rio-prices { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 22px; }
.rio-prices div { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-radius: var(--r-sm); background: var(--espuma); }
.rio-prices strong { font-family: var(--f-display); font-size: 34px; color: var(--mar); line-height: 1; }
.rio-prices span { font-size: 16px; opacity: .8; }
.rio-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); }
.rio-price { margin: 16px 0 22px; font-size: 18px; }
.rio-price strong { font-family: var(--f-display); font-size: 36px; color: var(--mar); margin-right: 6px; }
.check-list { margin-bottom: 28px; }
.check-list li { padding: 11px 0 11px 34px; position: relative; border-top: 1px solid rgba(14,110,120,.18); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px; border-left: 2.5px solid var(--mar); border-bottom: 2.5px solid var(--mar); transform: rotate(-45deg); }
.rio-quote { margin: clamp(56px, 8vw, 110px) 0 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(19px, 3vw, 36px); line-height: 1.3; max-width: 30ch; color: var(--mar); overflow-wrap: break-word; }

/* ===== Uroki ===== */
.uroki { background: var(--pluma-deep); color: #fff; padding: var(--sec) 0; }
.uroki-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.price-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 72px); align-items: stretch; }
.price-block { display: flex; flex-direction: column; border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 32px); background: #fff; color: var(--ink); }
.price-block .h-md { margin-bottom: 6px; line-height: 1.15; text-wrap: balance; }
.price-block .muted { font-size: 15px; line-height: 1.45; opacity: .72; }
.price-block--teacher { background: var(--pluma); color: #fff; }
.price-block--prep { background: rgba(255,255,255,.07); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.price-cta { margin-top: auto; }
.price-block > .price-cta { margin-top: auto; }
.price-block > :nth-last-child(2) { margin-bottom: 24px; }
.prices { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line-light); vertical-align: middle; }
.prices thead th { font-size: 13px; font-weight: 500; opacity: .55; padding-top: 0; }
.prices tbody th { font-weight: 600; }
.prices td { font-weight: 600; text-align: right; }
.prices td:last-child { opacity: .6; font-weight: 500; padding-left: 12px; }
.prices thead th:not(:first-child) { text-align: right; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.prices tr.best th, .prices tr.best td { color: var(--pluma-deep); }
.prices tr.best td:first-of-type { font-family: var(--f-display); font-size: 18px; }
.best-tag { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 99px; background: var(--pluma); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.2; vertical-align: 2px; white-space: nowrap; }
.rule { font-size: 14px; line-height: 1.45; background: #FDEDF2; color: var(--pluma-deep); padding: 12px 14px; border-radius: 12px; }
.price-text { margin-top: 16px; font-size: 16px; line-height: 1.5; opacity: .92; }
.teacher-options { display: grid; gap: 10px; margin: 20px 0 0; }
.teacher-options div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.15); }
.teacher-options span { font-size: 15px; opacity: .9; }
.teacher-options strong { font-family: var(--f-display); font-size: clamp(20px, 2vw, 24px); white-space: nowrap; }
.tick-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.4; }
.tick-list li::first-letter { text-transform: uppercase; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--ouro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D3B2C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.prep-note { margin-top: 20px; font-size: 15px; line-height: 1.45; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); }
.price-block .btn-line { border-color: rgba(255,255,255,.55); }
@media (hover: hover) { .price-block .btn-line:hover { background: rgba(255,255,255,.12); } }
.pay-note { margin: 24px 0 0; max-width: 64ch; opacity: .85; }

/* ===== FAQ ===== */
.faq { background: var(--paper); color: var(--ink); padding: var(--sec) 0; }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-child { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--pluma); border-bottom: 2px solid var(--pluma); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; max-width: 62ch; opacity: .85; }

/* ===== Zayavka ===== */
.zayavka { background: var(--mata); color: #fff; padding: var(--sec) 0; }
.zayavka-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.zayavka .lead { margin-top: 20px; opacity: .88; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.contacts a { gap: 10px; display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-dark); text-decoration: none; font-weight: 600; }
.contacts a:hover { border-color: var(--ouro); color: var(--ouro); }
.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.seg { border: 0; margin: 0; padding: 0; }
.seg legend { font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-light); font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s; }
.seg input:checked + span { background: var(--mata); border-color: var(--mata); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: 15px; }
.field i { font-style: normal; font-weight: 400; opacity: .55; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line-light); background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mata); box-shadow: 0 0 0 3px rgba(13,59,44,.15); }
.field input[aria-invalid="true"] { border-color: #C0392B; }
.err { font-style: normal; font-size: 14px; color: #B42318; }
.form-hint { font-size: 14px; opacity: .6; margin: -6px 0 0; text-align: center; }

/* ===== Footer ===== */
.foot { background: var(--mata-3); color: rgba(255,255,255,.8); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.foot-brand { font-family: var(--f-display); font-weight: 700; color: #fff; }
.foot-sub { font-family: var(--f-body); font-weight: 400; opacity: .7; font-size: 14px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ouro); }
.credits { grid-column: 1 / -1; font-size: 12px; opacity: .55; border-top: 1px solid var(--line-dark); padding-top: 18px; }

/* Floating CTA (mobile) */
.float-cta {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  min-height: 52px; border-radius: 999px; align-items: center; justify-content: center;
  background: var(--ouro); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  transition: transform .3s ease, opacity .3s ease;
}
.float-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .path::before { display: none; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-block--prep { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .top { gap: 10px; }
  .top-cta { display: none; }
  .float-cta { display: flex; }
  .hero-head, .intro-cols, .world-grid, .formats-layout, .escort, .practical,
  .olga-grid, .rio-intro, .rio-grid, .uroki-head, .faq-wrap, .zayavka-grid { grid-template-columns: 1fr; }
  .doors { flex-direction: column; height: auto; min-height: 0; }
  .door { flex: none; height: 300px; }
  .door-text { opacity: .9; }
  .calc { position: static; }
  .olga-photo { max-width: 420px; }
  .escort-photo { aspect-ratio: 4/3; max-height: 360px; }
  .hero-head { align-items: start; }
  .vcard--rio { max-width: 380px; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .path { grid-template-columns: 1fr; row-gap: 0; }
  .path li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 22px; }
  .path li::before { grid-row: 1 / span 2; margin: 0; }
  .facts { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; padding: 16px 18px; }
  .offer-price { grid-column: 1; grid-row: auto; text-align: left; margin-top: 6px; }
  .offer-price small { display: inline; margin-left: 6px; }
  .tabs button { padding: 10px 14px; font-size: 14px; }
  .glossary dl { grid-template-columns: 1fr; gap: 2px; }
  .glossary dd { margin-bottom: 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Icons (Lucide, stroke) ===== */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .ic { width: 17px; height: 17px; opacity: .8; }
.practical .h-md { display: flex; align-items: center; gap: 10px; }
.practical .h-md .ic { width: 22px; height: 22px; }
.vcard figcaption .ic { width: 15px; height: 15px; }

/* ===== Reading progress ===== */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ouro); transform: scaleX(0); transform-origin: left; }

/* ===== Video cards: vertical reels from Olga's phone ===== */
.vcard { position: relative; margin: 0; aspect-ratio: 9/16; border-radius: var(--r-lg); overflow: hidden; background: var(--mata-3); isolation: isolate; }
.vcard video { position: absolute; inset: -5% 0; width: 100%; height: 110%; object-fit: cover; }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(5,20,15,.75) 100%); pointer-events: none; }
.vcard figcaption { position: absolute; left: 16px; right: 64px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; }
.vbtn { position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff; background: rgba(10,30,22,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .16s ease-out; }
.vbtn:active { transform: scale(.94); }
.vbtn .ic { width: 18px; height: 18px; }
.vbtn-toggle { right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; }
.vbtn-toggle .ic-play, .vcard.is-paused .vbtn-toggle .ic-pause { display: none; }
.vcard.is-paused .vbtn-toggle .ic-play { display: block; }
.vbtn-sound { left: 12px; top: 12px; height: 36px; padding: 0 14px 0 12px; gap: 8px; border-radius: 999px; font-size: 14px; font-weight: 600; }
@media (hover: hover) { .vbtn:hover { background: rgba(10,30,22,.8); } }
.intro-cols .vcard { max-width: 360px; justify-self: end; width: 100%; }
.vcard--rio { width: 100%; max-width: 420px; justify-self: center; }
.uroki-gallery .vcard { border-radius: var(--r-lg); }
.uroki-gallery .vcard:nth-child(2) { transform: translateY(clamp(0px, 3vw, 40px)); }
@media (max-width: 600px) { .uroki-gallery .vcard:nth-child(2) { transform: none; } }

/* ===== Lightbox ===== */
.vbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 480px); max-height: 92vh; overflow: visible; }
.vbox::backdrop { background: rgba(5,15,11,.88); }
.vbox video { display: block; width: 100%; max-height: 88vh; border-radius: var(--r-lg); background: #000; }
.vbox-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ouro); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
@media (max-width: 600px) { .vbox-close { top: 8px; right: 8px; } }

/* ===== Carnival film ===== */
.car-film { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.car-film-text { max-width: 46ch; }
.car-film-text .sub { margin: 16px 0 28px; opacity: .86; }
@media (max-width: 900px) { .car-film { grid-template-columns: 1fr; } .vcard--film { max-width: 380px; } }
.escort-head { grid-area: head; }
.escort-steps { grid-area: steps; }
@media (min-width: 1081px) { .escort-steps { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; } .escort-steps li { padding: 64px 0 0; } .escort-steps li::before { top: 16px; } }
@media (max-width: 900px) { .escort { grid-template-areas: "head" "photo" "steps"; } }

/* ===== Mobile menu ===== */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-dark); background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.mnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--mata-3); padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mnav[hidden] { display: none; }
.mnav > a { padding: 14px 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.mnav-cta { display: grid; gap: 10px; margin-top: 18px; }
.mnav-cta .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: no-preference) { .mnav:not([hidden]) { animation: menuIn .18s ease-out; transform-origin: top; } }
@media (min-width: 1081px) { .mnav { display: none !important; } }
@media (max-width: 1080px) { .menu-btn { display: inline-flex; } .lang { margin-left: auto; } }

/* ===== Phone polish ===== */
.escort-price span { white-space: nowrap; }
@media (max-width: 900px) {
  .vcard--film, .vcard--rio, .intro-cols .vcard { width: min(100%, 320px); max-width: none; justify-self: center; margin-inline: auto; }
}
@media (max-width: 600px) {
  .doors { gap: 10px; }
  .door { height: 210px; }
  .door-text { display: none; }
  .door-body { gap: 8px; padding: 18px; }
  .door-title { font-size: 26px; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .uroki-gallery { grid-template-columns: repeat(3, 64%); }
  .rio-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rio-prices div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
  .rio-prices strong { font-size: 30px; }
  .escort { padding: 24px 20px; }
  .escort-price strong { font-size: 38px; }
  .h-lg { overflow-wrap: break-word; }
  .vbtn-sound { height: 34px; font-size: 13px; }
}

/* World cards: title, tag and paragraphs sit on the same lines in both cards */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 901px) {
    .world-grid { grid-template-rows: repeat(5, auto); row-gap: 0; }
    .world { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .world-body { grid-row: 2 / span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .world-body > * { margin-top: 0; }
    .world-tag { margin-bottom: 14px; }
    .world-body p + p { margin-top: 0; }
    .world-body p:not(.world-tag):not(:last-child) { margin-bottom: 14px; }
  }
}

/* the browser must not "help" by re-anchoring scroll inside the timeline while it opens */
.timeline, .timeline li, .timeline-more { overflow-anchor: none; }
