/* Нуга & Ягоды. Свадьба
   Тёмная коричневая палитра с макета первого экрана. Mobile first: 640 / 900 / 1100 / 1440px. */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-cyrillic-400-normal.ttf") format("truetype");
}
@font-face {
  font-family: "Oranienbaum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/oranienbaum-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oranienbaum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/oranienbaum-latin-400-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;
}
@font-face {
  font-family: "Oranienbaum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/oranienbaum-latin-ext-400-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: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-cyrillic-wght-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin-wght-italic.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: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/jost-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: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/jost-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;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/jost-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;
}

/* ---------- Токены ---------- */
:root {
  /* коричневые фоны, от глубокого к приподнятому */
  --bg-deep: #260b07;
  --bg: #260b07;
  --bg-rgb: 38 11 7;
  --bg-cocoa: #260b07;
  --raise: #260b07;
  --cream: #ede5d3;
  --cream-muted: #c7bea9;
  --copper: #c88b5f;
  --line: rgb(237 229 211 / .11);
  --line-strong: rgb(237 229 211 / .24);
  --error: #ff9d8f;

  --serif: "Cormorant Garamond", Georgia, serif;
  --italic: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 20px;
  --section-y: 96px;
  --head-gap: 40px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}
@media (min-width: 640px) {
  :root { --gutter: 40px; --section-y: 120px; --head-gap: 48px; }
}
@media (min-width: 1100px) {
  :root { --gutter: clamp(96px, 12vw, 224px); --section-y: clamp(128px, 9vw, 168px); --head-gap: clamp(56px, 4.4vw, 80px); --header-h: 88px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1.5px solid var(--copper); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--copper); color: var(--bg-deep); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--cream); color: var(--bg); }
.skip:focus { top: 12px; }
.container { width: 100%; padding-inline: var(--gutter); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки (как на макете: светлая пилюля со стрелкой) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font: 450 .9375rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn .icon { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(5px); }
.btn--cream { background: var(--cream); color: var(--bg); }
.btn--cream:hover { background: #f5efdf; }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--cream); }
.btn--ghost[aria-pressed="true"] { background: var(--raise); box-shadow: inset 0 0 0 1px var(--copper); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.actions .btn { flex: 1 1 100%; }
@media (min-width: 640px) { .actions .btn { flex: 0 0 auto; } }

.round {
  width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: none; color: var(--cream);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 300 1.75rem/1 var(--sans); transition: box-shadow .3s var(--ease), background-color .3s;
}
.round:hover { box-shadow: inset 0 0 0 1px var(--cream); }
.round .icon { width: 20px; height: 20px; }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.header.is-scrolled, .header.is-open { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--copper); display: grid; place-items: center; }
.logo__mark img { width: 30px; height: 30px; }
.logo__text { display: grid; line-height: 1; }
.logo__name { font: 400 1.5rem/1 var(--serif); white-space: nowrap; }
.logo__name span { font-family: var(--italic); font-style: italic; color: var(--copper); }
.logo__sub { margin-top: 6px; font: 400 .6875rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--copper); }
.nav, .header__phone { display: none; }

.burger { position: relative; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 14px; right: 14px; height: 1px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger::before { top: 19px; } .burger span { top: 24px; } .burger::after { top: 29px; }
.header.is-open .burger::before { transform: translateY(5px) rotate(45deg); }
.header.is-open .burger span { opacity: 0; }
.header.is-open .burger::after { transform: translateY(-5px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; display: flex; flex-direction: column; gap: 40px;
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--bg); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu__list a { display: block; padding: 12px 0; font: 400 2rem/1.15 var(--serif); text-decoration: none; }
.menu__foot { display: grid; gap: 20px; margin-top: auto; }
.menu__phone { display: inline-flex; align-items: center; min-height: 48px; font: 400 1.5rem/1 var(--serif); text-decoration: none; }

@media (min-width: 1024px) {
  .burger, .menu { display: none; }
  .nav { display: flex; gap: clamp(32px, 3.4vw, 64px); }
  .nav a, .header__phone { font: 400 .9375rem/1 var(--sans); padding: 10px 0; text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: 8px; transition: text-decoration-color .4s var(--ease); }
  .nav a:hover, .header__phone:hover { text-decoration-color: var(--copper); }
  .header__phone { display: inline-block; white-space: nowrap; }
}
@media (min-width: 1100px) {
  .logo { gap: 18px; }
  .logo__mark { width: 56px; height: 56px; }
  .logo__mark img { width: 38px; height: 38px; }
  .logo__name { font-size: 1.75rem; }
  .logo__sub { font-size: .75rem; margin-top: 8px; }
}

/* ---------- Первый экран со слайдером ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); padding-top: var(--header-h); }
.hero__slides { position: relative; aspect-ratio: 760 / 860; max-height: 72svh; width: 100%; touch-action: pan-y; }
.hero__slides::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, var(--bg), rgb(var(--bg-rgb) / 0)); pointer-events: none; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-active { opacity: 1; }
.slide--full img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Фото на чёрном: свой фон внутри слайда, lighten растворяет чёрный, маска гасит края */
.slide--cut { background: var(--bg); }
.slide--cut img {
  position: absolute; inset: 6% 8% 4%; width: 84%; height: 90%; object-fit: contain; object-position: 50% 100%;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
.hero__body { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 48px; }
.hero__content { display: grid; gap: 0; }
.hero__title { font: 400 clamp(2.375rem, 1.4rem + 3vw, 4.5rem)/1 var(--serif); letter-spacing: -0.01em; max-width: 11.5em; text-wrap: balance; }
.hero__title em { font-family: var(--italic); font-style: italic; font-weight: 400; }
.hero__lead { max-width: 30em; color: var(--cream-muted); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); }
.hero__eyebrow { margin-bottom: 10px; font: 400 .9375rem/1 var(--sans); color: var(--copper); }
.hero__lead { margin-top: 16px; }
.hero__content .actions { margin-top: 24px; }

.hero__foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 8px; padding-bottom: 40px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots button { width: 48px; height: 44px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.hero__dots span { position: relative; display: block; height: 1px; background: var(--line-strong); overflow: hidden; }
.hero__dots span::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; }
.hero__dots .is-active span::after { animation: fill var(--slide-time, 7s) linear forwards; }
.hero.is-paused .hero__dots .is-active span::after { animation-play-state: paused; }
.hero__dots .is-done span::after { transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.hero__caption { font: 400 1rem/1.3 var(--serif); }
.hero__caption-meta { margin-left: 10px; font: 400 .875rem/1 var(--sans); color: var(--cream-muted); }
.hero__city { font-size: .9375rem; color: var(--copper); }
.hero__service-bar { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); color: var(--cream); }
.hero__service-bar p { flex: none; font: 400 clamp(1rem, .9rem + .35vw, 1.25rem)/1.2 var(--serif); white-space: nowrap; }
.hero__service-bar p span { padding-inline: .2em; color: var(--copper); }
.hero__service-line { display: block; width: clamp(28px, 5vw, 90px); height: 1px; background: var(--line-strong); }
.slide--reference img { object-position: center; }

@media (min-width: 900px) {
  .hero { min-height: min(100svh, 1120px); display: flex; flex-direction: column; }
  .hero__slides { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; }
  .hero__slides::after { inset: 0; height: auto; background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / .88) 0%, rgb(var(--bg-rgb) / .4) 36%, rgb(var(--bg-rgb) / 0) 56%),
    linear-gradient(to top, rgb(var(--bg-rgb) / .8) 0%, rgb(var(--bg-rgb) / 0) 24%); }
  .slide--full img { object-position: 76% 50%; }
  .slide--reference img { object-position: center; }
  .slide--cut img { inset: calc(var(--header-h) + 4%) var(--gutter) 9% auto; width: 50%; height: calc(87% - var(--header-h)); }
  .hero__body { flex: 1; display: flex; align-items: center; margin-top: 0; padding-block: 64px; }
  .hero__content { max-width: min(50%, 640px); gap: 0; }
  .hero__foot { flex-wrap: nowrap; gap: 48px; padding-bottom: 48px; }
  .hero__caption { font-size: 1.125rem; }
  .hero__city { margin-left: auto; }
}
@media (min-width: 1440px) {
  .slide--full img { object-position: 68% 50%; }
}

/* ---------- Блоки ---------- */
.block { padding-block: var(--section-y); background: var(--bg); overflow-x: clip; }
.block--cocoa { background: var(--bg-cocoa); }
.block__head { display: grid; gap: 20px; margin-bottom: var(--head-gap); }
.block__title { font: 400 clamp(2.25rem, 1.5rem + 2.6vw, 4.25rem)/1 var(--serif); letter-spacing: -0.01em; max-width: 16em; text-wrap: balance; }
.block__title--md { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 3rem); line-height: 1.05; }
.block__sub { max-width: 26em; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.625rem)/1.4 var(--serif); color: var(--cream-muted); text-wrap: pretty; }
.block__aside { max-width: 26em; color: var(--cream-muted); }
.block__cta { margin-top: clamp(40px, 4vw, 64px); }
.pp { margin-top: clamp(48px, 5vw, 80px); font: 400 clamp(1.375rem, 1.2rem + .7vw, 1.875rem)/1.25 var(--serif); max-width: 22em; }
.pp::before { content: ""; display: block; width: 40px; height: 1px; margin-bottom: 20px; background: var(--copper); }

@media (min-width: 1100px) {
  .block__head { grid-template-columns: minmax(0, 1fr) minmax(280px, 26em); align-items: end; column-gap: 96px; }
  .block__head--stack { grid-template-columns: 1fr; }
}

/* ---------- Каталог: плитки ---------- */
.cakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
.cake { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cake__photo { position: relative; aspect-ratio: 1; overflow: hidden; background: #1a0805; margin-bottom: 6px; }
.cake__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cake:hover .cake__photo img { transform: scale(1.04); }
.cake__photo::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0805' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  transform: scale(0); transition: transform .35s var(--ease);
}
.cake.is-picked .cake__photo::after { transform: scale(1); }
.cake__title { font: 400 1.0625rem/1.25 var(--serif); text-wrap: balance; }
.cake__meta { font-size: .8125rem; color: var(--cream-muted); }
.cake__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 6px; }
.cake__price { font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.cake__want {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); font: 450 .8125rem/1 var(--sans);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.cake__want:hover { box-shadow: inset 0 0 0 1px var(--cream); }
.cake__want-icon { position: relative; width: 12px; height: 12px; }
.cake__want-icon::before, .cake__want-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.cake__want-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.cake__want[aria-pressed="true"] { background: var(--cream); color: var(--bg); box-shadow: none; }
.cake__want[aria-pressed="true"] .cake__want-icon::before { transform: translate(-80%, 10%) rotate(45deg) scaleX(.5); }
.cake__want[aria-pressed="true"] .cake__want-icon::after { transform: translate(-30%, -40%) rotate(-50deg) scaleX(.92); }
.cakes__more { margin-top: clamp(48px, 5vw, 72px); }
@media (min-width: 640px) { .cakes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 20px; } .cake__title { font-size: 1.1875rem; } }
@media (min-width: 1100px) { .cakes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; } }

/* ---------- Дегустационный сет ---------- */
.tasting__grid { display: grid; gap: 64px; }
.tasting__text { display: grid; gap: 32px; align-content: start; justify-items: start; }
.tasting__text > p { max-width: 32em; font-size: clamp(1rem, .95rem + .2vw, 1.125rem); color: var(--cream-muted); }
.tasting__inside { width: 100%; max-width: 34em; }
.tasting__inside div { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--line); }
.tasting__inside div:last-child { border-bottom: 1px solid var(--line); }
.tasting__inside dt { font-size: .875rem; color: var(--copper); }
.tasting__inside dd { font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.35 var(--serif); }
.lineup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 16px; align-items: end; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.lineup li { display: grid; justify-items: center; gap: 20px; text-align: center; }
.lineup img { height: clamp(170px, 42vw, 240px); width: auto; object-fit: contain; filter: drop-shadow(0 28px 26px rgb(0 0 0 / .6)); }
.lineup span { font: 400 1.0625rem/1.2 var(--serif); color: var(--cream-muted); }
.set-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); }
.set-video img, .set-video video { width: 100%; height: 100%; object-fit: cover; }
.set-video__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgb(0 0 0 / .2); }
.set-video__play span { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--cream); color: var(--bg); }
.set-video__play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
@media (min-width: 1100px) {
  .tasting__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(56px, 6vw, 112px); align-items: end; }
  .lineup { grid-template-columns: repeat(4, 1fr); }
  .lineup img { height: clamp(220px, 18vw, 340px); }
}

