/* контейнер */
.buy-wrap{
  width:100vw; height:100dvh; min-height:100svh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px;
}

/* контракт-пилюля */
.contract-pill{
  display:inline-grid;
  grid-auto-flow: column;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  width:auto;
  max-width:min(980px, 90vw);
  margin-inline:auto;
}
.contract-pill .c-label{ font-weight:800; color:#fff; }
.contract-pill .c-hash{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:14px; color:rgba(255,255,255,.92);
  max-width:58ch;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* RTL: контрактная пилюля и хэш */
html[dir="rtl"] .contract-pill{ direction: rtl; }
html[dir="rtl"] .contract-pill .c-hash{ direction: ltr; unicode-bidi: plaintext; }
.contract-pill .btn-copy{
  height:34px; padding:0 12px; border-radius:999px; border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color:#fff; font-weight:700;
}
.contract-pill .btn-copy:hover{ background: rgba(255,255,255,.12); }
.contract-pill .copied{ margin-left:6px; font-size:12px; color:rgba(255,255,255,.7); opacity:0; transition:opacity .2s; }

/* сетка способов */
.buy-grid{
  display:grid; gap:12px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  width:min(980px, 90vw);
}
.b-card{
  position:relative; padding:16px; border-radius:14px;
  display:flex; flex-direction:column; gap:6px; min-height:168px;
  text-decoration:none; color:inherit; transition: background .18s ease, outline-color .18s ease;
}
.b-card:hover{ background: rgba(20,20,20,.38); }

.b-ico{ font-size:22px; opacity:.95; }
.b-title{ font-weight:800; color:#fff; }
.b-desc{ color:rgba(255,255,255,.82); margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
/* чёткие CTA вместо подчёркнутых ссылок */
.btn-cta{
  margin-top:auto; align-self:flex-start;
  padding:8px 14px; border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff; font-weight:800; line-height:1;
}
.b-card:hover .btn-cta{ background: rgba(255,255,255,.14); }

/* блок со шагами */
.buy-notes{ width:min(980px, 92vw); padding:14px 16px; border-radius:14px; margin-top:4px; }
.steps{ margin:0 0 8px; padding-left:20px; color:rgba(255,255,255,.86); }
.micro-note{ margin:0; color:rgba(255,255,255,.62); font-size:12px; }

/* адаптив */
@media (max-width: 720px){
  .buy-grid{ grid-template-columns: 1fr; }
  .contract-pill{
    grid-template-columns: 1fr auto;
    grid-auto-flow: row;
    justify-items: center;
  }
  .contract-pill .c-hash{ max-width:100%; }
}

/* фокусные кольца для клавиатуры */
.contract-pill .btn-copy:focus-visible,
.b-card:focus-visible,
.btn-cta:focus-visible{
  outline:2px solid rgba(255,255,255,.75);
  outline-offset:2px;
}
/* контейнер секции комьюнити */
.community-wrap{
  width:100vw; height:100dvh; min-height:100svh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:18px;
}

/* сетка карточек */
.community-grid{
  display:grid; gap:12px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  width:min(980px, 92vw);
}

/* карточка сообщества */
.c-card{
  position:relative; padding:16px; border-radius:14px;
  display:flex; flex-direction:column; gap:6px; min-height:140px;
  transition: background .18s ease;
  color:inherit; text-decoration:none;
}
.c-card:hover{ background: rgba(20,20,20,.38); }

.c-ico{ font-size:22px; opacity:.95; }
.c-title{ font-weight:800; color:#fff; }
.c-desc{
  color:rgba(255,255,255,.82); margin:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* бейдж у «официального» */
.c-badge{
  position:absolute; top:8px; right:8px;
  font-size:12px; padding:2px 8px; border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.08); color:#fff;
}
.c-card.is-official{ outline:1px solid rgba(255,255,255,.16); }

/* адаптив */
@media (max-width:1000px){
  .community-grid{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width:560px){
  .community-grid{ grid-template-columns: 1fr; }
}
/* контейнер секции продуктов */
.products-wrap{
  width:100vw; height:100dvh; min-height:100svh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:18px;
}

.section-title{ margin:0 0 6px; font-size: var(--fs-h2); font-weight:900; color:#fff; text-align:center; }

/* сетка карточек */
.products-grid{
  display:grid; gap:12px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
  width:min(980px, 92vw);
  position:relative;
}
@media (max-width:1000px){ .products-grid{ grid-template-columns: repeat(2, minmax(220px, 1fr)); } }
@media (max-width:560px){  .products-grid{ grid-template-columns: 1fr; } }

/* карточка */
.p-card{
  position:relative; padding:16px; border-radius:14px;
  display:flex; flex-direction:column;
  min-height:160px; gap:6px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.p-card:hover{ transform: translateY(-4px); background: rgba(0,0,0,.46); }
.p-ico{ font-size:22px; opacity:.95; }
.p-title{ font-weight:800; color:#fff; }
.p-desc{
  color:rgba(255,255,255,.82); margin:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* featured — спокойнее */
.p-card.is-featured{ outline:1px solid rgba(255,255,255,.16); }
.p-badge{
  position:absolute; top:8px; right:8px; font-size:12px;
  padding:2px 8px; border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color:#fff;
}

/* недоступная карточка: Скоро */
.p-card.soon{
  opacity:.75;
  border-style: dashed;          /* пунктир для рамки */
  border-color: rgba(255,255,255,.22);
  cursor: default;
  pointer-events: none;          /* не кликается */
  position: relative;
}
.p-card.soon::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.06) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: shimmer 2.2s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes shimmer{
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%);  }
}
.p-badge--soon{
  position:absolute; top:8px; right:8px;
  font-size:12px; padding:2px 8px; border-radius:999px;
  border:1px dashed rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  color:#fff;
}
.p-card.soon:hover{ transform:none; background: rgba(0,0,0,.42); }

/* блок с текстом снизу */
.products-notes{ width:min(980px, 92vw); padding:18px 16px; border-radius:14px; }
.products-notes h3{ margin:0 0 8px; font-size: clamp(18px, 2.2vw, 22px); color:#fff; font-weight:800; }
.products-notes .bullets{ margin:0; padding:0; list-style:none; display:grid; gap:8px; }
.products-notes .bullets li{
  position:relative; padding-left:14px; color:rgba(255,255,255,.86);
}
.products-notes .bullets li::before{
  content:""; position:absolute; left:0; top:.58em; width:6px; height:6px; border-radius:50%;
  background: rgba(255,255,255,.75);
}
.products-notes .micro-note{
  margin:10px 0 0; color:rgba(255,255,255,.62); font-size:12px;
}

/* адаптив */
@media (max-width:1000px){ .products-grid{ grid-template-columns: repeat(2, minmax(220px, 1fr)); } }
@media (max-width:560px){  .products-grid{ grid-template-columns: 1fr; } }
/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body{ height:100%; }
body { overflow-x:hidden; }
html { overflow-x:hidden; }

/* Фон: фиксированная «стена», лёгкий параллакс */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/static/imgs/bricks.png') center/cover no-repeat fixed;
  will-change: transform;
}

.app-bg::after { /* затемнение для контраста */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .35));
}

/* Динамическое прогрессивное затемнение фона на мобильных */
@media (max-width: 820px) {
  :root {
    --scroll-darkness: 0.15; /* начальное значение, обновляется JS */
  }
  
  .app-bg::after {
    background: 
      rgba(0, 0, 0, var(--scroll-darkness)),
      radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .15));
    transition: background 0.1s ease-out; /* плавный переход */
  }
  
  /* Секции должны иметь position: relative для псевдо-элементов */
  #facts, #products, #community, #buy {
    position: relative;
  }
  
  /* Дополнительный слой затемнения для каждой секции */
  #facts::before { 
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(0, 0, 0, 0.15); pointer-events: none;
  }
  #products::before { 
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(0, 0, 0, 0.35); pointer-events: none;
  }
  #community::before { 
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(0, 0, 0, 0.55); pointer-events: none;
  }
  #buy::before { 
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(0, 0, 0, 0.82); pointer-events: none; /* почти полная темнота */
  }
}

