@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@700&display=swap');

@font-face {
  font-family: 'Cera Pro';
  src: url('../assets/fonts/Cera-Pro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Cera Pro';
  src: url('../assets/fonts/Cera-Pro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Cera Pro';
  src: url('../assets/fonts/Cera-Pro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Cera Pro';
  src: url('../assets/fonts/Cera-Pro-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

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

/* Skip-link: для клавиатурной навигации. Визуально скрыт, пока не в
   фокусе; при Tab с первого нажатия — всплывает сверху слева и ведёт
   к <main>. Стандартный WCAG 2.4.1 паттерн. */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--accent, #c8a882);
  color: var(--bg, #1a1209);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.18s ease-out;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--text, #f5e6d3);
  outline-offset: 2px;
}

/* Капучино (тёмная) — по умолчанию */
:root {
  --bg: #1a1209;
  --text: #f5e6d3;
  --text-muted: rgba(245, 230, 211, 0.5);
  --accent: #c8a882;
  --glass-bg: rgba(245, 230, 211, 0.06);
  --glass-border: rgba(245, 230, 211, 0.1);
  --glass-bg-hover: rgba(245, 230, 211, 0.09);
  --glass-border-hover: rgba(245, 230, 211, 0.15);
  --accent-glass-bg: rgba(200, 168, 130, 0.2);
  --accent-glass-border: rgba(200, 168, 130, 0.3);
  --radius: 6px;
  --radius-sm: 4px;

  /* === DESIGN TOKENS === */

  /* Type scale (modular 1.25 — major third) */
  --fs-overline: 12px;     /* section labels, badges, monospace meta */
  --fs-caption:  14px;     /* small meta, subtitles */
  --fs-body-sm:  16px;     /* secondary body text */
  --fs-body:     18px;     /* primary body text */
  --fs-h4:       24px;     /* card titles, slogans */
  --fs-h3:       32px;     /* prominent stats */
  --fs-h2:       48px;     /* hero numbers, big stats */
  --fs-h1:       72px;     /* section titles */

  /* Type weights — only 3 */
  --fw-regular: 400;
  --fw-bold:    700;
  --fw-black:   900;

  /* Spacing (8-pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Section padding tokens */
  --section-pad-y: 120px;
  --section-pad-x: 48px;
  --section-gap-inner: 64px; /* между section-header и контентом */

  /* Tracking */
  --tracking-overline: 0.2em;  /* для uppercase labels */
  --tracking-tight:   -0.02em; /* для крупных заголовков */
}

@media (max-width: 768px) {
  :root {
    --fs-overline: 11px;
    --fs-caption:  13px;
    --fs-body-sm:  15px;
    --fs-body:     16px;
    --fs-h4:       20px;
    --fs-h3:       24px;
    --fs-h2:       36px;
    --fs-h1:       48px;

    --section-pad-y: 64px;
    --section-pad-x: 20px;
    --section-gap-inner: 32px;
  }
}

/* Большие экраны (≥ 2000px) — поднимаем токены пропорционально */
@media (min-width: 2000px) {
  :root {
    --fs-overline: 14px;
    --fs-caption:  16px;
    --fs-body-sm:  19px;
    --fs-body:     22px;
    --fs-h4:       28px;
    --fs-h3:       40px;
    --fs-h2:       60px;
    --fs-h1:       96px;

    --section-pad-y: 160px;
    --section-pad-x: 64px;
    --section-gap-inner: 96px;
  }
}

/* Латте (светлая) */
[data-theme="latte"] {
  --bg: #f5efe6;
  --text: #1a1209;
  --text-muted: rgba(26, 18, 9, 0.6);
  --accent: #856412;
  --glass-bg: rgba(26, 18, 9, 0.04);
  --glass-border: rgba(26, 18, 9, 0.08);
  --glass-bg-hover: rgba(26, 18, 9, 0.07);
  --glass-border-hover: rgba(26, 18, 9, 0.12);
  --accent-glass-bg: rgba(133, 100, 18, 0.1);
  --accent-glass-border: rgba(133, 100, 18, 0.2);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

/* Отступ для якорных переходов — компенсирует фиксированный навбар */
section[id] {
  scroll-margin-top: 110px;
}
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 90px;
  }
}

body {
  font-family: 'Cera Pro', system-ui, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(245, 230, 211, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 230, 211, 0.022) 1px, transparent 1px);
  background-size: 240px 240px;
  background-position: -1px -1px;
  color: var(--text);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
  transition: background-color 0.4s, color 0.4s;
}

[data-theme="latte"] body {
  background-image:
    linear-gradient(rgba(26, 18, 9, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 18, 9, 0.022) 1px, transparent 1px);
}

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

/* === NAVBAR === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 18, 9, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.4s;
}

[data-theme="latte"] .nav {
  background: rgba(245, 239, 230, 0.6);
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0;
  /* WCAG 2.5.5 — tap-target ≥44px, иначе на мобиле сложно попасть пальцем */
  min-height: 44px;
}

.nav-logo-divider {
  color: var(--text-muted);
  opacity: 0.3;
  margin: 0 8px;
  font-weight: 400;
}

.nav-logo-vpn {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  font-size: 16px;
  letter-spacing: 0.1em;
}

/* logo-icon no longer used but keeping selector for safety */
.nav-logo .logo-icon {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-icon svg {
  width: 22px;
  height: 22px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* === HAMBURGER (показывается только на мобиле, см. медиа-запрос) === */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.nav-hamburger:hover {
  background: var(--glass-bg-hover);
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* === MOBILE DRAWER === */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-drawer.is-open .mobile-drawer__backdrop {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 78%;
  max-width: 360px;
  background: rgba(26, 18, 9, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--glass-border);
  padding: 80px 28px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
[data-theme="latte"] .mobile-drawer__panel {
  background: rgba(245, 239, 230, 0.97);
}
.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.mobile-drawer__close:hover {
  background: var(--glass-bg-hover);
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer__links a {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-drawer__links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.mobile-drawer__cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s;
}
.mobile-drawer__cta:hover {
  transform: translateY(-2px);
}

/* Лочим скролл боди когда drawer открыт */
body.drawer-open {
  overflow: hidden;
}

.theme-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.theme-btn:hover {
  background: var(--glass-bg-hover);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.theme-btn-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: all 0.4s ease;
}

.theme-btn-icon--dark {
  color: var(--accent);
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-btn-icon--light {
  color: var(--accent);
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="latte"] .theme-btn-icon--dark {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="latte"] .theme-btn-icon--light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav-cta {
  padding: 12px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--glass-bg-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  max-width: 900px;
  margin: 0 80px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* === FLOATING COFFEE BEANS === */
.beans-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.beans-wrapper {
  position: relative;
}

.bean {
  position: absolute;
}

.bean svg {
  fill: var(--accent);
}

.bean {
  opacity: 0;
  animation: beanFloat 16s ease-in-out infinite;
}

.bean:nth-child(1)  { top: 4%;  left: 7%;   --o: 0.14; filter: blur(1.5px); animation-duration: 22s; animation-delay: 0s;   }
.bean:nth-child(2)  { top: 9%;  right: 10%; --o: 0.07; filter: blur(4px);   animation-duration: 18s; animation-delay: -3s;  }
.bean:nth-child(3)  { top: 14%; left: 38%;  --o: 0.09; filter: blur(2.5px); animation-duration: 26s; animation-delay: -8s;  }
.bean:nth-child(4)  { top: 19%; right: 32%; --o: 0.08; filter: blur(3px);   animation-duration: 19s; animation-delay: -2s;  }
.bean:nth-child(5)  { top: 24%; left: 13%;  --o: 0.12; filter: blur(2px);   animation-duration: 25s; animation-delay: -7s;  }
.bean:nth-child(6)  { top: 30%; right: 6%;  --o: 0.06; filter: blur(5px);   animation-duration: 20s; animation-delay: -5s;  }
.bean:nth-child(7)  { top: 35%; left: 28%;  --o: 0.04; filter: blur(6px);   animation-duration: 27s; animation-delay: -15s; }
.bean:nth-child(8)  { top: 41%; right: 22%; --o: 0.10; filter: blur(1px);   animation-duration: 23s; animation-delay: -10s; }
.bean:nth-child(9)  { top: 46%; left: 3%;   --o: 0.05; filter: blur(5px);   animation-duration: 21s; animation-delay: -12s; }
.bean:nth-child(10) { top: 51%; right: 38%; --o: 0.11; filter: blur(1.5px); animation-duration: 24s; animation-delay: -4s;  }
.bean:nth-child(11) { top: 57%; left: 18%;  --o: 0.09; filter: blur(2px);   animation-duration: 22s; animation-delay: -9s;  }
.bean:nth-child(12) { top: 62%; right: 14%; --o: 0.07; filter: blur(3.5px); animation-duration: 19s; animation-delay: -1s;  }
.bean:nth-child(13) { top: 68%; left: 42%;  --o: 0.05; filter: blur(4px);   animation-duration: 25s; animation-delay: -6s;  }
.bean:nth-child(14) { top: 73%; left: 8%;   --o: 0.12; filter: blur(1.5px); animation-duration: 21s; animation-delay: -11s; }
.bean:nth-child(15) { top: 79%; right: 28%; --o: 0.08; filter: blur(2.5px); animation-duration: 28s; animation-delay: -3s;  }
.bean:nth-child(16) { top: 85%; left: 32%;  --o: 0.06; filter: blur(4px);   animation-duration: 23s; animation-delay: -14s; }
.bean:nth-child(17) { top: 91%; right: 8%;  --o: 0.10; filter: blur(2px);   animation-duration: 26s; animation-delay: -7s;  }
.bean:nth-child(18) { top: 96%; left: 22%;  --o: 0.07; filter: blur(3px);   animation-duration: 20s; animation-delay: -2s;  }

.bean:nth-child(1) svg  { width: 42px; height: 42px; }
.bean:nth-child(2) svg  { width: 30px; height: 30px; transform: rotate(45deg); }
.bean:nth-child(3) svg  { width: 34px; height: 34px; transform: rotate(150deg); }
.bean:nth-child(4) svg  { width: 26px; height: 26px; transform: rotate(-60deg); }
.bean:nth-child(5) svg  { width: 50px; height: 50px; transform: rotate(-20deg); }
.bean:nth-child(6) svg  { width: 35px; height: 35px; transform: rotate(120deg); }
.bean:nth-child(7) svg  { width: 24px; height: 24px; transform: rotate(-130deg); }
.bean:nth-child(8) svg  { width: 44px; height: 44px; transform: rotate(70deg); }
.bean:nth-child(9) svg  { width: 28px; height: 28px; transform: rotate(-90deg); }
.bean:nth-child(10) svg { width: 40px; height: 40px; transform: rotate(30deg); }
.bean:nth-child(11) svg { width: 32px; height: 32px; transform: rotate(15deg); }
.bean:nth-child(12) svg { width: 38px; height: 38px; transform: rotate(-45deg); }
.bean:nth-child(13) svg { width: 28px; height: 28px; transform: rotate(95deg); }
.bean:nth-child(14) svg { width: 46px; height: 46px; transform: rotate(-15deg); }
.bean:nth-child(15) svg { width: 30px; height: 30px; transform: rotate(60deg); }
.bean:nth-child(16) svg { width: 34px; height: 34px; transform: rotate(-100deg); }
.bean:nth-child(17) svg { width: 42px; height: 42px; transform: rotate(40deg); }
.bean:nth-child(18) svg { width: 26px; height: 26px; transform: rotate(-75deg); }

@keyframes beanFloat {
  0%, 100% { opacity: 0; transform: translateY(0) rotate(0deg); }
  20%      { opacity: var(--o); transform: translateY(-12px) rotate(4deg); }
  50%      { opacity: var(--o); transform: translateY(-22px) rotate(-3deg); }
  80%      { opacity: var(--o); transform: translateY(-8px) rotate(5deg); }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 48px 80px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: #a0714a;
  opacity: 0.2;
  top: 5%;
  left: -8%;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: #c8a060;
  opacity: 0.15;
  bottom: 5%;
  right: -3%;
}

[data-theme="latte"] .hero::before {
  background: #c47a3a;
  opacity: 0.2;
}

[data-theme="latte"] .hero::after {
  background: #b85c3a;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* WiFi Steam */
.steam-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.wifi-steam svg {
  width: 180px;
  height: 145px;
}

.wifi-steam .steam-dot {
  fill: var(--accent);
  animation: steamPulse 3s ease-in-out infinite;
}

.wifi-steam .steam-arc-1,
.wifi-steam .steam-arc-2,
.wifi-steam .steam-arc-3 {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0;
}

.wifi-steam .steam-arc-1 { animation: steamRise 3s ease-in-out 0s infinite; }
.wifi-steam .steam-arc-2 { animation: steamRise 3s ease-in-out 0.35s infinite; }
.wifi-steam .steam-arc-3 { animation: steamRise 3s ease-in-out 0.7s infinite; }

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(6px) scale(0.85); }
  15% { opacity: 0.7; }
  40% { opacity: 0.45; }
  70% { opacity: 0.2; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 0; transform: translateY(-10px) scale(1.05); }
}

@keyframes steamPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Title */
.hero-title {
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 32px;
  overflow: visible;
}

.hero-line2 {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1.5vw, 16px);
  margin-top: -0.15em;
}

.hero-vpn-wrapper {
  display: inline-block;
  width: 4.5ch;
  position: relative;
  font-family: 'Space Mono', monospace;
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: baseline;
  overflow: visible;
  line-height: 1;
}

.hero-vpn {
  display: inline;
  color: var(--accent);
  opacity: 0.35;
  white-space: nowrap;
}

.hero-vpn::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.75em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink 530ms step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0 auto 48px;
  line-height: 1.5;
  text-align: center;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 18px 36px;
  background: var(--accent-glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--accent-glass-border);
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--accent-glass-border);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 18px 36px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--glass-bg);
  color: var(--text);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero-scroll-hint .arrow {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* === SECTION COMMON === */
.section-header {
  margin-bottom: var(--space-8);
}

.section-label {
  font-size: var(--fs-overline);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: var(--space-4);
}

/* Мини-подпись под section-label — используется в блоке «Тарифы»,
   чтобы сразу обозначить способы оплаты без лишнего шума. */
.pay-sublabel {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: calc(var(--space-4) * -1 + 2px);
  margin-bottom: var(--space-4);
}
.pay-sublabel::before {
  content: '// ';
  color: var(--accent);
  opacity: 0.6;
}

.section-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  text-transform: uppercase;
}

/* === FEATURES === */
.features {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  z-index: 2;
}

.features::before,
.features::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.features::before {
  width: 550px;
  height: 550px;
  background: #c8a060;
  filter: blur(150px);
  opacity: 0.12;
  bottom: -80px;
  right: -60px;
}

.features::after {
  width: 400px;
  height: 400px;
  background: #a0714a;
  filter: blur(130px);
  opacity: 0.1;
  top: -50px;
  left: 15%;
}

.features-strip {
  display: flex;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.feature-item {
  flex: 1;
  padding: var(--space-6) var(--space-5);
  background: rgba(245, 230, 211, 0.06);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(245, 230, 211, 0.08);
  transition: transform 0.4s ease, background 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.features-strip:hover .feature-item {
  opacity: 0.4;
  filter: saturate(0.7);
}

.features-strip .feature-item:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-8px) scale(1.03);
  background: rgba(200, 168, 130, 0.12);
  box-shadow: 0 20px 60px -20px rgba(200, 168, 130, 0.45),
              0 0 0 1px rgba(200, 168, 130, 0.35);
  z-index: 2;
  border-radius: var(--radius);
}

.feature-extra {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  top: 100%;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  opacity: 0;
  font-size: var(--fs-body-sm);
  font-style: italic;
  line-height: 1.45;
  color: var(--accent);
  border-top: 1px solid rgba(200, 168, 130, 0.3);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.features-strip .feature-item:hover .feature-extra {
  opacity: 1;
}

/* Reserve space below the strip so absolute extras don't overlap next section */
.features-strip {
  margin-bottom: 40px;
}

/* While moving between cards inside the strip — instant switching, no animation */
.features-strip.switching .feature-item,
.features-strip.switching .feature-extra,
.features-strip.switching .feature-icon {
  transition: none;
}

.features-strip .feature-item:hover .feature-icon {
  background: rgba(200, 168, 130, 0.25);
  border-color: rgba(200, 168, 130, 0.5);
  transform: scale(1.1) rotate(-4deg);
}

[data-theme="latte"] .features-strip .feature-item:hover {
  background: rgba(196, 122, 58, 0.15);
  box-shadow: 0 20px 60px -20px rgba(196, 122, 58, 0.5),
              0 0 0 1px rgba(196, 122, 58, 0.4);
}

[data-theme="latte"] .feature-item {
  background: rgba(26, 18, 9, 0.05);
  border-right-color: rgba(26, 18, 9, 0.08);
}

.feature-item:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.feature-item:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-right: none;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glass-bg);
  border: 1px solid var(--accent-glass-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-num {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-overline);
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-overline);
}

.feature-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.feature-desc {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* === ICON STRIP === */
.marquee-section {
  margin-top: -60px;
  padding: 16px 0 64px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  /* gap между иконками + переноса на новую строку:
     при 17 пунктах (12 соц + / + 4 страны) на tablet/laptop
     не хватает ширины, лейблы налезают друг на друга */
  row-gap: 28px;
  column-gap: 18px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
}

.marquee-divider {
  font-family: 'Space Mono', monospace;
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  user-select: none;
  transform: translateY(-8px);
}

/* Горизонтальный режим: социалки целиком на одной строке, флаги на следующей —
   заменяем "/" на тонкую горизонтальную линию во всю ширину между строчками.
   Класс добавляется из JS (detectMarqueeLayout) */
.marquee-divider.is-horizontal {
  flex-basis: 100%;
  width: 100%;
  height: 1px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background: var(--glass-border);
  transform: none;
  margin: 4px 0;
  opacity: 1;
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  opacity: 0.25;
  filter: grayscale(100%);
  transition: opacity 0.6s ease, filter 0.6s ease, color 0.6s ease;
  animation: iconFloat var(--float-duration) ease-in-out var(--float-delay) infinite;
}

.marquee-item.lit {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--float-y)); }
}

.marquee-item svg {
  width: 48px;
  height: 48px;
}

.marquee-item span:last-child {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.flag-emoji {
  font-size: 48px;
  line-height: 1;
}

/* === MARQUEE MOBILE (две бегущих строки, скрыто на десктопе) === */
.marquee-mobile {
  display: none;
}

/* === DEVICE DROPDOWN MOBILE (скрыто на десктопе) === */

/* === PRICING === */
.pricing {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  z-index: 2;
}

.pricing::before,
.pricing::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.pricing::before {
  width: 600px;
  height: 600px;
  background: #c8a060;
  filter: blur(160px);
  opacity: 0.1;
  top: 20%;
  right: -5%;
}

.pricing::after {
  width: 450px;
  height: 450px;
  background: #a0714a;
  filter: blur(140px);
  opacity: 0.08;
  bottom: -10%;
  left: 10%;
}

.pricing-grid {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.price-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
}

[data-theme="latte"] .price-card {
  background: rgba(26, 18, 9, 0.05);
  border: 1px solid rgba(26, 18, 9, 0.12);
  box-shadow: 0 16px 40px -20px rgba(26, 18, 9, 0.25);
}

[data-theme="latte"] .price-card:nth-child(3) {
  background: rgba(196, 122, 58, 0.08);
  border-color: rgba(196, 122, 58, 0.25);
}

[data-theme="latte"] .price-card:nth-child(4) {
  background: rgba(196, 122, 58, 0.12);
  border-color: rgba(196, 122, 58, 0.35);
}

.price-card:nth-child(1) { flex: 1;    min-height: 480px; }
.price-card:nth-child(2) { flex: 1.05; min-height: 540px; }
.price-card:nth-child(3) {
  flex: 1.1;
  min-height: 600px;
  background: rgba(200, 168, 130, 0.05);
  border-color: rgba(200, 168, 130, 0.15);
  animation: priceBounce 2.8s ease-in-out infinite;
}

.price-card:nth-child(3):hover {
  animation-play-state: paused;
}

@keyframes priceBounce {
  0%, 100%   { transform: translateY(0); }
  10%        { transform: translateY(-10px); }
  20%        { transform: translateY(0); }
  28%        { transform: translateY(-5px); }
  36%        { transform: translateY(0); }
}
.price-card:nth-child(3)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(200,168,130,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.price-card:nth-child(4) {
  flex: 1.15;
  min-height: 660px;
  background: rgba(200, 168, 130, 0.08);
  border-color: rgba(200, 168, 130, 0.22);
}
.price-card:nth-child(4)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(200,168,130,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.price-badge {
  position: absolute;
  top: -18px;
  left: var(--space-5);
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  border-radius: var(--radius);
}

.price-badge--popular {
  color: #1a2330;
  background: #b8cfe0;
  border: 2px solid #d4e3ee;
  box-shadow: 0 8px 24px -8px rgba(184, 207, 224, 0.5);
}

[data-theme="latte"] .price-badge--popular {
  color: #fff;
  background: #6b8caa;
  border-color: #88a3bd;
}

.price-badge--best {
  color: var(--bg);
  background: var(--accent);
}

.price-coffee-icon {
  margin-bottom: var(--space-5);
  color: var(--accent);
  opacity: 0.35;
}

.price-card:nth-child(1) .price-coffee-icon svg { width: 48px; height: 48px; }
.price-card:nth-child(2) .price-coffee-icon svg { width: 56px; height: 56px; }
.price-card:nth-child(3) .price-coffee-icon svg { width: 64px; height: 64px; }
.price-card:nth-child(4) .price-coffee-icon svg { width: 72px; height: 72px; }

.price-duration {
  font-size: var(--fs-h3);
  font-weight: var(--fw-black);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  text-transform: uppercase;
}

.price-slogan {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: var(--space-7);
  line-height: 1.4;
}

.price-amount-block {
  margin-top: auto;
}

.price-amount {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
  line-height: 1;
}

/* hero-карточка (180 дней) — единственная увеличенная для доминирования */
.price-card:nth-child(3) .price-amount { font-size: 64px; }

.price-amount span {
  font-size: 0.7em;
  opacity: 0.75;
  margin-left: 2px;
}

.price-amount-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.price-old {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.7;
}

.price-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.price-usd {
  font-size: var(--fs-h4);
  color: var(--text-muted);
}

.price-discount {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: #ffffff;
  background: #8bba7c;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  letter-spacing: 0.5px;
  transform: rotate(8deg);
  box-shadow: 0 8px 24px -6px rgba(139, 186, 124, 0.6),
              0 0 0 4px rgba(139, 186, 124, 0.15);
  z-index: 3;
  line-height: 1;
}

/* Скидочный бейдж — оставляем лёгкое свечение только на 90-дневном тарифе;
   на 180 и 365 убираем ореол по запросу пользователя (плоский плашка). */
.price-card:nth-child(2) .price-discount {
  box-shadow: 0 4px 12px -6px rgba(139, 186, 124, 0.25),
              0 0 0 2px rgba(139, 186, 124, 0.06);
}

.price-card:nth-child(3) .price-discount,
.price-card:nth-child(4) .price-discount {
  /* Небольшой «bubble» под плашкой — без ring'а, только drop-shadow */
  box-shadow: 0 6px 20px -4px rgba(139, 186, 124, 0.5);
}

[data-theme="latte"] .price-discount {
  color: #15240e;
  background: #8bba7c;
}

.price-per-month {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(245, 230, 211, 0.06);
}

.price-per-month strong {
  color: var(--text);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
}

.price-cta {
  display: block;
  padding: var(--space-3) var(--space-5);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.price-cta:hover {
  background: var(--glass-bg-hover);
}

.price-card:nth-child(4) .price-cta {
  background: var(--accent-glass-bg);
  border-color: var(--accent-glass-border);
}

/* === REFERRAL === */
.referral {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-7) var(--section-pad-x);
  position: relative;
  z-index: 2;
}

.referral-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
  background:
    radial-gradient(circle at 15% 30%, rgba(184, 92, 58, 0.10), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(200, 168, 130, 0.10), transparent 55%),
    rgba(10, 6, 2, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 168, 130, 0.18);
  border-radius: var(--radius);
  padding: 48px 56px;
}

[data-theme="latte"] .referral-inner {
  background:
    radial-gradient(circle at 15% 30%, rgba(184, 92, 58, 0.16), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(196, 122, 58, 0.14), transparent 55%),
    rgba(245, 239, 230, 0.5);
  border-color: rgba(196, 122, 58, 0.3);
}

.referral-text .section-title {
  font-size: var(--fs-h2) !important;
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
  line-height: 1.05;
}

.referral-accent {
  color: var(--accent);
}

.referral-lead {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 var(--space-3);
}

.referral-lead strong {
  color: var(--accent);
  font-weight: var(--fw-bold);
}

.referral-text-p {
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

.referral-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  color: #1a1209;
  background: linear-gradient(135deg, #d4b58c 0%, #c8a882 35%, #a0714a 100%);
  border: 2px solid #d4b58c;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 36px -12px rgba(200, 168, 130, 0.55),
              0 0 24px -8px rgba(200, 168, 130, 0.35),
              inset 0 1px 0 rgba(255, 235, 200, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.referral-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px -12px rgba(200, 168, 130, 0.75),
              0 0 32px -6px rgba(200, 168, 130, 0.5),
              inset 0 1px 0 rgba(255, 235, 200, 0.6);
}

.referral-cta svg {
  position: relative;
  z-index: 1;
}

.referral-cta span {
  position: relative;
  z-index: 1;
}

[data-theme="latte"] .referral-cta {
  color: #1a1209;
  background: linear-gradient(135deg, #e0c39a 0%, #c8a882 35%, #a0714a 100%);
}

/* Ticket / coupon */
.referral-ticket {
  background: linear-gradient(135deg, rgba(200, 168, 130, 0.16), rgba(184, 92, 58, 0.10));
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 54px -18px rgba(200, 168, 130, 0.35),
              0 0 28px -10px rgba(200, 168, 130, 0.2);
}

/* Diagonal golden shimmer */
.referral-ticket::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 60%;
  height: 220%;
  background: linear-gradient(115deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 230, 180, 0.0) 40%,
    rgba(255, 230, 180, 0.18) 50%,
    rgba(255, 230, 180, 0.0) 60%,
    transparent 65%,
    transparent 100%);
  transform: rotate(8deg);
  animation: ticketShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ticketShimmer {
  0%   { transform: translate(-30%, -10%) rotate(8deg); opacity: 0; }
  20%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(280%, 10%) rotate(8deg); opacity: 0; }
}

.referral-ticket > * {
  position: relative;
  z-index: 1;
}

[data-theme="latte"] .referral-ticket {
  background: linear-gradient(135deg, rgba(196, 122, 58, 0.18), rgba(184, 92, 58, 0.12));
  border-color: #b85c3a;
  box-shadow: 0 30px 80px -20px rgba(184, 92, 58, 0.35),
              0 0 40px -10px rgba(184, 92, 58, 0.2);
}

/* Notches on sides — make it look like a real ticket */
.referral-ticket-tag {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-overline);
  letter-spacing: var(--tracking-overline);
  color: var(--accent);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-4);
  opacity: 0.75;
}

.referral-ticket-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(200, 168, 130, 0.35);
}

.referral-ticket-line:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.referral-ticket-label {
  font-size: var(--fs-overline);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  font-weight: var(--fw-bold);
}

.referral-ticket-value {
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--accent);
  text-shadow: 0 0 20px rgba(200, 168, 130, 0.5);
  line-height: 1;
}

.referral-ticket-pct {
  font-size: var(--fs-body);
  opacity: 0.7;
}

.referral-ticket-value--inf {
  font-size: var(--fs-h2);
}

.referral-ticket-sub {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-style: italic;
  text-align: right;
}

@media (min-width: 2000px) {
  .referral { padding: var(--space-9) var(--space-9); max-width: 1700px; }
  .referral-inner { padding: var(--space-8) var(--space-9); gap: var(--space-8); }
  .referral-ticket { padding: var(--space-6) var(--space-6); }
  /* шрифты sub-элементов растут вместе с токенами автоматически */
}

/* === STEPS === */
.steps {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  z-index: 2;
}

.steps::before,
.steps::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.steps::before {
  width: 500px;
  height: 500px;
  background: #d4b07a;
  filter: blur(160px);
  opacity: 0.12;
  top: -20%;
  left: -5%;
}

.steps::after {
  width: 380px;
  height: 380px;
  background: #c8a060;
  filter: blur(130px);
  opacity: 0.1;
  bottom: -15%;
  right: 20%;
}

/* Steps section intro */
.steps-intro {
  max-width: 720px;
  margin: var(--space-5) 0 var(--space-7);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-muted);
}

