/* mc-modded.
   Направление: ночь и факел. Каждый тон выведен из факта о предмете.
   - ночное небо в мире Minecraft -> холодные нейтральные, тон h214-218
   - факел, единственный источник света ночью -> один тёплый акцент h29 (он же в favicon)
   - луна -> отдельный статус «сервер спит», это главное отличие продукта
   - зелёный «онлайн» держится отдельно от бренда и не смешивается с акцентом
   Сигнатурный элемент: шкала света 0-15 из механики игры (.lamp).
   Чистый CSS, без фреймворков. */

:root {
  --bg: #101620;
  --surface: #1b232f;
  --surface-2: #232c3a;
  --border: #2f3a4b;
  --line: #222b38;
  --border-photo: rgba(206, 222, 244, 0.12);

  --text: #dde4ee;
  --text-2: #9aa6b8;
  --text-3: #7d8796;

  --accent: #e08a3c;
  --accent-hover: #f0a95e;
  --accent-press: #c9762c;
  --on-accent: #150e05;

  --online: #6cc38a;
  --sleep: #7b8fbf;
  --lamp-off: #171d27;

  --font-display: "Geologica", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Пять ступеней, шаги 1.5 / 1.9 / 1.24 / 1.21 */
  --fs-cap: 14px;
  --fs-base: 17px;
  --fs-lg: 21px;
  --fs-h2: clamp(30px, 3.4vw, 40px);
  --fs-h1: clamp(34px, 3.6vw, 50px);

  --lh-head: 1.12;
  --lh-sub: 1.25;
  --lh-body: 1.6;
  --lh-lede: 1.5;

  /* 4/8 шкала */
  --s-1: 8px;  --s-2: 16px;  --s-3: 24px;  --s-4: 32px;
  --s-5: 40px; --s-6: 48px;  --s-8: 64px;  --s-10: 80px;

  --measure: 34em;
  --measure-lede: 30em;

  --container: 1200px;
  --gutter: 24px;
  --section: 96px;

  --radius-btn: 6px;
  --radius-card: 12px;
  --radius-window: 12px;

  --shadow-window: 0 24px 60px rgba(6, 10, 16, 0.55);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  /* Полоса прокрутки скрыта: страница листается экранами, полоса тут ничего не сообщает.
     Прокрутка колесом, клавиатурой и тачем работает как обычно. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
p, li, dd, figcaption { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }

::selection { background: var(--accent); color: var(--on-accent); }

/* Кольцо фокуса двухтональное: читается и на фото, и на залитой кнопке */
:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 0;
  box-shadow: 0 0 0 4px var(--text);
  border-radius: inherit;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px var(--s-2); background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: var(--gutter); top: 12px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

/* Одна сетка на всю страницу. Любой блок, стоящий с 7-й колонки, начинается
   на одном и том же пикселе в каждой секции. Ничего не ставится «на глаз». */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.c1-6  { grid-column: 1 / span 6; }
.c7-12 { grid-column: 7 / span 6; }
.c1-12 { grid-column: 1 / span 12; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-head); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-lg); line-height: var(--lh-sub); letter-spacing: -0.01em; }

.lede { font-size: var(--fs-lg); line-height: var(--lh-lede); color: var(--text-2); max-width: var(--measure-lede); }
.note { font-size: var(--fs-cap); line-height: 1.5; color: var(--text-2); max-width: var(--measure); }
.mono { font-family: var(--font-mono); font-weight: 400; font-size: 0.92em; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--text-3); }
.link:hover { text-decoration-color: var(--accent); }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--online); vertical-align: middle; margin-right: 8px;
}
.dot--off { background: var(--text-3); }
.dot--sleep { background: var(--sleep); }

/* ---------- Сигнатурный элемент: шкала света 0-15 ---------- */
/* В игре факел даёт 14, мобы спавнятся при 7 и ниже. Аудитория читает эту шкалу без подписи. */
.lamp { display: inline-flex; gap: 2px; vertical-align: middle; }
.lamp i {
  display: block; width: 14px; height: 14px; border-radius: 0;
  background: color-mix(in oklab, var(--accent) calc(var(--l, 0) * 100%), var(--lamp-off));
  box-shadow: inset 0 0 0 1px rgba(6, 10, 16, 0.35);
}
.lamp--sm i { width: 6px; height: 6px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 var(--s-3);
  border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-base);
  text-decoration: none; border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