/* Общая обёртка секций, чтобы текст был читаем на любом участке */
.section-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px;
  backdrop-filter: blur(6px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* старый стеклянный стиль удалён; используется calm-glass ниже */

/* Панель героя без блюра/карточек */
.hero-panel { position: relative; }

/* Блик под заголовком (дорогой эффект) */
/* Убрали «дорогой блик», оставляем чистый минимализм */
.hero-panel::before { content: none; }

.hero-panel .hero-wrap{
  position: relative;
  min-height: inherit;
  width: 100vw;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  pointer-events: auto;
  backdrop-filter: none;
  gap: var(--g-md);
  padding-block: clamp(16px, 8vh, 64px);
}

/* Абсолютное геометрическое центрирование контента */
.hero-core{
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1400px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(10px, 2vh, 18px);
}

/* Огромный заголовок на всю ширину */
.hero-title-wrap{ width:100%; }

/* Сброс ограничений — JS контролирует размер шрифта */
.hero-title{
  margin:0; line-height:.95; letter-spacing:-.012em;
  white-space:normal; /* разрешаем перенос */
  overflow:visible;
  color:#fff; font-weight:900;
  font-size: var(--fs-hero);
  text-shadow:none; -webkit-text-stroke:0;
}

.hero-line { 
  display: block; 
}

/* подзаголовок — контрастнее и компактнее */
.hero-sub {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
  opacity: .95;
  letter-spacing: .01em;
  text-shadow: none;
}

/* описание — более плотное и читаемое */
.hero-desc {
  max-width: 1100px;
  margin: .6rem auto 1.4rem;
  color: rgba(255,255,255,.92);
  opacity: .95;
  font-size: clamp(14px, 1.3vw, 18px);
  text-wrap: balance;
  line-height: 1.5;
}

/* кнопки — одинаковая высота, выравнивание по базовой линии */
.hero-actions {
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  justify-content: center;
}

.hero-actions .btn{ height:var(--btn-h); min-width:140px; align-items:center; }

/* Микро-контраст для кирпичей за текстом */
/* Тонкий scrim для читабельности без теней на тексте */
.hero-scrim{
  position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(40% 28% at 50% 52%, rgba(0,0,0,.18), transparent 70%);
  mix-blend-mode:multiply;
}

/* Убрали прежнюю маску */
.hero-panel .hero-wrap::after { content: none; }

/* Facts (чипы) */
.facts-wrap{
  width:100vw; height:100dvh; min-height:100svh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:24px;
}
.chips{
  display:grid; gap:12px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  width:min(980px, 90vw);
}
.chip{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:16px 14px; border-radius:14px;
  background: rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.chip b{
  font-size: clamp(26px, 4.1vw, 46px);
  line-height:1; color:#fff; font-weight:900;
}
.chip span{
  margin-top:6px; font-weight:700; letter-spacing:.2px;
  color: rgba(255,255,255,.80);
}

/* info cards */
.info-grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  width:min(980px, 90vw);
}
.glass{
  background: rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
}
.info{ padding:18px 16px; }
.info h3{
  margin:0 0 8px;
  font-size: clamp(18px, 2.2vw, 22px);
  color:#fff; font-weight:800;
}
.info p{ margin:0 0 8px; color:rgba(255,255,255,.88) }
.bullets{ margin:0; padding:0; list-style:none; display:grid; gap:6px }
.bullets li{
  position:relative; padding-left:14px; color:rgba(255,255,255,.82)
}
.bullets li::before{
  content:""; position:absolute; left:0; top:.58em;
  width:6px; height:6px; border-radius:50%;
  background: rgba(255,255,255,.75);
}
/* RTL: корректный рендер маркеров и текста */
html[dir="rtl"] .bullets{ direction: rtl; }
html[dir="rtl"] .bullets li{ padding-left:0; padding-right:14px; }
html[dir="rtl"] .bullets li::before{ left:auto; right:0; }
/* RTL: выравнивание заголовков и абзацев */
html[dir="rtl"] .info p, html[dir="rtl"] .info h3, html[dir="rtl"] .section-title{ text-align:right; }
html[dir="rtl"] .mini-cta{ direction: rtl; }
.bullets{ margin:0; padding:0; list-style:none; display:grid; gap:6px }
.bullets li{
  position:relative; padding-left:14px; color:rgba(255,255,255,.82)
}
.bullets li::before{
  content:""; position:absolute; left:0; top:.58em;
  width:6px; height:6px; border-radius:50%;
  background: rgba(255,255,255,.75);
}

/* CTA + note */
.mini-cta{ display:flex; gap:12px; margin-top:4px }
.micro-note{ margin:4px 0 0; color:rgba(255,255,255,.62); font-size:12px }

/* entrance reveal */
.reveal{ opacity:0; transform: translateY(8px); transition: .5s ease }
.reveal.is-in{ opacity:1; transform:none }

/* responsive */
@media (max-width: 980px){ .chips{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){
  .chips{ 
    grid-template-columns: 1fr; 
    gap: 10px; /* меньший gap для экономии места */
  }
  .chip {
    padding: 14px 12px; /* компактнее */
  }
  .chip b {
    font-size: clamp(22px, 3.8vw, 38px); /* меньше на узких экранах */
  }
  .info-grid{ grid-template-columns: 1fr; }
  .mini-cta{ width:min(440px,92vw); }
  .mini-cta .btn{ width:100%; }
}

/* единый «glass» вид без теней для минимализма */
.glass{
  position:relative; overflow:hidden; isolation:isolate;
  background: var(--glass-bg);
  border-radius: 14px;
  border: 1px solid var(--glass-brd-outer);
  backdrop-filter: saturate(1.06) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(1.06) blur(var(--glass-blur));
}
.glass::before{
  content:""; pointer-events:none;
  position:absolute; inset:0; border-radius:inherit;
  box-shadow:
    inset 0 1px 0 var(--glass-top-highlight),
    inset 0 0 0 1px var(--glass-brd-inner);
}
.glass::after{
  content:""; pointer-events:none;
  position:absolute; inset:0; border-radius:inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%),
    radial-gradient(120% 80% at 50% -20%, rgba(255,255,255,.03), transparent 60%);
  mix-blend-mode: soft-light;
  opacity:.9;
}

/* liquid-эффект поверх glass */
.liquid{ position:relative; isolation:isolate; overflow:hidden; }
/* liquid-эффект удалён */
.liquid, .liquid::before, .liquid::after{ will-change: transform, opacity; }

/* адаптация по высоте: на низких экранах уменьшаем */
@media (max-height: 750px) {
  .hero-title { 
    font-size: min(16vw, 200px); 
  }
}

/* На маленьких экранах – двухстрочный заголовок, большой но пропорциональный */
@media (max-width: 560px) {
  .hero-title { 
    font-size: min(16vw, 84px) !important; /* большой, но пропорциональный */
    letter-spacing: -.012em;
    line-height: 0.85; /* плотно для двух строк */
  }
  
  .hero-line {
    display: block;
    line-height: 0.9;
  }
  
  /* Корректировка для баланса */
  .hero-core {
    gap: clamp(8px, 1.5vh, 16px);
  }
}

/* Очень узкие экраны - пропорционально меньше */
@media (max-width: 380px) {
  .hero-title { 
    font-size: min(14vw, 68px) !important;
    letter-spacing: -.01em;
  }
}

/* квадратные экраны — компактнее */
body.ratio-sq .hero-wrap{ padding-block: clamp(16px, 6vh, 56px); }
body.ratio-sq h1.hero-title{ font-size: clamp(30px, 7.2vw, 120px); }

/* крайне низкая высота: прячем второстепенные подписи */
@media (max-height: 520px){
  .hero-sub, .micro-note{ display:none; }
  .panel{ padding-top: max(8px, env(safe-area-inset-top)); padding-bottom:max(8px, env(safe-area-inset-bottom)); }
}

/* reduced motion class hook */
.reduced-motion .parallax{ transform:none !important; }

/* Заголовок с градиентом и мягкой тенью */
.h1-gradient {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--text-strong) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
  filter: drop-shadow(0 0 20px rgba(255, 209, 102, 0.4));
}

