/* ===================== ТИПОГРАФИКА (1440→1150) ===================== */
@media (max-width:1440px){
  .menu a, .pill__text{ font-size: clamp(0.58rem, calc(-0.9733rem + 2.1592vw), 0.97rem); }
  .lang-code{ font-size: clamp(0.60rem, calc(-0.6745rem + 1.7716vw), 0.92rem); }
  .pill--cta .pill__text{ font-size: clamp(0.70rem, calc(-0.4948rem + 1.6609vw), 1rem); }
}

/* ===================== ХЕДЕР / БУРГЕР ===================== */
.burger{ display:none; align-items:center; justify-content:center; width:2.9rem; height:2.9rem; border-radius:var(--r); background:linear-gradient(180deg,rgba(255,255,255,.1),var(--glass)); border:.0625rem solid var(--stroke); color:var(--text); backdrop-filter:saturate(140%) blur(.4rem); cursor:pointer; }
.burger .i{ width:1.25rem; height:1.25rem; }
.burger .i--close{ display:none; }
.menu-open .burger .i--menu{ display:none; }
.menu-open .burger .i--close{ display:block; }

@media (max-width:1150px){
  html.has-burger .pill--menu, html.has-burger .pill--lang{ display:none; }
  html.has-burger .burger{ display:inline-flex; }
  html.has-burger .pill--cta .pill__text{ display:none; }
  html.has-burger .header-bar{ grid-template-columns:auto 1fr auto; }
  html.has-burger .pill--home{ justify-self:center; }
}

/* ===================== МОБИЛЬНАЯ НАВИГАЦИЯ (ПАНЕЛЬ) ===================== */
.mnav{ position:fixed; inset:0; z-index:100; display:block; }
.mnav[hidden]{ display:none; }
.mnav__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.35); opacity:0; pointer-events:none; transition:opacity .18s ease; }
.mnav__card{ position:absolute; top:1rem; left:1rem; width:min(65vw,22rem); max-height:calc(100dvh - 2rem); overflow:auto; border-radius:1rem; background:#0a0e28; color:#e8eaf3; border:1px solid rgba(255,255,255,.08); box-shadow:0 .75rem 2rem rgba(0,0,0,.35); transform:translateY(-1rem); opacity:0; transition:transform .2s ease, opacity .2s ease; padding:.75rem; }
.menu-open .mnav__card{ transform:translateY(0); opacity:1; margin-top:3.75rem; }
.menu-open .mnav__backdrop{ opacity:1; pointer-events:auto; }

.mnav__lang{ position:relative; margin:.25rem .25rem .5rem; }
.mnav-lang-current{ display:flex; align-items:center; gap:.5rem; width:100%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:.8rem; color:#fff; height:2.75rem; padding:0 .75rem; cursor:pointer; }
.mnav-lang-current .caret{ width:1rem; height:1rem; margin-left:auto; opacity:.85; }
.mnav-lang-pop{ display:none; position:relative; margin-top:.5rem; background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06)); border:1px solid rgba(255,255,255,.08); border-radius:.8rem; padding:.35rem .35rem; }
.mnav__lang.open .mnav-lang-pop{ display:block; }