/* ---------- Начинки: поворотный стенд ---------- */
.wheel { display: grid; justify-items: center; text-align: center; }
.wheel__stage {
  position: relative; width: 100%; height: clamp(320px, 92vw, 440px);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; isolation: isolate;
}
.wheel__stage:active { cursor: grabbing; }
.wheel__stage:focus-visible { outline: none; }
.wheel__stage::after {
  /* подставка: тонкая дуга под срезами */
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(140%, 1500px); aspect-ratio: 5 / 1;
  transform: translate(-50%, 50%); border-radius: 50%; border: 1px solid var(--line); pointer-events: none;
}
.wheel__track { position: absolute; inset: 0; }
.wheel__item { position: absolute; left: 50%; bottom: 6%; height: 90%; will-change: transform, opacity, filter; }
.wheel__item img { height: 100%; width: auto; max-width: none; object-fit: contain; pointer-events: none; filter: none; }
.wheel__controls { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.wheel__count { min-width: 80px; font: 400 1.125rem/1 var(--serif); color: var(--cream-muted); font-variant-numeric: tabular-nums; }
.wheel__count span { color: var(--cream); }
.wheel__info { display: grid; justify-items: center; gap: 16px; max-width: 36em; margin-top: 36px; }
.wheel__name { font: 400 clamp(1.875rem, 1.4rem + 1.8vw, 3rem)/1.05 var(--serif); text-wrap: balance; }
.wheel__desc { color: var(--cream-muted); font-size: 1rem; min-height: 3.4em; }
.wheel__price { color: var(--cream-muted); }
.wheel__price b { font: 400 1.375rem/1 var(--serif); color: var(--cream); }
.wheel__info .btn { margin-top: 8px; }
.wheel__limit { margin-top: 8px; color: var(--cream-muted); font-size: .9375rem; text-decoration: underline; text-underline-offset: 5px; }

.picked { display: grid; gap: 24px; justify-items: start; margin-top: clamp(48px, 5vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.picked__list { color: var(--cream-muted); max-width: 40em; }
.picked__list b { color: var(--cream); font-weight: 450; }
@media (min-width: 900px) {
  .wheel__stage { height: clamp(420px, 34vw, 560px); }
  .picked { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* ---------- Калькулятор ---------- */
.calc { margin-top: var(--section-y); padding-top: var(--section-y); border-top: 1px solid var(--line); }
.calc__title { margin-bottom: var(--head-gap); font: 400 clamp(1.875rem, 1.4rem + 1.6vw, 3rem)/1.05 var(--serif); }
.calc__panel { display: grid; border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; }
.calc__form { display: grid; gap: 32px; padding: 28px 20px; }
.calc__label { display: block; margin-bottom: 12px; padding: 0; font-size: .8125rem; color: var(--cream-muted); }
.stepper { display: flex; align-items: stretch; width: 100%; max-width: 320px; height: 60px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.stepper button { width: 60px; flex: none; border: 0; background: none; color: var(--cream); font: 300 1.5rem/1 var(--sans); border-radius: 999px; transition: background-color .2s; }
.stepper button:hover { background: var(--raise); }
.stepper input { flex: 1; min-width: 0; border: 0; background: none; text-align: center; color: var(--cream); font: 400 1.75rem/1 var(--serif); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper:focus-within { box-shadow: inset 0 0 0 1px var(--copper); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.presets button { min-width: 52px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--cream-muted); box-shadow: inset 0 0 0 1px var(--line); font: 450 .875rem/1 var(--sans); transition: background-color .2s, color .2s, box-shadow .2s; }
.presets button:hover { color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.presets button[aria-pressed="true"] { background: var(--cream); color: var(--bg); box-shadow: none; }
.calc__mode { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.calc__mode label { position: relative; cursor: pointer; }
.calc__mode input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.calc__mode span { display: grid; gap: 2px; padding: 14px 18px 14px 48px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; color: var(--cream-muted); transition: box-shadow .2s, background-color .2s; }
.calc__mode span::before { content: ""; position: absolute; left: 18px; top: 18px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .2s; }
.calc__mode b { font-weight: 500; font-size: 1rem; color: var(--cream); }
.calc__mode input:checked + span { background: var(--raise); box-shadow: inset 0 0 0 1px var(--copper); }
.calc__mode input:checked + span::before { box-shadow: inset 0 0 0 5px var(--copper); }
.calc__mode input:focus-visible + span { outline: 1.5px solid var(--copper); outline-offset: 3px; }
.calc__result { display: grid; align-content: center; gap: 6px; padding: 28px 20px; background: var(--raise); border-top: 1px solid var(--line); }
.calc__kg { font: 400 clamp(3rem, 2.2rem + 3vw, 4.75rem)/1 var(--serif); font-variant-numeric: lining-nums; }
.calc__formula { color: var(--cream-muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .calc__panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .calc__form { padding: 40px; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .calc__result { padding: 40px; border-top: 0; border-left: 1px solid var(--line); }
}

.weights { width: 100%; margin-top: clamp(48px, 5vw, 72px); border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.weights caption { padding-bottom: 20px; text-align: left; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.3 var(--serif); color: var(--cream-muted); }
.weights caption::after { content: " ↓"; color: var(--copper); }
.weights th, .weights td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.weights th:first-child { padding-left: 16px; }
.weights thead th { background: var(--raise); }
.weights thead th { font: 450 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); border-bottom-color: var(--line-strong); }
.weights thead small { display: block; margin-top: 6px; font-size: .8125rem; letter-spacing: 0; text-transform: none; color: var(--cream-muted); font-weight: 350; }
.weights tbody th, .weights tbody td { font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.625rem)/1 var(--serif); transition: color .3s var(--ease), background-color .3s var(--ease); }
.weights tbody tr.is-near th, .weights tbody tr.is-near td { background: rgb(200 139 95 / .08); }
.weights tbody th { color: var(--cream-muted); }
.weights tbody tr.is-near th, .weights tbody tr.is-near td { color: var(--copper); }
.calc__note { margin-top: 24px; font-size: .9375rem; color: var(--cream-muted); }

@media (min-width: 900px) {
  .calc__results { grid-template-columns: 1fr 1fr; }
}

/* ---------- Почему можно доверить нам свадебный торт ---------- */
.trust__grid { display: grid; gap: 48px; }
.trust__photo { margin: 0; aspect-ratio: 4 / 5; max-height: 72svh; background: var(--bg); } /* sticky создаёт свой слой: подложка нужна, чтобы lighten растворял чёрный фон фото */
.trust__photo img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); }
.trust__body { display: grid; gap: var(--head-gap); align-content: center; }
.facts li { display: flex; align-items: baseline; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { flex: 0 0 3.6em; font: 400 clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem)/1 var(--serif); color: var(--copper); white-space: nowrap; font-variant-numeric: lining-nums; }
.facts span { min-width: 0; }
.facts span { font: 400 clamp(1.125rem, 1rem + .45vw, 1.5rem)/1.3 var(--serif); }
.trust .pp { margin-top: 0; }
@media (min-width: 1024px) {
  .trust__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(56px, 6vw, 120px); align-items: center; }
  .trust__photo { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Как проходит заказ ---------- */
.process { display: grid; gap: 40px; }
.process__aside { display: grid; gap: 32px; align-content: start; justify-items: start; }
.process__now { display: none; }
.steps li { display: grid; grid-template-columns: 3.2ch minmax(0, 1fr); gap: 4px 20px; padding: 28px 0; border-top: 1px solid var(--line); transition: opacity .5s var(--ease); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__num { font: 400 1.125rem/1.6 var(--serif); color: var(--cream-muted); font-variant-numeric: lining-nums; transition: color .5s var(--ease); }
.steps h3 { font: 400 clamp(1.375rem, 1.2rem + .6vw, 1.875rem)/1.15 var(--serif); }
.steps p { margin-top: 8px; color: var(--cream-muted); max-width: 40em; }
.steps li.is-active .steps__num { color: var(--copper); }
@media (min-width: 1024px) {
  .process { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(56px, 6vw, 120px); }
  .process__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  /* крупный номер текущего шага: меняется при прокрутке */
  .process__now { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 0; }
  .process__now span { font: 400 clamp(4.5rem, 3rem + 4vw, 6rem)/.9 var(--serif); color: var(--copper); font-variant-numeric: lining-nums; }
  .process__now span.is-swap { animation: step-swap .5s var(--ease); }
  .process__now small { font-size: .9375rem; color: var(--cream-muted); }
  /* неактивные шаги приглушены цветом, а не прозрачностью: контраст не ниже 4.5:1 */
  .steps li { padding: 40px 0; }
  .steps h3, .steps p { transition: color .5s var(--ease); }
  .steps li:not(.is-active) h3 { color: var(--cream-muted); }
  .steps li:not(.is-active) p { color: #988478; }
}
@keyframes step-swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Важно знать и доставка ---------- */
.terms__layout { display: grid; grid-template-areas: "heading" "list" "know"; gap: clamp(32px, 5vw, 72px); }
.terms__heading { grid-area: heading; }
.terms__area { margin-top: 12px; font: 400 clamp(1.125rem, 1rem + .3vw, 1.375rem)/1.35 var(--sans); color: #9d5d3d; }
.terms__list { grid-area: list; counter-reset: delivery-item; }
.terms__list li { display: grid; grid-template-columns: 4.2ch minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid rgb(53 23 15 / .22); color: var(--editorial-ink); font: 400 clamp(1.375rem, 1.2rem + .6vw, 1.875rem)/1.2 var(--serif); }
.terms__list li:last-child { border-bottom: 1px solid rgb(53 23 15 / .22); }
.terms__list li::before { counter-increment: delivery-item; content: counter(delivery-item, decimal-leading-zero); color: #9d5d3d; font: 400 1.125rem/1.6 var(--serif); font-variant-numeric: lining-nums; }
.terms__know { min-width: 0; padding: clamp(26px, 3vw, 42px); background: #260b07; color: var(--cream); }
.terms__know { grid-area: know; }
.terms__know h3 { margin-bottom: 18px; font: 400 clamp(1.75rem, 1.4rem + .8vw, 2.25rem)/1.1 var(--serif); }
.terms__know li { display: grid; grid-template-columns: 1em minmax(0, 1fr); gap: 10px; padding-block: 10px; border-top: 1px solid rgb(237 229 211 / .22); font: 400 clamp(.9375rem, .85rem + .2vw, 1.0625rem)/1.4 var(--sans); }
.terms__know li::before { content: "—"; color: var(--copper); }
@media (min-width: 900px) {
  .terms__layout { grid-template-areas: "heading heading" "list know"; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(56px, 6vw, 120px); align-items: start; }
  .terms__know { align-self: end; }
  .terms__list li { padding: 40px 0; }
}
.lines li { padding-block: 16px; border-top: 1px solid var(--line); color: var(--cream-muted); }
.lines li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Для свадебных и event-агентств ---------- */
.partners { display: grid; gap: 48px; }
.partners__head { display: grid; gap: 20px; align-content: start; }
.partners__body { display: grid; gap: 28px; align-content: start; justify-items: start; }
.partners__list { display: grid; gap: 4px; }
.partners__list li { font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.625rem)/1.5 var(--serif); }
.partners__note { color: var(--cream-muted); max-width: 30em; }
.btn--call { gap: 14px; }
.partners__contact { display: grid; gap: 12px; width: max-content; max-width: 100%; justify-items: center; }
.partners__phone { padding-left: 0; color: var(--cream); font: 550 1.125rem/1.3 var(--sans); text-decoration: none; text-align: center; }
.partners__phone:hover { color: var(--copper); }
@media (min-width: 1024px) {
  .partners { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(56px, 6vw, 120px); align-items: end; }
}

/* ---------- Заявка ---------- */
.order { background: var(--bg-deep); }
.order__grid { display: grid; gap: 56px; }
.order__intro { display: grid; gap: 32px; align-content: start; }
.order__call { color: var(--cream-muted); }
.order__call a { color: var(--cream); text-decoration-color: var(--copper); text-underline-offset: 6px; white-space: nowrap; }
.form { display: grid; gap: 32px; }
.form__row { display: grid; gap: 32px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .choice legend { font-size: .875rem; color: var(--cream-muted); padding: 0; }
.input {
  width: 100%; min-height: 56px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--cream); transition: border-color .3s;
}
.input::placeholder { color: var(--cream-muted); opacity: .8; }
.input:focus { outline: none; border-bottom-color: var(--copper); }
textarea.input { min-height: 96px; resize: vertical; }
input[type="date"].input { -webkit-appearance: none; appearance: none; }
.field.is-invalid .input { border-bottom-color: var(--error); }
.field__error { font-size: .875rem; color: var(--error); }
.choice { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 14px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .3s, color .3s, box-shadow .3s; }
.choice input:checked + span { background: var(--cream); color: var(--bg); box-shadow: none; }
.choice input:focus-visible + span { outline: 1.5px solid var(--copper); outline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 14px; font-size: .9375rem; color: var(--cream-muted); cursor: pointer; }
.consent input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; cursor: pointer; }
.consent input::after { content: ""; width: 10px; height: 5px; margin-top: -2px; border: solid var(--bg); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
.consent input:checked { background: var(--cream); box-shadow: none; }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent a { color: var(--cream); text-underline-offset: 4px; }
.form__submit { display: grid; gap: 16px; justify-items: start; }
.form__status { color: var(--cream-muted); }
.form__status.is-error { color: var(--error); }
.form__status a { color: var(--cream); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: grid; gap: 20px; }
.form-done__title { font: 400 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--serif); }
.form-done p:last-child { color: var(--cream-muted); }
.form-done a { color: var(--cream); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .order__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 6vw, 112px); } }

/* ---------- Подвал ---------- */
.footer {
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(to bottom, #260b07, rgb(38 11 7 / .88) 16%, rgb(38 11 7 / .68) 40%, rgb(38 11 7 / .48) 100%),
    url("../assets/img/order/order-velvet-full.webp");
  background-position: center, center bottom;
  background-size: 100% 100%, cover;
  background-repeat: no-repeat;
  color: var(--cream-muted);
  padding-block: 72px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 0;
}
.footer__grid { display: grid; gap: 36px; }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 270px; }
.footer .logo { color: var(--cream); align-self: start; }
.footer__col { display: grid; gap: 6px; align-content: start; }
.footer__col h2 { color: var(--cream); font: 600 1rem/1.3 var(--sans); margin-bottom: 8px; }
.footer__fine { font-size: .875rem; line-height: 1.45; }
.footer__pickup .footer__fine { margin-top: 10px; }
.footer__route { gap: 8px; text-decoration: none !important; }
.footer__route span { text-decoration: underline; text-underline-offset: 4px; }
.footer__route-arrow { display: block; flex: none; width: 18px; height: 18px; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--cream); }
.footer__phone { font: inherit; color: var(--cream-muted); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 56px; padding-top: 20px; border-top: 0; font-size: .8125rem; }
@media (min-width: 700px) and (max-width: 1099px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__contact { grid-column: 2; }
}
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Кнопка в шапке (десктоп) ---------- */
.header__cta { display: none; }
@media (min-width: 1280px) {
  .header__cta { display: inline-flex; min-height: 48px; padding: 0 24px; font-size: .9375rem; }
  .header__row { gap: 40px; }
  .header__phone { margin-left: auto; }
}

/* ---------- Доводка: доступность и ритм ---------- */
/* Пауза слайдера (WCAG 2.2.2: автосмена дольше 5 секунд должна останавливаться) */
.hero__pause { width: 44px; height: 44px; flex: none; margin-left: -12px; border: 0; background: none; color: var(--cream); display: grid; place-items: center; }
.hero__pause span { width: 10px; height: 12px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.hero__pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.hero__pause:hover { color: var(--copper); }
.hero__foot { gap: 12px 32px; }
.hero__foot .hero__dots { margin-right: 20px; }

/* Набор: без линий, крупные строки с воздухом */
.tasting__inside div, .tasting__inside div:last-child { border: 0; padding: 0 0 32px; }
.tasting__inside { display: grid; gap: 8px; }
/* Порции стоят на «подносе»: контактная тень под каждым срезом */
.lineup { border-bottom: 0; padding-bottom: 0; }
.lineup li { position: relative; isolation: isolate; }
.lineup li::before { content: ""; position: absolute; left: 50%; top: calc(100% - 3.6em); width: 70%; height: 18px; transform: translateX(-50%); border-radius: 50%; background: rgb(0 0 0 / .55); filter: blur(10px); z-index: -1; }
.lineup img { filter: drop-shadow(0 30px 30px rgb(0 0 0 / .5)); }
@media (min-width: 1100px) {
  .lineup img { height: clamp(220px, 18vw, 340px); }
}

/* «Важно знать перед заказом»: крупные строки антиквой, без линеек */
.lines--big li, .lines--big li:last-child { border: 0; padding: 0 0 18px; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.625rem)/1.35 var(--serif); color: var(--cream); }
.lines--big li:first-child { color: var(--copper); }

/* Агентства: пункты столбиком крупной антиквой, без линеек */
.lines--flow li, .lines--flow li:last-child { border: 0; padding: 0 0 20px; font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.625rem)/1.35 var(--serif); color: var(--cream); }

/* Подвал: ссылки с удобной зоной касания */
.footer__col a, .footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__col { gap: 0; }

/* ---------- Отклик на выбор: кнопка, плашки, уведомление ---------- */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
.is-pop { animation: pop .35s var(--ease); }
.calc__kg.is-pop { animation: none; }
.calc__kg.is-pop { animation: tick .35s var(--ease); }
@keyframes tick { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* кнопка «Добавить в дегустацию»: галочка появляется при добавлении */
.btn--toggle { gap: 10px; }
.btn__check { width: 0; height: 18px; transform: scale(0); transition: transform .3s var(--ease); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0805' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") left center / 18px no-repeat; }
.btn--toggle[aria-pressed="true"] { background: var(--cream); color: var(--bg); box-shadow: none; }
.btn--toggle[aria-pressed="true"] .btn__check { width: 18px; transform: scale(1); }

/* отметка на срезе, который уже в наборе */
.wheel__item::after {
  content: ""; position: absolute; top: -6px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0805' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  transform: scale(0); transition: transform .35s var(--ease);
}
.wheel__item.is-picked::after { transform: scale(1); }

/* плашки выбранного */
.picked__box { display: grid; gap: 12px; }
.picked__count { color: var(--cream-muted); font-size: .875rem; }
.picked__empty { color: var(--cream-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .875rem; animation: chip-in .35s var(--ease); }
@keyframes chip-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.chip__x { position: relative; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--cream-muted); }
.chip__x::before, .chip__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.chip__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.chip__x:hover { color: var(--cream); background: rgb(237 229 211 / .08); }
.form__picked { display: grid; gap: 16px; }
.form__picked-group { display: grid; gap: 10px; }
.form__picked-title { font-size: .875rem; color: var(--cream-muted); }

/* счётчик на липкой кнопке */
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg); color: var(--cream); font-size: .75rem; font-weight: 500; }

/* уведомление */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 24px); padding: 12px 12px 12px 16px;
  border-radius: 16px; background: var(--cream); color: var(--bg); box-shadow: 0 18px 48px rgb(0 0 0 / .5);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast__check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4ebe1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.toast--error .toast__check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4ebe1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.toast--error .toast__link { display: none; }
.toast__text { font-size: .9375rem; line-height: 1.35; max-width: 34ch; }
.toast__link { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--bg); color: var(--cream); font-size: .875rem; font-weight: 500; text-decoration: none; }
@media (max-width: 899px) { .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }

/* мягкая смена подписи начинки */
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wheel__info.is-swap > * { animation: swap .5s var(--ease) both; }
.wheel__info.is-swap > :nth-child(2) { animation-delay: .05s; }
.wheel__info.is-swap > :nth-child(3) { animation-delay: .1s; }

/* ---------- Живые блоки (с калькулятора и ниже) ---------- */
/* плёночное зерно: фактура вместо плоской заливки, чуть шевелится */
.alive { position: relative; isolation: isolate; }
.alive::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
.calc.alive::after { left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); bottom: calc(var(--section-y) * -1); }
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -60px 40px; } 40% { background-position: 50px -70px; }
  60% { background-position: -30px -20px; } 80% { background-position: 70px 60px; } 100% { background-position: 0 0; }
}

/* бархат из макета под блоком агентств и заявкой */
.velvet::before {
  content: ""; position: absolute; inset: auto 0 0; height: 70%; z-index: -2; pointer-events: none;
  background: url("../assets/img/velvet.webp") center bottom / auto 100% repeat-x;
  opacity: .42;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent); mask-image: linear-gradient(to top, #000 10%, transparent);
}

/* большой торт на фоне блока «Почему можно доверить нам свадебный торт» */
.about { overflow: hidden; }
.about__deco { position: absolute; z-index: -1; right: calc(var(--gutter) - 4%); top: 2%; width: min(34vw, 460px); pointer-events: none; will-change: transform; }
.about__deco img { width: 100%; height: auto; mix-blend-mode: lighten; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%), linear-gradient(#000 35%, transparent 78%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 35%), linear-gradient(#000 35%, transparent 78%); mask-composite: intersect; }
@media (max-width: 899px) { .about__deco { width: 58vw; right: -12%; top: 0; } .about__deco img { opacity: .3; } }

/* появление при прокрутке: только когда JS и движение включены, иначе всё видно сразу */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.motion .reveal.is-in { opacity: 1; transform: none; }
/* волосяные линии прорисовываются слева направо */
.motion .facts li.reveal, .motion .steps li.reveal, .motion .lines li.reveal { border-top-color: transparent; }
.motion .facts li.reveal::before, .motion .steps li.reveal::before, .motion .lines li.reveal::before {
  content: ""; display: block; height: 1px; margin-top: -1px; background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease) var(--d, 0ms);
}
.motion .facts li.reveal { position: relative; }
.motion .facts li.reveal::before { position: absolute; top: 0; left: 0; right: 0; margin: 0; }
.motion .reveal.is-in::before { transform: scaleX(1); }
.motion .lines--big li.reveal::before, .motion .lines--flow li.reveal::before { display: none; }
/* номер шага медный и чуть подпрыгивает при появлении */
.motion .steps li.reveal .steps__num { display: inline-block; transform: translateY(10px); transition: transform .9s var(--ease) calc(var(--d, 0ms) + 150ms); }
.motion .steps li.reveal.is-in .steps__num { transform: none; }

@media (prefers-reduced-motion: reduce) { .alive::after { animation: none; } }

/* ---------- Заявка: форма на панели ---------- */
.form--panel { padding: 28px 20px; background: var(--raise); border-radius: 20px; }
@media (min-width: 640px) { .form--panel { padding: 40px; } }
@media (min-width: 1100px) { .form--panel { padding: 48px; } }

/* ---------- Фактура: зерно и бархат (статично) ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .process__now span.is-swap { animation: none; } }

/* ---------- Каталог: прозрачные торты ---------- */
.cake--transparent .cake__photo {
  background: #200b07;
  display: block;
}
.cake__photo .cake__image--transparent {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 14px;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
}
.cake:hover .cake__photo .cake__image--transparent { transform: none; }

/* ---------- Секции появляются снизу при прокрутке ---------- */
/* Класс добавляется только через JS: без него содержимое всегда остаётся доступным. */
.motion .section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.motion .section-reveal.is-section-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .motion .section-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Каталог: молочный фон и лаконичные карточки ---------- */
.block--milk {
  --catalog-ink: #35170f;
  --catalog-muted: #876c5c;
  background: var(--cream);
  color: var(--catalog-ink);
  color-scheme: light;
}
.block--milk .block__head { margin-bottom: clamp(40px, 4vw, 64px); }
.block--milk .block__title { color: var(--catalog-ink); }
.block--milk .cakes { gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.block--milk .cake {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 8px;
  color: var(--catalog-ink);
}
.block--milk .cake__photo { grid-column: 1 / -1; margin-bottom: 8px; }
.block--milk .cake__title { grid-column: 1 / -1; font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem); }
.block--milk .cake__meta {
  grid-column: 2;
  grid-row: 3;
  align-self: center;
  color: var(--catalog-muted);
  font-size: .8125rem;
  letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
}
.block--milk .cake__buy { grid-column: 1; grid-row: 3; margin: 0; padding: 0; min-height: 1.5em; }
.block--milk .cake__price { color: var(--catalog-ink); font-size: 1rem; font-weight: 600; }
.block--milk .cake__want,
.block--milk .cake__photo::after { display: none; }
.block--milk .cakes__more { text-align: center; }
.cake--focus .cake__image--transparent { padding: 5px; }

/* ---------- Дегустационный сет: медиагалерея после кнопки ---------- */
.tasting__head { margin-bottom: clamp(52px, 6vw, 92px); }
.tasting__grid { display: block; }
.tasting__text { gap: clamp(28px, 3vw, 40px); }
.tasting__copy { display: grid; gap: 12px; max-width: 43em; }
.tasting__copy > p { max-width: none; }
.tasting__lead { font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.7rem)/1.32 var(--serif); color: var(--cream) !important; }
.tasting__media { width: 100%; margin: clamp(12px, 1vw, 20px) 0 0; }
.tasting__media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tasting__slot {
  display: grid;
  place-items: center;
  min-height: 144px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgb(200 139 95 / .12), transparent 55%),
    #28110b;
  color: var(--cream-muted);
  font: 450 .75rem/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tasting__slot--video { background: linear-gradient(135deg, rgb(200 139 95 / .28), transparent 64%), #30130c; gap: 10px; }
.tasting__play { width: 34px; height: 34px; border: 1px solid var(--cream); border-radius: 50%; position: relative; }
.tasting__play::after { content: ""; position: absolute; left: 13px; top: 9px; border-left: 10px solid var(--cream); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
@media (min-width: 900px) {
  .tasting__media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .tasting__slot { min-height: 180px; }
}

/* ---------- Ритм блоков после калькулятора: журнальная композиция ---------- */
.editorial__label {
  margin: 0;
  font: 500 .6875rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper);
}
.editorial--cocoa { background: #4a2419; }
.editorial--milk {
  --editorial-ink: #35170f;
  --editorial-muted: #80695c;
  background: var(--cream);
  color: var(--editorial-ink);
  color-scheme: light;
}
.editorial--milk .block__title,
.editorial--milk .calc__title { color: var(--editorial-ink); }
.editorial--milk .editorial__label { color: #9d5d3d; }

/* Дегустация — самостоятельная тёмная глава с крупным заголовком. */
#tasting { padding-block: clamp(104px, 11vw, 184px); }
#tasting .tasting__head { margin-bottom: clamp(56px, 7vw, 116px); }
#tasting .tasting__head .editorial__label { margin-bottom: 22px; }
#tasting .block__title { max-width: 10ch; font-size: clamp(3.15rem, 2.1rem + 4vw, 6.6rem); }
#tasting .tasting__copy { max-width: 46rem; gap: 16px; }
#tasting .tasting__copy > p:last-child { max-width: 38rem; }
#tasting .tasting__media { margin-top: clamp(18px, 2.4vw, 34px); }

/* Калькулятор — светлая вставка, а не продолжение списка начинок. */
#calc {
  margin-top: clamp(88px, 10vw, 156px);
  padding: clamp(32px, 5vw, 72px);
  border: 0;
  background: var(--cream);
  color: #35170f;
}
#calc .editorial__label { margin-bottom: 18px; color: #9d5d3d; }
#calc .calc__title { margin-bottom: clamp(32px, 4vw, 56px); max-width: 13ch; font-size: clamp(2.45rem, 1.8rem + 2.4vw, 4.8rem); }
#calc .calc__panel { border-color: rgb(53 23 15 / .22); border-radius: 0; }
#calc .calc__form { background: var(--cream); }
#calc .calc__label,
#calc .calc__formula,
#calc .calc__note,
#calc .weights caption,
#calc .weights tbody th { color: #80695c; }
#calc .stepper { box-shadow: inset 0 0 0 1px rgb(53 23 15 / .28); }
#calc .stepper button,
#calc .stepper input,
#calc .calc__mode b { color: #35170f; }
#calc .stepper button:hover { background: #e0d6c2; }
#calc .presets button { color: #80695c; box-shadow: inset 0 0 0 1px rgb(53 23 15 / .2); }
#calc .presets button:hover { color: #35170f; box-shadow: inset 0 0 0 1px rgb(53 23 15 / .42); }
#calc .presets button[aria-pressed="true"] { background: #4a2419; color: var(--cream); }
#calc .calc__mode span { color: #80695c; box-shadow: inset 0 0 0 1px rgb(53 23 15 / .18); }
#calc .calc__mode span::before { box-shadow: inset 0 0 0 1px rgb(53 23 15 / .35); }
#calc .calc__mode input:checked + span { background: #e0d6c2; box-shadow: inset 0 0 0 1px #9d5d3d; }
#calc .calc__result { background: #4a2419; color: var(--cream); border-color: rgb(237 229 211 / .2); }
#calc .calc__result .calc__formula { color: var(--cream-muted); }
#calc .weights th, #calc .weights td { border-color: rgb(53 23 15 / .16); }
#calc .weights thead th { background: #e0d6c2; color: #35170f; border-bottom-color: rgb(53 23 15 / .2); }
#calc .weights thead small { color: #80695c; }
#calc .weights tbody tr.is-near th,
#calc .weights tbody tr.is-near td { background: #e0d6c2; color: #8d4e30; }

/* Доверие — кремовое полотно с тёмной фотокарточкой и цифрами-акцентами. */
.editorial--milk .trust__photo { padding: clamp(16px, 2vw, 28px); background: #4a2419; }
.editorial--milk .trust__photo img { mix-blend-mode: screen; }
.editorial--milk .trust__body { gap: clamp(28px, 3.5vw, 52px); }
.editorial--milk .trust__body .editorial__label { margin-bottom: -6px; }
.editorial--milk .facts li { border-color: rgb(53 23 15 / .18); }
.editorial--milk .facts b { color: #9d5d3d; }
.editorial--milk .facts span { color: var(--editorial-ink); }
.editorial--milk .pp { color: var(--editorial-ink); }
.editorial--milk .pp::before { background: #9d5d3d; }

/* Путь заказа — вертикальная история на шоколадном полотне. */
#process { padding-block: clamp(112px, 11vw, 180px); }
#process .process__aside .editorial__label { margin-bottom: -8px; }
#process .process__aside .block__title { max-width: 8ch; font-size: clamp(3rem, 2rem + 3.8vw, 5.8rem); }
#process .steps { counter-reset: order-step; }
#process .steps li { grid-template-columns: 4.2ch minmax(0, 1fr); border-color: rgb(237 229 211 / .2); }
#process .steps__num { color: var(--cream-muted); }
#process .steps h3 { font-size: clamp(1.55rem, 1.2rem + .8vw, 2.15rem); }

/* Доставка: пункты слева, закреплённые заголовок и условия справа. */
#delivery { padding-block: clamp(88px, 8vw, 136px); }
#delivery .terms__heading .block__title { font-size: clamp(3rem, 5vw, 68px); color: var(--editorial-ink); }

/* Агентствам — крупный оффер слева, условия справа. */
#partners { padding-block: clamp(112px, 11vw, 184px); }
#partners .partners__head .editorial__label { margin-bottom: 8px; }
#partners .partners__head .block__title { max-width: 9ch; font-size: clamp(3rem, 2rem + 3.8vw, 5.8rem); }
#partners .partners__body { padding-top: 6px; }
#partners .partners__list { counter-reset: partner-item; width: 100%; gap: 0; }
#partners .partners__list li { display: grid; grid-template-columns: 3.2ch minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid rgb(237 229 211 / .2); }
#partners .partners__list li::before { counter-increment: partner-item; content: "0" counter(partner-item); color: var(--cream-muted); font: 400 1rem/1.7 var(--serif); }
#partners .partners__list li:last-child { border-bottom: 1px solid rgb(237 229 211 / .2); }

/* Финальная заявка — кремовая страница с тёмной формой как отдельной карточкой. */
.order.editorial--cream { background: var(--cream); color: #35170f; }
.order.editorial--cream .editorial__label { color: #9d5d3d; }
.order.editorial--cream .block__title { color: #35170f; font-size: clamp(3rem, 2rem + 3.8vw, 5.8rem); }
.order.editorial--cream .block__sub,
.order.editorial--cream .order__call { color: #80695c; }
.order.editorial--cream .order__call a { color: #35170f; }
.order.editorial--cream .form--panel { border-radius: 0; background: #4a2419; color: var(--cream); }
.order.editorial--cream .input,
.order.editorial--cream .choice span,
.order.editorial--cream .consent input { color: var(--cream); }
.order.editorial--cream .choice input:checked + span { color: #35170f; }

/* ---------- Каталог: крупные вытянутые карточки ---------- */
.block--milk .cakes {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
}
.block--milk .cake {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "photo photo"
    "title title"
    "price meta";
  gap: 0;
  overflow: hidden;
  background: #260b07;
  color: var(--cream);
}
.block--milk .cake__photo {
  grid-area: photo;
  aspect-ratio: 4 / 5;
  margin: 0;
  background: #260b07;
  isolation: isolate;
}
.block--milk .cake__photo::before {
  content: "";
  position: absolute;
  inset: auto 10% 7%;
  height: 16%;
  border-radius: 50%;
  background: rgb(17 5 3 / .35);
  filter: blur(18px);
  z-index: -1;
}
.block--milk .cake__photo .cake__image--transparent,
.cake--focus .cake__image--transparent {
  padding: clamp(10px, 1.7vw, 22px);
  object-fit: contain;
  transform: scale(1.075);
  transform-origin: center bottom;
  transition: transform .65s var(--ease);
  will-change: transform;
}
.block--milk .cake:hover .cake__photo .cake__image--transparent,
.block--milk .cake:focus-within .cake__photo .cake__image--transparent {
  transform: scale(1.14);
}
.block--milk .cake__title {
  grid-area: title;
  margin: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 28px) 0;
  color: var(--cream);
  font-size: clamp(1.45rem, 1.12rem + .85vw, 2rem);
  line-height: 1.06;
}
.block--milk .cake__price,
.block--milk .cake__meta {
  align-self: end;
  min-height: 52px;
  margin: clamp(18px, 2vw, 26px) 0 0;
  padding: 16px clamp(18px, 2vw, 28px) 18px;
  border-top: 1px solid rgb(237 229 211 / .18);
}
.block--milk .cake__price {
  grid-area: price;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 500;
}
.block--milk .cake__meta {
  grid-area: meta;
  color: var(--cream-muted);
  font-size: .8125rem;
  letter-spacing: .07em;
  text-align: right;
  white-space: nowrap;
}

/* Первый экран и навигация: больше воздуха перед CTA, меню по центру. */
.hero__content .actions { margin-top: 40px; }
@media (min-width: 1024px) {
  .header__row { position: relative; }
  .header__row .nav {
    position: absolute;
    left: 50%;
    display: flex;
    transform: translateX(-50%);
  }
  .header__row .header__phone { margin-left: auto; }
}

/* Обычный текст и пояснения остаются на нейтральном Jost. */
.hero__lead,
.hero__caption,
.block__sub,
.tasting__copy > p,
.pp,
.tasting__inside dd,
.lineup span,
.wheel__price,
.weights caption,
.facts span,
.steps p,
.terms__lead,
.terms__area,
.partners__list li,
.form-done p {
  font-family: var(--sans);
}
@media (min-width: 640px) {
  .block--milk .cakes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .block--milk .cakes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .block--milk .cake__photo .cake__image--transparent { transition: none; }
}
@media (min-width: 1024px) {
  #partners .partners { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* Слайдер: каждый кадр — цельная исходная фотография без вырезания композиции. */
.hero__slides { background: var(--bg); isolation: isolate; }
.hero__slides::after { z-index: 2; }
.slide--scene { z-index: 1; will-change: opacity; }
.slide--scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  image-rendering: auto;
}
@media (prefers-reduced-motion: reduce) {
  .slide--scene { transition: none; }
}

/* ---------- Каталог: изображение и описание существуют отдельно ---------- */
.block--milk {
  --catalog-ink: #35170f;
  --catalog-muted: #9a8b80;
  background: #ede5d3;
}
.block--milk .cakes { gap: clamp(42px, 5vw, 72px) clamp(18px, 2.2vw, 32px); }
.block--milk .cake {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "photo"
    "title"
    "meta"
    "price";
  gap: 0;
  overflow: visible;
  background: transparent;
  color: var(--catalog-ink);
}
.block--milk .cake__photo {
  grid-area: photo;
  aspect-ratio: 4 / 3;
  margin: 0;
  background: #260b07;
}
.block--milk .cake__title {
  grid-area: title;
  margin: 18px 0 0;
  color: var(--catalog-ink);
  font-size: clamp(1.25rem, 1.02rem + .55vw, 1.55rem);
  line-height: 1.14;
}
.block--milk .cake__meta {
  grid-area: meta;
  align-self: auto;
  min-height: 0;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  color: var(--catalog-muted);
  font-size: .8125rem;
  letter-spacing: .06em;
  text-align: left;
}
.block--milk .cake__buy {
  display: block;
  grid-area: price;
  min-height: 0;
  margin: 8px 0 0;
  padding: 0;
}
.block--milk .cake__price {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--catalog-ink);
  font-size: 1rem;
  font-weight: 600;
}
.block--milk .cakes__more .btn--ghost {
  background: #35170f;
  color: var(--cream);
  box-shadow: none;
}
.block--milk .cakes__more .btn--ghost:hover { background: #260b07; color: var(--cream); }

/* ---------- Дегустационный сет: текст, видео и крупная фотогалерея ---------- */
#tasting { background: #633a2c; padding-block: clamp(72px, 8vw, 132px); }
#tasting .tasting__head { margin-bottom: clamp(30px, 4vw, 56px); }
#tasting .tasting__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: end; }
#tasting .tasting__text { display: grid; gap: 28px; }
#tasting .tasting__copy { max-width: 42rem; }
#tasting .tasting__media { margin: clamp(38px, 5vw, 72px) 0 0; }
#tasting .tasting__media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#tasting .tasting__slot {
  min-height: 0;
  aspect-ratio: 1 / 1.12;
  border-color: rgb(248 240 230 / .22);
  background: linear-gradient(135deg, rgb(252 226 199 / .13), transparent 60%), #4e291f;
}
#tasting .tasting__video {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgb(252 226 199 / .26), transparent 62%), #482419;
}
@media (min-width: 900px) {
  #tasting .tasting__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); }
  #tasting .tasting__media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- Начинки и калькулятор: тёмное поле вокруг светлой вставки ---------- */
#fillings { background: #260b07; }
#calc { margin-top: clamp(72px, 8vw, 128px); }
.trust .pp--diet {
  display: grid;
  gap: 5px;
  width: fit-content;
  max-width: 32rem;
  margin-top: 4px;
  padding: 16px 18px;
  border-left: 2px solid #9d5d3d;
  background: #e0d6c2;
  color: #35170f;
  font: 400 .9375rem/1.45 var(--sans);
}
.trust .pp--diet span {
  color: #9d5d3d;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Уточнения палитры и ритма ---------- */
/* CTA намеренно отделён от описания, чтобы первый экран дышал. */
.hero__content .actions { margin-top: clamp(56px, 5vw, 76px); }

/* У фото в каталоге — более вертикальный журнальный формат. */
.block--milk .cake__photo { aspect-ratio: 4 / 5; }

/* Все тёмные блоки используют единый шоколадный оттенок из референса. */
.editorial--cocoa,
#tasting,
.editorial--milk .trust__photo,
.order.editorial--cream .form--panel,
#calc .calc__result,
#calc .presets button[aria-pressed="true"] {
  background: #260b07;
}

/* ---------- Дегустация: спокойная вертикальная композиция ---------- */
#tasting .tasting__head { margin-bottom: clamp(22px, 3vw, 38px); }
#tasting .tasting__grid { display: block; }
#tasting .tasting__text { max-width: 44rem; gap: 22px; }
#tasting .tasting__video {
  display: grid;
  width: min(100%, 58rem);
  margin: clamp(28px, 4vw, 56px) 0 0;
  aspect-ratio: 16 / 9;
}
#tasting .tasting__media { margin-top: clamp(42px, 5vw, 76px); }

/* Полное верхнее меню — на широких экранах; компактная версия открывается кнопкой. */
@media (min-width: 1024px) and (max-width: 1499px) {
  .header__row .nav { display: none; }
  .header__row .burger { display: block; }
  .menu { display: flex; }
}
@media (min-width: 1500px) {
  .header__row .nav { gap: clamp(24px, 1.65vw, 38px); }
  .header__row .nav a { font-size: .9375rem; white-space: nowrap; }
}

/* ---------- Дегустация: видео справа от текста, фото отдельной галереей ---------- */
#tasting .block__title { max-width: none; }
#tasting .tasting__media-grid { gap: clamp(42px, 5vw, 72px) clamp(18px, 2.2vw, 32px); }
@media (min-width: 900px) {
  #tasting .tasting__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(48px, 6vw, 120px);
  }
  #tasting .tasting__video {
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 10;
  }
}
@media (min-width: 640px) {
  #tasting .block__title { white-space: nowrap; }
}

/* ---------- Финальная компоновка каталога и дегустации ---------- */
/* Композиция торта чуть спокойнее внутри каждой вертикальной плашки. */
.block--milk .cake__photo .cake__image--transparent { transform: scale(.94); }
.block--milk .cake--focus .cake__photo .cake__image--transparent { transform: scale(.96); }
.block--milk .cake:hover .cake__photo .cake__image--transparent,
.block--milk .cake:focus-within .cake__photo .cake__image--transparent { transform: scale(1); }
.block--milk .cake--larger-photo .cake__photo .cake__image--transparent { transform: scale(1.08); }
.block--milk .cake--larger-photo:hover .cake__photo .cake__image--transparent,
.block--milk .cake--larger-photo:focus-within .cake__photo .cake__image--transparent { transform: scale(1.13); }
.block--milk .cake--larger-photo .cake__photo img[src$="/gold-leaves.webp"] { transform: scale(.96); }
.block--milk .cake--larger-photo:hover .cake__photo img[src$="/gold-leaves.webp"],
.block--milk .cake--larger-photo:focus-within .cake__photo img[src$="/gold-leaves.webp"] { transform: scale(1); }
.block--milk .cake--larger-photo .cake__photo img[src$="/marble-roses.webp"] { transform: scale(.94); }
.block--milk .cake--larger-photo:hover .cake__photo img[src$="/marble-roses.webp"],
.block--milk .cake--larger-photo:focus-within .cake__photo img[src$="/marble-roses.webp"] { transform: scale(.98); }
.block--milk .cake__photo img[src$="/petals-rings.webp"],
.block--milk .cake__photo img[src$="/rings-pleats.webp"],
.block--milk .cake__photo img[src$="/mr-mrs-pleats.webp"] { transform: scale(1.06); }
.block--milk .cake:hover .cake__photo img[src$="/petals-rings.webp"],
.block--milk .cake:hover .cake__photo img[src$="/rings-pleats.webp"],
.block--milk .cake:hover .cake__photo img[src$="/mr-mrs-pleats.webp"],
.block--milk .cake:focus-within .cake__photo img[src$="/petals-rings.webp"],
.block--milk .cake:focus-within .cake__photo img[src$="/rings-pleats.webp"],
.block--milk .cake:focus-within .cake__photo img[src$="/mr-mrs-pleats.webp"] { transform: scale(1.1); }

@media (min-width: 900px) {
  #tasting .tasting { display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, 50rem); column-gap: clamp(48px, 6vw, 120px); }
  #tasting .tasting__head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  #tasting .tasting__grid { display: contents; }
  #tasting .tasting__text { grid-column: 1; grid-row: 2; align-self: start; margin-top: clamp(42px, 3vw, 58px); }
  #tasting .tasting__video {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: end;
    width: min(100%, 50rem);
    margin-top: clamp(14px, 1.2vw, 24px);
    aspect-ratio: 16 / 10;
  }
  #tasting .tasting__media { grid-column: 1 / -1; grid-row: 3; margin-top: clamp(36px, 4vw, 60px); }
}

/* Временная фотогалерея дегустационного набора — заменяется съёмкой заказчицы. */
#tasting .tasting__slot--photo { overflow: hidden; background: #4e291f; }
#tasting .tasting__slot--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
#tasting .tasting__slot--photo:hover img { transform: scale(1.045); }

/* ---------- Дегустационный сет: состав и асимметричная фотогалерея ---------- */
#tasting .tasting__includes {
  display: grid;
  gap: 9px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--cream-muted);
  font: 400 .9375rem/1.4 var(--sans);
}
#tasting .tasting__includes li { display: flex; align-items: baseline; gap: 12px; }
#tasting .tasting__includes li::before { content: "—"; flex: 0 0 auto; color: var(--copper); }
#tasting .tasting__text > .btn { margin-top: 12px; }
@media (min-width: 900px) {
  #tasting .tasting__media-grid {
    grid-template-columns: minmax(160px, .58fr) minmax(300px, 1.1fr) minmax(200px, .72fr);
    grid-template-rows: repeat(2, clamp(168px, 13vw, 268px));
    gap: clamp(16px, 2vw, 34px);
    align-items: stretch;
  }
  #tasting .tasting__slot--photo:nth-child(1) { grid-column: 1; grid-row: 1; }
  #tasting .tasting__slot--photo:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  #tasting .tasting__slot--photo:nth-child(3) { grid-column: 3; grid-row: 1; }
  #tasting .tasting__slot--photo:nth-child(4) { grid-column: 1 / span 2; grid-row: 2; }
}

/* ---------- Начинки: примечание о ПП-торте ---------- */
.fillings__aside { display: grid; gap: 16px; justify-items: start; text-align: left; }
.fillings__diet-note {
  width: fit-content;
  margin: 0;
  justify-self: start;
  padding-bottom: 7px;
  border-bottom: 1px solid rgb(237 229 211 / .38);
  color: var(--cream);
  font: 400 1rem/1.5 var(--sans);
}
@media (min-width: 1100px) {
  /* Заголовок и инструкция должны начинаться по одной верхней линии. */
  #fillings .block__head { align-items: start; }
  #fillings .block__title { transform: translateY(-8px); }
}

/* ---------- Калькулятор: явный выбор и ровное тёмное поле ---------- */
#calc .calc__mode input:checked + span::before {
  background: #260b07;
  box-shadow: inset 0 0 0 4px #260b07;
}
/* Фактура не выходит за пределы светлой карточки калькулятора. */
#calc.alive::after { display: none; }

/* ---------- Дегустационный сет: журнальная композиция с видео и фото ---------- */
#tasting.editorial--cocoa { background: #260b07; }
#tasting .tasting { display: block; }
#tasting .tasting__head { margin-bottom: clamp(34px, 4vw, 64px); }
#tasting .block__title { max-width: none; }
#tasting .tasting__composition { display: grid; gap: clamp(14px, 1.6vw, 28px); }
#tasting .tasting__hero,
#tasting .tasting__side-gallery figure,
#tasting .tasting__bottom-gallery figure { position: relative; margin: 0; overflow: hidden; background: #1a0805; }
#tasting .tasting__hero { aspect-ratio: 16 / 9; }
#tasting .tasting__hero > img,
#tasting .tasting__side-gallery img,
#tasting .tasting__bottom-gallery img { width: 100%; height: 100%; object-fit: cover; }
#tasting .tasting__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgb(18 5 3 / .62)); pointer-events: none; }
#tasting .tasting__hero .tasting__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(54px, 4.4vw, 78px); height: clamp(54px, 4.4vw, 78px); }
#tasting .tasting__hero figcaption { position: absolute; z-index: 2; left: 50%; bottom: clamp(14px, 1.6vw, 26px); transform: translateX(-50%); color: var(--cream); font: 400 clamp(.85rem, .7rem + .25vw, 1.05rem)/1 var(--sans); white-space: nowrap; }
#tasting .tasting__side-gallery,
#tasting .tasting__bottom-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; }
#tasting .tasting__side-gallery figure,
#tasting .tasting__bottom-gallery figure { aspect-ratio: 4 / 3; }
#tasting .tasting__text { display: grid; gap: clamp(24px, 2vw, 34px); justify-items: start; }
#tasting .tasting__copy { max-width: 44rem; }
#tasting .tasting__lead { max-width: 18ch; font-size: clamp(1.85rem, 1.4rem + 1vw, 3.1rem); }
#tasting .tasting__includes { display: grid; gap: 10px; margin-top: clamp(20px, 1.8vw, 30px); color: var(--cream); font: 400 clamp(.95rem, .86rem + .2vw, 1.12rem)/1.42 var(--sans); }
#tasting .tasting__includes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
#tasting .tasting__includes li::before { content: "—"; color: var(--cream-muted); }
#tasting .tasting__cta { justify-self: start; min-width: min(100%, 34rem); min-height: 64px; padding-inline: clamp(22px, 2.6vw, 42px); border-radius: 100%; background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); font-size: clamp(.95rem, .86rem + .2vw, 1.12rem); }
#tasting .tasting__cta:hover { background: var(--cream); color: #260b07; }

@media (min-width: 900px) {
  #tasting .block__title { font-size: clamp(4rem, 5.75vw, 8.25rem); line-height: .92; letter-spacing: -.035em; }
  #tasting .tasting__composition {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(150px, 10.5vw)) auto auto;
    align-items: start;
  }
  #tasting .tasting__hero { grid-column: 1 / span 9; grid-row: 1 / span 2; height: 100%; aspect-ratio: auto; }
  #tasting .tasting__side-gallery { grid-column: 10 / span 3; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  #tasting .tasting__side-gallery figure { height: 100%; aspect-ratio: auto; }
  #tasting .tasting__bottom-gallery { grid-column: 1 / span 7; grid-row: 3; margin-top: clamp(2px, .5vw, 10px); }
  #tasting .tasting__bottom-gallery figure { aspect-ratio: 4 / 3; }
  #tasting .tasting__text { grid-column: 8 / span 5; grid-row: 3; align-self: start; margin-top: clamp(4px, .4vw, 8px); }
  #tasting .tasting__copy { gap: clamp(14px, 1.2vw, 20px); }
  #tasting .tasting__lead { max-width: 16ch; font-size: clamp(2.1rem, 1.6rem + 1.15vw, 3.2rem); }
  #tasting .tasting__cta { grid-column: 1 / span 5; grid-row: 4; margin-top: clamp(4px, .7vw, 14px); }
}

@media (max-width: 899px) {
  #tasting .block__title { font-size: clamp(3.15rem, 11vw, 5rem); line-height: .94; }
}

/* Компактный масштаб для 2K: карточки не вытягивают блок вниз, текст остаётся читаемым. */
@media (min-width: 900px) {
  #tasting .block__title { font-size: clamp(3.25rem, 3.85vw, 5.65rem); line-height: .96; }
  #tasting .tasting__composition { grid-template-rows: repeat(2, minmax(136px, 8.6vw)) auto auto; }
  #tasting .tasting__bottom-gallery { grid-column: 1 / span 6; }
  #tasting .tasting__bottom-gallery figure { aspect-ratio: 16 / 9; }
  #tasting .tasting__text { grid-column: 7 / span 6; }
  #tasting .tasting__lead { max-width: 18ch; font-size: clamp(1.65rem, 1.18rem + .78vw, 2.35rem); line-height: 1.08; }
  #tasting .tasting__copy > p:not(.tasting__lead) { font-size: clamp(.9rem, .82rem + .16vw, 1.05rem); }
  #tasting .tasting__includes { font-size: clamp(.88rem, .8rem + .14vw, 1rem); }
}

/* CTA совпадает с остальными основными кнопками сайта. */
#tasting .tasting__cta {
  min-height: 52px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--bg);
  box-shadow: none;
  font-size: .9375rem;
}
#tasting .tasting__cta:hover { background: #f5efdf; color: var(--bg); }
#tasting .tasting__desktop-break { display: none; }

/* Правая пара всегда укладывается ровно в высоту видеокадра. */
@media (min-width: 900px) {
  #tasting .tasting__composition { grid-template-rows: auto auto auto; }
  #tasting .block__title { font-size: 68px; }
  #tasting .tasting__hero {
    grid-row: 1;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  #tasting .tasting__side-gallery {
    grid-row: 1;
    align-self: stretch;
    height: 100%;
    min-height: 0;
  }
  #tasting .tasting__side-gallery figure {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }
  #tasting .tasting__bottom-gallery,
  #tasting .tasting__text { grid-row: 2; }
  #tasting .tasting__cta {
    grid-column: 7 / span 6;
    grid-row: 3;
    margin-top: 0;
  }
  #tasting .tasting__lead {
    max-width: none;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 1.18rem + .78vw, 2.35rem);
    line-height: 1.08;
  }
  #tasting .tasting__copy > p:not(.tasting__lead) {
    font-size: clamp(1rem, .88rem + .16vw, 1.18rem);
    line-height: 1.55;
  }
  #tasting .tasting__includes { font-size: clamp(.98rem, .86rem + .14vw, 1.12rem); }
  #tasting .tasting__desktop-break { display: inline; }
}