.steps-intro strong {
  color: var(--accent);
  font-weight: var(--fw-bold);
}

/* === DEVICE GRID — обзор поддерживаемых платформ === */
.device-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  max-width: 1500px;
}

.device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 44px;
  min-height: 280px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.device-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-glass-border);
  background: var(--accent-glass-bg);
  box-shadow: 0 20px 60px -20px rgba(200, 168, 130, 0.35);
}

.device-card__icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 28px;
  filter: drop-shadow(0 0 32px rgba(200, 168, 130, 0.4));
  transition: transform 0.3s;
}

.device-card:hover .device-card__icon {
  transform: scale(1.08);
}

.device-card__icon svg {
  width: 100%;
  height: 100%;
}

.device-card__name {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.device-card__sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

[data-theme="latte"] .device-card__icon {
  filter: drop-shadow(0 0 32px rgba(196, 122, 58, 0.4));
}

[data-theme="latte"] .device-card:hover {
  box-shadow: 0 20px 60px -20px rgba(196, 122, 58, 0.45);
}

.steps-note {
  margin: var(--space-8) 0 0;
  max-width: 760px;
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

/* Большие экраны: ещё крупнее */
@media (min-width: 2000px) {
  .device-grid {
    max-width: 1700px;
    gap: 32px;
  }
  .device-card {
    padding: 68px 28px 52px;
    min-height: 320px;
  }
  .device-card__icon {
    width: 110px;
    height: 110px;
    margin-bottom: 32px;
  }
  .device-card__name {
    font-size: 28px;
  }
  .device-card__sub {
    font-size: 15px;
  }
  /* .steps-note — токены сами увеличиваются на 2000px+ */
}

/* Bonus tab — app logos (no buttons) */

/* Desktop screenshot (Linux/Windows/macOS) — unified height */

/* Smart TV — Apple TV screenshot */

/* Phone screenshot (Android/iOS) — unified height */

/* Phone mockup */

/* Desktop mockup */

/* TV mockup */

/* Device instructions */

/* === DIVIDER === */
.divider {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

.divider-line {
  height: 40px;
  position: relative;
  overflow: hidden;
}

.divider-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(200, 168, 130, 0.2) 35%, transparent 47%, transparent 53%, rgba(200, 168, 130, 0.2) 65%, transparent 100%);
}

.divider-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 36px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><ellipse cx='50' cy='50' rx='30' ry='45' fill='%23c8a882' fill-opacity='0.55'/><path d='M50 8 C42 30, 42 70, 50 92' stroke='%231a1209' stroke-width='3' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* === ABOUT === */
.about {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  z-index: 2;
}

.about-inner {
  background:
    radial-gradient(circle at 80% 20%, rgba(200,168,130,0.10), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(184,92,58,0.08), transparent 55%),
    rgba(10, 6, 2, 0.45);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-9) var(--space-9);
  position: relative;
  overflow: hidden;
}

