@font-face {
  font-family: "Funnel Display";
  src: url("fonts/funnel-display-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --sunken: #e6e9f0;
  --line: #dce1ea;
  --line-strong: #c3cad7;
  --ink: #141a29;
  --text: #2b3040;
  --muted: #5d6272;
  --blue: #1e50e0;
  --blue-hover: #1843c2;
  --on-blue: #ffffff;
  --header-bg: rgb(242 244 248 / 0.8);
  --key-face: #ffffff;
  --key-edge: #c3cad7;
  --swatch-ring: rgb(20 26 41 / 0.14);
  --tint-red: #ff383c;
  --tint-orange: #ff8d28;
  --tint-yellow: #ffcc00;
  --tint-green: #34c759;
  --tint-blue: #0088ff;
  --tint-purple: #cb30e0;
  --tint-pink: #ff2d55;
  --glow-a: rgb(120 160 255 / 0.28);
  --glow-b: rgb(255 170 210 / 0.22);
  --glow-c: rgb(120 230 210 / 0.2);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: "Funnel Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 64px;
  --radius: 14px;
  --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0e13;
    --surface: #151820;
    --sunken: #11141b;
    --line: #262a35;
    --line-strong: #3a4050;
    --ink: #f1f0ec;
    --text: #d3d5dc;
    --muted: #979cab;
    --blue: #6a8cff;
    --blue-hover: #88a3ff;
    --on-blue: #0c0e13;
    --header-bg: rgb(12 14 19 / 0.76);
    --key-face: #20242e;
    --key-edge: #434a5c;
    --swatch-ring: rgb(255 255 255 / 0.18);
    --tint-red: #ff4245;
    --tint-orange: #ff9230;
    --tint-yellow: #ffd600;
    --tint-green: #30d158;
    --tint-blue: #0091ff;
    --tint-purple: #db34f2;
    --tint-pink: #ff375f;
    --glow-a: rgb(90 120 255 / 0.22);
    --glow-b: rgb(255 110 180 / 0.12);
    --glow-c: rgb(60 220 190 / 0.1);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e13;
  --surface: #151820;
  --sunken: #11141b;
  --line: #262a35;
  --line-strong: #3a4050;
  --ink: #f1f0ec;
  --text: #d3d5dc;
  --muted: #979cab;
  --blue: #6a8cff;
  --blue-hover: #88a3ff;
  --on-blue: #0c0e13;
  --header-bg: rgb(12 14 19 / 0.76);
  --key-face: #20242e;
  --key-edge: #434a5c;
  --swatch-ring: rgb(255 255 255 / 0.18);
  --tint-red: #ff4245;
  --tint-orange: #ff9230;
  --tint-yellow: #ffd600;
  --tint-green: #30d158;
  --tint-blue: #0091ff;
  --tint-purple: #db34f2;
  --tint-pink: #ff375f;
  --glow-a: rgb(90 120 255 / 0.22);
  --glow-b: rgb(255 110 180 / 0.12);
  --glow-c: rgb(60 220 190 / 0.1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-hover);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

figure {
  margin: 0;
}

strong {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.35em;
  margin: 0 0.06em;
  border: 1px solid var(--line-strong);
  border-radius: 0.45em;
  background: var(--key-face);
  box-shadow: 0 2px 0 var(--key-edge);
  color: var(--ink);
  font: 600 0.78em/1 var(--font);
  vertical-align: 0.15em;
  margin-bottom: 2px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-blue);
}

.skip-link:focus {
  top: 12px;
}

/* Кнопки */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-blue);
  font: 600 16px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}

.button:hover {
  background: var(--blue-hover);
  color: var(--on-blue);
}

.button-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-quiet:hover {
  background: var(--surface);
  border-color: var(--muted);
  color: var(--ink);
}

.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fineprint {
  color: var(--muted);
  font-size: 14px;
}

/* Шапка */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px clamp(12px, 2.2vw, 28px);
  height: var(--header);
  padding: 0 max(var(--gutter), calc((100% - var(--page)) / 2));
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color 0.25s;
}