/* Тонкая сервисная строка под CTA на первом экране. */
.hero__service-bar { margin-top: clamp(24px, 2.3vw, 38px); }
.hero__service-bar p { font-size: clamp(.9rem, .82rem + .18vw, 1.1rem); font-weight: 400; }
.hero__service-bar a { text-decoration: none; }
.hero__service-bar a:hover { color: var(--copper); }
@media (max-width: 639px) {
  .hero__service-bar { gap: 12px; }
  .hero__service-line { width: 28px; }
  .hero__service-bar p { font-size: .9rem; }
}

/* Декоративная строка: только текст, без интерактивных состояний. */
.hero__service-bar { gap: clamp(12px, 1.4vw, 24px); }
.hero__service-bar p { display: flex; align-items: center; gap: clamp(8px, .9vw, 16px); font-size: clamp(1rem, .9rem + .2vw, 1.18rem); }
.hero__service-bar p span { padding: 0; color: var(--cream); }
.hero__service-bar p .hero__service-separator { color: var(--cream-muted); }
.hero__service-line { width: clamp(22px, 3vw, 54px); background: var(--copper); }

/* CTA и сервисная строка образуют одну нижнюю группу первого экрана. */
.hero__content .actions { margin-top: clamp(56px, 4.6vw, 72px); }

