/* PrixVPN — landing sketch v7.1. Пара кнопок только в герое и в финале; в тарифах кнопок нет; в шапке постоянная тихая «Подключиться». 4px base. */
:root {
  --bg: #0B0C0C;
  --surface: #151717;
  --line: #2A2D2D;
  --text: #FAFAF7;
  --text-2: #A3A6A3;
  --text-3: #858986;
  --bone: #EFECE4;
  --lime: #B3DA20;
  --lime-hover: #C2E83A;
  --on-lime: #0B0C0C;

  --cols: 12;
  --gutter: 24px;
  --margin: 64px;
  --max: 1312px;
  --nav-h: 72px;
  --sec-pad: 128px;
  --card-pad: 48px;
  --radius: 16px;

  --font: "Geologica", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.97  0 0 0 0 0.92  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); background-color: var(--bg); }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
ol, ul { list-style: none; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  padding: 12px 16px; background: var(--text); color: var(--bg); border-radius: 8px;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 4px; }

/* 12-col container; фото выходят за него, контент — нет */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin: 0 auto;
  padding: 0 var(--margin);
}

/* grain helper: тот же материал, что и на фото героя */
.hero::after, .band::after, .sec--grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain) 0 0 / 220px 220px;
  mix-blend-mode: screen;
}

/* ---------- nav: прозрачная на фото, сплошная после прокрутки ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck { background: var(--bg); border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin-right: auto;
  font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
}
.brand img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a, .foot__links a, .foot__support {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; color: var(--text-2);
  transition: color .3s var(--ease);
}
.nav__links a::after, .foot__links a::after, .foot__support::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover, .foot__links a:hover, .foot__support:hover { color: var(--text); }
.nav__links a:hover::after, .foot__links a:hover::after, .foot__support:hover::after { transform: scaleX(1); }

/* постоянная тихая кнопка: всегда на месте, ведёт к финалу (#how), где обе равные кнопки */
.nav__cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px;
  border: 1px solid #4A4E4D; border-radius: 10px;
  font-weight: 500; font-size: 15px; color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.nav__cta:hover { border-color: var(--text-3); background: rgba(250,250,247,.04); }
