/* =========================================================
   Сафонов Григорий — сайт-визитка
   Энергичный тёмный стиль · горизонтальный скролл
   ========================================================= */

@import "fonts.css";

:root {
  --accent:  #FF2D78;
  --accent2: #FF8A00;
  --accent3: #2DE0C8;
  --grad: linear-gradient(115deg, var(--accent), var(--accent2));

  --bg:   #0B0B0F;
  --bg-2: #131320;
  --card: rgba(255,255,255,.04);
  --card-border: rgba(255,255,255,.10);
  --ink:  #F6F6F9;
  --muted: #9A9AAC;
  --muted-2: #6C6C80;

  --r: 22px;
  --r-sm: 14px;
  --maxw: 1180px;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(.22,1,.36,1); /* @kind other */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  letter-spacing: .1px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Фон: цветные пятна + зерно ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .42; mix-blend-mode: screen;
  animation: float 18s var(--ease) infinite alternate;
}
.blob.b1 { width: 46vw; height: 46vw; left: -8vw; top: -10vh; background: var(--accent); }
.blob.b2 { width: 40vw; height: 40vw; right: -6vw; bottom: -14vh; background: var(--accent2); animation-delay: -6s; }
.blob.b3 { width: 32vw; height: 32vw; left: 38vw; top: 40vh; background: var(--accent3); opacity: .26; animation-delay: -11s; }
@keyframes float {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4vw,3vh,0) scale(1.15); }
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Горизонтальная сцена ---------- */
.stage {
  position: fixed; inset: 0; z-index: 2;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}
.stage::-webkit-scrollbar { height: 0; }
.track { display: flex; height: 100%; align-items: stretch; }

.panel {
  position: relative;
  flex: 0 0 auto;
  width: 100vw;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px clamp(76px, 7vw, 120px) 96px;
}
.panel-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* секционный номер-шепот на фоне */
.panel-ghost {
  position: absolute; right: clamp(18px,4vw,64px); bottom: clamp(10px,3vw,40px);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(120px, 22vw, 300px); line-height: .8;
  color: rgba(255,255,255,.025); letter-spacing: -.04em; z-index: 0; user-select: none;
}

/* ---------- Типографика ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 30px; height: 2px; border-radius: 2px; background: var(--grad);
}
.display {
  font-family: var(--font-display); font-weight: 800;
  line-height: .98; letter-spacing: -.03em;
  font-size: clamp(40px, 6.4vw, 92px);
  white-space: pre-line;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  line-height: .98; letter-spacing: -.03em;
  font-size: clamp(34px, 4.4vw, 62px);
  white-space: pre-line; margin-bottom: 22px;
  overflow-wrap: normal; word-break: normal; hyphens: none; /* не рвём слова посреди */
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 20px); max-width: 46ch; }
.eng { } /* язык управляется через JS-классы на body */

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 15px 26px; border-radius: 100px; border: 0; cursor: pointer;
  text-decoration: none; color: #0B0B0F; background: var(--grad); white-space: nowrap;
  transition: transform .25s var(--ease), filter .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 10px 30px -10px var(--accent);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 40px -12px var(--accent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .lucide { width: 18px; height: 18px; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--card-border); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.04); box-shadow: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- HERO ---------- */
.hero .panel-inner { display: grid; gap: 8px; }
.hero .display { margin-bottom: 22px; font-size: clamp(38px, 5.6vw, 82px); }
.hero .lead { font-size: clamp(16px, 1.4vw, 21px); max-width: 54ch; }
.hero-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 32px;
  color: var(--muted); font-size: 14px; flex-wrap: wrap;
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 800; color: #0B0B0F; background: var(--grad); font-size: 18px;
  box-shadow: 0 8px 24px -8px var(--accent);
}
.scroll-hint {
  position: absolute; left: clamp(28px,6vw,96px); bottom: 38px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted-2); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.scroll-hint .lucide { width: 18px; height: 18px; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%,100%{ transform: translateX(0);} 50%{ transform: translateX(6px);} }