/* Почему нам доверяют: фото и факты собраны в одну журнальную композицию. */
#about.editorial--milk { background: var(--cream); }
#about .trust__grid { gap: clamp(28px, 4vw, 72px); align-items: stretch; }
#about .trust__photo--portrait {
  margin: 0;
  max-height: none;
  padding: 0;
  aspect-ratio: 1429 / 2560;
  overflow: hidden;
  background: #260b07;
}
#about .trust__photo--portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}
#about .trust__body { display: grid; align-content: start; gap: clamp(22px, 2.4vw, 38px); }
#about .trust__body .block__title { max-width: 13ch; margin: 0; }
#about .trust__slice {
  margin: 0;
  width: min(100%, 38rem);
  aspect-ratio: 16 / 8;
  overflow: hidden;
  justify-self: start;
  background: #260b07;
}
#about .trust__slice img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
#about .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 72px); margin: 0; }
#about .facts li { display: grid; align-content: start; gap: 8px; padding: clamp(14px, 1.5vw, 22px) 0; border-top: 1px solid rgb(53 23 15 / .18); }
#about .facts li:last-child { border-bottom: 1px solid rgb(53 23 15 / .18); }
#about .facts b { flex: none; font-size: clamp(2rem, 1.55rem + 1.3vw, 3.25rem); color: #9d5d3d; }
#about .facts span { font: 400 clamp(1rem, .9rem + .25vw, 1.2rem)/1.35 var(--sans); color: var(--editorial-ink); }
#about .pp--diet {
  margin: 0;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid #9d5d3d;
  background: transparent;
  color: #9d5d3d;
  font: 400 clamp(.9375rem, .86rem + .18vw, 1.1rem)/1.35 var(--sans);
}
@media (min-width: 900px) {
  #about .trust__grid { grid-template-columns: minmax(260px, .63fr) minmax(0, 1.37fr); }
  #about .trust__body { padding-top: clamp(6px, 1vw, 18px); }
}
@media (max-width: 620px) {
  #about .trust__grid { gap: 28px; }
  #about .trust__photo--portrait { width: min(100%, 22rem); }
  #about .trust__slice { width: 100%; }
  #about .facts { grid-template-columns: 1fr; }
}