[data-theme="latte"] .about-inner {
  background:
    radial-gradient(circle at 80% 20%, rgba(196,122,58,0.14), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(184,92,58,0.10), transparent 55%),
    rgba(245, 239, 230, 0.65);
  border-color: rgba(26, 18, 9, 0.12);
}

.about-label {
  text-align: center;
  margin-bottom: var(--space-4) !important;
}

.about-title {
  text-align: center;
  margin: 0 0 var(--space-8);
  /* 1.05 прижимал «Н» к «Д»/«Ц» верхней строки на кириллице;
     1.18 — безопасный минимум чтобы дескендеры не задевали следующую строку */
  line-height: 1.18;
}

.about-title-accent {
  color: var(--accent);
}

/* Stats grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin: var(--space-7) 0 var(--space-8);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.about-stat {
  text-align: center;
}

.about-stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 84px;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(200,168,130,0.45);
  letter-spacing: var(--tracking-tight);
}

.about-stat-num span {
  font-size: 0.5em;
  opacity: 0.65;
}

.about-stat-label {
  font-size: var(--fs-overline);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  margin-top: var(--space-3);
  font-weight: var(--fw-bold);
}

/* Terminal block */
.about-terminal {
  background: #0d0805;
  border: 1px solid rgba(200,168,130,0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(200,168,130,0.3),
              0 0 0 1px rgba(200,168,130,0.1);
  margin-bottom: 48px;
}

[data-theme="latte"] .about-terminal {
  background: #1a1209;
}

.about-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(200,168,130,0.06);
  border-bottom: 1px solid rgba(200,168,130,0.15);
}