/* ---------- Раскладка контентных секций ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split .head { max-width: 48ch; }
.split .head .lead { max-width: 42ch; }

/* ---------- Фото: круговая катушка ---------- */
.reel-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.reel-wrap .head { max-width: 46ch; min-width: 0; }
/* у галереи колонка текста уже → заголовок чуть меньше, чтобы длинные слова влезали */
.reel-wrap .section-title { font-size: clamp(28px, 3vw, 48px); }
.reel-hint { margin-top: 20px; color: var(--muted-2); font-size: 13px; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 9px; }
.reel-hint .lucide { width: 16px; height: 16px; color: var(--accent3); }

.reel {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto;
  aspect-ratio: 1 / 1; touch-action: none; user-select: none;
}
.reel-card {
  position: absolute; top: 0; left: 0;
  border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--card-border); background: #111;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.85);
  will-change: transform, opacity; transform-origin: center center;
}
.reel-card .ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--c) 55%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #000), #0b0b12);
}
.reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card .cam { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.reel-card .cam .lucide { width: 30px; height: 30px; }
.reel-card .rc-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px 11px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  opacity: 0; transition: opacity .3s var(--ease);
}
.reel-card.show-cap .rc-cap { opacity: 1; }
.reel-card .rc-cap .tag {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 100px;
  background: rgba(255,255,255,.16); margin-bottom: 6px;
}
.reel-card .rc-cap .cap { display: block; font-weight: 600; font-size: 13px; }