a.btn, button.btn { cursor: pointer; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:active { background: var(--accent-press); transition: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text-3); }
.btn--ghost:hover { border-color: var(--text-2); background: rgba(221, 228, 238, 0.06); }
.btn--ghost:active { background: rgba(221, 228, 238, 0.1); transition: none; }
.btn--lg { height: 56px; padding: 0 var(--s-4); }
.btn--sm { height: 40px; padding: 0 var(--s-2); font-size: var(--fs-cap); min-width: 136px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn[data-state="done"] { border-color: var(--online); color: var(--online); }

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }

/* Снеп по секциям. Включается только на десктопе, только если экран достаточно
   высокий, чтобы секция помещалась целиком (иначе снеп запирает часть контента),
   и только если человек не просил убрать анимации. Тип proximity, а не mandatory:
   Ctrl+F и мелкая прокрутка продолжают работать. */
/* Снеп включает только страница, у которой на <html> стоит класс snaps.
   Иначе на страницах без секций-экранов единственной точкой привязки становится
   подвал, и браузер сам уезжает к нему при загрузке. */
@media (min-width: 1025px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  html.snaps { scroll-snap-type: y mandatory; }
  .snaps .snap { scroll-snap-align: start; scroll-snap-stop: normal; }
  .snaps .hero.snap { scroll-margin-top: 0; }
  .snaps .section.snap, .snaps .photo.snap:not(.hero) {
    min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding-block: var(--s-6);
  }
  /* При mandatory секция обязана помещаться в экран целиком, иначе её низ недостижим */
  .snaps .pricing.snap .plan { padding-block: var(--s-3); }
  .snaps .pricing.snap .section__head { margin-bottom: var(--s-4); }
  .snaps .footer { scroll-snap-align: end; }
}
.section__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); }

/* ---------- Фотоблоки ---------- */
/* Настоящие кадры с сервера это единственное, что конкурент не скопирует.
   Затемнение только там, где лежит текст, и только одним слоем. */
.photo { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); }
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, var(--bg) 0%, rgba(16, 22, 32, 0) 22%);
}
.photo > .container { position: relative; z-index: 3; }

/* ---------- Шапка ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.nav.is-solid { background: var(--bg); border-bottom-color: var(--line); }
.nav__in { height: 64px; display: flex; align-items: center; gap: var(--s-3); }
.nav__logo {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base);
  letter-spacing: -0.01em; text-decoration: none;
}
.nav__cta { margin-left: auto; font-size: var(--fs-cap); color: var(--text-2); text-decoration: none; }
.nav__cta:hover { color: var(--text); }

/* ---------- Первый экран ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; margin-top: -64px; padding-top: 64px; }
.hero::after {
  background: linear-gradient(to right, rgba(16, 22, 32, 0.88) 0%, rgba(16, 22, 32, 0.55) 42%, rgba(16, 22, 32, 0.05) 78%);
}
.hero__in { align-items: center; padding-block: var(--s-10) var(--s-8); }
.hero__copy { display: grid; gap: var(--s-3); align-content: center; }
.hero__copy h1 { text-shadow: 0 2px 20px rgba(6, 10, 16, 0.6); }
.hero__copy .lede { color: var(--text); opacity: 0.88; text-shadow: 0 1px 10px rgba(6, 10, 16, 0.6); }
.hero__actions { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-1); }
.hero__facts { font-size: var(--fs-cap); line-height: 1.5; color: var(--text); opacity: 0.75; }
/* Окно лаунчера стоит в колонках 7-12 и сохраняет пропорции настоящего окна (16:10).
   По высоте с текстом слева его равняет не растяжение, а длина заголовка. */
.hero__mock { container-type: inline-size; }
.hero__mock .launcher { aspect-ratio: 3 / 2; }