.about-terminal-bar > span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.about-terminal-bar > span:nth-child(1) { background: #ff5f57; }
.about-terminal-bar > span:nth-child(2) { background: #febc2e; }
.about-terminal-bar > span:nth-child(3) { background: #28c840; }

.about-terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-caption);
  color: rgba(245, 230, 211, 0.5);
}

.about-terminal-body {
  padding: var(--space-6) var(--space-7);
  font-family: 'Space Mono', monospace;
  font-size: var(--fs-body-sm);
  line-height: 1.75;
  color: #f5e6d3;
}

.about-terminal-body p {
  margin: 0 0 var(--space-3);
}

.about-terminal-body p:last-child {
  margin: 0;
}

.about-prompt {
  color: #28c840;
  margin-right: 12px;
  font-weight: 700;
}

.about-terminal-body em {
  color: var(--accent);
  font-style: normal;
}

.about-cursor {
  display: inline-block;
  background: var(--accent);
  width: 10px;
  height: 18px;
  margin-left: 4px;
  vertical-align: middle;
  animation: aboutBlink 1s step-end infinite;
}

@keyframes aboutBlink {
  50% { opacity: 0; }
}

.about-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 2000px) {
  .about { padding: var(--section-pad-y) var(--section-pad-x); }
  .about-inner { padding: var(--space-9) var(--space-9); }
  .about-stat-num { font-size: 110px; }
  .about-terminal-body { padding: var(--space-7) var(--space-8); }
}