/* центральная втулка с альбомами */
.reel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 3px;
  padding: 7% 7%; z-index: 30;
  background: radial-gradient(circle at 50% 32%, rgba(30,30,44,.94), rgba(11,11,17,.97));
  border: 1px solid var(--card-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 22px 55px -22px rgba(0,0,0,.85);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.reel.focused .reel-hub { opacity: 0; transform: translate(-50%, -50%) scale(.8); pointer-events: none; }
.alb {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: clamp(10px, 1.05vw, 13px);
  letter-spacing: .02em; padding: 5px 6px; border-radius: 100px; line-height: 1.1; white-space: nowrap;
  transition: color .2s, background .2s;
}
.alb:hover { color: var(--ink); }
.alb.on { color: #0B0B0F; background: var(--grad); }

.reel-back {
  position: absolute; left: 0; top: 0; z-index: 40; width: 42px; height: 42px; border-radius: 50%;
  display: none; place-items: center; cursor: pointer; color: var(--ink);
  background: rgba(20,20,32,.72); border: 1px solid var(--card-border); backdrop-filter: blur(8px);
}
.reel.focused .reel-back { display: grid; }
.reel-back:hover { background: rgba(40,40,56,.9); }
.reel-back .lucide { width: 20px; height: 20px; }

/* подпись увеличенного фото — отдельный слой нормального размера */
.reel-cap {
  position: absolute; left: 50%; bottom: 2%; transform: translate(-50%, 12px);
  width: min(90%, 460px); text-align: center; z-index: 45;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.reel.focused .reel-cap { opacity: 1; transform: translate(-50%, 0); }
.reel-cap .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 100px;
  background: rgba(255,255,255,.16); margin-bottom: 9px;
}
.reel-cap .cap {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 2.1vw, 22px); line-height: 1.12; letter-spacing: -.01em;
}

/* ---------- Карточки услуг (3D) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--r); padding: 24px; min-width: 0;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: rgba(255,255,255,.06); }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; color: #0B0B0F; background: var(--c, var(--accent));
  box-shadow: 0 10px 24px -10px var(--c, var(--accent));
}
.card .ico .lucide { width: 22px; height: 22px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- Стенд: список пунктов ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent3); padding: 7px 14px; border-radius: 100px;
  border: 1px solid color-mix(in srgb, var(--accent3) 40%, transparent);
  background: color-mix(in srgb, var(--accent3) 12%, transparent); margin-bottom: 20px;
}
.badge::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--accent3); box-shadow: 0 0 12px var(--accent3); }
.points { display: grid; gap: 12px; margin-top: 6px; }
.point {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 20px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.point:hover { transform: translateX(6px); border-color: var(--card-border); }
.point .dot { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #0B0B0F; }
.point .dot .lucide { width: 15px; height: 15px; }
.point span { font-weight: 600; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Путь: горизонтальный таймлайн ---------- */
.path { width: auto; }
.path .panel-inner { max-width: none; }
.path-flow { display: flex; align-items: stretch; gap: 0; }
.path-head { flex: 0 0 clamp(260px, 26vw, 380px); align-self: center; padding-right: 40px; }
.step {
  position: relative; flex: 0 0 clamp(220px, 22vw, 290px);
  padding: 30px 28px 30px 0;
}
.step::before {
  content: ""; position: absolute; top: 46px; left: 0; right: 0; height: 2px;
  background: var(--card-border);
}
.step .node {
  position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted-2); margin-bottom: 28px;
}
.step.now .node, .step.goal .node { border-color: transparent; background: var(--grad); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--muted-2); letter-spacing: .1em; margin-bottom: 8px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 24ch; }
.step .pill {
  display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px;
}
.step.now .pill { color: #0B0B0F; background: var(--grad); }
.step.goal .pill { color: var(--accent3); border: 1px solid color-mix(in srgb, var(--accent3) 40%, transparent); }

/* ---------- Команда ---------- */
.roles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.role {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--card-border);
  font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.role:hover { transform: translateY(-3px); border-color: var(--accent); }
.role .lucide { width: 18px; height: 18px; color: var(--accent); }
.note-line { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.note-line .lucide { width: 16px; height: 16px; color: var(--accent3); }

/* ---------- Telegram ---------- */
.tg-card {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, rgba(41,171,226,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(41,171,226,.28);
  border-radius: var(--r); padding: clamp(28px, 4vw, 48px); max-width: 760px;
}
.tg-logo {
  width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff;
  box-shadow: 0 16px 40px -12px rgba(41,171,226,.7);
}
.tg-logo svg { width: 46px; height: 46px; }
.tg-card h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; margin-bottom: 8px; }
.tg-handle { color: #2AABEE; font-weight: 700; margin-bottom: 10px; }
.tg-card p { color: var(--muted); margin-bottom: 22px; max-width: 42ch; }
.btn-tg { background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff; box-shadow: 0 10px 30px -10px rgba(41,171,226,.7); }

/* ---------- Контакты ---------- */
.contacts .panel-inner { max-width: 920px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.contact {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink);
  padding: 20px 22px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.contact:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(255,255,255,.06); }
.contact .ci { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #0B0B0F; }
.contact .ci .lucide { width: 20px; height: 20px; }
.contact .ci svg { width: 22px; height: 22px; }
.contact .cl { display: block; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.contact .cv { display: block; font-weight: 600; font-size: 15px; }
.footer-line { margin-top: 30px; color: var(--muted-2); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* =========================================================
   Хром: прогресс, навигация, язык
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 40px); pointer-events: none;
}
.brand {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink);
}
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #0B0B0F; font-size: 13px; }
.topbar-right { pointer-events: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--card-border); border-radius: 100px; padding: 4px; }
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 100px; transition: color .2s, background .2s;
}
.lang-toggle button.on { color: #0B0B0F; background: var(--grad); }

.admin-link {
  pointer-events: auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  background: var(--card); border: 1px solid var(--card-border); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.admin-link:hover { color: var(--ink); border-color: var(--ink); }
.admin-link .lucide { width: 18px; height: 18px; }

/* прогресс-бар снизу */
.progress { position: fixed; left: 0; bottom: 0; height: 3px; z-index: 20; background: var(--grad); width: 0; transition: width .1s linear; }

/* точки-навигация — нижний центр */
.dots {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 20; display: flex; gap: 13px; padding: 9px 14px; border-radius: 100px;
  background: rgba(14,14,22,.55); border: 1px solid var(--card-border); backdrop-filter: blur(10px);
}
.dots button {
  position: relative; width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.22); transition: transform .25s var(--ease), background .25s;
}
.dots button.on { background: var(--accent); transform: scale(1.35); }
.dots button::after {
  content: attr(data-label); position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--ink);
  background: rgba(0,0,0,.78); padding: 5px 10px; border-radius: 7px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dots button:hover::after { opacity: 1; }

/* боковые стрелки */
.nav-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(20,20,32,.6); border: 1px solid var(--card-border);
  backdrop-filter: blur(10px); transition: background .2s, transform .2s;
}
.nav-arrow:hover { background: rgba(40,40,56,.85); }
.nav-arrow.prev { left: 20px; } .nav-arrow.next { right: 20px; }
.nav-arrow:active { transform: translateY(-50%) scale(.92); }
.nav-arrow.hide { opacity: 0; pointer-events: none; }
.nav-arrow .lucide { width: 22px; height: 22px; }

/* появление панелей — .in запускает энергичную анимацию входа.
   JS-watchdog добавит .no-anim, если кадры не идут (нет риска пустых секций) */
.reveal { opacity: 0; }
.panel.in .reveal { animation: rise .62s var(--ease) forwards; }
.panel.in .reveal:nth-child(2) { animation-delay: .07s; }
.panel.in .reveal:nth-child(3) { animation-delay: .14s; }
.panel.in .reveal:nth-child(4) { animation-delay: .2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.no-anim .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .panel.in .reveal { animation: none; }
  .blob { animation: none; }
  .stage { scroll-behavior: auto; }
}

/* язык: показываем нужный вариант */
body[data-lang="ru"] .lang-en { display: none; }
body[data-lang="en"] .lang-ru { display: none; }

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

/* катушка переезжает под текст ещё на планшете */
@media (max-width: 900px) {
  .reel-wrap { grid-template-columns: 1fr; gap: 26px; justify-items: center; }
  .reel-wrap .head { max-width: 640px; }
  .reel { max-width: min(72vw, 60vh); }
}

/* невысокие экраны: контент сверху, не по центру */
@media (max-height: 680px) and (min-width: 761px) {
  .panel { padding-top: 74px; padding-bottom: 64px; justify-content: center; }
  .scroll-hint { display: none; }
  .hero .kicker { display: none; }
  .section-title { font-size: clamp(28px, 4vw, 50px); margin-bottom: 14px; }
  .kicker { margin-bottom: 14px; }
  .hero .display { font-size: clamp(30px, 4.4vw, 54px); margin-bottom: 16px; }
  .hero .lead { font-size: 16px; }
  .hero-meta { margin-top: 16px; }
  .reel { max-width: 56vh; }
}

/* ---- Телефоны: панель скроллится вертикально, всё в один столбец ---- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .stage { scroll-snap-type: x mandatory; }

  .panel {
    width: 100vw;
    padding: 82px 20px 86px;
    justify-content: flex-start;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .panel-inner { margin: auto 0; }
  .panel-ghost { font-size: clamp(84px, 30vw, 150px); right: 12px; bottom: 8px; }

  .section-title { font-size: clamp(30px, 9.2vw, 48px); }
  .display, .hero .display { font-size: clamp(32px, 11vw, 56px); }
  .lead, .hero .lead { font-size: 16px; max-width: none; }

  .split { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .split .head { max-width: none; }
  .split .head .lead { max-width: none; }

  .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .roles { gap: 10px; }

  /* фото-катушка на телефоне */
  .reel-wrap { gap: 22px; }
  .reel { max-width: 80vw; touch-action: pan-y; } /* вертикальный свайп скроллит страницу */
  .reel-card .rc-cap .cap { font-size: 12px; }

  /* Telegram-карточка */
  .tg-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tg-card p { max-width: none; }

  /* путь: вертикальный таймлайн вместо горизонтального */
  .path { width: 100vw; }
  .path .panel-inner { max-width: 100%; }
  .path-flow { flex-direction: column; gap: 0; }
  .path-head { flex: 0 0 auto; padding-right: 0; margin-bottom: 22px; align-self: stretch; }
  .step { flex: 0 0 auto; padding: 0 0 26px 28px; }
  .step::before { top: 4px; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; }
  .step .node { position: absolute; left: 0; top: 4px; margin: 0; }
  .step p { max-width: none; }

  /* стрелки прячем — листаем свайпом */
  .nav-arrow { display: none; }
}

@media (max-width: 440px) {
  .cards { grid-template-columns: 1fr; }
  .reel { max-width: 90vw; }
  .panel-ghost { display: none; }
}
