/* LargoVPN — сайт. Минимализм: тёмный фон, крупный шрифт, один акцентный цвет.
   Сначала стили для телефона, ниже — дополнения для больших экранов. */

/* Шрифты лежат на нашем сервере (site/fonts), сторонние сайты не запрашиваются */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Знак рубля: в основные наборы шрифтов он не входит, поэтому отдельный крошечный файл */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/onest-rub.woff2") format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/unbounded-rub.woff2") format("woff2");
  unicode-range: U+20BD;
}
/* Пожелание на обороте подарочной карты: от руки, как в приложении */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/caveat-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+2116;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00BB, U+2013-2014, U+2019, U+201C-201E, U+2026;
}

:root {
  --bg: #0b0f0c;
  --bg-2: #121813;
  --text: #f1f4ef;
  --muted: #8d998f;
  --line: rgba(241, 244, 239, .1);
  --accent: #7deb9a;

  --display: "Unbounded", system-ui, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --curtain: cubic-bezier(.76, 0, .24, 1);
  /* Пружина, как в iOS: движение чуть пролетает и возвращается. Там, где браузер не умеет linear(),
     остаётся близкая кривая */
  --spring: cubic-bezier(.2, .9, .3, 1.06);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.037, 0.129, 0.248, 0.378, 0.506, 0.622, 0.724, 0.809, 0.878, 0.931, 0.97, 0.997, 1.015, 1.025, 1.03, 1.032, 1.03, 1.027, 1.023, 1.019, 1.015, 1.011, 1.008, 1.006, 1.004, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #2b352e var(--bg); scrollbar-width: thin; }
/* Плавный переход между страницами сайта */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::selection { background: rgba(125, 235, 154, .32); color: #fff; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
section { scroll-margin-top: 60px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* --- Типографика */

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(44px, 13.4vw, 128px); line-height: .95; }
h2 { font-size: clamp(32px, 8.6vw, 76px); line-height: 1.02; text-wrap: balance; }
h3 { font: 600 18px/1.3 var(--sans); }
.eyebrow {
  margin-bottom: 18px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Кнопки и ссылки */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 16px/1 var(--sans); white-space: nowrap; text-decoration: none;
  color: var(--bg); background: var(--accent);
  transition: transform .6s var(--spring), background-color .3s;
}
.btn:hover { background: #9af2b2; transform: translateY(-2px); }
/* Нажатие быстрое, а отпускание пружинит обратно */
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }
.link {
  display: inline-flex; align-items: center; height: 56px;
  font: 500 16px/1 var(--sans); text-decoration: none; color: var(--text);
}
.link::after { content: "→"; margin-left: 10px; transition: transform .3s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* --- Загрузка: «Largo» по буквам, счётчик до 100% и полоса. Потом экран загрузки
   сжимается в экран телефона на первом экране и растворяется (это делает app.js) */

.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(70% 50% at 80% 100%, rgba(125, 235, 154, .1), transparent 70%), var(--bg);
  animation: preloader-fallback .01s 4s forwards; /* если скрипт не загрузился */
}
.preloader__word {
  position: absolute; top: calc(22px + env(safe-area-inset-top)); left: var(--gutter);
  display: flex; overflow: hidden;
  font: 700 22px/1.25 var(--display); letter-spacing: -.03em;
  transition: opacity .35s, transform .5s var(--curtain);
}
.preloader__word span { display: block; transform: translateY(110%); animation: letter-up .8s var(--ease) forwards; }
.preloader__word span:nth-child(2) { animation-delay: .06s; }
.preloader__word span:nth-child(3) { animation-delay: .12s; }
.preloader__word span:nth-child(4) { animation-delay: .18s; }
.preloader__word span:nth-child(5) { animation-delay: .24s; color: var(--accent); }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: calc(36px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-start; gap: .04em;
  font: 700 clamp(120px, 36vw, 320px)/.78 var(--display); letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
  transition: opacity .35s, transform .5s var(--curtain);
}
.preloader__count span { margin-top: .08em; font-size: .24em; letter-spacing: 0; color: var(--accent); }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); transition: opacity .3s; }
.preloader__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.preloader.is-leaving .preloader__word,
.preloader.is-leaving .preloader__count { opacity: 0; transform: translateY(-28px); }
.preloader.is-leaving .preloader__bar { opacity: 0; }
@keyframes letter-up { to { transform: none; } }
@keyframes preloader-fallback { to { opacity: 0; visibility: hidden; } }

