/* ---------- шрифт: Golos Text, хранится на своём хостинге (OFL, см. fonts/) ---------- */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic-wght-normal.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(fonts/golos-text-latin-ext-wght-normal.woff2) format('woff2'); /* здесь знак ₽ */
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/golos-text-latin-wght-normal.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 {
  --paper: #f5f0e6;
  --paper-raised: #fbf8f1;
  --ink: #15130f;
  --ink-soft: #565046;
  --blue: #1b36f0;
  --blue-deep: #1228bd;
  --line: rgba(21, 19, 15, .22);
  --line-field: rgba(21, 19, 15, .5); /* рамки полей: контраст не ниже 3:1 */

  --font: 'Golos Text', 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);

  /* одна кривая и одна длительность на весь сайт */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .8s;
  --hold: 2.6s; /* сколько домен стоит на сцене */

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ol, ul { margin: 0; padding: 0; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1.25 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: .9375rem; }
.btn:active { transform: translateY(1px); }

/* тихая кнопка: текст и синяя точка со стрелкой - фирменный знак страницы */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 1rem/1.25 var(--font);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.link-btn__dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.link-btn__dot svg { width: 16px; height: 16px; }
.link-btn:active .link-btn__dot { transform: scale(.94); }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
  .btn--line:hover { background: var(--ink); color: var(--paper); }
  .link-btn:hover .link-btn__dot { background: var(--blue-deep); transform: translateX(4px); }
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker b { color: var(--blue); font-weight: 800; letter-spacing: 0; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; }

/* ---------- шапка-выпуск ---------- */
.top { border-bottom: 1px solid var(--ink); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: inherit;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}
.top__brand::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.top__issue { display: none; color: var(--ink-soft); font-size: .875rem; }
.top__issue span + span::before { content: '/'; margin-inline: 14px; color: rgba(21, 19, 15, .35); }
@media (min-width: 760px) { .top__issue { display: flex; } }

