/* Шрифты лежат рядом, а не на чужом домене: страница не делает ни одного
   внешнего запроса, и витрина не зависит от доступности CDN.

   Генератор предлагал Outfit / Work Sans — у обоих нет кириллицы, и на
   русской странице от них досталась бы только латиница вперемешку с Arial.
   Manrope и Golos Text держат тот же характер и умеют писать по-русски.

   Начертания переменные: один файл на всю ось веса вместо шести. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/manrope-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: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/golos-text-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;
}
:root {
  color-scheme: light;

  /* Палитра ui-ux-pro-max, профиль «Digital indigo + buy green».
     Тон текста и заливок разведён: #6366F1 хорош как плашка и кольцо фокуса,
     но как цвет текста на фоне даёт 3.99:1 и читается плохо. Всё, что буква,
     берёт --accent-ink. */
  --bg: #eef2ff;
  --ink: #312e81;
  --muted: #475569;
  --line: #c7d2fe;
  --accent: #6366f1;
  --accent-ink: #4f46e5;
  --accent-strong: #4338ca;
  --accent-wash: #e0e7ff;
  --paper: #fff;
  --sunken: #ebeff9;
  --on-accent: #000;

  /* Кнопка покупки — зелёная: генератор развёл «цвет продукта» и «цвет
     действия». Зелёный уже подобран так, чтобы чёрная надпись давала 6.37:1;
     белая на нём даёт 3.3 и не годится. */
  --cta: #16a34a;
  --cta-strong: #15803d;
  --on-cta: #000;

  --destructive: #dc2626;

  /* Состояния заказа: цвет обязан отличать выдачу от провала без чтения. */
  --ok-bg: #dcfce7;
  --ok-ink: #166534;
  --warn-bg: #fef3c7;
  --warn-ink: #854d0e;
  --err-bg: #fee2e2;
  --err-ink: #991b1b;

  /* Дисплейный и текстовый гротеск. Оба лежат в /static/fonts. */
  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font: "Golos Text", "Helvetica Neue", Arial, sans-serif;

  /* Шкала кегля. Ниже 12px не опускаемся: там условия и возвраты. */
  --text-2xs: 12px;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 28px;
  --text-3xl: 34px;
  --text-4xl: 44px;
  --text-5xl: 56px;
  --text-6xl: 64px;
  --text-7xl: 76px;

  /* Шаг 4px. Отступ, которого здесь нет, — повод объяснить, а не подобрать. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Скругление растёт от вложенного к внешнему: фото → контрол → панель. */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Тень подкрашена индиго: серая на синеватом фоне читается как грязь. */
  --shadow-panel: 0 1px 2px #312e810f, 0 12px 32px #312e8124;
  --shadow-raised: 0 1px 2px #312e8114, 0 4px 12px #312e8114;
  --tap: 44px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--text-base) / 1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button,