/* --- Шапка */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--gutter); border-radius: 999px;
  transition: top .6s var(--spring), left .6s var(--spring), right .6s var(--spring), height .6s var(--spring), padding .6s var(--spring), background-color .4s, box-shadow .4s;
}
/* Страницу прокрутили: шапка становится парящей стеклянной капсулой */
.top.is-scrolled {
  top: 10px; left: max(12px, calc(50% - 590px)); right: max(12px, calc(50% - 590px));
  height: 54px; padding: 0 7px 0 20px;
  background: rgba(24, 31, 26, .58);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 .5px rgba(255, 255, 255, .1), 0 16px 40px -16px rgba(0, 0, 0, .85);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top.is-scrolled { background: rgba(24, 31, 26, .96); }
}
.logo { font: 700 17px/1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.top__nav { display: none; }
.top__nav a { position: relative; }
/* Раздел, который сейчас на экране */
.top__nav a.is-current { color: var(--text); }
.top__nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: translateX(-50%) scale(0); transition: opacity .3s, transform .3s var(--ease);
}
.top__nav a.is-current::after { opacity: 1; transform: translateX(-50%); }
.top .btn { margin-left: auto; }
/* «Личный кабинет» светлее разделов: это не место на странице, а вход */
.top__nav .top__cabinet { color: var(--text); }
/* На телефоне капсула разворачивается в меню разделов: нижняя кнопка уже ведёт в бота */
.top__menu { display: none; }
@media (max-width: 767px) {
  .top { flex-wrap: wrap; align-content: flex-start; overflow: hidden; gap: 0 24px; }
  .logo { line-height: 64px; }
  .top.is-scrolled .logo { line-height: 54px; }
  .top .btn { display: none; }
  .top__menu {
    display: grid; align-content: center; justify-items: center; gap: 6px; flex: none;
    width: 44px; height: 44px; margin: 10px -8px 0 auto; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .top.is-scrolled .top__menu { margin: 5px 0 0 auto; }
  .top__menu i { width: 20px; height: 2px; border-radius: 1px; background: var(--text); transition: transform .4s var(--spring); }
  .top.is-open .top__menu i:first-child { transform: translateY(4px) rotate(45deg); }
  .top.is-open .top__menu i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .top__nav { display: flex; flex-direction: column; flex-basis: 100%; order: 3; padding: 6px 0 14px; opacity: 0; transition: opacity .25s; }
  .top__nav a { padding: 11px 0; font-size: 17px; font-weight: 500; color: var(--text); text-decoration: none; }
  .top__nav a::after { display: none; }
  .top.is-open { height: 350px; border-radius: 27px; }
  .top.is-open .top__nav { opacity: 1; }
}

/* --- Первый экран */

.hero {
  display: flex; flex-direction: column;
  min-height: 100svh;
  padding: 104px var(--gutter) 24px;
}
.line { display: block; overflow: hidden; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.line > span { display: block; }
.lead { margin-top: 22px; max-width: 30em; font-size: 17px; color: var(--muted); }
.hero__cta { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 30px; }
.hero__cta .link { justify-content: center; }
/* QR-код нужен только на компьютере: с телефона бот открывается кнопкой */
.hero__qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .hero__qr { display: inline-flex; align-items: center; gap: 16px; margin-top: 32px; color: var(--muted); font-size: 15px; line-height: 1.35; text-decoration: none; }
  .hero__qr img { width: 96px; height: 96px; border-radius: 16px; transition: transform .6s var(--spring); }
  .hero__qr:hover img { transform: scale(1.5) translateX(12px); }
}
/* Телефон с экранами приложения. Рамка — стилями: титановый край, боковые кнопки,
   Dynamic Island и строка состояния. Лягушка сидит у нижнего угла */
.hero__device { position: relative; flex: 1; display: flex; justify-content: center; margin-top: 44px; padding-bottom: 84px; }
.hero__device::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: 10%; bottom: 0;
  background: radial-gradient(closest-side, rgba(125, 235, 154, .16), transparent);
  pointer-events: none;
}
.device { position: relative; width: min(72vw, 300px); perspective: 1400px; }
/* Телефон под углом. Загрузка сжимается в ровный телефон, поэтому до is-ready он стоит прямо,
   а потом поворачивается (tilt-in). Сзади — второй слой корпуса: он даёт телефону толщину */