.h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-soft);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
  margin: 0.4rem 0 1.2rem;
}

.h3 {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-strong);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Кнопки */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:var(--btn-h); padding:0 16px;
  border-radius:var(--btn-radius); font-weight:700; letter-spacing:.2px;
  border:1px solid transparent; background:transparent; color:inherit;
  transition: background .18s ease, border-color .18s ease, transform .02s ease;
  user-select:none; cursor:pointer;
}
.btn:active{ transform:scale(.985); }
.btn:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; }

/* Primary — нейтральный чёрный на любом тёплом фоне */
.btn-primary{
  background:var(--btn-neutral-bg);
  color:var(--btn-neutral-text);
  border-color:var(--btn-neutral-border);
}
.btn-primary:hover{ background:var(--btn-neutral-bg-hover); }

/* Secondary — прозрачный контур (ghost) */
.btn-secondary{
  color:var(--btn-ghost-text);
  border-color:var(--btn-ghost-border);
  background:transparent;
}
.btn-secondary:hover{ background: rgba(255,255,255,.06); }

/* Мобильные: на всю ширину контейнера */
@media (max-width:480px){
  .hero-actions{ width:min(440px, 94vw); }
  .hero-actions .btn{ flex:1 1 auto; width:100%; }
}

/* Бейдж */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

