/* Сайт virtflowers.com: главная (RU и EN). Две цельные темы по системной настройке, как у
   приложения: светлая — студия цвета слоновой кости, тёмная — чёрная студия с мятным светом.
   Кадры сняты в Blender в тех же студиях, поэтому растворяются в фоне. docs/product/site.md. */

@font-face {
  font-family: 'Playfair Display';
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/playfair-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/playfair-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: 'Onest';
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/onest-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 dark;
  /* Студия: верх и низ кадра совпадают с фоном раздела. */
  --studio-top: #ded4c8;
  --paper: #f1e9e0;
  --paper-deep: #e9e0d5;
  --ink: #1c1712;
  --ink-soft: #5c5044;
  --accent-text: #006b57;
  --rule: rgb(28 23 18 / 0.14);
  --tile:
    radial-gradient(70% 55% at 50% 45%, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0) 75%),
    linear-gradient(160deg, #f9f3ea 0%, #f1e6d6 100%);
  --tile-border: rgb(110 80 40 / 0.1);
  --tile-ground: rgb(60 40 10 / 0.4);
  --floor-glow: transparent;
  --mint-fill: linear-gradient(135deg, #00d4ae, #12ee9f);
  --on-mint: #06241d;
  --cta-shadow: 0 10px 30px -12px rgb(0 107 87 / 0.55);
  --star: #f5b400;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1240px;
  /* Кривые движения: сильный ease-out для появлений, ease-in-out для движения по экрану. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --studio-top: #000;
    --paper: #08090b;
    --paper-deep: #111215;
    --ink: #fff;
    --ink-soft: rgb(255 255 255 / 0.72);
    --accent-text: #12ee9f;
    --rule: rgb(255 255 255 / 0.14);
    --floor-glow: radial-gradient(60% 40% at 50% 100%, rgb(18 238 159 / 0.14), transparent 70%);
    --cta-shadow: 0 10px 30px -12px rgb(18 238 159 / 0.45);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
/* Высоту картинки задают атрибуты width/height только как пропорцию, не как размер. */
img {
  height: auto;
}
a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 24px;
  line-height: 1.2;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.star {
  width: 0.9em;
  height: 0.9em;
  display: inline-block;
  vertical-align: -0.08em;
  margin-left: 0.15em;
  fill: var(--star);
}

/* Кнопка — одна на всю страницу: открыть приложение в Telegram. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--mint-fill);
  color: var(--on-mint);
  font: 600 18px/1 var(--text);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    var(--cta-shadow);
  transition:
    transform 160ms var(--ease-out),
    box-shadow 200ms ease;
}
.cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.cta:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    transform: translateY(-2px);
  }
}
.cta.small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}

/* Шапка */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 22px/1 var(--display);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.top nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 16px;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .top nav a:hover {
    text-decoration: underline;
  }
}

/* Меню языков в шапке: глобус и код языка; список раскрывается без скрипта (<details>), скрипт
   только закрывает его по щелчку мимо и по Esc. На телефоне остаётся в шапке один. */
.lang-menu {
  position: relative;
}
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  font: 600 14px/1 var(--text);
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.lang-menu summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: -3px 0 0 2px;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.lang-menu[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.lang-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--tile-border);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 40px -18px var(--tile-ground);
  transform-origin: top right;
}
.js .lang-menu[open] ul {
  animation: lang-menu-in 180ms var(--ease-out);
}
@keyframes lang-menu-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
}
.top nav .lang-menu a,
.foot .lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}
.lang-menu a[aria-current='page'] {
  color: var(--accent-text);
  font-weight: 600;
}
.lang-menu a[aria-current='page']::after {
  content: '';
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (hover: hover) and (pointer: fine) {
  .top nav .lang-menu a:hover {
    background: var(--paper-deep);
    text-decoration: none;
  }
}
@media (prefers-color-scheme: dark) {
  .lang-menu ul {
    background: var(--paper-deep);
    border-color: var(--rule);
  }
  @media (hover: hover) and (pointer: fine) {
    .top nav .lang-menu a:hover {
      background: rgb(255 255 255 / 0.06);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .lang-menu[open] ul {
    animation: none;
  }
}

/* Первый экран: кадр прижат к правому краю на всю высоту, его градиент совпадает с фоном. */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--studio-top), var(--paper));
  overflow: hidden;
}
.hero .wrap {
  display: flex;
  align-items: center;
  min-height: min(100svh, 920px);
  padding-top: 76px;
  padding-bottom: 48px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: 20px;
  color: var(--ink-soft);
}
.hero .cta {
  margin-top: 36px;
}
.terms-line {
  margin-top: 18px;
  max-width: 30em;
  font-size: 16px;
  color: var(--ink-soft);
}
.hero-art {
  position: absolute;
  top: 0;
  right: max(0px, calc((100vw - 1600px) / 2));
  bottom: 0;
  width: min(50vw, 760px);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  /* Края по бокам и снизу растворяются: в тёмной студии пол с мятным светом светлее фона. */
  mask-image:
    linear-gradient(90deg, transparent, #000 22%, #000 90%, transparent),
    linear-gradient(180deg, #000 78%, transparent);
  mask-composite: intersect;
}

/* Разделы */
.section {
  padding: clamp(80px, 11vw, 150px) 0;
}
.section-head {
  max-width: 760px;
}
.section-head p {
  margin-top: 20px;
  font-size: 20px;
  color: var(--ink-soft);
}

/* Как это работает: настоящая последовательность, поэтому с крупными номерами. */
.steps {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps figure {
  margin: 0 0 24px;
  aspect-ratio: 960 / 1180;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper-deep);
}
.steps figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.steps h3::before {
  content: counter(step);
  font: 500 44px/1 var(--display);
  color: var(--accent-text);
}
.steps p {
  margin-top: 12px;
  color: var(--ink-soft);
}

/* Живой букет: заголовок на всю ширину, ниже — модель и отличия. Модель стоит прямо на фоне. */
.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px clamp(40px, 6vw, 96px);
}
.feature .section-head {
  grid-column: 1 / -1;
}
.stage {
  position: relative;
}
.stage-view {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--floor-glow);
}
.stage model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  --progress-bar-color: #12ee9f;
}
.stage model-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 70%;
  padding: 8%;
}
/* Подсказка поверх сцены: модель можно вращать. */
.drag {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(12px);
  font-size: 15px;
  color: var(--ink-soft);
  pointer-events: none;
}
.drag svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.traits,
.rules {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
}
.traits h3,
.rules h3 {
  font-size: 22px;
}
.traits p,
.rules p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* В разделе отличий — одна колонка рядом с моделью, с разделителями. */
.feature .traits {
  margin: 0;
  grid-template-columns: 1fr;
  gap: 0;
}
.feature .traits li {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.feature .traits li:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Витрина. Светлая тема — букет без фона на тёплой подложке, как в каталоге приложения;
   тёмная — тёмный постер встык, края уходят в чёрный. */
.tiles {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
.tiles a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.tile-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--tile-border);
}
.tile-art::before {
  content: '';
  position: absolute;
  inset-inline: 22%;
  bottom: 7%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tile-ground), transparent);
}
.tile-art img {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 9% 9% 9%;
  object-fit: contain;
  object-position: 50% 100%;
  transition: transform 400ms var(--ease-out);
}
@media (prefers-color-scheme: dark) {
  .vitrine {
    background: #000;
  }
  .tiles {
    gap: 0;
  }
  .tile-art {
    border-radius: 0;
    background: #000;
    box-shadow: none;
  }
  .tile-art::before {
    content: none;
  }
  .tile-art img {
    padding: 0;
    object-fit: cover;
    mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
  .tile-name,
  .tile-price {
    padding: 0 20px;
  }
}
.tiles a:focus-visible {
  outline-offset: 4px;
}
.tiles a:focus-visible img {
  transform: scale(1.04);
}
@media (hover: hover) and (pointer: fine) {
  .tiles a:hover img {
    transform: scale(1.04);
  }
}
.tile-name {
  display: block;
  margin-top: 14px;
  font: 600 21px/1.2 var(--display);
}
.tile-price {
  display: block;
  margin: 4px 0 8px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.more {
  display: none;
}
.js .tiles.folded .later {
  display: none;
}
.js .more {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 500 16px/1 var(--text);
  cursor: pointer;
  transition: border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .js .more:hover {
    border-color: var(--ink);
  }
}
.vitrine-foot {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.vitrine-foot p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 36em;
}

/* Поводы: шесть коротких строк, сеткой по три, с тонкой линией сверху. */
.occasion-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.occasion-list li {
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
}
.occasion-list h3 {
  font-size: 26px;
}
.occasion-list p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-soft);
}
.occasion-list h3 a {
  display: inline-block;
  padding: 8px 0;
  margin: -8px 0;
  color: inherit;
  text-decoration-color: var(--rule);
}
.occasion-more {
  margin-top: 28px;
  max-width: 44em;
  color: var(--ink-soft);
}