/* === SITE FOOTER === */
.site-footer {
  background: rgba(10, 6, 2, 0.55);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-7) var(--space-8);
  margin-top: var(--space-8);
  position: relative;
  z-index: 5;
}

[data-theme="latte"] .site-footer {
  background: rgba(220, 208, 188, 0.55);
  border-top-color: rgba(26, 18, 9, 0.12);
}

.site-footer__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__logo {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-black);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__logo span {
  color: var(--accent);
  margin-left: var(--space-1);
}

.site-footer__copy {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin: 0;
}

.site-footer__nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.site-footer__nav a {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  transition: color 0.2s;
  /* WCAG 2.5.5 — тапабельная высота ≥44px через vertical padding */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__support {
  display: inline-flex !important;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(139, 186, 124, 0.12);
  border: 1px solid rgba(139, 186, 124, 0.45);
  border-radius: var(--radius);
  color: #8bba7c !important;
  font-weight: var(--fw-bold);
  font-size: var(--fs-caption);
  transition: all 0.25s;
}

.site-footer__support:hover {
  background: rgba(139, 186, 124, 0.22);
  border-color: rgba(139, 186, 124, 0.7);
  color: #a5d094 !important;
  box-shadow: 0 6px 18px -4px rgba(139, 186, 124, 0.5);
  transform: translateY(-2px);
}

[data-theme="latte"] .site-footer__support {
  color: #4c6e3a !important;
  background: rgba(139, 186, 124, 0.18);
  border-color: rgba(90, 138, 71, 0.45);
}

[data-theme="latte"] .site-footer__support:hover {
  color: #2f4923 !important;
  background: rgba(139, 186, 124, 0.3);
}

@media (min-width: 2000px) {
    .site-footer { padding: var(--space-8) var(--space-9); }
}

/* === FAQ === */
.faq {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  z-index: 2;
}

.faq-support-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: #8bba7c;
  border: 2px solid #a5d094;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 16px 44px -8px rgba(139, 186, 124, 0.95),
              0 0 32px -4px rgba(139, 186, 124, 0.5),
              0 0 0 6px rgba(139, 186, 124, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px -8px rgba(139, 186, 124, 1),
              0 0 44px -4px rgba(139, 186, 124, 0.65),
              0 0 0 7px rgba(139, 186, 124, 0.25);
}

.faq-support-btn svg {
  flex-shrink: 0;
}

[data-theme="latte"] .faq-support-btn {
  color: #15240e;
  background: #8bba7c;
  border-color: #a5d094;
}

@media (min-width: 2000px) {
  .faq-support-btn {
    padding: var(--space-5) var(--space-7);
    margin-top: var(--space-7);
  }
  .faq-support-btn svg {
    width: 26px;
    height: 26px;
  }
}

.faq::before,
.faq::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.faq::before {
  width: 500px;
  height: 500px;
  background: #a0714a;
  filter: blur(160px);
  opacity: 0.1;
  bottom: -60px;
  right: -3%;
}

.faq::after {
  width: 350px;
  height: 350px;
  background: #d4b07a;
  filter: blur(120px);
  opacity: 0.08;
  top: 10%;
  left: -3%;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  position: relative;
  z-index: 1;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(245, 230, 211, 0.06);
  cursor: pointer;
}

[data-theme="latte"] .faq-item {
  border-bottom-color: rgba(26, 18, 9, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq-question h3 {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-item:hover .faq-toggle {
  background: var(--glass-bg-hover);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq-item.open .faq-answer {
  max-height: 1200px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer p,
.faq-answer ul,
.faq-answer li {
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: var(--fw-regular);
}

.faq-answer p {
  margin: 0 0 var(--space-3);
}

.faq-answer p:first-child {
  padding-top: var(--space-4);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
}

.faq-answer li {
  margin-bottom: var(--space-2);
}

.faq-answer strong {
  color: var(--text);
  font-weight: var(--fw-bold);
  font-size: inherit;
  font-family: inherit;
}

/* === LATTE GLOWS — warm terracotta/orange tones visible on cream bg === */
[data-theme="latte"] .features::before {
  background: #c47a3a;
  opacity: 0.18;
}

[data-theme="latte"] .features::after {
  background: #b85c3a;
  opacity: 0.12;
}

[data-theme="latte"] .pricing::before {
  background: #d4854a;
  opacity: 0.15;
}

[data-theme="latte"] .pricing::after {
  background: #c47a3a;
  opacity: 0.12;
}

[data-theme="latte"] .steps::before {
  background: #b85c3a;
  opacity: 0.15;
}

[data-theme="latte"] .steps::after {
  background: #d4854a;
  opacity: 0.1;
}

[data-theme="latte"] .faq::before {
  background: #c47a3a;
  opacity: 0.14;
}

[data-theme="latte"] .faq::after {
  background: #b85c3a;
  opacity: 0.1;
}

/* === LARGE SCREENS (2K+) === */
@media (min-width: 2000px) {
  .features,
  .pricing,
  .steps,
  .divider,
  .faq {
    max-width: 1900px;
  }

  .nav {
    padding: 28px 100px;
  }

  .nav-logo {
    font-size: 24px;
    gap: 14px;
  }

  .nav-logo .logo-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
  }

  .nav-logo .logo-icon svg {
    width: 26px;
    height: 26px;
  }

  .nav-links {
    max-width: 1100px;
    margin: 0 120px;
  }

  .nav-link {
    font-size: 18px;
  }

  .nav-right {
    gap: 36px;
  }

  .hero {
    padding: 140px 80px 100px;
  }

  .hero-title {
    font-size: clamp(100px, 14vw, 220px);
  }

  .hero-vpn-wrapper {
    font-size: clamp(80px, 11vw, 180px);
  }

  .hero-subtitle {
    font-size: 26px;
    max-width: 650px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 22px 44px;
    font-size: 20px;
    border-radius: var(--radius);
  }

  /* section-label / section-title — теперь через токены, override не нужен */

  .feature-item {
    padding: var(--space-7) var(--space-6);
  }

  .feature-num {
    margin-bottom: var(--space-5);
  }
  /* feature-title / feature-desc — токены сами растут на 2000px+ */

  .price-card {
    padding: 40px 32px;
    border-radius: var(--radius);
  }

  .price-card:nth-child(1) { min-height: 460px; }
  .price-card:nth-child(2) { min-height: 520px; }
  .price-card:nth-child(3) { min-height: 580px; }
  .price-card:nth-child(4) { min-height: 640px; }

  /* hero-карточка на bigscreen — пропорциональное масштабирование */
  .price-card:nth-child(3) .price-amount { font-size: 80px; }
  .price-discount { padding: var(--space-3) var(--space-5); top: var(--space-6); right: var(--space-6); }

  .price-cta {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius);
  }





  .faq-layout {
    gap: var(--space-10);
  }
  /* faq-question/answer наследуют через --fs-body / --fs-body-sm */

  .wifi-steam svg {
    width: 220px;
    height: 178px;
  }

  .nav-cta {
    padding: 14px 34px;
    font-size: 18px;
    border-radius: var(--radius);
  }

  .theme-btn {
    width: 50px;
    height: 50px;
  }

  .theme-btn-icon {
    width: 24px;
    height: 24px;
  }
}

/* ============================================================================
   МОБИЛЬНЫЙ ФУНДАМЕНТ (≤ 768px)
   Цель этого блока — НЕ верстать каждую секцию идеально, а только не дать
   сайту развалиться: убрать горизонтальный скролл, сжать огромные отступы,
   позволить заголовкам уменьшаться. Тонкая работа над каждой секцией —
   на следующих шагах поэтапной мобильной адаптации.
   ============================================================================ */
@media (max-width: 768px) {

  /* --- Защита от горизонтального переполнения --- */
  img, svg, video {
    max-width: 100%;
    height: auto;
  }

  /* --- Навбар: уменьшить отступы, спрятать desktop-меню, показать гамбургер --- */
  .nav {
    padding: 14px 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-right > .nav-cta {
    display: none;
  }
  .nav-right {
    gap: 10px;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-logo {
    font-size: 15px;
  }
  .nav-logo-vpn {
    font-size: 13px;
  }
  /* WCAG 2.5.5 — tap-target ≥44px */
  .theme-btn {
    width: 44px;
    height: 44px;
  }

  /* --- Hero --- */
  .hero {
    padding: 96px 20px 70px;
    min-height: 100svh;
  }
  /* Уменьшить размытые круги фона */
  .hero::before {
    width: 340px;
    height: 340px;
    filter: blur(90px);
    top: 8%;
    left: -20%;
  }
  .hero::after {
    width: 280px;
    height: 280px;
    filter: blur(80px);
    bottom: 8%;
    right: -15%;
  }
  /* WiFi-пар поменьше */
  .steam-container {
    margin-bottom: 4px;
  }
  .wifi-steam svg {
    width: 110px;
    height: 88px;
  }
  /* Заголовок: центрируем, размер под мобилу.
     Мин 36/26: на 320px (iPhone SE) при min 44/34 «/VPN» уезжал за
     правый край — не умещалось «КОФЕ /VPN» в одну строку. */
  .hero-title {
    font-size: clamp(36px, 13vw, 84px);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
  }
  .hero-line2 {
    justify-content: center;
    gap: 6px;
    margin-top: -0.1em;
  }
  .hero-vpn-wrapper {
    font-size: clamp(26px, 10vw, 64px);
    width: auto;
    flex-shrink: 0;
  }
  /* На мобиле бледный /VPN плохо виден — поднимаем прозрачность */
  .hero-vpn {
    opacity: 0.55;
  }
  /* Субтитр: разрешить перенос, уменьшить размер */
  .hero-subtitle {
    font-size: 15px;
    white-space: normal;
    padding: 0 4px;
    margin: 0 auto 28px;
    line-height: 1.45;
    max-width: 320px;
  }
  /* Кнопки в столбик во всю ширину */
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    justify-content: center;
  }
  /* Подсказка скролла */
  .hero-scroll-hint {
    bottom: 18px;
    font-size: 11px;
  }

  /* --- Базовые горизонтальные отступы для всех секций --- */
  .features,
  .pricing,
  .steps,
  .faq {
    padding: var(--section-pad-y) var(--section-pad-x);
  }
  .about {
    padding: var(--section-pad-y) var(--section-pad-x);
  }
  .referral {
    padding: var(--section-pad-y) var(--section-pad-x);
  }

  /* --- Строка иконок: спрятать десктопный вариант, показать мобильный --- */
  .marquee-section {
    display: none;
  }
  .marquee-mobile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
  }
  .marquee-mobile__row {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
  .marquee-mobile__track {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
  }
  .marquee-mobile__row--social .marquee-mobile__track {
    animation: mqScrollLeft 28s linear infinite;
  }
  .marquee-mobile__row--flags .marquee-mobile__track {
    animation: mqScrollRight 32s linear infinite;
  }
  @keyframes mqScrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  @keyframes mqScrollRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
  }
  .marquee-mobile__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .marquee-mobile__item svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
    fill: currentColor;
  }
  .marquee-mobile__item .flag-emoji {
    font-size: 22px;
  }

  /* --- Футер --- */
  .site-footer__inner {
    padding: 32px 20px;
  }

  /* --- Большие тайтлы секций: масштаб ниже --- */
  /* .section-title — теперь через токен (--fs-h1 = 48px на мобильном) */

  /* ======================================================
     ПРЕИМУЩЕСТВА — Вариант A (стек из 7 карточек)
     ====================================================== */
  .features-strip {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 0;
  }
  /* На мобиле — статичные карточки, никакой реакции на hover/tap/focus */
  .features-strip:hover .feature-item,
  .features-strip .feature-item:hover,
  .features-strip .feature-item:active,
  .features-strip .feature-item:focus,
  .features-strip .feature-item:focus-within {
    opacity: 1;
    filter: none;
    transform: none;
    background: rgba(245, 230, 211, 0.05);
    box-shadow: none;
    border-radius: var(--radius);
    border-color: var(--glass-border);
  }
  [data-theme="latte"] .features-strip .feature-item,
  [data-theme="latte"] .features-strip .feature-item:hover,
  [data-theme="latte"] .features-strip .feature-item:active,
  [data-theme="latte"] .features-strip .feature-item:focus,
  [data-theme="latte"] .features-strip .feature-item:focus-within {
    background: rgba(26, 18, 9, 0.05);
    box-shadow: none;
    border-color: rgba(26, 18, 9, 0.08);
  }
  .features-strip .feature-item:hover .feature-icon,
  .features-strip .feature-item:active .feature-icon {
    transform: none;
    background: var(--accent-glass-bg);
    border-color: var(--accent-glass-border);
  }
  .feature-item {
    -webkit-tap-highlight-color: transparent;
  }
  /* Карточка как полноценный блок */
  .feature-item {
    flex: none;
    padding: var(--space-5) var(--space-5);
    border-right: none;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: rgba(245, 230, 211, 0.05);
  }
  .feature-item:first-child,
  .feature-item:last-child {
    border-radius: var(--radius);
  }
  /* Иконка чуть мельче */
  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-3);
  }
  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
  /* feature-num/title/desc приходят из токенов */
  .feature-num {
    margin-bottom: var(--space-2);
  }
  .feature-title {
    margin-bottom: var(--space-2);
    line-height: 1.25;
  }
  .feature-desc {
    line-height: 1.45;
    margin-bottom: var(--space-3);
  }
  /* Extra-текст: всегда видимый, не absolute, как часть карточки */
  .feature-extra {
    position: static;
    opacity: 1;
    margin-top: 0;
    padding-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    border-top: 1px solid rgba(200, 168, 130, 0.25);
    pointer-events: auto;
  }
  /* Отступ заголовка секции от карточек */
  .features .section-header {
    margin-bottom: 28px;
  }

  /* ======================================================
     ТАРИФЫ — Вариант C (популярный hero + 3 компактных)
     ====================================================== */
  .pricing-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  /* Перепорядок: 180 дней (3-я) → первая, потом 30, 90, 365 */
  .price-card:nth-child(3) { order: 1; }
  .price-card:nth-child(1) { order: 2; }
  .price-card:nth-child(2) { order: 3; }
  .price-card:nth-child(4) { order: 4; }

  /* Все карточки во всю ширину, без min-height и flex-роста */
  .price-card,
  .price-card:nth-child(1),
  .price-card:nth-child(2),
  .price-card:nth-child(3),
  .price-card:nth-child(4) {
    flex: none;
    min-height: 0;
    width: 100%;
  }
  /* Отключить hover-лифт и bouncing-анимацию на тач */
  .price-card:hover {
    transform: none;
  }
  .price-card:nth-child(3) {
    animation: none;
  }

  /* Бейдж — компактнее на мобиле */
  .price-card .price-badge {
    font-size: 11px;
    padding: 6px 14px;
    top: -14px;
    left: 18px;
    letter-spacing: 1.5px;
  }

  /* ===== Свёрнутая карточка (любая) — компактный вид =====
     При добавлении класса .expanded карточка раскрывается в полноценный hero-вид */
  .price-card:not(.expanded) {
    display: grid;
    grid-template-areas:
      "duration price"
      "slogan   price";
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 2px;
    padding: 16px 56px 16px 18px; /* справа резерв под стрелку */
    background: var(--glass-bg);
    border-color: var(--glass-border);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  /* Убираем любую реакцию на hover/active/focus у свёрнутых карточек */
  .price-card:not(.expanded):hover,
  .price-card:not(.expanded):active,
  .price-card:not(.expanded):focus,
  .price-card:not(.expanded):focus-within {
    transform: none;
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: none;
  }
  /* Скрыть всё лишнее в свёрнутом виде */
  .price-card:not(.expanded) .price-coffee-icon,
  .price-card:not(.expanded) .price-meta,
  .price-card:not(.expanded) .price-old,
  .price-card:not(.expanded) .price-per-month,
  .price-card:not(.expanded) .price-badge {
    display: none;
  }
  /* Раскладка элементов */
  .price-card:not(.expanded) .price-duration {
    grid-area: duration;
    font-size: 15px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
  .price-card:not(.expanded) .price-slogan {
    grid-area: slogan;
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
  }
  .price-card:not(.expanded) .price-amount-block {
    grid-area: price;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .price-card:not(.expanded) .price-amount-row {
    margin: 0;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
  }
  .price-card:not(.expanded) .price-amount {
    font-size: var(--fs-h4) !important;
    margin: 0;
    line-height: 1;
  }
  /* Скидка — мелкий чип, без поворота, без glow */
  .price-card:not(.expanded) .price-discount {
    position: static;
    transform: none;
    font-size: var(--fs-overline);
    padding: var(--space-1) var(--space-2);
    border-width: 1px;
    box-shadow: none;
  }
  /* CTA-ссылка скрыта в свёрнутом виде (тап ловим на самой карточке через JS) */
  .price-card:not(.expanded) .price-cta {
    display: none;
  }
  /* Стрелка → справа */
  .price-card:not(.expanded)::after {
    content: '→';
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-black);
    font-size: var(--fs-body-sm);
    pointer-events: none;
  }
  /* 365-я карточка в свёрнутом виде — нейтральный фон, без градиента */
  .price-card:nth-child(4):not(.expanded) {
    background: var(--glass-bg);
    border-color: var(--glass-border);
  }
  .price-card:nth-child(4):not(.expanded)::before {
    display: none;
  }

  /* ===== Раскрытая мини-карточка — наследует hero-стили (через токены) ===== */
  .price-card.expanded {
    -webkit-tap-highlight-color: transparent;
    padding: var(--space-7) var(--space-5) var(--space-6);
  }
  .price-card.expanded .price-coffee-icon { margin-bottom: var(--space-3); }
  .price-card.expanded .price-coffee-icon svg { width: 48px; height: 48px; }
  .price-card.expanded .price-amount-row {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    align-items: center;
  }
  .price-card.expanded .price-meta {
    margin-bottom: var(--space-3);
  }
  .price-card.expanded .price-per-month {
    margin-bottom: var(--space-4);
    padding-top: var(--space-3);
  }
  .price-card.expanded .price-cta {
    padding: var(--space-3);
  }
  /* Скидка-стикер у раскрытой карточки — компактнее */
  .price-card.expanded .price-discount {
    top: var(--space-4);
    right: var(--space-3);
    border-width: 1.5px;
  }
  .price-card.expanded:nth-child(4) {
    margin-top: var(--space-5);
  }
  /* Подавляем hover-блик и лишнее свечение у раскрытой карточки */
  .price-card.expanded:hover,
  .price-card.expanded:active,
  .price-card.expanded:focus {
    transform: none;
  }

  /* ======================================================
     РЕФЕРАЛЬНАЯ — Вариант A (текст → кнопка → купон, стек)
     ====================================================== */
  .referral-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6) var(--space-5);
  }
  .referral-text .section-title {
    margin-bottom: var(--space-4);
  }
  .referral-lead {
    margin-bottom: var(--space-3);
  }
  .referral-text-p {
    margin-bottom: var(--space-2);
  }
  /* Кнопка во всю ширину как полноценный CTA */
  .referral-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: var(--space-5);
    padding: var(--space-4) var(--space-5);
    font-size: var(--fs-caption);
    letter-spacing: var(--tracking-overline);
  }
  /* Купон — компактный padding */
  .referral-ticket {
    padding: var(--space-5) var(--space-5);
  }

  /* .steps-intro — токен сам уменьшается до --fs-body=16px на мобильном */
  .steps-intro br {
    display: none;
  }
  .steps .section-header {
    margin-bottom: 22px;
  }
  /* Device grid — 2 колонки на мобиле */
  .device-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 4px;
  }
  .device-card {
    /* Отменяем десктопный min-height 280px — из-за него на мобилке
       внутри карточек была огромная пустота. Квадратная форма через
       aspect-ratio даёт единый визуальный ритм без пустого пространства. */
    padding: 18px 14px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    justify-content: center;
  }
  .device-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }
  .device-card__name {
    font-size: 15px;
  }
  .device-card__sub {
    font-size: 11px;
  }
  .steps-note {
    margin-top: 28px;
    padding: 0 12px;
    /* font-size приходит из --fs-body-sm = 15px на мобильном */
  }

  /* ======================================================
     FAQ — стек (заголовок + кнопка сверху, аккордеон снизу)
     ====================================================== */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .faq .section-header {
    text-align: center;
  }
  .faq-support-btn {
    margin: var(--space-6) auto 0;
    padding: var(--space-4) var(--space-5);
  }
  .faq-item {
    padding: 18px 0;
  }
  .faq-question h3 {
    line-height: 1.35;
  }
  .faq-toggle {
    width: 28px;
    height: 28px;
    font-size: var(--fs-body-sm);
  }
  .faq-answer p,
  .faq-answer ul,
  .faq-answer li {
    line-height: 1.55;
  }
  .faq-answer p:first-child {
    padding-top: var(--space-3);
  }
  .faq-answer ul {
    padding-left: var(--space-4);
  }

  /* ======================================================
     О НАС — стек 2×2 статов + терминал + кнопка
     ====================================================== */
  .about-inner {
    padding: var(--space-6) var(--space-5);
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-4);
    margin: 28px 0 32px;
    padding: 28px 0;
  }
  .about-stat-num {
    font-size: 56px;
  }
  .about-stat-label {
    margin-top: var(--space-2);
  }
  .about-terminal {
    margin-bottom: var(--space-6);
  }
  .about-terminal-bar {
    padding: var(--space-3) var(--space-3);
  }
  .about-terminal-body {
    padding: var(--space-4) var(--space-4);
    line-height: 1.7;
  }
  .about-cta .btn-primary {
    width: 100%;
    max-width: 280px;
    padding: var(--space-4) var(--space-5);
    justify-content: center;
  }

  /* ======================================================
     ФУТЕР — стек: бренд / навигация / поддержка
     ====================================================== */
  .site-footer {
    padding: var(--space-6) var(--space-5);
    margin-top: var(--space-7);
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    padding: 0;
  }
  .site-footer__brand {
    align-items: center;
  }
  .site-footer__nav {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  /* footer-* font-size приходят из --fs-body-sm/--fs-caption */

  /* ======================================================
     ФИНАЛЬНАЯ ПОЛИРОВКА — фон, зёрна, размытые круги
     ====================================================== */

  /* --- Сетка фона: мельче и менее навязчиво на узком экране --- */
  body {
    background-size: 140px 140px;
  }

  /* --- Зёрна: оставить только 8 ключевых, остальные скрыть.
         Уменьшить размеры, прижать ближе к центру чтобы не торчали из-за края --- */
  .bean:nth-child(2),
  .bean:nth-child(4),
  .bean:nth-child(6),
  .bean:nth-child(8),
  .bean:nth-child(10),
  .bean:nth-child(12),
  .bean:nth-child(14),
  .bean:nth-child(16),
  .bean:nth-child(18) {
    display: none;
  }
  .bean:nth-child(1)  { left: 6%; }
  .bean:nth-child(3)  { left: 28%; }
  .bean:nth-child(5)  { left: 8%; }
  .bean:nth-child(7)  { left: 18%; }
  .bean:nth-child(9)  { left: 4%; }
  .bean:nth-child(11) { left: 14%; }
  .bean:nth-child(13) { left: 32%; }
  .bean:nth-child(15) { left: 10%; right: auto; }
  .bean:nth-child(17) { left: 22%; right: auto; }
  /* Уменьшаем размеры зёрен на мобиле */
  .bean svg {
    transform-origin: center;
  }
  .bean:nth-child(1) svg  { width: 30px; height: 30px; }
  .bean:nth-child(3) svg  { width: 26px; height: 26px; }
  .bean:nth-child(5) svg  { width: 36px; height: 36px; }
  .bean:nth-child(7) svg  { width: 22px; height: 22px; }
  .bean:nth-child(9) svg  { width: 24px; height: 24px; }
  .bean:nth-child(11) svg { width: 28px; height: 28px; }
  .bean:nth-child(13) svg { width: 22px; height: 22px; }
  .bean:nth-child(15) svg { width: 26px; height: 26px; }
  .bean:nth-child(17) svg { width: 32px; height: 32px; }

  /* --- Размытые декоративные круги в features/pricing/steps/faq:
         уменьшить чтобы не торчали за края мобильного экрана --- */
  .features::before,
  .features::after,
  .pricing::before,
  .pricing::after,
  .steps::before,
  .steps::after,
  .faq::before,
  .faq::after {
    width: 280px !important;
    height: 280px !important;
    filter: blur(70px) !important;
  }

  /* --- Body padding: чтобы зёрна не приклеивались к самому краю --- */
  .beans-container {
    padding: 0 8px;
  }
}