/* Прогресс-бар секций */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 40;
  background: rgba(255, 255, 255, .08);
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--text-strong), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-2);
  transition: width .4s var(--timing);
  border-radius: 0 8px 8px 0;
}

/* Индикатор «1/5» */
.section-indicator {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: .35rem .6rem;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text-strong);
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

@media (max-width: 820px){
  .progress, .section-indicator, .scroll-hint{ display:none !important; }
}

/* Подсказка скролла */
.scroll-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: .5rem .8rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: opacity .3s var(--timing);
  z-index: 40;
  font-size: 0.9rem;
  font-weight: 500;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Плавающие частицы */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

/* Ссылки: белый текст, тонкое подчёркивание в инфо-карточках */
a{ color: inherit; text-decoration: none; }
.info a{
  color: var(--link-text);
  border-bottom: 1px solid var(--link-underline);
  transition: border-color .18s ease, opacity .18s ease;
}
.info a:hover{ border-bottom-color: var(--link-underline-hover); }
.info a:visited{ color: var(--link-text); }
.info a:focus-visible{
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-bottom-color: transparent;
}

/* Горизонтальный скролл контейнер */
.scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 500vw; /* 5 sections */
  height: 100vh;
  display: flex;
  transition: transform 0.8s var(--timing);
  will-change: transform;
}