.device__tilt {
  /* --p ставит app.js: чем дальше прокрутили страницу, тем ровнее телефон и тем он ближе */
  --tilt: rotateX(calc(7deg * (1 - var(--p, 0)))) rotateY(calc(-20deg * (1 - var(--p, 0)))) rotateZ(calc(3deg * (1 - var(--p, 0)))) scale(calc(1 + .08 * var(--p, 0)));
  position: relative; z-index: 1;
  transform: var(--tilt);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.js:not(.is-ready) .device__tilt { transform: none; }
.is-ready .device__tilt { animation: tilt-in 3.2s cubic-bezier(.45, .05, .2, 1) .4s backwards, float 7s ease-in-out infinite; }
.device__tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: 52px;
  background: linear-gradient(150deg, #3a403b, #0d0f0d 60%, #2a2f2b);
  transform: translateZ(-14px);
}
/* Наведение мышью, на телефоне — нажатие (data-device в site/app.js) */
.device.is-zoomed .device__tilt { transform: rotateX(2deg) rotateY(-7deg) rotateZ(1deg) scale(1.1); }
.device.is-following .device__tilt { transition: transform .15s linear; }
@media (hover: hover) and (pointer: fine) {
  .device:hover .device__tilt { transform: rotateX(2deg) rotateY(-7deg) rotateZ(1deg) scale(1.12); }
}
.phone {
  position: relative; z-index: 1; padding: 10px; border-radius: 52px;
  background: linear-gradient(150deg, #4c524d 0%, #1d211e 24%, #121513 62%, #3d433e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .2),
    inset 0 0 0 3px #060706,
    0 60px 90px -40px rgba(0, 0, 0, .95),
    0 30px 70px -30px rgba(125, 235, 154, .22);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 3px; background: #2c312d; }
.phone::before { left: -3px; top: 23%; height: 13%; }
.phone::after { right: -3px; top: 27%; height: 10%; }
.phone__screen {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 600 / 1382; border-radius: 42px; background: var(--bg);
}
/* Снимки экрана — ниже строки состояния, сменяют друг друга плавно */
/* Блик на стекле */
.phone__screen::after {
  content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 255, 255, .1), transparent 34%);
}
.phone__screen img {
  position: absolute; left: 0; top: 6.1%; width: 100%;
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
.phone__screen img.is-active { opacity: 1; transform: none; }
.phone__status {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 6.1%;
  display: flex; align-items: center; justify-content: space-between; padding: 2% 9% 0 12%;
}
.phone__status b { font: 600 13px/1 var(--sans); }
.phone__status i { position: relative; width: 22px; height: 11px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.5px rgba(241, 244, 239, .75); }
.phone__status i::after { content: ""; position: absolute; left: 2.5px; top: 2.5px; bottom: 2.5px; right: 6px; border-radius: 1.5px; background: var(--text); }
.phone__island {
  position: absolute; z-index: 2; left: 50%; top: 1.5%;
  width: 31%; height: 3.6%; border-radius: 999px; background: #000;
  transform: translateX(-50%);
}
.hero__frog {
  position: absolute; z-index: 2; left: -15%; bottom: -13%; width: 36%;
  transform-origin: 50% 92%;
  animation: sway 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes tilt-in { from { transform: none; } }
/* Лёгкое покачивание на воде */
@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

/* Появление первого экрана. Телефон проявляется, пока экран загрузки сжимается в него,
   затем выезжают строки заголовка, текст, кнопки и лягушка */
.js .hero h1 .line > span { transform: translateY(105%); }
.js .hero [data-hero-in] { opacity: 0; transform: translateY(20px); }
.js .hero [data-hero-device] { opacity: 0; }
.js .hero .hero__frog { opacity: 0; translate: 0 40px; }
.is-revealing .hero [data-hero-device] { opacity: 1; transition: opacity .7s .5s; }
.is-ready .hero h1 .line > span { transform: none; transition: transform 1.1s var(--ease) .05s; }
.is-ready .hero h1 .line + .line > span { transition-delay: .15s; }
.is-ready .hero [data-hero-in] { opacity: 1; transform: none; transition: opacity .8s .25s, transform .9s var(--ease) .25s; }
.is-ready .hero .hero__cta[data-hero-in] { transition-delay: .4s; }
.is-ready .hero [data-hero-device] { opacity: 1; }
.is-ready .hero .hero__frog { opacity: 1; translate: 0 0; transition: opacity .8s .45s, translate 1.1s var(--ease) .45s; }

/* Появление блоков при прокрутке */
.js [data-reveal] { opacity: 0; filter: blur(8px); transform: translateY(28px); transition: opacity .8s, filter .8s, transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }
.js .d1[data-reveal] { transition-delay: .1s; }
.js .d2[data-reveal] { transition-delay: .2s; }
/* Заголовки разделов выезжают построчно: строки собирает app.js */
.js [data-lines]:not(.is-split) { opacity: 0; }
.js [data-lines] .line > span { transform: translateY(105%); }
.js [data-lines].is-in .line > span { transform: none; transition: transform 1.1s var(--ease); }

/* Наклон карточек за курсором (app.js): блик идёт за мышью, пока она над карточкой */
.tilt { position: relative; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, .09), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.tilt.is-tilting::after { opacity: 1; }
.js [data-reveal].is-tilting { transition: transform .14s linear, opacity .8s, filter .8s; transition-delay: 0s; }

/* --- Почему мы: плитки разного размера */

.why { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 0; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.bento li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 156px; padding: 22px; border-radius: 26px;
  background: var(--bg-2);
}
.bento b { font: 600 clamp(32px, 10vw, 54px)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.bento h3 { font: 600 22px/1.2 var(--display); letter-spacing: -.02em; }
.bento p { margin-top: 8px; color: var(--muted); }
.bento span { color: var(--muted); }
/* Числа докручиваются при появлении, как колёса счётчика (app.js). Ширина не меняется,
   поэтому слово рядом стоит на месте */
[data-count-to] { display: inline-block; vertical-align: bottom; }
.bento [data-count-to] { color: inherit; }
[data-count-to].is-rolling { clip-path: inset(0 -.5em); }
.odo { display: block; font-style: normal; white-space: pre-line; animation: odo 1.5s var(--spring) .15s backwards; }
@keyframes odo { from { transform: none; } to { transform: translateY(-75%); } }
.bento__big, .bento__wide { grid-column: 1 / -1; }
.bento li.bento__wide { min-height: 0; }
.bento li.bento__big { overflow: hidden; padding-bottom: 0; }
.bento__big img { width: min(82%, 340px); margin: 0 auto; }

/* --- Подключение */

.steps { max-width: var(--max); margin: 0 auto; padding: 112px var(--gutter) 0; }
.steps__list { margin: 36px 0 0; padding: 0; list-style: none; }
.steps__list { position: relative; }
.steps__list li { padding: 24px 0; border-top: 1px solid var(--line); }
/* Линия растёт при прокрутке, шаги загораются по очереди (--done и is-lit ставит app.js) */
.steps__list.is-live::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--accent);
  transform: scaleY(var(--done, 0)); transform-origin: top; transition: transform .15s linear;
}
.steps__list.is-live li { padding-left: 18px; }
.steps__list.is-live .num { color: var(--muted); transition: color .3s; }
.steps__list.is-live li.is-lit .num { color: var(--accent); }
.num { display: block; margin-bottom: 14px; font: 600 14px/1 var(--display); color: var(--accent); }
.steps__frog { width: 124px; height: 112px; margin-bottom: 14px; object-fit: contain; object-position: left bottom; }
.steps__list h3 { font: 600 22px/1.2 var(--display); letter-spacing: -.02em; }
.steps__list p { margin-top: 8px; color: var(--muted); }

.happ { margin-top: 40px; padding: 24px 20px; border-radius: 24px; background: var(--bg-2); scroll-margin-top: 84px; }
.happ__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.happ h3 { font: 600 22px/1.2 var(--display); letter-spacing: -.02em; }
.happ__detected { font-size: 14px; color: var(--muted); }
.tabs {
  position: relative; display: flex; gap: 6px;
  margin: 20px -20px 18px; padding: 0 20px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1;
  flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  font: 500 15px/1 var(--sans); color: var(--muted);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; transition: color .25s, background-color .25s, box-shadow .25s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--bg); background: var(--text); box-shadow: none; }
/* Капсула переезжает к выбранному устройству, как переключатель в iOS (ставит её app.js) */
.js .tab[aria-selected="true"] { background: none; }
.tabs__thumb { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--text); }
.tabs__thumb.is-live { transition: transform .6s var(--spring), width .6s var(--spring); }
.panel { display: grid; gap: 8px; animation: fade .4s var(--ease); }
/* Устройство над тремя шагами: шаги и ссылки подстраиваются под него */
.steps__device { margin-top: 28px; }
.steps__device .tabs { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.steps__device .happ__detected { margin-top: 10px; }
.panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.store {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 12px 20px; border-radius: 16px; text-decoration: none;
  background: rgba(241, 244, 239, .05);
  transition: background-color .25s;
}
.store:hover { background: rgba(241, 244, 239, .1); }
.store span { font-weight: 600; }
.store small { font-size: 13px; color: var(--muted); text-align: right; }

/* --- Вопросы */

.faq { max-width: 880px; margin: 0 auto; padding: 112px var(--gutter) 0; }
.search {
  display: block; width: 100%; height: 56px; margin-top: 32px; padding: 0 20px;
  border: 0; border-radius: 16px; outline: 0;
  font: 500 16px/1 var(--sans); color: var(--text);
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-appearance: none; appearance: none;
  transition: box-shadow .25s;
}
.search:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.search::placeholder { color: var(--muted); }
.search::-webkit-search-cancel-button { filter: invert(.6); }
.faq__count { min-height: 22px; margin: 12px 2px 4px; font-size: 14px; color: var(--muted); }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0;
  font: 500 17px/1.35 var(--sans);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  font: 400 26px/1 var(--display); color: var(--muted);
  transform: translateY(-50%); transition: transform .35s var(--ease), color .25s;
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 36px 22px 0; color: var(--muted); }
.qa mark { padding: 0 2px; border-radius: 4px; background: rgba(125, 235, 154, .25); color: inherit; }
/* Ничего не нашли — лягушка свешивается сверху */
.faq__empty { padding: 8px 0 12px; text-align: center; color: var(--muted); }
.faq__empty img { width: 120px; margin: 0 auto 18px; transform-origin: 50% 92%; animation: drop .9s var(--ease) both, sway 6s ease-in-out infinite; }
.faq__empty a { color: var(--accent); text-underline-offset: 3px; }
@keyframes drop { from { transform: translateY(-80px); opacity: 0; } }