/* Заголовок ведёт левую колонку; срез и портрет начинаются на одной высоте. */
#about .trust__grid > .block__title { margin: 0; max-width: none; }
#about .trust__body { padding-top: 0; }
#about .trust__slice {
  width: 100%;
  max-width: none;
  margin-top: clamp(12px, 1.2vw, 22px);
  aspect-ratio: 16 / 9;
}
#about .trust__slice img { object-position: 50% 65%; }
@media (min-width: 900px) {
  #about .trust__grid {
    grid-template-areas:
      "title title"
      "portrait content";
    row-gap: clamp(24px, 2.6vw, 44px);
  }
  #about .trust__grid > .block__title { grid-area: title; align-self: end; }
  #about .trust__photo--portrait { grid-area: portrait; }
  #about .trust__body { grid-area: content; align-self: start; }
}
@media (max-width: 899px) {
  #about .trust__grid > .block__title { order: -2; }
  #about .trust__photo--portrait { order: -1; }
}

/* Как проходит заказ: спокойный статичный список без смены активного шага. */
#process .process__aside { gap: clamp(16px, 1.7vw, 24px); }
#process .process__aside .block__title { max-width: none; }
#process .steps li,
#process .steps li.is-active { opacity: 1; }
#process .steps h3,
#process .steps li:not(.is-active) h3 { color: var(--cream); }
#process .steps p { color: var(--cream-muted); }
.hero__service-bar { margin-top: clamp(10px, 1.1vw, 18px); }

