/* ============ iOS 26 style language toggle (header) ============ */
.header__lang {
  position: relative;
  isolation: isolate;
  background: rgba(224, 208, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 16px rgba(0, 0, 0, 0.25);
}

/* sliding thumb, driven by JS (lang.js) with measured pixels */
.header__lang .lang-thumb {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 0;
  width: 50%;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.42s cubic-bezier(0.32, 1.45, 0.4, 1),
    width 0.42s cubic-bezier(0.32, 1.45, 0.4, 1);
  pointer-events: none;
  overflow: hidden;
}

/* liquid-glass specular sheen on the thumb */
.header__lang .lang-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0) 55%
  );
}

.header__lang-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 2.6rem;
  text-align: center;
  background: transparent;
  box-shadow: none;
  color: #c3b0e0;
}

.header__lang-btn.is-active {
  background: transparent;
  box-shadow: none;
  color: #fff;
}

/* ============ header brand: always show "Synergy" next to the logo ============ */
/* bundled CSS hides it on desktop (display:none, mobile-only centered) */
.header__brand {
  display: block;
  white-space: nowrap;
  flex-shrink: 0;
}

/* tight desktop widths: icon only, so the auth button always fits.
   (mobile <=820px keeps its centered brand from the main CSS) */
@media (max-width: 1150px) and (min-width: 821px) {
  .header__brand {
    display: none;
  }
  .header__inner {
    gap: 0.9rem;
  }
}

/* desktop: compact nav so brand + auth always fit the capped header pill */
@media (min-width: 821px) {
  .header__link {
    padding: 0.4rem 0.45rem;
    gap: 0.3rem;
  }
  .header__inner {
    gap: 1.2rem;
  }
  .header__auth {
    padding: 0.55rem 1.05rem;
  }
  .header__lang-btn {
    min-width: 2.3rem;
    padding: 0.28rem 0.45rem;
  }
}

/* <=1180px: burger menu (5 CYR items no longer fit) */
@media (max-width: 1180px) {
  .header__inner {
    gap: 0;
    padding: 0 0.9rem;
    justify-content: space-between;
  }
  .header__burger {
    display: flex;
    margin-left: 0;
  }
  .header__inner.is-open .header__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header__inner.is-open .header__burger span:nth-child(2) {
    opacity: 0;
  }
  .header__inner.is-open .header__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .header__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(170, 140, 220, 0.22);
    background: #1d14368c;
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    box-shadow: 0 20px 50px #0b051873;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .header__nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .header__links {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
  }
  .header__link {
    color: #d9cdef;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .header__link:hover {
    background: #e0d0ff0f;
    transform: none;
  }
  .header__actions {
    margin-left: 0;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.6rem;
    padding-top: 0.6rem;
    margin-top: 0.2rem;
    border-top: 1px solid rgba(170, 140, 220, 0.2);
  }
  .header__auth {
    margin-left: 0;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

/* ============ purple accent: white text on solid accent controls ============ */
.btn--primary,
.czaliv__btn--confirm,
.cab__action--primary,
.prod-card__tag,
.header__auth,
.adm__pager-num.is-active,
.header__lang-btn.is-active,
.adm__lang-btn.is-active {
  color: #ffffff;
}

/* ============ hero stats: labels in beige accent, not gray ============ */
.stat__label {
  color: var(--accent);
}

/* ============ eyebrows: beige accent so they pop, not dull gray ============ */
.beyond__eyebrow,
.advantages__eyebrow,
.prod__eyebrow {
  color: var(--accent);
}

/* ============ light differentiation pass (same look, own silhouette) ============ */
.btn--primary,
.header__auth,
.cab__action--primary,
.czaliv__btn--confirm {
  border-radius: 10px;
}

.header__inner {
  border-radius: 26px;
}

/* CTA: left-aligned composition instead of centered */
.cta {
  align-items: flex-start;
  text-align: left;
}

.hero__title {
  letter-spacing: -1px;
}

/* ============ yin-yang hierarchy: bright / accent / calm ============ */
/* bright white: titles + CTA line */
.cta__eyebrow {
  color: #f0e9fb;
}
/* calm secondary: body descriptions (site's own secondary tone) */
.hero__desc,
.advantages__sub,
.adv-card__text,
.cta__desc {
  color: #b9a9d6;
}




/* ============ admin toggle: same spring ============ */
.adm__lang-slider {
  transition: transform 0.42s cubic-bezier(0.32, 1.45, 0.4, 1);
}

/* ============ language swap: iOS-style morph in place, no reload ============ */
/* overrides the bundled `.i18n-root.is-lang-swap{animation:none}` */
/* single phase: no dimming, no zoom — just a soft morph pulse in place */
.i18n-root.is-lang-swap {
  animation: skLangSwap 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 50% 0;
}

@keyframes skLangSwap {
  0% {
    transform: translateY(0);
    filter: blur(0);
  }
  35% {
    transform: translateY(3px);
    filter: blur(2px);
  }
  100% {
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .i18n-root.is-lang-swap {
    animation: none;
  }
  .header__lang .lang-thumb,
  .adm__lang-slider {
    transition: none;
  }
}

/* ============ vignette off: only the fullscreen edge-darkening ============ */
body:before {
  background: rgba(10, 4, 22, 0.42);
}

/* ============ logo image: skycore sizes everywhere (no giant marks) ============ */
.sk-logo {
  height: 22px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.5));
}

.header__logo .sk-logo {
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(160, 92, 232, 0.9))
    drop-shadow(0 0 22px rgba(122, 47, 196, 0.6));
}

.auth__logo .sk-logo {
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(160, 92, 232, 0.9))
    drop-shadow(0 0 22px rgba(122, 47, 196, 0.6));
}

.footer__logo .sk-logo {
  height: 22px;
}

.adm__brand .sk-logo {
  height: 20px;
}

/* ============ header brand: seamless white<->beige shimmer, infinite ============ */
.header__brand {
  background: repeating-linear-gradient(
    90deg,
    #ffffff 0px,
    var(--accent) 45px,
    #ffffff 90px
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: horizonShimmer 1.4s linear infinite;
}

@keyframes horizonShimmer {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 90px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header__brand {
    animation: none;
  }
}

/* ============ mobile: background-attachment:fixed is broken on phones ============ */
@media (pointer: coarse), (max-width: 820px) {
  body,
  .auth,
  .prod {
    background-attachment: scroll;
  }
}

/* ============ hCaptcha: visible checkbox, seams fitted ============ */
.auth__captcha {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  min-height: 78px;
  max-width: 100%;
  background: #241a3c;
  border: 1px solid rgba(224, 208, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  overflow: hidden;
}

.auth__captcha iframe {
  border: none !important;
  border-radius: 8px;
  display: block;
  background: transparent;
}

/* ===== FunPay removed: pay page forced to SBP only ===== */
.pay__methods { display: none !important; }
.pay__hint a[href*="funpay"] { display: none !important; }

/* ============ smart header: wider for guest (auth), compact for user (cabinet) ============ */
.header {
  width: min(1120px, calc(100% - 32px));
  transition: width 0.35s cubic-bezier(0.32, 1, 0.36, 1);
}
.header:has(.header__auth) {
  width: min(1120px, calc(100% - 32px));
}
.header:has(.header__user) {
  width: min(1080px, calc(100% - 32px));
}

/* safety: if a visible checkbox ever renders (stale cache), fit narrow screens */
@media (max-width: 420px) {
  .auth__captcha {
    width: fit-content;
    height: auto;
  }
  .auth__captcha iframe {
    max-width: 100%;
    transform: scale(0.85);
    transform-origin: top center;
  }
}