.scroll-section {
  width: 100vw;
  height: 100vh;
  position: relative;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.scroll-section.active {
  opacity: 1;
}

/* Языковой селектор */
.language-selector-fixed {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 50;
}

.language-btn {
  background: rgba(0, 0, 0, .55);
  color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: .35rem .6rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--timing);
}

.language-btn:hover {
  background: rgba(0, 0, 0, .7);
  border-color: var(--accent);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(0, 0, 0, .8);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--timing);
  backdrop-filter: blur(20px);
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-strong);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.lang-option:hover {
  background: rgba(255, 255, 255, .1);
}

.lang-option:first-child {
  border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 12px 12px;
}

/* Утилиты */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-1 { gap: 0.8rem; }
.gap-2 { gap: 1.2rem; }
.gap-3 { gap: 1.6rem; }

.mt-1 { margin-top: 0.8rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 1.6rem; }

.mb-1 { margin-bottom: 0.8rem; }
.mb-2 { margin-bottom: 1.2rem; }
.mb-3 { margin-bottom: 1.6rem; }

/* Адаптивность */
@media (max-width: 820px) {
  /* на мобильных секции не центрируем по вертикали — используем естественный поток */
  .products-wrap, .community-wrap, .buy-wrap, .facts-wrap {
    justify-content: flex-start;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    gap: 16px;
    min-height: auto; /* убираем фиксированную высоту */
    height: auto;
  }
  
  /* Индивидуальные размеры секций */
  .hero-wrap {
    min-height: 100vh; /* Hero остается полноэкранным */
    min-height: 100svh;
    min-height: 100dvh;
  }
  
  .facts-wrap {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 48px;
  }
  
  .products-wrap {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 56px;
  }
  
  .community-wrap {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 56px;
  }
  
  .buy-wrap {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  
  /* Разграничители между секциями */
  .facts-wrap::before,
  .products-wrap::before,
  .community-wrap::before,
  .buy-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(300px, 60vw);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    border-radius: 1px;
  }
  
  .section-content{ padding: 24px 16px; }
  .glass{ padding: 20px; margin: 0 8px; }
  .btn{ padding:.7rem 1rem; font-size:.9rem; }
  .language-selector-fixed{ top:8px; right:8px; }
  .section-indicator{ top:8px; left:8px; }
}