/* Точная доводка блока доверия. */
#about .trust__slice {
  margin-top: 0;
  aspect-ratio: 4 / 3;
}
#about .trust__slice img { object-position: 50% 55%; }
#about .facts li:nth-child(3) { border-bottom: 1px solid rgb(53 23 15 / .18); }
#about .pp--diet { padding-bottom: 0; border-bottom: 0; }
#about .pp--diet::before { display: none; }

/* Текстовая часть дегустационного сета уходит правее единым блоком. */
@media (min-width: 900px) {
  #tasting .tasting__text,
  #tasting .tasting__cta { grid-column: 8 / span 5; }
}

/* Финальная подстройка положения заголовка и нижней композиции. */
#about .trust__grid > .block__title {
  justify-self: start;
  transform: translateY(-36px);
}
@media (min-width: 900px) {
  #tasting .tasting__text,
  #tasting .tasting__cta { grid-column: 7 / span 3; }
  #tasting .tasting__copy,
  #tasting .tasting__cta { width: 100%; max-width: none; }
  #tasting .tasting__copy { justify-self: stretch; }
  #tasting .tasting__cta { min-width: 0; justify-self: stretch; }
}

/* Отступ текста и CTA под первой карточкой нижней галереи. */
#tasting .tasting__text { padding-left: 48px; }
@media (min-width: 900px) {
  #tasting .tasting__cta {
    grid-column: 1 / span 3;
    grid-row: 3;
    width: 100%;
    max-width: none;
    transform: translateY(clamp(-36px, -2.1vw, -28px));
  }
}