/* --- Финал */

.final { padding: 128px var(--gutter) 112px; text-align: center; }
.final__frog { width: min(46%, 190px); margin: 0 auto 28px; }
.final p { margin: 18px auto 0; max-width: 26em; font-size: 17px; color: var(--muted); }
.final__cta { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 32px; }
.final__cta .btn { width: min(100%, 360px); }

/* --- Подвал */

.foot {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.foot .logo { color: var(--text); }
/* Лягушка спит на линии подвала и еле заметно дышит. Если нажать, сонно отвечает */
.foot__sleeper {
  position: absolute; right: var(--gutter); bottom: 100%; width: clamp(120px, 34vw, 170px); margin-bottom: -7px;
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.foot__frog { width: 100%; transform-origin: 50% 90%; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.015, .985); } }
.foot__sleeper:active .foot__frog { animation: none; transform: scale(.97); }
.foot__bubble {
  position: absolute; right: 8px; bottom: 100%; margin-bottom: 4px; padding: 8px 12px; border-radius: 14px 14px 4px 14px; white-space: nowrap;
  font: 500 14px/1.2 var(--sans); color: var(--bg); background: var(--text);
  animation: fade .3s var(--ease);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot__links a {
  text-decoration: none; transition: color .2s, background-size .3s var(--ease);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
}
.foot__links a:hover { background-size: 100% 1px; }
.foot__links a:hover { color: var(--text); }
.foot__copy { width: 100%; }

/* Кнопка внизу экрана на телефоне: выезжает, когда других кнопок не видно */
.sticky-cta {
  position: fixed; z-index: 40; left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .85);
  transform: translateY(160%);
  transition: transform .5s var(--ease);
}
.sticky-cta:hover { transform: translateY(160%); }
.sticky-cta.is-on, .sticky-cta.is-on:hover { transform: none; }

