/* =========================================================
   Свои первые экраны магазинов (theme.look в shop.config.json).
   Высоты в px с ограничением, а не в vh: так экран одинаковый
   на любом телефоне и при съёмке видео.
   ========================================================= */

/* ---------- Стена букетов ---------- */
.wall { position: relative; background: var(--paper); overflow: hidden; }
.wall__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 470px; padding: 0 8px; overflow: hidden;
  -webkit-mask: linear-gradient(to bottom, #000 55%, transparent 88%); mask: linear-gradient(to bottom, #000 55%, transparent 88%); }
.wall__run { display: grid; gap: 8px; animation: wall-up 60s linear infinite; }
.wall__col--2 .wall__run { animation-name: wall-down; animation-duration: 70s; }
.wall__col--3 .wall__run { animation-duration: 52s; }
.wall__col--4, .wall__col--5, .wall__col--6 { display: none; }
.wall__col--5 .wall__run { animation-name: wall-down; animation-duration: 64s; }
.wall__run img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--r) * .7); }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: none; } }
.wall__panel { position: relative; margin-top: -84px; padding-bottom: 30px; }
.wall__title { font-family: var(--font-heading); font-weight: 400; font-size: calc(var(--hs, 1) * clamp(50px, 14.5vw, 120px)); line-height: .92; letter-spacing: -.02em; color: var(--green); }
.wall__facts { display: grid; gap: 2px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.wall__facts b { color: var(--ink); font-weight: 600; }
.wall__actions { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
@media (min-width: 1000px) {
  .wall__cols { grid-template-columns: repeat(6, 1fr); height: 560px; gap: 14px; padding: 0 14px; }
  .wall__col--4, .wall__col--5, .wall__col--6 { display: block; }
  .wall__panel { margin-top: -120px; padding-bottom: 64px; display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; column-gap: 48px; }
  .wall__title { grid-row: span 2; }
  .wall__facts { font-size: 16px; gap: 6px; margin: 0; }
}

/* ---------- Ночь (Цветы 24): тёмный тёплый экран и витрина из трёх фото ---------- */
.night { background: var(--green-deep); color: var(--paper); overflow: hidden; }
.night__inner { display: grid; gap: 22px; padding-top: 26px; padding-bottom: 32px; }
.night__now { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gold-soft); padding: 7px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.night__dot { width: 8px; height: 8px; border-radius: 50%; background: #8fdc8a; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #8fdc8a; } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.night__title { font-family: var(--font-heading); font-weight: 400; font-size: calc(var(--hs, 1) * clamp(52px, 15vw, 120px)); line-height: .95; letter-spacing: -.02em; margin-top: 16px; color: var(--paper); }
.night__lead { margin-top: 12px; color: color-mix(in srgb, var(--paper) 70%, transparent); max-width: 28em; }
.night__pics { display: grid; grid-template-columns: 1.75fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.night__pics img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.night__p1 { grid-row: span 2; aspect-ratio: 3 / 4; }
.night__p2, .night__p3 { aspect-ratio: auto; min-height: 0; }
.night__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.look-night .header { background: var(--green-deep); border-bottom: 1px solid color-mix(in srgb, var(--paper) 10%, transparent); }
@media (min-width: 1000px) {
  .night__inner { grid-template-columns: 1fr 1.1fr; column-gap: 64px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
  .night__pics { grid-column: 2; grid-row: 1 / 3; }
  .night__actions { grid-column: 1; grid-row: 2; display: flex; align-self: start; }
}

/* ---------- Прейскурант (Цветочная база) ---------- */
.board { background: var(--paper); color: var(--ink); }
.board__inner { display: grid; gap: 18px; padding-top: 26px; padding-bottom: 34px; }
.board__title { font-family: var(--font-heading); font-weight: 700; font-size: calc(var(--hs, 1) * clamp(40px, 11.5vw, 96px)); line-height: .95; letter-spacing: -.03em; color: var(--green); }
.board__sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.board__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.board__table { background: var(--blush); border-radius: var(--r); padding: 16px 18px 8px; }
.board__cap { font-size: 13px; font-weight: 600; color: var(--rose); margin-bottom: 4px; }
.board__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--green) 12%, transparent); font-size: 15px; }
.board__rows li:first-child { border-top: 0; }
.board__rows b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--green); }
.board__actions { display: flex; align-items: center; gap: 22px; }
.look-board .h2, .look-board .shelf__title, .look-board .product__name, .look-board .quote blockquote { font-weight: 600; letter-spacing: -.02em; }
.stems { padding: 44px 0 8px; }
.stems .lead { margin-bottom: 22px; }
.product__price small { font-weight: 400; font-size: 13px; color: var(--muted); }
@media (min-width: 1000px) {
  .stems { padding-top: 80px; }
  .board__inner { grid-template-columns: 1.15fr 1fr; column-gap: 48px; row-gap: 28px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
  .board__head { grid-column: 1 / -1; }
  .board__img { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .board__rows { columns: 2; column-gap: 32px; }
  .board__rows li { break-inside: avoid; }
  .board__rows li:first-child { border-top: 1px solid color-mix(in srgb, var(--green) 12%, transparent); }
}

/* ---------- Сторис ---------- */
.stories { position: relative; height: min(calc(100svh - 60px), 720px); min-height: 560px; background: var(--green-deep); color: #fff; overflow: hidden; isolation: isolate; }
.stories__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .6s var(--ease), transform 6s linear; z-index: -2; }
.stories__img.is-on { opacity: 1; transform: none; }
.stories::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 20%, transparent 42%, rgba(0,0,0,.75)); }
.stories__bars { position: absolute; top: 12px; left: var(--gutter); right: var(--gutter); display: flex; gap: 5px; z-index: 2; }
.stories__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.stories__bars i { display: block; height: 100%; width: 0; background: #fff; }
.stories__bars .is-done i { width: 100%; }
.stories__bars .is-run i { animation: bar 5s linear forwards; }
@keyframes bar { to { width: 100%; } }
.stories__tap { position: absolute; top: 0; bottom: 45%; width: 40%; z-index: 1; border: 0; background: none; padding: 0; cursor: pointer; }
.stories__tap--prev { left: 0; }
.stories__tap--next { right: 0; width: 60%; }
.stories__body { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 28px; z-index: 2; }
.stories__where { display: inline-flex; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stories__title { font-family: var(--font-heading); font-weight: 600; font-size: calc(var(--hs, 1) * clamp(46px, 13vw, 110px)); line-height: .95; letter-spacing: -.03em; margin-top: 12px; }
.stories__lead { margin-top: 10px; max-width: 26em; color: rgba(255,255,255,.82); }
.stories__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.stories .btn--line-light { color: #fff; border-color: rgba(255,255,255,.5); }
@media (min-width: 1000px) {
  .stories { height: 720px; }
  .stories__body { padding-bottom: 56px; }
  .stories__actions { display: flex; }
}

/* ---------- Воздух ---------- */
.airy { background: var(--paper); padding: 46px 0 34px; overflow: hidden; text-align: center; }
.airy__title { font-family: var(--font-heading); font-weight: 400; font-style: italic; font-size: calc(var(--hs, 1) * clamp(40px, 11vw, 96px)); line-height: 1; letter-spacing: -.01em; color: var(--green); }
.airy__lead { margin: 14px auto 0; max-width: 22em; color: var(--muted); font-size: 16px; }
.airy__film { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; margin-top: 34px; }
.airy__pic { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.airy__pic:nth-child(n+4) { display: none; }
.airy__actions { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 30px; }
.look-airy .h2, .look-airy .story__title { font-style: italic; }
@media (min-width: 1000px) {
  .airy { padding: 90px 0 64px; }
  .airy__film { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .airy__pic:nth-child(n+4) { display: block; }
}

@media (prefers-reduced-motion: reduce) { .wall__run, .airy__run { animation: none; } }

/* Одно слово в названии: фото стоит под ним и не наезжает на текст */
.ed__word + .ed__img:last-child { margin-bottom: 0; }

/* Подсказка в превью букета сверху, чтобы не наезжала на стебли */
.preview__hint { top: 14px; bottom: auto; }

/* Unbounded слишком тяжёлый для длинного текста: отзывы и адреса — основным шрифтом */
.look-stories .quote blockquote { font-family: var(--font-body); font-size: 18px; line-height: 1.45; }
.look-stories .shop__addr { font-size: 22px; }

/* ---------- Буквы (Цветком): название, под ним пара фото ---------- */
.look-letters .ed { padding: 18px 0 30px; }
.look-letters .ed__word { animation: none; }
.ed__pair { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; margin-top: 16px; align-items: start; }
.ed__big { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.ed__side { display: grid; gap: 14px; align-content: start; }
.ed__small { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.look-letters .ed__lead { font-size: 15px; line-height: 1.45; color: var(--muted); }
.look-letters .ed__meta { margin-top: 22px; }
@media (min-width: 1000px) {
  .ed__pair { grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 24px; }
  .look-letters .ed__lead { font-size: 18px; }
  .look-letters .ed__meta { grid-template-columns: auto 1fr; }
}

/* ---------- Двери: половины фото расходятся, название на цветной полосе ---------- */
.doors { background: var(--paper); }
.doors__stage { position: relative; height: min(calc(100svh - 60px), 760px); min-height: 560px; background: var(--gold); overflow: hidden; }
.doors__door { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; z-index: 2; animation: doors-open 1.6s cubic-bezier(.75, 0, .25, 1) .35s both; }
.doors__door img { position: absolute; top: 0; height: 100%; width: 50vw; max-width: none; object-fit: cover; }
.doors__door--l { left: 0; }
.doors__door--l img { left: 0; }
.doors__door--r { right: 0; }
.doors__door--r img { right: 0; }
@keyframes doors-open { to { width: 15%; } }
.doors__mid { position: absolute; left: 15%; right: 15%; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 12px; color: var(--green-deep); animation: doors-mid 1s ease 1.4s both; }
@keyframes doors-mid { from { opacity: 0; transform: scale(.94); } }
.doors__top { position: absolute; top: 18px; left: 0; right: 0; font-size: 13px; font-weight: 600; }
.doors__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 9.5vw, 120px); line-height: .92; letter-spacing: -.045em; white-space: nowrap; }
.doors__lead { font-size: 14px; line-height: 1.45; margin: 14px 0 20px; max-width: 22em; }
.doors__btn { background: var(--green-deep); color: var(--gold); }
.doors__link { margin-top: 14px; font-size: 14px; font-weight: 500; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.doors__places { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 18px; padding-bottom: 22px; }
.doors__places a { display: grid; text-decoration: none; color: var(--ink); line-height: 1.3; }
.doors__places b { font-weight: 600; font-size: 15px; }
.doors__places span { font-size: 13px; color: var(--muted); }
.look-doors .h2, .look-doors .shelf__title, .look-doors .step__title { font-weight: 700; letter-spacing: -.03em; }
.look-doors .product__name, .look-doors .shop__addr, .look-doors .footer__name, .look-doors .summary__total strong, .look-doors .buildbar__sum strong { font-weight: 600; letter-spacing: -.02em; }
.look-doors .quote blockquote { font-family: var(--font-body); font-size: 18px; line-height: 1.45; }
@media (min-width: 1000px) {
  .doors__stage { height: 680px; }
  @keyframes doors-open { to { width: 30%; } }
  .doors__mid { left: 30%; right: 30%; }
  .doors__title { font-size: 96px; }
  .doors__lead { font-size: 16px; }
  .doors__places { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .doors__door { animation: none; width: 15%; } .doors__mid { animation: none; } }
@media (prefers-reduced-motion: reduce) and (min-width: 1000px) { .doors__door { width: 30%; } }

/* ---------- marquee: наклонная 3D-стена из бегущих колонок ---------- */
.mq { position: relative; display: grid; overflow: hidden; background: var(--paper); }
.mq__wall { position: relative; height: 56svh; min-height: 360px; overflow: hidden; perspective: 900px;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.mq__tilt { position: absolute; inset: -30% -25%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  transform: rotateX(28deg) rotateZ(-14deg); transform-origin: center; }
.mq__col--4 { display: none; }
.mq__col { overflow: hidden; }
.mq__track { display: grid; gap: 12px; animation: mq-up 38s linear infinite; }
.mq__col--2 .mq__track, .mq__col--4 .mq__track { animation-name: mq-down; animation-duration: 44s; }
.mq__col--3 .mq__track { animation-duration: 32s; }
.mq__track img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); box-shadow: 0 18px 40px -18px rgba(43, 31, 58, .45); }
@keyframes mq-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } }
@keyframes mq-down { from { transform: translateY(calc(-50% - 6px)); } to { transform: translateY(0); } }
.mq__text { position: relative; z-index: 2; margin-top: -14svh; padding: 0 20px 34px; }
.mq__hours { margin: 0 0 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.mq__title { margin: 0; font-family: var(--font-heading); font-weight: 700; color: var(--ink); line-height: .92; letter-spacing: -.045em;
  font-size: clamp(60px, 17vw, 168px); }
.mq__lead { max-width: 30ch; margin: 14px 0 22px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.mq__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mq__btn { background: var(--rose); color: #fff; }
.mq__link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }
.mq__places { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.mq__places a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 14px; text-decoration: none; background: #fff8; }
@media (min-width: 1000px) {
  .mq { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; min-height: min(calc(100svh - 60px), 820px); }
  .mq__wall { order: 2; height: 100%; min-height: 0; position: absolute; inset: 0 0 0 38%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
  .mq__tilt { grid-template-columns: repeat(4, 1fr); inset: -40% -20% -40% -5%; gap: 16px; }
  .mq__col--4 { display: block; }
  .mq__track { gap: 16px; }
  @keyframes mq-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
  @keyframes mq-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }
  .mq__text { margin: 0; padding: 40px 0 40px max(32px, calc((100vw - 1200px) / 2)); }
  .mq__lead { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .mq__track { animation: none; } }

/* ---------- circle «Пион»: слово, букет в круге, слово ---------- */
.pion { display: flex; flex-direction: column; min-height: min(calc(100svh - 60px), 900px); padding: 12px 18px 22px; background: var(--paper); overflow: hidden; }
.pion__stage { position: relative; margin: auto 0; }
.pion__w { position: relative; z-index: 2; margin: 0; font-family: var(--font-heading); font-weight: 400; line-height: .9; color: var(--green);
  white-space: nowrap; font-size: clamp(56px, 20vw, 190px); animation: pion-in 1s cubic-bezier(.2, .7, .2, 1) .45s both; }
.pion__w--1 { --dx: -110px; }
.pion__w--2 { --dx: 110px; text-align: right; animation-delay: .6s; }
.pion__circ { position: relative; z-index: 1; width: min(86vw, 460px); aspect-ratio: 1; margin: -5vw auto -4vw; border-radius: 50%; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(77, 25, 31, .45); animation: pion-circ 1.1s cubic-bezier(.6, 0, .2, 1) .1s both; }
.pion__circ img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pion-in { from { opacity: 0; transform: translateX(var(--dx)); } }
@keyframes pion-circ { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(50% at 50% 50%); } }
.pion__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.pion__row p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
.pion__btn { background: var(--green); color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1000px) {
  .pion { padding: 24px max(32px, calc((100vw - 1200px) / 2)) 36px; }
  .pion__stage { width: min(100%, 980px); margin: auto; }
  .pion__w { font-size: min(13vw, 19vh); }
  .pion__circ { width: min(420px, 50vh); margin: -6vh auto -5vh; }
  .pion__row p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pion__w, .pion__circ { animation: none; } }

/* ---------- Сад: фото на весь экран, название поднимается по буквам ---------- */
.garden { position: relative; height: calc(100svh - 64px); min-height: 560px; max-height: 900px; overflow: hidden; background: var(--green-deep); color: #fff; }
.garden__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: g-kb 14s ease-out both; }
@keyframes g-kb { from { transform: scale(1.18); } }
.garden::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(40, 30, 28, .3) 0%, rgba(40, 30, 28, 0) 22%, rgba(40, 30, 28, 0) 45%, color-mix(in srgb, var(--green-deep) 90%, transparent) 86%); }
.garden__txt { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; z-index: 2; max-width: 1240px; margin: 0 auto; }
.garden__title { font-family: var(--font-logo, var(--font-heading)); font-weight: 500; font-size: 19vw; line-height: .85; letter-spacing: -.02em; }
.garden__w { display: block; overflow: hidden; padding-bottom: .06em; }
.garden__w span { display: inline-block; transform: translateY(105%); animation: g-up 1s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes g-up { to { transform: none; } }
.garden__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--gold); opacity: 0; animation: g-fade .8s 1.4s forwards; }
.garden__meta span { max-width: 12em; }
.garden__meta span + span { text-align: right; }
.garden__acts { display: flex; gap: 10px; margin-top: 20px; opacity: 0; animation: g-fade .8s 1.6s forwards; }
.garden__acts .btn { flex: 1; }
.garden__b1 { background: var(--blush); color: var(--ink); }
.garden__b2 { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
@keyframes g-fade { to { opacity: 1; } }
@media (min-width: 1000px) {
  .garden { height: min(calc(100svh - 64px), 820px); }
  .garden__title { font-size: 150px; }
  .garden__acts { max-width: 460px; }
}
body:has(.topnote) .garden { height: calc(100svh - 64px - 52px); }

.has-logo-font .garden__title { font-weight: 400; letter-spacing: 0; line-height: 1.1; font-size: 21vw; }
@media (min-width: 1000px) { .has-logo-font .garden__title { font-size: 160px; } }