/* Возвращённая компоновка блока доверия: заголовок над двумя фотографиями. */
#about .trust__grid > .block__title {
  transform: none;
  font-size: clamp(3rem, 2rem + 3.8vw, 5.8rem);
  line-height: .96;
}

/* Сотрудничество: готовое изображение слева, существующие тексты справа. */
#partners { position: relative; isolation: isolate; overflow: hidden; background: #260b07; }
#partners .partners__visual { position: absolute; inset: 0; z-index: 0; margin: 0; overflow: hidden; }
#partners .partners__visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
#partners .partners__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 35%, rgb(25 5 4 / .2) 52%, rgb(25 5 4 / .48) 100%); }
#partners .partners { position: relative; z-index: 1; }
#partners .partners__head .block__title { font-size: clamp(2.8rem, 3.5vw, 5.5rem); line-height: .94; max-width: 8ch; }
#partners .partners__head .block__sub { color: var(--cream-muted); font-size: clamp(.9rem, .8rem + .16vw, 1.05rem); }
#partners .partners__list li { font: 400 clamp(.94rem, .84rem + .22vw, 1.2rem)/1.3 var(--sans); }
#partners .partners__note { font-size: .875rem; }
#partners .partners__body { min-width: 0; }
@media (min-width: 900px) {
  /* На широких экранах фотография заполняет блок до краёв без полей. */
  #partners .partners__visual img { object-fit: cover; object-position: center; transform: scale(1.04); }
}
@media (min-width: 1200px) {
  #partners .partners { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .92fr) minmax(0, 1fr); gap: clamp(22px, 1.6vw, 36px); align-items: center; min-height: clamp(570px, 42vw, 750px); }
  #partners .partners__head { grid-column: 2; }
  #partners .partners__body { grid-column: 3; border-left: 1px solid rgb(237 229 211 / .32); padding-left: clamp(22px, 2.4vw, 46px); }
}
@media (max-width: 1199px) {
  #partners { padding-top: 330px; }
  #partners .partners__visual { bottom: auto; height: 370px; }
  #partners .partners__visual::after { background: linear-gradient(180deg, transparent 42%, #260b07 100%); }
  #partners .partners { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 60px); }
}
@media (max-width: 700px) {
  #partners { padding-top: 250px; }
  #partners .partners__visual { height: 290px; }
  #partners .partners { grid-template-columns: 1fr; }
  #partners .partners__head .block__title { max-width: 12ch; }
}
#tasting .tasting__head { transform: translateY(-14px); }

/* Равные визуальные отступы над заголовком доверия и под ним. */
@media (min-width: 900px) {
  #about .trust__grid > .block__title { transform: translateY(-46px); }
}

/* Кадр разреза заканчивается у нижнего края тарелки. */
#about .trust__slice { aspect-ratio: 16 / 7.4; }
#about .trust__slice img { object-position: 50% 18%; }

/* Текст агентского блока уходит на тёмную часть фотографии. */
@media (min-width: 1200px) {
  #partners .partners__head { margin-left: 80px; padding-left: clamp(45px, 4vw, 85px); }
}

/* Финальный блок: базовый коричневый фон без фотографии. */
#order.order.editorial--cream {
  color: var(--cream);
  background: var(--bg-deep);
}
#order.velvet::before { display: none; }
#order.grain::after { display: none; }
#order .order__grid { position: relative; z-index: 1; }
#order .form--panel { background: var(--cream); color: #35170f; color-scheme: light; }
#order.order.editorial--cream .block__title { color: var(--cream); }
#order.order.editorial--cream .block__sub,
#order.order.editorial--cream .order__call,
#order.order.editorial--cream .order__call a,
#order .form-done p:last-child { color: var(--cream); }
#order .field label,
#order .choice legend,
#order .consent,
#order .consent a,
#order .choice span,
#order .form__status,
#order .input { color: #35170f; }
#order .input { border-bottom-color: #bda89a; }
#order .input::placeholder { color: #8b7365; opacity: 1; }
#order .choice span { box-shadow: inset 0 0 0 1px #bda89a; }
#order .choice input:checked + span { background: var(--copper); color: #35170f; box-shadow: none; }
#order .choice input:focus-visible + span { outline-color: #35170f; }
#order .consent input { box-shadow: inset 0 0 0 1px #8b7365; }
#order .consent input:checked { background: var(--copper); box-shadow: none; }
#order .consent input:checked::after { border-color: #35170f; }
#order .form__submit .btn--cream { background: var(--copper); color: #35170f; box-shadow: none; }
#order .form__submit .btn--cream:hover { background: #d9a77e; }
#order .field__error,
#order .form__status.is-error { color: #ac3021; }
#order .form__picked-title { color: #6e5b50; }
#order .form__picked .chip { background: #efe0cd; color: #35170f; box-shadow: inset 0 0 0 1px #c9ad96; }
#order .form__picked .chip__x { color: #6e5b50; }
#order .form__picked .chip__x:hover { color: #35170f; background: rgb(53 23 15 / .08); }
#order .consent span { font-size: .9375rem; line-height: 1.5; }

/* Экран после составления заявки: текст остаётся в браузере, отправку выбирает посетитель. */
#order .form-done { gap: 22px; padding: clamp(28px, 3vw, 46px); border: 0; border-radius: 0; background: var(--cream); color: #35170f; }
#order .form-done__title { font: 400 clamp(2rem, 1.5rem + 1.5vw, 2.75rem)/1.1 var(--serif); }
#order .form-done__intro { color: #35170f; line-height: 1.45; }
#order .form-done__preview { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid #bda89a; border-bottom: 1px solid #bda89a; background: transparent; }
#order .form-done__label { color: #6e5b50; font-size: .875rem; }
#order .form-done__preview pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .9375rem/1.5 var(--sans); }
#order .form-done__actions { display: grid; gap: 0; border-top: 0; }
#order .form-done__action { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; padding: 10px 0; border: 0; border-bottom: 1px solid #bda89a; border-radius: 0; background: transparent; color: #35170f; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: color .2s, background-color .2s; }
#order .form-done__action:hover { color: #9d5d3d; background: rgb(157 93 61 / .05); }
#order .form-done__action:focus-visible,
#order .form-done__edit:focus-visible { outline: 2px solid #9d5d3d; outline-offset: 3px; }
#order .form-done__action > span:last-child { display: grid; gap: 2px; min-width: 0; }
#order .form-done__action strong { font-size: 1rem; font-weight: 650; }
#order .form-done__action small { color: #806f66; font-size: .8125rem; line-height: 1.3; }
#order .form-done__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #35170f; color: var(--cream); font: 700 1.125rem/1 var(--sans); }
#order .form-done__icon--email { background: #260b07; }
#order .form-done__icon--max,
#order .form-done__icon--telegram { overflow: hidden; isolation: isolate; }
#order .form-done__icon img,
.footer__messenger-icon img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.72) contrast(10); mix-blend-mode: screen; }
#order .form-done__hint { min-height: 1.4em; color: #806f66; font-size: .875rem; }
#order .form-done__edit { justify-self: start; color: #35170f; box-shadow: inset 0 0 0 1px #35170f; }
.footer__messenger { display: flex; align-items: center; gap: 10px; }
.footer__messenger-icon { display: block; flex: none; width: 28px; height: 28px; overflow: hidden; isolation: isolate; border-radius: 50%; background: #9d5d3d; }
.form-done__icon--max,
.form-done__icon--telegram,
.footer__messenger-icon { background: transparent; }
.form-done__icon--max .icon,
.form-done__icon--telegram .icon,
.footer__messenger-icon .icon { display: block; width: 100%; height: 100%; }
@media (min-width: 1280px) { .footer__address { white-space: nowrap; } }

/* Единый размер заголовков разделов на широком экране. */
@media (min-width: 900px) {
  .block__title,
  #tasting .block__title,
  #about .trust__grid > .block__title,
  #process .process__aside .block__title,
  #partners .partners__head .block__title,
  #order.order.editorial--cream .block__title,
  #calc .calc__title { font-size: 68px; }
}

/* Компактные колонки футера, без старого межстрочного растягивания ссылок. */
.footer__col { gap: 6px; }
@media (min-width: 1100px) {
  .footer__col a { min-height: 0; }
}

/* Новые модели: PNG с прозрачностью и единая сетка каталога. */
.block--milk .cake--generated .cake__photo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 1.8vw, 24px);
  object-fit: contain;
  box-sizing: border-box;
  transform: none;
}
.block--milk .cake--generated:hover .cake__photo img { transform: scale(1.035); }
.block--milk .cake--generated .cake__photo img[src$="/strawberry-vintage.webp"] { transform: scale(.84); }
.block--milk .cake--generated:hover .cake__photo img[src$="/strawberry-vintage.webp"] { transform: scale(.88); }
.block--milk .cake--generated .cake__buy { margin-top: 8px; }
.block--milk .cake--wave .cake__photo img { padding: 4px; }
.block--milk .cake--catalog-details {
  grid-template-areas: "photo photo" "title title" "meta meta" "price price";
}
.block--milk .cake--catalog-details .cake__meta {
  min-height: 0;
  margin-top: 8px;
  padding-block: 0;
  border: 0;
  text-align: left;
  white-space: normal;
}
.block--milk .cake--catalog-details .cake__buy {
  grid-area: price;
  margin: 0;
  padding: 10px clamp(18px, 2vw, 28px) 20px;
}
.block--milk .cake--catalog-details .cake__price {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 600;
}