/* ===================================================================
   TABLET NAVBAR (769–1023px) — drawer-режим как mobile
   На этом диапазоне 6 ссылок (≈530px при font 13px) не помещаются
   даже в самом компактном горизонтальном виде, поэтому используем
   тот же drawer что на mobile. Гамбургер показывается, ссылки скрыты.
   =================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
  .nav {
    padding: 16px 28px;
  }
  .nav-links {
    display: none;
  }
  .nav-right > .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-right {
    gap: 12px;
  }
  .nav-logo {
    font-size: 16px;
  }
  .nav-logo-vpn {
    font-size: 14px;
  }
  .theme-btn {
    width: 40px;
    height: 40px;
  }
}

/* ===================================================================
   LAPTOP NAVBAR (1024–1439px) — компактный horizontal
   На MacBook 13/14 места хватает на 6 ссылок при компактных
   font-size 13px и уменьшенных padding/gap. С 1440px — полный desktop.
   =================================================================== */
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav {
    padding: 18px 32px;
  }
  .nav-logo {
    font-size: 16px;
  }
  .nav-logo-vpn {
    font-size: 14px;
  }
  .nav-links {
    max-width: none;
    margin: 0 20px;
    flex: 1;
    justify-content: space-evenly;
  }
  .nav-link {
    font-size: 13px;
    letter-spacing: 0;
  }
  .nav-right {
    gap: 12px;
  }
  .nav-cta {
    padding: 10px 18px;
    font-size: 14px;
  }
  .theme-btn {
    width: 40px;
    height: 40px;
  }
  .theme-btn-icon {
    width: 18px;
    height: 18px;
  }
  .nav-hamburger {
    display: none;
  }
}