/* Пока страницу не прокрутили, шапка сливается с ней. Без скрипта она всегда с подложкой. */
.js .top-bar:not(.is-scrolled) {
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.scroll-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.logo {
  display: flex;
  margin-right: auto;
  color: var(--ink);
}

.logo-svg {
  width: 150px;
  height: auto;
}

.logo-mark {
  fill: currentColor;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
}

.top-link {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.top-link:hover,
.top-link[aria-current="page"] {
  color: var(--ink);
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Тема: светлая, тёмная или как в системе. Без скрипта переключатель не работает и не показывается. */

.theme-switch {
  display: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.js .theme-switch {
  display: inline-flex;
}

.theme-switch label {
  position: relative;
  display: block;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.theme-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}

.theme-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

.theme-icon-light {
  --icon: url("icons/sun.svg");
}

.theme-icon-dark {
  --icon: url("icons/moon.svg");
}

.theme-icon-system {
  --icon: url("icons/monitor.svg");
}

.theme-switch label:hover .theme-icon {
  color: var(--ink);
}

.theme-switch input:checked + .theme-icon {
  background: var(--ink);
  color: var(--bg);
}

.theme-switch input:focus-visible + .theme-icon {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* Ролик: кадр-заставка под видео, видео проявляется поверх, когда пошли кадры */

.media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sunken);
  box-shadow: 0 0 0 1px var(--line);
}

.media-hero {
  border-radius: var(--radius-lg);
}

.media picture {
  position: absolute;
  inset: 0;
}

.still,
.clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip {
  opacity: 0;
  transition: opacity 0.25s;
}

.clip.is-ready {
  opacity: 1;
}

.media-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.media:hover .media-controls,
.media:focus-within .media-controls,
.media.is-paused .media-controls {
  opacity: 1;
}

@media (hover: none) {
  .media-controls {
    opacity: 1;
  }

  .control {
    height: 44px;
  }

  .play-toggle {
    width: 44px;
  }
}

/* Кнопки поверх ролика тёмные в обеих темах: кадр под ними бывает и светлым, и тёмным. */
.control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: rgb(12 14 19 / 0.78);
  color: #f1f0ec;
  font: 600 13px/1 var(--font);
  cursor: pointer;
}

.control:hover {
  background: rgb(12 14 19 / 0.94);
}

.play-toggle {
  width: 36px;
  justify-content: center;
  padding: 0;
}

.play-toggle::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  mask: url("icons/pause.svg") center / contain no-repeat;
}

.play-toggle[data-state="paused"]::before {
  mask-image: url("icons/play.svg");
}

/* Перемотка: полоса между кнопками. Доля ролика зарегистрирована как число, чтобы полоса
   плавно шла между редкими событиями timeupdate, а не прыгала. */

@property --seek {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.seek {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0;
  visibility: hidden;
  transition: --seek 0.26s linear;
}

.media.has-time .seek {
  visibility: visible;
}

.seek.is-jump {
  transition: none;
}

.seek::before,
.seek-fill {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
}

.seek::before {
  background: rgb(255 255 255 / 0.28);
}

.seek-fill {
  background: #f1f0ec;
  transform: scaleX(var(--seek));
  transform-origin: left;
}

/* Обёртка шириной с полосу сдвигается на свою долю, точка стоит на её левом краю. */
.seek-knob {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  transform: translateX(calc(var(--seek) * 100%));
}

.seek-knob::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f1f0ec;
  transition: scale 0.15s;
}

.seek:hover .seek-knob::before,
.seek:has(input:active) .seek-knob::before {
  scale: 1.3;
}

/* Ползунок прозрачный, а ширина его бегунка равна отступам полосы: точка нажатия совпадает с долей ролика. */
.seek input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.seek input::-webkit-slider-thumb {
  width: 36px;
  height: 36px;
  -webkit-appearance: none;
  appearance: none;
}

.seek input::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border: 0;
}

.seek:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.media-os .media-controls,
.media-os .expand {
  display: none;
}

.media:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

.media:fullscreen .still,
.media:fullscreen .clip {
  object-fit: contain;
}

/* Сетка страницы: одна колонка по центру, обычная прокрутка, ничего не закрепляется */