/* Цена: главное одной крупной фразой, условия — четыре коротких правила. */
.price {
  background: var(--paper-deep);
}
.price .section-head {
  max-width: 980px;
}
.price-title {
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.rules {
  margin-top: 72px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Вопросы */
.faq {
  margin-top: 48px;
  max-width: 860px;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font: 600 22px/1.3 var(--display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  font: 400 28px/1 var(--text);
  color: var(--accent-text);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 26px;
  max-width: 44em;
  color: var(--ink-soft);
}

/* Финал: заголовок и кнопка над широким кадром с пятью букетами в той же студии. */
.final {
  padding-bottom: 0;
  text-align: center;
  overflow: hidden;
}
.final .wrap > div {
  max-width: 640px;
  margin: 0 auto;
}
.final p {
  margin: 20px auto 36px;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 28em;
}
.final picture img {
  width: min(100%, 1600px);
  margin: 24px auto 0;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* Подвал */
.foot {
  padding: 56px 0 calc(56px + env(safe-area-inset-bottom));
  font-size: 15px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}
.foot .wrap {
  display: grid;
  gap: 20px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

/* Нижняя кнопка на телефоне — когда кнопки первого экрана и финала не видны. */
.dock {
  display: none;
}

@media (max-width: 1080px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .occasion-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }
  .top nav > a,
  .top .cta {
    display: none;
  }
  .hero .wrap {
    display: block;
    min-height: 0;
    padding-top: 100px;
    padding-bottom: 0;
  }
  .hero-art {
    position: relative;
    right: auto;
    width: auto;
    height: min(118vw, 680px);
    margin: 8px calc(-1 * var(--gutter)) 0;
  }
  .hero-art img {
    mask-image: linear-gradient(180deg, transparent, #000 16%, #000 88%, transparent);
  }
  .lead,
  .section-head p,
  .final p {
    font-size: 18px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .traits,
  .rules {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .occasion-list {
    grid-template-columns: 1fr;
  }
  .occasion-list li {
    padding: 18px 0 22px;
  }
  .feature .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .tile-name {
    font-size: 18px;
  }
  .js .tiles.folded .late {
    display: none;
  }
  .final picture img {
    width: 100%;
    mask-image:
      linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
      linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
    mask-composite: intersect;
  }
  .foot {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
  .dock {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 5;
    transform: translateY(150%);
    transition: transform 300ms var(--ease-out);
  }
  .dock.shown {
    transform: none;
  }
  .dock .cta {
    width: 100%;
    justify-content: center;
  }
}
/* На узком телефоне — своя кадрировка финала (три букета), увеличенная за края экрана. */
@media (max-width: 600px) {
  .final picture img {
    width: 150%;
    max-width: none;
    margin-left: -25%;
  }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) {
  .tiles {
    gap: 0;
    margin-inline: calc(-1 * var(--gutter));
  }
  .tile-name,
  .tile-price {
    padding: 0 12px;
  }
}

/* Движение. Кривые — токены --ease-out и --ease-in-out. */
/* Одно оркестрованное движение: появление первого экрана. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.8s var(--ease-out) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.22s;
  }
  .hero-art img {
    animation: bloom 1.4s var(--ease-out) both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes bloom {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* Первый экран при прокрутке уходит чуть медленнее страницы — глубина без отдельного скрипта.
   Только там, где есть анимации по прокрутке (Chromium, Safari 26). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-art {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes drift {
  to {
    transform: translateY(14%) scale(0.94);
    opacity: 0.4;
  }
}

/* Появление при прокрутке, один раз (site.js ставит .in). Без скрипта всё видно сразу. */
.js [data-reveal] {
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(24px);
}
/* Картинки шагов раскрываются шторкой снизу вверх — как будто букет ставят на место.
   Наблюдаем пункт целиком: элемент, закрытый clip-path, IntersectionObserver не видит. */
.js .steps figure {
  clip-path: inset(0 0 0 0 round 28px);
  transition: clip-path 1100ms var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .steps figure img {
  transition: transform 1400ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .steps li:not(.in) figure {
  clip-path: inset(100% 0 0 0 round 28px);
}
.js .steps li:not(.in) figure img {
  transform: scale(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    transition: opacity 300ms ease;
    transition-delay: 0ms;
  }
  .js [data-reveal]:not(.in) {
    transform: none;
  }
  .js .steps li:not(.in) figure,
  .js .steps li:not(.in) figure img {
    clip-path: none;
    transform: none;
  }
}

/* Ответы раскрываются плавно там, где браузер умеет анимировать высоту до auto. */
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition:
      height 240ms var(--ease-out),
      opacity 240ms var(--ease-out),
      content-visibility 240ms allow-discrete;
  }
  .faq details[open]::details-content {
    height: auto;
    opacity: 1;
  }
}

/* Страница 404 */
.lost {
  max-width: 640px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.lost h1 {
  margin-top: 24px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
}
.lost .lead {
  margin: 0;
}
.lost-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.lost-actions a:not(.cta) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Значки каталогов, где размещено приложение: их требуют каталоги для бесплатного размещения
   (docs/product/listings.md). Высота общая, ширина — по пропорциям значка. */
.listed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
}
.listed img {
  display: block;
  width: auto;
  height: 32px;
}