/* ===================================================================
   FEATURES — tablet/small-laptop layout
   Без этих правил 7 карточек идут в 1 ряд → каждая ~140px и текст
   ломается по слогам. Делаем 2 колонки на tablet, 3 на small-laptop.
   =================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
  .features-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(245, 230, 211, 0.08);
  }
  /* 7 карточек в 2-колоночной сетке: 3 ряда по 2 + одна одиноко.
     7-я получает full-width во весь последний ряд. */
  .features-strip > .feature-item:nth-child(7) {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .features-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
  /* 7 карточек в 3-колоночной сетке: 2 ряда по 3 + одна одиноко в 3-м.
     7-я получает full-width — выглядит как завершение, а не «забыли». */
  .features-strip > .feature-item:nth-child(7) {
    grid-column: 1 / -1;
  }
}

/* ===================================================================
   MARQUEE — собрать иконки плотнее на laptop/desktop-medium
   При max-width 1600 на viewport'ах 1024-1599 justify-content: space-
   around распределяет 9 иконок + «/» по всей ширине → разделитель «/»
   болтается с огромным gap. Сжимаем трек, разделитель в gap уменьшаем.
   =================================================================== */
@media (min-width: 769px) and (max-width: 1599px) {
  .marquee-divider {
    font-size: 40px;
  }
}

