/* Naimka v3: карта десертов и заказ торта по шагам.
   Палитра из их кадров: шалфей логотипа, шоколад, мёд деревянного стола. Шрифты: Oranienbaum (крупный набор), Golos Text (текст). */

:root {
  --paper: #E7E8E0;
  --paper-2: #F4F4EF;
  --card: #FCFCF9;
  --ink: #2A1E17;
  --ink-2: #5A5047;
  --sage: #4D5B45;
  --sage-2: #CDD3C4;
  --honey: #B4742A;
  --wa: #2E6A47;
  --line: rgba(42, 30, 23, .16);
  --line-2: rgba(42, 30, 23, .32);
  --g: clamp(18px, 4.4vw, 64px);
  --hh: 60px;
  --serif: "Oranienbaum", "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --hh: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p, li, dd, blockquote, figcaption { hyphens: manual; overflow-wrap: normal; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; hyphens: manual; margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sage-2); }

.h2 {
  font: 400 clamp(44px, 11vw, 96px)/.95 var(--serif);
  letter-spacing: -.01em;
}

/* ───── кнопки ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 6px; border: 1px solid transparent;
  font: 500 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: opacity .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--ink { background: var(--ink); color: var(--paper-2); }
.btn--line { border-color: var(--ink); background: transparent; }
.btn--ghost { background: transparent; padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn--ghost:disabled { opacity: .3; cursor: default; }
.btn--wa { background: var(--wa); color: #fff; }
@media (hover: hover) {
  .btn--ink:hover, .btn--wa:hover { opacity: .88; }
  .btn--line:hover { opacity: .7; }
}

/* ───── шапка ───── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--hh);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--g); background: var(--paper);
  border-bottom: 1px solid transparent;
}
.top.is-line { border-bottom-color: var(--line); }
.top > .btn { transition: opacity .3s ease, transform .35s var(--ease); }
.top.is-order > .btn { opacity: 0; transform: translateY(-8px); pointer-events: none; }
@media (max-width: 999px) {
  .top.is-hero > .btn { opacity: 0; transform: translateY(-8px); pointer-events: none; }
}
.brand, .foot__brand {
  font: 600 17px/1 var(--sans); letter-spacing: .3em; text-decoration: none; margin-right: -.3em;
}
.brand__i { position: relative; }
.brand__i::before {
  content: ""; position: absolute; left: 50%; top: -.42em; width: .22em; height: .22em; margin-left: -.26em;
  border-radius: 50%; background: var(--honey);
}
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 32px; margin-left: auto; margin-right: 12px; }
  .nav a { font-size: 15px; text-decoration: none; color: var(--ink-2); }
  .nav a:hover { color: var(--ink); }
}

main { display: block; }
section { scroll-margin-top: var(--hh); }

/* ───── обложка ───── */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--hh) + 14px) 0 22px;
  display: grid; grid-template-rows: auto auto 1fr auto;
  grid-template-columns: 100%;
}
.hero__place { margin: 0 var(--g) 10px; font-size: 14px; color: var(--ink-2); }
.hero__title {
  margin: 0 var(--g) 18px;
  font: 400 clamp(56px, 17.5vw, 96px)/.9 var(--serif);
  letter-spacing: -.015em; text-wrap: nowrap;
}
.hl { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hl > span { display: inline-block; }
.hero__media { margin: 0; position: relative; min-height: 260px; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__aside { padding: 18px var(--g) 0; }
.hero__lead { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero__row .btn { flex: 1 1 auto; max-width: 260px; }
.rate { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.rate__n { font: 400 44px/1 var(--serif); }
.rate__t { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.hero__index { display: none; }

/* появление обложки: строки заголовка поднимаются, кадр проявляется */
.js .hl > span { transform: translateY(104%); }
.js .hero__media img { opacity: 0; transform: scale(1.05); }
.js .hero__aside, .js .hero__index { opacity: 0; transform: translateY(10px); }
.js.is-ready .hl > span { transform: none; transition: transform 1s var(--ease); }
.js.is-ready .hl:nth-child(2) > span { transition-delay: .08s; }
.js.is-ready .hl:nth-child(3) > span { transition-delay: .16s; }
.js.is-ready .hero__media img { opacity: 1; transform: none; transition: opacity 1s ease .1s, transform 1.6s var(--ease); }
.js.is-ready .hero__aside, .js.is-ready .hero__index { opacity: 1; transform: none; transition: opacity .8s ease .45s, transform .8s var(--ease) .45s; }

@media (min-width: 1000px) {
  .hero {
    height: 100vh; height: 100svh; min-height: 680px; max-height: 1200px;
    padding: calc(var(--hh) + 20px) var(--g) 36px;
    grid-template-columns: minmax(250px, 1fr) minmax(0, 2.1fr) minmax(250px, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(24px, 2.6vw, 48px);
  }
  .hero__place { grid-column: 1 / -1; margin: 0 0 6px; font-size: 15px; }
  .hero__title {
    grid-column: 1 / -1; margin: 0 0 clamp(18px, 2.4vh, 32px) -.04em;
    font-size: clamp(96px, 8.9vw, 176px); line-height: .92;
  }
  .hl { display: inline-block; vertical-align: top; }
  .hero__media { grid-column: 2; grid-row: 3; min-height: 0; border-radius: 3px; }
  .hero__aside { grid-column: 1; grid-row: 3; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__lead { font-size: 16px; max-width: 22em; margin-bottom: 24px; }
  .hero__row { display: contents; }
  .hero__row .btn { flex: none; align-self: flex-start; }
  .rate { order: -1; margin-bottom: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .rate__n { font-size: clamp(72px, 6vw, 112px); line-height: .8; }
  .rate__t { font-size: 14px; }
  .hero__index { display: flex; flex-direction: column; grid-column: 3; grid-row: 3; min-height: 0; }
  .hero__index-h { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
  .toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
  .toc li { border-top: 1px solid var(--line); }
  .toc li:last-child { border-bottom: 1px solid var(--line); }
  .toc a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; text-decoration: none; }
  .toc__n { font: 400 clamp(19px, 1.45vw, 26px)/1.1 var(--serif); }
  .toc__p { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .toc a:hover .toc__n { color: var(--sage); }
}

/* ───── карта десертов ───── */
.karta { padding: clamp(72px, 12vw, 160px) var(--g) clamp(64px, 10vw, 140px); }
.karta__head { margin-bottom: clamp(32px, 5vw, 72px); }
.karta__sub { margin: 18px 0 0; max-width: 32em; color: var(--ink-2); font-size: 16px; }
.stage-photo { display: none; }
.mg { margin-top: 44px; }
.mg:first-child { margin-top: 0; }
.mg__head { padding-bottom: 14px; }
.mg__t { font: 400 26px/1.1 var(--serif); color: var(--sage); }
.mg__d { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.mi { border-top: 1px solid var(--line); }
.mg .mi:last-child { border-bottom: 1px solid var(--line); }
.mi__h {
  width: 100%; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline;
  padding: 16px 0 15px; background: none; border: 0; text-align: left;
}
.mi__n { font: 400 clamp(29px, 8.4vw, 44px)/1.05 var(--serif); letter-spacing: -.005em; }
.mi__p { font: 400 clamp(22px, 6vw, 30px)/1 var(--serif); text-align: right; white-space: nowrap; font-variant-numeric: lining-nums; }
.mi__p small { display: block; margin-top: 4px; font: 400 12px/1.2 var(--sans); color: var(--ink-2); }
.mi__d { grid-column: 1 / -1; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.mi__d:empty { display: none; }
.mi__more { padding: 4px 0 22px; }
.mi__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; margin-bottom: 16px; background: var(--paper-2); }
.mi__img img { width: 100%; height: 100%; object-fit: cover; }
.mi__go { width: 100%; }
.mi__p small { white-space: nowrap; }

@media (min-width: 900px) {
  .karta__head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .karta__sub { margin: 0 0 8px; }
  .karta__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .stage-photo { display: block; position: sticky; top: calc(var(--hh) + 24px); margin: 0; }
  .stage-photo__frame { position: relative; aspect-ratio: 1; max-width: min(100%, calc(100vh - var(--hh) - 140px)); overflow: hidden; border-radius: 3px; background: var(--paper-2); }
  .stage-photo__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
  .stage-photo__frame img.is-on { opacity: 1; }
  .stage-photo__cap { margin-top: 14px; font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; }
  .stage-photo__cap b { font-weight: 500; color: var(--ink); }
  .mi__img { display: none; }
  .mi__h { padding: 14px 0 13px; }
  .mi__n { font-size: clamp(30px, 2.6vw, 44px); }
  .mi__p { font-size: clamp(22px, 1.8vw, 30px); }
  .mi:not(.is-open) .mi__n { color: var(--ink-2); }
  .mi__h:hover .mi__n { color: var(--ink); }
  .mi__go { width: auto; }
  .mi__more { padding: 2px 0 20px; }
}

/* ───── разворот «свой дизайн» ───── */
.spread { padding: 0 0 clamp(72px, 11vw, 160px); }
.spread__media { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.spread__media img { width: 100%; height: 100%; object-fit: cover; }
.spread__text { padding: 28px var(--g) 0; }
.spread__title { font-size: clamp(42px, 11vw, 88px); }
.spread__lead { margin: 22px 0 14px; font: 400 clamp(22px, 5.6vw, 30px)/1.3 var(--serif); }
.spread__text p:not(.spread__lead) { margin: 0 0 26px; color: var(--ink-2); max-width: 30em; }
@media (min-width: 900px) {
  .spread { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); align-items: end; padding-left: var(--g); padding-right: var(--g); }
  .spread__media { border-radius: 3px; max-width: 620px; }
  .spread__text { padding: 0 0 12px; max-width: 640px; }
}

/* ───── заказ: один вопрос за раз ───── */
.order { padding: clamp(72px, 11vw, 150px) var(--g) clamp(72px, 10vw, 140px); background: var(--paper-2); }
.order__head { margin-bottom: clamp(28px, 4vw, 64px); }
.order__sub { margin: 18px 0 0; max-width: 34em; color: var(--ink-2); }
@media (min-width: 900px) {
  .order__head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .order__sub { margin: 0 0 8px; }
}
.order__grid { display: grid; }
.stage { display: none; }
@media (min-width: 1000px) {
  .order__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .stage { display: block; margin: 0; position: sticky; top: calc(var(--hh) + 24px); }
  .stage__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--hh) - 120px); overflow: hidden; border-radius: 3px; background: var(--paper); }
  .stage__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
  .stage__frame img.is-on { opacity: 1; }
  .stage__cap { margin-top: 14px; font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; }
  .stage__cap b { font-weight: 500; color: var(--ink); }
}

.wiz { min-width: 0; max-width: 640px; }
/* на телефоне шаг занимает экран: «Дальше» всегда на одном месте, ниже ничего не мелькает */
@media (max-width: 999px) {
  .wiz { display: flex; flex-direction: column; min-height: calc(100vh - var(--hh) - 12px); min-height: calc(100svh - var(--hh) - 12px); }
  .pane { flex: 1 0 auto; }
}
.wiz__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.wiz__n { margin: 0; flex: none; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wiz__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.wiz__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left center; transform: scaleX(0); transition: transform .5s var(--ease); }

.pane { min-height: 200px; }
.js .pane { opacity: 0; transform: translateY(10px); }
.js .pane.is-in { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s var(--ease); }
.pane__t { font: 400 clamp(36px, 9.6vw, 56px)/1.02 var(--serif); letter-spacing: -.005em; outline: none; }
.pane__lead { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 32em; }
.pane__body { margin-top: 22px; }
.pane__err { margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid #A2401C; background: var(--card); color: #8E3818; font-size: 15px; line-height: 1.45; opacity: 0; transform: translateY(4px); }
.pane__err.is-in { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s var(--ease); }

/* низ: «Назад» текстом и одна главная кнопка; на телефоне прилипает к низу экрана, пока виден шаг */
.wiz__nav {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 26px calc(var(--g) * -1) 0; padding: 12px var(--g) calc(12px + env(safe-area-inset-bottom));
  background: var(--paper-2); border-top: 1px solid var(--line);
}
.wiz__nav.is-first { justify-content: flex-end; }
.wiz__back { min-height: 48px; padding: 0 4px; border: 0; background: none; font-size: 16px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wiz__next, .wiz__send { flex: 1 1 auto; max-width: 300px; }
.wiz__nav.is-first .wiz__next { max-width: none; }
.wiz__send[hidden], .wiz__next[hidden], .wiz__back[hidden] { display: none; }
@media (min-width: 1000px) {
  .wiz__nav { margin: 32px 0 0; padding: 16px 0; }
  .wiz__nav.is-first .wiz__next { max-width: 300px; }
}
@media (hover: hover) { .wiz__back:hover { color: var(--ink); } }

.hint { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.hint--c { text-align: center; margin-left: auto; margin-right: auto; max-width: 26em; }

/* вопрос 1: крупные карточки с фото */
.kind { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.kind__img { display: block; overflow: hidden; border-radius: 4px; background: var(--paper); aspect-ratio: 1; }
.kind__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.kind__txt { display: block; padding: 10px 2px 0; }
.kind__l { display: block; font: 400 24px/1.1 var(--serif); }
.kind__s { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.kind__mark {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .3s var(--ease);
}
.kind__mark::after { content: ""; position: absolute; left: 11px; top: 7px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.kind.is-on .kind__mark { opacity: 1; transform: none; }
.kind::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--ink); border-radius: 8px; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.kind.is-on::after { opacity: 1; }
.kind--hero .kind__img { aspect-ratio: 16 / 10; }
.kind--hero .kind__img img { object-position: 50% 58%; }
.kind--hero .kind__l { font-size: clamp(28px, 7.4vw, 36px); }
.kind--hero .kind__s { font-size: 14px; max-width: 30em; }
.kinds__h { margin: 30px 0 12px; font-size: 14px; color: var(--ink-2); }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
@media (hover: hover) { .kind:hover .kind__img img { transform: scale(1.03); } }
@media (min-width: 1000px) {
  .order__grid.is-wide { grid-template-columns: minmax(0, 1fr); }
  .is-wide .stage { display: none; }
  .is-wide .wiz { max-width: none; }
  .is-wide .kind--hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: end; }
  .is-wide .kind--hero .kind__img { aspect-ratio: 2 / 1; }
  .is-wide .kind--hero .kind__txt { padding: 0 0 8px; }
  .is-wide .kind--hero .kind__l { font-size: 44px; }
  .is-wide .kind--hero .kind__s { font-size: 16px; margin-top: 10px; }
  .is-wide .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .is-wide .wiz__nav { max-width: none; }
}
.nw { white-space: nowrap; }

/* вес */
.size { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 0 8px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper__b {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card);
  display: grid; place-items: center; transition: transform .2s var(--ease), opacity .2s;
}
.stepper__b:active { transform: scale(.94); }
.stepper__b:disabled { opacity: .25; cursor: default; }
.stepper__v { min-width: 150px; text-align: center; font: 400 64px/1 var(--serif); font-variant-numeric: lining-nums; }
.size__info { margin: 0; text-align: center; font-size: 17px; line-height: 1.45; }
.size__info b { font-weight: 600; }

/* варианты строками: начинка, получение */
.opts { display: grid; gap: 10px; }
.opt {
  position: relative; display: block; width: 100%; padding: 16px 52px 16px 18px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--card);
}
.opt::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--ink); border-radius: 8px; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.opt.is-on::after { opacity: 1; }
.opt__t { display: block; font: 400 24px/1.15 var(--serif); }
.opt__s { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.opt__mark { position: absolute; right: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); }
.opt__mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .25s var(--ease); }
.opt.is-on .opt__mark { border-color: var(--ink); }
.opt.is-on .opt__mark::after { opacity: 1; transform: none; }
.opts + .field { margin-top: 18px; }

.field { display: block; margin-bottom: 18px; }
.field__l { display: block; margin: 0 0 7px; font-size: 14px; color: var(--ink-2); }
.field__i {
  width: 100%; height: 56px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--card); font: 400 17px/1 var(--sans); color: var(--ink);
}
.field__i::placeholder { color: #8C847C; }
.field__i:focus { outline: 2px solid var(--honey); outline-offset: 0; border-color: transparent; }
.check { display: flex; align-items: center; gap: 12px; margin-top: 4px; min-height: 44px; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }

.cal__h, .cal__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__h { margin-bottom: 6px; }
.cal__h span { text-align: center; font-size: 12px; color: var(--ink-2); }
.day {
  min-height: 48px; padding: 4px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.day__d { font: 400 21px/1 var(--serif); }
.day__m { font-size: 10px; line-height: 1; color: var(--honey); }
.day--wk { background: var(--paper); }
.day.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.is-on .day__m { color: #E9C690; }
.picked { margin: 16px 0 0; min-height: 1.4em; font: 400 24px/1.2 var(--serif); }

/* итог: карточка заказа, это и есть текст сообщения */
.bill { background: var(--card); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; }
.bill__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bill__ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; font: 400 19px/1 var(--serif); }
.bill__who { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.bill__who b { font-weight: 600; color: var(--ink); font-size: 15px; }
.bill__text { margin: 0; padding: 18px 18px 16px; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.bill__time { margin: 0; padding: 0 18px 14px; text-align: right; font-size: 12px; color: var(--ink-2); }

/* выбранный торт над весом (на телефоне; на компьютере его показывает кадр слева) */
.chosen { margin: 0 0 6px; position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; background: var(--paper); }
.chosen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.chosen figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px;
  background: linear-gradient(to top, rgba(42, 30, 23, .62), rgba(42, 30, 23, 0));
  color: #fff; font: 400 22px/1.1 var(--serif);
}
@media (min-width: 1000px) { .chosen { display: none; } }

/* ───── отзывы ───── */
.reviews { background: var(--ink); color: var(--paper-2); padding: clamp(72px, 11vw, 150px) var(--g); }
.score { margin: 0 0 40px; display: flex; align-items: flex-end; gap: 18px; }
.score__n { font: 400 clamp(110px, 32vw, 240px)/.78 var(--serif); letter-spacing: -.03em; }
.score__t { font-size: 15px; line-height: 1.45; max-width: 11em; color: #CFC6BC; padding-bottom: 6px; }
.quotes { display: grid; gap: 34px; }
.quote { margin: 0; padding-top: 22px; border-top: 1px solid rgba(244, 244, 239, .2); }
.quote blockquote { margin: 0; font: 400 clamp(22px, 5.6vw, 28px)/1.3 var(--serif); }
.quote--big blockquote { font-size: clamp(30px, 8vw, 52px); line-height: 1.12; }
.quote figcaption { margin-top: 14px; font-size: 14px; color: #CFC6BC; }
@media (min-width: 900px) {
  .reviews { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
  .reviews__score { position: sticky; top: calc(var(--hh) + 40px); }
  .score { flex-direction: column; align-items: flex-start; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .quote--big { grid-column: 1 / -1; }
}

/* ───── вопросы ───── */
.faq { padding: clamp(72px, 11vw, 150px) var(--g) clamp(48px, 8vw, 100px); }
.faq__title { margin-bottom: clamp(28px, 4vw, 56px); }
.acc { max-width: 900px; }
.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; border: 0; background: none; text-align: left;
  font: 400 clamp(24px, 6.4vw, 34px)/1.15 var(--serif);
}
.acc__x { position: relative; flex: none; width: 18px; height: 18px; }
.acc__x::before, .acc__x::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.acc__x::after { transform: rotate(90deg); }
.is-open .acc__x::after { transform: rotate(0deg); }
.acc__a p { margin: 0 0 24px; max-width: 36em; color: var(--ink-2); }
@media (min-width: 900px) {
  .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
}

/* ───── адрес ───── */
.place { padding: 0 var(--g) clamp(72px, 10vw, 140px); display: grid; gap: 28px; }
.place__media { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; max-width: 560px; }
.place__media img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 26px 0 30px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 16px; }
@media (min-width: 900px) {
  .place { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); align-items: end; }
  .place__text { max-width: 620px; padding-bottom: 12px; }
}

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 28px var(--g) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.foot__brand { color: var(--ink); }
.wiz__send { white-space: nowrap; }
@media (max-width: 380px) { .wiz__send { padding: 0 14px; gap: 8px; font-size: 15px; } .wiz__nav { gap: 12px; } }