.hero,
.page-hero,
.block,
.scene,
.subnav {
  padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2));
}

section[id] {
  scroll-margin-top: calc(var(--header) + 8px);
}

.eyebrow {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Первый экран: на широком окне текст слева, ролик справа по высоте окна, всё без прокрутки; на узком столбиком */

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3vh, 32px);
  padding-top: clamp(24px, 4.5vh, 48px);
  padding-inline: var(--gutter);
  padding-bottom: 8px;
  text-align: center;
  isolation: isolate;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 1.8vh, 18px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 auto;
  z-index: -1;
  height: 78%;
  background:
    radial-gradient(50% 60% at 50% 30%, var(--glow-a), transparent 70%),
    radial-gradient(30% 40% at 78% 62%, var(--glow-b), transparent 70%),
    radial-gradient(30% 40% at 22% 62%, var(--glow-c), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 13em;
  font-size: clamp(2.7rem, min(7.4vw, 9.2vh), 6.2rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero .lead {
  max-width: 36em;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero .actions {
  justify-content: center;
}

.hero-stage {
  width: 100%;
}

.hero .fineprint {
  margin-top: -4px;
}

@media (min-width: 1180px) {
  .hero {
    --hero-pad: clamp(24px, 6vh, 72px);
    grid-template-columns: max-content minmax(0, 53%);
    justify-content: center;
    align-content: center;
    align-items: center;
    min-height: calc(100svh - var(--header));
    column-gap: clamp(40px, 4vw, 64px);
    padding-block: var(--hero-pad);
    padding-inline: max(var(--gutter), calc((100% - 1680px) / 2));
    text-align: left;
  }

  .hero-copy {
    justify-items: start;
  }

  .hero h1 {
    font-size: clamp(2.7rem, min(5.2vw, 9vh), 5.6rem);
  }

  .hero h1 span {
    display: block;
  }

  .hero .actions {
    justify-content: start;
  }

  .hero-stage {
    width: min(100%, calc((100svh - var(--header) - 2 * var(--hero-pad)) * 1.6));
    justify-self: center;
  }
}

/* Разделы */

.block {
  padding-top: clamp(96px, 13vw, 176px);
}

.block-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 46rem;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.block-head h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

.block-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.45;
}

.block-lead strong {
  color: var(--ink);
}

.statement {
  max-width: 22em;
  margin: 0 auto;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
}

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

/* Переключатель режима или стиля над роликом: явные сегменты, без точек и полосок слайдера */

.switch {
  display: grid;
  justify-items: center;
  gap: 18px;
}

/* Сегменты всегда в одну строку: перенос внутри капсулы ломал её форму. Не влезают по ширине,
   строка прокручивается вбок, а выбранный сегмент скрипт держит в поле зрения. */
.segments {
  display: none;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.segments::-webkit-scrollbar {
  display: none;
}

.js .segments {
  display: inline-flex;
}

.segments button {
  flex: none;
  min-height: 38px;
  white-space: nowrap;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 15px/1 var(--font);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.segments button:hover {
  color: var(--ink);
}

.segments button[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}

.pane {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
}

.js .pane[hidden] {
  display: none;
}

.pane + .pane {
  margin-top: 40px;
}

.js .pane + .pane {
  margin-top: 0;
}

.pane-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.js .pane-label {
  display: none;
}

.frame {
  width: min(100%, 880px);
}

.caption {
  max-width: 38rem;
  color: var(--muted);
  text-align: center;
}

.caption strong {
  color: var(--ink);
}

/* Страницы возможностей: карточки со стоп-кадром */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 10px 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

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

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
  background: var(--sunken);
}

.card h3 {
  padding-inline: 8px;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.card p {
  padding-inline: 8px;
  color: var(--muted);
  font-size: 15px;
}

.card-text {
  align-content: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--glow-a), transparent 80%), var(--surface);
}

.card-text h3,
.card-text p {
  padding: 0;
}

/* Галерея цвета: один ряд образцов меняет сразу курсор, Companion и линию между экранами */

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(10px, 1.6vw, 18px);
}

.shot {
  position: relative;
  margin: 0;
}

.shot-main {
  grid-row: span 2;
}

.shot-view {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sunken);
  box-shadow: 0 0 0 1px var(--line);
}