a,
input,
select {
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
}
figure {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.045em;
}
svg.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.container {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: fixed;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: var(--space-4);
  z-index: 9;
}
.skip:focus {
  top: 8px;
}
.header {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: -0.05em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  gap: var(--space-2);
}
.brand img {
  width: 34px;
  height: 34px;
}
.header nav {
  display: flex;
  gap: var(--space-8);
  font-size: var(--text-sm);
}
.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-block: var(--space-3);
}
.header nav a:hover,
.text-link:hover,
.footer a:hover {
  color: var(--accent-ink);
}
.header-cta {
  font-size: var(--text-sm);
  border: 1px solid var(--line);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  display: flex;
  gap: var(--space-5);
  align-items: center;
  min-height: var(--tap);
}
.header-cta:hover {
  background: var(--accent-wash);
}
.eyebrow {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  display: block;
}
.storefront {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 72px;
  padding-top: var(--space-12);
  align-items: start;
}
.intro h1 {
  font-size: var(--text-7xl);
  line-height: 1.02;
  margin: var(--space-5) 0;
  letter-spacing: -0.065em;
}
.intro-description {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xs);
}
.hero-photo img {
  width: 100%;
  height: 326px;
  object-fit: cover;
  object-position: center 58%;
}
.hero-photo figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--ink);
  background: var(--paper);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  gap: var(--space-5);
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px #312e8118;
  transform: rotate(-1.5deg);
}
.hero-photo figcaption .icon {
  color: var(--accent-ink);
}
.photo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-size: var(--text-2xs);
  color: var(--muted);
}
.photo-footer a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.photo-footer a:hover {
  background: white;
}
.purchase-panel {
  background: var(--paper);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 0;
  box-shadow: var(--shadow-panel);
}
.purchase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.purchase-heading h2 {
  font-size: var(--text-2xl);
}
.purchase-heading > span {
  font-size: var(--text-2xs);
  color: var(--muted);
}
.product-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 0;
  margin: 0 0 28px;
  padding: var(--space-1);
  background: var(--sunken);
  border-radius: var(--radius-md);
  gap: var(--space-1);
}
.product-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  min-height: 48px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
}
.product-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.product-card:has(input:checked) {
  background: var(--paper);
  color: var(--accent-ink);
  box-shadow: 0 2px 8px #312e8114;
}
.product-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.product-card .icon {
  width: 19px;
  height: 19px;
}
.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
}
.field-heading > span {
  font-size: var(--text-2xs);
  font-weight: 400;
  color: var(--muted);
}
.packages {
  display: grid;
  /* Пакетов восемь: 4×2 и 2×4 заполняются нацело, 3 колонки — никогда. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.package {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-1);
  min-height: 66px;
  background: var(--sunken);
  border: 0;
  border-radius: var(--radius-md);
}
.package strong {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
}
.package small {
  font-size: var(--text-2xs);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.package:hover {
  background: var(--accent-wash);
}
.package.selected {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 12px #6366f126;
}
.package.selected small {
  color: var(--on-accent);
}
.input-shell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--sunken);
  padding: 0 var(--space-4);
}
.input-shell:focus-within {
  background: var(--accent-wash);
}
.input-shell input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: var(--space-3) 0;
  outline-offset: 1px;
}
.input-shell input::placeholder {
  color: var(--muted);
}
.amount-shell > span {
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--text-2xs);
}
.product-details {
  margin-bottom: var(--space-6);
}
.input-label {
  font-size: var(--text-xs);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-2);
}
.recipient > span {
  color: var(--accent-ink);
  font-size: var(--text-md);
}
.field-help {
  font-size: var(--text-2xs);
  color: var(--muted);
  margin-top: var(--space-2);
  line-height: 1.6;
}
.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
}
.checkout-summary > span {
  color: var(--muted);
}
.primary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--cta);
  color: var(--on-cta);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
}
.primary-button:hover:not(:disabled) {
  background: var(--cta-strong);
}
.price-note {
  font-size: var(--text-2xs);
  margin-top: var(--space-3);
  color: var(--muted);
  text-align: center;
}
.fine-print {
  font-size: var(--text-2xs);
  color: var(--muted);
  margin-top: var(--space-5);
  line-height: 1.65;
}
.notice {
  padding: var(--space-4) var(--space-4);
  background: var(--warn-bg);
  border: 1px solid var(--warn-ink);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.notice p {
  margin-top: var(--space-1);
}
.notice.error {
  background: var(--err-bg);
  border-color: var(--destructive);
  color: var(--err-ink);
}
.how-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  border-block: 1px solid var(--line);
  margin: 52px 0 88px;
  padding: 28px 0;
}
.how-section article {
  display: flex;
  gap: var(--space-4);
}
.step-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
}
.how-section h2 {
  font-size: var(--text-md);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
}
.how-section p {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.65;
}
.channels-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: var(--space-8);
}
.channels-heading h2 {
  font-size: var(--text-4xl);
  margin-top: var(--space-4);
  line-height: 1.12;
}
.channels-heading > p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: var(--space-1);
}
.channels-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-12);
}
.creator-photo {
  position: relative;
  align-self: start;
}
.creator-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}
.creator-photo figcaption {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-top: var(--space-3);
  color: var(--muted);
}
.channel-service {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 var(--space-4);
  position: relative;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}
.channel-service:first-child {
  padding-top: var(--space-2);
  border: 0;
}
.service-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.service-copy h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.035em;
  margin: var(--space-1) 0 var(--space-2);
  padding-right: 52px;
}
.service-copy > p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}
.service-badge {
  position: absolute;
  right: 0;
  top: 32px;
  font-size: var(--text-2xs);
  letter-spacing: 0.02em;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.channel-service:first-child .service-badge {
  top: 13px;
}
.service-details {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
}
.service-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--tap);
  color: var(--accent-ink);
  list-style: none;
}
.service-details summary .icon {
  width: 17px;
}
.service-details-body {
  padding: var(--space-1) 0 var(--space-3);
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.7;
}
.service-details-body p + p {
  margin-top: var(--space-2);
}
summary::-webkit-details-marker {
  display: none;
}
details[open] > summary .icon {
  transform: rotate(45deg);
}
.channel-availability {
  font-size: var(--text-2xs);
  color: var(--muted);
  margin: 28px 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
}
.channel-availability a {
  color: var(--accent-ink);
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
  min-height: var(--tap);
}
.channel-availability .icon {
  width: 17px;
}
.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  margin: 88px 0 var(--space-20);
  background: var(--accent-wash);
  padding: var(--space-10);
  border-radius: var(--radius-xs);
}
.faq-section h2 {
  font-size: var(--text-4xl);
  margin-top: var(--space-4);
}
.faq-section > div > p {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-4);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:last-child {
  border: 0;
}
.faq-list summary {
  list-style: none;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  font-size: var(--text-sm);
  padding: var(--space-3) 0;
}
.faq-list summary:hover {
  color: var(--accent-ink);
}
.faq-list summary .icon {
  width: 18px;
}
.faq-list details p {
  padding: 0 var(--space-6) var(--space-5) 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.7;
}
.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0 var(--space-10);
  display: flex;
  /* Правовой ряд занимает всю ширину и обязан переноситься на свою строку. */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.footer p {
  font-size: var(--text-2xs);
  color: var(--muted);
  margin-right: auto;
}
.support-link {
  font-size: var(--text-2xs);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--tap);
}
.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--accent-ink);
  min-height: 44px;
}
.order-main {
  max-width: 620px;
  padding-top: var(--space-10);
  padding-bottom: var(--space-20);
}
.order-main h1 {
  font-size: var(--text-4xl);
  margin: var(--space-5) 0 var(--space-3);
}
.back-link {
  margin-bottom: 28px;
}
.muted {
  color: var(--muted);
  font-size: var(--text-sm);
}
.order-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}
.order-price {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: var(--space-2) 0 var(--space-5);
}
.status-pill {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 600;
}
/* Классы печатает web.py: ok / warn / err. Разойдутся имена — пропадёт цвет. */
.status-pill.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.status-pill.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.status-pill.err {
  background: var(--err-bg);
  color: var(--err-ink);
}
.status-hint {
  margin: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.qr {
  background: white;
  padding: var(--space-4);
  margin: var(--space-5) auto;
  width: min(280px, 100%);
}
.qr svg {
  width: 100%;
  height: auto;
}
.order-meta {
  font-size: var(--text-xs);
}
.order-meta > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.order-meta dt {
  color: var(--muted);
}
.order-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.auto-refresh {
  font-size: var(--text-2xs);
  color: var(--muted);
  margin: var(--space-5) 0;
}
.order-link {
  margin-top: var(--space-6);
}
.order-link a {
  text-decoration: underline;
}
@media (min-width: 1500px) {
  .storefront {
    gap: 88px;
  }
  .hero-photo img {
    height: 350px;
  }
}
@media (max-width: 1050px) {
  .container {
    width: calc(100% - 48px);
  }
  .storefront {
    gap: var(--space-8);
  }
  .intro h1 {
    font-size: var(--text-6xl);
  }
  .intro-description {
    font-size: var(--text-base);
  }
  .purchase-panel {
    padding: var(--space-6);
  }
  .product-card {
    font-size: var(--text-2xs);
    gap: var(--space-1);
  }
  .hero-photo img {
    height: 365px;
  }
  .channels-layout {
    gap: var(--space-8);
  }
  .channels-heading h2 {
    font-size: var(--text-3xl);
  }
  .service-copy h3 {
    font-size: var(--text-lg);
  }
  .faq-section {
    gap: var(--space-8);
    padding: var(--space-8);
  }
  .faq-section h2 {
    font-size: var(--text-3xl);
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }
  .header {
    height: 82px;
    gap: var(--space-4);
  }
  .brand {
    font-size: var(--text-2xl);
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .header-cta {
    display: none;
  }
  .header nav {
    gap: var(--space-4);
    font-size: var(--text-2xs);
  }
  .header nav a:first-child {
    display: none;
  }
  .storefront {
    grid-template-columns: 1fr;
    padding-top: var(--space-8);
    gap: var(--space-6);
  }
  .intro h1 {
    font-size: var(--text-6xl);
    margin: var(--space-4) 0;
  }
  .intro-description {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }
  .hero-photo img {
    height: 240px;
    object-position: center 58%;
  }
  .hero-photo figcaption {
    font-size: var(--text-xs);
    left: 12px;
    right: 12px;
    bottom: 14px;
  }
  .photo-footer {
    font-size: var(--text-2xs);
  }
  .purchase-panel {
    padding: var(--space-6);
    border-radius: var(--radius-md);
  }
  .packages {
    /* На узкой панели в четыре колонки не помещается «от 19 000 ₽». */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .purchase-heading h2 {
    font-size: var(--text-xl);
  }
  .product-card {
    font-size: var(--text-2xs);
  }
  .how-section {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    margin: var(--space-8) 0 52px;
  }
  .how-section article {
    gap: var(--space-6);
  }
  .how-section p br {
    display: none;
  }
  .how-section h2 {
    margin-bottom: var(--space-1);
  }
  .channels-heading {
    display: block;
    margin-bottom: var(--space-6);
  }
  .channels-heading h2 {
    font-size: var(--text-3xl);
  }
  .channels-heading > p {
    margin-top: var(--space-5);
  }
  .channels-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .creator-photo img {
    height: 270px;
  }
  .creator-photo figcaption {
    font-size: var(--text-base);
  }
  .service-copy h3 {
    font-size: var(--text-xl);
  }
  .channel-availability {
    display: block;
    font-size: var(--text-2xs);
  }
  .channel-availability a {
    margin-top: var(--space-3);
    min-height: 44px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-5);
    margin: var(--space-12) 0;
  }
  .faq-section h2 {
    font-size: var(--text-3xl);
  }
  .faq-section > div > p {
    margin-top: var(--space-3);
  }
  .footer {
    flex-wrap: wrap;
    gap: var(--space-5);
    /* Снизу место под плавающую кнопку: иначе она накрывает последнюю строку. */
    padding: var(--space-6) 0 calc(var(--tap) + var(--space-10));
  }
  .footer p {
    /* На узком экране абзац рядом с логотипом сжимался в колонку в три слова. */
    flex: 0 0 100%;
    margin-right: 0;
  }
  .support-link {
    width: 100%;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
  }
  .order-main h1 {
    font-size: var(--text-3xl);
  }
  .order-card {
    padding: var(--space-6);
  }
  .order-price {
    font-size: var(--text-4xl);
  }
}
@media (max-width: 380px) {
  .purchase-panel {
    padding: var(--space-4);
  }
  .purchase-heading h2 {
    font-size: var(--text-xl);
  }
  .purchase-heading > span {
    font-size: var(--text-2xs);
  }
  .product-card {
    font-size: var(--text-2xs);
  }
  .intro h1 {
    font-size: var(--text-5xl);
  }
  .hero-photo figcaption {
    font-size: var(--text-2xs);
  }
  .photo-footer {
    font-size: var(--text-2xs);
  }
  .service-copy h3 {
    font-size: var(--text-lg);
  }
  .channels-heading h2 {
    font-size: var(--text-3xl);
  }
  .channel-service {
    grid-template-columns: 30px 1fr;
    gap: var(--space-2);
  }
  .service-symbol {
    width: 30px;
    height: 30px;
  }
  .service-copy > p br {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Purchase controls: native radio groups retain keyboard and no-script support. */
.duration-picker {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.duration-picker legend {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.duration-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}
.duration-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 103px;
  padding: var(--space-4) var(--space-2);
  border: 0;
  background: var(--sunken);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.duration-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.duration-card:has(input:checked) {
  background: var(--accent);
  box-shadow: 0 4px 12px #6366f126;
  color: var(--on-accent);
}
.duration-card:not(:has(input:checked)):hover {
  background: var(--accent-wash);
}
.duration-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.duration-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.duration-value small {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0;
}
.duration-caption,
.duration-price {
  font-size: var(--text-2xs);
}
.premium-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: var(--text-2xs);
}
.premium-benefits > span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.premium-benefits .icon {
  width: 14px;
  height: 14px;
  color: var(--accent-ink);
}
.checkout-summary > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.checkout-summary > div > span {
  font-size: var(--text-2xs);
  color: var(--muted);
}
#recipient-summary {
  font-size: var(--text-2xs);
  overflow-wrap: anywhere;
  max-width: 55%;
  text-align: right;
  color: var(--accent-ink);
}
.field-error {
  font-size: var(--text-2xs);
  line-height: 1.55;
  color: var(--err-ink);
  margin-top: var(--space-2);
}
.input-shell:has([aria-invalid="true"]) {
  background: var(--err-bg);
}
.input-shell:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.input-shell input:focus-visible {
  outline: none;
}
.package.selected:after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
}
.primary-button:active:not(:disabled) {
  transform: translateY(1px);
}
form[aria-busy="true"] .primary-button > .icon {
  animation: loading-turn 1.2s linear infinite;
}
@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}
.duration-card:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.legal-links {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  margin-top: var(--space-1);
  font-size: var(--text-2xs);
  color: var(--muted);
}
.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.purchase-legal {
  font-size: var(--text-2xs);
  line-height: 1.7;
  color: var(--muted);
  margin-top: var(--space-4);
}
.purchase-legal a {
  display: inline-block;
  padding-block: var(--space-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-main {
  padding-bottom: 72px;
}
.legal-main > .back-link {
  margin-top: var(--space-6);
  margin-bottom: 28px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 72px;
  align-items: start;
}
.legal-layout aside {
  position: sticky;
  top: 30px;
}
.legal-layout aside nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-4);
}
.legal-layout aside a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: var(--text-xs);
}
.legal-layout aside a[aria-current] {
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.legal-document h1 {
  font-size: var(--text-4xl);
  overflow-wrap: anywhere;
  margin: var(--space-4) 0;
  line-height: 1.12;
}
.legal-lead {
  font-size: var(--text-md);
  color: var(--muted);
}
.legal-draft {
  margin: var(--space-6) 0 36px;
  padding: var(--space-4) var(--space-5);
  background: var(--accent-wash);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.65;
}
.legal-document section {
  margin-top: var(--space-8);
}
.legal-document h2 {
  font-size: var(--text-xl);
  line-height: 1.3;
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}
.legal-document section p {
  font-size: var(--text-base);
  line-height: 1.85;
  margin: var(--space-3) 0;
  color: var(--ink);
}
.legal-ending {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  font-size: var(--text-2xs);
  color: var(--muted);
}
.legal-ending a {
  color: var(--accent-ink);
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: var(--space-8);
  }
  .legal-document h1 {
    font-size: var(--text-3xl);
  }
}
@media (max-width: 760px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .legal-layout aside {
    position: static;
  }
  .legal-layout aside nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-1);
  }
  .legal-layout aside a {
    font-size: var(--text-2xs);
    padding: var(--space-2) var(--space-2);
  }
  .legal-document h1 {
    font-size: var(--text-3xl);
  }
  .legal-draft {
    font-size: var(--text-xs);
  }
  .legal-links {
    gap: var(--space-1) var(--space-4);
  }
  .legal-document section p {
    font-size: var(--text-sm);
  }
}
.legal-contact { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--muted); }
.legal-contact a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Пустое поле ошибки остаётся в дереве доступности, но не в потоке: живая
   область обязана существовать до того, как в ней появится текст. */
.field-error:empty {
  display: none;
}

/* Закрытые продажи выключают форму целиком. Дать заполнить и отказать на
   кнопке — это отнять время, а не сообщить о закрытии. */
.form-body {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form-body:disabled {
  opacity: 0.55;
}
.form-body:disabled .package,
.form-body:disabled .duration-card,
.form-body:disabled .product-card,
.form-body:disabled .input-shell {
  cursor: not-allowed;
}

/* Дорога назад к форме с любого места страницы. Показывается скриптом и
   только когда панель покупки уже уехала вверх. */
.sticky-cta {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap);
  width: max-content;
  max-width: calc(100% - var(--space-8));
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--cta);
  color: var(--on-cta);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-panel);
}
.sticky-cta:hover {
  background: var(--cta-strong);
}
@media (min-width: 761px) {
  /* На широком экране форма и так стоит рядом с текстом, плашка лишняя. */
  .sticky-cta {
    display: none;
  }
}