/* ---------- Два действующих лица ---------- */
.actors__head { margin-bottom: var(--s-6); }
.actors__pair { row-gap: var(--s-6); }
.actor { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-2); border-top: 2px solid var(--line); }
.actor--you { border-top-color: var(--accent); }
.actor--them { border-top-color: var(--sleep); }
.actor__who { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); }
.actor--you .actor__who { color: var(--accent); }
.actor--them .actor__who { color: var(--sleep); }
.actor__list { display: grid; gap: var(--s-2); max-width: var(--measure); }
.actor__list li { padding-left: var(--s-3); position: relative; color: var(--text-2); }
.actor__list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; background: var(--line);
}
.actor--you .actor__list li::before { background: color-mix(in oklab, var(--accent) 45%, var(--lamp-off)); }
.actor--them .actor__list li::before { background: color-mix(in oklab, var(--sleep) 45%, var(--lamp-off)); }
.actor__link {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  padding: var(--s-1); padding-left: var(--s-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-btn);
  max-width: 460px;
}
.actor__link code { font-size: var(--fs-cap); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.actor__link .btn { margin-left: auto; }
.actor__note { color: var(--text-3); max-width: var(--measure); }

/* ---------- Сервер спит ---------- */
/* Экран целиком отдан ночному кадру с сервера: шкала света читается как факелы в темноте. */
.sleep { padding-block: var(--section); }
.sleep::after {
  background: linear-gradient(to right, rgba(10, 14, 22, 0.9) 0%, rgba(10, 14, 22, 0.7) 45%, rgba(10, 14, 22, 0.4) 100%);
}
.sleep__in { align-items: center; row-gap: var(--s-6); }
.sleep__copy { display: grid; gap: var(--s-3); text-shadow: 0 2px 16px rgba(6, 10, 16, 0.75); }
.sleep__copy p { color: var(--text); opacity: 0.88; max-width: var(--measure); }
.sleep__fine { color: var(--text); opacity: 0.7; font-size: var(--fs-cap); }
.sleep__states { display: grid; gap: var(--s-6); }
.lvl { display: grid; gap: var(--s-2); }
.lvl dt { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--text); }
.lvl dd { margin: 0; display: grid; gap: 12px; justify-items: start; }
.sleep .lamp { display: flex; width: 100%; gap: 4px; }
.sleep .lamp i { flex: 1 1 0; width: auto; height: 60px; }
.sleep .lamp i[style] { box-shadow: inset 0 0 0 1px rgba(6, 10, 16, 0.4), 0 0 24px rgba(224, 138, 60, 0.35); }
.lvl__note { font-size: var(--fs-cap); color: var(--text); opacity: 0.75; }
.lvl--off dt { color: var(--sleep); }
.lvl--off .lamp i { background: color-mix(in oklab, var(--accent) calc(var(--l, 0) * 100%), rgba(12, 17, 26, 0.7)); }

/* ---------- Тарифы: строки прайса, а не три одинаковые карточки ---------- */
.plans { border-top: 1px solid var(--line); }
.plan {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: baseline;
  padding: var(--s-4) var(--s-2); margin-inline: calc(var(--s-2) * -1);
  border-bottom: 1px solid var(--line);
}
.plan--hot { background: var(--surface); }
.plan__name { grid-column: 1 / span 2; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); }
.plan__tag { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-cap); color: var(--text-3); margin-top: 4px; }
.plan__price { grid-column: 3 / span 2; display: flex; align-items: baseline; gap: var(--s-1); }
.plan__price b {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2);
  line-height: 1; font-variant-numeric: tabular-nums lining-nums;
}
.plan__price span { font-size: var(--fs-cap); color: var(--text-2); }
.plan__spec { grid-column: 5 / span 3; display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-2); row-gap: 4px; font-size: var(--fs-cap); }
.plan__spec dt { color: var(--text-2); }
.plan__spec dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums lining-nums; }
.plan__ex { grid-column: 8 / span 5; font-size: var(--fs-cap); color: var(--text-2); line-height: 1.5; }