/* Высоту большой плитки задают две правые с зазором, а не пропорция: иначе ширина считается от высоты и плитка заходит под правую колонку */
.shot-main .shot-view {
  aspect-ratio: auto;
  height: 100%;
}

.shot-view img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(12 14 19 / 0.72);
  color: #f1f0ec;
  font-size: 13px;
  font-weight: 600;
}

.tints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto clamp(24px, 3vw, 36px);
}

.tints label {
  position: relative;
  display: block;
  cursor: pointer;
}

.tints input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--swatch-ring);
}

.tints input:checked + .swatch {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.tints input:focus-visible + .swatch {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Системные цвета macOS, которыми приложение красит стекло: те же образцы, что в его настройках,
   в той же теме. Значения сняты с NSColor.system* в sRGB на macOS 27 */
.swatch-red { background: var(--tint-red); }
.swatch-orange { background: var(--tint-orange); }
.swatch-yellow { background: var(--tint-yellow); }
.swatch-green { background: var(--tint-green); }
.swatch-blue { background: var(--tint-blue); }
.swatch-purple { background: var(--tint-purple); }
.swatch-pink { background: var(--tint-pink); }

.yours:has(#tint-blue:checked) [data-tint="blue"],
.yours:has(#tint-red:checked) [data-tint="red"],
.yours:has(#tint-orange:checked) [data-tint="orange"],
.yours:has(#tint-yellow:checked) [data-tint="yellow"],
.yours:has(#tint-green:checked) [data-tint="green"],
.yours:has(#tint-purple:checked) [data-tint="purple"],
.yours:has(#tint-pink:checked) [data-tint="pink"] {
  display: block;
}

.yours .caption {
  margin: clamp(20px, 3vw, 32px) auto 0;
}

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

.credits a {
  color: inherit;
}

/* Короткие факты строкой */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px clamp(20px, 3vw, 40px);
  margin: 0;
}

.fact {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.fact dt {
  color: var(--ink);
  font: 600 1.25rem/1.2 var(--font-display);
}

.fact dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.more-link {
  margin-top: 28px;
  text-align: center;
}

/* Цена: карточки тарифов */

.offer {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.offer h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
}

.offer-price {
  color: var(--ink);
  font: 600 clamp(3.4rem, 7vw, 5rem)/1 var(--font-display);
  letter-spacing: -0.04em;
}

.offer .actions {
  justify-content: center;
}

.offer-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.offer-points li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--blue);
}

.offers-title {
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
  text-align: center;
}

.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  max-width: 60rem;
  margin: 0 auto;
}

.offers .offer {
  align-content: start;
  max-width: none;
  margin: 0;
}

.offer-plus {
  border-color: var(--blue);
}

.offer .offer-name {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.offers .offer-points {
  flex-direction: column;
  align-items: center;
}

@media (max-width: 760px) {
  .offers {
    grid-template-columns: minmax(0, 1fr);
  }
}

.finale {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding-bottom: clamp(96px, 13vw, 168px);
  text-align: center;
}

.finale h2 {
  max-width: 14em;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
}

/* Страница возможности */

.page-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: clamp(40px, 7vw, 88px);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
}

.page-hero .lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 28px;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.subnav a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.subnav a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.scene {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-top: clamp(72px, 10vw, 128px);
  text-align: center;
}

.scene h2 {
  max-width: 16em;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.scene > p:not(.eyebrow),
.scene .note {
  max-width: 36rem;
  color: var(--muted);
}

.scene > .switch,
.scene > .frame {
  width: 100%;
  margin-top: 12px;
}

.scene > .switch .frame {
  margin-inline: auto;
}

.note {
  font-size: 15px;
}

.note strong {
  color: var(--ink);
}

.compare {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 420px);
}

.compare .caption {
  font-size: 14px;
}

.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  width: min(100%, 1000px);
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.list li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.list b {
  color: var(--ink);
  font-weight: 600;
}

.list span {
  color: var(--muted);
  font-size: 15px;
}

.tag {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.next-page {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: clamp(96px, 13vw, 160px);
  padding-bottom: clamp(96px, 13vw, 160px);
  text-align: center;
}

.next-page a.next {
  color: var(--ink);
  font: 600 clamp(1.8rem, 4vw, 3rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.next-page a.next:hover {
  color: var(--blue);
}

/* Цена: условия списком под кнопками */

.block-near {
  padding-top: clamp(40px, 6vw, 72px);
}

.offer-checks {
  display: grid;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.offer-checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.offer-checks li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 600;
}

/* Вопросы карточками */

.qa {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.qa-item {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.qa-item h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.qa-item p {
  color: var(--muted);
  font-size: 15px;
}

/* Справка: одна колонка текста */

.doc {
  max-width: calc(44rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(96px, 13vw, 160px);
}

.doc h2 {
  margin-top: clamp(64px, 8vw, 96px);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.doc h3 {
  margin-top: 2em;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.doc h2 + h3 {
  margin-top: 1.2em;
}

.doc > :first-child {
  margin-top: 0;
}

.summary {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--glow-a), transparent 80%), var(--surface);
}

.doc .summary h2 {
  margin-top: 0;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
}

/* Короткая страница: заголовок и кнопки посередине окна, подвал не поднимается к шапке */

.page-solo {
  align-content: center;
  min-height: calc(100svh - var(--header) - 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
}

.page-solo .actions {
  justify-content: center;
  margin-top: 12px;
}

.license {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.license[hidden],
.button[hidden] {
  display: none;
}

.upgrade-form {
  display: grid;
  gap: 8px;
  width: min(100%, 36rem);
  margin-top: 12px;
  text-align: left;
}

.upgrade-label {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.upgrade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upgrade-input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 600 16px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
}

.upgrade-input::placeholder {
  color: var(--muted);
  font-weight: 400;
  opacity: 0.7;
}

.upgrade-input:focus-visible {
  border-color: var(--blue);
}

.upgrade-row .button {
  flex: 0 0 auto;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.license-key {
  color: var(--ink);
  font: 600 clamp(1rem, 2.6vw, 1.35rem)/1.3 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}

.doc [id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

.doc p,
.doc ol,
.doc ul,
.doc table {
  margin-top: 0.9em;
}

.doc ol,
.doc ul {
  margin-bottom: 0;
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 0.5em;
}

.doc li::marker {
  color: var(--muted);
}

.shortcuts {
  width: 100%;
  border-collapse: collapse;
}

.shortcuts th,
.shortcuts td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.shortcuts th {
  width: 10em;
  padding-right: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  grid-template-areas: "about features help legal";
  gap: 32px 24px;
  padding: 48px max(var(--gutter), calc((100% - var(--page)) / 2)) 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-about {
  grid-area: about;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.footer-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
}

.footer-features {
  grid-area: features;
}

.footer-help {
  grid-area: help;
}

.footer-legal {
  grid-area: legal;
}

.site-footer nav {
  display: grid;
  align-content: start;
  justify-items: start;
}

.footer-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
}

.site-footer a {
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 960px) {
  .site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "about about about"
      "features help legal";
  }

  .top-link.optional {
    display: none;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "about about"
      "features help"
      "features legal";
    gap: 28px 16px;
    padding-top: 40px;
    font-size: 15px;
  }

  .site-footer a {
    padding: 8px 0;
  }

  .footer-title {
    margin-bottom: 2px;
  }

  .top-nav {
    display: none;
  }

  .logo-svg {
    width: 120px;
  }

  .top-tools {
    gap: 8px;
  }

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

  .shot-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .shot-main .shot-view {
    aspect-ratio: 16 / 10;
    height: auto;
  }

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

  .media-hero {
    border-radius: var(--radius);
  }

  .control.expand {
    display: none;
  }
}

@media (max-width: 400px) {
  .top-tools .button-small {
    padding: 0 12px;
  }

  .theme-icon {
    width: 28px;
    height: 28px;
  }

  .segments button {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

.tag {
  font-style: normal;
}