/* --- Цены: карточки. Главное в них — цена в день */

.prices { position: relative; isolation: isolate; max-width: var(--max); margin: 0 auto; padding: 112px var(--gutter) 0; }
/* Цвет выбранной карты мягко растекается по фону раздела, как в приложении: зелёный, серебряный, золотой.
   Цвет зарегистрирован как свойство, поэтому перетекает плавно, а не меняется скачком */
@property --glow { syntax: "<color>"; inherits: false; initial-value: transparent; }
.prices::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40%; width: min(1100px, 100vw); height: min(1100px, 160vw);
  pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  transition: --glow 1s var(--ease);
}
.prices[data-glow="green"]::before { --glow: rgba(125, 235, 154, .17); }
.prices[data-glow="silver"]::before { --glow: rgba(196, 212, 222, .21); }
.prices[data-glow="gold"]::before { --glow: rgba(224, 174, 76, .27); }
.prices__list { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
/* Телефон: переключатель срока, как в iOS, и одна большая цена вместо четырёх карточек */
.switch { display: none; }
@media (max-width: 719px) {
  .js .switch { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; padding: 4px; border-radius: 20px; background: var(--bg-2); }
  .switch__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 16px; background: var(--text); transition: transform .6s var(--spring); }
  .switch button { position: relative; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 14px/1 var(--sans); color: var(--muted); transition: color .25s; }
  .switch button.is-on { color: var(--bg); }
  .js .prices__list { margin-top: 14px; }
  .js .prices__list li { display: none; opacity: 1; filter: none; transform: none; }
  .js .prices__list li.is-picked { display: block; box-shadow: none; }
  .js .prices__list li.is-picked .prices__day { animation: price-in .6s var(--spring) backwards; }
  .js .prices__list li em { top: 22px; right: 22px; }
  /* Метка «Выгоднее всего» стоит рядом со сроком, а при крупном шрифте в телефоне переходит на строку ниже,
     вместо того чтобы наезжать на него */
  .js .prices__list li.is-picked { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: 12px; }
  .js .prices__list li.is-picked > * { flex: 1 1 100%; }
  .js .prices__list li.is-picked h3 { flex: 1 1 auto; order: -1; }
  .js .prices__list li.is-picked em { position: static; flex: none; margin-top: -2px; }
}
@keyframes price-in { from { opacity: 0; filter: blur(5px); transform: translateY(.3em); } }
.prices__list li { position: relative; padding: 24px 22px; border-radius: 26px; background: var(--bg-2); }
.prices__list h3 { font: 600 19px/1.2 var(--display); letter-spacing: -.02em; }
.prices__day { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; font: 600 44px/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.prices__day small { font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.prices__total { margin-top: 12px; color: var(--muted); }
.prices__total b { font-weight: 600; color: var(--text); }
.prices__list li[data-term] { cursor: pointer; }
.prices__list li.is-picked { box-shadow: inset 0 0 0 1.5px var(--accent); }
.prices__list em {
  position: absolute; top: 22px; right: 20px; padding: 6px 10px; border-radius: 999px;
  font: 600 12px/1 var(--sans); color: var(--bg); background: var(--accent);
}
.prices__notes { margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); }
.prices__notes li { padding: 4px 0; }
.prices__notes b { font-weight: 600; color: var(--text); }
.prices__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 28px; }