/* ---------- Финал ---------- */
.cta { min-height: 62svh; display: flex; align-items: flex-end; }
.cta::after { background: linear-gradient(to top, rgba(16, 22, 32, 0.94) 0%, rgba(16, 22, 32, 0.62) 34%, rgba(16, 22, 32, 0.06) 76%); }
.cta__in { padding-block: var(--s-10); }
.cta__copy { display: grid; gap: var(--s-3); text-shadow: 0 2px 16px rgba(6, 10, 16, 0.7); }
.cta__copy p { font-size: var(--fs-lg); line-height: var(--lh-lede); color: var(--text); opacity: 0.88; }
.cta__row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s-3) 0; font-size: var(--fs-cap); color: var(--text-2); }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.footer__links { display: flex; gap: 0; }
.footer__links a { text-decoration: none; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__links a + a::before { content: "·"; margin-inline: 12px; color: var(--text-3); }

/* ---------- Макет лаунчера ---------- */
.launcher {
  width: 100%; aspect-ratio: 960 / 600;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  display: grid; grid-template-rows: 40px 1fr; overflow: hidden;
  font-size: var(--fs-cap); color: var(--text);
}
.launcher__bar { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 var(--s-2); border-bottom: 1px solid var(--line); }
.launcher__title { font-family: var(--font-display); font-weight: 500; font-size: 13px; color: var(--text-2); }
.launcher__gear { justify-self: end; color: var(--text-3); display: flex; }
.launcher__body { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 0; }
.launcher__side {
  background: var(--bg); padding: var(--s-2); display: grid; grid-template-rows: auto auto 1fr auto;
  gap: var(--s-2); min-height: 0; border-right: 1px solid var(--line);
  grid-template-rows: auto auto 1fr auto auto;
}
.launcher__dl { display: grid; gap: 8px; }
.launcher__dl .lamp { display: flex; width: 100%; gap: 2px; }
.launcher__dl .lamp i { flex: 1 1 0; width: auto; height: 10px; background: var(--accent); }

/* Лаунчер качает моды: деления зажигаются по очереди, как факелы вдоль тоннеля. */
@media (prefers-reduced-motion: no-preference) {
  .launcher__dl .lamp i {
    background: var(--lamp-off);
    animation: dl 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: calc(var(--i, 0) * 0.13s);
  }
}
@keyframes dl {
  0%, 6%   { background: var(--lamp-off); }
  14%, 62% { background: var(--accent); }
  76%, 100% { background: var(--lamp-off); }
}
.launcher__me { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-2); align-items: center; }
.launcher__me img { width: 32px; height: 32px; image-rendering: pixelated; }
.launcher__me .nick { font-weight: 500; font-size: 13px; }
.launcher__me .sub, .launcher__h, .launcher__foot { font-size: 13px; color: var(--text-3); }
.launcher__foot { align-self: end; }
.launcher__friends { display: grid; gap: var(--s-1); align-content: start; }
.launcher__friends li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: var(--s-1); align-items: center; font-size: 13px; font-weight: 500; }
.launcher__friends li .dot { margin: 0; }
.launcher__friends li.off { color: var(--text-3); font-weight: 400; }
.launcher__main { padding: var(--s-2); display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.server { position: relative; border-radius: 4px; overflow: hidden; height: 100%; min-height: 200px; isolation: isolate; background: var(--surface-2); }
.server > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.server::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(9, 13, 20, 0.95) 0%, rgba(9, 13, 20, 0.78) 42%, rgba(9, 13, 20, 0.18) 78%, rgba(9, 13, 20, 0) 100%);
}
.server__in { position: absolute; inset: auto var(--s-2) var(--s-2) var(--s-2); z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-2); }
.server__status { font-size: 13px; color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.server__meta { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.4; }
.server__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -0.01em; margin-top: 4px; }
.server__play { display: grid; justify-items: end; }
.server__play .btn { width: auto; min-width: 128px; height: 44px; padding: 0 var(--s-2); font-size: var(--fs-base); white-space: nowrap; border-radius: 4px; }

/* Макет ужимается по своему контейнеру, а не по окну.
   Порог 520px, а не 800: на десктопе мок ровно 6 колонок и правила не должны срабатывать заранее. */
@container (max-width: 620px) {
  .launcher__body { grid-template-columns: 176px minmax(0, 1fr); }
  .server__in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .server__play { justify-items: start; }
}
@container (max-width: 520px) {
  .launcher { aspect-ratio: auto; }
  .launcher__body { grid-template-columns: minmax(0, 1fr); }
  .launcher__side { display: none; }
  .server { height: 200px; min-height: 0; }
  .server__meta { display: none; }
}

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .btn { transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  :root { --section: 72px; }
  .hero { min-height: 0; display: block; }
  .hero__in { row-gap: var(--s-6); padding-block: var(--s-10) var(--s-8); }
  .hero__copy, .hero__mock, .sleep__copy, .sleep__states, .section__head, .cta__copy { grid-column: 1 / span 12; }
  .hero__mock { max-width: 760px; }
  .hero__mock .launcher { height: auto; aspect-ratio: 960 / 600; }
  .actor--you, .actor--them { grid-column: 1 / span 6; }
  .plan__name { grid-column: 1 / span 3; }
  .plan__price { grid-column: 4 / span 3; }
  .plan__spec { grid-column: 7 / span 3; }
  .plan__ex { grid-column: 10 / span 3; }
}

@media (max-width: 760px) {
  :root { --section: 56px; --fs-h1: clamp(30px, 8vw, 38px); --fs-h2: clamp(26px, 7vw, 32px); }
  .nav__state { display: none; }
  .hero__in { padding-block: var(--s-8) var(--s-6); }
  .hero::after { background: linear-gradient(to top, rgba(16, 22, 32, 0.92) 30%, rgba(16, 22, 32, 0.55) 100%); }
  .actor--you, .actor--them { grid-column: 1 / span 12; }
  .actors__pair { row-gap: var(--s-5); }
  .sleep { padding-block: var(--s-8); }
  .sleep__states { gap: var(--s-4); }
  .sleep .lamp i { height: 40px; }
  .lamp i { width: 11px; height: 11px; }
  .plan { row-gap: var(--s-2); padding-block: var(--s-3); }
  .plan__name, .plan__price, .plan__spec, .plan__ex { grid-column: 1 / span 12; }
  .plan__spec { grid-template-columns: auto auto; justify-content: start; column-gap: var(--s-3); }
  .cta { min-height: 0; padding-top: 200px; }
  .cta__in { padding-block: var(--s-6); }
  .footer__in { flex-direction: column; align-items: flex-start; }
}