/* ---------- первый экран ---------- */
.hero { padding-top: clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--ink); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "stage" "aside";
  column-gap: 32px;
}
h1 {
  grid-area: title;
  max-width: 11ch;
  font-size: clamp(2.5rem, 11.5vw, 4.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero__aside { grid-area: aside; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 24px 40px; }
.hero__lead { max-width: 24ch; color: var(--ink-soft); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.4; }

.stage { grid-area: stage; margin-top: 20px; border-top: 1px solid var(--line); }
.stage__scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;          /* домен по центру сайта */
  height: clamp(190px, 32svh, 340px);
  overflow: hidden;
  overflow: clip;
}
.stage__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "num meta" "ticks ticks" "buy buy";
  align-items: center;
  gap: 0 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stage__index { grid-area: num; color: var(--ink-soft); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.stage__index b { color: var(--ink); font-weight: 800; }
.stage__meta { grid-area: meta; min-width: 0; color: var(--ink-soft); font-size: .9375rem; }
.stage__meta b { color: var(--ink); font-weight: 600; }
.stage__ticks { grid-area: ticks; display: flex; margin-left: -6px; }
.tick { position: relative; width: 40px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tick::before, .tick::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 21px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.tick::after { background: var(--blue); transform: scaleX(0); transform-origin: left; }
.tick.is-active::after { transform: none; }
.stage .link-btn { grid-area: buy; padding-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .stage:not(.is-paused) .tick.is-active::after { animation: tick-fill var(--hold) linear both; }
}
@keyframes tick-fill { from { transform: scaleX(0); } to { transform: none; } }

/* без скрипта: обычная типографика */
.mark { display: block; font-size: min(20vw, 160px); font-weight: 900; line-height: .92; letter-spacing: -.03em; white-space: nowrap; }
.mark__name { display: block; }
.mark__tail { display: flex; align-items: baseline; padding-left: .34em; }
.mark__slot { flex: none; width: .28em; height: .28em; margin-right: .06em; }
.mark__slot--flat { border-radius: 50%; background: var(--blue); }

/* ---------- 3D-буквы (картинки из Blender) ---------- */
.mark--3d { position: relative; display: grid; justify-items: center; padding-block: .12em; letter-spacing: -.015em; }
.mark--3d.is-loading { opacity: 0; }
.mark__word { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; }
.mark--3d .mark__name, .mark--3d .mark__zones { filter: drop-shadow(0 .07em .06em rgba(21, 19, 15, .18)); }
.mark--3d .mark__zones { display: grid; }
.mark__zone { grid-area: 1 / 1; display: block; }
/* Видимость задана каждой букве и всему внутри неё напрямую, а не по наследству:
   у парящих букв Chrome иногда не обновляет унаследованное значение, и буквы пропадали */
.mark--3d .g, .mark--3d .g * { visibility: hidden; }
.mark__word.is-active .mark__name .g, .mark__word.is-active .mark__name .g *,
.mark__word.is-active .mark__zone.is-active .g, .mark__word.is-active .mark__zone.is-active .g * { visibility: visible; }
.mark--3d .g:not(.is-3d) img { visibility: hidden !important; } /* картинка ещё не загрузилась */
.g, .g__float { display: inline-block; }
.g__base { display: inline-block; position: relative; width: 0; height: 0; vertical-align: baseline; }
/* холст картинки 1.4em x 1.5em, начало буквы в 0.2em слева и 0.42em над нижним краем */
.g__base img {
  position: absolute;
  left: -.2em;
  bottom: -.42em;
  width: 1.4em;
  max-width: none;
  height: 1.5em;
  pointer-events: none;
}
.g.is-3d { color: transparent; }
.orb { position: absolute; left: 0; top: 0; width: 0; height: 0; line-height: 0; filter: drop-shadow(0 .07em .06em rgba(21, 19, 15, .2)); }
.orb .g__base { vertical-align: top; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* парят только буквы на сцене, у каждой свой ритм */
  .mark__word.is-active .g__float, .orb .g__float { animation: float var(--period) ease-in-out var(--phase) infinite; }
  .mark--3d.is-paused .g__float { animation-play-state: paused; }
}
@keyframes float {
  0%, 100% { transform: translateY(.028em) rotate(0deg); }
  50% { transform: perspective(5em) translateY(-.055em) rotate(var(--tilt)) rotateX(9deg) rotateY(-11deg); }
}

@media (min-width: 760px) {
  .stage__bar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "num meta ticks buy";
    gap: 24px;
    padding-block: 10px;
  }
  .stage .link-btn { padding-bottom: 0; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "title aside" "stage stage"; align-items: end; }
  h1 { max-width: none; font-size: clamp(3.25rem, 6.4vw, 7rem); }
  .hero__aside { padding: 0 0 .5em; }
  .stage { margin-top: clamp(28px, 4vw, 48px); }
  .stage__scene { height: clamp(260px, 46svh, 560px); }
}

/* ---------- каталог ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 28px; }
.section-head .kicker { margin-bottom: 12px; }
.catalog { padding-top: clamp(64px, 9vw, 128px); }
.catalog__head > p { color: var(--ink-soft); }
.catalog__fallback { padding-block: 32px; border-top: 1px solid var(--line); }

.row { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
.row:last-of-type { border-bottom: 1px solid var(--ink); }
.row__about { padding-block: 28px 4px; }
.row__num { color: var(--blue); font-size: .875rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.row__title { margin-top: 6px; font-size: 1.375rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.row__text { max-width: 34ch; margin-top: 8px; color: var(--ink-soft); font-size: 1rem; }
.row__domains { display: grid; grid-template-columns: minmax(0, 1fr); list-style: none; }

.domain { container-type: inline-size; min-width: 0; }
.domain + .domain { border-top: 1px solid var(--line); }
.domain__inner { display: flex; flex-direction: column; gap: 14px; padding-block: 24px 28px; }
.domain__name {
  font-size: 8.4vw;              /* запас для старых браузеров */
  font-size: min(11.2cqi, 5rem); /* самый длинный домен занимает почти всю ширину колонки */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.domain__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.domain__price { color: var(--ink-soft); font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.domain__zone, .domain__dot { transition: color var(--dur) var(--ease); }
.domain__name { isolation: isolate; } /* ореол точки лежит под буквами */
.domain__dot { position: relative; }
.domain__dot::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: calc(50% + .02em);
  bottom: .05em;
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: rgba(27, 54, 240, .16);
  opacity: 0;
  transform: translateX(-50%) scale(.4);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* подсветка точки и зоны: с клавиатуры - всегда, мышью - только на компьютере */
.domain:has(:focus-visible) :is(.domain__zone, .domain__dot) { color: var(--blue); }
.domain:has(:focus-visible) .domain__dot::after { opacity: 1; transform: translateX(-50%) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .row:hover :is(.domain__zone, .domain__dot) { color: var(--blue); }
  .row:hover .domain__dot::after { opacity: 1; transform: translateX(-50%) scale(1); }
}

@media (min-width: 640px) {
  .row__domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domain + .domain { border-top: 0; border-left: 1px solid var(--line); }
  .domain:first-child .domain__inner { padding-right: 24px; }
  .domain + .domain .domain__inner { padding-left: 24px; }
}
@media (min-width: 1024px) {
  .row { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .row__about { padding: 40px 32px 40px 0; }
  .row__domains { border-left: 1px solid var(--line); }
  .domain__inner { height: 100%; justify-content: center; gap: 18px; padding-block: 40px; }
  .domain:first-child .domain__inner { padding-inline: 32px; }
  .domain + .domain .domain__inner { padding-left: 32px; }
}

/* ---------- как купить ---------- */
.how { margin-top: clamp(64px, 9vw, 128px); padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--ink); }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.how__cta { grid-column: 1 / -1; justify-self: center; margin-top: clamp(8px, 2vw, 24px); } /* кнопка по центру страницы */
.steps { list-style: none; counter-reset: step; margin-bottom: 36px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.35;
}
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--blue); font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
@media (min-width: 760px) {
  .steps { display: grid; grid-template-columns: 1fr 1fr 1.35fr; column-gap: 24px; }
  .steps li { display: block; padding-block: 16px 0; }
  .steps li::before { display: block; margin-bottom: 10px; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; }
}
@media (min-width: 1024px) {
  .how__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0; }
  .how__grid > .section-head { align-items: flex-start; padding-right: 32px; }
  .how__grid > div { padding-left: 32px; }
}

/* ---------- появление при прокрутке (motion.js ставит html.has-reveal и .is-in) ----------
   Одна кривая и одна длительность, как везде. Без скрипта и в режиме без анимации всё видно сразу.
   Сдвиг через свойство translate, чтобы не мешать hover-эффектам на transform. */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal :is(.section-head .kicker, .section-head > p, .row__about, .domain, .steps li, .how__cta) { opacity: 0; }
  .has-reveal .section-head.is-in :is(.kicker, > p),
  .has-reveal .row.is-in :is(.row__about, .domain),
  .has-reveal .how__cta.is-in { opacity: 1; animation: rise var(--dur) var(--ease) var(--d, 0s) both; }

  /* заголовок раздела выезжает из-под строки */
  .has-reveal .section-title { overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
  .has-reveal .section-title .rise { display: block; translate: 0 110%; }
  .has-reveal .is-in .section-title .rise { translate: none; animation: rise-line var(--dur) var(--ease) .08s both; }

  /* линии прорисовываются слева направо */
  .has-reveal .row, .has-reveal .steps li {
    border-top-color: transparent;
    background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 1px border-box;
  }
  .has-reveal .steps li { background-image: linear-gradient(var(--line), var(--line)); }
  .has-reveal .row.is-in { background-size: 100% 1px; animation: draw var(--dur) var(--ease) both; }
  .has-reveal .steps.is-in li { opacity: 1; background-size: 100% 1px; animation: rise var(--dur) var(--ease) var(--d, 0s) both, draw var(--dur) var(--ease) var(--d, 0s) both; }

  /* очередь: рубрика, заголовок, описание; в строке каталога - подпись, потом домены; шаги один за другим */
  .row__about { --d: .08s; }
  .section-head > p { --d: .16s; }
  .row .domain:nth-child(1) { --d: .16s; }
  .row .domain:nth-child(2) { --d: .24s; }
  .steps li:nth-child(2) { --d: .1s; }
  .steps li:nth-child(3) { --d: .2s; }
  .how__cta { --d: .1s; }
  .has-reveal .rv-instant, .has-reveal .rv-instant * { animation: none !important; }
}
@keyframes rise { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes rise-line { from { translate: 0 110%; } to { translate: 0 0; } }
@keyframes draw { from { background-size: 0 1px; } to { background-size: 100% 1px; } }

/* ---------- подвал: права и подпись TAP LIVE ---------- */
.footer { padding-block: 32px calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); }
.footer__row { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer__copy { color: var(--ink-soft); font-size: .875rem; text-align: center; }
.made-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* Ролик и картинка сняты на белом фоне и накладываются умножением: белое исчезает.
   Чтобы смешивание работало, у обёрток нет своих transform. */
.made-by__badge { display: block; padding: 4px 8px 8px; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.made-by__logo {
  position: relative;
  display: block;
  width: 200px;
  aspect-ratio: 440 / 376;
  mix-blend-mode: multiply;
}
.made-by__logo img, .made-by__logo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.made-by__logo video { visibility: hidden; }
.made-by__logo.is-waiting { opacity: 0; transform: translateX(-60px); }
.made-by__logo.is-playing { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.made-by__logo.is-playing img { visibility: hidden; }
.made-by__logo.is-playing video { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .made-by__logo.is-idle { animation: logo-float 6s ease-in-out infinite; }
}
@keyframes logo-float {
  0%, 100% { transform: none; }
  25% { transform: perspective(600px) rotateX(6deg) rotateY(-10deg); }
  75% { transform: perspective(600px) translateY(-5px) rotateX(-3deg) rotateY(10deg); }
}
@media (min-width: 760px) {
  .footer__row { flex-direction: row; justify-content: space-between; }
}

/* ---------- окно заявки ---------- */
.buy {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--paper-raised);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.buy::backdrop { background: rgba(21, 19, 15, .62); }
.buy__body { display: flex; flex-direction: column; padding: 0 clamp(20px, 5vw, 36px) clamp(12px, 3vw, 24px); }
/* заголовок с крестиком остаётся на виду, если окно прокручивается на низком экране */
.buy__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(16px, 4vw, 32px) 14px;
  background: var(--paper-raised);
}
.buy__head h2 { padding-top: 6px; font-size: clamp(1.375rem, 5vw, 1.875rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.buy__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  padding: 0;
  border: 1px solid var(--line-field);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .buy__close:hover { border-color: var(--ink); } }
.buy__label { margin-bottom: 8px; color: var(--ink-soft); font-size: .875rem; font-weight: 500; }
.buy__select { position: relative; }
.buy__select::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.buy select, .buy textarea {
  width: 100%;
  border: 1px solid var(--line-field);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.5 var(--font); /* 16px: iPhone не увеличивает страницу при фокусе */
}
.buy select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 56px;
  padding: 10px 48px 10px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  cursor: pointer;
}
.buy__price { min-height: 1.5em; margin: 8px 0 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.buy textarea { flex: none; min-height: 6.5em; padding: 14px 16px; resize: vertical; } /* высоту под текст подбирает app.js */
.buy textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.buy__contacts { display: grid; gap: 10px; margin-top: 20px; }
.buy__contacts .btn { flex-direction: column; border-radius: 16px; }
.buy__contacts small { font-size: .8125rem; font-weight: 400; overflow-wrap: anywhere; }
.buy__empty { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.buy__copy { margin-top: 16px; }
.buy__contacts:not([hidden]) ~ .buy__copy { background: transparent; border-color: var(--ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .buy__contacts:not([hidden]) ~ .buy__copy:hover { background: var(--ink); color: var(--paper); }
}
.buy__status { min-height: 1.55em; margin-top: 10px; text-align: center; font-weight: 500; }
.buy__status.is-ok { color: var(--blue-deep); }
@media (max-height: 700px) {
  .buy__head { padding-block: 14px 8px; }
  .buy select { min-height: 48px; }
  .buy__price { margin: 4px 0 10px; }
  .buy textarea { padding-block: 10px; }
  .buy__contacts, .buy__empty { margin-top: 12px; }
  .buy__empty { padding-top: 10px; font-size: .9375rem; }
  .buy__copy { margin-top: 10px; }
  .buy__status { margin-top: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .buy[open] { animation: dialog-in var(--dur) var(--ease); }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