/* ===================================================================
   ABOUT — уменьшить нижний отступ на tablet/laptop
   --section-pad-y = 120px создаёт ~280px пустоты между кнопкой
   «Telegram-канал» и footer (padding-bottom about 120 + footer
   margin-top 64 + внутренний грид). На tablet/laptop сжимаем.
   =================================================================== */
@media (min-width: 769px) and (max-width: 1279px) {
  .about {
    padding-bottom: 56px;
  }
}

/* ===================================================================
   PRICING — tablet & laptop layout (769–1439)
   В 4-колоночном flex-cascade ширина карточек меньше 300px
   на этих viewport'ах → разные min-height (480/540/600/660)
   создают визуальный «провал» первой карточки на 100+px ниже
   остальных. Полный cascade красиво работает только от 1440px,
   где карточки получают ≥300px ширины.
   Решение: 2×2 grid с одинаковой высотой до 1440px.
   =================================================================== */
@media (min-width: 769px) and (max-width: 1439px) {
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    /* row 48px — бейджи «САМЫЙ ПОПУЛЯРНЫЙ» / «ЛУЧШАЯ ЦЕНА»
       сидят поверх верхнего края второй строки и перекрывали
       карточки первой при gap: 16px */
    gap: 48px 16px;
  }
  .price-card,
  .price-card:nth-child(1),
  .price-card:nth-child(2),
  .price-card:nth-child(3),
  .price-card:nth-child(4) {
    flex: none;
    min-height: 0;
  }
}

/* ===================================================================
   DEVICE-GRID — tablet/laptop layout
   По умолчанию 6 колонок — на <1280 устройства сжимаются и
   обрезаются справа. На tablet 3×2, на laptop 3×2.
   =================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
  .device-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .device-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ======================================================
   Respect prefers-reduced-motion (WCAG 2.3.3)
   Для пользователей с вестибулярными расстройствами / мигренью:
   «Уменьшить движение» в системных настройках → отключаем анимации.
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
