/* ============================================================
   BYNEXVPN — style.css
   Общая база (используется index.html и purchase.html):
   токены, reset, кнопки, логотип.
   Шапка и фон главной — в стиле личного кабинета.
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050506;
  --bg-soft: #0a0a0c;
  --card: #101014;
  --card-2: #141419;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #8b8b95;
  --muted-2: #63636d;
  --green: #35d07f;
  --radius: 18px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-padding-top: 96px;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Фон главной (как в личном кабинете) ---------- */

body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(820px 480px at 50% -6%, rgba(96, 130, 255, 0.16), transparent 62%),
    radial-gradient(680px 460px at 88% 108%, rgba(0, 201, 255, 0.10), transparent 60%),
    radial-gradient(520px 380px at 8% 60%, rgba(124, 92, 255, 0.08), transparent 65%),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NjAiIGhlaWdodD0iNzYwIiB2aWV3Qm94PSIwIDAgNzYwIDc2MCI+CjxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLW9wYWNpdHk9IjAuMDU1IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj4KPHBhdGggZD0iTS00MCA5MCBDIDE1MCAyMCAyNzAgMTkwIDQ0MCAxMTAgUyA2NzAgNDAgODIwIDE3MCIvPgo8cGF0aCBkPSJNLTQwIDI1MCBDIDE5MCAzNDAgMzMwIDE2MCA0ODAgMjgwIFMgNjUwIDM2MCA4MjAgMjQwIi8+CjxwYXRoIGQ9Ik0tNDAgNDMwIEMgMTEwIDUyMCAzMTAgMzUwIDQ3MCA0NjAgUyA2OTAgNTQwIDgyMCA0MTAiLz4KPHBhdGggZD0iTS00MCA2MTAgQyAyMTAgNzAwIDM3MCA1MzAgNTMwIDY0MCBTIDcxMCA2OTAgODIwIDYwMCIvPgo8cGF0aCBkPSJNMTAwIC00MCBDIDQwIDE3MCAyMjAgMzEwIDExMCA0OTAgUyA1MCA2NTAgMTkwIDgyMCIvPgo8cGF0aCBkPSJNMzUwIC00MCBDIDQzMCAyMDAgMjQwIDMzMCAzNzAgNTIwIFMgNDQwIDY4MCAzMDAgODIwIi8+CjxwYXRoIGQ9Ik02MTAgLTQwIEMgNTQwIDE4MCA3MTAgMzEwIDU3MCA1MDAgUyA2NzAgNjkwIDcyMCA4MjAiLz4KPHBhdGggZD0iTS00MCAxNzAgQyAyNDAgMTMwIDQwMCAzMjAgNTgwIDIyMCBTIDc3MCAxNjAgODIwIDM2MCIvPgo8cGF0aCBkPSJNLTQwIDUyMCBDIDI2MCA0NzAgNDMwIDY1MCA2MTAgNTQwIFMgNzkwIDUwMCA4MjAgNzAwIi8+CjwvZz4KPC9zdmc+");
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: #08080a;
}

.btn--white:hover {
  background: #e9e9ec;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: #fff;
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: #fff;
  padding: 11px 22px;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  padding: 11px 22px;
  font-size: 13px;
}

.btn--lg {
  padding: 17px 30px;
  font-size: 15px;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo__img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.logo__text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- Шапка (как в личном кабинете) ---------- */

.cab-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 24px 0;
  pointer-events: none;
}

.cab-header__bar {
  position: fixed;
  top: 14px;
  left: 50%;
  width: min(1200px, calc(100vw - 48px));
  height: 66px;
  padding: 0 20px 0 26px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    top 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    left 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    width 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    height 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    padding 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    gap 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    border-radius 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    flex-direction 0s linear 0.22s;
}

/* Скроллим вниз — шапка «уезжает» вправо узкой иконочной панелью */

.cab-header.is-docked .cab-header__bar {
  top: 50%;
  left: min(calc(50% + min(600px, 50vw) + 20px), calc(100vw - 74px));
  width: 60px;
  height: 370px;
  padding: 16px 10px;
  gap: 12px;
  border-radius: 999px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(0, -50%);
}

.cab-header.bx-morphing .cab-header__bar > * {
  animation: bx-dock-swap 0.45s ease;
}

@keyframes bx-dock-swap {
  0% { opacity: 1; }
  45%, 55% { opacity: 0; }
  100% { opacity: 1; }
}

.cab-header.is-docked .logo {
  justify-content: center;
}

.cab-header.is-docked .logo__text {
  display: none;
}