/* Карта подписки: цвет зависит от выбранного срока, лицевые стороны сменяются плавно */
.tier { margin-top: 28px; text-align: center; }
.tier__spin { width: min(100%, 360px); margin: 0 auto; perspective: 1400px; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.tier__inner { position: relative; transform-style: preserve-3d; transition: transform .85s var(--spring); }
.tier__spin.is-flipped .tier__inner { transform: rotateY(180deg); }
.tier__spin.is-spinning { cursor: grabbing; }
.tier__spin.is-spinning .tier__inner { transition: none; }
.tier__card, .tier__back { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tier__back {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 16px 18px; overflow: hidden; border-radius: 22px; text-align: left;
  background: linear-gradient(150deg, #1c2d21, #101712 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transform: rotateY(180deg) translateZ(.5px); /* Ближе к зрителю: Safari не прячет слои на отвёрнутой стороне */
}
.tier__back img { flex: none; width: auto; height: 100%; max-height: 100%; aspect-ratio: 1; border-radius: 12px; }
.tier__back p { font-size: 15px; line-height: 1.3; color: var(--muted); }
.tier__card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; aspect-ratio: 1.586; padding: 18px 20px; border-radius: 22px; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.tier__face {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background: radial-gradient(120% 90% at 100% 0%, rgba(125, 235, 154, .24), transparent 62%), linear-gradient(150deg, #1c2d21, #101712 72%);
}
.tier__card.is-green .tier__face:first-child, .tier__card.is-silver .tier__face--silver, .tier__card.is-gold .tier__face--gold { opacity: 1; }
/* Металл, как в приложении: светлая поверхность, широкие полосы света и тёмная гравировка */
.tier__face--silver, .tier__card.is-silver + .tier__back { background: url("img/brushed.webp") 0 0 / 256px 128px, linear-gradient(112deg, #a0a8af 2%, #cfd5d9 18%, #f6f8f9 30%, #cdd3d8 42%, #adb5bb 53%, #d8dde1 64%, #f1f3f5 72%, #c4cacf 85%, #a3abb2 98%); }
.tier__face--gold, .tier__card.is-gold + .tier__back { background: url("img/brushed.webp") 0 0 / 256px 128px, linear-gradient(112deg, #ab8c50 2%, #d8bf87 18%, #faf0d2 30%, #dcc48c 42%, #ba9c5e 53%, #e3cd9a 64%, #f6eac6 72%, #d1b57a 85%, #ad8e52 98%); }
.tier__card.is-silver { color: #20262b; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
/* Оборот металлической карты тоже металлический: QR на светлой пластине, подпись тёмная, фаска по краю */
.tier__card.is-silver + .tier__back, .tier__card.is-gold + .tier__back {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -1px 1px rgba(40, 30, 10, .35);
}
.tier__card.is-silver + .tier__back p { color: rgba(32, 38, 43, .74); }
.tier__card.is-gold + .tier__back p { color: rgba(46, 35, 12, .76); }
.tier__card.is-gold { color: #2e230c; text-shadow: 0 1px 0 rgba(255, 246, 220, .55); }
.tier__card::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
}
.tier__card.is-changed::after { animation: tier-band .9s var(--ease); }
@keyframes tier-band { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(340%); } }
.tier__top, .tier__text { position: relative; z-index: 1; }
.tier__top { display: flex; align-items: center; gap: 10px; }
.tier__top .logo { font-size: 15px; line-height: 1.2; }
.tier__top small { font-size: 13px; opacity: .8; }
.tier__card.is-silver .logo span, .tier__card.is-gold .logo span { color: inherit; opacity: .75; }
.tier__card img { position: absolute; right: 8px; bottom: 8px; width: auto; height: 72%; max-width: 50%; object-fit: contain; object-position: right bottom; }
.tier__text small { display: block; font-size: 13px; opacity: .8; }
.tier__text b { font: 600 clamp(20px, 5.6vw, 24px)/1.2 var(--display); letter-spacing: -.03em; }
.tier__note { margin-top: 14px; color: var(--muted); }

/* --- Подарочные карты веером */

.giftcards { max-width: var(--max); margin: 0 auto; padding: 112px var(--gutter) 0; overflow: hidden; text-align: center; }
.giftcards__lead { max-width: 30em; margin: 18px auto 0; font-size: 17px; color: var(--muted); }
.fan { position: relative; height: clamp(250px, 76vw, 330px); margin-top: 28px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fcard {
  --card: linear-gradient(135deg, #17694a, #0c3324 58%, #1f8f61);
  position: absolute; left: 50%; bottom: 0; text-align: left; color: #fff;
  width: clamp(220px, 64vw, 300px); aspect-ratio: 1.586; margin-left: calc(clamp(220px, 64vw, 300px) / -2);
  border-radius: 18px; outline: 0; perspective: 1000px;
  transform: rotate(var(--turn));
  transform-origin: 50% 190%;
  transition: transform .9s var(--spring);
}
.fcard:focus-visible .fcard__face { box-shadow: inset 0 0 0 2px var(--accent), 0 22px 40px -20px rgba(0, 0, 0, .9); }
/* Карта в раскрытом веере переворачивается нажатием. Оборот на полпикселя ближе: Safari не прячет слои
   на отвёрнутой стороне, и непрозрачный оборот закрывает лицо */
.fcard__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .85s var(--spring); }
.fcard.is-flipped .fcard__inner { transform: rotateY(180deg); }
.fcard__face {
  position: absolute; inset: 0; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px;
  border-radius: 18px; background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 22px 40px -20px rgba(0, 0, 0, .9);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.fcard__back { justify-content: flex-start; padding-top: 18px; transform: rotateY(180deg) translateZ(.5px); }
.fcard__stripe { flex: none; height: 32px; margin: 0 -16px; background: rgba(0, 0, 0, .72); }
.fcard__wish { margin-top: 12px; font: 600 clamp(19px, 5.6vw, 23px)/1.15 "Caveat", var(--sans); overflow-wrap: anywhere; }
.fcard__back .logo { margin-top: auto; font-size: 12px; opacity: .8; }
/* На телефоне веер раскрывается сам, поэтому раскрытые карты не должны уходить за край экрана */
.fcard:nth-child(1) { --turn: -9deg; --open: -15deg; }
.fcard:nth-child(2) { --turn: -3deg; --open: -5deg; }
.fcard:nth-child(3) { --turn: 3deg; --open: 5deg; }
.fcard:nth-child(4) { --turn: 9deg; --open: 15deg; }
.fan.is-open .fcard { transform: rotate(var(--open)); }
.fcard--birthday { --card: linear-gradient(135deg, #ff8a5c, #e8467a 56%, #8e3bd6); }
.fcard--thanks { --card: linear-gradient(135deg, #5d43cf, #33246f 58%, #7d5df0); }
.fcard--friend { --card: linear-gradient(135deg, #2a2620, #14120f 56%, #a9843e); }
.fcard__top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.fcard .logo { font-size: 13px; }
.fcard .logo span { color: inherit; opacity: .7; }
.fcard__chip {
  width: 32px; height: 24px; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 32%, rgba(90, 62, 14, .4) 32% 35%, transparent 35% 65%, rgba(90, 62, 14, .4) 65% 68%, transparent 68%),
    linear-gradient(0deg, transparent 47%, rgba(90, 62, 14, .4) 47% 53%, transparent 53%),
    linear-gradient(135deg, #f6e3a1, #c9a24a 55%, #f4dd96);
}
.fcard img { position: absolute; right: 6px; bottom: 6px; width: auto; height: 70%; max-width: 50%; object-fit: contain; object-position: right bottom; }
.fcard__text { position: relative; }
.fcard__text small { display: block; font-size: 12px; opacity: .85; }
.fcard__text b { font: 600 18px/1.2 var(--display); letter-spacing: -.03em; }
.giftcards__cta { margin-top: 48px; }

/* --- Страница 404 */

.notfound { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 100svh; padding: 40px var(--gutter); text-align: center; }
.notfound img { width: min(58vw, 240px); height: auto; }
.notfound h1 { margin: 0; font-size: clamp(30px, 8vw, 52px); }
.notfound p { margin: 0 0 8px; color: var(--muted); }

/* --- Документы: соглашение и политика */

.doc-top { padding: 24px var(--gutter); }
.doc { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 96px; }
.doc h1 { font: 600 clamp(22px, 6.4vw, 44px)/1.1 var(--display); letter-spacing: -.03em; }
/* Длинное слово («конфиденциальности») на узком экране или с крупным шрифтом переносится,
   а не уходит за край, где его обрезает overflow-x: clip */
.doc h1, .doc h2 { overflow-wrap: break-word; hyphens: auto; }
.doc__date { margin-top: 12px; color: var(--muted); }
.doc h2 { margin-top: 40px; font: 600 20px/1.25 var(--display); letter-spacing: -.02em; }
.doc p, .doc li { margin-top: 12px; color: #c5ccc6; }
.doc ul { margin: 0; padding-left: 20px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc h2 { scroll-margin-top: 24px; }
/* Оглавление и кнопка наверх собирает doc.js */
.doc-toc { margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: var(--bg-2); }
.doc-toc ol { margin: 0; padding-left: 22px; }
.doc .doc-toc li { margin-top: 6px; color: var(--muted); }
.doc .doc-toc a { color: var(--text); text-decoration: none; }
.doc .doc-toc a:hover { color: var(--accent); }
.doc-up {
  position: fixed; z-index: 30; right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom));
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.doc-up.is-on { opacity: 1; pointer-events: auto; }

/* --- Большие экраны */

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .sticky-cta { display: none; }
  .hero__cta { flex-direction: row; align-items: center; gap: 28px; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento b { font-size: clamp(30px, 3.8vw, 54px); }
  .bento__big { grid-column: span 2; grid-row: span 2; }
  .bento__wide { grid-column: span 2; }
  .bento li.bento__wide { min-height: 156px; }
  .steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps__list.is-live::after { right: 0; bottom: auto; width: auto; height: 2px; transform: scaleX(var(--done, 0)); transform-origin: left; }
  .steps__list.is-live li { padding-left: 0; }
  .prices__list { grid-template-columns: 1fr 1fr; }
  .prices__cta { flex-direction: row; align-items: center; gap: 28px; }
  .fan { height: 340px; }
  .fcard:nth-child(1) { --open: -24deg; }
  .fcard:nth-child(2) { --open: -8deg; }
  .fcard:nth-child(3) { --open: 8deg; }
  .fcard:nth-child(4) { --open: 24deg; }
  .happ { padding: 32px; }
  .tabs { width: fit-content; max-width: 100%; margin: 24px 0; padding: 4px; gap: 2px; flex-wrap: wrap; overflow: visible; border-radius: 24px; background: rgba(241, 244, 239, .06); }
  .tab { box-shadow: none; }
  .panel { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .store { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 76px; }
  .store small { text-align: left; }
  .final__cta { flex-direction: row; justify-content: center; gap: 28px; }
  .final__cta .btn { width: auto; }
  .foot__copy { width: auto; margin-left: auto; }
}

/* Меню разделов появляется уже на планшете */
@media (min-width: 768px) {
  .top__nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
  .top__nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
  .top__nav a:hover { color: var(--text); }
  .top .btn { margin-left: 8px; }
}

@media (min-width: 1024px) {
  .top__nav { gap: 32px; font-size: 15px; }

  .hero {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px;
    max-width: var(--max); margin: 0 auto; padding-top: 64px; padding-bottom: 0;
  }
  h1 { font-size: clamp(60px, 6vw, 88px); }
  .lead { font-size: 19px; }
  .hero__device { align-self: center; margin-top: 0; padding-bottom: 0; }
  .device { width: min(310px, 38svh); }
  /* Лягушка внутри кадра даже на экранах высотой 800 px */
  .hero__frog { left: -24%; bottom: 3%; width: 42%; }

  .why { padding-top: 160px; }
  .prices__list { grid-template-columns: repeat(4, 1fr); }
  .prices__list em { top: -12px; right: 16px; }
  .steps { padding-top: 160px; }
  .prices { padding-top: 160px; }
  .giftcards { padding-top: 160px; }
  .fan { height: 420px; }
  .fcard { width: 340px; margin-left: -170px; transition: transform .9s var(--spring), translate .5s var(--spring); }
  .fcard:nth-child(1) { --open: -30deg; }
  .fcard:nth-child(2) { --open: -10deg; }
  .fcard:nth-child(3) { --open: 10deg; }
  .fcard:nth-child(4) { --open: 30deg; }
  .faq { padding-top: 160px; }
  .final { padding: 180px var(--gutter) 160px; }
  h3 { font-size: 19px; }
}

/* Большие мониторы: заголовок и телефон растут вместе с экраном */
@media (min-width: 1440px) {
  :root { --max: 1360px; }
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  h1 { font-size: clamp(88px, 7vw, 120px); }
  .lead { font-size: 22px; }
  .device { width: min(360px, 40svh); }
}

@media (hover: hover) and (pointer: fine) {
  .fan:hover .fcard { transform: rotate(var(--open)); }
  .fcard:hover { translate: 0 -14px; z-index: 2; }
}

/* --- Для тех, кто выключил анимации в системе */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preloader { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero h1 .line > span, .js .hero [data-hero-in], .js .hero [data-hero-device], .js .hero .hero__frog, .js [data-reveal] { opacity: 1; filter: none; transform: none; translate: none; }
  .js [data-lines]:not(.is-split) { opacity: 1; }
}

/* --- Страница «LargoVPN для Windows» (windows.html). Сначала телефон */
.win { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 96px; }
.win__hero { text-align: center; }
.win__frog { width: 132px; height: auto; margin: 8px auto 0; display: block; animation: win-sway 3.2s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes win-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .win__frog { animation: none; } }
.win h1 { margin-top: 18px; font: 700 clamp(34px, 10vw, 68px)/1 var(--display); letter-spacing: -.04em; }
.win h1 span { display: block; color: var(--accent); }
.win__lead { margin: 18px auto 0; max-width: 30ch; font-size: 18px; color: #c5ccc6; }
.win__cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 32px; }
.win__btn { height: 64px; font-size: 18px; white-space: normal; text-align: center; }
.win__meta { font-size: 13px; color: var(--muted); }
.win__alt { font-size: 14px; color: var(--accent); text-underline-offset: 3px; }
.win__note { margin-top: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(241, 244, 239, .05); color: #c5ccc6; font-size: 14px; }
.win__note a { color: var(--accent); }
.win__block { margin-top: 72px; }
.win__block h2 { font: 600 clamp(22px, 6vw, 34px)/1.1 var(--display); letter-spacing: -.03em; }
.win__steps { margin-top: 20px; }
.win__list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.win__list li { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; background: rgba(241, 244, 239, .05); }
.win__list b { font: 600 17px/1.2 var(--display); letter-spacing: -.02em; }
.win__list span { color: var(--muted); }
@media (min-width: 720px) {
  .win__cta { align-items: center; }
  .win__btn { padding: 0 44px; }
  .win__list { grid-template-columns: 1fr 1fr; }
}