.mnav .lang-pop__list{ display:grid; gap:0; }
.mnav .lang-pop__list li{ border-bottom:1px solid rgba(255,255,255,.09); }
.mnav .lang-pop__list li:last-child{ border-bottom:0; }
.mnav .lang-pop__list a{ display:grid; grid-template-columns:auto 1fr; align-items:center; gap:.6rem; padding:.8rem .8rem; border-radius:.6rem; color:#cdd1dc; position:relative; }
.mnav .lang-pop__list a:hover{ background:rgba(150,101,224,.08); color:#bfc5d4; }
.mnav .lang-pop__list a.is-active{ color:#a28fe8; font-weight:700; }

.mnav__menu ul{ padding:.25rem; }
.mnav__menu li+li{ margin-top:.25rem; }
.mnav__menu a{ display:block; padding:.9rem 1rem; border-radius:.7rem; color:#e9ecf6; background:transparent; border:1px solid transparent; }
.mnav__menu a:hover, .mnav__menu a:active{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.08); }

@media (max-width:1150px){
  .pill{ height:2.75rem; }
  .pill__icon{ width:1.1rem; height:1.1rem; }
  .pill--home .pill__text{ font-size:.9rem; }
  .pill--cta{ width:2.9rem; padding:0; justify-content:center; }
}

/* --- бургер: переопределения для чужих иконок (сохранён каскад) --- */
.burger{ display:none; align-items:center; justify-content:center; width:4.9rem; height:2.9rem; border-radius:var(--r); background:linear-gradient(180deg,rgba(255,255,255,.1),var(--glass)); border:.0625rem solid var(--stroke); color:var(--text); backdrop-filter:saturate(140%) blur(.4rem); cursor:pointer; line-height:0; }
.burger svg{ display:block; width:1.25rem; height:1.25rem; pointer-events:none; }
.burger .hb-ico--close{ display:none; }
.menu-open .burger .hb-ico--menu{ display:none; }
.menu-open .burger .hb-ico--close{ display:block; }

/* --- слои --- */
.mnav__card{ z-index:2; }
.mnav__backdrop{ z-index:1; }

/* --- контекст для кликов --- */
.mnav__card{ position:relative; }

/* ===================== ФУТЕР (АДАПТИВ ≤680/380) ===================== */
@media (max-width:680px){
  .site-footer{ padding:1.25rem 0; border-top:1px solid var(--stroke); }
  .footer-wrap{ display:grid; grid-template-columns:1fr auto; grid-template-areas:"home  cta" "col1  cta" "col2  cta" "privacy privacy"; gap:1rem 1.25rem; align-items:start; padding:0 1rem; }
  .footer-left, .footer-right{ display:contents; }
  .footer-home{ grid-area:home; display:flex; align-items:center; gap:.6rem; }
  .footer-home .star{ width:1rem; height:1rem; }
  .footer-right .footer-col:nth-of-type(1){ grid-area:col1; }
  .footer-right .footer-col:nth-of-type(2){ grid-area:col2; }
  .footer-col{ display:flex; flex-direction:column; gap:.35rem; }
  .footer-col a{ display:block; padding:.25rem 0; }
  .footer-cta{ grid-area:cta; justify-self:end; display:flex; align-items:center; gap:.5rem; padding:.6rem .9rem; border-radius:.9rem; background:linear-gradient(180deg,rgba(255,255,255,.1),var(--glass)); border:.0625rem solid var(--stroke); backdrop-filter:saturate(140%) blur(.3rem); color:#fff; font-size:.9rem; }
  .footer-cta svg{ width:1.1rem; height:1.1rem; }
  .footer-privacy{ grid-area:privacy; color:var(--muted); font-size:.85rem; margin-top:.25rem; }
}


/* ===================== HERO (ОВЕРРАЙДЫ ПО БРЕЙКПОИНТАМ) ===================== */
@media (max-width:1440px){
  .hero__word--lucky{ left:13vw; top:4vw; width:28vw; }
  .hero__word--jet{ right:18vw; top:4vw; width:16vw; }
  .hero__jet{ width:36vw; }
  .hero::after{ left:-24vw; width:112vw; height:47vw; bottom:4vw; }
}
@media (max-width:1100px){
  .hero__word--lucky{ left:9vw; top:2vw; width:34vw; }
  .hero__word--jet{ right:15vw; top:2vw; width:20vw; }
  .hero__jet{ width:36vw; }
  .hero::after{ left:-37vw; width:160vw; height:54vw; bottom:4.2vw; }
}
@media (max-width:720px){
  .hero__word--lucky{ left:9vw; top:2vw; width:34vw; }
  .hero__word--jet{ right:15vw; top:2vw; width:20vw; }
  .hero__jet{ width:36vw; }
  .hero::after{ left:-61vw; width:158vw; height:67vw; bottom:11.2vw; }
}
@media (max-width:550px){
  .hero__cta{ flex-direction:column; align-items:stretch; gap:.75rem; width:min(100%,22rem); margin-inline:auto; }
  .hero__cta .btn{ width:100%; }
}
@media (max-width:550px){
  .hero__word--lucky{ left:9vw; top:2vw; width:34vw; }
  .hero__word--jet{ right:10vw; top:2vw; width:20vw; }
  .hero__jet{ width:48vw; }
  .hero::after{ left:-109vw; width:163vw; height:108vw; bottom:11.2vw; }
}
@media (max-width:360px){
  .hero__word--lucky{ left:9vw; top:2vw; width:34vw; }
  .hero__word--jet{ right:10vw; top:2vw; width:20vw; }
  .hero__jet{ width:36vw; }
  .hero::after{ left:-179vw; width:234vw; height:142vw; bottom:11.2vw; }
}

/* ===================== РЕЛЬСЫ (ОТКЛ. С ≤1250) ===================== */
@media (max-width:1250px){
  .rail{ display:none !important; }
  .content{ --rail-safe:0px; --guard:0px; }
  .prob .container{ padding-inline:1rem !important; }
}

/* ===================== TABLE T2 — КОМПАКТНЫЙ РЕЖИМ ===================== */
@media (max-width:9999px){
  .t2__row > [role="cell"]{ display:block; }
  .t2__row > [role="cell"]::before{ content:none !important; }
  .t2__head{ display:grid; }
}
@media (max-width:720px){
  .t2{ margin-block:2.2rem; }
  .t2__head{ font-size:clamp(.70rem,.62rem + .9vw,.82rem); padding:.25rem .6rem .5rem; color:var(--muted); }
  .t2__head > div{ line-height:1.15; white-space:normal; }
  .t2__row{ grid-template-columns:minmax(5.2rem,.95fr) minmax(6.6rem,1.05fr) minmax(7.2rem,1.15fr) minmax(6.2rem,1fr) minmax(5.0rem,.85fr); gap:0; padding:.55rem .6rem; border-radius:.9rem; font-size:clamp(.78rem,.7rem + 1vw,.92rem); }
  .t2__row > [role="cell"]{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}
@media (max-width:550px){
  .t2__head{ font-size:clamp(.66rem,.6rem + .8vw,.78rem); padding:.2rem .5rem .4rem; }
  .t2__row{ grid-template-columns:minmax(3.3rem,1fr) minmax(4.6rem,1fr) minmax(4.0rem,1fr) minmax(4.8rem,1fr) minmax(3.4rem,.9fr); padding:.45rem .5rem; font-size:clamp(.72rem,.66rem + .9vw,.86rem); border-radius:.8rem; }
  .prob__btn{ width:75%; min-width:0; }
  .prob__note{ font-size:.75rem; }
}
@media (max-width:360px){
  .t2__head{ font-size:.7rem; }
  .t2__row{ font-size:.78rem; }
}

/* ===================== INTRO (АДАПТИВ ≤800/480) ===================== */
@media (max-width:800px){
  .lj-intro .container{ padding-inline:clamp(1rem,4vw,2rem); }
  .lj-intro{ --img:100%; }
  .lj-intro__grid{ grid-template-columns:1fr; justify-items:stretch; }
  .lj-intro__media{ width:100%; }
  .lj-intro__media img{ width:100% !important; height:auto; display:block; margin-inline:auto; }
}
@media (max-width:480px){
  .lj-intro .container{ padding-inline:clamp(.875rem,4vw,1.25rem); }
}

/* ===================== WHY (АДАПТИВ ≤650/360) ===================== */
@media (max-width:650px){
  .why .container{ padding-inline:clamp(.75rem,4vw,1rem); }
  .why__grid{ grid-template-columns:1fr; gap:.75rem; }
  .why-card{ width:100%; padding:clamp(.9rem,2.8vw,1.1rem); display:flex; flex-direction:column; justify-content:center; align-items:center; border-radius:1rem; gap:.6rem; }
  .why-card__icon{ width:clamp(2.6rem,10vw,3.2rem); height:clamp(2.6rem,10vw,3.2rem); }
  .why-card__title{ font-size:clamp(.95rem,3.6vw,1.05rem); line-height:1.3; text-wrap:balance; text-align:center; max-width:24ch; }
  .why-card__desc{ font-size:clamp(.8rem,3.1vw,.92rem); line-height:1.35; color:var(--muted); text-align:center; max-width:28ch; }
  .why__title{ font-size:clamp(1.1rem,4.4vw,1.35rem); line-height:1.25; margin:0 0 1rem; letter-spacing:0; }
  .why-cta{ padding:4rem .9rem; border-radius:1.25rem; gap:2.8rem; }
  .why-cta__text{ font-size:clamp(1.4rem,4vw,1.2rem); }
  .promo--why{ height:2.6rem; padding:0 .9rem; }
  .why-cta__btn{ width:100%; min-width:0; height:2.8rem; }
  .why-card__icon{ width:6.25rem; height:6.25rem; }
}
@media (max-width:360px){
  .why-card__title{ font-size:clamp(.9rem,4vw,1rem); }
  .why-card__desc{ font-size:clamp(.78rem,3.6vw,.88rem); }
}

/* ===================== ANCHORS / CTA / HOW / REASONS / JOIN / FAQ (≤1000) ===================== */
@media (max-width:1000px){
  .anchors .container, .cta-chance .container, .how .container, .reasons .container, .join .container, .faq .container{ padding-inline:clamp(.75rem,4vw,1rem); }
  .anchors__list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem .8rem; }
  .chip{ height:auto; min-height:2rem; max-width:100%; padding:.5rem .75rem; white-space:normal; overflow-wrap:anywhere; word-break:break-word; justify-content:center; text-align:center; line-height:1.2; box-sizing:border-box; }
}

/* ===================== CTA-CHANCE (ТОЧЕЧНЫЙ ФИКС ≤650) ===================== */
@media (max-width:650px){
  .cta-chance__box::after{ bottom:164px; }
}

/* ===================== SPECS (КОМПАКТ + ПЕРЕНОСЫ) ===================== */
@media (max-width:800px){
  .specs__title{ font-size:clamp(1.1rem,3.8vw,1.35rem); margin-bottom:1.2rem; }
  .specs__panel{ gap:.35rem; }
  .specs__row{ grid-template-columns:minmax(9rem,1fr) minmax(0,auto); column-gap:.6rem; padding:.45rem .75rem; min-height:2.5rem; border-radius:1.25rem; }
  .specs__label{ font-size:clamp(.82rem,2.6vw,.92rem); }
  .specs__value{ font-size:clamp(.88rem,2.9vw,1rem); line-height:1.25; white-space:normal; overflow-wrap:anywhere; text-align:right; max-width:100%; }
}
@media (max-width:480px){
  .specs .container{ padding-inline:1rem; }
  .specs__row{ grid-template-columns:minmax(8.2rem,1fr) minmax(0,auto); padding:.4rem .65rem; min-height:2.3rem; border-radius:1rem; }
  .specs__label{ font-size:clamp(.8rem,3.2vw,.9rem); }
  .specs__value{ font-size:clamp(.86rem,3.6vw,.98rem); }
}
@media (max-width:360px){
  .specs__row{ grid-template-columns:140px 140px; column-gap:.5rem; align-items:start; min-height:0; }
  .specs .container{ padding-inline:.75rem; }
  .specs__label, .specs__value{ white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
  .specs__label{ font-size:.8rem; }
  .specs__value{ font-size:.88rem; }
}

/* ===================== SPECS (ПРАВАЯ/ЛЕВАЯ — ПЕРЕНОСЫ) ===================== */
@media (max-width:800px){
  .specs__label{ white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
  .specs__value{ white-space:normal; overflow-wrap:anywhere; word-break:break-word; text-align:right; }
}
@media (max-width:480px){
  .specs__row{ grid-template-columns:minmax(7.5rem,1fr) minmax(0,auto); column-gap:.55rem; }
}

/* ===================== JOIN (СЕТКА И ОТСТУПЫ) ===================== */
@media (max-width:1050px){
  .join__grid{ grid-template-columns:1fr !important; grid-auto-flow:row; gap:var(--join-gap,1rem); }
  .join__grid > *{ min-width:0; }
}
@media (max-width:650px){
  .join .why-cta__row{ gap:.9rem; justify-content:center; text-align:center; margin-bottom:.9rem; }
  .join .cta-chance__btns{ display:flex; flex-direction:column; align-items:stretch; gap:.9rem; }
  .join .why-cta__btn{ width:100%; min-width:0; }
  .join .cta-chance__btns .why-cta__btn.btn--fire{ width:clamp(13.5rem,78vw,15rem) !important; margin-inline:auto; }
  .join .cta-chance__btns .why-cta__btn.btn--cloud{ width:clamp(11.5rem,68vw,13rem) !important; margin-inline:auto; }
}