.cab-header.is-docked .cab-header__nav {
  width: 40px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cab-header.is-docked .cab-header__nav a {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.cab-header.is-docked .cab-header__nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .cab-header.is-docked .cab-header__nav a:hover {
  background: rgba(10, 10, 12, 0.05);
}

.cab-header.is-docked .nav-ico {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.cab-header.is-docked .cab-header__nav a:hover .nav-ico {
  color: #fff;
}

[data-theme="light"] .cab-header.is-docked .cab-header__nav a:hover .nav-ico {
  color: #0a0a0c;
}
[data-theme="light"] .cab-header.is-docked .cab-header__nav a.is-active .nav-ico {
  color: #0a0a0c;
}

.cab-header.is-docked .cab-header__nav a.is-active .nav-ico {
  color: #fff;
}

.cab-header.is-docked .btn {
  position: relative;
  order: 3;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cab-header.is-docked .theme-toggle {
  order: 4;
  margin: 0;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  box-sizing: border-box;
  border-radius: 999px;
}

/* Текст пункта красиво выезжает при наведении на его иконку */

.cab-header.is-docked .nav-txt {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(14px, -50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: rgba(10, 10, 12, 0.94);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition: opacity 0.2s ease 0.12s, transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1) 0.12s;
}

.cab-header.is-docked .cab-header__nav a:hover .nav-txt,
.cab-header.is-docked .btn:hover .nav-txt {
  opacity: 1;
  transform: translate(0, -50%);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}

[data-theme="light"] .cab-header.is-docked .nav-txt {
  background: rgba(255, 255, 255, 0.96);
  color: #0a0a0c;
}

/* Шапка больше не в потоке — компенсируем её высоту сверху */

body:has(.cab-header) {
  padding-top: 80px;
}

.cab-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  margin-right: 8px;
}

.cab-header__nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.cab-header__nav a:hover {
  color: #fff;
}

.cab-header__nav .nav-ico {
  display: none;
}

/* ---------- Первый блок: слоган + анимация ---------- */

.hero {
  padding: 40px 24px 24px;
}

.hero__wrap,
.features__wrap,
.network__wrap,
.pricing__wrap,
.faq__wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__panel,
.features__panel,
.network__panel,
.pricing__panel,
.faq__panel {
  padding: 56px 52px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, 0.9);
}

.features__panel,
.network__panel,
.pricing__panel,
.faq__panel {
  padding: 36px 40px 34px;
}

.hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  padding: 56px 52px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, 0.9);
}

.hero__content {
  animation: hero-in 0.8s ease both 0.05s;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.hero__chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  animation: chip-blink 1.8s ease-in-out infinite;
}

@keyframes chip-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero__title {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__brand {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  padding-bottom: 16px;
}

.hero__brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.hero__slogan {
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(17px, 1.9vw, 24px);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero__sub {
  margin-top: 20px;
  max-width: 540px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}

.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Мокап-карточка приложения в стиле ЛК */

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card {
  width: min(40vw, 400px);
  padding: 26px 24px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 40px 90px -50px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: card-in 0.9s ease both 0.2s;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
}

.app-card__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  animation: chip-blink 1.8s ease-in-out infinite;
}

.app-card__timer {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.app-card__power {
  width: 96px;
  height: 96px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.11));
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow:
    0 0 50px -10px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: power-breathe 4s ease-in-out infinite;
}

.app-card__power svg {
  width: 40px;
  height: 40px;
}