/* ---------- Мобильная версия ---------- */
@keyframes mobile-caption-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 899px) {
  /* Меню остаётся компактным, без дублирующей кнопки заказа. */
  .menu__list a { padding-block: 10px; font-size: 1.7rem; }
  .menu__foot .btn { display: none; }

  /* В широкий кадр на телефоне попадает именно композиция с тортом. */
  .hero { --slide-time: 4s; }
  .slide--scene img { object-position: 83% 20%; }
  .hero__foot {
    position: absolute;
    z-index: 4;
    top: calc(var(--header-h) + 18px);
    right: auto;
    left: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: min(62%, 240px);
    padding: 0;
    text-align: left;
  }
  .hero__pause { display: none; }
  .hero__dots {
    display: flex;
    order: 2;
    gap: 4px;
    margin: 0 !important;
  }
  .hero__dots button { width: 31px; height: 12px; }
  .hero__dots span { background: rgb(255 246 229 / .5); }
  .hero__caption {
    display: inline-flex;
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 0;
    background: transparent;
    color: var(--cream);
    font-size: clamp(.95rem, 3.8vw, 1.1rem);
    line-height: 1.05;
    text-align: left;
    text-shadow: 0 1px 12px rgb(0 0 0 / .4);
  }
  .hero__caption-meta { margin: 0; color: var(--cream-muted); font-size: .75rem; }
  .hero__caption.is-changing { animation: mobile-caption-in .55s var(--ease); }
  .hero__service-bar { justify-content: center; width: 100%; }

  /* На телефоне каталог начинается с пяти карточек. */
  .cakes:not(.is-expanded) > .cake:nth-child(n + 6) { display: none; }
  .cakes.is-expanded > .cake:nth-child(n + 6) { display: grid; }

  /* Текст и CTA дегустации выровнены по одной левой линии. */
  #tasting .tasting__text { padding-left: 0; }
  #tasting .tasting__cta {
    width: min(78%, 22rem);
    min-width: 0;
    min-height: 48px;
    margin-top: 26px;
    padding-inline: 18px;
  }

  /* Карусель начинок не выходит за края экрана. */
  .wheel__stage { height: clamp(276px, 78vw, 332px); }
  .wheel__item { bottom: 5%; height: 85%; }
  .wheel__stage::after { width: 118%; }

  /* Горизонтальный кадр показываем целиком, без обрезания. */
  #about .trust__slice { width: 100%; aspect-ratio: auto; }
  #about .trust__slice img { height: auto; object-fit: contain; }

  /* Агентствам: на фотографии только заголовок и описание; условия ниже. */
  #partners { --partners-mobile-photo-h: clamp(320px, 78vw, 400px); padding: 0 0 56px; background: #260b07; }
  #partners.velvet::before,
  #partners .partners__visual::after { display: none; }
  #partners .partners__visual { display: none; }
  #partners .partners__visual picture { display: block; width: 100%; height: 100%; }
  #partners .partners__visual img { object-fit: contain; object-position: center top; }
  #partners .partners { min-height: 0; grid-template-columns: 1fr; justify-items: start; gap: 0; text-align: left; }
  #partners .partners__head { position: relative; z-index: 1; isolation: isolate; justify-self: start; width: 100%; min-height: 0; margin-right: auto; padding: 26px 0 42px; justify-items: start; text-align: left; }
  #partners .partners__head::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * var(--gutter)); background: url('../assets/img/partners/partners-rings-mobile-v2.webp') 40% center / cover no-repeat; }
  #partners .partners__head .block__title,
  #partners .partners__head .block__sub { width: min(54%, 22rem); margin-left: 0; }
  #partners .partners__body { position: relative; z-index: 1; width: 100%; padding-top: 0; justify-items: start; text-align: left; }
  #partners .partners__list li { grid-template-columns: 3.2ch minmax(0, 1fr); text-align: left; }
  #partners .partners__list li::before { grid-column: 1; text-align: left; }
  #partners .partners__note { margin-left: 0; }
  #partners .partners__contact { justify-items: center; }
  #partners .partners__phone { padding-left: 0; }

  /* Иконки каналов — не эмодзи и не чёрные, а в палитре сайта. */
  #order .form-done__icon { background: #9d5d3d; color: var(--cream); }
  #order .form-done__icon .icon { width: 20px; height: 20px; }
  #order .form-done__icon img,
  .footer__messenger-icon img {
    filter: grayscale(1) sepia(1) saturate(560%) hue-rotate(330deg) brightness(.66) contrast(1.15);
    mix-blend-mode: normal;
  }
  .footer__messenger-icon { background: #9d5d3d; }
}

@media (max-width: 620px) {
  #about { padding-top: 48px; }
  #partners .partners__list li:first-child { border-top: 0; }
  #about .trust__grid { row-gap: 22px; }
  #about .trust__grid > .block__title { margin-bottom: 26px; }
  #about .trust__body { gap: 22px; }
  #about .trust__slice { width: min(100%, 22rem); aspect-ratio: 2 / 1; }
  #about .trust__slice img { height: 100%; object-fit: cover; object-position: left center; }
}

.calc__slider { display: none; }
@media (max-width: 620px) {
  #calc .stepper { display: none; }
  #calc .calc__slider { display: grid; width: 100%; }
  .calc__guest-count { text-align: center; color: #260b07; font: 400 2rem/1.2 var(--serif); }
  #calc-guests-range { width: 100%; height: 44px; margin: 8px 0 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; accent-color: #260b07; cursor: pointer; }
  #calc-guests-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: #b8a58e; }
  #calc-guests-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border: 3px solid #ede5d3; border-radius: 50%; background: #260b07; box-shadow: 0 0 0 1px #260b07; }
  #calc-guests-range::-moz-range-track { height: 6px; border-radius: 999px; background: #b8a58e; }
  #calc-guests-range::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid #ede5d3; border-radius: 50%; background: #260b07; box-shadow: 0 0 0 1px #260b07; }
  #calc-guests-range:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
  .calc__range-limits { display: flex; justify-content: space-between; font-size: .75rem; color: #796859; }
}

/* Заявка на средних экранах: форма получает достаточно места для полей и согласия. */
@media (min-width: 1100px) and (max-width: 1680px) {
  #order .order__grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 2.5vw, 40px); align-items: start; }
  #order .order__grid > div { min-width: 0; }
  #order .form--panel { padding: 32px; gap: 24px; }
  #order .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  #order .field { min-width: 0; }
  #order.order.editorial--cream .block__title { font-size: clamp(3rem, 3.6vw, 3.75rem); }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  #order .order__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #order .order__intro { gap: 20px; }
  #order.order.editorial--cream .block__title { max-width: 18ch; }
  #order .order__intro .block__sub { max-width: 42rem; }
}

/* Агентствам: заголовок не выходит из своей колонки, фото без фонового шва. */
@media (min-width: 900px) and (max-width: 2086px) {
  #partners .partners__visual { overflow: hidden; }
}
@media (min-width: 1200px) {
  #partners .partners__head { margin-left: 0; padding-left: 12px; min-width: 0; align-self: center; transform: translateY(-15px); }
  #partners .partners__head .block__title { max-width: 100%; font-size: clamp(2.625rem, 3.3vw, 4.25rem); line-height: 1; }
  #partners .partners__head .block__sub { max-width: 100%; }
}
@media (max-width: 899px) {
  #partners .partners { grid-template-columns: minmax(0, 1fr); }
  #partners .partners__head .block__title { width: 58%; max-width: 100%; font-size: clamp(2rem, 10vw, 2.8rem); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  #partners .partners__head .block__title { max-width: 100%; font-size: clamp(2.5rem, 5vw, 3.4rem); }
  #partners.velvet::before { display: none; }
  #partners .partners__visual { overflow: hidden; }
  #partners .partners__visual img { transform: none; }
}

/* Блок доверия: изображения остаются внутри своих колонок на средних экранах. */
@media (min-width: 900px) and (max-width: 1492px) {
  #about .trust__grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); column-gap: clamp(24px, 3vw, 44px); align-items: start; }
  #about .trust__grid > .block__title { transform: none; }
  #about .trust__photo--portrait { position: static; top: auto; width: 100%; min-width: 0; align-self: start; }
  #about .trust__photo--portrait img { height: auto; }
  #about .trust__body { min-width: 0; width: 100%; }
  #about .trust__slice { min-width: 0; }
}

/* Калькулятор на узких экранах: выбор порции не сжимается рядом с результатом. */
@media (max-width: 975px) {
  #calc .calc__panel { grid-template-columns: minmax(0, 1fr); }
  #calc .calc__form { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(20px, 3vw, 32px); }
  #calc .calc__field,
  #calc .calc__mode { min-width: 0; }
  #calc .calc__mode b { white-space: nowrap; }
  #calc .calc__result { border-left: 0; border-top: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
  #calc .calc__title { font-size: clamp(2.25rem, 5vw, 3.125rem); }
}
@media (min-width: 621px) and (max-width: 975px) {
  #calc .calc__mode { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #calc .calc__mode span { height: 100%; }
}

/* Дегустация на средних экранах: читаемая колонка вместо узкой полосы текста. */
@media (min-width: 900px) and (max-width: 1884px) {
  #tasting .tasting__text { grid-column: 7 / -1; grid-row: 2; padding-left: 0; min-width: 0; margin-top: 0; }
  #tasting .tasting__copy { width: 100%; max-width: none; }
  #tasting .tasting__desktop-break { display: none; }
  #tasting .tasting__cta { grid-column: 7 / -1; grid-row: 3; width: auto; max-width: 100%; min-width: 0; justify-self: start; margin-top: 0; transform: none; padding-inline: 24px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  #tasting .tasting__bottom-gallery { grid-column: 1 / -1; grid-row: 2; }
  #tasting .tasting__text { grid-column: 1 / -1; grid-row: 3; }
  #tasting .tasting__cta { grid-column: 1 / -1; grid-row: 4; }
}

/* Хедер среднего десктопа: меню участвует в раскладке и не перекрывает контакты. */
@media (min-width: 1500px) and (max-width: 1950px) {
  .header__row { padding-inline: clamp(28px, 3vw, 58px); gap: 20px; }
  .header__row .logo,
  .header__row .header__phone,
  .header__row .header__cta { flex-shrink: 0; }
  .header__row .nav { position: static; transform: none; flex: 1 1 auto; justify-content: center; gap: clamp(12px, 1vw, 19px); }
  .header__row .nav a { font-size: .875rem; }
  .header__row .header__phone { margin-left: 0; font-size: .875rem; }
  .header__row .header__cta { padding-inline: 20px; font-size: .875rem; }
}

/* Плеер распаковки: SVG по центру и собственные доступные элементы управления. */
#tasting .tasting__hero .tasting__play { display: grid; place-items: center; padding: 0; background: rgb(38 11 7 / .65); color: var(--cream); border: 1px solid rgb(237 229 211 / .7); }
#tasting .tasting__hero .tasting__play::after { display: none; }
.tasting__play svg { width: 30px; height: 30px; fill: currentColor; }
#tasting .tasting__hero figcaption { left: 18px; top: 16px; bottom: auto; transform: none; font-size: .875rem; text-shadow: 0 1px 5px #260b07; }
.tasting-player__controls { position: absolute; z-index: 3; inset: auto 0 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--cream); background: rgb(38 11 7 / .9); }
.tasting-player__controls button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.tasting-player__controls button:hover { background: rgb(200 139 95 / .25); }
.tasting-player__controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[data-player-toggle] svg { fill: currentColor; stroke: none; }
.tasting-player__controls output { flex: none; font-size: .75rem; font-variant-numeric: tabular-nums; }
.tasting-player__controls input { flex: 1; min-width: 0; height: 32px; margin: 0; accent-color: #c88b5f; cursor: pointer; }
#tasting .tasting__hero video { display: block; width: 100%; height: 100%; object-fit: contain; background: #260b07; }
#tasting .tasting__hero:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; background: #260b07; }
#tasting .tasting__hero:fullscreen > img { object-fit: contain; }
@media (max-width: 620px) {
  .tasting-player__controls { gap: 6px; padding: 6px 8px; }
  #tasting .tasting__hero figcaption { top: 12px; left: 12px; font-size: .75rem; }
}

#about .pp--diet,
#fillings .fillings__diet-note { font-size: clamp(1.375rem, 1rem + .85vw, 2rem); line-height: 1.3; }
#fillings .fillings__diet-note { font-weight: 600; }

/* Единый SVG-стиль контактов в заявке и футере. */
#i-max circle,
#i-telegram circle { fill: var(--messenger-bg, #260b07); }
#i-max path,
#i-telegram path { fill: var(--messenger-glyph, #ede5d3); stroke: none; }
#i-max path { transform-origin: 0 0; transform: translate(9.955px, 9.169px) scale(.391791); }
#order .form-done__icon,
.footer__messenger-icon { background: #260b07; color: #ede5d3; }
#order .form-done__icon .icon { width: 20px; height: 20px; }
#order .form-done__icon--max .icon,
#order .form-done__icon--telegram .icon,
.footer__messenger-icon .icon { width: 100%; height: 100%; stroke: none; }

.footer__messenger-icon { --messenger-bg: transparent; --messenger-glyph: #fff; background: transparent; }
#order .form-done__icon { --messenger-bg: #c88b5f; background: #c88b5f; }