/* Низкое окно на десктопе (типовые 1440x900): первый экран должен помещаться целиком */
@media (min-width: 1025px) and (max-height: 900px) {
  :root { --fs-h1: clamp(34px, 3.9vw, 50px); --section: 72px; }
  .hero__in { padding-block: var(--s-8) var(--s-6); }
  .hero__copy { gap: var(--s-2); }
}

/* ================= Внутренние страницы: заказ и приглашение ================= */

.c1-7  { grid-column: 1 / span 7; }
.c8-12 { grid-column: 8 / span 5; }

/* Шапка внутренних страниц: та же сетка, без фото */
.page { padding-block: var(--s-8) var(--s-10); }
.page__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-8); }
.page__head .lede { max-width: 36em; }

/* Шаг формы */
.step { display: grid; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.step + .step { margin-top: var(--s-6); }
.step__h { display: flex; align-items: baseline; gap: var(--s-2); }
.step__n {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-cap);
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.step__t { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); }
.step__note { font-size: var(--fs-cap); color: var(--text-2); max-width: var(--measure); }

/* Выбор: сборка и память. Рамка тут несёт смысл (это контрол), а не украшение. */
.choices { display: grid; gap: var(--s-1); }
.choices--packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1); }
.choice { position: relative; display: flex; align-items: center; gap: var(--s-2);
  padding: 12px var(--s-2); border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--surface); cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease; }
.choice:hover { border-color: var(--text-3); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
.choice:has(input:focus-visible) { outline: 2px solid var(--bg); box-shadow: 0 0 0 4px var(--text); }
.choice img { width: 36px; height: 36px; border-radius: 6px; flex: none; }
.choice__t { display: block; font-weight: 500; line-height: 1.25; }
.choice__m { display: block; font-size: var(--fs-cap); color: var(--text-2); margin-top: 2px; }
.choice__price { margin-left: auto; font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-lg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice__mem { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums; min-width: 76px; }

/* Поля */
.field { display: grid; gap: 6px; }
.field > label { font-size: var(--fs-cap); color: var(--text-2); }
.input {
  height: 48px; padding: 0 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--text-3); border-radius: var(--radius-btn);
  font-family: var(--font-body); font-size: var(--fs-base); width: 100%;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--text-2); }
.input:focus-visible { outline: 2px solid var(--bg); box-shadow: 0 0 0 4px var(--text); border-color: var(--accent); }
.field__hint { font-size: var(--fs-cap); color: var(--text-3); min-height: 1lh; }
.field__hint[data-bad] { color: #e2705f; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }

/* Сводка заказа */
.summary { position: sticky; top: 88px; display: grid; gap: var(--s-3);
  padding: var(--s-3); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); }
.summary__h { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); }
.summary__rows { display: grid; gap: 10px; font-size: var(--fs-cap); }
.summary__row { display: flex; justify-content: space-between; gap: var(--s-2); }
.summary__row dt { color: var(--text-2); }
.summary__row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary__total { display: flex; align-items: baseline; justify-content: space-between;
  padding-top: var(--s-2); border-top: 1px solid var(--line); }
.summary__total b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2);
  line-height: 1; font-variant-numeric: tabular-nums; }
.summary .btn { width: 100%; }
.summary__fine { font-size: var(--fs-cap); color: var(--text-3); }

/* Готово */
.done { display: grid; gap: var(--s-3); justify-items: start; }
.done__mark { display: flex; align-items: center; gap: 10px; color: var(--online); font-weight: 500; }

.nav__login { margin-left: var(--s-3); font-size: var(--fs-cap); color: var(--text); text-decoration: none;
  border: 1px solid var(--text-3); border-radius: var(--radius-btn); height: 36px;
  display: inline-flex; align-items: center; padding: 0 14px;
  transition: border-color 120ms ease, background-color 120ms ease; }
.nav__login:hover { border-color: var(--text-2); background: rgba(221, 228, 238, 0.06); }
.nav__cta { margin-left: auto; }
.actor__url { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--text-3); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.actor__url:hover { color: var(--text); text-decoration-color: var(--accent); }