@keyframes power-breathe {
  0%, 100% { box-shadow: 0 0 44px -12px rgba(255, 255, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 66px -8px rgba(255, 255, 255, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

.app-card__hint {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.app-card__server {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.app-card__server img {
  width: 30px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
}

.app-card__server-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-card__server-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card__server-ping {
  font-size: 12.5px;
  color: var(--muted);
}

.app-card__server-switch {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-card__server-switch:hover {
  background: #fff;
  color: #08080a;
}

.app-card__stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.app-card__stat {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-card__stat-label {
  font-size: 11.5px;
  color: var(--muted-2);
}

.app-card__stat-value {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.app-card__stat-value b {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.app-card__graph {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 16px;
}

.app-card__graph-line {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: graph-draw 2.4s ease forwards 0.7s;
}

@keyframes graph-draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Второй блок: четыре карточки ---------- */

.features {
  padding: 0 24px 24px;
}

.features__head {
  max-width: 720px;
}

.features__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.features__title span {
  color: var(--muted);
}

.features__sub {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.features__grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  background: var(--card-2);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  margin-top: 3px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

.feature-card__link {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.feature-card__link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.feature-card__link:hover svg {
  transform: translateX(5px);
}

.feature-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Появление при скролле */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Третий блок: состояние сети ---------- */

.network {
  padding: 0 24px 24px;
}

.network__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.network__head-text {
  min-width: 0;
}

.network__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.network__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  animation: chip-blink 1.8s ease-in-out infinite;
}

.network__status.is-warn {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.network__status.is-warn i {
  animation-duration: 0.7s;
  box-shadow: none;
  opacity: 0.65;
}

.network__stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.net-stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.net-stat__label {
  font-size: 12.5px;
  color: var(--muted-2);
}

.net-stat__value {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.network__grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 10px;
}

.net-loc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  min-width: 0;
  transition: border-color 0.2s ease;
}

.net-loc:hover {
  border-color: var(--line);
}

.net-loc__flag {
  flex-shrink: 0;
  display: inline-flex;
}

.net-loc__flag img {
  width: 24px;
  height: 17px;
  object-fit: cover;
  border-radius: 3px;
  opacity: 0.78;
}

.net-loc__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.net-loc__count {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.net-loc__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.net-loc__dot.is-warn {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.net-loc[hidden] {
  display: none;
}

.network__more {
  margin-top: 14px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.network__more:hover {
  background: #fff;
  color: #08080a;
}

.net-empty {
  grid-column: 1 / -1;
  padding: 18px 4px 4px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Четвёртый блок: тарифы ---------- */

.pricing {
  padding: 0 24px 24px;
}

.pricing__head {
  max-width: 720px;
}

.pricing__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.price-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.price-card--featured {
  border-color: var(--line-strong);
  background: var(--card-2);
}

.price-card__tag {
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.price-card__title {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
}

.price-card__price b {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.price-card__price span {
  font-size: 14.5px;
  color: var(--muted);
}

.price-card__note {
  font-size: 13px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.price-card__list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.price-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.price-card__btn {
  margin-top: auto;
  width: 100%;
}

/* Плашка пробного периода */

.trial-plate {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.trial-plate__text {
  min-width: 0;
}

.trial-plate__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trial-plate__desc {
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

.trial-plate__desc b {
  font-weight: 700;
  color: #fff;
}

.trial-plate__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Пятый блок: частые вопросы ---------- */

.faq {
  padding: 0 24px 24px;
}

.faq__head {
  max-width: 720px;
}

.faq__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item[open] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-item__icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.faq-item__icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-item__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item,
.faq-item::details-content {
  interpolate-size: allow-keywords;
}

.faq-item::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.4s cubic-bezier(0.3, 0.7, 0.2, 1),
    content-visibility 0.4s allow-discrete;
}

.faq-item[open]::details-content {
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content {
    transition: none;
  }
}

.faq-item__a {
  padding: 0 22px 18px;
  max-width: 840px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Футер ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-footer__muted {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.site-footer__nav a:hover {
  color: #fff;
}

.site-footer__links {
  font-size: 14px;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  max-width: var(--container);
  margin: 22px auto 0;
  padding: 18px 24px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .app-card,
  .app-card__power,
  .app-card__status i,
  .app-card__graph-line,
  .hero__chip i {
    animation: none;
  }

  .app-card__graph-line {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1190px) {
  .pricing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .cab-header__nav {
    display: none;
  }

  .cab-header {
    padding-top: 10px;
  }

  .hero {
    padding: 28px 24px 24px;
  }

  .hero__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 40px 30px;
    border-radius: 22px;
  }

  .features__panel,
  .network__panel,
  .pricing__panel,
  .faq__panel {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .network__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .network__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__visual {
    order: -1;
  }

  .app-card {
    width: min(84vw, 400px);
  }

  .feature-card {
    padding: 20px 20px 18px;
  }

  .trial-plate {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}

@media (max-width: 560px) {
  .hero__panel {
    padding: 30px 20px;
  }

  .features__panel,
  .network__panel,
  .pricing__panel,
  .faq__panel {
    padding: 24px 18px;
  }

  .net-stat {
    padding: 12px 13px;
  }

  .net-stat__value {
    font-size: 17px;
  }

  .network__grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }

  .features__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .trial-plate__cta {
    width: 100%;
    flex-direction: column;
  }

  .trial-plate__cta .btn {
    width: 100%;
  }

  .faq-item__q {
    padding: 15px 16px;
    font-size: 15px;
    gap: 12px;
  }

  .faq-item__a {
    padding: 0 16px 16px;
    font-size: 14.5px;
  }

  .site-footer__inner {
    padding: 24px 18px 0;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 18px;
    padding: 16px 18px 24px;
  }
}

/* ============ BYNEXVPN — светлая тема ============ */
[data-theme="light"] {
  --bg: #f2f3f5;
  --bg-soft: #e9eaee;
  --card: #ffffff;
  --card-2: #f7f8fa;
  --line: rgba(10, 10, 12, 0.09);
  --line-strong: rgba(10, 10, 12, 0.16);
  --text: #0a0a0c;
  --muted: #5b5b65;
  --muted-2: #8b8b95;
  --green: #16a34a;
}

[data-theme="light"] .btn--white {
  background: var(--text);
  color: var(--bg);
}

[data-theme="light"] .btn--white:hover {
  background: #2a2a30;
}

[data-theme="light"] .btn--outline {
  background: rgba(10, 10, 12, 0.02);
  color: var(--text);
}

[data-theme="light"] .btn--outline:hover {
  border-color: rgba(10, 10, 12, 0.35);
  background: rgba(10, 10, 12, 0.05);
}

[data-theme="light"] .btn--ghost {
  color: var(--text);
}

[data-theme="light"] .btn--ghost:hover {
  background: rgba(10, 10, 12, 0.05);
}

[data-theme="light"] .cab-header__bar {
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .cab-header__nav a:hover {
  color: var(--text);
}

[data-theme="light"] .hero__panel,
[data-theme="light"] .features__panel,
[data-theme="light"] .network__panel,
[data-theme="light"] .pricing__panel,
[data-theme="light"] .faq__panel {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px -50px rgba(10, 10, 30, 0.4);
}

[data-theme="light"] .hero__chip {
  background: rgba(10, 10, 12, 0.05);
  color: rgba(10, 10, 12, 0.85);
}

[data-theme="light"] .hero__chip i {
  background: var(--green);
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.7);
}

[data-theme="light"] .hero__brand::after {
  background: linear-gradient(90deg, var(--text), rgba(10, 10, 12, 0));
}

[data-theme="light"] .hero__slogan {
  color: rgba(10, 10, 12, 0.62);
}

[data-theme="light"] .app-card {
  box-shadow: 0 40px 90px -50px rgba(10, 10, 30, 0.5), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .app-card__status {
  background: rgba(10, 10, 12, 0.05);
}

[data-theme="light"] .app-card__status i,
[data-theme="light"] .network__status i {
  background: var(--green);
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.7);
}

[data-theme="light"] .app-card__power {
  background: linear-gradient(150deg, rgba(10, 10, 12, 0.1), rgba(10, 10, 12, 0.03) 55%, rgba(10, 10, 12, 0.07));
  border-color: rgba(10, 10, 12, 0.22);
  color: var(--text);
  box-shadow: 0 0 50px -10px rgba(10, 10, 12, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation-name: powerPulseLight;
}

@keyframes powerPulseLight {

  0%,
  100% {
    box-shadow: 0 0 44px -12px rgba(10, 10, 12, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  50% {
    box-shadow: 0 0 66px -8px rgba(10, 10, 12, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

[data-theme="light"] .app-card__server {
  background: rgba(10, 10, 12, 0.04);
}

[data-theme="light"] .app-card__server-switch {
  color: rgba(10, 10, 12, 0.7);
}

[data-theme="light"] .app-card__server-switch:hover {
  background: var(--text);
  color: var(--bg);
}

[data-theme="light"] .app-card__stat {
  background: rgba(10, 10, 12, 0.04);
}

[data-theme="light"] .app-card__stat-value b {
  color: var(--text);
}

[data-theme="light"] .app-card__graph-line {
  stroke: rgba(10, 10, 12, 0.75);
  filter: drop-shadow(0 0 6px rgba(10, 10, 12, 0.25));
}

[data-theme="light"] .feature-card__icon {
  background: rgba(10, 10, 12, 0.05);
  color: var(--text);
}

[data-theme="light"] .feature-card__link {
  color: var(--text);
}

[data-theme="light"] .network__status {
  background: rgba(10, 10, 12, 0.05);
}

[data-theme="light"] .network__status.is-warn {
  border-color: rgba(245, 166, 35, 0.55);
  background: rgba(245, 166, 35, 0.12);
}

[data-theme="light"] .net-stat {
  background: rgba(10, 10, 12, 0.04);
}

[data-theme="light"] .net-stat__value b {
  color: var(--text);
}

[data-theme="light"] .net-loc {
  border-color: rgba(10, 10, 12, 0.07);
  background: rgba(10, 10, 12, 0.03);
}

[data-theme="light"] .net-loc__dot {
  background: rgba(10, 10, 12, 0.45);
}

[data-theme="light"] .net-loc__dot.is-warn {
  border-color: rgba(245, 166, 35, 0.7);
}

[data-theme="light"] .network__more {
  color: rgba(10, 10, 12, 0.8);
}

[data-theme="light"] .network__more:hover {
  background: var(--text);
  color: var(--bg);
}

[data-theme="light"] .price-card__tag {
  background: rgba(10, 10, 12, 0.05);
}

[data-theme="light"] .price-card__price b {
  color: var(--text);
}

[data-theme="light"] .price-card__list li::before {
  color: var(--green);
}

[data-theme="light"] .trial-plate {
  background: rgba(10, 10, 12, 0.05);
}

[data-theme="light"] .trial-plate__desc b {
  color: var(--text);
}

[data-theme="light"] .faq-item {
  background: rgba(10, 10, 12, 0.03);
}

[data-theme="light"] .faq-item[open] {
  background: rgba(10, 10, 12, 0.055);
}

[data-theme="light"] .faq-item__icon::before,
[data-theme="light"] .faq-item__icon::after {
  background: rgba(10, 10, 12, 0.7);
}

[data-theme="light"] .site-footer__nav a:hover,
[data-theme="light"] .site-footer__links a:hover {
  color: var(--text);
}

/* ====== Light theme fix v2: сеть, статистика, декоративные линии ====== */
[data-theme="light"] body.home::before {
  background:
    radial-gradient(820px 480px at 50% -6%, rgba(96, 130, 255, 0.16), transparent 62%),
    radial-gradient(680px 460px at 88% 108%, rgba(0, 201, 255, 0.10), transparent 60%),
    radial-gradient(520px 380px at 8% 60%, rgba(124, 92, 255, 0.08), transparent 65%),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NjAiIGhlaWdodD0iNzYwIiB2aWV3Qm94PSIwIDAgNzYwIDc2MCI+CjxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzBhMGEwYyIgc3Ryb2tlLW9wYWNpdHk9IjAuMDciIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiPgo8cGF0aCBkPSJNLTQwIDkwIEMgMTUwIDIwIDI3MCAxOTAgNDQwIDExMCBTIDY3MCA0MCA4MjAgMTcwIi8+CjxwYXRoIGQ9Ik0tNDAgMjUwIEMgMTkwIDM0MCAzMzAgMTYwIDQ4MCAyODAgUyA2NTAgMzYwIDgyMCAyNDAiLz4KPHBhdGggZD0iTS00MCA0MzAgQyAxMTAgNTIwIDMxMCAzNTAgNDcwIDQ2MCBTIDY5MCA1NDAgODIwIDQxMCIvPgo8cGF0aCBkPSJNLTQwIDYxMCBDIDIxMCA3MDAgMzcwIDUzMCA1MzAgNjQwIFMgNzEwIDY5MCA4MjAgNjAwIi8+CjxwYXRoIGQ9Ik0xMDAgLTQwIEMgNDAgMTcwIDIyMCAzMTAgMTEwIDQ5MCBTIDUwIDY1MCAxOTAgODIwIi8+CjxwYXRoIGQ9Ik0zNTAgLTQwIEMgNDMwIDIwMCAyNDAgMzMwIDM3MCA1MjAgUyA0NDAgNjgwIDMwMCA4MjAiLz4KPHBhdGggZD0iTTYxMCAtNDAgQyA1NDAgMTgwIDcxMCAzMTAgNTcwIDUwMCBTIDY3MCA2OTAgNzIwIDgyMCIvPgo8cGF0aCBkPSJNLTQwIDE3MCBDIDI0MCAxMzAgNDAwIDMyMCA1ODAgMjIwIFMgNzcwIDE2MCA4MjAgMzYwIi8+CjxwYXRoIGQ9Ik0tNDAgNTIwIEMgMjYwIDQ3MCA0MzAgNjUwIDYxMCA1NDAgUyA3OTAgNTAwIDgyMCA3MDAiLz4KPC9nPgo8L3N2Zz4=");
}

[data-theme="light"] .net-stat {
  background: #ffffff;
  border-color: rgba(10, 10, 12, 0.1);
  box-shadow: 0 14px 34px -28px rgba(10, 10, 40, 0.45);
}

[data-theme="light"] .net-stat__value {
  color: var(--text);
}

[data-theme="light"] .net-stat__label {
  color: var(--muted);
}

[data-theme="light"] .net-loc {
  background: #ffffff;
  border-color: rgba(10, 10, 12, 0.1);
  box-shadow: 0 10px 26px -24px rgba(10, 10, 40, 0.4);
}

[data-theme="light"] .net-loc:hover {
  border-color: rgba(10, 10, 12, 0.22);
}

[data-theme="light"] .net-loc__flag img {
  opacity: 1;
}

[data-theme="light"] .net-loc__name {
  color: var(--text);
}

[data-theme="light"] .net-loc__count {
  color: var(--muted);
}

[data-theme="light"] .net-loc__dot {
  background: var(--green);
}

[data-theme="light"] .net-loc__dot.is-warn {
  background: transparent;
  border-color: rgba(245, 166, 35, 0.8);
}

/* ============ Анимация якорной навигации ============ */
/* Страница приехала к блоку — блок плавно отъезжает вбок,
   чуть задерживается и плавно возвращается, подсвечивая рамкой */

.hero__panel,
.features__panel,
.network__panel,
.pricing__panel,
.faq__panel {
  outline: 2px solid transparent;
  outline-offset: 6px;
}

@keyframes bx-nudge {
  0% {
    transform: translateX(0);
    animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
  }
  34% {
    transform: translateX(var(--bx-nudge-x, 56px));
    animation-timing-function: ease-in-out;
  }
  46% {
    transform: translateX(var(--bx-nudge-x, 56px));
    animation-timing-function: cubic-bezier(0.3, 0.6, 0.3, 1);
  }
  100% {
    transform: translateX(0);
  }
}

.bx-nudge {
  animation: bx-nudge 1.5s;
}

@keyframes bx-panel-ring {
  0%, 12%, 100% { outline-color: transparent; }
  32%, 64% { outline-color: rgba(96, 130, 255, 0.55); }
}

.bx-nudge .hero__panel,
.bx-nudge .features__panel,
.bx-nudge .network__panel,
.bx-nudge .pricing__panel,
.bx-nudge .faq__panel {
  animation: bx-panel-ring 1.5s ease;
}

/* ============ Красивый переход между страницами ============ */
/* Главная ↔ ЛК: старая страница уезжает вверх, новая въезжает снизу,
   логотип «перелетает» между шапками */

@view-transition {
  navigation: auto;
}

@keyframes bx-page-out {
  to { opacity: 0; transform: translateY(-40px) scale(0.98); }
}

@keyframes bx-page-in {
  from { opacity: 0; transform: translateY(52px) scale(1.015); }
}

::view-transition-old(root) {
  animation: bx-page-out 0.35s cubic-bezier(0.4, 0, 0.7, 0.4) both;
}

::view-transition-new(root) {
  animation: bx-page-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.logo {
  view-transition-name: bx-logo;
}

/* Запасной вариант: браузеры без переходов между страницами */

@keyframes bx-page-fade {
  from { opacity: 0; transform: translateY(30px); }
}

.bx-no-vt body {
  animation: bx-page-fade 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html.bx-leaving body {
  animation: none;
  opacity: 0;
  transform: translateY(-26px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== Mobile-only layout: desktop remains unchanged ===== */
@media (max-width: 760px) {
  body.home {
    padding-bottom: 100px;
  }

  .cab-header {
    position: static;
    height: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
  }

  .cab-header__bar {
    display: contents;
  }

  .cab-header .logo,
  .cab-header #lkBtn {
    display: none;
  }

  .cab-header__nav {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(440px, calc(100% - 28px));
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 8px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(17, 18, 23, .88);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.07);
    pointer-events: auto;
  }

  .cab-header__nav a {
    min-width: 0;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .cab-header__nav a:hover,
  .cab-header__nav a:focus-visible {
    color: var(--text);
    background: rgba(255,255,255,.07);
  }

  .cab-header__nav .nav-ico {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
  }

  .hero__visual {
    display: none !important;
  }

  .hero__panel {
    display: block;
  }

  .features__grid,
  .pricing__grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 13px;
    margin-right: -18px;
    padding: 2px 18px 16px 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .features__grid::-webkit-scrollbar,
  .pricing__grid::-webkit-scrollbar {
    display: none;
  }

  .features__grid > .feature-card {
    flex: 0 0 min(82vw, 330px);
    min-width: 0;
    scroll-snap-align: start;
  }

  .pricing__grid > .price-card {
    flex: 0 0 min(82vw, 330px);
    min-width: 0;
    scroll-snap-align: start;
  }

  .features__panel,
  .pricing__panel {
    overflow: hidden;
  }

  #advantages,
  #network,
  #pricing,
  #faq,
  #top {
    scroll-margin-top: 18px;
  }

  [data-theme="light"] .cab-header__nav {
    background: rgba(250, 250, 252, .95);
    border-color: rgba(15, 20, 25, .10);
    box-shadow: 0 10px 30px rgba(20, 24, 40, .14), inset 0 1px 0 rgba(255,255,255,.9);
  }

  [data-theme="light"] .cab-header__nav a {
    color: #777b83;
  }

  [data-theme="light"] .cab-header__nav a.is-active {
    color: #08080a;
    background: rgba(10, 10, 12, .08);
    box-shadow: inset 0 0 0 1px rgba(10, 10, 12, .06);
  }

  [data-theme="light"] .cab-header__nav a:hover,
  [data-theme="light"] .cab-header__nav a:focus-visible {
    background: rgba(10,10,12,.06);
  }

  /* Мобильная капсула: форма из референса, нейтральный акцент */
  .cab-header__nav {
    width: min(340px, calc(100% - 44px));
    min-height: 58px;
    padding: 6px;
    gap: 4px;
    justify-content: space-between;
    background: rgba(10, 10, 12, .94);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .38),
      inset 0 1px 0 rgba(255, 255, 255, .055);
  }

  .cab-header__nav a {
    flex: 1 1 0;
    width: auto;
    height: 44px;
    min-width: 0;
    padding: 0;
    gap: 0;
    color: #85858e;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }

  .cab-header__nav .nav-txt {
    display: none;
  }

  .cab-header__nav .nav-ico {
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
  }

  .cab-header__nav a.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  }

  .cab-header__nav .theme-toggle {
    width: auto;
    height: 44px;
    min-width: 0;
    flex: 1 1 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #85858e;
  }

  .cab-header__nav .theme-toggle:hover,
  .cab-header__nav .theme-toggle:focus-visible {
    background: rgba(255,255,255,.07);
    color: var(--text);
  }

  .cab-header__nav .theme-toggle svg {
    width: 20px;
    height: 20px;
  }

  [data-theme="light"] .cab-header__nav .theme-toggle {
    color: #777b83;
    background: transparent;
  }

  [data-theme="light"] .cab-header__nav .theme-toggle:hover,
  [data-theme="light"] .cab-header__nav .theme-toggle:focus-visible {
    color: #08080a;
    background: rgba(10,10,12,.06);
  }

  .cab-header__nav a:active {
    transform: scale(.94);
  }

  /* Поднимаем первый экран заметнее: убираем пустую зону над главным блоком */
  main {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .hero {
    padding: 0 14px 18px;
    margin-top: -54px;
  }

  .hero__wrap {
    margin-top: 0;
  }

  .hero__panel {
    padding: 12px 18px 24px;
  }

  #trialPlate {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .cab-header__nav .nav-txt {
    font-size: 9px;
  }
}

/* Desktop sidebar overflow guard: keep every icon/button inside the rail */
@media (min-width: 761px) {
  .cab-header.is-docked .cab-header__bar {
    box-sizing: border-box;
    min-width: 0;
  }

  .cab-header.is-docked .cab-header__nav {
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 0;
    overflow: visible;
    align-items: center;
  }

  .cab-header.is-docked .cab-header__nav a,
  .cab-header.is-docked .cab-header__nav .theme-toggle,
  .cab-header.is-docked #lkBtn {
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    flex: 0 0 40px;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }

  .cab-header.is-docked .cab-header__nav .nav-ico,
  .cab-header.is-docked #lkBtn .btn__icon,
  .cab-header.is-docked .theme-toggle svg {
    display: block;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    box-sizing: border-box;
  }
}


/* Final desktop dock containment fix: logo and theme button stay inside the rail */
@media (min-width: 761px) {
  .cab-header.is-docked .cab-header__bar {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 24px);
    padding: 10px 8px;
    gap: 8px;
    box-sizing: border-box;
    overflow: visible;
  }

  .cab-header.is-docked .logo {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    flex: 0 0 40px;
    padding: 0;
    margin: 0;
    gap: 0;
    box-sizing: border-box;
    overflow: hidden;
    justify-content: center;
  }

  .cab-header.is-docked .logo__img {
    display: block;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
    box-sizing: border-box;
  }

  .cab-header.is-docked .cab-header__bar > .theme-toggle {
    order: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    flex: 0 0 40px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .cab-header.is-docked .cab-header__bar > .theme-toggle svg {
    display: block;
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    box-sizing: border-box;
  }

  .cab-header.is-docked .cab-header__bar > #lkBtn {
    order: 3;
  }
}


/* Mobile header: brand + hamburger, with section links inside the drawer */
.mobile-menu-toggle { display:none; }
.mobile-menu { display:none; }

@media (max-width: 760px) {
  .cab-header {
    padding: 10px 14px 0;
    pointer-events: none;
  }
  .cab-header__bar,
  .cab-header.is-docked .cab-header__bar {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 58px;
    min-height: 58px;
    max-height: none;
    padding: 0 15px;
    gap: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    box-sizing: border-box;
    background: var(--surface, rgba(10,10,12,.92));
    overflow: visible;
  }
  .cab-header .logo,
  .cab-header.is-docked .logo {
    display:flex;
    flex: 0 1 auto;
    min-width:0;
    width:auto;
    max-width:calc(100% - 56px);
    height:auto;
    min-height:0;
    padding:0;
    margin:0;
    gap:9px;
    justify-content:flex-start;
    overflow:visible;
  }
  .cab-header .logo__img,
  .cab-header.is-docked .logo__img {
    width:30px;
    height:30px;
    min-width:30px;
    min-height:30px;
    flex:0 0 30px;
  }
  .cab-header .logo__text,
  .cab-header.is-docked .logo__text {
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:15px;
  }
  .cab-header__nav,
  .cab-header.is-docked .cab-header__nav,
  .cab-header__bar > #lkBtn,
  .cab-header__bar > .theme-toggle {
    display:none !important;
  }
  .mobile-menu-toggle {
    display:flex;
    flex:0 0 40px;
    width:40px;
    height:40px;
    padding:0;
    border:1px solid var(--line-strong);
    border-radius:12px;
    background:transparent;
    color:var(--text, #fff);
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
    box-sizing:border-box;
    pointer-events:auto;
  }
  .mobile-menu-toggle span {
    display:block;
    width:17px;
    height:2px;
    border-radius:2px;
    background:currentColor;
    transition:transform .2s ease, opacity .2s ease;
  }
  .mobile-menu-toggle.is-open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .mobile-menu-toggle.is-open span:nth-child(2) { opacity:0; }
  .mobile-menu-toggle.is-open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    display:flex;
    position:absolute;
    top:calc(100% + 8px);
    left:14px;
    right:14px;
    padding:10px;
    flex-direction:column;
    gap:4px;
    border:1px solid var(--line-strong);
    border-radius:18px;
    background:rgba(10,10,12,.97);
    backdrop-filter:blur(18px);
    box-shadow:0 18px 50px rgba(0,0,0,.24);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events:auto;
    box-sizing:border-box;
  }
  [data-theme="light"] .mobile-menu { background:rgba(255,255,255,.98); }
  .mobile-menu.is-open {
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
  .mobile-menu > a {
    display:flex;
    align-items:center;
    min-height:44px;
    padding:0 14px;
    border-radius:11px;
    color:var(--text, #fff);
    text-decoration:none;
    font-size:15px;
    font-weight:600;
  }
  .mobile-menu > a:hover,
  .mobile-menu > a:focus-visible { background:rgba(255,255,255,.08); outline:none; }
  [data-theme="light"] .mobile-menu > a:hover,
  [data-theme="light"] .mobile-menu > a:focus-visible { background:rgba(10,10,12,.06); }
  .mobile-menu__theme { display:flex; justify-content:flex-end; padding:8px 10px 4px; border-top:1px solid var(--line); margin-top:4px; }
  .mobile-menu__theme .theme-toggle { position:static; margin:0; }
  body.mobile-menu-open { overflow:hidden; }
}


/* Mobile header visibility and stacking fix */
@media screen and (max-width: 760px) {
  .cab-header {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 1000 !important;
    padding: 10px 14px 0 !important;
    box-sizing: border-box !important;
    pointer-events: none;
  }
  .cab-header > .cab-header__bar,
  .cab-header.is-docked > .cab-header__bar {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 12px 0 14px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    z-index: 1001 !important;
  }
  .cab-header .logo,
  .cab-header.is-docked .logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 52px) !important;
    align-items: center !important;
  }
  .cab-header .logo__img,
  .cab-header.is-docked .logo__img { display:block !important; width:30px !important; height:30px !important; object-fit:contain !important; }
  .cab-header .logo__text,
  .cab-header.is-docked .logo__text { display:block !important; white-space:nowrap !important; }
  .cab-header .mobile-menu-toggle {
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    flex: 0 0 40px !important;
    width:40px !important;
    height:40px !important;
    margin:0 !important;
    position:relative !important;
    z-index:1003 !important;
    pointer-events:auto !important;
  }
  .cab-header .mobile-menu {
    display:flex !important;
    position:absolute !important;
    top:calc(100% + 8px) !important;
    left:14px !important;
    right:14px !important;
    z-index:1002 !important;
    max-height:calc(100dvh - 100px);
    overflow-y:auto;
    pointer-events:auto !important;
  }
  .cab-header .mobile-menu:not(.is-open) { opacity:0 !important; visibility:hidden !important; }
  .cab-header .mobile-menu.is-open { opacity:1 !important; visibility:visible !important; }
}

/* Mobile layout spacing below the fixed top header */
@media screen and (max-width: 760px) {
  main {
    padding-top: 70px !important;
    margin-top: 0 !important;
  }

  .hero {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }
}


/* Mobile spacing and consistent section widths */
@media screen and (max-width: 760px) {
  /* Keep the first section closer to the fixed header. */
  main {
    padding-top: 70px !important;
    margin-top: 0 !important;
  }

  .hero,
  #advantages,
  #network,
  #pricing,
  #faq {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero__wrap,
  .features__wrap,
  .network__wrap,
  .pricing__wrap,
  .faq__wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .hero__panel,
  .features__panel,
  .network__panel,
  .pricing__panel,
  .faq__panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}


/* Final mobile header-to-content spacing: match the 24px section rhythm */
@media screen and (max-width: 760px) {
  main {
    padding-top: 80px !important;
    margin-top: 0 !important;
  }

  .hero {
    margin-top: 0 !important;
  }
}


/* Mobile: keep the same 24px rhythm between the header and the first block
   as between the following content blocks. Header rail is about 58px tall. */
@media screen and (max-width: 760px) {
  body:has(.cab-header) {
    padding-top: 0 !important;
  }

  main {
    padding-top: 82px !important;
    margin-top: 0 !important;
  }

  .hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}


/* Точки-переключатели для мобильных каруселей преимуществ и тарифов */
.carousel-dots {
  display: none;
}
@media (max-width: 760px) {
  .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    margin: 0 auto 8px;
  }
  .carousel-dots button {
    appearance: none;
    border: 0;
    padding: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--muted-2, #64748b);
    opacity: .55;
    box-shadow: none;
    cursor: pointer;
    transition: width .2s ease, opacity .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .carousel-dots button.is-active {
    width: 19px;
    opacity: 1;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, .55);
  }
}


/* Мобильные карусели: карточки листаются свайпом, точки синхронизированы со слайдом */
@media (max-width: 760px) {
  .features__grid,
  .pricing__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 0 1px 4px;
    margin-left: 0;
    margin-right: 0;
  }

  .features__grid::-webkit-scrollbar,
  .pricing__grid::-webkit-scrollbar {
    display: none;
  }

  .features__grid > .feature-card,
  .pricing__grid > .price-card {
    flex: 0 0 78%;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
  }

  .carousel-dots {
    padding-top: 12px;
    margin-bottom: 8px;
  }
}

/* На светлой теме точки карусели тёмные для контраста */
@media (max-width: 760px) {
  [data-theme="light"] .carousel-dots button {
    background: #111111;
    box-shadow: none;
  }
  [data-theme="light"] .carousel-dots button.is-active {
    background: #111111;
    box-shadow: 0 0 8px rgba(0, 0, 0, .28);
  }
}