.nav__cta:active { transform: translateY(1px); }
.nav__menu { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px 0 24px;
  background: var(--lime); color: var(--on-lime);
  font-weight: 500; font-size: 17px; white-space: nowrap;
  border-radius: 12px;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.btn:hover { background: var(--lime-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-quiet {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 24px;
  border: 1px solid #4A4E4D; border-radius: 12px;
  font-weight: 500; font-size: 17px; color: var(--text); white-space: nowrap;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.btn-quiet:hover { border-color: var(--text-3); background: rgba(250,250,247,.04); transform: translateY(-1px); }
.btn-quiet:active { transform: translateY(1px); }

.quiet { color: var(--text-2); }

/* ---------- 1. hero: full-bleed, без рамки, жёсткий нижний край ---------- */
.hero {
  position: relative;
  height: min(100svh, 880px);
  min-height: 640px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 50%;
  filter: saturate(.85);
}
.hero::after { z-index: 1; opacity: .10; }
.hero__in { position: relative; z-index: 2; padding-bottom: 96px; }
.hero__copy { max-width: 760px; }
.hero__title {
  font-weight: 600;
  font-size: clamp(64px, 7.8vw, 112px); line-height: .96; letter-spacing: -0.045em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__lead {
  margin-top: 32px; max-width: 480px;
  font-size: 20px; line-height: 28px; color: var(--text-2);
  text-wrap: pretty;
}
.hero__actions { margin-top: 40px; display: flex; align-items: center; gap: 24px; }
.hero__trial { display: none; }
.hero__price { margin-top: 20px; font-size: 16px; line-height: 24px; color: var(--text-2); }
.btn-quiet svg { margin-right: 10px; flex: none; }
.band__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.sec {
  position: relative; isolation: isolate;
  padding: var(--sec-pad) 0;
  border-top: 1px solid var(--line);
}
.sec--grain::before { z-index: -1; opacity: .05; }

/* метка стоит прямо над заголовком, без отдельной колонки */
.sec__head { margin-bottom: 48px; max-width: 760px; }
.sec__label { font-size: 14px; line-height: 20px; color: var(--text-3); }
.sec__title {
  margin-top: 12px;
  font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ---------- 2. tariffs: Премиум ведёт ---------- */
.plans {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter);
  grid-template-rows: auto auto 1fr;
}
.plan {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0;
  padding: var(--card-pad);
  border-radius: var(--radius);
}
.plan--prem { grid-column: 1 / 8; background: var(--bone); color: var(--bg); }
.plan--prem::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain-dark) 0 0 / 220px 220px; opacity: .10;
}
.plan--plus { grid-column: 8 / 13; background: var(--surface); border: 1px solid var(--line); }

.plan__top { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.plan__name { font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.015em; }
.plan__tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  background: var(--bg); color: var(--bone); border-radius: 999px;
  font-weight: 500; font-size: 14px; line-height: 20px;
}

/* цена прижата к низу своей строки: «в месяц» обеих карточек на одной линии */
.plan__cost { align-self: end; padding: 40px 0 40px; }
.plan__price {
  display: flex; align-items: baseline;
  font-weight: 600; white-space: nowrap;
}
.plan--prem .plan__price { font-size: 168px; line-height: .78; letter-spacing: -0.065em; margin-left: -.04em; }
.plan--prem .plan__cur { margin-left: .12em; font-size: 64px; letter-spacing: -0.02em; }
.plan--plus .plan__price { font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.plan__per { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.plan--prem .plan__per { color: #4A4D4B; }

.plan__list {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.plan--prem .plan__list { border-top-color: rgba(11, 12, 12, .16); }
.todo {
  display: flex; align-items: center; min-height: 48px;
  padding: 12px 16px;
  border: 1px dashed var(--text-3);
  border-radius: 8px;
  font-size: 16px; line-height: 24px; color: var(--text-2);
}
.plan--prem .todo { border-color: rgba(11, 12, 12, .38); color: #4A4D4B; }
.plan__list { gap: 0; }
.feat { padding: 20px 0; border-bottom: 1px solid var(--line); }
.feat:first-child { padding-top: 0; }
.feat:last-child { border-bottom: 0; padding-bottom: 0; }
.plan--prem .feat { border-bottom-color: rgba(11, 12, 12, .16); }
.feat__t { font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.feat__d { margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--text-2); max-width: 440px; }
.plan--prem .feat__d { color: #4A4D4B; }
.feat--key .feat__t { font-size: 24px; line-height: 32px; }
.plan--plus .plan__cost { align-self: start; }

.plans__note { margin-top: 32px; font-size: 16px; line-height: 24px; color: var(--text-2); }

/* ---------- 3. final band: full-bleed фото + три шага ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 900px;
  display: flex; align-items: flex-end;
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.band__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 45%;
  filter: saturate(.85) brightness(.74);
}
.band::after { z-index: 1; opacity: .10; }
.band__in { position: relative; z-index: 2; }
.band__copy { max-width: 520px; }
.band__title span { display: block; }
.band__title {
  font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: -0.035em;
  text-wrap: balance;
}
.steps { margin-top: 40px; border-top: 1px solid rgba(250, 250, 247, .14); }
.step {
  display: grid; grid-template-columns: 32px 1fr; column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(250, 250, 247, .14);
}
.step__i { grid-row: span 2; font-weight: 500; font-size: 16px; line-height: 28px; color: var(--text-3); }
.step__title { font-weight: 500; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.step__text { font-size: 16px; line-height: 24px; color: var(--text-2); }
.band__actions { margin-top: 40px; }
/* поверх фото серый #A3A6A3 местами падает ниже 4.5:1 на светлом пледе — здесь описание шагов основным цветом */
.band .step__text { color: var(--text); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 40px; row-gap: 16px; }
.foot__in .brand { margin-right: 0; }
.foot__links { display: flex; gap: 32px; margin-right: auto; }
.foot__support { color: var(--text); }
.foot__help { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.foot__note { font-size: 14px; line-height: 20px; color: var(--text-3); }
.foot__copy { flex-basis: 100%; font-size: 14px; line-height: 20px; color: var(--text-3); }

/* ---------- entrance (once, on load) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
[data-enter] .hero__title,
[data-enter] .hero__lead,
[data-enter] .hero__actions { animation: rise .7s var(--ease) both; }
[data-enter] .hero__lead { animation-delay: .08s; }
[data-enter] .hero__actions { animation-delay: .16s; }

/* ---------- tablet ---------- */
/* ---------- tariffs: comparison table ---------- */
.cmp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.cmp__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-top: 1px solid var(--line); }
.cmp__row:last-child { border-bottom: 1px solid var(--line); }
.cmp__row--head { border-top: 0; }
.cmp__label { grid-column: 1 / 4; padding: 28px 0; font-size: 16px; line-height: 24px; color: var(--text-3); }
.cmp__cell { grid-column: 4 / 8; padding: 28px 0; }
.cmp__cell--prem { grid-column: 8 / 13; padding: 28px 32px; background: var(--surface); }
.cmp__row--head .cmp__cell { padding-top: 0; padding-bottom: 36px; align-self: end; }
.cmp__row--head .cmp__cell--prem { padding-top: 32px; border-radius: 16px 16px 0 0; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.cmp__row:last-child .cmp__cell--prem { border-radius: 0 0 16px 16px; }
.cmp__name { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 20px; line-height: 28px; color: var(--text); }
.cmp__tag { font-size: 13px; line-height: 20px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--bone); color: var(--bg); }
.cmp__price { margin-top: 20px; font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: -0.045em; color: var(--text-2); }
.cmp__cell--prem .cmp__price { font-size: 120px; line-height: .86; letter-spacing: -0.06em; color: var(--bone); }
.cmp__per { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--text-3); }
.cmp__v { font-weight: 600; font-size: 20px; line-height: 28px; color: var(--text-2); }
.cmp__cell--prem .cmp__v { color: var(--text); }
.cmp__d { margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--text-3); max-width: 420px; }
.cmp__cell--prem .cmp__d { color: var(--text-2); }

/* только для телефона: карточки тарифов */
.tiers { display: none; }

@media (max-width: 1080px) {
  .nav__links { gap: 24px; }
  :root { --card-pad: 40px; }
  .plan--prem .plan__price { font-size: 144px; }
  .plan--prem .plan__cur { font-size: 56px; }
}

/* ---------- mobile (≤760): правила в research/mobile-ux.md ---------- */
@media (max-width: 760px) {
  :root { --cols: 4; --gutter: 16px; --margin: 20px; --nav-h: 64px; --sec-pad: 64px; --card-pad: 24px; }

  /* шапка: логотип, тихая «Подключиться» (всегда видна, не лайм) и меню */
  .nav__in { gap: 8px; }
  .nav__cta { height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    display: flex; flex-direction: column; gap: 0;
    padding: 16px var(--margin);
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
  }
  .nav.is-open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease); }
  .nav__links a { min-height: 56px; font-size: 20px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__menu {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 48px; height: 48px; margin-right: -12px;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav__menu span { width: 20px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
  .nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  /* кнопки: лайм на всю ширину; «Войти на сайте» — тихая текстовая ссылка, не вторая кнопка */
  .btn { width: 100%; height: 56px; }
  .btn-quiet { width: 100%; height: 48px; border: 0; padding: 0 16px; font-size: 16px; color: var(--text); }
  .btn-quiet:hover { background: none; transform: none; color: var(--text-2); }

  /* 1. герой: один экран. Фото — спокойный кадр сверху, текст и кнопка ниже, в зоне большого пальца */
  .hero {
    height: 100svh; min-height: 680px; max-height: 920px;
    flex-direction: column; align-items: stretch;
  }
  .hero__photo {
    position: relative; inset: auto;
    flex: 1 1 0; min-height: 240px; height: 0; width: 100%;
    object-fit: cover; object-position: 86% 64%;
  }
  .hero__in { flex: none; padding-top: 28px; padding-bottom: 32px; }
  .hero__copy { max-width: none; }
  .hero__title { font-size: clamp(34px, 11.3vw, 44px); line-height: 1.02; letter-spacing: -0.04em; }
  .hero__lead { margin-top: 16px; max-width: 340px; font-size: 18px; line-height: 26px; }
  .hero__actions { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 4px; }
  /* срок пробного периода — в подзаголовке; отдельной строки под кнопками нет, фото ниже дышит */
  .hero__trial { display: inline; }
  .hero__price { display: none; }

  /* секции */
  .sec__head { margin-bottom: 28px; }
  .sec__label { font-size: 15px; line-height: 22px; }
  .sec__title { margin-top: 8px; font-size: 32px; line-height: 36px; letter-spacing: -0.03em; }

  /* 2. тарифы: таблица → две карточки стопкой, Премиум первым */
  #tariffs { padding-bottom: var(--sec-pad); }
  .cmp { display: none; }
  .tiers { display: flex; flex-direction: column; gap: 12px; }
  .tier { padding: 24px 20px 8px; border: 1px solid var(--line); border-radius: 16px; }
  .tier--prem { background: var(--surface); border-color: var(--bone); }
  .tier__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
  .tier__name { font-weight: 500; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
  .tier__tag { font-weight: 500; font-size: 14px; line-height: 20px; padding: 4px 12px; border-radius: 999px; background: var(--bone); color: var(--bg); }
  .tier__price { margin-top: 12px; display: flex; align-items: baseline; gap: 12px; font-weight: 600; letter-spacing: -0.045em; white-space: nowrap; }
  .tier--prem .tier__price { font-size: 56px; line-height: 56px; color: var(--bone); }
  .tier--plus .tier__price { font-size: 40px; line-height: 44px; color: var(--text); }
  .tier__per { font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: 0; color: var(--text-2); }
  .tier__list { margin-top: 20px; }
  .tier__row { padding: 16px 0; border-top: 1px solid var(--line); }
  .tier__row dt { font-size: 15px; line-height: 22px; color: var(--text-3); }
  .tier__row dd { margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--text-2); text-wrap: pretty; }
  .tier__v { display: block; margin-bottom: 2px; font-weight: 600; font-size: 17px; line-height: 24px; color: var(--text); }
  .plans__note { margin-top: 16px; font-size: 16px; line-height: 24px; text-wrap: pretty; }

  /* 3. финал: фото — узкая полоса сверху (руки и телефон), ниже заголовок, шаги и пара кнопок.
     Весь блок ≤ 686 px: целиком помещается под шапкой на экране 402×750 (iPhone 16 Pro в Safari). */
  .band { min-height: 0; padding: 0; display: block; }
  .band__photo {
    position: relative; inset: auto;
    width: 170vw; max-width: none; height: 176px;
    margin-left: -40vw;
    object-fit: cover; object-position: 50% 40%;
  }
  .band__in { padding: 24px var(--margin) 40px; }
  .band__copy { max-width: none; }
  .band__title { font-size: 32px; line-height: 36px; letter-spacing: -0.03em; }
  .steps { margin-top: 16px; }
  .step { grid-template-columns: 24px 1fr; column-gap: 12px; padding: 10px 0; }
  .step__title { font-size: 17px; line-height: 24px; }
  .step__i { line-height: 24px; }
  .band .step__text { color: var(--text-2); font-size: 16px; line-height: 22px; }
  .band__actions { margin-top: 20px; flex-direction: column; align-items: stretch; }

  /* подвал: поддержка сразу под логотипом, ссылки столбиком по 48 px */
  .foot { padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); }
  .foot__in { flex-direction: column; align-items: stretch; column-gap: 0; row-gap: 0; }
  .foot__in .brand { order: 0; align-self: flex-start; }
  .foot__help { order: 1; margin: 16px 0 0; align-items: flex-start; }
  .foot__support { font-weight: 500; font-size: 17px; min-height: 48px; }
  .foot__note { font-size: 15px; line-height: 22px; }
  .foot__links { order: 2; margin: 24px 0 0; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .foot__links a { min-height: 48px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .foot__links a::after { display: none; }
  .foot__copy { order: 3; margin-top: 24px; font-size: 15px; line-height: 22px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* два равноправных входа: Telegram и сайт */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 600px; }
.pair .btn { width: 100%; padding: 0 20px; }
.btn--site { background: var(--bone); color: var(--bg); }
.btn--site:hover { background: #FFFFFF; }
.btn--site svg { flex: none; }
@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; max-width: none; width: 100%; }
  .pair .btn { height: 56px; }
}

/* телефон: компактные тарифы с раскрытием и текст первого экрана поверх фото */
@media (max-width: 760px) {
  .tiers { gap: 8px; }
  .tier { padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .tier--prem { border-color: var(--bone); }
  .tier__sum {
    list-style: none; cursor: pointer;
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px;
    padding: 16px 16px 12px;
  }
  .tier__sum::-webkit-details-marker { display: none; }
  .tier__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 28px; }
  .tier__name { font-weight: 600; font-size: 18px; line-height: 24px; }
  .tier__tag { font-size: 13px; line-height: 18px; padding: 3px 10px; white-space: nowrap; }
  .tier__price { margin: 0; align-self: center; font-size: 28px !important; line-height: 32px !important; gap: 2px; letter-spacing: -0.03em; }
  .tier--plus .tier__price { color: var(--text-2); }
  .tier__per { font-size: 15px; }
  .tier__key { grid-column: 1 / -1; font-size: 16px; line-height: 22px; color: var(--text-2); }
  .tier--prem .tier__key { color: var(--text); }
  .tier__more { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-size: 15px; color: var(--text-3); }
  .tier__chev { transition: transform .25s var(--ease); }
  .tier[open] .tier__chev { transform: rotate(180deg); }
  .tier__sum:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 16px; }
  .tier__list { margin: 0; padding: 0 16px 8px; }

  /* герой: фото начинается от верхнего края (без шва), кружка целиком и ≥ 64 px ниже кнопок.
     --pw — ширина фото 2560×1440. Кружка в исходнике: x 1970–2360, y 630–900 (верх = 0.246·W, низ = 0.352·W).
     Ширина берётся меньшей из двух: 480vw (кружка ≈ 73 % ширины экрана, снизу виден телефон) и такой, чтобы низ кружки
     помещался в высоту экрана с запасом 16 px. Телефон под кружкой может уходить за нижний край. */
  .hero { display: block; height: 100svh; min-height: 0; max-height: none; --pw: min(480vw, calc(284svh - 46px)); }
  .hero__photo {
    position: absolute; inset: auto; top: 0;
    left: calc(50vw - var(--pw) * 0.8457);
    width: var(--pw); height: calc(var(--pw) * 0.5625); max-width: none; min-height: 0; flex: none;
    object-fit: fill;
    /* над текстом в кадре светлая подушка: ровное затемнение (без градиента), чтобы текст держал ≥ 4.5:1 */
    filter: saturate(.85) brightness(.62);
  }
  .hero__in { position: relative; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 0; }
  .hero__lead { color: var(--text); }
  .hero__title .quiet { color: #CACCC8; } /* 4.6:1 на самом светлом месте подушки; серый #A3A6A3 здесь дал бы 3:1 */
  .hero__actions { margin-top: 24px; }
}

/* узкие телефоны (320–360): плотнее текст, чтобы кружка поместилась под кнопками */
@media (max-width: 360px) {
  :root { --margin: 16px; }
  .brand { font-size: 17px; }
  .nav__cta { padding: 0 12px; }
  .hero { --pw: min(560vw, calc(284svh - 46px)); }
  .hero__in { padding-top: calc(var(--nav-h) + 16px); }
  .hero__lead { margin-top: 12px; font-size: 16px; line-height: 24px; }
  .hero__actions { margin-top: 20px; gap: 8px; }
  .hero__actions .btn { height: 48px; }
}

/* телефон: отдельное вертикальное фото, кружка и телефон небольшие внизу, сверху тёмное поле под текст */
@media (max-width: 760px) {
  .hero__photo {
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 100%;
    filter: saturate(.85);
  }
  .hero__title .quiet { color: var(--text-2); }
}

/* пробный период — отдельная заметная строка прямо над кнопками */
.hero__offer { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; }
.hero__offer strong { font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: -0.02em; color: var(--bone); }
.hero__offer span { font-size: 16px; line-height: 24px; color: var(--text-2); }
.hero__offer + .hero__actions { margin-top: 16px; }
@media (max-width: 760px) {
  .hero__offer { margin-top: 20px; }
  .hero__offer strong { font-size: 22px; line-height: 28px; }
  .hero__offer + .hero__actions { margin-top: 12px; }
}

/* телефон: текст сверху, фото с предметами посередине, «3 дня бесплатно» и кнопки внизу экрана (зона большого пальца) */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; height: 100svh; min-height: 600px; max-height: 960px; }
  .hero__photo { object-position: 50% 50%; }
  .hero__in {
    flex: 1; display: flex; flex-direction: column; width: 100%;
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .hero__copy { flex: 1; display: flex; flex-direction: column; }
  .hero__offer { margin-top: auto; padding-top: 24px; }
}

/* шапка: на фото её нет — верх экрана сливается со строкой статуса через затемнение фото.
   При прокрутке плавно проявляется тёмное матовое стекло (--nav-a ставит скрипт, 0 → 1).
   Зерно мягкое (soft-light), чтобы не белило плашку. */
.nav {
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(11, 12, 12, calc(var(--nav-a, 0) * .82));
  -webkit-backdrop-filter: blur(calc(var(--nav-a, 0) * 18px)) saturate(1.2);
  backdrop-filter: blur(calc(var(--nav-a, 0) * 18px)) saturate(1.2);
  border-bottom-color: rgba(42, 45, 45, var(--nav-a, 0));
  transition: none;
}
.nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain) 0 0 / 220px 220px; mix-blend-mode: soft-light;
  opacity: calc(var(--nav-a, 0) * .35);
}
.nav__in { position: relative; }
.nav.is-stuck { background: rgba(11, 12, 12, calc(var(--nav-a, 1) * .82)); border-bottom-color: rgba(42, 45, 45, var(--nav-a, 1)); }
.nav.is-open { background: var(--bg); }

/* верх фото уходит в цвет страницы — нет шва со строкой статуса в Safari */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none;
  height: calc(var(--nav-h) + 120px);
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11,12,12,.72) 35%, rgba(11,12,12,0) 100%);
}

/* фото первого экрана на компьютере — без приглушения, как на телефоне */
.hero__photo { filter: none; }

/* телефон: нижнее фото ярче и чище, без затемнения */
@media (max-width: 760px) {
  .hero__photo { filter: none; }
  .band__photo { filter: saturate(1.2) brightness(1.18) contrast(1.05); }
  .band::after { display: none; }
}
