/* =========================================
   WEBFONTS — real Figma fonts (local).
   Gilroy + Aurora Script supplied and wired here.
   Masvol (display headings) — подключён.
========================================= */

@font-face {
  font-family: "Masvol";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  /* путь относительно assets/main.style.css — файлы лежат в assets/fonts/ */
  src: url("fonts/CD-Masvol-Thin.woff") format("woff"),
       url("fonts/CD-Masvol-Thin.ttf") format("truetype"),
       url("fonts/CD-Masvol-Thin.otf") format("opentype");
}
@font-face {
  font-family: "Gilroy";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/Gilroy-Light.woff2") format("woff2"),
       url("fonts/Gilroy-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Gilroy";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Gilroy-Regular.woff2") format("woff2"),
       url("fonts/Gilroy-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Gilroy";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Gilroy-Medium.woff2") format("woff2"),
       url("fonts/Gilroy-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Gilroy";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Gilroy-Semibold.woff2") format("woff2"),
       url("fonts/Gilroy-Semibold.ttf") format("truetype");
}
@font-face {
  font-family: "Aurora Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/AuroraScript.woff2") format("woff2"),
       url("fonts/AuroraScript.ttf") format("truetype");
}

/* =========================================
   DESIGN TOKENS (Figma 1:1)
========================================= */

:root {
  /* Fonts — real Figma name first, free substitute second, generic last.
     Drop real Masvol/Gilroy/Aurora Script @font-face later → auto-upgrades to 1:1. */
  --font-display: "Masvol", "Playfair Display", "Cormorant Garamond", serif;
  --font-body: "Gilroy", "Montserrat", "Inter", sans-serif;
  --font-script: "Aurora Script", "Marck Script", "Brush Script MT", cursive;

  /* Palette (extracted from Figma) */
  --c-brown-900: #401C0C;   /* основной тёмный текст */
  --c-brown-700: #571D22;   /* тёмно-красный/коричневый */
  --c-brown-500: #7E644A;   /* вторичный коричневый */
  --c-brown-300: #A1755B;   /* светлый коричневый */
  --c-red: #9D1F2A;         /* красный бренд */
  --c-red-600: #B21E2B;     /* красный кнопок */
  --c-caramel: #D28B5C;     /* карамель акцент */
  --c-caramel-700: #8F5026; /* карамель тёмная */
  --c-beige: #D6BFA7;       /* беж карточек */
  --c-cream-1: #FEF2E2;     /* кремовый фон 1 */
  --c-cream-2: #FFF6EB;     /* кремовый фон 2 */
  --c-cream-3: #FEF4EA;     /* кремовый фон 3 */
  --c-beige-light: #F8EBDC;
  --c-beige-warm: #FBE5C1;
  --c-white: #FFFFFF;
}

/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Блокировка скролла страницы, пока открыта мобильная шторка меню */
html.nav-open-lock {
  overflow: hidden;
}

/* Переход по ссылкам меню (#constructor, #certificates, #delivery) — секции
   якорятся вплотную к верху вьюпорта, а шапка зафиксирована и перекрывает
   заголовок. Отступ = высота шапки (58px + 24px top) с запасом.
   #sets остаётся для старых ссылок на врезку главной (подвал, корзина,
   «заказать готовый набор»); пункт меню теперь ведёт на страницу /sets. */
#constructor,
#sets,
#certificates,
#delivery,
#footer {
  scroll-margin-top: 100px;
}

body {
  font-family: var(--font-body);
  background: #FFF6EB;
  color: #401C0C;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 33px;
}

.header-inner {
  max-width: none;
  height: 58px;
  margin: 0 auto;
  padding: 0 27px 0 37px;
  gap: 36px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 999px;

  background: rgba(255, 246, 235, 0.96);

  backdrop-filter: blur(14px);

  box-shadow: 0 10px 28px rgba(45, 24, 18, 0.06);
}

.header-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.header-logo img {
  height: 16px;
  width: auto;
  display: block;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;

  list-style: none;
}

.nav-menu a {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #401C0C;

  transition: color 0.2s ease;
}

/* Текущая страница сохраняет обычный вид. Подчёркивание и акцентный цвет
   появляются только при наведении или клавиатурном фокусе, по последней
   правке меню (статичное подчёркивание в старых Figma-кадрах устарело). */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current-menu-parent > a,
.nav-menu .current_page_ancestor > a,
.nav-menu .current_page_parent > a,
.nav-menu .nav-linkactive > a,
.nav-menu a.nav-linkactive {
  color: #401C0C;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu .current-menu-item > a:hover,
.nav-menu .current-menu-item > a:focus-visible,
.nav-menu .current_page_item > a:hover,
.nav-menu .current_page_item > a:focus-visible,
.nav-menu .current-menu-ancestor > a:hover,
.nav-menu .current-menu-ancestor > a:focus-visible,
.nav-menu .current-menu-parent > a:hover,
.nav-menu .current-menu-parent > a:focus-visible,
.nav-menu .current_page_ancestor > a:hover,
.nav-menu .current_page_ancestor > a:focus-visible,
.nav-menu .current_page_parent > a:hover,
.nav-menu .current_page_parent > a:focus-visible,
.nav-menu .nav-linkactive > a:hover,
.nav-menu .nav-linkactive > a:focus-visible,
.nav-menu a.nav-linkactive:hover,
.nav-menu a.nav-linkactive:focus-visible {
  color: #B01E2B;
  text-decoration: underline;
  text-underline-position: from-font;
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Базовая стрелка — десктопная: треугольник 6×4 в 8px от слова.
   Крупная стрелка 10×10 из Figma 208:4613/208:4615 размечена только для
   шторки и живёт в блоке max-width: 860px ниже. Один раз её уже подняли
   на все ширины «заодно» — на ПК она вышла непропорционально крупной
   рядом с 13px прописными. */
.nav-caret {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #401C0C;
  transition: transform 0.2s ease;
}

/* Поворот стрелки на десктопе — по наведению/фокусу. На планшете и телефоне
   раскрытие идёт по классу .is-expanded (см. блок ниже под 860); там
   :focus-within после тапа удерживает вращение и стрелка «застревает»
   вверх, поэтому глобальное правило скоупим только на десктоп. */
@media (min-width: 861px) ,  (width > 860px) {
  .menu-item-has-children:hover .nav-caret,
  .menu-item-has-children:focus-within .nav-caret {
    transform: rotate(180deg);
  }
}

/* Стрелка у «покупателям» в шторке — Figma 208:4613/208:4615: залитый
   треугольник 10×10 в 3px от слова. Базовые 6×4 на телефоне читались
   надстрочной галочкой. Узел десктопной стрелки в макете не размечен,
   поэтому правка ограничена шторкой. */
@media (max-width: 860px) {
  .nav-menu-panel .menu-item-has-children > a {
    gap: 10px;
  }
  .nav-menu-panel .nav-caret {
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 10px;
    position: relative;
    left: 1px;
  }
}

@media (max-width: 430px) {
  .nav-menu-panel .nav-caret { left: 2px; }
}


.sub-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 50;

  display: flex;
  flex-direction: column;
  gap: 12px;

  width: 209px;
  padding: 18px 22px 19px 20px;
  box-sizing: border-box;

  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 4px 4px 24px rgba(214, 191, 167, 0.45), inset -4px -4px 10px #FFFFFF, inset 2px 2px 11px rgba(231, 205, 177, 0.9);
  border-radius: 9px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .site-header .menu-item-has-children > .sub-menu { transition: none; }
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* На широком сенсорном экране наведённое/сфокусированное состояние может
   остаться после тапа. Здесь подменю открывается только явным is-expanded,
   который переключает родительская ссылка; поэтому второй тап закрывает его,
   даже если браузер сохранил :hover или :focus-within. */
@media (min-width: 1200px) and (hover: none) and (pointer: coarse) {
  .site-header .menu-item-has-children:not(.is-expanded):hover .sub-menu,
  .site-header .menu-item-has-children:not(.is-expanded):focus-within .sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }
  .site-header .menu-item-has-children.is-expanded .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-header .menu-item-has-children:not(.is-expanded):hover .nav-caret,
  .site-header .menu-item-has-children:not(.is-expanded):focus-within .nav-caret {
    transform: none;
  }
  .site-header .menu-item-has-children.is-expanded > a .nav-caret {
    transform: rotate(180deg);
  }
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .site-header .menu-item-has-children > .sub-menu::before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 0;
    left: 0;
    height: 16px;
  }
}

.sub-menu a {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.27;
  text-transform: uppercase;
  color: #401C0C;
  white-space: normal;
}

.sub-menu a:hover {
  color: #B01E2B;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 20px 3px 3px;
  border-radius: 999px;
  border: 1.5px solid #9D1F2A;
  background: #FFF6EB;
  color: #401C0C;
  white-space: nowrap;
  transition: box-shadow 0.2s ease;
}

.cart-btn:hover {
  box-shadow: 0 4px 14px rgba(157, 31, 42, 0.2);
  transform: scale(1.02);
}

.cart-icon-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B01E2B 0%, #7a1219 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* The source SVG is red on the Figma mobile light disc.  The legacy desktop
   cart keeps its white glyph on a red disc; mobile page-scoped rules below
   restore the source gradient. */
.cart-icon-wrap svg path { fill: #fff; }
.cart-icon-wrap .cart-icon { width: 14px; height: 14px; }

.cart-count {
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFF6EB;
  color: #9D1F2A;
  font-size: 10px;
  font-weight: 700;
  /* Без line-height:1 цифра ловила наследованный интерлиньяж и вставала
     выше центра кружка. box-sizing — чтобы рамка 1.5px не раздувала
     18px-круг и он не съезжал относительно иконки. */
  line-height: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #9D1F2A;
}

.cart-price {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #401C0C;
  letter-spacing: 0.01em;
}

.socials {
  display: flex;
  gap: 8px;
}

/* ТЗ: контактные кнопки на ховере растут ровно на 2px. Видимый кружок внутри
   иконки — 29px из 49px канвы SVG (остальное — прозрачное поле под тень), и
   на десктопе бокс .social-item обрезан ровно до этих 29px (см. блок ≥861px).
   Значит 29 → 31px, то есть scale(31/29). Множитель вынесен в переменную,
   потому что в футере на узких вьюпортах кружок другого размера. */
.social-item {
  --social-hover-scale: 1.069;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  line-height: 0;
}

.social-item img {
  display: block;
  width: 46px;
  height: 46px;
}

.social-item:hover {
  transform: scale(var(--social-hover-scale));
  opacity: 0.85;
}

/* ── Десктопная геометрия шапки 1 в 1 по макету ────────────────────────────
   Замеры сняты пиксельно с design-reference/18-cart.png (нативный экспорт
   Figma, канва 1200px — та же, в которой живёт zoom-бакет 861–1199):

     плашка     x 33..1167, y 24..81            (h 58 — уже совпадало)
     логотип    x 70, чернила 80×14             (logo-header.svg = 81×14)
     корзина    x 884..979 (w 96), h 29;
                кружок 29px вровень с левым краем пилюли;
                цена: чернила x 924..964, высота цифр 8px = Gilroy 11px
     соцсети    кружки 29px, шаг 38px (зазор 9), правый край на 1140

   Почему flex-shrink: 0 — до этого суммарная ширина содержимого не влезала
   в плашку, и браузер сжимал по ширине именно картинки (max-width:100%):
   иконки 49px рендерились как 33px, а поскольку SVG вписывается с
   сохранением пропорций, видимый кружок «худел» до ~20px вместо 29.
   Логотип по той же причине рендерился 77px вместо 81. */
@media (min-width: 861px) ,  (width > 860px) {
  .header-logo,
  .header-right,
  .socials,
  .social-item { flex-shrink: 0; }

  .header-logo img { height: 14px; }

  /* Меню без разрядки: в макете «ГОТОВЫЕ НАБОРЫ» занимает 95px, а
     «ДОСТАВКА И САМОВЫВОЗ» — 139px; Gilroy 11px без letter-spacing даёт
     95.6 и 139.4, с базовыми 0.02em — 99.3 и 144. Лишние ~18px по всему
     меню как раз и выпихивали правую группу за поле плашки, когда в
     корзине появлялась реальная сумма («14 500 ₽» вместо «0 ₽»). */
  .nav-menu a { letter-spacing: 0; }

  /* gap: зазор между правым краем корзины (979.5) и первой соцсетью (997).
     top: в макете и корзина, и соцсети стоят верхним краем на 36.5px, то
     есть на 2px выше геометрического центра плашки (24 + (58-29)/2 = 38.5).
     Логотип и меню при этом отцентрованы честно — так что это не общий
     сдвиг ряда, а именно правой группы. */
  .header-right {
    gap: 18px;
    position: relative;
    top: -2px;
  }

  .cart-btn {
    height: 29px;
    gap: 11px;
    padding: 0 14px 0 0;
  }

  /* кружок ровно во всю высоту пилюли, поэтому левую рамку он перекрывает */
  .cart-icon-wrap {
    width: 29px;
    height: 29px;
    margin-left: -1.5px;
  }

  .cart-price { font-size: 11px; }

  .socials { gap: 9px; }

  /* Бокс кнопки = сам кружок (29px). Прозрачные поля SVG (8px сверху и
     слева, 12px справа и снизу — там лежит тень) выносим наружу
     отрицательными margin'ами, иначе шаг между кнопками не сойдётся с
     макетом: боксы там 49px и налезают друг на друга до шага 38. */
  .social-item {
    width: 29px;
    height: 29px;
  }

  .social-item img {
    width: 49px;
    height: 49px;
    max-width: none;
    margin: -8px -12px -12px -8px;
  }
}

/* The six-link menu, cart, and socials exceed the pill at 1200–1284px.
   Compress those gaps there, then ease back to the authored desktop spacing. */
@media (min-width: 861px) and (max-width: 1344px) ,  (width > 860px) and (max-width: 1344px) {
  .site-header { padding-inline: clamp(20px, calc(20px + (100vw - 1284px) * .2167), 33px); }
  .header-inner {
    padding-inline: clamp(20px, calc(20px + (100vw - 1284px) * .1167), 27px);
    gap: clamp(7px, calc(7px + (100vw - 1200px) * .2014), 36px);
  }
  .nav-menu { gap: clamp(6px, calc(6px + (100vw - 1200px) * .13194), 25px); }
  /* The set editor keeps its full six-link row, including the requested
     certificates link. Its fixed 648px track otherwise grows to min-content
     width and pushes the last social icon outside the header at 1200/1024/861. */
  body.is-edit-set .nav-menu {
    gap: clamp(6px, calc(6px + (100vw - 1200px) * .15), 25px);
  }
  .header-right { gap: clamp(12px, calc(12px + (100vw - 1284px) * .1), 18px); }
}

/* Keep the six desktop links on one row without pushing header controls out. */
@media (min-width: 861px) and (max-width: 1199px) ,  (width > 860px) and (max-width: 1199px) ,  (min-width: 861px) and (width < 1200px) {
  .site-header .header-nav { min-width: 0; }
  .site-header .nav-menu {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
  }
  .site-header .nav-menu a { font-size: 10.5px; letter-spacing: 0; }
  body.is-edit-set .site-header .header-nav { flex: 1 1 648px; }
  body.is-edit-set .site-header .nav-menu { justify-content: flex-start; }
}

/* =========================================
   HERO
========================================= */

.site-main {
  overflow: hidden;
}

.hero {
  position: relative;

  height: 676px;
  min-height: 676px;

  padding: 0;

  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;

  z-index: 0;
}

.hero-bg__blob {
  position: absolute;
  top: 0;
  height: 676px;
  background-size: cover;
  background-position: center;
}

/* +1px: полоса шоколада начинается ровно на calc(50% + 200px), а 50%
   на нечётной ширине окна даёт дробный пиксель — край крема округлялся
   влево и в стыке просвечивала кремовая подложка страницы белой нитью.
   Кремовая полоса лежит ПОД шоколадной, поэтому лишний пиксель просто
   уходит под неё и ничего не смещает. */
.hero-bg__blob--cream {
  left: 0;
  width: calc(50% + 201px);
}

/* Exports of Figma nodes 188:2458 and 188:2461 retain their exact rotated crop. */
.hero-bg__blob--chocolate {
  left: calc(50% + 200px);
  width: 204px;
  background-image: url('img/hero-figma-chocolate-optimized.webp');
  background-size: 204px 676px;
  background-position: left top;
  /* Раньше здесь была мягкая маска linear-gradient(to right, transparent 0,
     #000 52px), «растворявшая» стык крем→шоколад. На деле она давала засвет:
     шоколад по левому краю становился прозрачным и сквозь него светила
     кремовая подложка. Замер поперёк стыка на y=560: в эталоне яркость
     падает 166 → 57 сразу на x=800, у нас поднималась до 219 и гасла только
     к x=848. В макете стык резкий. От белой нити на дробном пикселе страхует
     перекрытие крема в 1px (см. calc(50% + 201px) выше), маска для этого
     не нужна. */
}

.hero-bg__blob--caramel {
  left: calc(50% + 403px);
  width: 197px;
  background-image: url('img/hero-figma-caramel-optimized.webp');
  background-size: 197px 676px;
  background-position: left top;
}

/* На вьюпортах шире 1200px три полосы фона (calc(50%+200px) + 204px +
   197px, сумма ровно под канву 1200) не дотягивают до края окна —
   контент (.hero-inner) уже центрируется через max-width+margin:auto,
   а фон нет. Пробовали центрировать и .hero-bg по образцу .hero-inner
   (кремовые поля по бокам) — на практике поля становятся слишком
   заметными при увеличенном браузерном зуме на широких экранах (280px
   с каждой стороны на 110%). По итогу — тянем именно последнюю
   (правую) полосу на всю оставшуюся ширину вместо тайла: у неё нет
   правого соседа, поэтому её собственное растяжение не сдвигает
   ничего левее и не требует пересчёта choc/cream. Абстрактная
   swirl-текстура держит лёгкое горизонтальное растяжение без видимого
   шва (в отличие от тайла, где шов был бы неизбежен). */
@media (min-width: 1200px) {
  .hero-bg__blob--caramel {
    right: 0;
    width: auto;
    background-size: 100% 100%;
  }
}

/* =========================================
   HERO INNER
========================================= */

.hero-inner {
  position: relative;

  width: 100%;
  max-width: 1200px;
  height: 676px;

  margin: 0 auto;

  z-index: 5;
}

.hero-figma-logo {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
}

.hero-figma-logo {
  z-index: 5;
  /* Node 188:2487: expanded SVG bounds from the Figma logical frame. */
  top: 137.17px;
  left: 255.84px;
  width: 151.73px;
  /* Было 75.14px — «расширенные» границы ноды Figma, в которые входит
     размытие тени. Но тень у этого SVG обрезана его же фильтром
     (filter region = viewBox), наружу ничего не выходит, а
     preserveAspectRatio="none" растягивал рисунок в эту коробку по
     вертикали на 25,8%. Высота приведена к собственным пропорциям файла
     (148.266 × 58.3538): 151.73 × 58.3538 / 148.266 = 59.72. Верх опущен
     на половину разницы, чтобы логотип остался на прежнем месте на листе. */
  height: 59.72px;
  /* Наклейка лежит на листе, значит и наклон у неё листа: карточка,
     заголовок, список и кнопки повёрнуты на -5deg, а логотип оставался
     строго горизонтальным и выбивался. */
  transform: rotate(-5deg);
  transform-origin: center;
}

/* =========================================
   CARD
========================================= */

.hero-card {
  position: absolute;
  width: 606px;
  height: 516px;
  top: 126px;
  left: 54px;
  top: 126px;
  left: 54px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  z-index: 4;
  isolation: isolate;
}

.hero-card::before {
  position: absolute;
  z-index: 0;
  top: 24px;
  left: 19px;
  width: 567px;
  height: 468px;
  content: "";
  background:
    linear-gradient(rgba(255, 246, 237, .97), rgba(245, 232, 219, .97)),
    url("img/hero-paper-texture-3x.webp") center / cover;
  -webkit-mask: url("img/hero-figma-paper.svg") center / 100% 100% no-repeat;
  mask: url("img/hero-figma-paper.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(8px 8px 8px rgba(64, 28, 12, .2));
  transform: rotate(-5deg);
}

.hero-card > * {
  position: absolute;
  z-index: 1;
}

/* =========================================
   BRAND
========================================= */

.hero-brand {
  position: absolute;

  top: -20px;
  left: 50%;
  transform: translateX(-50%);

  width: 160px;
  height: auto;

  z-index: 10;
}

/* =========================================
   TITLE
========================================= */

.hero-title {
  top: 102px;
  left: 66px;
  width: 445px;
  margin: 0;

  font-family: "Masvol", serif;
  font-size: 50px;
  line-height: 50px;
  font-weight: 100;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  color: var(--Brown, #401C0C);
  transform: rotate(-5deg);
  transform-origin: center;
}

.hero-title__script {
  display: block;

  /* В эталоне 01-header строка почти касается заголовка: её верх на 4px ВЫШЕ
     нижней кромки «НАБОРЫ МАКАРОН». Было margin-top:2px и, главное,
     margin-left:78px — из-за него строка уезжала на 98px правее центра
     заголовка вместо +16 по макету. */
  margin-top: -24px;
  margin-left: 0;

  font-family: var(--font-script);
  font-size: 54px;
  line-height: 0.9;
  font-weight: 400;
  text-transform: none;
  /* Заголовок задаёт letter-spacing:3px для прописных, и рукописный шрифт
     его наследовал: 16 символов × 3px растаскивали строку на 48px и рвали
     связки между буквами. */
  letter-spacing: normal;

  color: #B01E2B;
}

/* Figma 188:2479 — это векторная рукописная надпись, а не текстовый
   шрифт. На десктопе используем её точный экспорт; на tablet/mobile
   сохраняется отдельная типографическая раскладка ниже. */
@media (min-width: 861px) ,  (width > 860px) {
  .hero-title__script {
    width: 314.273px;
    height: 69.492px;
    margin-top: -24px;
    margin-left: 80px;
    font-size: 0;
    line-height: 0;
    background: url("img/hero-script-figma.png") center / 100% 100% no-repeat;
  }
}

/* =========================================
   FEATURES
========================================= */

.hero-features {
  top: 288px;
  left: 180px;
  width: 300px;
  margin: 0;
  list-style: none;
  width: fit-content;

  display: flex;
  flex-direction: column;
  /* Было 15px — второй пункт уходил на 12px ниже, чем в эталоне
     01-header (верх «Доставим за 1 час» на y=459 против 447). Толщина
     текста при этом совпадает: плотность тёмных пикселей 1.055 от эталона,
     то есть вес править не нужно, разъезжался именно интервал. */
  gap: 7px;
  transform: rotate(-5deg);
  transform-origin: left top;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 15px;

  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: #401C0C;
}

.hero-features strong {
  font-weight: 500;
}

.feature-star {
  width: 23px;
  height: 23px;
  flex-shrink: 0;

  background-color: #B01E2B;

  -webkit-mask: url("img/star.svg") center / contain no-repeat;
  mask: url("img/star.svg") center / contain no-repeat;
}

/* =========================================
   BUTTONS
========================================= */

.hero-actions {
  top: 392px;
  left: 96px;
  width: 449px;
  margin: 0;
  display: flex;
  gap: 6px;
  transform: rotate(-5deg);
  transform-origin: left top;
}

/* Паддинги были несимметричными — 14px сверху против 10px снизу и 20/19 по
   бокам у второй кнопки, — из-за чего подпись сидела ниже и левее центра
   таблетки. Кнопка и так центрирует контент флексом, перекос не нужен.
   Заодно width:210px у первой кнопки не работал: базовый .btn ставит
   min-width:213px и перебивал его. */
.hero-actions .btn {
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: .36px;
  box-shadow: 4px 4px 8px #D6BFA7;
}

.hero-actions .btn:hover { box-shadow: 4px 4px 8px #D6BFA7; }

.hero-actions .btn--primary { width: 210px; }
.hero-actions .btn--secondary {
  width: 231px;
  padding-right: 20px;
  padding-left: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 213px;
  height: 64px;

  padding: 0 24px;

  border-radius: 999px;

  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;

  transition: 0.25s ease;
}

.btn--primary {
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  color: #FFF6EB;

  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
}

.btn--secondary {
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  color: #401C0C;

  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
}

.btn:hover {
  transform: scale(1.02);
}

/* =========================================
   VISUAL & MACARONS
========================================= */

.hero-macarons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-macarons__image {
  position: absolute;
  top: 225px;
  left: 682px;
  width: 515px;
  height: 335px;
  max-width: none;
}

.macaron {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(35, 20, 15, 0.22));
}

.macaron--left {
  width: 200px;
  left: 670px;
  top: 267px;
  z-index: 1;
  transform: rotate(90deg);
  transform-origin: center center;
}

.macaron--middle {
  width: 200px;
  left: 770px;
  top: 267px;
  z-index: 2;
  transform: rotate(90deg);
  transform-origin: center center;
}

.macaron--right {
  width: 200px;
  left: 870px;
  top: 272px;
  z-index: 3;
  transform: rotate(90deg);
  transform-origin: center center;
}

/* Исходники макарон из Figma: каждая рамка повторяет исходную маску,
   масштаб и поворот, поэтому прозрачные 2× PNG не получают белую плашку. */
.hero-macaron-frame {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-macaron-crop {
  position: relative;
  display: block;
  overflow: hidden;
  flex: none;
}
.hero-macaron-crop img {
  position: absolute;
  display: block;
  max-width: none;
}
.hero-macaron-frame--1 {
  top: 243px;
  left: 843px;
  width: 134px;
  height: 221px;
}
.hero-macaron-frame--1 .hero-macaron-crop {
  width: 221px;
  height: 134px;
  transform: rotate(90deg);
}
.hero-macaron-frame--1 img {
  width: 273.36%;
  height: 300.18%;
  left: -146.85%;
  top: -112.93%;
}
.hero-macaron-frame--2 {
  top: 248px;
  left: 964px;
  width: 139px;
  height: 216px;
}
.hero-macaron-frame--2 .hero-macaron-crop {
  width: 216px;
  height: 139px;
  transform: rotate(90deg);
}
.hero-macaron-frame--2 img {
  width: 251.18%;
  height: 259.81%;
  left: -134.51%;
  top: -98.68%;
}
.hero-macaron-frame--3 {
  top: 244px;
  left: 695px;
  width: 158.524px;
  height: 221px;
}
.hero-macaron-frame--3 .hero-macaron-crop {
  width: 221px;
  height: 158.524px;
  transform: rotate(-90deg);
}
.hero-macaron-frame--3 img {
  width: 202.91%;
  height: 188.58%;
  left: -102.91%;
  top: -53.41%;
}

/* =========================================
   STICKERS
========================================= */

.hero-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

/* Реальные стикеры Figma как <img>. Текст, иконки, наклон и тень зашиты в SVG.
   Координаты/ширины — точно из макета (фрейм 1200px). height:auto держит пропорции. */
.hero-sticker {
  position: absolute;
  height: auto;
}

.hero-sticker--1 { left: 530px; top: 72px;  width: 226px; z-index: 9;  }  /* пониженное содержание сахара */
.hero-sticker--5 { left: 993px; top: 144px; width: 172px; z-index: 9;  }  /* калифорнийский миндаль */
/* The PNG carries transparent shadow padding. At 88px its visible face
   matches Figma 188:2608 (about 62×64px); offset the canvas so the face stays
   centered on the Figma node, not on the padded image box. */
.hero-sticker--2 { left: 967.55px; top: 192.87px; width: 88px; z-index: 11; }  /* иконка-миндаль */
.hero-sticker--3 { left: 15px; top: 368px; width: 125px; z-index: 11; }  /* красная подарочная коробка */
.hero-sticker--6 { left: 579px; top: 385px; width: 126px; z-index: 10; }  /* без глютена */
.hero-sticker--7 { left: 739px; top: 412px; width: 140px; z-index: 6;  }  /* иконка */
/* Тень — точные параметры из исходного экспорта Figma stiker-4-2.svg: там
   у обеих частей стикера (бумажный какао-боб и бежевая плашка) один и тот
   же фильтр feDropShadow — feOffset dx=4 dy=4, stdDeviation=4, цвет
   0.380392/0.176471/0.0823529 при alpha 0.6, то есть rgb(97,45,21) 60%.
   CSS-blur = 2 × stdDeviation = 8px. В stiker-4-clean.svg (его и отдаём)
   фильтр при перевыгрузке потерялся, а в CSS стояла универсальная слабая
   заглушка 2/3/6 при 0.18 — стикер выглядел плоским. */
.hero-sticker--4 { left: 909px; top: 460px; width: 253px; z-index: 10; filter: drop-shadow(4px 4px 8px rgba(97, 45, 21, 0.6)); }  /* французский шоколад */

/* Desktop stickers share one immutable Figma coordinate plane. Explicit
   dimensions prevent browser zoom and intrinsic SVG loading from changing
   their containing geometry independently. */
@media (min-width: 861px) ,  (width > 860px) {
  .hero-stickers {
    inset: auto;
    top: 0;
    left: 0;
    width: 1200px;
    height: 676px;
  }
  .hero-sticker--2 { height: 89.985px; }
  .hero-sticker--3 { height: 132px; }
  .hero-sticker--4 { height: 215px; }
  .hero-sticker--7 { height: 153px; }
}

/* ── Sticker Badges: CSS divs with inline SVG shapes + crisp HTML text ─── */
.sticker-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(2px 3px 6px rgba(64, 28, 12, 0.18));
}
.sticker-badge > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sticker-badge__text {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.28px;
  color: #B01E2B;
  pointer-events: none;
}
.sticker-badge__text--rotated { transform: rotate(16deg); }

/* Пропорции бейджей задаём через aspect-ratio, а не фиксированной высотой.
   Раньше тут стояли height: 218/121/109px под десктопные ширины 226/172/126.
   Планшетный блок переопределяет ТОЛЬКО ширину (170/125/84), высота
   оставалась десктопной — коробка становилась заметно выше нужного, svg
   внутри неё (preserveAspectRatio по умолчанию) прижимался к одному краю,
   а текст к другому: у «калифорнийского миндаля» на 768px подпись уезжала
   под верхнюю кромку баннера, а плашка висела отдельно ниже-правее.
   С aspect-ratio высота считается от ширины на любом брейкпоинте, так что
   десктоп не меняется (226×218, 172×121, 126×109), а планшет наконец
   сходится (170×164, 125×88, 84×72.7). */
.hero-sticker--1.sticker-badge { aspect-ratio: 226 / 218; }
.hero-sticker--5.sticker-badge { aspect-ratio: 172 / 121; }
.hero-sticker--6.sticker-badge { aspect-ratio: 126 / 109; }

/* Badge-specific text sizing & rotation */
.hero-sticker--1 .sticker-badge__text { font-size: 14px; width: 108px; transform: rotate(-19.128deg); }
.hero-sticker--5 .sticker-badge__text { font-size: 14px; max-width: 124px; }
.hero-sticker--6 .sticker-badge__text { font-size: 14px; max-width: 76px; }

/* =========================================
   MOBILE
========================================= */

/* burger скрыт на десктопе */
.nav-burger { display: none; }
/* блок контактов/соцсетей/CTA — часть мобильной шторки меню, на десктопе не нужен */
.nav-mobile-footer {
  display: none;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}
.nav-mobile-footer__contacts p {
  margin: 0 0 19px;
  font-size: 14px;
  line-height: normal;
  color: #401C0C;
  text-transform: uppercase;
}
.nav-mobile-footer__contacts p:last-child { margin-bottom: 0; }
.nav-mobile-footer__label { font-weight: 500; }
.nav-mobile-footer__phone { font-weight: 600; }
.nav-mobile-footer__phone a { color: inherit; text-decoration: none; }
.nav-mobile-footer__address a { color: inherit; text-decoration: none; }
.nav-mobile-footer__buttons {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.nav-mobile-footer__socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mobile-footer__socials img { display: block; width: 38px; height: 38px; }
.nav-mobile-footer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 46px;
  border-radius: 80px;
  background: linear-gradient(135.77deg, #DA1B2C 8.06%, #9D1F2A 81.99%);
  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
  color: #FFF6EB;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Граница 860, а не 900: это реальный брейкпоинт планшетного макета
   Figma. С автомасштабированием (см. конец файла) полоса 861–1199
   отдаётся десктопному кадру 1200px, и «мобильные» правила отсюда —
   бургер, hero в колонку, скрытие стикеров — туда залезать не должны. */
@media (max-width: 860px) {
  /* ---------- HEADER / бургер-меню ---------- */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 42px;
    height: 42px;
    flex: 0 0 auto;

    border: none;
    border-radius: 50%;
    /* [96] Дизайнер: фон бургера — бежевый, как на плашке корзины, а не чистый белый.
       Тень — та же, что у корзины (Figma «Shadow_Card»), чтобы кнопки читались единой
       группой на светлых экранах, где раньше плашки сливались с фоном. */
    background: #FFF6EB;
    box-shadow: 0 4px 12px rgba(45, 24, 18, 0.14);
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #B01E2B;
    transition: 0.22s ease;
  }
  .site-header.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* backdrop-filter на .header-inner создаёt свой containing block для
     position:fixed потомков (как и filter/transform) — .header-nav
     считал inset:0 не от вьюпорта, а от 58px хедера. Снимаем на время
     открытой шторки, блюр всё равно не нужен под полноэкранным меню. */
  .site-header.is-open .header-inner { backdrop-filter: none; }

  /* Шторка меню — полноэкранная по высоте, выезжает справа, а не
     раскрывающийся под хедером список (Figma: node 208:4605/4606, панель
     330px/100px отступ слева на кадре 430px = ~77% ширины).

     .header-nav сам — на весь вьюпорт (inset:0, как у рабочего
     .sm-overlay), затемнение — это его собственный фон, а панель прижата
     вправо через flex. Раньше пробовали position:fixed;right:0;width:vw
     прямо на панели — под :root{zoom:...} (см. AGENTS.md) это давало
     чужой правый край и неполную высоту на 500/700px, хотя на ровно 430
     выглядело верно. justify-content:flex-end + % от уже посчитанного
     flex-контейнера, вместо vw от сырого вьюпорта, эту проблему обходит. */
  .header-nav {
    position: fixed;
    inset: 0;
    flex: unset;

    /* Держим в потоке и прячем видимостью, а не display:none.
       С display:none переход стартовать не от чего: элемент появляется
       уже в конечном состоянии, и браузеру нечего анимировать. Из-за
       этого шторка возникала рывком — панель оказывалась на месте за
       считанные миллисекунды, хотя ниже объявлен выезд за 0.3s, а
       затемнение не проявлялось вовсе.
       Видимость снимаем с задержкой в 0.3s — ровно после того, как
       панель уехала за край, иначе она пропадала бы на полпути. */
    display: flex;
    visibility: hidden;
    pointer-events: none;
    justify-content: flex-end;

    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.3s;
  }
  .site-header.is-open .header-nav {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0s;
  }

  /* Кому движение мешает — показываем без выезда. */
  @media (prefers-reduced-motion: reduce) {
    .header-nav,
    .site-header.is-open .header-nav { transition: none; }
  }

  .nav-menu-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* [260] Дизайнер: «разложенное меню второго уровня слипается со
       следующим блоком контактов». justify-content:space-between даёт 0
       отступа, когда раскрытый .sub-menu делает содержимое выше панели
       (появляется overflow-y:auto). gap работает как МИНИМУМ поверх
       space-between — при коротком меню лишнее место всё ещё уходит вниз,
       а при раскрытом подменю остаётся фиксированный зазор. */
    gap: 32px;

    width: min(330px, 86%);
    height: 100%;
    padding: 135px 50px 50px;
    box-sizing: border-box;
    overflow-y: auto;

    background: #FFF6EB;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -16px 0 32px rgba(45, 24, 18, 0.14);
  }
  @media (prefers-reduced-motion: reduce) {
    body.phone-flow .site-header .nav-menu-panel,
    body.tablet-flow .site-header .nav-menu-panel,
    body.fluid-flow .site-header .nav-menu-panel { transition: none; }
  }
  .site-header.is-open .nav-menu-panel { transform: translateX(0); }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: 100%;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 0;
    font-size: 16px;
    /* Figma 208:4552 — межстрочный 14 при кегле 16. Было normal (~19),
       и шаг между пунктами получался на 5px больше макетного. */
    line-height: 14px;
    color: #401C0C;
  }
  .nav-mobile-footer { display: flex; }

  /* Второй уровень приглушён — Figma 208:4560, прозрачность 0.7.
     Селектор из четырёх классов намеренно: в phone/shell.css и
     tablet/shell.css стоит opacity:1 при специфичности (0,3,1), и более
     короткая запись проиграла бы. */
  .site-header .nav-menu-panel .nav-menu .sub-menu {
    opacity: 0.7;
  }

  /* Пункт со стрелкой снова выкладывается флексом.
     Мобильное `.nav-menu a { display: block }` идёт ниже базового
     `.menu-item-has-children > a { display: inline-flex }` и при равной
     специфичности перебивало его. Из-за этого align-items не работал,
     стрелка висела на строке как обычный инлайн и уходила на 5px выше
     середины слова. */
  .nav-menu-panel .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    /* Figma ink gap is 6px/5px (phone/tablet), with a 3px frame gap. */
    gap: 3px;
  }

  /* Стрелка показывает состояние: вниз — свёрнуто, вверх — раскрыто.
     Прежний поворот висел только на :hover / :focus-within, а на
     телефоне наведения нет вовсе — раскрытие идёт по классу
     .is-expanded, и стрелка оставалась неподвижной. */
  .nav-menu-panel .menu-item-has-children.is-expanded > a .nav-caret {
    transform: rotate(180deg);
  }

  /* Второй уровень — как в макете (Figma 208:4556/208:4560): простой
     список с шагом 16, отступ от «покупателям» 24, без сдвига вправо.
     На сайте пункты были тап-целями по 44px вплотную друг к другу;
     по просьбе заказчика приводим к макету. */
  .site-header .nav-menu-panel .nav-menu .menu-item-has-children.is-expanded > .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 0;
    padding: 0;
  }
  .site-header .nav-menu-panel .nav-menu .sub-menu a {
    display: block;
    min-height: 0;
    line-height: normal;
  }

  /* Legacy pages use the shared drawer without phone/tablet shell CSS. Keep
     their submenu in the same inline, explicitly toggled state as core pages. */
  body:not(.phone-flow):not(.tablet-flow):not(.fluid-flow) .site-header .nav-menu-panel .menu-item-has-children:not(.is-expanded) > .sub-menu {
    display: none;
  }
  body:not(.phone-flow):not(.tablet-flow):not(.fluid-flow) .site-header .nav-menu-panel .menu-item-has-children.is-expanded > .sub-menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 24px 0 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    opacity: 0.7;
    visibility: visible;
    transform: none;
  }
  body:not(.phone-flow):not(.tablet-flow):not(.fluid-flow) .site-header .nav-menu-panel .menu-item-has-children.is-expanded > .sub-menu a {
    font-size: 16px;
  }

  .socials { display: none; }
  /* [96] Тень плашки корзины на планшете/телефоне — Figma «Shadow_Card».
     Раньше тени не было и капсула сливалась с фоном на светлых страницах. */
  .cart-btn { font-size: 13px; padding: 0 12px; box-shadow: 0 4px 12px rgba(45, 24, 18, 0.14); }

  /* ---------- HERO ---------- */
  .hero {
    padding: 100px 16px 40px;
  }
  .hero-inner {
    width: 100%;
    height: auto;
    display: block;
  }
  .hero-card {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    min-height: auto;
    padding: 54px 26px 64px;
    transform: none;
  }
  .hero-title { font-size: 40px; }
  .hero-title__script { margin-left: 0; font-size: 34px; }
  .hero-features { margin-left: 0; }
  .hero-actions {
    margin-left: 0;
    flex-direction: column;
  }
  .hero-actions .btn { width: 100%; }

  /* декоративные макароны и стикеры на мобиле прячем (как в мобильном макете) */
  .hero-macarons,
  .hero-sticker { display: none; }

  /* ---------- ДВУХКОЛОНОЧНЫЕ ШАПКИ СЕКЦИЙ -> в колонку ---------- */
  .constructor-header,
  .sets-header-row,
  .cert-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .constructor-subtitle,
  .sets-subtitle,
  .cert-subtitle,
  .section-subtitle { max-width: 100%; }

  .sets-decorative-badge,
  .cert-decorative-badge {
    align-self: flex-start;
    text-align: left;
  }
}

/* =========================================
   COMMON
========================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 400;
  color: #401C0C;
  margin-bottom: 6px;
  text-transform: uppercase;
  line-height: 1.14;
  letter-spacing: 0.06em;
}

.section-title--light {
  color: #FFF6EB;
  border-bottom: none;
}

.section-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #FFF6EB;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-subtitle::before {
  content: "★";
  color: #FFF6EB;
  font-size: 22px;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
}

.btn--pill {
  border-radius: 80px;
  padding: 14px 31px 15px 30px;
  height: 46px;
}

.btn--sm {
  padding: 14px 30px;
  height: 46px;
}

.btn--wide {
  width: 100%;
  max-width: 360px;
}

.btn--primary {
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  color: #FFF6EB;
  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
  transition: 0.25s ease;
}
.btn--primary:hover {
  transform: scale(1.02);
  box-shadow: -4px -4px 6px #FFFFFF, 4px 6px 12px #D6BFA7;
}

.btn--secondary {
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  color: #401C0C;
  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
  transition: 0.25s ease;
}
.btn--secondary:hover {
  transform: scale(1.02);
}

/* Неактивная кнопка — тот же приём, что и у .tab-btn.is-disabled:
   лёгкая прозрачность + никакой реакции на курсор/ховер */
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* =========================================
   BADGES
========================================= */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.badge--red {
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  color: #FFF6EB;
}
.badge--cream { background: #FFF6EB; color: #B01E2B; }
.badge--absolute { position: absolute; top: 30px; left: 30px; z-index: 2; }

/* =========================================
   SCALLOPED (TICKET / STAMP EDGES)
========================================= */

.scalloped {
  position: relative;
}

/* Scalloped bottom edge via SVG-like mask */
.scalloped::after {
  content: "";
  position: absolute;
  bottom: -26px;
  left: 0;
  width: 100%;
  height: 52px;
  pointer-events: none;
}

/* We use a radial gradient mask on the card itself */
.card-scalloped {
  mask-image:
    radial-gradient(circle at 12px 0, transparent 12px, black 13px),
    linear-gradient(black, black);
  mask-size: 24px 100%, 100% calc(100% - 26px);
  mask-position: -12px bottom, 0 0;
  mask-repeat: repeat-x, no-repeat;
  mask-composite: subtract;
  -webkit-mask-composite: destination-out;
}

/* =========================================
   CONSTRUCTOR
========================================= */

.constructor {
  background: #FFF6EB;
  padding: 112px 0 32px;
}

.constructor-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 87px;

  margin-bottom: 55px;
}
/* Заголовок не должен переноситься, когда рядом стало больше места под
   описание (после расширения .constructor-subtitle под 2-строчный текст) */
.constructor-header .section-title {
  flex-shrink: 0;
  white-space: nowrap;
}

.constructor-subtitle {
  display: flex;
  align-items: center;
  gap: 53px;

  max-width: 640px;
  margin-top: 0;

  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  color: #401C0C;
}
.constructor-subtitle b { font-weight: 500; }

/* Figma 188:1962: a 369px heading, 87px gap, then the star and copy.
   Keep this in normal flow; the narrow layouts define their own wrapping. */
@media (min-width: 861px) ,  (width > 860px) {
  .constructor-header { margin-bottom: 59px; }
  .constructor-header .section-title {
    flex-basis: 369px;
    min-width: 0;
    margin: 0;
    line-height: 58px;
  }
  .constructor-subtitle { flex: 0 0 617px; max-width: none; line-height: 14px; }
  .constructor-subtitle > span { width: 542px; }
}

.subtitle-star {
  width: 22px;
  height: 22px;
  flex-shrink: 0;

  background-color: #B01E2B;
  -webkit-mask: url("img/star.svg") center / contain no-repeat;
  mask: url("img/star.svg") center / contain no-repeat;
}

/* В макете нет общей подложки под обе колонки: слева каждый размер —
   своя отдельная плашка на фоне страницы, справа — своя цельная плашка
   под вкусами. Раньше .constructor-card оборачивала обе колонки одним
   фоном — убрано, остался только раскладочный контейнер. */
.constructor-card {
  display: flex;
  gap: 16px;
}

.constructor-left {
  position: relative;
  z-index: 3;
  width: 228px;
  flex-shrink: 0;
}

/* Аккордеон-тоггл для шага 1 — виден только на мобиле */
.constructor-step-toggle {
  display: none;
}

.constructor-step-two,
.constructor-step-three,
.cert-subtitle-mobile {
  display: none;
}

.constructor-actions-box #constructor-add { order: 1; }
.constructor-actions-box > a { order: 2; }

/* #32 (раунд 4) — базовая (десктопная) подпись суммы у кнопки «добавить в
   корзину»: span скрыт, пока не собран хотя бы один набор (см. JS
   updateAddSum в index.php). Точное расположение «пилюли» с суммой и
   иконкой задаётся отдельно для телефона (css/phone/pages/home.css). */
.constructor-add__sum {
  margin: 0;
  font-weight: 600;
}
.constructor-add__sum[hidden] { display: none; }
.constructor-add__price {
  display: inline-flex;
  flex: 0 0 118px;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 118px;
  height: 36px;
  padding-left: 18px;
  border: 1px solid #FFF6EB;
  border-radius: 20px;
}
.constructor-add__price .constructor-add__sum { font-size: 14px; white-space: nowrap; }
.constructor-add__price .constructor-add__icon {
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: url("img/constructor-cart-icon.svg") center / contain no-repeat;
}
.constructor-add__sum[hidden] + .constructor-add__icon { margin-left: auto; }

.constructor-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 228px;
  height: 46px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-body);
  cursor: pointer;
  transition: 0.2s ease;
}

.tab-btn:hover { transform: scale(1.02); }
.tab-btn:focus { outline: none; }
.tab-btn:focus-visible { outline: 2px solid #B01E2B; outline-offset: 2px; }

.tab-btn.active .tab-plus {
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  color: #FFF6EB;
}

.tab-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.tab-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 46px;
  margin-right: -18px;
  border-radius: 80px;
  background: linear-gradient(106.75deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 4px 4px 12px rgba(214, 191, 167, 0.45), inset -4px -4px 10px #FFFFFF, inset 2px 2px 11px rgba(231, 205, 177, 0.9);
  font-size: 12px;
  font-weight: 500;
  color: #401C0C;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.tab-plus {
  flex-shrink: 0;
  position: relative;
  z-index: 2;

  width: 36px;
  height: 36px;

  border-radius: 50%;

  background: linear-gradient(156.14deg, #FFF8F2 15.59%, #F8EADC 90.2%);
  box-shadow: 2px 2px 6px rgba(165, 140, 114, 0.25), -6px -6px 10px #FFFFFF, 4px 4px 18px rgba(214, 191, 167, 0.9);
  color: #B01E2B;

  /* "+" нарисован двумя полосками, а не текстовым глифом — у текстового
     "+" центр тяжести шрифта не совпадает с геометрическим центром круга,
     из-за чего значок выглядит смещённым (жалоба из правок клиента) */
  font-size: 0;
  transition: 0.2s ease;
}
.tab-plus::before,
.tab-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.tab-plus::before { width: 8px; height: 1px; }
.tab-plus::after   { width: 1px; height: 8px; }

/* Wrapper: single drop-shadow wraps the WHOLE folder-tab silhouette as one */
.constructor-content-wrap {
  position: relative;
  flex: 0 0 796px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* drop-shadow follows combined outline of tab + body = looks like one shape */
  filter: drop-shadow(0 8px 28px rgba(64, 28, 12, 0.06));
}

/* "Folder tab" backdrop behind whichever pill is currently active —
   in Figma (188:3896 etc.) this shape is boolean-unioned with the
   content box below and its x/width track the ACTIVE tab, not a
   fixed position. --tab-backdrop-left/width are set by JS to the
   active tab's own rect (see renderSetTabs()); default values match
   the empty "тут будет ваш набор" placeholder pill. */
.constructor-content-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: var(--tab-backdrop-top, -20px);
  left: var(--tab-backdrop-left, 0px);
  width: var(--tab-backdrop-width, 298px);
  height: 106px;
  border-radius: 32px 32px 0 0;
  /* Эталон 02-constructor.png: панель — ровный бежевый #F8EDE1,
     заметно темнее фона страницы (#FFF6EB). Раньше здесь стоял
     градиент, а у тела — полупрозрачный белый, из-за чего между
     вкладкой и телом была видна ступенька по тону. */
  background: #F8EDE1;
  pointer-events: none;
  /* Без перехода по left/width: подложка привязана к активной вкладке, и
     при появлении первой вкладки её ширина едет с дефолтных 298px (ширина
     плашки «тут будет ваш набор») к 265px — это читалось как «вкладка
     уменьшается». Переключение между вкладками теперь тоже мгновенное,
     как на статичных кадрах макета. */
}

/* The pill tab sits ABOVE the content box, flush left — no gap, no own shadow */
.constructor-content-header {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-left: 34px;
  margin-bottom: 0;
}

/* Main grid/content box — folder-tab shape */
.constructor-content {
  flex: 1;
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 38px 26px 31px 28px;

  /* тот же цвет, что у вкладки — вместе читаются одной фигурой */
  background: #F8EDE1;
  border-radius: 0 44px 28px 28px;
  /* only inset highlight, no outer shadow (drop-shadow on wrap handles it) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.constructor-selected-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 195px;
  height: 46px;
  padding: 0 9px;
  background: linear-gradient(105.61deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  border-radius: 80px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #401C0C;
  /* В эталоне тень едва различима: сразу за краем плашки уже цвет панели.
     Тяжёлое внутреннее кольцо давало грязный ободок. */
  box-shadow: 0 2px 6px rgba(64, 28, 12, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: background 0.35s ease, color 0.35s ease;
}

.cs-placeholder {
  color: rgba(64, 28, 12, 0.45);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.constructor-selected-block.full {
  background: #B01E2B;
  color: #FFF;
}

.cs-separator {
  color: rgba(64, 28, 12, 0.3);
  font-size: 18px;
  line-height: 1;
}

.cs-label {
  transition: inherit;
}

.constructor-selected-block.full .cs-label {
  color: #fff;
}

.cs-count {
  font-weight: 700;
  color: #B01E2B;
  transition: inherit;
}

.constructor-selected-block.full .cs-count {
  color: #FFF;
}

.constructor-selected-block.full .cs-separator {
  color: rgba(255,255,255,0.4);
}

.constructor-set-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.set-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 4px 4px 24px rgba(214, 191, 167, 0.45), inset -4px -4px 10px #FFFFFF, inset 2px 2px 11px rgba(231, 205, 177, 0.9);
  border-radius: 80px;
  cursor: pointer;
  transition: 0.2s ease;
}

.set-tab.active {
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
}

.set-tab__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  color: #FFF6EB;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.set-tab.active .set-tab__num {
  background: linear-gradient(156.14deg, #FFF8F2 15.59%, #F8EADC 90.2%);
  color: #B01E2B;
}

.set-tab__text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #401C0C;
  white-space: nowrap;
}

.set-tab.active .set-tab__text {
  color: #FFF6EB;
}

.set-tab__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(156.14deg, #FFF8F2 15.59%, #F8EADC 90.2%);
  color: #B01E2B;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.set-tab__close:hover {
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  color: #FFF6EB;
}
.set-tab__close:focus,
.set-tab:focus { outline: none; }
.set-tab__close:focus-visible,
.set-tab:focus-visible { outline: 2px solid #B01E2B; outline-offset: 2px; }

.set-tab__close svg { width: 12px; height: 12px; }

.constructor-set-counter {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(64, 28, 12, 0.8);
  margin: 12px 0 0;
}

.macaron-grid {
  display: grid;
  grid-template-columns: repeat(3, 240px);
  gap: 10px;
  width: 742px;
  margin-bottom: 0;
}

/* Collapsible state: Hide flavors after the 12th */
.macaron-grid.collapsed .macaron-item:nth-child(n+13) {
  display: none;
}

.macaron-grid.collapsed .macaron-item:nth-child(n+10):nth-child(-n+12) {
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.55) 48%, transparent 92%);
  mask-image: linear-gradient(#000 0%, rgba(0,0,0,.55) 48%, transparent 92%);
}

.macaron-item {
  position: relative;
  width: 240px;
  height: 174px;
  overflow: hidden;
  text-align: center;
  padding: 0;
  border-radius: 14px;
}

.macaron-item:hover {
  background: rgba(255, 255, 255, 0.45);
}

.macaron-name {
  position: absolute;
  top: 7px;
  left: 12px;
  width: 216px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: #401C0C;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Реальное фото вкуса — пара макарон уже в одном PNG (прозрачный фон) */
.macaron-photo {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 240px;
  height: 174px;
  display: block;
  margin: 0;
  /* Keep the photo and its SVG shadow cached when counters change. */
  will-change: transform;
}

.macaron-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 91px;
  left: 16px;
  width: 208px;
  height: 18px;
  border-radius: 50%;
  background: rgba(104, 57, 25, .24);
  filter: blur(10px);
}

/* Клиент попросил единый размер фото для всех вкусов вместо разброса
   по фактическим пропорциям каждого кадра (было по замерам Figma
   188:1972 — там у каждого вкуса своя рамка). object-fit: contain
   сохраняет пропорции конкретного фото внутри общей рамки, поэтому
   искажений нет — просто у всех теперь одна и та же зона. */
/* Desktop uses the exact two-lobe Figma shadow (node 188:1984). Keep the
   compact ellipse above as the tablet/mobile fallback: those layouts assign
   their own smaller shadow bounds. */
@media (min-width: 861px) ,  (width > 860px) {
  .macaron-photo::after {
    top: 78px;
    left: 0;
    width: 240px;
    height: 43px;
    border-radius: 0;
    background: url("img/constructor-macaron-shadow.svg") 0 0 / 100% 100% no-repeat;
    filter: none;
  }
}

.macaron-photo img {
  position: absolute;
  z-index: 1;
  left: 20px;
  top: 38px;
  width: 200px;
  height: 64px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: none;
}

/* Плейсхолдер для вкусов без экспортированного фото */
.macaron-photo--placeholder {
  display: block;
  width: 72%;
  margin: 0 auto 14px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg,
      rgba(176, 30, 43, 0.06) 0 9px,
      rgba(176, 30, 43, 0.12) 9px 18px);
  border: 1px dashed rgba(176, 30, 43, 0.35);
}

.macaron-controls {
  position: absolute;
  top: 120px;
  left: 68px;
  width: 104px;
  display: flex;
  justify-content: center;
  height: 37px;
}

.qty-pill {
  position: relative;
  height: 100%;
  width: 103px;
  background: transparent;
  padding: 0;
}

.qty-pill::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 21px;
  width: 61px;
  height: 37px;
  border-radius: 80px;
  background: linear-gradient(96.2deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 4px 4px 12px rgba(214, 191, 167, .45), inset -4px -4px 10px #fff, inset 2px 2px 11px rgba(231, 205, 177, .9);
}

.qty-btn {
  position: absolute;
  z-index: 2;
  top: 4.5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #B01E2B;
  border: none;
  color: #FFF6EB;
  cursor: pointer;
  /* тот же приём, что и у .tab-plus: рисуем +/- полосками, а не текстом,
     чтобы значок был по-настоящему по центру круга */
  font-size: 0;
  transition: 0.2s ease;
  box-shadow: 2px 2px 6px rgba(165, 140, 114, .25), -6px -6px 10px #fff, 4px 4px 18px rgba(214, 191, 167, .9);
}
.qty-btn.minus { left: 0; }
.qty-btn.plus { left: 75px; }
.qty-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.qty-btn.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 7px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.qty-btn:hover {
  background: #DA1B2C;
}
.qty-btn:focus { outline: none; }
.qty-btn:focus-visible { outline: 2px solid #B01E2B; outline-offset: 2px; }

/* #25 (раунд 4) — когда набор уже собран (выбрано = count), плюсики
   вкусов не должны выглядеть кликабельными: то же решение, что и у
   .tab-btn.is-disabled (main.style.css:1682) — dимминг + отключение
   кликов, а не просто визуальный сброс по hover. Минус остаётся активным,
   чтобы можно было убрать вкус и освободить место. */
.qty-btn.plus:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.qty-btn.plus:disabled:hover { background: #B01E2B; }

.qty-val {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 61px;
  height: 37px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #B01E2B;
}

/* Ряд с кнопкой заезжает на грид отрицательным margin (на мобилке -97px,
   так в макете). Без своего контекста наложения он проигрывал карточкам:
   у .macaron-item есть position:relative и mask-image, а маска создаёт
   стекинг-контекст — то есть позиционированные карточки рисовались ПОВЕРХ
   статичной кнопки, и макароны с counter'ами лезли на «показать все вкусы».
   Поднимаем ряд над гридом. */
.constructor-expand-row {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  margin: -3px 0 0;
}

/* Тот же случай ниже по потоку: .constructor-content имеет z-index:1, а блок
   с кнопками идёт следующим и статичен — «посмотреть состав всех вкусов»
   оказывался под нижним рядом карточек. */
.constructor-actions-box {
  position: relative;
  z-index: 2;
}

/* Раскрытый грид: «скрыть вкусы» прижимаем к правому краю блока (на планшете
   так и было — см. правило с right: 32px ниже). Выравнивание связано
   с состоянием самой кнопки.
   Отступ от края плашки — по тексту «скрыть вкусы» в Figma (188:2688,
   узел 207:8276: x=993 y=2130 w=93 h=15) относительно тела-подложки
   188:2689 (x=324 w=796, правый край 1120): 1120-(993+93)=34px до правого
   края. .constructor-content уже даёт 26px padding-right, поэтому здесь
   добавляем недостающие 8px, а не трогаем общий паддинг (он общий с
   гридом вкусов). */
@media (min-width: 861px) ,  (width > 860px) {
  .constructor-expand-row:has(.constructor-toggle-link) {
    justify-content: flex-end;
    padding-right: 8px;
    margin-top: -31px;
  }
}

.constructor-expand-row .btn {
  width: 254px;
  height: 46px;
}

.constructor-toggle-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #401C0C;
  opacity: 0.4;
  transition: 0.2s ease;
}

.constructor-toggle-link:hover {
  opacity: 0.7;
}

/* Отступ до плашки — по Figma (188:2688): кнопки «добавить в корзину» /
   «посмотреть состав» лежат в фрейме 188:2762 (y=2194), тело-подложка
   188:2689 кончается на y=209+1967=2176 → зазор 18px. Раньше было 12px
   ("на глаз" ближе к плашке, чем в макете). */
.constructor-actions-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  margin-top: 18px;
}

/* #30 (раунд 4) — «посмотреть состав всех вкусов» в макете (узел 208:6568,
   моб. секция «2») не плоская вторичная пилюля, а тот же вогнутый неоморф,
   что и у плашки набора (.constructor-selected-block): те же три тени
   (внешняя 4/4/24 rgba(214,191,167,.45), тёмное внутреннее кольцо
   2/2/11 rgba(231,205,177,.9), светлое встречное inset -4/-4/10 белым) —
   .btn--secondary снаружи (фон/внешняя тень) уже почти совпадает, но без
   вогнутых inset-теней. Правило скопом к конструктору, глобальный
   .btn--secondary не трогаем. */
.constructor-actions-box .btn--secondary {
  box-shadow:
    4px 4px 24px rgba(214, 191, 167, .45),
    inset 2px 2px 11px rgba(231, 205, 177, .9),
    inset -4px -4px 10px rgba(255, 255, 255, 1);
}

.constructor [hidden] {
  display: none !important;
}
/* «Добавить в корзину» и «Посмотреть состав» — во всю ширину плашки
   вкусов, а не ограничены общим max-width:360px у .btn--wide */
.constructor-actions-box .btn {
  width: 100%;
  max-width: none;
}

.constructor-sticky-spacer:not([hidden]) { height: 86px; }
.constructor-sticky-spacer[hidden] { display: none !important; }
.constructor-sticky-panel {
  position: fixed;
  z-index: 80;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 86px;
  padding: 20px;
  border-radius: 23px 23px 0 0;
  background: linear-gradient(119deg, #FFF6ED 15%, #F5E8DB 100%);
  box-shadow: 0 -4px 24px rgba(214, 191, 167, .45), inset 2px 2px 11px rgba(231, 205, 177, .9), inset -4px -4px 10px #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
.constructor-sticky-panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* WebKit can keep the disabled CTA's inherited visibility hidden after re-add. */
.constructor-sticky-panel.is-visible #constructor-add {
  visibility: visible;
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .constructor-sticky-panel,
  .constructor-sticky-panel #constructor-add,
  .constructor-sticky-panel.is-visible #constructor-add { transition: none; }
}
.constructor-sticky-panel__selection {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}
.constructor-sticky-box {
  display: flex;
  align-items: center;
  flex: 0 1 240px;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: linear-gradient(144deg,#FFF6ED 13%,#F5E8DB 100%);
  box-shadow: 4px 4px 24px rgba(214,191,167,.45), inset 2px 2px 11px rgba(231,205,177,.9), inset -4px -4px 10px #fff;
  color: #401C0C;
  font: 500 12px/1.2 var(--font-body);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.constructor-sticky-remove {
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #B01E2B;
  color: #FFF6EB;
  cursor: pointer;
}
.constructor-sticky-remove svg { width: 14px; height: 14px; }
.constructor-sticky-remove:focus-visible { outline: 2px solid #401C0C; outline-offset: 3px; }
.constructor-sticky-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  color: #401C0C;
  font: 400 12px/1.25 var(--font-body);
  white-space: nowrap;
}
.constructor-sticky-counter__label { text-transform: uppercase; }
.constructor-sticky-counter__value { white-space: nowrap; }
.constructor-sticky-panel #constructor-add {
  display: inline-flex;
  /* Было min(370px, 44vw). Внутри зум-полос vw считается от сырого окна, а
     не от канвы, и кнопка ужималась тем сильнее, чем уже экран. На всех
     трёх канвах (1200/860/430) второй аргумент всё равно больше 370, а на
     телефоне ширину перебивает блок ниже, так что остаётся просто 370. */
  flex: 0 0 370px;
  align-items: center;
  justify-content: flex-start;
  width: 370px;
  max-width: none;
  min-width: 280px;
  height: 46px;
  min-height: 46px;
  padding: 0 16px;
}
.constructor-sticky-panel .constructor-add__label { flex: 1 1 auto; }
.constructor-sticky-panel[aria-hidden="true"] { pointer-events: none; }
.constructor-need-box:not([open]) { display: none; }
.constructor-need-box[open] {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: safe center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow: auto;
  border: 0;
  background: transparent;
  color: #401C0C;
}
.constructor-need-box::backdrop { background: rgba(0,0,0,.4); backdrop-filter: blur(4px); }
.constructor-need-box__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(680px,100%);
  min-height: 220px;
  padding: 32px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 40px;
  background: linear-gradient(144deg,#FFF6ED 13%,#F5E8DB 100%);
  box-shadow: 4px 4px 24px rgba(214,191,167,.45), inset 2px 2px 11px rgba(231,205,177,.9), inset -4px -4px 10px #fff;
  text-align: center;
}
.constructor-need-box__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #B01E2B;
  cursor: pointer;
}
.constructor-need-box__close svg { width: 20px; height: 20px; }
.constructor-need-box__close:focus-visible { outline: 2px solid #401C0C; outline-offset: 2px; }
.constructor-need-box__title { font: 100 32px/1.1 var(--font-display); letter-spacing: .06em; }
.constructor-need-box__description { max-width: 520px; font: 400 12px/1.4 var(--font-body); }

/* Столбиком липкая панель складывается только на телефоне. Раньше граница
   стояла на 716px и делила планшетную полосу пополам: на 750px панель была
   в строку, на 600px — в столбик. С автоскейлом (правки 17.10, п. 6) полоса
   431–860 показывает один макет 860, поэтому порог сдвинут на 430. */
@media (max-width: 430px) {
  .constructor-sticky-spacer:not([hidden]) { height: 154px; }
  .constructor-sticky-panel {
    min-height: 154px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    padding: 20px;
  }
  .constructor-sticky-panel__selection { flex: 0 0 44px; width: 100%; gap: 6px; }
  .constructor-sticky-box { flex: 0 0 230px; width: 230px; height: 44px; padding-inline: 12px; }
  .constructor-sticky-counter {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
    white-space: normal;
    line-height: 1.15;
  }
  .constructor-sticky-panel #constructor-add {
    flex: 0 0 56px;
    width: 100%;
    min-width: 0;
    height: 56px;
    min-height: 56px;
    padding: 10px;
  }
}


@media (max-width: 430px) {
  .constructor-need-box[open] { padding: 0; }
  .constructor-need-box__card { width: 100%; min-height: 320px; padding: 32px 40px; border-radius: 32px; gap: 20px; }
  .constructor-need-box__title { font-size: 32px; }
  .constructor-need-box__title { white-space: nowrap; }
  .constructor-need-box__description { font-size: 14px; line-height: 1.45; }
}

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .constructor-sticky-counter {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    white-space: normal;
    line-height: 1.15;
  }
}

.constructor-actions-box + .constructor-hint {
  margin-top: 20px;
}

/* One decorative surface for the folder, not a second painted rectangle
   over the export. Nine-slicing preserves the Figma corners/shadows while
   the content stays in flow and the folder can grow with extra set tabs. */
@media (min-width: 861px) ,  (width > 860px) {
  body.home .constructor-content-wrap { filter: none; }
  body.home .constructor-content-wrap::before { content: none; }
  body.home .constructor-content {
    background: none;
    box-shadow: none;
  }
  body.home .constructor-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: var(--folder-surface-top, -118px);
    bottom: -42px;
    left: -34px;
    right: -42px;
    border-image: url("img/constructor-union-expanded.svg") 180 42 80 34 fill / 180px 42px 80px 34px / 0 stretch;
    /* Keep the static shadow surface out of counter/hover repaints. */
    will-change: transform;
    pointer-events: none;
  }
  body.home .constructor-content:has(.macaron-grid.collapsed)::before {
    min-height: 2043px;
    border-image-source: url("img/constructor-union-collapsed.svg");
    mask-image: linear-gradient(#000 669px, transparent 833px);
  }
  body.home .macaron-grid.collapsed {
    mask-image: linear-gradient(#000 512px, transparent 676px);
  }
  body.home .macaron-grid.collapsed .macaron-item { mask-image: none; }
  body.home .constructor-selected-block {
    box-shadow: 4px 4px 12px rgba(214,191,167,.45), inset -4px -4px 10px #fff, inset 2px 2px 11px rgba(231,205,177,.9);
  }
  body.home .cs-placeholder { font-weight: 500; color: rgba(64,28,12,.4); }
  body.home .macaron-name { letter-spacing: 1.08px; line-height: normal; }
  /* Transparent 3× Figma groups include the original crop and shadows.
     Only the desktop art switches; narrow layouts keep their own assets. */
  body.home .macaron-photo::after { content: none; }
  body.home .macaron-photo img {
    left: var(--photo-x); top: var(--photo-y);
    width: var(--photo-w); height: var(--photo-h);
    object-fit: fill;
  }
  body.home .macaron-item:nth-child(1) { --photo-x: 0px; --photo-y: 43px; --photo-w: 240px; --photo-h: 78px; }
  body.home .macaron-item:nth-child(2) { --photo-x: 7px; --photo-y: 44px; --photo-w: 231px; --photo-h: 78px; }
  body.home .macaron-item:nth-child(3) { --photo-x: 9px; --photo-y: 49px; --photo-w: 230px; --photo-h: 72px; }
  body.home .macaron-item:nth-child(4) { --photo-x: 0px; --photo-y: 38px; --photo-w: 240px; --photo-h: 86.08984375px; }
  body.home .macaron-item:nth-child(5) { --photo-x: 6px; --photo-y: 42.0009765625px; --photo-w: 223px; --photo-h: 81.9990234375px; }
  body.home .macaron-item:nth-child(6) { --photo-x: 5px; --photo-y: 44.5px; --photo-w: 234px; --photo-h: 79.5px; }
  body.home .macaron-item:nth-child(7) { --photo-x: 13px; --photo-y: 45px; --photo-w: 226px; --photo-h: 79px; }
  body.home .macaron-item:nth-child(8) { --photo-x: 12px; --photo-y: 45px; --photo-w: 223px; --photo-h: 77px; }
  body.home .macaron-item:nth-child(9) { --photo-x: 7.9619140625px; --photo-y: 40.359375px; --photo-w: 226.0390625px; --photo-h: 80.3203125px; }
  body.home .macaron-item:nth-child(10) { --photo-x: 2.666015625px; --photo-y: 43.94921875px; --photo-w: 237.333984375px; --photo-h: 79.05078125px; }
  body.home .macaron-item:nth-child(11) { --photo-x: 14px; --photo-y: 41px; --photo-w: 203px; --photo-h: 83px; }
  body.home .macaron-item:nth-child(12) { --photo-x: 3px; --photo-y: 50px; --photo-w: 234px; --photo-h: 73px; }
  body.home .macaron-item:nth-child(13) { --photo-x: 11px; --photo-y: 42px; --photo-w: 229px; --photo-h: 84px; }
  body.home .macaron-item:nth-child(14) { --photo-x: 7.44921875px; --photo-y: 38px; --photo-w: 227.3878936767578px; --photo-h: 85.22265625px; }
  body.home .macaron-item:nth-child(15) { --photo-x: 4px; --photo-y: 43px; --photo-w: 234px; --photo-h: 80px; }
  body.home .macaron-item:nth-child(16) { --photo-x: 16px; --photo-y: 48px; --photo-w: 220px; --photo-h: 77px; }
  body.home .macaron-item:nth-child(17) { --photo-x: 10.763671875px; --photo-y: 38.4375px; --photo-w: 223px; --photo-h: 84.5625px; }
  body.home .macaron-item:nth-child(18) { --photo-x: 2px; --photo-y: 44px; --photo-w: 234px; --photo-h: 74px; }
  body.home .macaron-item:nth-child(19) { --photo-x: 4px; --photo-y: 47px; --photo-w: 236px; --photo-h: 76px; }
  body.home .macaron-item:nth-child(20) { --photo-x: 10px; --photo-y: 44px; --photo-w: 210px; --photo-h: 84px; }
  body.home .macaron-item:nth-child(21) { --photo-x: 3px; --photo-y: 47px; --photo-w: 234px; --photo-h: 77px; }
  body.home .macaron-item:nth-child(22) { --photo-x: 16px; --photo-y: 46px; --photo-w: 224px; --photo-h: 80px; }
  body.home .macaron-item:nth-child(23) { --photo-x: 12px; --photo-y: 45px; --photo-w: 223px; --photo-h: 77.328125px; }
  body.home .macaron-item:nth-child(24) { --photo-x: 5px; --photo-y: 39px; --photo-w: 234px; --photo-h: 84px; }
  body.home .macaron-item:nth-child(25) { --photo-x: 4px; --photo-y: 48px; --photo-w: 236px; --photo-h: 75px; }
  body.home .macaron-item:nth-child(26) { --photo-x: 13px; --photo-y: 53px; --photo-w: 203px; --photo-h: 72px; }
  body.home .macaron-item:nth-child(27) { --photo-x: 2px; --photo-y: 46px; --photo-w: 234px; --photo-h: 77px; }
  body.home .macaron-item:nth-child(28) { --photo-x: 18px; --photo-y: 52px; --photo-w: 220px; --photo-h: 74px; }


  /* Выступ («вкладка») папки должен стоять под АКТИВНОЙ вкладкой набора —
     так во всех трёх эталонах из «PAOLA_Сайт_Для верстки(1)»: правый край
     выступа там на 588 / 856 / 1120 абсолютных, то есть 298 / 566 / 830 в
     координатах канвы SVG. В раскрытом состоянии папка — цельный SVG, и
     выступ был зашит в него на позиции первой вкладки, поэтому при
     активной 2-й или 3-й активная вкладка и счётчик оказывались вне
     папки. Варианты -2 и -3 — тот же файл с тем же градиентом и теми же
     четырьмя тенями, отличается только контур: выступ сдвинут на шаг
     вкладок (266.5px), а у третьей он совпадает с правым краем тела —
     ровно как выступ первой совпадает с левым. */
  body.home .constructor-content-wrap:has(.set-tab:nth-child(3n + 2).active) .constructor-content::before {
    border-image-source: url("img/constructor-union-expanded-2.svg");
  }

  body.home .constructor-content-wrap:has(.set-tab:nth-child(3n).active) .constructor-content::before {
    border-image-source: url("img/constructor-union-expanded-3.svg");
  }

}

/* Each Figma export keeps its native canvas; the matrix aligns both dark cores
   with the measured contact points on that flavor photo. */
@media (min-width: 861px), (width > 860px) {
  body.home .macaron-item { overflow: visible; }

  body.home .macaron-item .macaron-photo::after {
    content: "";
    top: var(--shadow-top);
    left: var(--shadow-left);
    width: var(--shadow-native-width);
    height: var(--shadow-native-height);
    background-image: var(--shadow-image);
    background-position: 0 0;
    background-size: auto auto;
    background-repeat: no-repeat;
    filter: none;
    transform: matrix(var(--shadow-x-scale), var(--shadow-y-shear), 0, .5, 0, 0);
    transform-origin: 0 0;
  }

  body.home .macaron-item .macaron-photo img {
    -webkit-filter: url(#paola-remove-baked-shadow);
    filter: url(#paola-remove-baked-shadow);
  }

  body.home .macaron-item:nth-child(1) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-01.svg");
    --shadow-left: -1.666666667px; --shadow-top: 92.909370200px;
    --shadow-native-width: 240px; --shadow-native-height: 43px;
    --shadow-x-scale: 1.000000000; --shadow-y-shear: -0.009216590;
  }
  body.home .macaron-item:nth-child(2) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-02.svg");
    --shadow-left: 3.844221106px; --shadow-top: 92.104690117px;
    --shadow-native-width: 231px; --shadow-native-height: 44px;
    --shadow-x-scale: 1.031825796; --shadow-y-shear: -0.001675042;
  }
  body.home .macaron-item:nth-child(3) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-03.svg");
    --shadow-left: 5.698815567px; --shadow-top: 92.121827411px;
    --shadow-native-width: 230px; --shadow-native-height: 43px;
    --shadow-x-scale: 1.010152284; --shadow-y-shear: 0.003384095;
  }
  body.home .macaron-item:nth-child(4) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-04.svg");
    --shadow-left: 5.295964375px; --shadow-top: 93.306054816px;
    --shadow-native-width: 239px; --shadow-native-height: 44px;
    --shadow-x-scale: 0.963129620; --shadow-y-shear: -0.004850533;
  }
  body.home .macaron-item:nth-child(5) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-05.svg");
    --shadow-left: 2.991864591px; --shadow-top: 90.417345702px;
    --shadow-native-width: 223px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.067344801; --shadow-y-shear: 0.012089728;
  }
  body.home .macaron-item:nth-child(6) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-06.svg");
    --shadow-left: 1.894070824px; --shadow-top: 94.751556281px;
    --shadow-native-width: 234px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.022247168; --shadow-y-shear: -0.011388917;
  }
  body.home .macaron-item:nth-child(7) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-07.svg");
    --shadow-left: 23.916279070px; --shadow-top: 91.576744186px;
    --shadow-native-width: 226px; --shadow-native-height: 46px;
    --shadow-x-scale: 0.941085271; --shadow-y-shear: -0.001550388;
  }
  body.home .macaron-item:nth-child(8) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-08.svg");
    --shadow-left: 16.632500000px; --shadow-top: 91.849166667px;
    --shadow-native-width: 223px; --shadow-native-height: 46px;
    --shadow-x-scale: 0.955000000; --shadow-y-shear: -0.011666667;
  }
  body.home .macaron-item:nth-child(9) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-09.svg");
    --shadow-left: 2.989329183px; --shadow-top: 91.206099359px;
    --shadow-native-width: 226.039px; --shadow-native-height: 45.234px;
    --shadow-x-scale: 1.035076789; --shadow-y-shear: -0.013508343;
  }
  body.home .macaron-item:nth-child(10) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-10.svg");
    --shadow-left: 3.485937220px; --shadow-top: 92.781177143px;
    --shadow-native-width: 239px; --shadow-native-height: 44px;
    --shadow-x-scale: 1.007779995; --shadow-y-shear: -0.008083752;
  }
  body.home .macaron-item:nth-child(11) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-11.svg");
    --shadow-left: 14.410681400px; --shadow-top: 90.824125230px;
    --shadow-native-width: 203px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.020257827; --shadow-y-shear: 0.005524862;
  }
  body.home .macaron-item:nth-child(12) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-12.svg");
    --shadow-left: 3.833333333px; --shadow-top: 90.590750436px;
    --shadow-native-width: 234px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.000000000; --shadow-y-shear: 0.003490401;
  }
  body.home .macaron-item:nth-child(13) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-13.svg");
    --shadow-left: 22.712403101px; --shadow-top: 93.883720930px;
    --shadow-native-width: 226px; --shadow-native-height: 46px;
    --shadow-x-scale: 0.951937984; --shadow-y-shear: -0.007751938;
  }
  body.home .macaron-item:nth-child(14) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-14.svg");
    --shadow-left: 10.466671252px; --shadow-top: 91.123548381px;
    --shadow-native-width: 218.846px; --shadow-native-height: 45.5791px;
    --shadow-x-scale: 1.015125593; --shadow-y-shear: -0.001597186;
  }
  body.home .macaron-item:nth-child(15) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-15.svg");
    --shadow-left: 1.829268293px; --shadow-top: 90.093495935px;
    --shadow-native-width: 234px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.037398374; --shadow-y-shear: 0.006504065;
  }
  body.home .macaron-item:nth-child(16) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-16.svg");
    --shadow-left: 25.695652174px; --shadow-top: 94.528985507px;
    --shadow-native-width: 220px; --shadow-native-height: 47px;
    --shadow-x-scale: 0.938808374; --shadow-y-shear: -0.024154589;
  }
  body.home .macaron-item:nth-child(17) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-17.svg");
    --shadow-left: 8.136756890px; --shadow-top: 91.676993110px;
    --shadow-native-width: 223px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.020409695; --shadow-y-shear: -0.008316929;
  }
  body.home .macaron-item:nth-child(18) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-18.svg");
    --shadow-left: 2.947154472px; --shadow-top: 92.829268293px;
    --shadow-native-width: 234px; --shadow-native-height: 44px;
    --shadow-x-scale: 1.019512195; --shadow-y-shear: -0.029268293;
  }
  body.home .macaron-item:nth-child(19) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-19.svg");
    --shadow-left: -1.267651888px; --shadow-top: 93.151067323px;
    --shadow-native-width: 239px; --shadow-native-height: 44px;
    --shadow-x-scale: 1.055829228; --shadow-y-shear: -0.004926108;
  }
  body.home .macaron-item:nth-child(20) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-20.svg");
    --shadow-left: 6.259668508px; --shadow-top: 93.314917127px;
    --shadow-native-width: 203px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.044198895; --shadow-y-shear: 0.011049724;
  }
  body.home .macaron-item:nth-child(21) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-21.svg");
    --shadow-left: 7.743455497px; --shadow-top: 92.166666667px;
    --shadow-native-width: 234px; --shadow-native-height: 46px;
    --shadow-x-scale: 0.977312391; --shadow-y-shear: 0.000000000;
  }
  body.home .macaron-item:nth-child(22) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-22.svg");
    --shadow-left: 20.855500821px; --shadow-top: 93.922824302px;
    --shadow-native-width: 226px; --shadow-native-height: 46px;
    --shadow-x-scale: 0.970443350; --shadow-y-shear: -0.008210181;
  }
  body.home .macaron-item:nth-child(23) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-23.svg");
    --shadow-left: 19.894478213px; --shadow-top: 92.735162985px;
    --shadow-native-width: 223px; --shadow-native-height: 46px;
    --shadow-x-scale: 0.924937702; --shadow-y-shear: -0.018332435;
  }
  body.home .macaron-item:nth-child(24) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-24.svg");
    --shadow-left: 3.548780488px; --shadow-top: 90.093495935px;
    --shadow-native-width: 234px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.017886179; --shadow-y-shear: 0.006504065;
  }
  body.home .macaron-item:nth-child(25) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-25.svg");
    --shadow-left: 1.643216080px; --shadow-top: 92.505862647px;
    --shadow-native-width: 239px; --shadow-native-height: 44px;
    --shadow-x-scale: 1.020100503; --shadow-y-shear: -0.005025126;
  }
  body.home .macaron-item:nth-child(26) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-26.svg");
    --shadow-left: 14.527624309px; --shadow-top: 92.280847145px;
    --shadow-native-width: 203px; --shadow-native-height: 46px;
    --shadow-x-scale: 0.983425414; --shadow-y-shear: -0.001841621;
  }
  body.home .macaron-item:nth-child(27) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-27.svg");
    --shadow-left: 1.347294939px; --shadow-top: 93.258289703px;
    --shadow-native-width: 234px; --shadow-native-height: 46px;
    --shadow-x-scale: 1.026178010; --shadow-y-shear: -0.015706806;
  }
  body.home .macaron-item:nth-child(28) {
    --shadow-image: url("img/constructor/flavor-shadows/flavor-28.svg");
    --shadow-left: 23.115447154px; --shadow-top: 94.080487805px;
    --shadow-native-width: 220px; --shadow-native-height: 45px;
    --shadow-x-scale: 0.970731707; --shadow-y-shear: -0.001626016;
  }
}

/* Selected set + flavour counter: exact desktop component 188:3247
   (children 188:3251, 188:3254, 188:3258 and 188:3261). */
@media (min-width: 861px) ,  (width > 860px) {
  /* Ширина и шаг вкладок замерены по трём экспортам Figma из
     «PAOLA_Сайт_Для верстки(1)» (1200px, активна 1-я / 2-я / 3-я):
     активная вкладка стоит на x = 340 / 606.5 / 873 при неизменной
     ширине 231px, то есть шаг 266.5px и зазор 35.5px. Полоса вкладок
     занимает 3×231 + 2×35.5 = 764px и вписана во врап (796px) с
     симметричными отступами по 16px. Раньше стояло gap:12 и ширина
     717px — вкладки жались друг к другу. */
  body.home .constructor-content-header:has(.constructor-set-tabs:not([hidden])) {
    top: 0;
    width: 764px;
    margin-left: 16px;
  }

  body.home .constructor-set-tabs {
    gap: 35.5px;
    /* 3×231 + 2×35.5 = ровно 764px — при ≤3 наборах вкладки стоят
       в один ряд впритык к контейнеру. При 4+ наборах (лимит снят)
       лишние вкладки переносятся на новую строку внутри того же
       764px, а не уезжают за границу экрана. */
    flex-wrap: wrap;
  }

  body.home .set-tab {
    position: relative;
    flex: 0 0 231px;
    width: 231px;
    height: 46px;
    padding: 0;
    gap: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.home .set-tab.active {
    background: transparent;
    box-shadow: none;
  }

  /* В макете красный кружок с цифрой — только у активной вкладки, у
     неактивных он кремовый с красной цифрой (замер по эталону: фон
     кружка 250..255/240..248/230..240, ядро цифры ровно #B01E2B).
     Было наоборот. Градиент и тень — те же, что у соседней пилюли. */
  body.home .set-tab__num {
    position: absolute;
    z-index: 3;
    top: 4.5px;
    left: 0;
    width: 36px;
    height: 37px;
    color: #b01e2b;
    background: linear-gradient(156.14deg, #fff8f2 15.59%, #f8eadc 90.2%);
    filter: drop-shadow(1px 1px 1.5px rgba(154, 130, 105, .6));
  }

  body.home .set-tab.active .set-tab__num {
    color: #fff6eb;
    background: transparent;
    filter: none; /* у активной тень уже вшита в constructor-set-number-active.svg */
  }

  body.home .set-tab.active .set-tab__num::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -9px;
    left: -9px;
    width: 50px;
    height: 51px;
    background: url("img/constructor-set-number-active.svg") 0 0 / 100% 100% no-repeat;
    pointer-events: none;
  }

  body.home .set-tab__text {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 18px;
    width: 195px;
    height: 46px;
    min-height: 46px;
    padding: 0 8px;
    border-radius: 80px;
    box-sizing: border-box;
    /* В макете подпись неактивной вкладки красная (#B01E2B), а не
       коричневая — ядро глифов замерено как (176,30,43). */
    color: #b01e2b;
    background: linear-gradient(93.77deg, #fff6ed 15.55%, #f5e8db 90.82%);
    filter: drop-shadow(1px 1px 1.5px rgba(154, 130, 105, .6));
  }

  body.home .set-tab.active .set-tab__text {
    color: #fff6eb;
    background: linear-gradient(131.05deg, #da1b2c -108.06%, #9d1f2a 81.99%);
  }

  body.home .set-tab__close {
    position: absolute;
    z-index: 3;
    top: 5.0438px;
    left: 195px;
    width: 36px;
    height: 35.9124px;
    padding: 0;
  }

  body.home .set-tab.active .set-tab__close {
    color: #fff6eb;
    background: transparent;
  }

  body.home .set-tab.active .set-tab__close::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -9px;
    left: -9px;
    width: 50px;
    height: 51px;
    background: url("img/constructor-set-close-active.svg") 0 0 / 100% 100% no-repeat;
    pointer-events: none;
  }

  body.home .set-tab.active .set-tab__close svg {
    display: none;
  }

  /* Счётчик центрируется под активной вкладкой. При ≤3 наборах left/top
     совпадают с прежними хардкодами (16 / 282.5 / 549px, шаг 266.5px);
     при 4+ (лимит снят) активная вкладка может стоять на второй строке —
     --set-counter-left/top/width считает JS по факту (см. renderSetTabs()
     в index.php), а не по индексу вкладки. */
  body.home .constructor-content-wrap:has(.constructor-set-tabs:not([hidden])) .constructor-set-counter {
    position: absolute;
    top: var(--set-counter-top, 57px);
    left: var(--set-counter-left, 16px);
    width: var(--set-counter-width, 231px);
    height: 16.5019px;
    margin: 0;
    line-height: normal;
    text-align: center;
  }

  body.home .constructor-content-wrap:has(.macaron-grid:not(.collapsed)) .constructor-actions-box {
    margin-top: 18px;
  }
}

/* =========================================
   SETS
========================================= */

.sets-header-outer {
  height: 205px;
  padding: 37px 0 0;
  box-sizing: border-box;
}

.sets {
  position: relative;
  height: 2028px;
  background: #FFF6EB;
  /* Фактура тянется на всю ширину экрана при любом масштабе:
     раньше стояло 1200px по центру и по краям оставался пустой фон. */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 66px 0 64px;
  box-sizing: border-box;
}

.sets-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0;
}

.sets-subtitle {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: #401C0C;
}
.sets-subtitle b { font-weight: 700; }

.sets-decorative-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: -10px;
}

.sets-dec-main {
  font-family: var(--font-script);
  font-size: 72px;
  font-weight: 400;
  color: #B01E2B;
  line-height: 1;
}

.sets-dec-sub {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  color: #401C0C;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -8px;
}

.sets-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sets-view-all {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -23px;
  transform: translateX(-50%);
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 446px;
  max-width: 100%;
  height: 46px;
  /* Клиент прислал реальный референс: кнопка стоит близко к последнему
     набору и ровно на стыке этой секции (с фоном) и следующей — прошлые
     ad-hoc правки (было 224px) заметно перегнули вниз */
  margin: 0;
  padding: 17px 41px 15px;
  border: none;
  cursor: pointer;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  box-shadow: -4px -4px 6px rgba(97, 45, 21, 0.35), 4px 4px 8px #D6BFA7;
  border-radius: 80px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #FFF6EB;
  transition: transform 0.2s ease;
}

.sets-view-all:hover {
  transform: translateX(-50%) scale(1.02);
}

.set-card {
  position: relative;
  overflow: visible;
  background: transparent;
  height: 354px;
  box-sizing: border-box;
}

/* Фон карточки в форме штампа через ::before */
.set-card::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -22px;
  bottom: -22px;
  left: -8px;
  z-index: 0;
  background: var(--card-bg) center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Цвет фона + цвет текста по теме */
.set-card.theme-cream    { color: #401C0C; }

.set-card.theme-red      { color: #FFF6EB; }

.set-card.theme-caramel  { color: #FFF6EB; }

.set-card.theme-red-dark { color: #FFF6EB; }

.set-card__texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.13;
  mix-blend-mode: darken;
  -webkit-mask: var(--card-mask) center / 100% 100% no-repeat;
  mask: var(--card-mask) center / 100% 100% no-repeat;
  pointer-events: none;
}

.set-card__texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("img/sets-fabric-texture.jpg") center / cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.set-card__content {
  position: absolute;
  top: 60px;
  left: 60px;
  width: 452px;
  padding: 0;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.set-card__text {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.set-card__title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
}

/* Лента «состав набора:» — декоративный стикер у левого края карточки,
   позиция 1:1 с Figma (left:-44 top:62 от угла карточки, повёрнута) */
.set-card__sostav {
  position: absolute;
  left: -44px;
  top: 63px;
  width: 205px;
  height: 156px;
  transform: none;
  z-index: 4;
  pointer-events: none;
}

/* Наклон наклейки «состав набора».
 *
 * Картинки нарисованы по-разному, и это единственная причина, по которой
 * раньше наклейки разъезжались. Замер самих файлов на контрастном фоне:
 *
 *   sets-sticker-home-red-fw10.svg        -11,44°   наклон внутри файла
 *   catalog/.../phone-sticker-red-fw10    -11,44°   наклон внутри файла
 *   sets-sticker-catalog-cream-fw10.svg   -11,43°   наклон внутри файла
 *   sets-sticker-home-cream-fw10.svg       -1,29°   нарисована почти прямо
 *
 * Отсюда правило: красным и каталожной белой поворот не нужен вовсе —
 * он у них свой. Докручиваем только белую на главной, до тех же -11,4°.
 * Поэтому у наклейки есть модификатор --red / --cream (ставится в
 * index.php и page-sets.php по теме карточки): без него пришлось бы
 * целиться темами, и правка цеплялась бы заодно и за красные.
 *
 * Точка вращения — левый край: наклейка свисает за край карточки, и
 * поворот вокруг центра увёл бы видимую часть вбок. */
body.home .set-card__sostav--cream,
body.home .set-card__phone-sostav--cream {
  transform: rotate(-10.15deg);
  transform-origin: left center;
}

.set-card__desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  margin: 0;
  width: 450px;
  max-width: 100%;
  height: 56px;
  flex: none;
  align-self: stretch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.set-card__action-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Длиннее базового .btn--pill — по референсу заказчика */
.set-order-btn {
  width: 298px;
  height: 46px;
  padding: 0 40px;
  font-weight: 500;
}

.set-card__action-row .btn--secondary { color: #B01E2B; }
.set-card.theme-red-dark .btn--secondary {
  box-shadow: -4px -4px 5px rgba(255, 255, 255, 0.1), 4px 4px 13px rgba(84, 21, 26, 0.97);
}
.set-card.theme-caramel .btn--secondary {
  box-shadow: -4px -4px 5px rgba(255, 255, 255, 0.3), 4px 4px 13px #AC5E2A;
}

.btn-text-link {
  background: none;
  border: none;
  width: 127px;
  max-width: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  color: #000000;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  opacity: 0.4;
  transition: 0.2s ease;
}

.btn-text-link:hover {
  opacity: 0.7;
}

/* Ссылка стала <a> (ведёт на /sostav в новой вкладке), поэтому нужен
   inline-block — иначе width: 127px из базового правила не применится. */
a.btn-text-link {
  display: inline-block;
}

/* На бордовых и карамельных карточках текст карточки светлый (#FFF6EB),
   а базовое правило красит ссылку в чёрный с opacity .4 — получалось
   тёмное пятно на тёмном фоне. Правка клиента по блоку и странице
   «Готовые наборы»: подхватываем светлый цвет темы. */
.set-card.theme-red .btn-text-link,
.set-card.theme-red-dark .btn-text-link,
.set-card.theme-caramel .btn-text-link {
  color: #FFF6EB;
  opacity: 0.75;
}

.set-card.theme-red .btn-text-link:hover,
.set-card.theme-red-dark .btn-text-link:hover,
.set-card.theme-caramel .btn-text-link:hover {
  opacity: 1;
}

/* Раньше .set-card__visual была узкой рамкой (280×354) только вокруг
   фото, а паттерн PAOLA (480×420) центрировался в ней и вылезал за края
   всей карточки на ~60px справа и ~10px сверху/снизу — та самая жалоба
   «маска не должна выходить за границы плашки». Теперь .set-card__visual
   растянута на всю карточку и обрезает всё лишнее по её границе; фото и
   паттерн спозиционированы в её координатах абсолютно, не через grid. */
.set-card__visual {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.set-card__visual > img {
  position: absolute;
  right: auto;
  transform: none;
  object-fit: fill;
  filter: drop-shadow(4px 4px 8px rgba(99, 24, 30, 0.55));
}

.set-card:nth-child(1) .set-card__product-img { left: 674px; top: 41px; width: 324px; height: 274px; }
.set-card:nth-child(2) .set-card__product-img { left: 681px; top: 41px; width: 324px; height: 274px; }
.set-card:nth-child(3) .set-card__product-img { left: 685px; top: 41px; width: 313px; height: 275px; }
.set-card:nth-child(4) .set-card__product-img { left: 669px; top: 42px; width: 326px; height: 271px; }
.set-card:nth-child(5) .set-card__product-img { left: 674px; top: 76px; width: 328px; height: 190px; }

.set-card__group-bg {
  position: absolute;
  left: 550px;
  top: 0;
  width: 490px;
  height: 400px;
  -webkit-mask-image: var(--group-mask);
  mask-image: var(--group-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}

.set-card.theme-cream    .set-card__group-bg { background: #B01E2B; opacity: 0.32; }
.set-card.theme-red-dark .set-card__group-bg { background: #D6BFA7; opacity: 0.4; }
.set-card.theme-caramel  .set-card__group-bg { background: #FBE5C1; opacity: 0.45; }

/* =========================================
   CERTIFICATES
========================================= */

.certificates {
  background: linear-gradient(180deg, #FFF6ED 0%, #F8EADC 100%);
  min-height: 655px;
  box-sizing: border-box;
}

.cert-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 29px;
}

.cert-subtitle {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 17px;
  max-width: 542px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: #401C0C;
}

.cert-subtitle b { font-weight: 500; }

.cert-decorative-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: -10px;
  margin-top: 6px;
}

.cert-dec-sub {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  color: #401C0C;
  line-height: 1;
  text-transform: uppercase;
}

.cert-dec-main {
  font-family: var(--font-script);
  font-size: 62px;
  font-weight: 400;
  color: #B01E2B;
  line-height: 1;
  margin-top: -10px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 473px 537px;
  gap: 25px;
  margin-left: 2px;
}

.cert-card {
  position: relative;
  height: 355px;
  overflow: visible;


}

/* Физическая карточка — обычный скруглённый прямоугольник, как и было.
   Электронная — своя фигура (см. ниже): фон вынесен в ::before, чтобы
   clip-path не резал кнопку и фото, которые по макету выходят за
   пределы этой фигуры (тот же приём, что и для карточек доставки). */
.cert-card--physical {
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 4px 4px 24px rgba(214, 191, 167, 0.45), inset -4px -4px 10px #FFFFFF, inset 2px 2px 11px rgba(231, 205, 177, 0.9);
  border-radius: 39px;
  top: -1px;
}

.cert-card--physical .cert-card__content {
  top: 42px;
}

/* Электронная карточка: фигура с вырезом слева-снизу (там кнопка «оформить
   подарок» выходит за пределы плашки) — контур снят с реального Subtract.svg
   из макета, а не приближён скруглённым прямоугольником. */
.cert-card--electronic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 4px 4px 24px rgba(214, 191, 167, 0.45), inset -4px -4px 10px #FFFFFF, inset 2px 2px 11px rgba(231, 205, 177, 0.9);
  border-radius: 39px;
  clip-path: path("M473 316 C473 337.539 455.539 355 434 355 H268 C252.536 355 240 342.464 240 327 C240 311.536 227.464 299 212 299 H39 C17.4609 299 0 281.539 0 260 V39 C0 17.4609 17.4609 0 39 0 H434 C455.539 0 473 17.4609 473 39 V316 Z");
}
.cert-card--electronic > * { position: relative; z-index: 1; }

.cert-card__sticker {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  object-fit: contain;
}

/* «Быстро и просто» — стикер из «Стикеры Паола»/Главная/Stiker-6.png.
   Это <a> (ведёт на оформление сертификата), поэтому свой pointer-events и
   img на всю площадь ссылки, а не object-fit на самом стикере.

   В новом ассете надпись и наклон (~15.8°) запечены в картинку, поэтому
   CSS-поворот убран, а текстовый слой .cert-card__sticker-fast-text больше
   не нужен (доступность держится на aria-label самой ссылки).
   PNG обрезан по alpha-боксу (309×242 из исходных 431×387) — пустые поля
   канвы иначе раздували кликабельную область ссылки.
   Фигура (непрозрачная часть) — 265×197 со смещением +10+5; бокс подобран
   так, чтобы её центр остался в прежней точке 436.0/262.4 карточки. */
.cert-card__sticker--left {
  display: block;
  width: 105px;
  height: 82px;
  left: 387px;
  top: 228px;
  pointer-events: auto;
}
.cert-card__sticker-fast-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Значок-макарон в правом верхнем углу физического сертификата
   (источник: «Стикеры Паола»/Главная/Stiker-4.png — канва 301×297,
   рисунок 268×228 со смещением +30+54). Бокс пересчитан через смещение
   рисунка внутри канвы; привязка по правому краю, поэтому right считается
   от правой кромки рисунка (34.5px наружу от края карточки). Видимый
   рисунок сохранён: 88.4×75.2 против прежних 88.3×75.3. */
.cert-card__sticker--right {
  width: 91px;
  height: 78px;
  right: auto;
  left: 482px;
  top: 20px;
}

/* Мелкий декоративный стикер «шляпа» слева на электронном сертификате
   (источник: «Стикеры Паола»/Главная/Stiker-10.png — канва 283×285,
   рисунок 239×246 со смещением +27+34). Бокс пересчитан так, чтобы видимый
   рисунок остался на прежнем месте и того же размера, что и у старого
   ассета: 78.8×81.3 в точке -40.5/173.8. */
.cert-card__sticker--dot {
  position: absolute;
  left: -41px;
  top: 173px;
  width: 81px;
  height: 83px;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
}

/* Round 5 / home (DOCX p026, p027): стикеры сертификатов перевыгружены
   из Figma 188:1420 (шапочка), 188:1461 (макарон), 188:1434 («быстро и
   просто»): без запечённых теней; мягкие тени Figma — drop-shadow только на
   десктопе (в планшетных/телефонных экспортах тень уже в картинке).
   Размеры и позиции — по узлам ПК (1200). */
@media (min-width: 861px) ,  (width > 860px) {
  .cert-card__sticker--dot { filter: drop-shadow(4px 4px 7px rgba(237, 207, 174, 1)); }
  .cert-card__sticker--left { filter: drop-shadow(4px 6px 8px rgba(229, 182, 131, 0.69)); }
}

/* Лента «для самых любимых» на физическом сертификате
   (Figma: Stiker/Frame 6 (7).png, assets/img/cert-sticker-love.png).
   Позиция — точно по Figma (rel. 170/156 от угла карточки); рисуется
   ПОВЕРХ фото сертификатов (z-index выше .cert-photo), но ниже текста
   (.cert-card__content/.cert-card__address подняты до z-index:4),
   чтобы пересечение бокса с адресным блоком не перекрывало текст. */
.cert-card__sticker--photo {
  position: absolute;
  left: 170px;
  top: 156px;
  width: 183px;
  height: 125px;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

.cert-card__content {
  position: absolute;
  z-index: 4;
  left: 35px;
  top: 41px;
  max-width: 210px;
}

.cert-card--physical .cert-card__content {
  max-width: 243px;
}

.cert-card__title {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 400;
  color: #401C0C;
  margin: 0;
  line-height: 38px;
  text-transform: uppercase;
}

.cert-card__title-accent {
  color: #B01E2B;
}

.cert-card__desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  color: #401C0C;
  margin: 16px 0 0;
}

.cert-card__desc b { font-weight: 500; }

.cert-card__btn {
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 210px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 9px 12px;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  border-radius: 80px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none; /* кнопка стала ссылкой на мастер заказа */
  color: #FFF6EB;
  transition: transform 0.2s ease;
}

.cert-card__btn:hover {
  transform: scale(1.02);
}

.cert-card--electronic .cert-card__visual {
  position: absolute;
  left: 295px;
  top: 27px;
  width: 137px;
  height: 279px;
}

/* Скругление здесь не нужно и вредит: cert-phone.webp — рисунок телефона
   с уже скруглёнными углами и прозрачным фоном. border-radius режет не
   «фон картинки», а саму рамку: при object-fit:contain рисунок прижат к
   верху блока, а радиус заходит внутрь на 29 px — чёрная рамка в верхних
   углах обрезалась плоско. Это и есть жалоба [4] «идёт чёрная рамка
   телефона, но углы резаные». */
.cert-card--electronic .cert-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 4px 7px rgba(62, 32, 0, 0.43));
}

.cert-card__visual--pair {
  position: absolute;
  left: 269px;
  top: 36px;
  width: 240px;
  height: 250px;
}

.cert-photo {
  position: absolute;
  width: 157px;
  height: 212px;
  object-fit: cover;
  border-radius: 3px;
}

.cert-photo--1 {
  left: 0;
  top: 0;
  z-index: 2;
  transform: rotate(-3.94deg);
  filter: drop-shadow(4px 4px 7px rgba(62, 32, 0, 0.43));
}

.cert-photo--2 {
  left: 75px;
  top: 41px;
  z-index: 1;
  transform: rotate(17.25deg);
  filter: drop-shadow(4px 4px 7px rgba(139, 103, 65, 0.55));
}

.cert-card__address {
  position: absolute;
  z-index: 4;
  left: 35px;
  top: 213px;
  width: 185px;
  font-family: var(--font-body);
  color: #401C0C;
}

.cert-card__address > p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 14px;
  font-weight: 400;
}

.cert-card__address-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.cert-card__address-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding-top: 2px;
}

.cert-card__address-row p {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 300;
  text-transform: uppercase;
}

.cert-card__address-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cert-card__address-link:hover {
  color: #B01E2B;
  text-decoration: underline;
}

/* =========================================
   DELIVERY
========================================= */

/* Текстура на бордовом фоне блока. Тайл 512×512 нарезан из присланного
   клиентом Background.png и стыкуется бесшовно (RMSE по противоположным
   кромкам 0.24%). Сохранён без потерь: зерно очень слабое (разброс 0.36
   из 255), и любое lossy-сжатие срезало больше половины — webp q80..q98
   давали 0.16. Полный исходник лежит рядом как *-source.png на случай
   перенарезки.
   На ≤430px это правило перекрывается целиком: body.home .delivery
   задаёт собственный фон dl-mobile-bg-lossless.webp. */
.delivery {
  background: #9D1F2A url("img/delivery/dl-maroon-bg-texture.webp") left top / 512px 512px repeat;
  position: relative;
  overflow: hidden;
}

/* ИСТОРИЯ ЭТОГО МЕСТА — читать перед тем, как снова трогать текстуру.

   2026-08-11 клиент попросил УБРАТЬ текстуру с красного фона блока:
   «не нужна, только на самих карточках». Тогда сняли Figma-слой 188:1203
   с эффективной непрозрачностью 4% (.delivery-card::before держит текстуру
   на каждой из трёх карточек — coffee/vending/door). Мобильная версия
   (≤430px) уже отключала её через body.home .delivery::before{display:none}
   и использует свой фон-PNG, поэтому снять на десктопе было безопасно.

   2026-09-17 клиент попросил ВЕРНУТЬ: в списке правок пункт «Общая текстура
   на фоне блока отсутствует (на бордовом цвете фона)». Прислан свой файл
   Background.png. Вернули не прежним слоем-псевдоэлементом, а фоном самой
   секции — см. правило .delivery выше. Если правка снова развернётся,
   стоит уточнить у клиента, а не откатывать молча: это уже второй разворот. */

.delivery .site-main {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.delivery .container {
  position: relative;
  z-index: 1;
}

.delivery.section-padding {
  padding: 84px 0 96px;
}

.delivery .section-subtitle {
  margin-bottom: 53px;
}

.delivery-title-break {
  display: none;
}

.delivery .section-subtitle::before {
  display: none;
}

.delivery .subtitle-star {
  background: none;
  -webkit-mask: none;
  mask: none;
  filter: brightness(0) invert(1);
}

.delivery .section-subtitle strong,
.delivery-card__desc strong,
.delivery-card__meta strong {
  font-weight: 500;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 43.5px;
}

.delivery-card {
  padding: 46px;
  position: relative;
  overflow: visible; /* стикеры вылезают за края карточки */
  /* Изоляция нужна слою тени: он лежит на z-index -1 и без собственного
     контекста наложения ушёл бы под фон всей секции. */
  isolation: isolate;
  /* Форма рваного края объявлена один раз: её используют и слой бумаги
     (.delivery-card::before), и слой тени (.delivery-card__shadow::before).
     Разъехавшись, они дали бы тень не по контуру. */
  /* Острия и впадины скруглены радиусом 2px — так в макете. Профиль снят
     с эталона design-reference/05-delivery.png: период 26px при ширине
     карточки 1039px (ровно нынешние 2.5%), глубина 10px, на каждой вершине
     площадка около 2px, то есть дуга радиуса ≈2. Вершины предварительно
     вынесены наружу на «просадку» дуги, поэтому крайние точки остались на
     прежних местах: глубина 9.925px вместо 10, края ровно 0 и 100%.
     Дуги описаны точками, потому что path() принимает только абсолютные
     пиксели, а здесь нужен процент по X (карточка тянется) и пиксель по Y
     (глубина зубца постоянная). 397 точек — 12.5 КБ, около 1 КБ после
     gzip: координаты однотипные. */
  /* [5] Верхние углы листа: текущая Figma 188:1307 задаёт радиус 3px.
     Точки аппроксимируют дугу одинаково на всех ширинах;
     нижний зубчатый край и общий силуэт слоя внешней тени не меняются. */
  --dc-zigzag: polygon(
    0 3px, 0.4px 1.5px, 1.5px 0.4px, 3px 0,
    calc(100% - 3px) 0, calc(100% - 1.5px) 0.4px, calc(100% - 0.4px) 1.5px, 100% 3px,
    100.0000% 100%,
    98.8740% calc(100% - 9.480px), 98.8161% calc(100% - 9.814px), 98.7507% calc(100% - 9.925px),
    98.6856% calc(100% - 9.798px), 98.6285% calc(100% - 9.449px), 97.6245% calc(100% - 0.577px),
    97.5663% calc(100% - 0.224px), 97.5000% calc(100% - 0.101px), 97.4337% calc(100% - 0.224px),
    97.3755% calc(100% - 0.577px), 96.3745% calc(100% - 9.423px), 96.3163% calc(100% - 9.776px),
    96.2500% calc(100% - 9.899px), 96.1837% calc(100% - 9.776px), 96.1255% calc(100% - 9.423px),
    95.1245% calc(100% - 0.577px), 95.0663% calc(100% - 0.224px), 95.0000% calc(100% - 0.101px),
    94.9337% calc(100% - 0.224px), 94.8755% calc(100% - 0.577px), 93.8745% calc(100% - 9.423px),
    93.8163% calc(100% - 9.776px), 93.7500% calc(100% - 9.899px), 93.6837% calc(100% - 9.776px),
    93.6255% calc(100% - 9.423px), 92.6245% calc(100% - 0.577px), 92.5663% calc(100% - 0.224px),
    92.5000% calc(100% - 0.101px), 92.4337% calc(100% - 0.224px), 92.3755% calc(100% - 0.577px),
    91.3745% calc(100% - 9.423px), 91.3163% calc(100% - 9.776px), 91.2500% calc(100% - 9.899px),
    91.1837% calc(100% - 9.776px), 91.1255% calc(100% - 9.423px), 90.1245% calc(100% - 0.577px),
    90.0663% calc(100% - 0.224px), 90.0000% calc(100% - 0.101px), 89.9337% calc(100% - 0.224px),
    89.8755% calc(100% - 0.577px), 88.8745% calc(100% - 9.423px), 88.8163% calc(100% - 9.776px),
    88.7500% calc(100% - 9.899px), 88.6837% calc(100% - 9.776px), 88.6255% calc(100% - 9.423px),
    87.6245% calc(100% - 0.577px), 87.5663% calc(100% - 0.224px), 87.5000% calc(100% - 0.101px),
    87.4337% calc(100% - 0.224px), 87.3755% calc(100% - 0.577px), 86.3745% calc(100% - 9.423px),
    86.3163% calc(100% - 9.776px), 86.2500% calc(100% - 9.899px), 86.1837% calc(100% - 9.776px),
    86.1255% calc(100% - 9.423px), 85.1245% calc(100% - 0.577px), 85.0663% calc(100% - 0.224px),
    85.0000% calc(100% - 0.101px), 84.9337% calc(100% - 0.224px), 84.8755% calc(100% - 0.577px),
    83.8745% calc(100% - 9.423px), 83.8163% calc(100% - 9.776px), 83.7500% calc(100% - 9.899px),
    83.6837% calc(100% - 9.776px), 83.6255% calc(100% - 9.423px), 82.6245% calc(100% - 0.577px),
    82.5663% calc(100% - 0.224px), 82.5000% calc(100% - 0.101px), 82.4337% calc(100% - 0.224px),
    82.3755% calc(100% - 0.577px), 81.3745% calc(100% - 9.423px), 81.3163% calc(100% - 9.776px),
    81.2500% calc(100% - 9.899px), 81.1837% calc(100% - 9.776px), 81.1255% calc(100% - 9.423px),
    80.1245% calc(100% - 0.577px), 80.0663% calc(100% - 0.224px), 80.0000% calc(100% - 0.101px),
    79.9337% calc(100% - 0.224px), 79.8755% calc(100% - 0.577px), 78.8745% calc(100% - 9.423px),
    78.8163% calc(100% - 9.776px), 78.7500% calc(100% - 9.899px), 78.6837% calc(100% - 9.776px),
    78.6255% calc(100% - 9.423px), 77.6245% calc(100% - 0.577px), 77.5663% calc(100% - 0.224px),
    77.5000% calc(100% - 0.101px), 77.4337% calc(100% - 0.224px), 77.3755% calc(100% - 0.577px),
    76.3745% calc(100% - 9.423px), 76.3163% calc(100% - 9.776px), 76.2500% calc(100% - 9.899px),
    76.1837% calc(100% - 9.776px), 76.1255% calc(100% - 9.423px), 75.1245% calc(100% - 0.577px),
    75.0663% calc(100% - 0.224px), 75.0000% calc(100% - 0.101px), 74.9337% calc(100% - 0.224px),
    74.8755% calc(100% - 0.577px), 73.8745% calc(100% - 9.423px), 73.8163% calc(100% - 9.776px),
    73.7500% calc(100% - 9.899px), 73.6837% calc(100% - 9.776px), 73.6255% calc(100% - 9.423px),
    72.6245% calc(100% - 0.577px), 72.5663% calc(100% - 0.224px), 72.5000% calc(100% - 0.101px),
    72.4337% calc(100% - 0.224px), 72.3755% calc(100% - 0.577px), 71.3745% calc(100% - 9.423px),
    71.3163% calc(100% - 9.776px), 71.2500% calc(100% - 9.899px), 71.1837% calc(100% - 9.776px),
    71.1255% calc(100% - 9.423px), 70.1245% calc(100% - 0.577px), 70.0663% calc(100% - 0.224px),
    70.0000% calc(100% - 0.101px), 69.9337% calc(100% - 0.224px), 69.8755% calc(100% - 0.577px),
    68.8745% calc(100% - 9.423px), 68.8163% calc(100% - 9.776px), 68.7500% calc(100% - 9.899px),
    68.6837% calc(100% - 9.776px), 68.6255% calc(100% - 9.423px), 67.6245% calc(100% - 0.577px),
    67.5663% calc(100% - 0.224px), 67.5000% calc(100% - 0.101px), 67.4337% calc(100% - 0.224px),
    67.3755% calc(100% - 0.577px), 66.3745% calc(100% - 9.423px), 66.3163% calc(100% - 9.776px),
    66.2500% calc(100% - 9.899px), 66.1837% calc(100% - 9.776px), 66.1255% calc(100% - 9.423px),
    65.1245% calc(100% - 0.577px), 65.0663% calc(100% - 0.224px), 65.0000% calc(100% - 0.101px),
    64.9337% calc(100% - 0.224px), 64.8755% calc(100% - 0.577px), 63.8745% calc(100% - 9.423px),
    63.8163% calc(100% - 9.776px), 63.7500% calc(100% - 9.899px), 63.6837% calc(100% - 9.776px),
    63.6255% calc(100% - 9.423px), 62.6245% calc(100% - 0.577px), 62.5663% calc(100% - 0.224px),
    62.5000% calc(100% - 0.101px), 62.4337% calc(100% - 0.224px), 62.3755% calc(100% - 0.577px),
    61.3745% calc(100% - 9.423px), 61.3163% calc(100% - 9.776px), 61.2500% calc(100% - 9.899px),
    61.1837% calc(100% - 9.776px), 61.1255% calc(100% - 9.423px), 60.1245% calc(100% - 0.577px),
    60.0663% calc(100% - 0.224px), 60.0000% calc(100% - 0.101px), 59.9337% calc(100% - 0.224px),
    59.8755% calc(100% - 0.577px), 58.8745% calc(100% - 9.423px), 58.8163% calc(100% - 9.776px),
    58.7500% calc(100% - 9.899px), 58.6837% calc(100% - 9.776px), 58.6255% calc(100% - 9.423px),
    57.6245% calc(100% - 0.577px), 57.5663% calc(100% - 0.224px), 57.5000% calc(100% - 0.101px),
    57.4337% calc(100% - 0.224px), 57.3755% calc(100% - 0.577px), 56.3745% calc(100% - 9.423px),
    56.3163% calc(100% - 9.776px), 56.2500% calc(100% - 9.899px), 56.1837% calc(100% - 9.776px),
    56.1255% calc(100% - 9.423px), 55.1245% calc(100% - 0.577px), 55.0663% calc(100% - 0.224px),
    55.0000% calc(100% - 0.101px), 54.9337% calc(100% - 0.224px), 54.8755% calc(100% - 0.577px),
    53.8745% calc(100% - 9.423px), 53.8163% calc(100% - 9.776px), 53.7500% calc(100% - 9.899px),
    53.6837% calc(100% - 9.776px), 53.6255% calc(100% - 9.423px), 52.6245% calc(100% - 0.577px),
    52.5663% calc(100% - 0.224px), 52.5000% calc(100% - 0.101px), 52.4337% calc(100% - 0.224px),
    52.3755% calc(100% - 0.577px), 51.3745% calc(100% - 9.423px), 51.3163% calc(100% - 9.776px),
    51.2500% calc(100% - 9.899px), 51.1837% calc(100% - 9.776px), 51.1255% calc(100% - 9.423px),
    50.1245% calc(100% - 0.577px), 50.0663% calc(100% - 0.224px), 50.0000% calc(100% - 0.101px),
    49.9337% calc(100% - 0.224px), 49.8755% calc(100% - 0.577px), 48.8745% calc(100% - 9.423px),
    48.8163% calc(100% - 9.776px), 48.7500% calc(100% - 9.899px), 48.6837% calc(100% - 9.776px),
    48.6255% calc(100% - 9.423px), 47.6245% calc(100% - 0.577px), 47.5663% calc(100% - 0.224px),
    47.5000% calc(100% - 0.101px), 47.4337% calc(100% - 0.224px), 47.3755% calc(100% - 0.577px),
    46.3745% calc(100% - 9.423px), 46.3163% calc(100% - 9.776px), 46.2500% calc(100% - 9.899px),
    46.1837% calc(100% - 9.776px), 46.1255% calc(100% - 9.423px), 45.1245% calc(100% - 0.577px),
    45.0663% calc(100% - 0.224px), 45.0000% calc(100% - 0.101px), 44.9337% calc(100% - 0.224px),
    44.8755% calc(100% - 0.577px), 43.8745% calc(100% - 9.423px), 43.8163% calc(100% - 9.776px),
    43.7500% calc(100% - 9.899px), 43.6837% calc(100% - 9.776px), 43.6255% calc(100% - 9.423px),
    42.6245% calc(100% - 0.577px), 42.5663% calc(100% - 0.224px), 42.5000% calc(100% - 0.101px),
    42.4337% calc(100% - 0.224px), 42.3755% calc(100% - 0.577px), 41.3745% calc(100% - 9.423px),
    41.3163% calc(100% - 9.776px), 41.2500% calc(100% - 9.899px), 41.1837% calc(100% - 9.776px),
    41.1255% calc(100% - 9.423px), 40.1245% calc(100% - 0.577px), 40.0663% calc(100% - 0.224px),
    40.0000% calc(100% - 0.101px), 39.9337% calc(100% - 0.224px), 39.8755% calc(100% - 0.577px),
    38.8745% calc(100% - 9.423px), 38.8163% calc(100% - 9.776px), 38.7500% calc(100% - 9.899px),
    38.6837% calc(100% - 9.776px), 38.6255% calc(100% - 9.423px), 37.6245% calc(100% - 0.577px),
    37.5663% calc(100% - 0.224px), 37.5000% calc(100% - 0.101px), 37.4337% calc(100% - 0.224px),
    37.3755% calc(100% - 0.577px), 36.3745% calc(100% - 9.423px), 36.3163% calc(100% - 9.776px),
    36.2500% calc(100% - 9.899px), 36.1837% calc(100% - 9.776px), 36.1255% calc(100% - 9.423px),
    35.1245% calc(100% - 0.577px), 35.0663% calc(100% - 0.224px), 35.0000% calc(100% - 0.101px),
    34.9337% calc(100% - 0.224px), 34.8755% calc(100% - 0.577px), 33.8745% calc(100% - 9.423px),
    33.8163% calc(100% - 9.776px), 33.7500% calc(100% - 9.899px), 33.6837% calc(100% - 9.776px),
    33.6255% calc(100% - 9.423px), 32.6245% calc(100% - 0.577px), 32.5663% calc(100% - 0.224px),
    32.5000% calc(100% - 0.101px), 32.4337% calc(100% - 0.224px), 32.3755% calc(100% - 0.577px),
    31.3745% calc(100% - 9.423px), 31.3163% calc(100% - 9.776px), 31.2500% calc(100% - 9.899px),
    31.1837% calc(100% - 9.776px), 31.1255% calc(100% - 9.423px), 30.1245% calc(100% - 0.577px),
    30.0663% calc(100% - 0.224px), 30.0000% calc(100% - 0.101px), 29.9337% calc(100% - 0.224px),
    29.8755% calc(100% - 0.577px), 28.8745% calc(100% - 9.423px), 28.8163% calc(100% - 9.776px),
    28.7500% calc(100% - 9.899px), 28.6837% calc(100% - 9.776px), 28.6255% calc(100% - 9.423px),
    27.6245% calc(100% - 0.577px), 27.5663% calc(100% - 0.224px), 27.5000% calc(100% - 0.101px),
    27.4337% calc(100% - 0.224px), 27.3755% calc(100% - 0.577px), 26.3745% calc(100% - 9.423px),
    26.3163% calc(100% - 9.776px), 26.2500% calc(100% - 9.899px), 26.1837% calc(100% - 9.776px),
    26.1255% calc(100% - 9.423px), 25.1245% calc(100% - 0.577px), 25.0663% calc(100% - 0.224px),
    25.0000% calc(100% - 0.101px), 24.9337% calc(100% - 0.224px), 24.8755% calc(100% - 0.577px),
    23.8745% calc(100% - 9.423px), 23.8163% calc(100% - 9.776px), 23.7500% calc(100% - 9.899px),
    23.6837% calc(100% - 9.776px), 23.6255% calc(100% - 9.423px), 22.6245% calc(100% - 0.577px),
    22.5663% calc(100% - 0.224px), 22.5000% calc(100% - 0.101px), 22.4337% calc(100% - 0.224px),
    22.3755% calc(100% - 0.577px), 21.3745% calc(100% - 9.423px), 21.3163% calc(100% - 9.776px),
    21.2500% calc(100% - 9.899px), 21.1837% calc(100% - 9.776px), 21.1255% calc(100% - 9.423px),
    20.1245% calc(100% - 0.577px), 20.0663% calc(100% - 0.224px), 20.0000% calc(100% - 0.101px),
    19.9337% calc(100% - 0.224px), 19.8755% calc(100% - 0.577px), 18.8745% calc(100% - 9.423px),
    18.8163% calc(100% - 9.776px), 18.7500% calc(100% - 9.899px), 18.6837% calc(100% - 9.776px),
    18.6255% calc(100% - 9.423px), 17.6245% calc(100% - 0.577px), 17.5663% calc(100% - 0.224px),
    17.5000% calc(100% - 0.101px), 17.4337% calc(100% - 0.224px), 17.3755% calc(100% - 0.577px),
    16.3745% calc(100% - 9.423px), 16.3163% calc(100% - 9.776px), 16.2500% calc(100% - 9.899px),
    16.1837% calc(100% - 9.776px), 16.1255% calc(100% - 9.423px), 15.1245% calc(100% - 0.577px),
    15.0663% calc(100% - 0.224px), 15.0000% calc(100% - 0.101px), 14.9337% calc(100% - 0.224px),
    14.8755% calc(100% - 0.577px), 13.8745% calc(100% - 9.423px), 13.8163% calc(100% - 9.776px),
    13.7500% calc(100% - 9.899px), 13.6837% calc(100% - 9.776px), 13.6255% calc(100% - 9.423px),
    12.6245% calc(100% - 0.577px), 12.5663% calc(100% - 0.224px), 12.5000% calc(100% - 0.101px),
    12.4337% calc(100% - 0.224px), 12.3755% calc(100% - 0.577px), 11.3745% calc(100% - 9.423px),
    11.3163% calc(100% - 9.776px), 11.2500% calc(100% - 9.899px), 11.1837% calc(100% - 9.776px),
    11.1255% calc(100% - 9.423px), 10.1245% calc(100% - 0.577px), 10.0663% calc(100% - 0.224px),
    10.0000% calc(100% - 0.101px), 9.9337% calc(100% - 0.224px), 9.8755% calc(100% - 0.577px),
    8.8745% calc(100% - 9.423px), 8.8163% calc(100% - 9.776px), 8.7500% calc(100% - 9.899px),
    8.6837% calc(100% - 9.776px), 8.6255% calc(100% - 9.423px), 7.6245% calc(100% - 0.577px),
    7.5663% calc(100% - 0.224px), 7.5000% calc(100% - 0.101px), 7.4337% calc(100% - 0.224px),
    7.3755% calc(100% - 0.577px), 6.3745% calc(100% - 9.423px), 6.3163% calc(100% - 9.776px),
    6.2500% calc(100% - 9.899px), 6.1837% calc(100% - 9.776px), 6.1255% calc(100% - 9.423px),
    5.1245% calc(100% - 0.577px), 5.0663% calc(100% - 0.224px), 5.0000% calc(100% - 0.101px),
    4.9337% calc(100% - 0.224px), 4.8755% calc(100% - 0.577px), 3.8745% calc(100% - 9.423px),
    3.8163% calc(100% - 9.776px), 3.7500% calc(100% - 9.899px), 3.6837% calc(100% - 9.776px),
    3.6255% calc(100% - 9.423px), 2.6245% calc(100% - 0.577px), 2.5663% calc(100% - 0.224px),
    2.5000% calc(100% - 0.101px), 2.4337% calc(100% - 0.224px), 2.3755% calc(100% - 0.577px),
    1.3715% calc(100% - 9.449px), 1.3144% calc(100% - 9.798px), 1.2493% calc(100% - 9.925px),
    1.1839% calc(100% - 9.814px), 1.1260% calc(100% - 9.480px), 0.0000% 100%
  );
}

/* Фон карточки вынесен в отдельный слой: clip-path режет элемент независимо
   от overflow, поэтому зигзаг нельзя вешать на саму .delivery-card —
   иначе он обрезает вылезающие наверх стикеры. */
.delivery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Same raw cloth source as Figma. The 97.4%-opaque paper gradient leaves
     the exact 13% × 20% texture contribution used by the masked image.

     20.09.2026: файл был JPEG на 541 КБ — дорого для слоя, от которого
     видно 2,6%. Пережат в WebP q20, 204 КБ. Мерил не файл, а видимый
     результат (смесь 97,4% градиента с 2,6% текстуры): максимальное
     отличие 2 уровня из 255, зерно видимого слоя sd 1.433 против 1.438,
     расхождение 0,3%. Размер 1200×800 сохранён намеренно: уменьшение до
     600px давало 100 КБ, но съедало зерно на 17,7%, а зерно здесь и есть
     весь смысл слоя. */
  background-image:
    linear-gradient(180deg, rgba(255, 246, 236, 0.974) -3.87%, rgba(249, 235, 221, 0.974) 92.85%),
    url("img/delivery/dl-bg-texture-raw.webp");
  background-size: 100% 100%, 1300px 867px;
  background-position: 0 0, -136px -249px;
  background-repeat: no-repeat;
  /* Тень здесь стояла, но не рисовалась: по спецификации clip-path
     применяется ПОСЛЕ filter, поэтому тот же полигон срезал и саму тень.
     Тень вынесена в .delivery-card__shadow — там фильтр висит на родителе
     обрезаемого слоя и переживает обрезку. */
  /* Зазубренный (рваный) нижний край — как в исходных PNG (Back.png) */
  clip-path: var(--dc-zigzag);
  /* [6].2 — верхние углы скруглены. На планшете это сделали раньше
     (tablet/pages/home.css), а на десктопе форму задаёт clip-path, и
     прежняя правка сюда не доехала: углы оставались острыми.
     Радиус и clip-path совмещаются — браузер берёт пересечение фигур,
     поэтому зигзаг снизу сохраняется. Проверено на живой странице. */
  border-radius: 3px 3px 0 0;
}

/* Слой тени под бумагой. Отдельным элементом, а не псевдоэлементом карточки,
   по двум причинам. Фильтр обязан висеть на РОДИТЕЛЕ обрезаемого слоя —
   иначе clip-path срезает тень вместе с формой. И фильтр нельзя вешать на
   саму .delivery-card: в ней лежат фотографии и стикеры, у которых тень уже
   впечатана в PNG, второй слой размытия дал бы им двойную обводку. */
.delivery-card__shadow {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(7.5px);
  transform: translate(4px, 4px);
  opacity: 0.65;
  pointer-events: none;
}

.delivery-card__shadow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  clip-path: var(--dc-zigzag);
  /* [6].2 — тот же радиус, что у слоя бумаги выше: иначе тень осталась бы
     прямоугольной и торчала бы из-под скруглённых углов. */
  border-radius: 3px 3px 0 0;
}

/* ── Фото и стикеры карточек: готовые PNG из Figma (поворот + тень уже
   впечатаны в пиксели, поэтому никаких CSS transform/box-shadow сверху).
   Координаты — точно из макета: контейнер 1200px, контент-колонка 1040px,
   позиция = центр ноды в Figma минус половина размера PNG. ── */
.dc-art {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  height: auto;
}

/* У фото-панелей в PNG впечатана тень drop-shadow(4px 4px 7px), из-за чего
   поля несимметричны (~4px сверху/слева, ~12px справа/снизу) — поэтому
   позиция = левый верхний угол ноды минус 4px, а не выравнивание по центру.
   У стикеров тени нет: там PNG равен повёрнутому bounding box, и корректно
   именно совмещение центров. */

/* Карточка 1 — Кофейня и цех (макет: подложка 1040×368) */
.delivery-card--coffee { min-height: 368px; }
.dc-art--coffee-photos  { left: 449px;   top: 67px;   width: 578px; z-index: 1; }
.dc-art--coffee-new     { left: 9px;     top: -20px;  width: 95px;  }
.dc-art--coffee-macaron { left: 753.2px; top: 19px;   width: 135px; }
.dc-art--coffee-cocoa {
  left: 424.7px;
  top: 252.8px;
  width: 88.315px;
  height: 62.001px;
  transform: rotate(28.85deg) skewX(-2.6deg);
  transform-origin: center;
}
.dc-art--coffee-cocoa img {
  position: absolute;
  inset: -1.16% -9.56% -14.82% 0;
  width: auto;
  height: auto;
  max-width: none;
}

/* Карточка 2 — Вендинги (макет: подложка 1040×288) */
.delivery-card--vending {
  min-height: 288px;
  padding-top: 44.5px;
}
.dc-art--vending-photos   { left: 443.9px; top: 15.3px;  width: 588px; z-index: 1; }
.dc-art--vending-badge    { left: 781.2px; top: -19.2px; width: 144px; }
.dc-art--vending-sticker3 { left: 405px;   top: 173px; width: 80px;  }

/* Карточка 3 — Доставка до дверей (макет: подложка 1040×368).
   Три фото Figma отдала отдельными файлами — склеены в одну панель по их
   координатам, чтобы карточка была устроена так же, как две первые. */
.delivery-card--door {
  min-height: 368px;
  padding-top: 45px;
  padding-left: 47px;
}
.dc-art--door-photos  { left: 445px; top: 59.9px; width: 573px; z-index: 1; }
.dc-art--door-sticker { left: 591px; top: 199px;  width: 140px; }

.delivery-card__content {
  max-width: 440px;
  position: relative;
  z-index: 3;
}

.delivery-card--coffee .delivery-card__content {
  width: 400px;
}

.delivery-card--door .delivery-card__content {
  width: 416px;
}

.delivery-card__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: #401C0C;
  margin-bottom: 21px;
  line-height: 0.95;
  text-transform: uppercase;
}

.delivery-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.23;
  color: #401C0C;
  margin-bottom: 20px;
}

.delivery-card--coffee .delivery-card__desc {
  margin-bottom: 47px;
}

.delivery-card--door .delivery-card__title {
  margin-bottom: 24px;
}

.delivery-card--door .delivery-card__desc {
  margin-bottom: 40px;
}

.delivery-card--vending .delivery-card__desc {
  margin-bottom: 36px;
}

.delivery-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #401C0C;
  margin-bottom: 24px;
  line-height: 1.23;
}

.delivery-card__meta-icon {
  flex-shrink: 0;
}

.delivery-card__meta-icon--clock {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.delivery-card__meta--address {
  gap: 9px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 300;
  line-height: 26px;
  text-transform: uppercase;
}

.delivery-card--coffee .delivery-card__meta {
  margin-bottom: 31px;
}

/* Часы работы опускаем на 1.5px относительно строки адреса — они вставали
   чуть выше своей иконки. Сдвиг именно через position:relative: margin-top
   на <br> (первый подход) не работает, вертикальные отступы к строчным
   элементам не применяются, а line-height двигал бы обе строки сразу. */
.delivery-card__hours {
  position: relative;
  top: 1.5px;
}

.delivery-card--door .delivery-card__meta {
  line-height: 18.6667px;
  margin-bottom: 34px;
}

.delivery-card__address-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.delivery-card__address-link:hover {
  color: #B01E2B;
  text-decoration: underline;
}

.delivery-card__meta-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding-top: 4px;
}

.delivery-card__meta-icon--pin {
  width: 17px;
  height: 21px;
}

.delivery-card__action-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.delivery-card--coffee .delivery-card__content > .btn,
.delivery-card--vending .delivery-card__content > .btn {
  width: 202px;
  min-width: 202px;
}

/* Точный размер кнопки из Figma (258x46, padding 14/27/15) —
   отдельно от общего .btn--pill, у которого паддинг чуть другой */
.delivery-card__cta {
  width: 258px;
  height: 46px;
  padding: 14px 27px 15px;
  box-sizing: border-box;
  white-space: nowrap;
}

.delivery-apps {
  display: flex;
  gap: 5px;
  align-items: center;
}

.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-btn:hover {
  transform: scale(1.02);
  opacity: 0.85;
}

.app-btn img {
  display: block;
}

@media (min-width: 861px) ,  (width > 860px) {
  /* Коробка держит шаг ряда: канва иконки шире неё и вылезает симметрично,
     поэтому центры соседних иконок стоят через 46 + 5 = 51px — как в макете. */
  .delivery-apps .app-btn {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    /* [7] Внутри SVG-иконки запечена тень; при увеличении канвы до 77.79px
       (см. ниже) она масштабируется вместе с кругом и превращается в
       широкий белый ореол, наползающий на соседние кнопки. Кружим саму
       коробку в маску того же диаметра — лишний ореол просто обрезается,
       видимым остаётся ровно 46px круга. */
    border-radius: 50%;
    overflow: hidden;
  }

  .delivery-apps .app-btn img {
    /* Канва SVG 49×49, а сам кружок в ней — circle r=14.5, то есть 29 единиц
       из 49 (остальное занимает обрезанная вьюбоксом тень: 8 единиц слева,
       12 справа). При выводе канвы в 46px кружок получался 29/49 × 46 = 27,
       вдвое меньше соседней кнопки. В макете (design-reference/05-delivery.png)
       кружок 46px — ровно в высоту кнопки: центры трёх иконок стоят через
       51px при диаметре 46. Поэтому канву выводим в 46 × 49/29 = 77.79px,
       а сдвиг на 3.18px компенсирует ту самую асимметрию 8/12, из-за которой
       центр кружка лежит не в центре канвы.
       Тень внутри файла масштабируется вместе с ним — если её размер важен,
       нужен экспорт иконок под реальный размер. */
    /* Глобальное img { max-width: 100% } иначе режет ширину по коробке 46px,
       а flex-shrink ужимал картинку обратно до её размера. */
    flex: 0 0 auto;
    max-width: none;
    width: 77.79px;
    height: 77.79px;
    transform: translate(3.18px, 3.18px);
    /* Канва шире кружка и заходит на соседа примерно на 8px; кликабельной
       остаётся коробка 46px, которая и совпадает с кружком. */
    pointer-events: none;
  }
}

/* Flow layout belongs only to the separate 860px tablet design.  In the
   861–1199 range the fixed 1200px desktop composition is uniformly scaled. */
@media (max-width: 860px) {
  .delivery-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 0;
  }
  .dc-art {
    position: static;
    max-width: 100%;
  }
  .dc-art--coffee-photos,
  .dc-art--vending-photos,
  .dc-art--door-photos { width: 54%; }
  .dc-art--coffee-new,
  .dc-art--coffee-macaron,
  .dc-art--vending-badge,
  .dc-art--vending-sticker3,
  .dc-art--door-sticker { display: none; }
}

/* =========================================
   SOSTAV PAGE
========================================= */

.sostav-page {
  background: #FFF6EB;
  /* У последней карточки тень выходит за границу main на 28px. Общий
     .site-main { overflow:hidden } обрезал её прямо перед футером. */
  overflow: visible;
}

.sostav-section {
  /* [13].2 — раньше нижний паддинг 2px, тень (4px 4px 24px) последней
     плашки резалась «на нолике». Даём +30px запаса, чтобы тень плавно
     сошла до фона. */
  padding: 160px 0 34px;
}

.sostav-section__inner {
  max-width: 1104px; /* 1040 контент + 2×32 паддинг */
  margin: 0 auto;
  padding: 0 32px;
}

/* Header: заголовок слева (437px), звезда+аллергены справа (Figma 605:154) */
.sostav-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 87px;
  width: 962px;
  margin-bottom: 56px;
}

.sostav-title {
  width: 437px;
  flex-shrink: 0;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 50px;
  font-weight: 100;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #401C0C;
  line-height: 1.14;
  white-space: nowrap;
  margin: 7px 0 0;
}

.sostav-allergens {
  display: flex;
  align-items: flex-start;
  gap: 53px;
  width: 438px;
  flex-shrink: 0;
}

.sostav-allergens__star {
  width: 22px;
  height: 22px;
  margin-top: 25px;
  flex-shrink: 0;
}

.sostav-allergens__text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 18px;
  color: #401C0C;
  margin: 0;
  width: 363px;
}
.sostav-allergens__text strong { font-weight: 500; }

/* List (Figma: card gap 28px) */
.sostav-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Item card: 1040×202+, неоморфная "тень впуклая" как у меню (Figma 605:160) */
.sostav-item {
  display: flex;
  gap: 42px;
  align-items: center;
  width: 1040px;
  /* min-height, а не height: длинные составы (Камамбер, Голубой сыр…)
     растят карточку, а не выпирают за её края */
  height: auto;
  min-height: 202px;
  box-sizing: border-box;
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  border-radius: 30px;
  padding: 24px 37px;
  box-shadow: 4px 4px 24px rgba(214, 191, 167, 0.45), inset -4px -4px 10px #FFFFFF, inset 2px 2px 11px rgba(231, 205, 177, 0.9);
}

/* [#102] Все 28 фото переэкспортированы на общий холст (тело макарона
   нормализовано по альфа-боксу, ± медиана), поэтому карточкам больше не
   нужна отдельная более высокая версия под «крупные» кропы. */
.sostav-item__photo {
  width: 363.333px;
  height: 114.667px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sostav-item__photo img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  width: auto;
  height: auto;
  display: block;
  transform: translate(-50%, -50%) scale(0.333333);
}

.sostav-item__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 569px;
  max-width: 100%;
}

.sostav-item__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 34px;
  font-weight: 100;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #401C0C;
  line-height: normal;
  margin: 0;
}

.sostav-item__desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 16px;
  color: #401C0C;
  margin: 0;
}

/* Пищевая ценность под составом — Figma 1279:30 (ПК), 1289:35 (планшет),
   1289:38 (телефон).
   Данные — из технического документа «Пищевая и энергетическая ценность
   продукции», столбцы «в 1 порц. блюда» (порция 30 г); хранятся числами
   в inc/flavours.php, здесь только оформление.

   Плашка сделана тем же приёмом, что и сама карточка: тот же градиент и
   та же вогнутая тень, только радиус 80px вместо 30px. Отдельной рамки в
   макете нет — объём даёт внутренняя тень.

   В макете указаны padding 14/20/12 при фиксированной высоте 36: вместе
   это даёт content-box в 10px, куда строка в 14px не помещается. Поэтому
   боковые отступы берём из макета как есть, а по вертикали центрируем в
   той же высоте 36 — визуально это ровно то, что нарисовано. */
.sostav-item__kbzhu {
  align-self: flex-start;
  display: inline-flex;
  /* ширину задаёт содержимое, а не растянутый внутренний блок */
  width: auto;
  align-items: center;
  justify-content: center;
  height: 36px;
  /* В колонке .sostav-item__text зазор 10px, а в макете между составом и
     плашкой 14px — добираем разницу. */
  margin: 4px 0 0;
  padding: 0 20px;
  border-radius: 80px;
  /* Градиент и тени — дословно из дев-режима Figma. Угол 93.77° там уже
     пересчитан под коробку плашки; тот же градиент стоит и у самой
     карточки состава. */
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 4px 4px 24px rgba(214, 191, 167, 0.45),
              inset -4px -4px 10px #FFFFFF,
              inset 2px 2px 11px rgba(231, 205, 177, 0.9);
  font-family: var(--font-body);
  font-size: 14px;
  /* Из дев-режима Figma. Было normal (~16), из-за чего строка занимала
     на два пикселя больше и текст сидел в плашке не по центру. */
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(64, 28, 12, 0.8);
  white-space: nowrap;
}

/* Всё содержимое плашки — ОДИН элемент внутри flex-контейнера.
   Пока подпись и числа были двумя соседями, flex считал их двумя
   элементами и переносил каждый отдельно: фраза рвалась на «КБЖУ на 1»
   и «шт.:», а числа уезжали вбок. */
.sostav-item__kbzhu-in {
  display: block;
}

.sostav-item__kbzhu-label {
  font-weight: 600;
  /* «КБЖУ на 1 шт.:» не разрывается: внутри неразрывный пробел, но
     подстраховываемся и на случай переноса по двоеточию. */
  white-space: nowrap;
}

/* На планшете и телефоне подпись занимает свою строку, данные — свою.
   Перенос задан, а не отдан на усмотрение браузера: строки у вкусов
   разной длины («180 кКал / 740 кДж | 4 г | 10 г | 17 г» против
   «110 кКал / 450 кДж | 2,5 г | 4,5 г | 15 г»), и при свободном
   переносе часть карточек ломалась в произвольном месте, а часть — нет.
   С заданным переносом раскладка одинакова у всех 28.
   [99]: на планшете дизайнер, наоборот, просит уместить весь расчёт в
   одну строку — там подпись НЕ переносится, перенос оставлен только
   телефону (≤430). */
@media (max-width: 430px) {
  .sostav-item__kbzhu-label {
    display: block;
  }
}

/* Планшет: между составом и плашкой 12px (Figma 1289:42).
   [99]: плашка должна уместить всю строку «КБЖУ на 1 шт.: … 17 г» в
   один ряд у всех 28 вкусов — bleed за пределы текстовой колонки, как
   уже сделано для телефона, чтобы не резать текст переносом. */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .sostav-item__kbzhu {
    margin-top: 2px;
    width: max-content;
    /* 844 = канва 860 минус те же 16px: внутри зум-полосы 100vw даёт сырое
       окно, а не канву, и плашка ужималась тем сильнее, чем уже экран. */
    max-width: 844px;
    height: auto;
    min-height: 36px;
    padding: 8px 12px;
    white-space: nowrap;
  }
}
/* [99] снят вместе с автоскейлом (правки 17.10, п. 6): на 431–505 px плашка
   КБЖУ не помещалась, потому что полоса 431–860 перетекала и карточка
   физически сужалась. Теперь полоса держит CSS-вьюпорт 860, карточка везде
   той же ширины, что и на 860, и строка помещается без вылета за край.
   Само правило опиралось на 100vw, который под zoom считается от реального
   окна и дал бы плашку уже карточки. */

/* Телефон — Figma 1289:38: высота 56, кегль 14, строка переносится на две.
   Ширина в макете 308, но текстовая колонка карточки уже (277 при экране
   430), поэтому плашка тянется по колонке и встаёт вровень с составом —
   308 просто не поместились бы.

   Раньше здесь стоял кегль 12 «под уменьшенный масштаб карточки». Это
   была ошибка чтения: правило font-size:12px для состава в этом же файле
   перебивается более поздним, и на телефоне состав набран 16px, как в
   макете. Уменьшать плашку было не от чего — оттого она и выбивалась. */
@media (max-width: 430px) {
  /* Коробка — дословно из дев-режима Figma (1289:38). */
  .sostav-item__kbzhu {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 20px 12px;
    gap: 10px;
    width: 308px;
    /* 56 как в макете, но не жёстко: если строка данных у длинного вкуса
       не уместится, плашка вырастет, а не обрежет текст. На проектных
       430 две строки по 14 дают 28 при внутренней высоте 30 — выходит
       ровно 56. */
    min-height: 56px;
    height: auto;
    /* [101]: плашка шире текстовой колонки (277 при экране 430) и
       намеренно выходит за неё — в макете она тоже шире своего
       контейнера. На 430 запас до края экрана 61px с каждой стороны
       (даёт ровно 308). Но при таком же запасе на узких телефонах
       (320–414) самая длинная строка цифр (до 251px) не помещалась и
       рвалась на 3-ю строку — дизайнер просил всегда 2 строки.
       Уменьшаем запас до 20px с каждой стороны: этого хватает на самом
       узком поддерживаемом экране (320px), а на 430 по-прежнему
       ограничивает сверху width:308px. */
    max-width: calc(100vw - 24px);
    font-size: 14px;
    line-height: 14px;
    white-space: normal;
  }
}

/* [101]: на самых узких телефонах (320–344) даже увеличенного max-width
   не хватает — боковой паддинг 20px съедает место у самой длинной
   строки цифр (до 251px). Слегка ужимаем паддинг, чтобы плашка не
   доходила до 3 строк ни у одного из 28 вкусов. */
@media (max-width: 344px) {
  .sostav-item__kbzhu { padding-left: 14px; padding-right: 14px; }
}

/* Плашка стоит вровень с началом текстовой колонки (не по центру), а
   левый отступ этой колонки меняется по мере роста экрана (26 / 45 /
   61px — см. .sostav-item и .sostav-item__text выше). Единый
   max-width:calc(100vw - 24px) считает от 0, поэтому у части ширин
   плашка вылезала за правый край экрана (замер: 344px → 353px
   scrollWidth). Подрезаем max-width по фактическому левому отступу на
   каждом отрезке + 4px запаса. */
@media (max-width: 340px) {
  .sostav-item__kbzhu { max-width: calc(100vw - 30px); }
}
@media (min-width: 341px) and (max-width: 379px) {
  .sostav-item__kbzhu { max-width: calc(100vw - 49px); }
}
@media (min-width: 380px) and (max-width: 430px) {
  .sostav-item__kbzhu { max-width: calc(100vw - 65px); }
}

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .sostav-item {
    width: 100%;
    height: auto;
    min-height: 202px;
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
    align-items: flex-start;
  }
  .sostav-item__photo { width: 280px; }
  .sostav-item__text { width: 100%; }
  .sostav-header {
    width: 100%;
    flex-direction: column;
    gap: 20px;
  }
  .sostav-allergens { width: 100%; gap: 20px; }
  .sostav-allergens__star { margin-top: 2px; }
  .sostav-allergens__text { width: auto; }
}

/* Mobile is a single 430px canvas. Do not create a fourth layout in the
   431–640px tablet bucket; the root zoom scales the 860px composition. */
@media (max-width: 430px) {
  .sostav-item__photo { width: 240px; }
  .sostav-title { font-size: 34px; }
  .sostav-item__name { font-size: 26px; }
  .sostav-section__inner { padding: 0 16px; }
}

/* =========================================
   TEAM PAGE
========================================= */

.team-page {
  background: #FFF6EB;
  min-height: 80vh;
}

.team-section {
  padding: 160px 0 60px;
}

.team-section__inner {
  width: 1040px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 0;
}

/* Header */
.team-header {
  display: flex;
  align-items: flex-start;
  gap: 87px;
  width: 1089px;
  height: 58px;
  margin-bottom: 76px;
}

.team-header__left {
  display: flex;
  width: 385px;
  flex-shrink: 0;
}

.team-title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #401C0C;
  line-height: 1.14;
  margin: 0;
  white-space: nowrap;
}

.team-title__star {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.team-header__right {
  display: flex;
  align-items: center;
  gap: 53px;
  width: 617px;
  margin-top: 1.5px;
  padding: 0;
}

.team-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.2;
  color: #401C0C;
  margin: 0;
  width: 542px;
  flex: 0 0 542px;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 236px);
  column-gap: 32px;
  row-gap: 47px;
}

/* Card */
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 236px;
  padding-top: 14px;
}

.team-card__badge {
  position: absolute;
  top: 0;
  left: 21px;
  z-index: 2;
  background: #B01E2B;
  color: #FFF6EB;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 14px;
  white-space: nowrap;
}

.team-card__badge--special {
  position: absolute;
  z-index: 4;
  top: -40px;
  left: -132px;
  width: 157px;
  height: 145.5px;
  background: url('img/team/sticker-special-figma.png') center / contain no-repeat;
  pointer-events: none;
  transform: translateY(var(--team-scroll-offset, 0px));
}

/* Photo placeholder */
.team-card__photo {
  width: 100%;
  aspect-ratio: 236 / 289;
  background: #EFE0CC;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.team-card__photo picture,
.team-card__photo img {
  width: 100%;
  height: 100%;
}

.team-card__photo picture {
  display: block;
}

.team-card__photo img {
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Info */
.team-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.team-card__name {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: #401C0C;
}

.team-card__role {
  font-family: var(--font-body);
  font-size: 13px;
  color: #401C0C;
  line-height: 1.23;
}

/* Stickers (decorative icons on some cards) */
.team-card__sticker {
  position: absolute;
  z-index: 3;
  width: 70px;
  height: 70px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  will-change: transform;
  /* team-stickers.js changes only this offset: 5px in the current scroll
     direction, without touching the sticker's Figma position. */
  --team-scroll-offset: 0px;
  transform: translateY(var(--team-scroll-offset));
}

.team-card__sticker--chef-hat {
  top: -62px; left: 127px; width: 108px; height: 115.5px;
  background-image: url('img/team/sticker-chef-figma.png');
}
.team-card__sticker--piping-bag {
  top: -55px; left: 170px; width: 110.5px; height: 124px;
  background-image: url('img/team/sticker-piping-figma.png');
}
.team-card__sticker--macaron {
  top: 176px; left: 172px; width: 128.5px; height: 127px;
  background-image: url('img/team/sticker-macaron-figma.png');
}
.team-card__sticker--flour-bag {
  top: 113px; left: -94px; width: 189px; height: 190px;
  background-image: url('img/team/sticker-flour-figma.png');
}

@media (prefers-reduced-motion: no-preference) {
  .team-card__sticker,
  .team-card__badge--special {
    transition: transform 80ms ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card__sticker,
  .team-card__badge--special { transition: none; }
}

/* Responsive */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .team-section { padding: 100px 0 61px; }
  .team-section__inner { width: 760px; max-width: calc(100% - 32px); }
  .team-header { flex-direction: column; align-items: flex-start; gap: 9px; width: 760px; height: auto; margin-bottom: 48px; }
  .team-header__right { gap: 20px; width: 760px; margin-top: 0; }
  .team-subtitle { width: 718px; flex-basis: 718px; }
  .team-subtitle br:first-of-type { display: none; }
  .team-grid { grid-template-columns: repeat(3, 236px); column-gap: 26px; row-gap: 43px; }
  .team-card__sticker--chef-hat { top: -36px; left: 146px; width: 84px; height: 90px; }
  .team-card__sticker--piping-bag { top: -42px; left: 434px; width: 91px; height: 102px; }
  .team-card__badge--special { top: -33px; left: 134px; width: 157px; height: 145.5px; }
  .team-card__sticker--macaron { top: 204px; left: 186px; width: 99.5px; height: 99px; }
  .team-card__sticker--flour-bag { top: 159px; left: -72px; width: 144.5px; height: 144px; }
}

@media (max-width: 430px) {
  .team-section { padding: 120px 0 72px; }
  .team-section__inner { width: 380px; max-width: calc(100% - 32px); padding: 0; }
  .team-header { gap: 10px; width: 381px; margin-bottom: 32px; }
  .team-header__left { width: auto; }
  .team-header__right, .team-subtitle { width: 381px; height: 77px; flex-basis: auto; }
  .team-title { font-size: 36px; line-height: 43px; }
  .team-subtitle { font-size: 15px; line-height: 19.25px; }
  .team-header__right { align-items: flex-start; gap: 0; }
  .team-title__star { display: none; }
  .team-grid { grid-template-columns: repeat(2, 179px); column-gap: 22px; row-gap: 32px; }
  .team-card { width: 179px; height: 301.555px; padding-top: 11px; gap: 18px; }
  .team-card:first-child { padding-top: 12.555px; }
  .team-card:last-child { padding-top: 10.565px; }
  .team-card__photo { width: 179px; height: 235px; aspect-ratio: auto; }
  .team-card__badge { top: 0; left: 12px; width: 106px; height: 22px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; }
  .team-card__name { font-size: 15px; line-height: normal; letter-spacing: 0; }
  .team-card__role { font-size: 12px; line-height: normal; }
  .team-card__info { gap: 4px; }
  .team-card__sticker--chef-hat { top: -22px; left: 137px; width: 58px; height: 62px; }
  .team-card__sticker--piping-bag { top: -179px; left: 149px; width: 54px; height: 61px; }
  .team-card__badge--special { top: 24px; left: -80px; width: 137.5px; height: 133px; }
  .team-card__sticker--macaron { top: 138px; left: 138px; width: 99.5px; height: 99px; }
  .team-card__sticker--flour-bag { top: 147px; left: -41px; width: 90.5px; height: 90px; }
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  background: #FFF6EB;
  padding: 0;
  width: 100%;
  position: relative;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 113px 80px 67px;
  position: relative;
}

.footer-logo-svg {
  display: block;
  width: 100%;
  max-width: 1041px;
  margin: 0 auto 68px;
}

.footer-logo {
  display: block;
  width: 100%;
  height: auto;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-col-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-col-nav a {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  color: #401C0C;
  transition: 0.2s ease;
}

.footer-col-nav a:hover {
  color: #B01E2B;
}

.footer-col-buttons {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.footer-col-buttons .btn {
  transition-property: transform, box-shadow, background-color, color, opacity;
}

.footer-social-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 861px) ,  (width > 860px) {
  .footer-social-row {
    margin-left: 0;
    margin-right: 0;
  }

  /* [62] Текущая Figma (451:429) задаёт кнопке и ряду иконок общую ширину
     176px. Четыре ячейки по 38px с зазорами 8px занимают те же 176px. */
  .footer-col-buttons .btn {
    min-width: 0;
    width: 176px;
    padding: 0 14px;
  }

  /* Use the 58px Figma exports so each visible social mark fills its 38px
     cell; the desktop-era 49px assets only painted a 33px red circle. */
  .footer-social-item:nth-child(1) img { content: url("img/footer-phone-max.svg"); }
  .footer-social-item:nth-child(2) img { content: url("img/footer-phone-tg.svg"); }
  .footer-social-item:nth-child(3) img { content: url("img/footer-phone-inst.svg"); }
  .footer-social-item:nth-child(4) img { content: url("img/footer-phone-call.svg"); }

  .footer-social-row .footer-social-item img {
    /* The red face spans [8,46) of the 58px SVG; align it with the CTA. */
    transform: translate(2px, 2px);
  }
}

.footer-social-item {
  /* Figma 188:1177: each social hit area is 38px. */
  --social-hover-scale: 1.059;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-item img {
  /* Desktop transforms above align the visible faces to Figma 451:429. */
  display: block;
  width: 58px;
  height: 58px;
  max-width: none;
  transform: translate(-8px, 0);
}

.footer-social-item:hover {
  transform: scale(var(--social-hover-scale));
  opacity: 0.85;
}

.footer-col-contact {
  font-size: 12px;
  color: #401C0C;
  text-transform: uppercase;
  line-height: 1.17;
}

.footer-col-contact__label {
  font-weight: 500;
  margin-bottom: 19px;
}

.footer-col-contact__phone {
  font-weight: 600;
  margin-bottom: 19px;
}

.footer-col-contact__address {
  font-weight: 400;
  line-height: 17px;
}

/* Правка [47].1 — телефон и адрес стали кликабельными (tel: / карта).
   Сохраняем визуал: цвет, вес, без подчёркивания на всех ширинах.
   Изменение касается footer.php, не только телефона; десктоп визуально
   остаётся прежним. */
.footer-col-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col-contact a:hover { color: #B01E2B; }

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, #DA1B2C, #9D1F2A);
  margin-bottom: 20px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.footer-legal-main {
  display: flex;
  gap: 12px;
}

.footer-legal span,
.footer-legal a {
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  color: #401C0C;
  line-height: 1.222222;
  text-align: right;
}

.footer-legal a:hover {
  color: #B01E2B;
}

/* =========================================
   PLACEHOLDER IMAGE
========================================= */

.placeholder-img {
  border-radius: 3px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .container {
    padding: 0 30px;
  }

  .constructor-card {
    flex-direction: column;
  }

  .constructor-tabs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  /* In the horizontal (scrollable) layout each size tab must size to its
     content — the base width:100% makes flex items shrink and wrap the
     label onto several lines (broke on tablet 601–1024px). */
  .constructor-tabs .tab-btn {
    width: auto;
    flex: 0 0 auto;
  }

  .constructor-tabs .tab-text {
    white-space: nowrap;
  }

  .macaron-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .set-card {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    height: auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .cert-card__content,
  .cert-card__btn,
  .cert-card--electronic .cert-card__visual,
  .cert-card__visual--pair,
  .cert-card__address {
    position: static;
    left: auto; top: auto; right: auto; bottom: auto;
    width: auto;
    max-width: 100%;
    transform: none;
  }

  .cert-card__sticker,
  .cert-card__sticker--dot,
  .cert-card__sticker--photo { display: none; }

  .cert-photo {
    position: relative;
    display: inline-block;
    margin: 0 6px;
  }

  .cert-card__address-row {
    justify-content: center;
  }

  .delivery-card {
    flex-direction: column;
    gap: 30px;
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* =========================================
   MOBILE (≤600px, макет 430px)
========================================= */
@media (max-width: 430px) {
  .container { padding: 0 18px; }
  .section-padding { padding: 50px 0; }
  .section-title { font-size: 34px; }

  /* CONSTRUCTOR */
  .constructor-content-wrap { flex: 1; width: 100%; }
  .constructor-content {
    padding: 16px;
    border-radius: 0 32px 20px 20px;
  }
  .macaron-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .macaron-name { font-size: 15px; }
  .macaron-photo { height: 78px; }
  .constructor-tabs { gap: 8px; }
  .tab-btn { flex: 0 0 auto; }
  .constructor-actions-box .btn { width: 100%; }

  /* SETS */
  .set-card { padding: 28px 22px; }
  .set-card__title { font-size: 26px; }
  .sets-dec-main { font-size: 52px; }

  /* CERT */
  .cert-card { padding: 34px 26px; }
  .cert-card__title { font-size: 28px; }
  .cert-card__sticker--left { left: -18px; }
  .cert-card__sticker--right { right: -18px; }
  .cert-dec-main { font-size: 46px; }

  /* DELIVERY */
  .delivery-grid { min-width: 0; }
  .delivery-card { padding: 30px 20px; text-align: center; min-width: 0; }
  .delivery-card__content { max-width: 100%; width: 100%; min-width: 0; }
  .delivery-card__title { font-size: 23px; }
  .delivery-card__desc { margin-left: auto; margin-right: auto; }
  .delivery-card { flex-direction: column; }
  .dc-art--coffee-photos,
  .dc-art--vending-photos,
  .dc-art--door-photos { width: 100%; margin-top: 22px; }

  /* FOOTER */
  .footer-logo-svg { max-width: 100%; }
  .footer-columns { flex-direction: column; }
  .footer-legal-main { flex-direction: column; gap: 6px; }
  .footer-legal span, .footer-legal a { font-size: 11px; }
}

/* =========================================
   PAGE: Доставка и оплата (Figma 451:33)
========================================= */
.dp-page {
  height: 2373px;
  overflow: hidden;
  background: #FFF6EB;
}
.dp-wrap {
  position: relative;
  width: 1200px;
  max-width: none;
  height: 2373px;
  margin: 0 auto;
  padding: 0;
}
.dp-decor {
  position: absolute;
  /* Прижата к краю ОКНА, а не к колонке 1200px. При ширине ровно 1200 это
     одно и то же, поэтому в макете разницы не видно; шире — контейнер
     центрируется и декор отходил от края (при 1280 — на 40px). */
  left: 0;
  top: 160px;
  width: 354.582px;
  height: 2153px;
  pointer-events: none;
  user-select: none;
}
/* Шире 1200 колонка центрируется, и декор надо дотянуть до края окна.
   Ниже 1200 так нельзя: в полосе 861–1199 страница сжата через zoom, а vw
   считается от настоящего окна, не от сжатой канвы, — сдвиг вышел бы
   неверным (при 960px декор уехал бы внутрь примерно на 96px). Там колонка
   и есть окно, left: 0 уже у края. */
@media (min-width: 1201px) {
  .dp-decor {
    left: 50%;
    transform: translateX(-50vw);
  }
}

.dp-content {
  position: absolute;
  top: 160px;
  left: 457.408px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 66px;
  width: 778px;
  height: 2153px;
  color: #401C0C;
}
.dp-title {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 50px;
  line-height: normal;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  text-wrap: pretty;
  margin: 0 0 -23px;
}
.dp-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
}
.dp-block:nth-of-type(1) { width: 562px; }
.dp-block:nth-of-type(2) { width: 563px; }
.dp-block:nth-of-type(3) { width: 395px; }
.dp-block:nth-of-type(4) { width: 506px; }
.dp-block:nth-of-type(5),
.dp-block:nth-of-type(6) { width: 738px; }
.dp-block:nth-of-type(7) { width: 766px; }
.dp-block:nth-of-type(8) { width: 670px; }
/* [69] Доп. перенос «ТЦ «Зелёный берег»» / «(вход со стороны «HOFF»)» нужен
   только на телефоне (там HOFF раньше повисал один на строке) — на ПК/планшете
   исходная 2-строчная раскладка остаётся, лишнюю строку не показываем. */
.dp-hoff-break { display: none; }
.dp-h2 {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 34px;
  line-height: normal;
  letter-spacing: 2.04px;
  text-transform: uppercase;
  text-wrap: pretty;
  white-space: nowrap;
  margin: 0;
}
.dp-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.dp-list li {
  position: relative;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  text-wrap: pretty;
}
.dp-list strong,
.dp-req strong { font-weight: 500; }
.dp-list em { font-style: italic; }
.dp-list--star li,
.dp-list--dot li { padding-left: 19px; }
.dp-list--star li {
  min-height: 32px;
  padding-left: 37px;
}
.dp-list--star li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4.5px;
  width: 20px;
  height: 23px;
  background: url("img/icon-dp-star.svg") center / contain no-repeat;
}
.dp-list--dot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 8px;
  height: 8px;
  background: url("img/icon-dp-dot.svg") center / contain no-repeat;
}
.dp-list--icon li {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 22px;
}
.dp-ic {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
/* Иконки экспортированы БЕЗ прозрачности: это непрозрачные квадраты 84×84
   с запечённым фоном #FFF6EB. Картинка 42px торчит из своего бокса 22px
   на 8px вверх и 12px вниз, поэтому каждая следующая иконка накрывала
   своим плоским фоном мягкую тень предыдущей — снизу появлялась жёсткая
   прямоугольная кромка. Последней перекрывать нечем, из-за этого страдали
   ровно первые две (правка клиента «две первые иконки с обрезанными тенями»).

   mix-blend-mode: darken оставляет от каждого пикселя более тёмный из двух.
   Фон иконки в точности равен фону страницы (#FFF6EB), поэтому поверх
   ничего не закрашивается, а тень соседа остаётся видна.
   Полноценное решение — переэкспорт PNG с альфой; тогда это правило
   можно убрать. */
.dp-ic img {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 42px;
  height: 42px;
  max-width: none;
  mix-blend-mode: darken;
}
.dp-accent {
  position: relative;
  flex-shrink: 0;
  width: 491px;
  height: 147px;
  margin: 0;
}
.dp-accent__script {
  position: absolute;
  top: 0;
  left: 4px;
  font-family: var(--font-script);
  color: #B01E2B;
  font-size: 72px;
  line-height: 43px;
  white-space: nowrap;
}
.dp-accent__text {
  position: absolute;
  top: 54px;
  left: 0;
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 27px;
  line-height: normal;
  letter-spacing: 1.62px;
  white-space: nowrap;
}
.dp-req {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  text-wrap: pretty;
}
.dp-req p { margin: 0 0 6px; }
.dp-req p:last-child { margin-bottom: 0; }
/* Подвал на «Доставке и оплате» раньше прятался: во фрейме Figma
   (design-reference/07-delivery-payment-info.png) страница обрывается на
   «Реквизитах», футера в экспорте нет. Но это особенность фрейма, а не
   страницы — клиент в правках просит подвал вернуть. */

/* На десктопе реквизиты могут занимать больше места, чем фиксированная
   канва 2373px. Оставляем её минимальной высотой, а страницу и текстовый
   блок переводим в поток, чтобы футер начинался после последней строки. */
@media (min-width: 861px) ,  (width > 860px) {
  .dp-page { height: auto; min-height: 2373px; overflow-x: clip; overflow-y: visible; }
  .dp-wrap { height: auto; min-height: 2373px; padding: 160px 0 60px; box-sizing: border-box; }
  .dp-content { position: relative; top: auto; left: 457.408px; height: auto; }
}

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  /* Доставка и оплата — планшет 860px (Figma node 451:188,
     fileKey TWaDkrs6TlwgqgOq4idaaT). Прежний вариант триггерился на
     900-1024px (легаси-граница) и полностью прятал декоративный
     "PAOLA" на полях (display:none) — в макете он остаётся, просто
     обрезан левым краем вьюпорта. Контент тоже был сдвинут к самому
     левому краю (padding 40px) вместо отступа 247px, который в
     макете освобождает место под этот логотип. */
  .dp-page { height: 2352px; overflow: hidden; }
  .dp-wrap {
    width: 860px;
    max-width: none;
    height: 2352px;
    padding: 0;
  }
  .dp-decor {
    display: block;
    left: -100px;
    top: 139px;
    width: 280px;
    height: auto;
  }
  .dp-content {
    position: absolute;
    top: 139px;
    left: 247px;
    width: 563px;
    height: 2153px;
    gap: 66px;
  }
  .dp-title { margin-bottom: -16px; font-size: 40px; }
  .dp-block { width: 563px !important; }
  .dp-h2 { font-size: 28px; }
  .dp-accent__script { font-size: 60px; }
  .dp-accent__text { font-size: 24px; }
}

@media (max-width: 430px) {
  /* Доставка и оплата — моб 430px (Figma node 451:314). Заголовок
     страницы здесь красный (#B01E2B), а не унаследованный коричневый
     .dp-content — так в макете именно на этом брейкпоинте. Подзаголовки
     блоков (.dp-h2) в макете 34px — то есть ТЕ ЖЕ, что на десктопе/
     планшете, а не уменьшенные 23px, как было раньше. Декоративный
     "PAOLA" (.dp-decor) в мобильном макете 451:314 отсутствует вовсе —
     раньше это скрывалось общим легаси-блоком ≤1024px, который теперь
     сужен до 431-860px, так что для мобилки нужно явно погасить. */
  .dp-page { height: auto; min-height: 100vh; overflow: visible; }
  .dp-wrap {
    position: relative;
    width: 100%;
    height: auto;
    padding: 120px 25px 56px;
  }
  .dp-decor { display: none; }
  .dp-content {
    position: static;
    width: 100%;
    height: auto;
    gap: 46px;
  }
  .dp-block { width: 100% !important; }
  .dp-title {
    max-width: 100%;
    margin-bottom: -12px;
    font-size: 38px;
    letter-spacing: 2.28px;
    color: #B01E2B;
    white-space: normal;
  }
  .dp-h2 {
    max-width: 100%;
    font-size: 34px;
    letter-spacing: 2.04px;
    white-space: normal;
  }
  .dp-list li { max-width: 100%; }
  .dp-accent__script { font-size: 48px; }
  .dp-accent { width: 100%; height: 125px; }
  .dp-accent__text {
    top: 48px;
    max-width: 100%;
    font-size: 20px;
    white-space: normal;
  }
}

/* =========================================
   PAGE: Корпоративные подарки (Figma 481:34)
========================================= */
.cp-page { background: #FFF6EB; }
.cp-page + .site-footer .footer-inner { padding-top: 55px; }

/* Слайд 1 — точная сборка по Figma-дампу (1200x675) + реальные PNG-стикеры
   из папки материалов. Карточка использует тот же приём "рваного низа"
   (clip-path zigzag), что и .hero-card на главной, только со своими
   размерами/позицией/поворотом (-5.83deg вместо -5deg). */
.cp-hero {
  position: relative;
  /* В макете баннер ровно 1200×675, а карточка внутри лежит на абсолютных
     координатах, поэтому высоту нельзя ужимать: стоял max-height:90vh, и на
     коротком вьюпорте (зум браузера 150%+ на ноутбуке даёт <687 CSS-px высоты)
     секция становилась ниже 618px — низа карточки с зубцами и кнопкой уже не
     хватало места, overflow:hidden срезал их. */
  height: 675px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Геометрия — из Figma-ноды 484:2 (get_design_context): Union 481:183 отдаёт
   неповёрнутый размер 567.097×434.456 и rotate(-5.83deg), а bbox повёрнутой
   карточки — 608.27×489.78 в точке (275.83, 127.81) внутри баннера 1200×675.
   Отсюда центр карточки (579.97, 372.70) → left:50% + margin-left:-303.58,
   top:155.47.

   Зубцы низа — из экспортированного пути карточки (svg 567.097×434.456):
   ровно 20 зубцов с шагом 28.3549px (= 5% ширины), вершины лежат на самой
   нижней грани (100% высоты), впадины на y=423.753 (= 97.536%). Раньше здесь
   стоял шаг 2% и полка 90/94%, из-за чего низ карточки заканчивался на 26px
   выше макета, а зубцов было 25 вместо 20. Проценты, а не path(), — чтобы
   правило пережило планшетный/мобильный блоки, где карточка другого размера. */
.cp-hero__card {
  position: absolute;
  left: 50%;
  top: 155.47px;
  width: 567.097px;
  height: 434.456px;
  margin-left: -303.58px;
  padding: 56px 62px 72px;
  box-sizing: border-box;
  text-align: center;
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 4px 4px 15px rgba(70, 59, 47, 0.65);
  border-radius: 3px;
  transform: rotate(-5.83deg);
  z-index: 2;
  /* Зубчатый нижний край. Острия и впадины скруглены радиусом 2px, как в
     макете: замер по эталону 08-corporate-gifts.png в собственной системе
     координат карточки (с обратным поворотом на 5.83°) дал период 28.4px —
     ровно нынешние 5% ширины — и плоскую площадку около 2px на каждой
     вершине, то есть дугу радиуса ≈2.

     Остаёмся на polygon() в процентах, хотя дуги им приходится описывать
     точками. Причины: правило одно на все брейкпоинты (телефон и планшет
     переопределяют только размер, а на них ещё и height:auto), проценты
     тянут край вместе с карточкой, и clip-path так же, как прежде,
     обходится с box-shadow — у полигона верх поднят на -100px, чтобы тень
     над карточкой не срезалась. path() принимает только абсолютные
     пиксели и сломал бы и то, и другое.

     Вершины вынесены наружу на величину «просадки» дуги, поэтому крайние
     точки остались там же, где были у острого края: верх 97.536%, низ
     99.985% вместо 100% (0.065px), глубина 10.64px вместо 10.70.
     199 вершин — это 3.6 КБ, но около 600 байт после gzip: координаты
     однотипные и жмутся хорошо. */
  clip-path: polygon(
    0 -100px, 100% -100px, 100.000% 97.536%, 97.724% 99.886%,
    97.619% 99.960%, 97.501% 99.985%, 97.384% 99.957%, 97.280% 99.879%,
    95.225% 97.662%, 95.119% 97.584%, 95.000% 97.556%, 94.881% 97.584%,
    94.775% 97.662%, 92.725% 99.874%, 92.619% 99.952%, 92.500% 99.980%,
    92.381% 99.952%, 92.275% 99.874%, 90.225% 97.662%, 90.119% 97.584%,
    90.000% 97.556%, 89.881% 97.584%, 89.775% 97.662%, 87.725% 99.874%,
    87.619% 99.952%, 87.500% 99.980%, 87.381% 99.952%, 87.275% 99.874%,
    85.225% 97.662%, 85.119% 97.584%, 85.000% 97.556%, 84.881% 97.584%,
    84.775% 97.662%, 82.725% 99.874%, 82.619% 99.952%, 82.500% 99.980%,
    82.381% 99.952%, 82.275% 99.874%, 80.225% 97.662%, 80.119% 97.584%,
    80.000% 97.556%, 79.881% 97.584%, 79.775% 97.662%, 77.725% 99.874%,
    77.619% 99.952%, 77.500% 99.980%, 77.381% 99.952%, 77.275% 99.874%,
    75.225% 97.662%, 75.119% 97.584%, 75.000% 97.556%, 74.881% 97.584%,
    74.775% 97.662%, 72.725% 99.874%, 72.619% 99.952%, 72.500% 99.980%,
    72.381% 99.952%, 72.275% 99.874%, 70.225% 97.662%, 70.119% 97.584%,
    70.000% 97.556%, 69.881% 97.584%, 69.775% 97.662%, 67.725% 99.874%,
    67.619% 99.952%, 67.500% 99.980%, 67.381% 99.952%, 67.275% 99.874%,
    65.225% 97.662%, 65.119% 97.584%, 65.000% 97.556%, 64.881% 97.584%,
    64.775% 97.662%, 62.725% 99.874%, 62.619% 99.952%, 62.500% 99.980%,
    62.381% 99.952%, 62.275% 99.874%, 60.225% 97.662%, 60.119% 97.584%,
    60.000% 97.556%, 59.881% 97.584%, 59.775% 97.662%, 57.725% 99.874%,
    57.619% 99.952%, 57.500% 99.980%, 57.381% 99.952%, 57.275% 99.874%,
    55.225% 97.662%, 55.119% 97.584%, 55.000% 97.556%, 54.881% 97.584%,
    54.775% 97.662%, 52.725% 99.874%, 52.619% 99.952%, 52.500% 99.980%,
    52.381% 99.952%, 52.275% 99.874%, 50.225% 97.662%, 50.119% 97.584%,
    50.000% 97.556%, 49.881% 97.584%, 49.775% 97.662%, 47.725% 99.874%,
    47.619% 99.952%, 47.500% 99.980%, 47.381% 99.952%, 47.275% 99.874%,
    45.225% 97.662%, 45.119% 97.584%, 45.000% 97.556%, 44.881% 97.584%,
    44.775% 97.662%, 42.725% 99.874%, 42.619% 99.952%, 42.500% 99.980%,
    42.381% 99.952%, 42.275% 99.874%, 40.225% 97.662%, 40.119% 97.584%,
    40.000% 97.556%, 39.881% 97.584%, 39.775% 97.662%, 37.725% 99.874%,
    37.619% 99.952%, 37.500% 99.980%, 37.381% 99.952%, 37.275% 99.874%,
    35.225% 97.662%, 35.119% 97.584%, 35.000% 97.556%, 34.881% 97.584%,
    34.775% 97.662%, 32.725% 99.874%, 32.619% 99.952%, 32.500% 99.980%,
    32.381% 99.952%, 32.275% 99.874%, 30.225% 97.662%, 30.119% 97.584%,
    30.000% 97.556%, 29.881% 97.584%, 29.775% 97.662%, 27.725% 99.874%,
    27.619% 99.952%, 27.500% 99.980%, 27.381% 99.952%, 27.275% 99.874%,
    25.225% 97.662%, 25.119% 97.584%, 25.000% 97.556%, 24.881% 97.584%,
    24.775% 97.662%, 22.725% 99.874%, 22.619% 99.952%, 22.500% 99.980%,
    22.381% 99.952%, 22.275% 99.874%, 20.225% 97.662%, 20.119% 97.584%,
    20.000% 97.556%, 19.881% 97.584%, 19.775% 97.662%, 17.725% 99.874%,
    17.619% 99.952%, 17.500% 99.980%, 17.381% 99.952%, 17.275% 99.874%,
    15.225% 97.662%, 15.119% 97.584%, 15.000% 97.556%, 14.881% 97.584%,
    14.775% 97.662%, 12.725% 99.874%, 12.619% 99.952%, 12.500% 99.980%,
    12.381% 99.952%, 12.275% 99.874%, 10.225% 97.662%, 10.119% 97.584%,
    10.000% 97.556%, 9.881% 97.584%, 9.775% 97.662%, 7.725% 99.874%,
    7.619% 99.952%, 7.500% 99.980%, 7.381% 99.952%, 7.275% 99.874%,
    5.225% 97.662%, 5.119% 97.584%, 5.000% 97.556%, 4.881% 97.584%,
    4.775% 97.662%, 2.720% 99.879%, 2.616% 99.957%, 2.499% 99.985%,
    2.381% 99.960%, 2.276% 99.886%, 0.000% 97.536%
  );
}
.cp-hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Та же бумага, что на карточках главной и "Заказ принят" (карточка там
     геометрически идентична: 567×434, rotate -5.83deg). Раньше здесь лежала
     corporate/texture.jpg — уменьшенная до 900×600 копия той же текстуры
     (mean 147.2, sd 15.0 против 147.2/14.9 у оригинала 4096×2731).
     Замена на общий файл убирает дубликат; на Retina выигрыш есть, но
     небольшой (зерно 1.37 → 1.42 при сравнении на равном физическом
     размере), потому что 4096 всё равно ужимается до размера карточки.

     ВАЖНО про силу эффекта: opacity .2 + overlay даёт ~0.5% контраста —
     текстура почти невидима, и это НЕ баг. Замерено: зерно карточки
     sd 1.35 против sd 1.35 у эталона `design-reference/08-corporate-gifts.png`
     (Figma node 481:34), то есть 1:1 с макетом. Figma отдаёт эту ноду
     максимум в натуральные 1200×2467, версии крупнее нет — сравнивать
     больше не с чем. Клиент подтвердил 2026-08-11: оставляем как в макете,
     усиливать не нужно. Мерить зерно можно только на равной плотности
     пикселей и по плоским участкам без текста — иначе получишь мусорные
     числа (см. заметку в AGENTS.md).

     20.09.2026 файл пережат в lossy WebP q70: 1172 → 601 КБ. Уменьшать его
     бессмысленно — после ресемплинга lossless-версия даже растёт (вариант
     1216px дал 1297 КБ). Проверено по видимому результату, а не по файлу:
     текстура ложится с прозрачностью .2 в режиме overlay, и после этого
     наложения максимальное отличие от прежнего файла — 1 уровень из 255
     при среднем 0.23. Зерно на размере показа (608×490 при DPR2) sd 52.945
     против прежних 52.988, расхождение 0.08%. */
  background: url("img/hero-paper-texture-3x.webp") center / cover no-repeat;
  mix-blend-mode: overlay;
  opacity: .2;
  pointer-events: none;
}
.cp-hero__inner { position: relative; z-index: 1; }
.cp-hero__title {
  display: inline-block;
  max-width: 420px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 54px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: #401C0C;
  margin: 0;
  /* Figma 481:193: строка заголовка начинается на 67.18px от верха карточки,
     наш поток даёт 56.43 → сдвиг 10.75px. Было 20px — заголовок и скрипт
     висели на 9px ниже макета. transform, а не отступ: поток не двигаем,
     иначе поедут подзаголовок и кнопка.
     +3px по X — компенсация трекинга: CSS добавляет letter-spacing и ПОСЛЕ
     последней буквы, поэтому центрированная строка визуально уезжает влево;
     в Figma этого хвоста нет. */
  transform: translate(3px, 10.75px);
}
.cp-hero__script {
  display: block;
  white-space: nowrap;
  text-transform: none;
  font-family: var(--font-script);
  font-size: 66px;
  line-height: 0.65;
  /* У ноды 481:194 в Figma трекинга нет — только у прописного заголовка
     (3.24px = 0.06em). Унаследованный от .cp-hero__title трекинг растягивал
     строку на 15% (ink 374px против 325px в макете). */
  letter-spacing: normal;
  color: #B01E2B;
  margin-top: 10px;
  /* Центр строки в макете смещён на 9.07px правее центра карточки
     (Figma: card-x 292.62 против 283.55), минус 3px, которые уже отдал
     родительский .cp-hero__title. */
  transform: translate(6.07px, -20px) rotate(-0.93deg);
}
.cp-hero__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 14px;
  color: #401C0C;
  /* Figma 481:195: строка со звездой начинается на 245.08px от верха карточки,
     поток давал 240.43. Правим отступом (не transform) — он же уносит вниз
     кнопку, у которой в макете такая же недостача. */
  margin: 26.65px 0 0;
}
.cp-hero__sub > span { display: block; text-align: left; }
/* «Локальный премиум» в макете заметно жирнее остальной строки, а здесь
   акцент был сведён к весу основного текста и пропадал. В Gilroy тяжелее
   Medium только Semibold. Текст карточек трогать нельзя: в эталоне
   «бесплатно.» на красной карточке идёт ровно тем же весом, что и фраза
   вокруг, — там 500 стоит правильно. */
.cp-hero__sub strong { font-weight: 600; }
.cp-card__text strong { font-weight: 500; }
.cp-hero__sub::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-color: #B01E2B;
  -webkit-mask: url("img/star.svg") center / contain no-repeat;
  mask: url("img/star.svg") center / contain no-repeat;
}
.cp-hero__cta {
  width: 294px;
  height: 46px;
  /* Figma 481:198: кнопка 294×46 в точке (139.90, 321.22) от верха карточки.
     Зазор от подзаголовка до кнопки в макете 48.1px (был 46), по горизонтали
     центр смещён на 3.35px правее центра карточки. */
  margin: 48.1px auto 0;
  transform: translateX(3.35px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Стикеры привязаны к ЦЕНТРУ, а не к левому краю вьюпорта.
   .cp-hero__card центрируется через left:50% + margin-left:-305px, поэтому
   стикеры с фиксированным left:207px/819px совпадали с карточкой только
   ровно на ширине макета (1200). Выше 1200 zoom уже не действует
   (см. @media 861-1199), карточка уезжает вправо вместе с центром, а
   стикеры оставались на месте — "с любовью" наезжал на подзаголовок и
   кнопку, подарок отваливался далеко влево. Смещения = позиция из макета
   минус центр макета (600): 207-600 = -393, 819-600 = +219. */

/* Стикер-подарок — реальный PNG из материалов, у левого нижнего края карточки */
.cp-hero__sticker--gift {
  position: absolute;
  left: 50%;
  /* Figma 481:202: 135.113×125.479 в точке (207, 276) баннера. Было top:303 —
     стикер висел на 27px ниже макета (get_metadata отдаёт по этой ноде y=303.5,
     но рендер Figma и get_design_context согласованно дают 276). */
  top: 276px;
  width: 135px;
  height: auto;
  margin-left: -393px;
  transform: none;
  z-index: 3;
  pointer-events: none;
}

/* Стикер "с любовью и вниманием" — реальный PNG, у правого верхнего края карточки */
/* Figma 481:411: неповёрнутая рамка 152×104, rotate(12.47deg), внутри неё
   картинка с инсетом 4.7%/3.85% → 137.714×95.995 — ровно натуральный размер
   нашей cp-hero-love-star.svg. Bbox повёрнутой ноды — 170.876×134.378 в точке
   (796.62, 386.54), т.е. центр (882.06, 453.73) → margin-left:206.06, top:401.73.
   Раньше в width/height стояли размеры ИМЕННО ЭТОГО bbox (171×134), поэтому
   стикер выходил на ~24% крупнее макета и уезжал вправо-вниз.
   background-size задан явно: contain в коробке 152×104 подгонял бы по высоте
   (149.2×104) и снова разошёлся бы с макетом. */
.cp-hero__sticker--love {
  position: absolute;
  left: 50%;
  top: 401.73px;
  width: 152px;
  height: 104px;
  margin-left: 206.06px;
  transform: rotate(12.47deg);
  background: url("img/corporate/cp-hero-love-star.svg") center no-repeat;
  background-size: 137.714px 95.995px;
  z-index: 3;
  pointer-events: none;
  /* В макете бейдж отбрасывает мягкую тень; без неё он выглядит наклейкой,
     приклеенной без объёма. drop-shadow, а не box-shadow: силуэт зубчатый,
     box-shadow обвёл бы прямоугольник элемента. */
  filter: drop-shadow(1px 3px 5px rgba(64, 40, 22, .45));
}
.cp-hero__sticker--love span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-.77deg);
  width: 108px;
  color: #b01e2b;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .28px;
  text-align: center;
  opacity: .7;
}

/* Легаси @media (min-width: 431px) and (max-width: 860px) удалён. Он уникально срабатывал только
   в полосе 861-900px — поверх десктопа, уже ужатого через
   :root{zoom:calc(100vw/1200px)} (@media 861-1199), — и подменял часть
   значений в обход zoom-бакета, из-за чего на границе layout прыгал.
   Стикерам он вдобавок задавал margin-left, не сбрасывая left, что после
   перевода стикеров на left:50% дало бы двойное смещение. Ниже 861px
   всё покрыто блоками @media (min-width:431px) and (max-width:860px)
   и @media (max-width:430px). */

.cp-features { padding: 72px 0 92px; }

/* Сетка 1:1 с Figma-дампом ("Корпоративные подарки_ПК"):
   верхний ряд — 3 колонки (лево/право высокие фото-карточки на 2 строки,
   центр — красная "пробный набор" + белая "подберём презент"),
   затем два широких ряда (лево+центр объединены) + правая колонка. */
.cp-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 323px 313px;
  gap: 25px;
}
.cp-bento-row {
  display: grid;
  grid-template-columns: 701fr 338fr;
  gap: 25px;
  margin-top: 25px;
}

.cp-card--left-tall  { grid-column: 1; grid-row: 1 / span 2; }
.cp-card--right-tall { grid-column: 3; grid-row: 1 / span 2; }
.cp-card--red         { grid-column: 2; grid-row: 1; }
.cp-card--center-white{ grid-column: 2; grid-row: 2; }

.cp-card {
  border-radius: 22px;
  display: flex;
  flex-direction: column;
}
.cp-card--text {
  background: #FFFFFF;
  padding: 30px;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(64, 28, 12, 0.05);
}
.cp-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 35px;
  text-transform: uppercase;
  color: #401C0C;
  margin: 0 0 14px;
}
.cp-card__text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: normal;
  color: #401C0C;
  margin: 0;
}
.cp-card--photo {
  position: relative;
  background-color: #43271A;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  justify-content: flex-end;
}
.cp-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 15, 5, 0.84) 4%, rgba(40, 15, 5, 0.28) 48%, rgba(40, 15, 5, 0.06) 80%);
}
.cp-card--photo .cp-card__body { position: relative; padding: 28px; text-align: left; }
.cp-card--photo .cp-card__title,
.cp-card--photo .cp-card__text { color: #FFF6EB; }

/* "Индивидуальная упаковка" — тёплый оранжевый оттенок вместо тёмно-коричневого */
.cp-card--warm::before {
  background: linear-gradient(to top, rgba(153, 31, 41, 0.55) 4%, rgba(153, 31, 41, 0.2) 55%, rgba(153, 31, 41, 0.04) 85%);
}

/* Красная карточка "начнём с пробного набора" — фон = готовый PNG из
   материалов (градиент + кремовая полоса со звёздами уже впечатаны в
   картинку), поэтому просто растягиваем его на всю карточку */
.cp-card--red {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
}
.cp-card--red .cp-card__body { padding: 28px 24px 0; text-align: center; }
.cp-card--red .cp-card__title,
.cp-card--red .cp-card__text { color: #FFF6EB; }

/* Карточки "Гибкие объёмы" / "повод есть каждый день" — текст сверху на
   кремовом/белом фоне, фото занимает нижнюю часть без затемнения */
.cp-card--stacked {
  position: relative;
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: 0 8px 24px rgba(64, 28, 12, 0.05);
}
.cp-card--stacked .cp-card__body {
  padding: 36px 24px 10px;
  text-align: center;
}
.cp-card--stacked .cp-card__photo {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 22px 22px;
}

.cp-card__icon {
  position: relative;
  display: block;
  z-index: 2;
  pointer-events: none;
}
.cp-sticker-layer {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
}
/* Новые PNG уже содержат Figma-тень на прозрачности. Дополнительный
   drop-shadow давал бы двойную, более тёмную тень. */
.cp-card__icon--gift-sm {
  align-self: center;
  width: 64px;
  aspect-ratio: 71.188 / 79.281;
  margin: -6px 0 -26px;
}
.cp-sticker-layer--gift-outer {
  left: 7.22%;
  top: 5.45%;
  width: 85.56%;
  height: 89.10%;
  transform: rotate(-8.98deg);
}
.cp-sticker-layer--gift-inner {
  left: 16.34%;
  top: 13.64%;
  width: 67.33%;
  height: 72.73%;
  transform: rotate(-8.98deg);
}
.cp-card__icon--macaron {
  position: absolute;
  right: -16px;
  top: -18px;
  width: 92px;
  aspect-ratio: 120.333 / 119.03;
}
.cp-sticker-layer--macaron {
  left: 6%;
  top: 10%;
  width: 88%;
  height: 80%;
  transform: rotate(-23.62deg);
}
.cp-card__icon--doc {
  width: 56px;
  aspect-ratio: 92 / 97;
  margin: 0 auto 16px;
}
.cp-sticker-layer--doc-bg {
  left: 7%;
  top: 3%;
  width: 86%;
  height: 95%;
  transform: rotate(15.23deg);
}
.cp-sticker-layer--doc-red {
  left: 25.5%;
  top: 18.5%;
  width: 49%;
  height: 60%;
  transform: rotate(15.23deg);
}

.cp-card--packaging { height: 263px; }
.cp-card--doc        { height: 313px; text-align: center; }
.cp-card--personal    { height: 141px; }
.cp-bento-row--last { align-items: flex-end; }
.cp-col__cta { height: 46px; text-align: center; }

/* "Персонализация" — иконка слева, текст справа */
.cp-card--row {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  text-align: left;
}
.cp-card--row .cp-card__body { text-align: left; }
.cp-card__icon--gift-lg {
  flex-shrink: 0;
  width: 110px;
  height: auto;
  transform: rotate(-6deg);
}

.cp-card__packaging-box,
.cp-card__packaging-shadow {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

/* Граница 861, а не 1025. Десктопный макет живёт в zoom-бакете
   861-1199 (:root{zoom:calc(100vw/1200px)}) плюс 1200+. При 1025 полоса
   861-1024 оставалась на старой потоковой сетке, отмасштабированной zoom-ом:
   секция карточек там выходила 1671-1847px вместо figma-точных 1218px,
   то есть страница показывала другую вёрстку. Планшетный блок начинается
   с 860 и ниже, так что пересечения нет. */
@media (min-width: 861px) ,  (width > 860px) {
  .cp-hero__sticker--gift { height: 125px; }
  .cp-features {
    position: relative;
    height: 1218px;
    padding: 0;
  }
  .cp-features > .container {
    position: relative;
    width: 1200px;
    max-width: 1200px;
    height: 1218px;
    margin: 0 auto;
    padding: 0;
  }
  .cp-bento,
  .cp-bento-row {
    display: contents;
  }
  .cp-card,
  .cp-col__cta {
    position: absolute;
    box-sizing: border-box;
  }
  /* Подложки карточек — нативные PNG-экспорты Figma, обрезанные РОВНО по
     прямоугольнику карточки. Раньше они были больше карточки (offsets вроде
     -20px), чтобы захватить тень, но экспорт непрозрачный и этот запас залит
     БЕЛЫМ (alpha 255 везде, углы 255,255,255 вместо кремовых) — белые ореолы
     вокруг каждой карточки поверх кремовой страницы. Тень теперь рисует CSS:
     box-shadow корректно ложится на любой фон, а border-radius + overflow
     срезают белые углы, оставшиеся в PNG за скруглением. */
  /* Радиус снят с эталона по нижним углам высоких карточек — там фото
     против крема, контраст высокий и тень не мешает: 35px и 34px при
     среднеквадратичной ошибке меньше пикселя. Стояло 22px, и это давало
     видимый брак: у запечённых PNG собственное скругление 26px (левое фото)
     и 31px (правое), а за дугой они залиты БЕЛЫМ. Клип радиусом меньше
     запечённого срезал не весь белый угол — по дуге оставался светлый серп.
     34px перекрывает все запечённые радиусы (16/21/22/26/31). */
  .cp-card {
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(64, 28, 12, .15);
  }
  /* «Заглубление внутрь» из ТЗ: в эталоне по внутренней кромке плашки идёт
     мягкая тёмная полоса, из-за неё карточка читается утопленной в страницу.
     Замер трёх горизонтальных и трёх вертикальных срезов даёт одинаковый
     профиль: минимум ровно на кромке и спад внутрь примерно на 12px, то есть
     гауссиана с сигмой 5 → размытие 10px. Цвет и прозрачность подобраны по
     трём каналам сразу (на кремовой плашке 255,246,236 кромка даёт
     244,228,211).
     Красная карточка исключена намеренно: в эталоне у неё внутренней тени
     нет вовсе — снаружи светлый ободок, внутри ровный красный. */
  .cp-card:not(.cp-card--red) {
    box-shadow: 0 4px 16px rgba(64, 28, 12, .15),
                inset 0 0 10px rgba(190, 140, 80, .32);
  }
  .cp-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  .cp-card > * { position: relative; z-index: 1; }

  .cp-card--left-tall {
    left: 78px;
    top: 85.56px;
    width: 338px;
    height: 646px;
    background: linear-gradient(93.77deg, #fff6ed 15.55%, #f5e8db 90.82%);
  }
  .cp-card--left-tall::before {
    background-image: url("img/corporate/cp-desktop-left-image.png");
  }
  .cp-card--red {
    left: 429px;
    top: 85.56px;
    width: 338px;
    height: 323px;
  }
  .cp-card--red::before {
    display: block;
    background-image: url("img/corporate/cp-desktop-red-bg.png");
  }
  /* Полоса со звёздами нарисована здесь, а не взята из подложки.
     Причина: cp-desktop-red-bg.png — экспорт 1× (338×323 при показе
     338×323 CSS-пикселей), и на экране с двойной плотностью он
     растягивается вдвое. Звёзды мелкие, у них страдает первыми — их
     и заметил заказчик. Вектор режется резко при любой плотности.

     Геометрия снята с самой подложки, чтобы новая полоса села ровно
     поверх старой и не оставила по краю её размытой кромки: полоса
     top 251, высота 41 (то есть 31px от низа карточки), шаг звёзд
     37.5px, центры при x ≡ 34.5, звезда 24×26 по центру полосы.
     Цвета взяты оттуда же: полоса #FBE5C1, звезда #A71E2A.
     Смещение фона 15.75px = 34.5 - 18.75: остриё в плитке стоит по
     центру, поэтому левый край плитки сдвинут на половину шага. */
  .cp-card--red::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 251px;
    height: 41px;
    z-index: 1;
    pointer-events: none;
    background-color: #FBE5C1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='37.5' height='41' viewBox='0 0 37.5 41'><g transform='translate(6.75 7.5) scale(1.2 1.181818)'><path d='M9.01063 0L11.745 7.1502L18.98 4.64883L14.155 10.592L19.9387 15.607L12.3793 14.3999L10.9281 21.9163L8.19366 14.7661L0.958673 17.2675L5.78371 11.3244L0 6.30937L7.55939 7.5164L9.01063 0Z' fill='%23A71E2A'/></g></svg>");
    background-size: 37.5px 41px;
    background-position: 15.75px center;
    background-repeat: repeat-x;
  }
  .cp-card--center-white {
    left: 429px;
    top: 418.56px;
    width: 338px;
    height: 313px;
    padding: 78.44px 4px 0;
    justify-content: flex-start;
    background: transparent;
  }
  .cp-card--center-white::before {
    background-image: url("img/corporate/cp-desktop-center-bg.png");
  }
  .cp-card--right-tall {
    left: 784px;
    top: 85.56px;
    width: 338px;
    height: 646px;
    overflow: visible;
    background: linear-gradient(93.77deg, #fff6ed 15.55%, #f5e8db 90.82%);
  }
  .cp-card--right-tall::before {
    background-image: url("img/corporate/cp-desktop-right-image.png");
  }
  /* Раньше здесь поверх запечённой в cp-desktop-right-image.png звезды
     рисовался ещё один crisp-слой (cp-occasion-star-3x.png) — звезда
     дублировалась (замечание дизайнера [10]/#75, 1280). Подложка уже
     содержит звезду на нужном месте, второй слой убран. */
  /* Стикер-макарон по макету свисает за верхний правый угол карточки, но
     .cp-card{overflow:hidden} срезал всё, что выше её края — от стикера
     оставалась нижняя половина. Здесь резать нечего: фото карточки лежит
     фоном на ::before и обрезается собственным радиусом, а .cp-card__photo
     на десктопе скрыт. */
  .cp-card--right-tall { overflow: visible; }
  .cp-card--right-tall::before { border-radius: inherit; }
  .cp-card--packaging {
    left: 80.48px;
    top: 732px;
    width: 688.45px;
    height: 263px;
    background: transparent;
  }
  .cp-card--packaging::before {
    background-image: url("img/corporate/cp-desktop-packaging-bg.png");
  }
  /* [10]/#77 (1280): в cp-desktop-packaging-bg.png рыжая плашка занимает
     только x 0–686, y 15–256 из 688×263 — сверху 15px прозрачного поля и
     снизу 7px. Карточка была размером со всю PNG, поэтому бежевая
     внутренняя тень и скругление рисовались по пустому полю — вокруг рыжей
     плашки получалась бежевая «впуклая» рамка шире неё. Бокс карточки
     сведён к рыжей области, PNG растянута за его пределы и срезана. */
  .cp-card--packaging {
    top: 747px;
    height: 241px;
    box-shadow: 0 4px 16px rgba(64, 28, 12, .15);
  }
  .cp-card--packaging::before { inset: -15px -1px -7px 0; }
  .cp-card--doc {
    left: 787px;
    top: 762.56px;
    width: 338px;
    height: 313px;
    padding: 0;
    background: transparent;
  }
  .cp-card--doc::before {
    background-image: url("img/corporate/cp-desktop-doc-bg.png");
    /* Углы подложки непрозрачные и белые (255,255,254), а фон страницы
       кремовый (255,246,235) — из-под скруглённой на 34px карточки торчал
       светлый квадрат и наезжал на соседнюю «индивидуальную упаковку».
       Слой лежит ровно по карточке (inset: 0), поэтому достаточно повторить
       её радиус. У планшетной и мобильной подложек углы в цвет фона, там
       дефекта не было. */
    border-radius: inherit;
  }
  .cp-card--personal {
    left: 77px;
    top: 1016px;
    width: 692px;
    height: 141px;
    padding: 0;
    background: transparent;
  }
  .cp-card--personal::before {
    background-image: url("img/corporate/cp-desktop-personal-bg.png");
  }
  .cp-col__cta {
    left: 787px;
    top: 1111.27px;
    width: 338px;
    height: 46px;
    margin: 0;
  }

  .cp-card--stacked .cp-card__body {
    position: absolute;
    left: 4px;
    top: 62px;
    width: 329.59px;
    padding: 0;
    text-align: center;
  }
  .cp-card--right-tall .cp-card__body { top: 65px; }
  .cp-card--stacked .cp-card__photo {
    position: absolute;
    left: 0;
    top: 253px;
    width: 338px;
    height: 393px;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
  }
  .cp-card--left-tall .cp-card__photo,
  .cp-card--right-tall .cp-card__photo,
  .cp-card__packaging-box { display: none; }
  .cp-card--right-tall .cp-card__photo {
    top: 0;
    height: 646px;
    background-size: 100% 100%;
    background-position: center top;
  }
  .cp-card--stacked .cp-card__title,
  .cp-card--center-white .cp-card__title,
  .cp-card--doc .cp-card__title { margin-bottom: 21px; }
  .cp-card--red .cp-card__body {
    position: absolute;
    left: 0;
    top: 46.44px;
    width: 338px;
    padding: 0;
  }
  .cp-card--red .cp-card__title {
    margin-bottom: 21px;
    font-size: 37px;
  }
  .cp-card--red .cp-card__text {
    width: 258px;
    margin: 0 auto;
  }
  .cp-card__icon--gift-sm {
    position: absolute;
    left: 133px;
    top: 213.5px;
    width: 73px;
    margin: 0;
    transform: none;
  }
  .cp-card__icon--macaron {
    position: absolute;
    right: -6px;
    top: -57px;
    width: 120px;
  }
  .cp-card--packaging .cp-card__body {
    position: absolute;
    left: 60.52px;
    top: 80px;
    width: 412px;
    padding: 0;
    text-align: left;
    z-index: 3;
  }
  .cp-card--packaging .cp-card__title,
  .cp-card--personal .cp-card__title {
    margin-bottom: 21px;
    font-size: 40px;
    line-height: 38px;
  }
  .cp-card__packaging-box {
    position: absolute;
    left: 344.52px;
    top: 0;
    width: 334px;
    height: 263px;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(4px 4px 8px rgba(97, 45, 21, 0.55));
  }
  .cp-card--packaging .cp-card__title,
  .cp-card--packaging .cp-card__text { color: #fff6eb; }
  /* Позиция сверена с рендером ноды 481:430: рисунок стикера стоит на
     (128, 30.4) от угла карточки, у нас был (142, 38). 137/35 — это origin
     САМОЙ ноды 481:439 из get_design_context, но стикер повёрнут на 15.23deg
     и вылезает за неё влево-вверх, поэтому по числу ноды ставить нельзя.
     Рисунок внутри PNG смещён на (5, 2.95) от края бокса — отсюда left/top.
     Размер оставлен: подгонка по IoU дала масштаб 1.005, то есть 92px и так
     совпадают с макетом (IoU 0.97). */
  .cp-card__icon--doc {
    position: absolute;
    left: 122px;
    top: 28.5px;
    width: 92px;
    margin: 0;
  }
  .cp-card--doc .cp-card__title {
    position: absolute;
    left: 4px;
    top: 141px;
    width: 329.59px;
    margin: 0;
  }
  .cp-card--doc .cp-card__text {
    position: absolute;
    left: 4px;
    top: 232px;
    width: 329.59px;
  }
  .cp-card--personal {
    display: block;
  }
  .cp-card__icon--gift-lg {
    position: absolute;
    left: 41px;
    top: 20px;
    width: 135px;
    margin: 0;
    transform: none;
  }
  .cp-card--personal .cp-card__body {
    position: absolute;
    left: 208px;
    top: 38px;
    width: 412px;
    text-align: left;
  }
  .cp-card--personal .cp-card__title { margin-bottom: 12px; }
}

/* Граница сужена с 1024 до 860. Блок задаёт потоковую сетку и жёсткие
   высоты (.cp-card--left-tall{height:360px}, .cp-card--red{height:auto}),
   которые перебивали абсолютную десктопную раскладку в полосе 861-1024:
   карточки схлопывались, красная "начнём с пробного набора" исчезала,
   текст наезжал на фото. Ниже 861 всё осталось как было — этот диапазон
   и так покрыт блоками 431-860 и ≤430. */
@media (max-width: 860px) {
  .cp-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .cp-card--left-tall, .cp-card--right-tall, .cp-card--red, .cp-card--center-white {
    grid-column: 1; grid-row: auto;
  }
  .cp-card--left-tall, .cp-card--right-tall { height: 360px; }
  .cp-card--red { height: auto; padding-bottom: 0; }
  .cp-bento, .cp-bento-row { gap: 16px; }
  .cp-bento-row {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .cp-card--packaging, .cp-card--doc, .cp-card--personal { height: auto; min-height: 220px; }
  .cp-card--packaging {
    position: relative;
    padding: 28px;
    overflow: hidden;
    background: #d27b45;
  }
  .cp-card--packaging .cp-card__body {
    position: relative;
    z-index: 3;
    text-align: left;
  }
  .cp-card--packaging .cp-card__title,
  .cp-card--packaging .cp-card__text { color: #fff6eb; }
  .cp-card__packaging-box {
    position: relative;
    width: calc(100% + 56px);
    height: 240px;
    margin: 24px -28px -28px;
    object-fit: cover;
    object-position: center 44%;
  }
  .cp-card__title { font-size: 26px; }
}

@media (max-width: 430px) {
  .cp-features { padding: 50px 0 64px; }
  .cp-card--left-tall, .cp-card--right-tall { height: 280px; }
  .cp-card--packaging, .cp-card--doc, .cp-card--personal { min-height: 200px; }
  .cp-card__title { font-size: 26px; }
}

/* =========================================
   MOBILE ADDITIONS — по макетам 430px
   (дополнения к уже существующим правилам)
========================================= */

/* ── HEADER на мобиле: скрываем цену корзины на очень маленьких ── */
@media (max-width: 430px) {
  .cart-price { display: none; }
  .cart-btn { padding: 0 6px; }
  .site-header { top: 12px; padding: 0 12px; }
  .header-inner { padding: 0 10px 0 14px; height: 52px; }
}

/* ── HERO на планшете: Figma tablet 224:4762 (860px) ──
   Явно перебивает layout-flow правила из старого блока ≤900px
   (position:relative/flex-column/width:100%), т.к. тот блок тоже
   матчится на 860px и накладывается поверх этого.
   Нижняя граница 431, а не 601: закрывает зазор 431–600px, где раньше
   не было вообще никакого адаптированного хиро (см. заметку у блока
   «HERO на мобиле» ниже). На этом хвосте диапазона макет просто
   продолжает пропорционально уменьшаться через zoom — не отдельный
   Figma-фрейм, а страховка от дыры. */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .hero { height: 554px; min-height: 554px; padding: 0; }
  .hero-bg__blob { height: 554px; }
  .hero-inner { width: 860px; max-width: 860px; height: 554px; display: block; }

  /* Три полосы фона заданы calc(50% + Npx) с N, откалиброванным под
     канву 1200px (сумма трёх полос = 100% только там). На планшете
     canvas 860px, а формулы те же — карамель вылезала на 833..1030px
     при вьюпорте 860 и обрезалась .hero{overflow:hidden}, то есть
     справа реально ничего не докрашивалось. Смещения и ширины
     масштабированы на 860/1200 — то же самое соотношение продолжает
     давать ровно 100% на канве 860. */
  .hero-bg__blob--cream { width: calc(50% + 144px); } /* +1px под шоколад, см. десктоп */
  .hero-bg__blob--chocolate {
    left: calc(50% + 143px);
    /* 146px рисунка + 1px «под карамель»: справа полосы стыкуются впритык
       (143+146 = 289) и на дробном 50% так же ловили белую нить. Карамель
       лежит поверх, лишний пиксель не виден. */
    width: 147px;
    background-size: 146px 554px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 37px);
    mask-image: linear-gradient(to right, transparent 0, #000 37px);
  }
  .hero-bg__blob--caramel { left: calc(50% + 289px); width: 141px; background-size: 141px 554px; }

  .hero-figma-logo { display: none; }

  .hero-card {
    position: absolute;
    width: 413px;
    height: 368px;
    top: 82px;
    left: 36px;
    min-height: 0;
    padding: 0;
    transform: none;
    z-index: 9;
  }
  .hero-card::before {
    top: 16px;
    left: 13px;
    width: 386px;
    height: 319px;
    transform: rotate(-2.2deg);
  }

  .hero-title {
    top: 65px;
    left: 30px;
    width: 285px;
    font-size: 31px;
    line-height: 30px;
    transform: rotate(-2.2deg);
  }
  .hero-title__script {
    margin-top: 0;
    margin-left: 50px;
    font-size: 28px;
  }

  .hero-features {
    top: 196px;
    left: 96px;
    margin-left: 0;
    gap: 10px;
    transform: rotate(-2.2deg);
  }
  .hero-features li { font-size: 14px; gap: 10px; }
  .feature-star { width: 20px; height: 20px; }

  .hero-actions {
    top: 372px;
    left: 68px;
    width: 340px;
    margin-left: 0;
    gap: 5px;
    flex-direction: row;
    transform: rotate(-2.2deg);
  }
  .hero-actions .btn { height: 46px; width: 165px; }
  .hero-actions .btn--primary { width: 165px; }
  .hero-actions .btn--secondary { width: 165px; padding: 14px 8px 10px; }

  .hero-macarons { display: block; }
  .hero-sticker--1,
  .hero-sticker--5,
  .hero-sticker--2,
  .hero-sticker--3,
  .hero-sticker--6,
  .hero-sticker--7,
  .hero-sticker--4 { display: block; }
  /* Правило выше только показывает стикеры, но заодно затирало display:flex
     у трёх бейджей с подписями — а на flex держится центрирование текста
     поверх плашки. Без него подпись прилипала к левому верхнему углу
     коробки: у «калифорнийского миндаля» на планшете она уезжала под
     верхнюю кромку баннера, а плашка оставалась отдельно ниже-правее. */
  .hero-sticker--1.sticker-badge,
  .hero-sticker--5.sticker-badge,
  .hero-sticker--6.sticker-badge { display: flex; }
  /* Подписи тоже надо ужать: плашки на планшете меньше десктопных
     (170/226, 125/172, 84/126 — коэффициенты 0.752, 0.727, 0.667), а
     font-size и ширина текста оставались десктопными 14px. Из-за этого
     «калифорнийский миндаль» вылезал за плашку с обеих сторон. Размеры
     ниже — десктопные, умноженные на свой коэффициент. */
  .hero-sticker--1 .sticker-badge__text { font-size: 10.5px; width: 81px; }
  .hero-sticker--5 .sticker-badge__text { font-size: 10.2px; max-width: 90px; }
  .hero-sticker--6 .sticker-badge__text { font-size: 9.3px;  max-width: 51px; }
  .hero-macaron-frame--1 { left: 505px; top: 158px; width: 90px; height: 148px; }
  .hero-macaron-frame--2 { left: 590px; top: 158px; width: 93px; height: 145px; }
  .hero-macaron-frame--3 { left: 675px; top: 158px; width: 104px; height: 148px; }
  .hero-macaron-frame--1 .hero-macaron-crop,
  .hero-macaron-frame--2 .hero-macaron-crop { transform: scale(.67) rotate(90deg); }
  .hero-macaron-frame--3 .hero-macaron-crop { transform: scale(.67) rotate(-90deg); }

  .hero-sticker--1 { left: 355px; top: 24px;  width: 170px; }
  .hero-sticker--5 { left: 667px; top: 103px; width: 125px; }
  .hero-sticker--2 { left: 659px; top: 149px; width: 36px;  }
  .hero-sticker--3 { left: 93px;  top: 401px; width: 109px; }
  .hero-sticker--6 { left: 362px; top: 344px; width: 84px;  }
  .hero-sticker--7 { left: 479px; top: 283px; width: 106px; }
  .hero-sticker--4 { left: 627px; top: 287px; width: 183px; }
}

/* ── CONSTRUCTOR / TABLET ─────────────────────────────────────────────────
   Figma has two discrete tablet compositions, rather than a compressed
   desktop state. The closed folder below is 224:5086 (860 × 1074); the
   expanded version is 224:6418, grid 224:6424 and folder tab 224:6423. */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  /* Closed state — Figma 224:5086.  The page intentionally clips the lower
     flavours: three rows are visible, the third is muted, and the expand
     button overlays its lower edge. */
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) {
    width: 860px;
    height: 1074px;
    padding: 70px 0 0;
    overflow: hidden;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) > .container {
    width: 860px;
    max-width: none;
    padding: 0 50px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-header {
    display: block;
    width: 760px;
    height: 103px;
    margin: 0 0 32px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-header .section-title {
    margin: 0 0 9px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-subtitle {
    width: 760px;
    max-width: none;
    gap: 20px;
    margin: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-subtitle br {
    display: initial;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-card {
    display: flex;
    flex-direction: column;
    gap: 55px;
    width: 760px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-left {
    width: 760px;
    height: 105px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-tabs {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    justify-content: space-between;
    width: 760px;
    height: 105px;
    gap: 13px 0;
    overflow: visible;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-tabs .tab-btn {
    flex: 0 0 253px;
    width: 253px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-tabs .tab-text {
    width: 235px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-content-wrap {
    flex: 0 0 auto;
    width: 760px;
    height: 1987px;
    filter: drop-shadow(0 8px 28px rgba(64, 28, 12, .06));
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-content-wrap::before {
    top: -20px;
    left: 0;
    width: 253px;
    height: 106px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-content-header {
    width: 732px;
    min-height: 46px;
    margin-left: 14px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .set-tab {
    flex: 0 0 228px;
    width: 228px;
    height: 46px;
    box-sizing: border-box;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-set-tabs {
    width: 732px;
    justify-content: space-between;
    gap: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-set-counter {
    margin: 6px 0 0 14px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-content {
    flex: 0 0 1796px;
    width: 760px;
    height: 1796px;
    margin-top: 1px;
    padding: 20px 0 0;
    border-radius: 0 44px 28px 28px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-grid {
    display: flex;
    width: 760px;
    height: 1740px;
    padding: 0 30px;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-grid.collapsed .macaron-item:nth-child(n+10) {
    display: none;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-grid.collapsed .macaron-item:nth-child(n+7):nth-child(-n+9) {
    display: block;
    -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .34) 20%, transparent 72%);
    mask-image: linear-gradient(rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .34) 20%, transparent 72%);
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item {
    flex: 0 0 200px;
    width: 200px;
    height: 174px;
    border-radius: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-name {
    top: 17px;
    left: 0;
    width: 200px;
    font-size: 18px;
    line-height: normal;
    letter-spacing: 1.08px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-photo {
    width: 200px;
    height: 174px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-photo::after {
    top: 91px;
    left: 24px;
    width: 153px;
    height: 18px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-controls {
    top: 120px;
    left: 48px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(1) .macaron-photo { --tablet-photo-x: 23.11px; --tablet-photo-y: 54.63px; --tablet-photo-w: 153.779px; --tablet-photo-h: 46.766px; }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(1) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(2) .macaron-photo { --tablet-photo-x: 25.55px; --tablet-photo-y: 57.88px; --tablet-photo-w: 150.905px; --tablet-photo-h: 45.99px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(2) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(3) .macaron-photo { --tablet-photo-x: 30.7px; --tablet-photo-y: 58.26px; --tablet-photo-w: 146.593px; --tablet-photo-h: 45.209px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(3) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(4) .macaron-photo { --tablet-photo-x: 9.76px; --tablet-photo-y: 53.8px; --tablet-photo-w: 177.492px; --tablet-photo-h: 54.581px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(4) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(5) .macaron-photo { --tablet-photo-x: 26.91px; --tablet-photo-y: 57.28px; --tablet-photo-w: 142.573px; --tablet-photo-h: 51.033px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(5) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(6) .macaron-photo { --tablet-photo-x: 27.27px; --tablet-photo-y: 56.38px; --tablet-photo-w: 149.467px; --tablet-photo-h: 51.534px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(6) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(7) .macaron-photo { --tablet-photo-x: 29.84px; --tablet-photo-y: 58.56px; --tablet-photo-w: 147.312px; --tablet-photo-h: 45.665px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(7) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(8) .macaron-photo { --tablet-photo-x: 22.41px; --tablet-photo-y: 58.95px; --tablet-photo-w: 150.186px; --tablet-photo-h: 46.709px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(8) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(9) .macaron-photo { --tablet-photo-x: 27.28px; --tablet-photo-y: 56.56px; --tablet-photo-w: 144.437px; --tablet-photo-h: 50.025px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .macaron-item:nth-child(9) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-expand-row {
    position: absolute;
    z-index: 3;
    /* Absolute child of .constructor-content (its y is 432px in Figma),
       so 566px gives the exported button top at y998. */
    top: 566px;
    left: 254px;
    width: 252px;
    margin: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-expand-row .btn {
    width: 252px;
    height: 46px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-actions-box,
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid.collapsed) .constructor-hint {
    display: none;
  }
}

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) {
    width: 860px;
    height: 2382px;
    padding: 70px 0 30px;
    overflow: hidden;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) > .container {
    width: 860px;
    max-width: none;
    padding: 0 50px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-header {
    display: block;
    width: 760px;
    height: 95px;
    margin: 0 0 40px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-header .section-title {
    margin: 0 0 9px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-subtitle {
    width: 760px;
    max-width: none;
    gap: 20px;
    margin: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-subtitle br {
    display: initial;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-card {
    display: flex;
    flex-direction: column;
    gap: 55px;
    width: 760px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-left {
    width: 760px;
    height: 105px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-tabs {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    justify-content: space-between;
    width: 760px;
    height: 105px;
    gap: 13px 0;
    overflow: visible;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-tabs .tab-btn {
    flex: 0 0 253px;
    width: 253px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-tabs .tab-text {
    width: 235px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-content-wrap {
    flex: 0 0 auto;
    width: 760px;
    height: 1987px;
    filter: drop-shadow(0 8px 28px rgba(64, 28, 12, .06));
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-content-wrap::before {
    top: -20px;
    left: 0;
    width: 253px;
    height: 106px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-content-header {
    width: 732px;
    min-height: 46px;
    margin-left: 14px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .set-tab {
    height: 46px;
    box-sizing: border-box;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-set-counter {
    margin: 6px 0 0 14px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-content {
    flex: 0 0 1796px;
    width: 760px;
    height: 1796px;
    margin-top: 1px;
    padding: 20px 0 0;
    border-radius: 0 44px 28px 28px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-grid {
    display: flex;
    width: 760px;
    height: 1740px;
    padding: 0 30px;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item {
    flex: 0 0 200px;
    width: 200px;
    height: 174px;
    border-radius: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-name {
    top: 17px;
    left: 0;
    width: 200px;
    font-size: 18px;
    line-height: normal;
    letter-spacing: 1.08px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-photo {
    width: 200px;
    height: 174px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-photo::after {
    top: 91px;
    left: 24px;
    width: 153px;
    height: 18px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-controls {
    top: 120px;
    left: 48px;
  }

  /* Exact tablet image bounds from Figma node 224:6424. */
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(1)  .macaron-photo { --tablet-photo-x: 23.11px; --tablet-photo-y: 54.63px; --tablet-photo-w: 153.779px; --tablet-photo-h: 46.766px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(1)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(2)  .macaron-photo { --tablet-photo-x: 25.55px; --tablet-photo-y: 57.88px; --tablet-photo-w: 150.905px; --tablet-photo-h: 45.99px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(2)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(3)  .macaron-photo { --tablet-photo-x: 30.7px; --tablet-photo-y: 58.26px; --tablet-photo-w: 146.593px; --tablet-photo-h: 45.209px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(3)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(4)  .macaron-photo { --tablet-photo-x: 9.76px; --tablet-photo-y: 53.8px; --tablet-photo-w: 177.492px; --tablet-photo-h: 54.581px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(4)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(5)  .macaron-photo { --tablet-photo-x: 26.91px; --tablet-photo-y: 57.28px; --tablet-photo-w: 142.573px; --tablet-photo-h: 51.033px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(5)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(6)  .macaron-photo { --tablet-photo-x: 27.27px; --tablet-photo-y: 56.38px; --tablet-photo-w: 149.467px; --tablet-photo-h: 51.534px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(6)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(7)  .macaron-photo { --tablet-photo-x: 29.84px; --tablet-photo-y: 58.56px; --tablet-photo-w: 147.312px; --tablet-photo-h: 45.665px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(7)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(8)  .macaron-photo { --tablet-photo-x: 22.41px; --tablet-photo-y: 58.95px; --tablet-photo-w: 150.186px; --tablet-photo-h: 46.709px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(8)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(9)  .macaron-photo { --tablet-photo-x: 27.28px; --tablet-photo-y: 56.56px; --tablet-photo-w: 144.437px; --tablet-photo-h: 50.025px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(9)  .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(10) .macaron-photo { --tablet-photo-x: 18.27px; --tablet-photo-y: 59.48px; --tablet-photo-w: 164.797px; --tablet-photo-h: 52.233px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(10) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(11) .macaron-photo { --tablet-photo-x: 32.99px; --tablet-photo-y: 56.03px; --tablet-photo-w: 132.73px; --tablet-photo-h: 48.091px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(11) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(12) .macaron-photo { --tablet-photo-x: 29.27px; --tablet-photo-y: 60.18px; --tablet-photo-w: 149.467px; --tablet-photo-h: 44.791px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(12) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(13) .macaron-photo { --tablet-photo-x: 22.23px; --tablet-photo-y: 57.48px; --tablet-photo-w: 159.528px; --tablet-photo-h: 51.739px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(13) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(14) .macaron-photo { --tablet-photo-x: 19.44px; --tablet-photo-y: 56.47px; --tablet-photo-w: 163.399px; --tablet-photo-h: 51.642px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(14) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(15) .macaron-photo { --tablet-photo-x: 26.27px; --tablet-photo-y: 58.63px; --tablet-photo-w: 149.467px; --tablet-photo-h: 46.884px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(15) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(16) .macaron-photo { --tablet-photo-x: 32px; --tablet-photo-y: 62.42px; --tablet-photo-w: 143px; --tablet-photo-h: 44.258px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(16) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(17) .macaron-photo { --tablet-photo-x: 21.61px; --tablet-photo-y: 55.5px; --tablet-photo-w: 156.314px; --tablet-photo-h: 57.22px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(17) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(18) .macaron-photo { --tablet-photo-x: 22.25px; --tablet-photo-y: 59.41px; --tablet-photo-w: 154.497px; --tablet-photo-h: 51.02px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(18) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(19) .macaron-photo { --tablet-photo-x: 26.97px; --tablet-photo-y: 57.41px; --tablet-photo-w: 153.06px; --tablet-photo-h: 47.195px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(19) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(20) .macaron-photo { --tablet-photo-x: 26px; --tablet-photo-y: 63px; --tablet-photo-w: 143px; --tablet-photo-h: 49px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(20) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(21) .macaron-photo { --tablet-photo-x: 18.94px; --tablet-photo-y: 62.88px; --tablet-photo-w: 163.121px; --tablet-photo-h: 45.99px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(21) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(22) .macaron-photo { --tablet-photo-x: 34.56px; --tablet-photo-y: 60.43px; --tablet-photo-w: 145.874px; --tablet-photo-h: 45.331px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(22) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(23) .macaron-photo { --tablet-photo-x: 32.72px; --tablet-photo-y: 59.77px; --tablet-photo-w: 141.563px; --tablet-photo-h: 47.682px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(23) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(24) .macaron-photo { --tablet-photo-x: 27px; --tablet-photo-y: 56px; --tablet-photo-w: 150px; --tablet-photo-h: 52px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(24) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(25) .macaron-photo { --tablet-photo-x: 26.97px; --tablet-photo-y: 59.19px; --tablet-photo-w: 153.06px; --tablet-photo-h: 45.752px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(25) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(26) .macaron-photo { --tablet-photo-x: 32.03px; --tablet-photo-y: 65.91px; --tablet-photo-w: 132.94px; --tablet-photo-h: 38.331px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(26) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(27) .macaron-photo { --tablet-photo-x: 24.41px; --tablet-photo-y: 61.26px; --tablet-photo-w: 150.186px; --tablet-photo-h: 50.305px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(27) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(28) .macaron-photo { --tablet-photo-x: 34px; --tablet-photo-y: 64px; --tablet-photo-w: 143px; --tablet-photo-h: 41.999px; }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .macaron-item:nth-child(28) .macaron-photo img { left: var(--tablet-photo-x); top: var(--tablet-photo-y); width: var(--tablet-photo-w); height: var(--tablet-photo-h); }
  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-expand-row {
    position: absolute;
    z-index: 3;
    top: 1757px;
    right: 32px;
    width: auto;
    margin: 0;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-actions-box {
    flex: 0 0 104px;
    width: 760px;
    height: 104px;
    margin-top: 20px;
    gap: 12px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-actions-box .btn {
    width: 760px;
    height: 46px;
  }

  body.home:not(.fluid-flow) .constructor:has(.macaron-grid:not(.collapsed)) .constructor-hint {
    display: none;
  }
}

/* ── СЕРТИФИКАТЫ на планшете: Figma tablet 224:6107 (860px) —
   фото слева + текст справа в один ряд (как на десктопе), карточки
   друг под другом, а не "фото сверху, текст снизу" как в мобильном
   фолбэке ── */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .cert-grid { grid-template-columns: 1fr; gap: 24px; }

  .cert-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    column-gap: 24px;
    row-gap: 10px;
    align-items: center;
    height: auto;
    padding: 28px 24px;
    text-align: left;
  }

  .cert-card__sticker,
  .cert-card__sticker--dot,
  .cert-card__sticker--photo { display: none; }

  .cert-card__content,
  .cert-card__btn,
  .cert-card--electronic .cert-card__visual,
  .cert-card__visual--pair,
  .cert-card__address {
    position: static;
    left: auto; top: auto; right: auto; bottom: auto;
    width: auto;
    max-width: 100%;
    transform: none;
  }

  .cert-card__content { grid-column: 2; grid-row: 1; align-self: start; }
  .cert-card__visual,
  .cert-card__visual--pair {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    order: -1;
  }
  .cert-card--electronic .cert-card__visual { width: 110px; }
  .cert-card--electronic .cert-card__visual img { width: 100%; height: auto; }
  .cert-card__visual--pair { width: 130px; height: 175px; position: relative; }
  .cert-photo { width: 110px; height: 148px; }
  .cert-photo--2 { left: 20px; top: 20px; }

  .cert-card__btn { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 0; }
  .cert-card__address { grid-column: 2; grid-row: 2; }
  .cert-card__address-row { justify-content: flex-start; }

  /* ── ДОСТАВКА на планшете: текст слева + фото справа в ряд (как на
     десктопе), а не "текст сверху, фото снизу" из мобильного фолбэка ── */
  .delivery-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 32px;
  }
  .delivery-card__content { width: auto; max-width: 300px; flex-shrink: 0; }
  .dc-art { position: static; flex-shrink: 0; }
  .dc-art--coffee-photos,
  .dc-art--vending-photos,
  .dc-art--door-photos { width: 46%; margin-top: 0; }
  .dc-art--coffee-new,
  .dc-art--coffee-macaron,
  .dc-art--coffee-cocoa,
  .dc-art--vending-badge,
  .dc-art--vending-sticker3,
  .dc-art--door-sticker { display: none; }
}

/* ── HERO на мобиле: 1в1 по мобильному макету 430px ──
   Граница 430, а не 600: это реальная ширина Figma-мобилки. На 600
   этот блок глушил .hero-bg__blob:nth-child(2/3) (шоколад/карамель) в
   расчёте, что body.home ниже дорисует их поверх заново под мобильный
   макет — но тот блок сам стоит на ≤430px. В зазоре 431–600 стикеры
   гасли, а хиро оставался с одной кремовой текстурой без шоколада и
   карамели вовсе. Зазор теперь закрыт планшетным zoom-диапазоном
   (расширен до 431px), см. блок «HERO на планшете» выше. */
@media (max-width: 430px) {
  .hero {
    height: auto;
    min-height: auto;
    padding: 64px 0 90px;
    overflow: hidden;
  }
  .hero-bg {
    display: block;
  }
  .hero-bg__blob:nth-child(2),
  .hero-bg__blob:nth-child(3) {
    display: none;
  }
  .hero-inner {
    height: auto;
    padding: 0 20px;
  }

  /* карточка больше не рисует свой фон — фон рисует ::before, повёрнутый на -5deg */
  .hero-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    clip-path: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    height: auto;
    min-height: auto;
    padding: 0;
    display: block;
  }
  .hero-card::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 6px;
    width: calc(100% + 22px);
    height: 305px;
    background: linear-gradient(180deg, #F8F0E3 0%, #FEECCF 100%);
    border-radius: 3px;
    box-shadow: 4px 4px 15px rgba(70, 59, 47, 0.35);
    transform: rotate(-5deg);
    z-index: 0;
  }

  .hero-brand {
    position: relative;
    display: block;
    top: 0;
    left: 0;
    width: 139px;
    margin: 25px auto 0;
    transform: rotate(-5deg);
    z-index: 1;
  }
  .hero-figma-logo {
    position: relative;
    display: block;
    top: auto;
    left: auto;
    width: 139px;
    height: auto;
    margin: 25px auto 0;
    transform: rotate(-5deg);
    z-index: 1;
  }
  .hero-title {
    position: relative;
    z-index: 1;
    margin: 31px 0 0;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: 0.05em;
    transform: rotate(-5deg);
  }
  .hero-title__script {
    font-size: 26px;
    margin-left: 0;
    margin-top: 2px;
  }
  .hero-features {
    position: relative;
    z-index: 1;
    margin: 27px auto 0;
    gap: 19px;
    transform: rotate(-5deg);
  }
  .hero-features li { font-size: 13px; gap: 10px; }
  .feature-star { width: 20px; height: 20px; }

  .hero-actions {
    position: relative;
    z-index: 1;
    flex-direction: column;
    gap: 6px;
    margin-top: 146px;
  }
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    height: 46px;
  }

  /* макароны и часть стикеров возвращаем — в мобильном макете они есть */
  .hero-macarons {
    display: flex;
    position: relative;
    inset: auto;
    align-items: center;
    justify-content: center;
    height: 216px;
    margin-top: 87px;
    z-index: 1;
  }
  .macaron {
    position: relative;
    left: auto; top: auto; right: auto; bottom: auto;
    width: 128px;
    margin: 0 -18px;
  }
  .macaron--left { transform: rotate(-8deg); }
  .macaron--middle { transform: rotate(0deg); z-index: 2; }
  .macaron--right { transform: rotate(8deg); }

  .hero-macaron-frame {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
  }
  .hero-macaron-frame--1 { width: 90px; height: 148px; }
  .hero-macaron-frame--2 { width: 93px; height: 145px; }
  .hero-macaron-frame--3 { width: 104px; height: 148px; }
  .hero-macaron-frame--1 .hero-macaron-crop { transform: scale(.67) rotate(90deg); }
  .hero-macaron-frame--2 .hero-macaron-crop { transform: scale(.67) rotate(90deg); }
  .hero-macaron-frame--3 .hero-macaron-crop { transform: scale(.67) rotate(-90deg); }

  .hero-sticker--1,
  .hero-sticker--5,
  .hero-sticker--2,
  .hero-sticker--3,
  .hero-sticker--6 { display: none; }
  .hero-sticker--4 {
    display: block;
    position: absolute;
    left: 265px;
    top: 608px;
    width: 189px;
    z-index: 2;
  }
  .hero-sticker--7 {
    display: block;
    position: absolute;
    left: 20px;
    top: 828px;
    width: 76px;
    z-index: 2;
  }
}

/* ── SET CARDS на мобиле: абсолютное → нормальный поток ── */
@media (max-width: 430px) {
  .sets-header-outer {
    height: auto;
    padding: 48px 0 24px;
  }

  .sets {
    height: auto;
    padding: 50px 0 70px;
    background-size: cover;
    background-position: center;
  }

  .sets-list { gap: 24px; }

  .sets-view-all {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    transform: none;
    margin: 32px auto 0;
  }

  .sets-view-all:hover { transform: scale(1.02); }

  .set-card {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  /* Убираем pseudo-фон (mask) — заменяем простым фоном */
  .set-card::before {
    position: static; /* убираем absolute, но всё равно скрываем через height:0 */
    display: none;
  }
  /* Задаём цвет фона напрямую на карточку */
  .set-card.theme-cream    { background: linear-gradient(135deg, #FFFBF4 0%, #F2DEC4 100%); border-radius: 24px; }
  .set-card.theme-red-dark { background: linear-gradient(135deg, #8A1520 0%, #5C0F18 100%); border-radius: 24px; }
  .set-card.theme-caramel  { background: linear-gradient(135deg, #C87D40 0%, #A66430 100%); border-radius: 24px; }

  .set-card__visual {
    position: relative;
    right: auto; top: auto;
    transform: none;
    width: 100%;
    height: 200px;
    grid-template-columns: 1fr;
    grid-template-rows: 200px;
    order: -1; /* фото сверху */
    border-radius: 24px 24px 0 0;
    overflow: hidden;
  }
  .set-card__visual > img {
    position: static;
    width: 100% !important;
    height: 200px !important;
    object-fit: contain;
    filter: none;
  }
  /* На десктопе у паттерна теперь абсолютные left/width под конкретную
     ширину карточки (1040px) — на мобиле карточка узкая, координаты не
     подходят; центрируем его в новой, более узкой рамке заново. */
  .set-card__group-bg {
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
  }

  .set-card__content {
    position: relative;
    top: auto; left: auto; right: auto;
    width: 100%;
    transform: none;
    padding: 22px 20px 24px;
    box-sizing: border-box;
  }
  .set-card__text { gap: 10px; }
  .set-card__title { font-size: 22px; margin-bottom: 6px; }
  .set-card__sostav {
    left: 12px;
    top: 164px;
    width: 110px;
    height: auto;
    margin-left: 0;
  }
  .set-card__desc { -webkit-line-clamp: 4; margin-bottom: 16px; }
  .set-card__action-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .set-card__action-row .btn { width: 100%; }

  /* Бейдж "хит продаж" */
  .badge--absolute { top: 16px; left: 16px; }
}

/* ── CERTIFICATES на мобиле ── */
@media (max-width: 430px) {
  .cert-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 30px 20px 24px;
    overflow: hidden; /* стикер не вываливается */
  }
  .cert-card__sticker { display: none; } /* убираем стикеры на мобиле — не влезают */
  .cert-card__content { max-width: 100%; }
  .cert-card__title { font-size: 26px; }
  .cert-card__visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .cert-card__visual img { max-height: 200px; width: auto; }
}

/* ── DELIVERY CARDS на мобиле ── */
@media (max-width: 430px) {
  .delivery-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 18px 24px;
    gap: 20px;
  }
  .delivery-card__title { font-size: 24px; margin-bottom: 12px; }
  .delivery-card__content { max-width: 100%; }
  .delivery-card__action-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }
  .delivery-card__action-box .btn { width: 100%; }
  .delivery-apps { gap: 10px; }
  .dc-art--coffee-photos,
  .dc-art--vending-photos,
  .dc-art--door-photos { width: 100%; margin-top: 18px; }
}

/* ── FOOTER на мобиле ── */
@media (max-width: 430px) {
  .footer-inner { padding: 40px 18px 24px; }
  .footer-logo-svg { max-width: 240px; margin-bottom: 28px; }

  .footer-columns {
    flex-direction: column;
    gap: 24px;
  }
  /* Два столбца навигации — рядом */
  .footer-col-nav-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
  .footer-col-nav { gap: 12px; }
  .footer-col-nav a { font-size: 11px; }

  .footer-col-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }
  .footer-social-row { gap: 10px; }
  /* канва 38px → кружок 22.49px, те же +2px дают другой множитель */
  .footer-social-item { --social-hover-scale: 1.0889; }
  .footer-social-item img { width: 38px; height: 38px; }

  .footer-col-contact {
    font-size: 11px;
    line-height: 1.5;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 16px;
  }
  .footer-legal-main {
    flex-direction: column;
    gap: 4px;
  }
  .footer-legal span,
  .footer-legal a { font-size: 10px; text-align: left; }
}

/* ── SOSTAV PAGE на мобиле ── */
@media (max-width: 430px) {
  .sostav-section { padding: 96px 0 72px; }
  .sostav-section__inner { padding: 0 14px; }
  .sostav-header {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
  }
  .sostav-title { width: 100%; font-size: 28px; }
  .sostav-allergens__text { font-size: 13px; }
  .sostav-item {
    gap: 12px;
    padding: 20px 16px;
    border-radius: 20px;
  }
  .sostav-item__photo { width: 200px; }
  .sostav-item__name { font-size: 22px; }
  .sostav-item__desc { font-size: 12px; line-height: 15px; }
}

/* ── DELIVERY PAGE (dp) на мобиле ── */
@media (max-width: 430px) {
  .dp-wrap { padding: 88px 0 48px; }
  .dp-content { padding: 0 18px; }
  .dp-title { font-size: 28px; line-height: 1.1; margin-bottom: 20px; }
  .dp-h2 { font-size: 20px; margin-bottom: 12px; }
  .dp-block { margin-bottom: 28px; }
  .dp-list li { font-size: 14px; margin-bottom: 10px; }
  .dp-accent__script { font-size: 44px; }
  .dp-accent__text { font-size: 18px; }
  .dp-req { font-size: 13px; }
}

/* ── CORPORATE PAGE (cp) на мобиле — карточка без поворота, во всю ширину ── */
@media (max-width: 430px) {
  /* Корпоративные подарки — моб 430px (Figma node 481:2232/2485,
     fileKey TWaDkrs6TlwgqgOq4idaaT). Прежняя версия рисовала плоскую
     статичную карточку без стикеров — в макете карточка та же рваная
     повёрнутая "открытка", что на десктопе/планшете, просто крупнее
     относительно вьюпорта, и оба стикера на месте (просто иначе
     расставлены: "с любовью" сверху-слева, подарок — снизу-справа). */
  .cp-hero {
    height: 759px;
    max-height: none;
    padding: 0;
    background-image: url("img/corporate/hero-bg-mobile-figma.png") !important;
    background-position: center;
    background-size: 430px 759px;
  }
  .cp-hero__card {
    position: absolute;
    left: 4px;
    top: 233px;
    width: 420px;
    height: 322px;
    margin-left: 0;
    padding: 33px 67px 34px;
    transform: rotate(-5.83deg);
  }
  .cp-hero__title {
    width: 286px;
    max-width: none;
    font-size: 37px;
    line-height: 34px;
    transform: none;
  }
  .cp-hero__script {
    width: 277px;
    font-size: 52px;
    line-height: 43px;
    margin-top: 0;
    transform: rotate(-.93deg);
  }
  .cp-hero__sub {
    width: 309px;
    margin-top: 13px;
    margin-left: -12px;
    gap: 15px;
    justify-content: flex-start;
    font-size: 15px;
    line-height: 14px;
  }
  .cp-hero__cta { width: 294px; height: 46px; margin-top: 20px; margin-left: -4px; }

  .cp-hero__sticker--gift {
    left: 292px;
    top: 509px;
    width: 103px;
    height: 96px;
    margin-left: 0;
    transform: none;
  }
  .cp-hero__sticker--love {
    left: 25px;
    top: 186px;
    width: 114px;
    height: 78px;
    margin-left: 0;
    transform: rotate(9.74deg);
    /* десктоп задаёт background-size в px (размер ноды из Figma) — здесь
       коробка своя, поэтому возвращаем вписывание */
    background-size: contain;
  }
  .cp-hero__sticker--love span {
    width: 81px;
    font-size: 10px;
    letter-spacing: .2px;
  }

  .cp-bento,
  .cp-bento-row,
  .cp-bento-row--last {
    display: contents;
  }
  .cp-features .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 0 25px;
  }
  .cp-features { padding: 35px 0 61px; }
  .cp-card { position: relative; width: 379px; border-radius: 18px; }
  .cp-card--left-tall   { order: 1; height: 646px; }
  .cp-card--red          { order: 2; height: 366px; }
  .cp-card--center-white { order: 3; height: 267px; }
  .cp-card--packaging    { order: 4; height: 427px; }
  .cp-card--doc           { order: 5; height: 377px; }
  .cp-card--personal      { order: 6; height: 307px; }
  .cp-card--right-tall   { order: 7; height: 646px; }
  .cp-col__cta            { order: 8; width: 379px; max-width: none; }

  .cp-card--left-tall {
    overflow: visible;
    background: url("img/corporate/cp-mobile-left-image.png") -4px -4px / 388px 654px no-repeat;
  }
  .cp-card--left-tall .cp-card__photo { display: none; }
  .cp-card--red {
    overflow: visible;
    background-image: none !important;
  }
  .cp-card--red::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -10px;
    top: -10px;
    width: 399px;
    height: 386px;
    background: url("img/corporate/cp-mobile-red-bg.png") center / 399px 386px no-repeat;
  }
  .cp-card--red .cp-card__body {
    position: relative;
    z-index: 1;
  }
  .cp-card--center-white,
  .cp-card--doc,
  .cp-card--personal {
    overflow: visible;
    background: transparent;
  }
  .cp-card--center-white::before,
  .cp-card--doc::before,
  .cp-card--personal::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -23px;
    top: -24px;
    width: 425px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .cp-card--center-white::before {
    height: 315px;
    background-image: url("img/corporate/cp-mobile-center-bg.png");
    background-size: 425px 315px;
  }
  .cp-card--doc::before {
    height: 425px;
    background-image: url("img/corporate/cp-mobile-doc-bg.png");
    background-size: 425px 425px;
  }
  .cp-card--personal::before {
    height: 355px;
    background-image: url("img/corporate/cp-mobile-personal-bg.png");
    background-size: 425px 355px;
  }
  .cp-card--center-white .cp-card__title,
  .cp-card--center-white .cp-card__text,
  .cp-card--doc > *,
  .cp-card--personal > * {
    position: relative;
    z-index: 1;
  }
  .cp-card--packaging {
    overflow: visible;
    background: transparent;
  }
  .cp-card--packaging::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -10px;
    top: -10px;
    width: 399px;
    height: 445px;
    background: url("img/corporate/cp-mobile-packaging-bg.png") center / 399px 445px no-repeat;
  }
  .cp-card--right-tall {
    overflow: visible;
    background: url("img/corporate/cp-mobile-right-image.png") -4px -4px / 387px 654px no-repeat;
  }
  .cp-card--right-tall .cp-card__photo { display: none; }

  .cp-card__title { font-size: 26px; }
  .cp-card__text { font-size: 13px; }

  /* Как на планшете: иконка снизу по центру, а не слева от текста в ряд */
  .cp-card--personal.cp-card--row {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }
  .cp-card--personal .cp-card__body { text-align: center; }
  .cp-card--personal .cp-card__icon--gift-lg { width: 90px; }
}

/* ── PRIVACY PAGE на мобиле ── */
@media (max-width: 430px) {
  .privacy-page { padding-top: 90px; padding-bottom: 52px; }
  .privacy-inner { padding: 0 18px; }
  .privacy-title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 32px;
  }
  .privacy-page__deco {
    font-size: 120px;
    top: 60px;
    opacity: 0.06;
  }
  .privacy-section { margin-bottom: 28px; }
  .privacy-section__title {
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
  .privacy-section__body { font-size: 13px; line-height: 1.7; }
  .privacy-footer-deco { margin-top: 36px; }
  .privacy-footer-deco span { font-size: 72px; }
}

/* ── CONSTRUCTOR на мобиле: шаг 1 — аккордеон, по макету 430px ── */
@media (max-width: 430px) {
  .constructor-header { gap: 20px; margin-bottom: 28px; }
  .section-title { font-size: 30px; }
  .constructor-subtitle { font-size: 14px; line-height: 1.2; gap: 20px; }

  .constructor-card {
    flex-direction: column;
    padding: 16px;
    border-radius: 22px;
    gap: 14px;
  }
  .constructor-left { width: 100%; }

  /* Кнопка-тоггл шага 1 — видна только на мобиле, раскрывает список размеров */
  .constructor-step-toggle {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
  }
  .constructor-step-toggle__label {
    font-size: 12px;
    line-height: 1.3;
    color: #401C0C;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .constructor-step-toggle__pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 46px;
    padding: 0 5px 0 24px;
    background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
    border-radius: 90px;
  }
  .constructor-step-toggle__text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #FFF6EB;
  }
  .constructor-step-toggle__chevron {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(180deg, #FFF6ED 0%, #F8EADC 100%);
    transition: transform 0.25s ease;
  }
  .constructor-step-toggle__chevron::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #B01E2B;
    border-bottom: 2px solid #B01E2B;
    transform: translate(-50%, -65%) rotate(45deg);
  }
  .constructor-left.is-open .constructor-step-toggle__chevron {
    transform: rotate(180deg);
  }

  /* Список размеров свёрнут по умолчанию — раскрывается по клику на тоггл */
  .constructor-tabs {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
  }
  .constructor-left.is-open .constructor-tabs {
    display: flex;
  }
  .tab-text { white-space: normal; font-size: 11px; }

  .constructor-content { padding: 14px; border-radius: 0 28px 18px 18px; }
  .constructor-selected-block { padding: 10px 16px; font-size: 11px; }
  .macaron-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .macaron-item {
    width: 100%;
    height: 150px;
  }
  .macaron-name {
    left: 0;
    width: 100%;
    font-size: 14px;
    min-height: 2.2em;
  }
  .macaron-photo {
    width: 100%;
    height: 150px;
  }
  .macaron-photo::after {
    top: 79px;
    left: 10%;
    width: 80%;
  }
  .macaron-item .macaron-photo img {
    top: 40px !important;
    left: 50% !important;
    width: 90% !important;
    height: auto !important;
    transform: translateX(-50%);
  }
  .macaron-controls {
    top: 103px;
    left: 50%;
    transform: translateX(-50%);
  }
  .qty-pill { width: 104px; }
  .constructor-actions-box .btn { width: 100%; max-width: 100%; }
}

/* =========================================
   CHECKOUT PAGE (Оформление заказа)
========================================= */

/* Keep the checkout flow below the fixed header while matching the current
 * 1200px Figma canvas. */
.checkout-page {
  padding: 106px 0 90px;
  /* [111]: .site-main { overflow: hidden } создаёт скролл-контейнер, и
   * position: sticky на .co-summary липнет к нему, а не к вьюпорту — то
   * есть блок с суммой заказа не остаётся на месте при прокрутке. Тот же
   * обход уже стоит на .cart-page (правка клиента п.10) и на
   * .set-composition-page / .edit-set-page. */
  overflow: visible;
}

/* 736:27928 — keep the 1040px Figma content centered on wider desktop screens. */
@media (min-width: 861px) ,  (width > 860px) {
  .checkout-page .container.co-wrap {
    max-width: 1200px;
    padding: 0 80px;
  }
}

.co-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-brown-900);
}

.co-back svg {
  width: 14px;
  height: 14px;
  color: var(--c-brown-500);
}

.co-back:hover { color: var(--c-red); }

/* ---------- steps ---------- */

.co-steps {
  display: flex;
  align-items: center;
  margin-bottom: 78px;
}

.co-step {
  position: relative;
  flex-shrink: 0;
}

.co-step__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 2px 2px 6px rgba(165, 140, 114, .25), -6px -6px 10px #fff, 4px 4px 18px rgba(214, 191, 167, .9);
}

.co-step__dot picture { display: flex; }
.co-step__dot img { display: block; width: auto; height: auto; max-width: none; }

/* Preserve the fractional dimensions of the small Figma vector; the browser's
   intrinsic bitmap dimensions round this SVG up to 22×19. */
@media (max-width: 860px) {
  .co-step--active .co-step__dot img { width: 21.5605px; height: 18.4805px; }
  .co-step--active .co-step__dot picture { transform: translate(.5px, 1px); }
}

.co-step--done .co-step__dot,
.co-step--active .co-step__dot {
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
}

.co-step--next .co-step__dot {
  background: linear-gradient(101.61deg, rgba(218, 27, 44, .5) -108.06%, rgba(157, 31, 42, .5) 81.99%);
}

.co-step__label {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-brown-900);
}

/* Правки [15].5 / [65].2.2 / [69].1.2: «Заказ принят» выравниваем по
 * центру иконки — как «Оформление заказа». Специальное left/right для
 * крайних шагов отключено: подписи умещаются, а на макете все три
 * подписи стоят строго под своими кружками. */

/* Правки [15].4 / [65].1 / [69].1 / [106]/[114]/[126]: цвет линии между
 * «Корзиной» и «Оформлением заказа». В Figma — фирменный красный #B01E2B
 * (второй раунд правок дизайнера). Действует на все ширины. */
.co-steps__line {
  flex: 1;
  height: 0;
  margin: 0 10px;
  border-top: 1.5px solid #B01E2B;
}

.co-steps__line--dotted {
  border-top: 2px dotted rgba(157, 31, 42, 0.55);
}

/* ---------- notes ---------- */

.co-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}

.co-notes li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.35;
  color: var(--c-brown-900);
}

.co-notes b { font-weight: 600; }

.co-star {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  align-self: center;
  background-color: #B01E2B;
  -webkit-mask: url("img/star.svg") center / contain no-repeat;
  mask: url("img/star.svg") center / contain no-repeat;
}

/* ---------- layout ---------- */

.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 30px;
  align-items: start;
}

.co-col-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.co-card {
  background: linear-gradient(160deg, #FFF6EC 0%, #F5E4D1 100%);
  border-radius: 28px;
  padding: 44px 46px 48px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    4px 8px 32px rgba(64, 28, 12, 0.1);
}

.co-card__title {
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 100;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-brown-900);
}

/* ---------- form fields ---------- */

.co-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.co-field__label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-brown-900);
  padding-left: 4px;
}

.co-field--city,
.co-field--street,
.co-hint { grid-column: 1 / -1; }

.co-field--city .co-select-wrap { max-width: none; }

.co-input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(157, 31, 42, 0.55);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-brown-900);
  transition: border-color 0.2s ease;
}

.co-input:focus {
  outline: none;
  border-color: var(--c-red);
}

.co-input::placeholder { color: #C4938B; }

.co-select-wrap {
  position: relative;
  display: block;
}

.co-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.co-select-wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--c-red);
  border-bottom: 1.5px solid var(--c-red);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Решение из макета (раунд 4, #112/#117/#129): в Figma (узел 729:5472
 * «Оформление заказа», поле «Улица» на ПК/планшете/телефоне — узлы
 * 736:28031, 736:29246, 736:28500) поле «Улица» — обычный текстовый
 * инпут БЕЗ шеврона-индикатора выбора, визуально идентичный «Дому»/
 * «Подъезду». Ранее добавленный имитационный шеврон убран, чтобы
 * соответствовать макету; подсказка под полем оставлена как в макете —
 * для свободного ввода улицы. */
.co-field--street { position: relative; }

.co-hint {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: #A98D7B;
  margin: -6px 0 0 4px;
}

.co-field--note { margin-top: 26px; }

/* ---------- radios ---------- */

.co-radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-radio {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-brown-900);
  cursor: pointer;
}

.co-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.co-radio__dot {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--c-red);
  background: transparent;
  transition: background 0.15s ease;
}

.co-radio input:checked + .co-radio__dot {
  background: var(--c-red-600);
}

/* ---------- scheduler (календарь + время) ---------- */

.co-scheduler {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 24px;
  width: fit-content;
  border: 1px solid rgba(64, 28, 12, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.25);
}

.co-cal { padding-right: 12px; }

.co-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.co-cal__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-brown-900);
}

.co-cal__caret {
  font-size: 9px;
  color: var(--c-red);
}

.co-cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-red);
}

.co-cal__nav svg { width: 14px; height: 14px; }

.co-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  border-left: 1px solid rgba(64, 28, 12, 0.25);
  border-top: 1px solid rgba(64, 28, 12, 0.25);
}

.co-cal__day {
  height: 30px;
  border: none;
  border-right: 1px solid rgba(64, 28, 12, 0.25);
  border-bottom: 1px solid rgba(64, 28, 12, 0.25);
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-brown-900);
  cursor: pointer;
}

.co-cal__day:hover { background: rgba(176, 30, 43, 0.08); }

.co-cal__day.is-muted { color: #C3AC9C; }

.co-cal__day.is-selected {
  background: var(--c-red-600);
  color: var(--c-cream-2);
}

.co-times {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-left: 1px solid rgba(64, 28, 12, 0.25);
  padding-left: 12px;
}

.co-times__nav {
  height: 18px;
  border: none;
  background: none;
  color: var(--c-red);
  font-size: 10px;
  cursor: pointer;
}

.co-times__list {
  height: 204px; /* 6 слотов по 34px */
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(64, 28, 12, 0.25);
}

.co-times__list::-webkit-scrollbar { display: none; }

.co-times__slot {
  min-height: 34px;
  padding: 0 18px;
  border: none;
  border-bottom: 1px solid rgba(64, 28, 12, 0.25);
  border-left: 1px solid rgba(64, 28, 12, 0.25);
  border-right: 1px solid rgba(64, 28, 12, 0.25);
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-brown-900);
  cursor: pointer;
}

.co-times__slot:hover { background: rgba(176, 30, 43, 0.08); }

.co-times__slot.is-selected {
  background: var(--c-red-600);
  color: var(--c-cream-2);
}

/* ---------- payment ---------- */

.co-pay__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.co-pay__logos {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.co-logo-mc { width: 42px; height: 32px; }
.co-logo-visa { width: 52px; height: 20px; }
.co-logo-pk { width: 64px; height: 20px; }

.co-pay__hint {
  margin: 10px 0 0 27px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: #A98D7B;
}

/* Original Figma export includes an 8px shadow outside its 26×30px slot. */
.co-pay__gift { position: relative; display: block; flex: 0 0 26.207px; width: 26.207px; height: 30.293px; }
.co-pay__gift img { position: absolute; left: -8px; top: -8px; display: block; width: 43px; height: 46px; max-width: none; }

.co-divider {
  border: none;
  border-top: 1px solid rgba(157, 31, 42, 0.35);
  margin: 24px 0;
}

.co-cert { margin-top: 20px; }

.co-cert__input,
.co-promo {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px dashed rgba(176, 30, 43, 0.7);
  border-radius: 3px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-brown-900);
  text-transform: uppercase;
}

.co-cert__input::placeholder,
.co-promo::placeholder {
  color: var(--c-brown-900);
  text-transform: uppercase;
}

.co-cert__input:focus,
.co-promo:focus { outline: none; border-style: solid; }

.co-cert__ok {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 18px;
  background: #D28F97;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-cream-2);
}

.co-cert__ok svg { width: 18px; height: 18px; }

/* ---------- summary ---------- */

/* Правка [15].section2.4: «Сделать фиксацию при скролле для ПК».
 * .co-grid уже с align-items:start, поэтому sticky работает без ломки
 * колонок. Отступ сверху 100px совпадает с высотой сайтовой шапки. */
.co-summary { padding: 44px 40px 40px; position: sticky; top: 100px; align-self: start; }

.co-promo { margin-bottom: 28px; }

.co-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Правки [15].section2.1: клиент попросил, чтобы все основные тексты
 * в правой карточке были одного размера. Наименование набора теперь
 * 14px — как у сумм, доставки и «Скидки». */
.co-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
  color: var(--c-brown-900);
}

.co-items b {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.co-mid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.co-totals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-brown-900);
}

.co-totals__row dt { font-weight: 600; }
.co-totals__row dd { font-weight: 600; white-space: nowrap; }

.co-totals__row--accent dt,
.co-totals__row--accent dd {
  color: #E0862C;
  font-weight: 400;
}

.co-ship {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-ship__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-brown-900);
}

.co-ship__row b { font-weight: 600; white-space: nowrap; }

.co-final {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-red);
}

.co-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-brown-900);
  cursor: pointer;
}

.co-consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.co-consent .co-radio__dot { margin-top: 2px; }

.co-consent input:checked + .co-radio__dot { background: var(--c-red-600); }

.co-consent a {
  color: inherit;
  text-decoration: underline;
}

.co-consent a:hover { color: var(--c-red); }

/* Правка [15].section2.3: клиент попросил уменьшить высоту кнопки
 * «Оплатить заказ». 58 → 50 (совпадает с высотой первичных CTA на других
 * страницах — см. `.btn--primary` в кнопочной системе). */
.co-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-cream-2);
  cursor: pointer;
  transition: 0.25s ease;
}

.co-submit:hover { transform: scale(1.02); }

/* Current desktop checkout frame: 736:27928 (1200px canvas). Keep the
 * controls and summary at the authored coordinates and preserve this canvas
 * through the existing 861–1199 root-zoom band. */
@media (min-width: 861px) ,  (width > 860px) {
  .checkout-page .co-back {
    margin: 0 0 24px 4px;
    gap: 7px;
    font-size: 12px;
    line-height: 16px;
  }

  .checkout-page .co-back svg { width: 10.75px; height: 10.75px; }

  .checkout-page .co-steps { margin-bottom: 67px; }

  .checkout-page .co-notes {
    gap: 10px;
    margin-bottom: 32px;
  }

  .checkout-page .co-notes li {
    min-height: 22px;
    gap: 15px;
    font-size: 14px;
    line-height: 16px;
    align-items: center;
  }

  .checkout-page .co-star { width: 22px; height: 22px; }

  .checkout-page .co-grid {
    grid-template-columns: 574px 446px;
    gap: 20px;
  }

  .checkout-page .co-col-main { gap: 20px; }
}

/* ---------- checkout: планшет ---------- */

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .checkout-page .container { padding: 0 40px; }

  .co-grid { grid-template-columns: 1fr; }

  .co-fields { grid-template-columns: repeat(3, 1fr); }

  .co-field--city { grid-column: auto; }
  .co-field--street { grid-column: 1 / 3; }
  .co-hint { grid-column: 1 / -1; }

  .co-mid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .co-mid .co-totals { flex: 1; max-width: 420px; }
  .co-mid .co-ship { flex: 0 0 260px; }

  /* На планшете колонка одна — sticky не нужен, иначе саммари прилипнет
   * в середине потока. */
  .co-summary { position: static; }
}

/* ---------- checkout: телефон ---------- */

@media (max-width: 430px) {
  .checkout-page { padding-top: 16px; }

  .checkout-page .container { padding: 0 16px; }

  .co-back { margin-bottom: 24px; }

  .co-steps { margin-bottom: 60px; }

  .co-step__dot { width: 44px; height: 44px; }

  .co-step__label { font-size: 10px; top: calc(100% + 10px); }

  .co-notes { margin-bottom: 30px; }
  .co-notes li { font-size: 13px; }

  .co-card { padding: 30px 22px 34px; border-radius: 22px; }

  .co-card__title { font-size: 24px; margin-bottom: 24px; }

  .co-fields { grid-template-columns: 1fr 1fr; }

  .co-field--phone,
  .co-field--name,
  .co-field--city,
  .co-field--street { grid-column: 1 / -1; }

  .co-scheduler {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .co-cal { padding-right: 0; }

  .co-cal__grid { grid-template-columns: repeat(7, minmax(30px, 1fr)); }

  .co-times {
    border-left: none;
    padding-left: 0;
    flex: 1;
  }

  .co-times__list { height: 140px; flex-direction: column; }

  .co-pay__row { flex-direction: column; align-items: flex-start; gap: 12px; }

  .co-pay__logos { margin-left: 27px; }

  .co-mid { flex-direction: column; }

  .co-mid .co-ship { flex: none; }

  .co-summary { padding: 30px 22px 34px; position: static; }
}

/* =========================================
   ПОКАЗАТЬ СОСТАВ — модалка набора и попап вкуса
========================================= */

.sm-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(64, 28, 12, 0.45);
}

.sm-overlay--flavor {
  z-index: 310;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-overlay[hidden] { display: none; }

.sm-panel {
  position: relative;
  width: min(1160px, 100%);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  max-width: 1160px;
  margin: 0;
  padding: 46px 54px 64px;
  background: var(--c-cream-1);
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(30, 12, 6, 0.35);
}

.sm-close {
  position: absolute;
  top: 26px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: var(--c-red);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sm-close svg { width: 22px; height: 22px; }

.sm-close:hover { transform: scale(1.02); }

/* --- шапка набора --- */

.sm-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) 1.4fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 38px;
  padding: 34px 56px 34px 38px;
  background: linear-gradient(160deg, #FFF9F0 0%, #FBEEDD 100%);
  border-radius: 28px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    4px 8px 32px rgba(64, 28, 12, 0.08);
}

.sm-head__photo {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 22px rgba(64, 28, 12, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sm-head__photo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.sm-head__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}

.sm-head__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brown-500);
}

.sm-head__title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--c-brown-900);
}

.sm-head__weight {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-brown-900);
}

.sm-head__ingredients {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-brown-900);
}

.sm-head__ingredients b { font-weight: 600; }

/* --- подсказка --- */

.sm-hint {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-brown-900);
}

.sm-hint b { font-weight: 600; }

/* --- сетка вкусов --- */

.sm-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 40px;
  padding: 0 16px;
}

.sm-tile {
  position: relative;
  display: block;
  height: 130.5px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.sm-tile__name {
  position: absolute;
  top: 5px;
  left: 9px;
  width: calc(100% - 18px);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 100;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-brown-700);
  line-height: 1.25;
}

.sm-tile__photo {
  position: absolute;
  top: 32px;
  left: 0;
  width: 100%;
  height: 52px;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Тень под макароном одна на все плитки вкусов. Раньше здесь была своя,
   более светлая (3px 3px 7px rgba(214,191,167,.45)), а на «составе набора»
   своя — из-за этого на одних экранах тень читалась, на других почти нет.
   Берём вариант со страницы состава: он темнее и заметнее. */
.sm-tile__photo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  filter: drop-shadow(3px 6px 7px rgba(170, 130, 103, 0.55));
  transition: transform 0.2s ease;
}

.edit-set-page .sm-tile__photo img { filter: none; }

.sm-tile:hover .sm-tile__photo img { transform: scale(1.06); }

.sm-tile__qty {
  position: absolute;
  top: 90px;
  left: 50%;
  display: flex;
  width: 44px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 60px;
  background: linear-gradient(95.91deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow:
    3px 3px 7px rgba(214, 191, 167, 0.45),
    inset -3px -3px 7.5px #FFFFFF,
    inset 1.5px 1.5px 8.25px rgba(231, 205, 177, 0.9);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--c-red);
}

/* --- попап вкуса --- */

.sm-flavor__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 72px 60px 64px;
  background: linear-gradient(160deg, #FFF9F0 0%, #FDF0E0 100%);
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(30, 12, 6, 0.4);
}

.sm-flavor__name {
  margin-bottom: 34px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 100;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-brown-900);
}

.sm-flavor__text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-brown-900);
}

.sm-flavor__text b { font-weight: 600; }

/* --- планшет --- */

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .sm-head {
    grid-template-columns: 120px 1fr;
    gap: 24px 30px;
    padding: 30px 34px;
  }

  .sm-head__photo { width: 120px; height: 120px; }

  .sm-head__ingredients { grid-column: 1 / -1; }

  .sm-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- телефон --- */

@media (max-width: 430px) {
  .sm-overlay { display: block; overflow-y: auto; padding: 16px 10px; }

  .sm-panel {
    padding: 56px 20px 44px;
    border-radius: 24px;
  }

  .sm-close { top: 18px; right: 18px; }

  .sm-head {
    grid-template-columns: 84px 1fr;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 24px;
  }

  .sm-head__photo { width: 84px; height: 84px; border-radius: 14px; }

  .sm-head__label { font-size: 11px; }
  .sm-head__title { font-size: 16px; }
  .sm-head__weight { margin-top: 4px; font-size: 12px; }

  /* на телефоне общий состав набора скрыт (как в макете) — вкусы кликабельны */
  .sm-head__ingredients { display: none; }

  .sm-hint { font-size: 13px; margin-bottom: 26px; }

  .sm-hint { display: flex; }

  .sm-grid { grid-template-columns: 1fr 1fr; gap: 32px 18px; }

  .sm-tile { height: 126px; }
  .sm-tile__name { font-size: 14px; letter-spacing: 1.5px; }

  .sm-flavor__panel {
    padding: 56px 26px 40px;
    border-radius: 28px;
  }

  .sm-flavor__name { font-size: 28px; letter-spacing: 3px; }

  .sm-flavor__text { font-size: 14px; }
}

/* =========================================
   ИЗМЕНИТЬ НАБОР (сборный набор + попапы)
========================================= */

.edit-set-page {
  min-height: 987px;
  padding: 0;
  overflow: visible;
}

.es-sticky-head {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 282px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(105.67deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow:
    inset -4px -4px 10px #FFF,
    inset 2px 2px 11px rgba(231, 205, 177, 0.9),
    4px 4px 12px rgba(214, 191, 167, 0.45);
}

.es-sticky-head .sv-back svg { width: 11px; height: 11px; }

.es-sticky-head .sv-product__photo img {
  width: 82px;
  height: 71px;
  max-width: none;
  max-height: none;
  filter: none;
}

.es-stage {
  position: relative;
  width: 1200px;
  height: 665px;
  margin-top: 40px;
}

/* The first editable-set state must stay a real grid.  It used to be a
   whole-screen Figma PNG with the live controls hidden underneath, which
   made the visual state impossible to inspect and broke keyboard use. */
.es-stage.is-figma-initial { background: none; }
.es-photo-source { display: contents; }

.es-grid {
  display: grid;
  grid-template-columns: repeat(5, 180px);
  grid-auto-rows: 130.5px;
  gap: 10px 40px;
  width: 1200px;
  height: 551px;
  margin: 0;
  padding: 0 70px;
  overflow: hidden;
}

.es-grid .es-tile,
.es-grid .es-add-tile {
  width: 180px;
  height: 130.5px;
  min-height: 0;
}

/* степпер −/N/+ */

.es-stepper {
  display: inline-flex;
  align-items: center;
}

.es-stepper__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #B01E2B 0%, #8C161F 100%);
  box-shadow: 0 6px 14px rgba(64, 28, 12, 0.25);
  color: var(--c-cream-2);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease;
  z-index: 1;
}

.es-stepper__btn:hover { transform: scale(1.02); }

.es-stepper__val {
  min-width: 44px;
  height: 28px;
  margin: 0 -5.25px;
  padding: 7px 0;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(64, 28, 12, 0.12);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  color: var(--c-brown-900);
}

/* плитка «добавить вкус» в сетке */

.es-add-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130.5px;
}

.es-add-btn {
  width: 160px;
  height: 46px;
  padding: 0 19px 0 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brown-900);
  cursor: pointer;
  transition: 0.25s ease;
}

.es-add-btn:hover { transform: scale(1.02); }

/* кнопка ДОБАВИТЬ в попапе выбора вкуса */

.es-add-flavor {
  min-width: 130px;
  padding: 10px 22px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(64, 28, 12, 0.12);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--c-red);
  cursor: pointer;
  transition: 0.2s ease;
}

.es-add-flavor:hover { background: #FFFFFF; }

/* нижняя панель ГОТОВО */

.es-done-bar {
  position: sticky;
  z-index: 12;
  bottom: 0;
  height: 102px;
  margin-top: 12px;
  padding: 28px 80px;
  border-radius: 40px 40px 0 0;
  background: linear-gradient(127.8deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    4px 8px 32px rgba(64, 28, 12, 0.1);
}

.es-done {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  box-shadow: 0 10px 24px rgba(157, 31, 42, 0.35);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cream-2);
  cursor: pointer;
  transition: 0.25s ease;
}

.es-done:hover:not(:disabled) { transform: scale(1.02); }

.es-done:disabled {
  opacity: 0.55;
}

.is-edit-set .site-footer { display: none; }

/* Desktop editor — Figma 770:46775 / 770:41306 / 770:38698.
   Names, photos and actions occupy separate grid rows. Only the exported
   photo/shadow art is positioned within its own reserved image row. */
@media (min-width: 861px) ,  (width > 860px) {
  body.is-edit-set .header-inner {
    gap: 0;
    background: linear-gradient(142.195deg, #fff6ed 15.549%, #f5e8db 90.822%);
    box-shadow: inset -4px -4px 10px #fff, inset 2px 2px 11px #e7cdb1e6, 4px 4px 24px #d6bfa773;
  }
  body.is-edit-set .header-logo img {
    content: url("img/set-editor/desktop/ui/logo@3x.png");
    width: 80.946px; height: 13.975px;
  }
  body.is-edit-set .header-nav { flex: 0 0 648px; margin-left: 40px; justify-content: flex-start; }
  body.is-edit-set .header-right {
    margin-left: clamp(20px, calc(20px + (100vw - 1200px) * .12), 36px);
    gap: 17px;
  }
  body.is-edit-set .cart-btn { width: 96px; margin-left: 9px; }
  /* The first navigation link stays in its normal state until hover/focus,
     matching the current menu behavior request; no persistent active underline. */
  body.is-edit-set .social-item[aria-label="Max"] img { content: url("img/set-editor/desktop/ui/social-max@3x.png"); }
  body.is-edit-set .social-item[aria-label="Telegram"] img { content: url("img/set-editor/desktop/ui/social-tg@3x.png"); }
  body.is-edit-set .social-item[aria-label="Instagram"] img { content: url("img/set-editor/desktop/ui/social-inst@3x.png"); }
  body.is-edit-set .social-item[aria-label="Позвонить"] img { content: url("img/set-editor/desktop/ui/social-call@3x.png"); }
  .edit-set-page { min-height: 100svh; }
  .edit-set-page .sv-product__photo { position: relative; }
  .edit-set-page .sv-product__photo .es-cover--figma {
    content: url("img/set-editor/desktop/ui/cover@3x.png");
    position: absolute; left: 4px; top: 11px;
  }
  .edit-set-page .es-hint { display: none; }
  .edit-set-page .es-stage { width: 1200px; height: auto; margin: 40px auto 0; }
  .edit-set-page .es-grid { height: auto; grid-auto-rows: auto; overflow: visible; }
  .edit-set-page .es-tile {
    display: grid;
    grid-template-rows: minmax(27px, auto) 58px 28px;
    align-content: start;
    justify-items: center;
    width: 180px;
    height: auto;
    min-height: 130.5px;
    padding: 5px 0 12.5px;
    cursor: default;
  }
  .edit-set-page .sm-tile__name {
    position: static;
    width: 162px;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: .06em;
    color: #401c0c;
  }
  .edit-set-page .sm-tile__photo {
    position: relative;
    inset: auto;
    width: 180px;
    height: 58px;
    cursor: pointer;
  }
  .edit-set-page .sm-tile__photo img {
    position: absolute;
    left: var(--desktop-art-left, 0px);
    top: var(--desktop-art-top, 0px);
    width: var(--desktop-art-width, 180px);
    height: auto;
    max-width: none;
    /* The editor's normalized source artwork already contains its shadow;
       the editor-only rule above prevents applying a second CSS shadow. */
  }
  .edit-set-page .sm-tile:hover .sm-tile__photo img { transform: scale(1.02); }
  .edit-set-page .es-stepper { align-self: start; height: 28px; transform: translate(-.25px, -.25px); }
  .edit-set-page .es-stepper__val {
    color: #b01e2b;
    font-weight: 500;
    letter-spacing: .03em;
    background: linear-gradient(95.915deg, #fff6ed 15.549%, #f5e8db 90.822%);
    box-shadow: inset -3px -3px 7.5px #fff, inset 1.5px 1.5px 8.25px #e7cdb1e6, 3px 3px 7px #d6bfa773;
  }
  .edit-set-page .es-add-flavor {
    min-width: 0;
    width: 100px;
    height: 28px;
    padding: 2px 0 0;
    border-radius: 80px;
    font-size: 10px;
    letter-spacing: .03em;
    text-decoration: none;
    background: linear-gradient(103.249deg, #fff6ed 15.549%, #f5e8db 90.822%);
    box-shadow: inset -4px -4px 10px #fff, inset 2px 2px 11px #e7cdb1e6, 4px 4px 7px #d6bfa773;
  }
  .edit-set-page .es-add-flavor:hover { transform: scale(1.02); }
  .edit-set-page .es-done {
    letter-spacing: .03em;
    box-shadow: -4px -4px 4px #fff, 4px 4px 8px #d6bfa7;
  }
  /* Original Figma paint/shadow layers at 3x; labels and hit targets remain
     live HTML. The transparent margins belong to the artwork, not layout. */
  .edit-set-page :is(.es-add-flavor, .es-stepper__val, .es-stepper__btn, .es-done, .es-add-btn, .es-done-bar) {
    position: relative;
    isolation: isolate;
    background: none;
    box-shadow: none;
  }
  .edit-set-page :is(.es-add-flavor, .es-stepper__val, .es-stepper__btn, .es-done, .es-add-btn, .es-done-bar)::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    background: var(--es-ui-art) center / 100% 100% no-repeat;
  }
  .edit-set-page .es-add-flavor { --es-ui-art: url("img/set-editor/desktop/ui/add-small@3x.png"); line-height: 12px; text-indent: .03em; }
  .edit-set-page .es-add-flavor::before { inset: -10px -18px -18px -10px; }
  .edit-set-page .es-stepper__val { --es-ui-art: url("img/set-editor/desktop/ui/quantity@3x.png"); padding: 9.25px 0 0; line-height: 11px; }
  .edit-set-page .es-stepper__val::before { inset: -11px -17px -17px -11px; }
  .edit-set-page .es-stepper__btn { font-size: 0; flex: 0 0 22px; }
  .edit-set-page .es-stepper__btn::before { inset: -9px -7px -7px -9px; }
  .edit-set-page [data-minus] { --es-ui-art: url("img/set-editor/desktop/ui/minus@3x.png"); }
  .edit-set-page [data-plus] { --es-ui-art: url("img/set-editor/desktop/ui/plus@3x.png"); }
  .edit-set-page .es-done { --es-ui-art: url("img/set-editor/desktop/ui/done@3x.png"); padding-top: 2px; line-height: 14px; }
  .edit-set-page .es-done::before { inset: -8px -12px -12px -8px; }
  .edit-set-page .es-add-btn { --es-ui-art: url("img/set-editor/desktop/ui/add-flavor@3x.png"); letter-spacing: .03em; padding-top: 2px; }
  .edit-set-page .es-add-btn::before { inset: -20px -28px -28px -20px; }
  .edit-set-page .es-done-bar { --es-ui-art: url("img/set-editor/desktop/ui/footer@3x.png"); position: sticky; margin-top: 11px; }
  .edit-set-page .es-done-bar::before {
    inset: 0;
    background-size: calc(100% + 48px) calc(100% + 48px);
    background-position: -20px -20px;
    border-radius: inherit;
    filter: drop-shadow(4px 4px 12px #d6bfa773);
  }
  .edit-set-page :is(.es-add-flavor, .es-add-btn):hover { background: none; }
  .edit-set-page .sv-back svg { visibility: hidden; }
  .edit-set-page .sv-back::before {
    content: ""; position: absolute; left: -.71px; top: 2.27px;
    width: 6.67px; height: 11.67px;
    background: url("img/set-editor/desktop/ui/back@3x.png") center / contain no-repeat;
  }
  .edit-set-page #es-add {
    z-index: 1100; background: #0006; backdrop-filter: blur(4px);
    align-items: flex-start;
    padding-top: clamp(40px, calc(100dvh - 1021px), 118px);
  }
  .edit-set-page #es-add .sm-panel {
    width: 1134px;
    max-width: 1134px;
    padding: 80px 37px 48px;
    background: linear-gradient(94.448deg, #fff6ed 15.549%, #f5e8db 90.822%);
    box-shadow: inset -4px -4px 10px #fff, inset 2px 2px 11px #e7cdb1e6, 4px 4px 12px #d6bfa773;
    overscroll-behavior: contain;
  }
  .edit-set-page #es-add .sm-close { top: 23px; right: 21px; }
  .edit-set-page #es-add .sm-close svg { visibility: hidden; }
  .edit-set-page #es-add .sm-close::before {
    content: ""; position: absolute; width: 15.333px; height: 15.333px;
    background: url("img/set-editor/desktop/ui/close@3x.png") center / contain no-repeat;
    pointer-events: none;
  }
  .edit-set-page .es-add-grid { grid-template-columns: repeat(5, 180px); padding: 0; }
  .edit-set-page #es-add .sm-tile__name {
    /* Figma centers the ink without CSS's trailing letter-spacing. */
    text-indent: .06em;
    translate: 0 .5px;
  }
  .edit-set-page .sm-tile__photo:focus-visible { outline: 2px solid #b01e2b; outline-offset: 2px; border-radius: 4px; }
}

/* попапы «Уважаемый клиент» */

.es-popup__panel {
  position: relative;
  width: min(680px, 100%);
  padding: 74px 60px 56px;
  background: linear-gradient(160deg, #FFF9F0 0%, #FDF0E0 100%);
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(30, 12, 6, 0.4);
  text-align: center;
}

.es-popup__title {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 100;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-brown-700);
}

.es-popup__text {
  margin-bottom: 32px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-brown-900);
}

.es-popup__text b { font-weight: 600; }

.es-popup__sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.es-popup__size,
.es-popup__ok {
  min-width: 180px;
  height: 54px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  box-shadow: 0 10px 22px rgba(157, 31, 42, 0.35);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-cream-2);
  cursor: pointer;
  transition: 0.25s ease;
}

.es-popup__size:hover,
.es-popup__ok:hover { transform: scale(1.02); }

.es-popup__cancel {
  min-width: 380px;
  height: 54px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: -4px -4px 4px #FFFFFF, 4px 4px 8px #D6BFA7;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brown-900);
  cursor: pointer;
  transition: 0.25s ease;
}

.es-popup__cancel:hover { transform: scale(1.02); }

/* --- планшет --- */

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .edit-set-page {
    overflow-x: hidden;
  }
  .edit-set-page .container { padding: 0 40px; }
  /* This page has a verified 1200px composition and a dedicated 430px
     layout, but no separate 860px frame. Scale the desktop editing canvas
     once; the global 431–860 zoom then handles narrower tablet widths. */
  .es-stage { zoom: .7166667; }
}

/* --- телефон --- */

@media (max-width: 430px) {
  .edit-set-page { padding-top: 16px; }

  .edit-set-page .container { padding: 0 16px; }

  .es-grid { margin-bottom: 36px; }

  .es-stepper__btn { width: 30px; height: 30px; font-size: 16px; }

  .es-stepper__val { min-width: 48px; }

  .es-add-tile { min-height: 120px; }

  .es-add-btn { padding: 16px 26px; font-size: 12px; }

  .es-done-bar { padding: 14px; border-radius: 24px; }

  .es-done { height: 54px; }

  .es-popup__panel { padding: 56px 24px 40px; border-radius: 28px; }

  .es-popup__title { font-size: 26px; letter-spacing: 3px; }

  .es-popup__text { font-size: 13px; }

  .es-popup__text br { display: none; }

  .es-popup__size, .es-popup__ok { min-width: 140px; height: 48px; }

  .es-popup__cancel { min-width: 100%; height: 48px; }
}

/* =========================================
   PAGE: Часто задаваемые вопросы (Figma 783:700 / 783:1093)
========================================= */
.faq-page {
  min-height: 2108px;
  overflow: visible;
  background: #FFF6EB;
}
.faq-wrap {
  position: relative;
  width: 1200px;
  max-width: none;
  min-height: 2108px;
  margin: 0 auto;
  padding: 0;
}
.faq-title {
  position: absolute;
  top: 160px;
  left: 81px;
  width: 438px;
  height: 174px;
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 50px;
  line-height: normal;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #401C0C;
  margin: 0;
}
.faq-side-script {
  position: absolute;
  top: 574px;
  left: 41.4px;
  width: 138px;
  height: 1488px;
  max-width: none;
}
.faq-list {
  position: absolute;
  top: 160px;
  left: 488px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 632px;
}
.faq-cat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 46px;
  margin: 32px 0 18px;
  padding: 0 8px;
  border-radius: 80px;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  filter: drop-shadow(1px 1px 1.5px rgba(154, 130, 105, 0.6));
}
.faq-list > .faq-cat-label:first-child { margin-top: 0; }
.faq-cat-label span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: #FFF6EB;
}
.faq-item {
  position: relative;
  width: 632px;
  height: 80px;
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(117.51deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow:
    inset -4px -4px 10px #FFF,
    inset 2px 2px 11px rgba(231, 205, 177, 0.9),
    4px 4px 12px rgba(214, 191, 167, 0.45);
  overflow: hidden;
  transition: height 0.3s ease;
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item__head {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.faq-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 80px;
  background: linear-gradient(156.14deg, #FFF8F2 15.59%, #F8EADC 90.2%);
  box-shadow:
    2px 2px 6px rgba(165, 140, 114, 0.25),
    -6px -6px 10px #FFF,
    4px 4px 18px rgba(214, 191, 167, 0.9);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.36px;
  color: #B01E2B;
}
.faq-item__q {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  opacity: 0.8;
  color: #401C0C;
}
.faq-item__toggle {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}
.faq-item__toggle img {
  position: absolute;
  /* Isolated 783:2308 / 783:2344 exports: 16px leading shadow, 22px trailing. */
  top: -16px;
  left: -16px;
  width: 74px;
  height: 74px;
  max-width: none;
}
.faq-item__toggle-open { display: none; }
.faq-item--open .faq-item__toggle-closed { display: none; }
.faq-item--open .faq-item__toggle-open { display: block; }
.faq-item__body {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
  transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.2s ease;
}
.faq-item--open {
  height: auto;
  min-height: 0;
}
.faq-item--open .faq-item__body {
  max-height: 900px;
  margin-top: 12px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item__body { transition: none; }
}
.faq-item__body p {
  width: 520px;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0 68px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: #401C0C;
}
.faq-item__body a { font-weight: 500; text-decoration: underline; }
.faq-item__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 68px;
}
.faq-item__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  color: #401C0C;
  margin: 0;
}
.faq-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  background: url("img/faq-dot.svg") center / contain no-repeat;
}

/* No separate 860px FAQ frame is available in design-reference yet. Keep the
   verified 1200px composition intact and scale it as one unit instead of
   clipping the right-hand question column or introducing horizontal scroll. */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .faq-page {
    min-height: 1511px;
    overflow-x: hidden;
  }
  .faq-wrap {
    zoom: .7166667;
  }
}

@media (max-width: 430px) {
  .faq-page { height: auto; min-height: 100vh; overflow: visible; }
  .faq-wrap {
    width: 100%;
    height: auto;
    padding: 110px 16px 60px;
  }
  .faq-title {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 40px;
    font-size: 32px;
    letter-spacing: 1.92px;
  }
  .faq-side-script { display: none; }
  .faq-list { position: static; width: 100%; }
  .faq-item { width: 100%; padding: 18px; }
  .faq-item__head { gap: 14px; }
  .faq-item__q { font-size: 13px; }
  .faq-item__body p,
  .faq-item__list { padding-left: 50px; }
}

/* =========================================
   PAGE: О PAOLA / О нас (Figma 793:5438)
========================================= */
.about-page { background: #FFF6EB; }
/* Отступ сверху задаём один раз на .about-page: .container на странице
   встречается трижды (история, команда, «почему нас выбирают»), и padding
   на нём сдвигал бы каждую секцию */
.about-page .container { padding-top: 0; padding-bottom: 0; }
.about-page { padding-top: 160px; padding-bottom: 65px; }

/* Шапка: заголовок 199px, затем отступ 339px до звезды с подзаголовком */
.ab-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 339px;
  height: 58px;
  margin-bottom: 56px;
}
.ab-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 50px;
  line-height: 57px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #401C0C;
  margin: 0;
  white-space: nowrap;
}
.ab-subtitle {
  display: flex;
  align-items: center;
  gap: 53px;
  width: 438px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 17px;
  color: #401C0C;
  text-wrap: pretty;
}

/* История: две колонки, правая опущена на 216px (как в макете), фото нет */
.ab-story {
  position: relative;
  display: grid;
  grid-template-columns: 472px 1fr;
  column-gap: 78px;
  /* высота блока из макета — чтобы красная полоса начиналась ровно на 778px */
  min-height: 444px;
  margin-bottom: 60px;
}
.ab-story__col { position: relative; z-index: 1; }
.ab-story__col--right { padding-top: 216px; }
.ab-story__col p {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 14px;
  color: #401C0C;
  margin: 0 0 21px;
  text-wrap: pretty;
}
.ab-story__col p:last-of-type { margin-bottom: 0; }
/* Кнопка во всю ширину левой колонки */
.ab-story__cta {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 46px;
  margin-top: 32px;
  transition: transform 0.2s ease;
}
.ab-story__cta:hover { transform: scale(1.02); }
/* Огромная светлая «P» — вырезана из макета, прозрачность уже в самом PNG */
.ab-story__watermark {
  position: absolute;
  left: 484px;
  top: -151px;
  width: 603px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

/* Команда: красная полоса во всю ширину экрана, без скруглений */
.ab-team {
  position: relative;
  background: #9D1F2A;
  isolation: isolate;
  padding: 60px 0;
  margin-bottom: 84px;
}
/* Раунд 5: текстура общего красного фона — картинка-ткань из Figma
   (imageRef 20e81642…, узел 793:5711) при opacity 0.2 поверх #9D1F2A, cover.
   Прежний figma-team-background.webp был практически плоским. */
.ab-team::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('img/about/figma-team-fabric.webp') center / cover no-repeat;
  opacity: .045; /* подобрано по замеру рендера Figma: разброс R std 1.3, среднее 156.2 из 157 */
  mix-blend-mode: darken;
}
.ab-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 236px);
  gap: 32px;
  align-items: start;
}
/* Все четыре карточки опущены на одинаковые 14px — это запас под бейдж
   «N лет с PAOLA», который висит на 14px выше кромки фото.
   Раньше первой карточке ставили 7px по координатам из Figma. Но высота
   у карточек одна (353px), поэтому разная отбивка разводила и верх фото,
   и низ подписей на те же 7px: ряд читался как несобранный. */
.ab-team__card { margin-top: 14px; }
/* Обёртка фото — точка отсчёта для бейджа и стикеров; overflow не ставим,
   иначе обрежет то, что по макету выступает за верхний край */
.ab-team__photo { position: relative; }
.ab-team__photo > img {
  display: block;
  width: 236px;
  height: 289px;
  object-fit: contain;
  border-radius: 4px;
}
/* Бейдж кремовый с красным текстом, посажен ровно на верхнюю кромку фото */
.ab-team__badge {
  position: absolute;
  top: -14px;
  left: 21px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 28px;
  border-radius: 14px;
  background: #FBE5C1;
  color: #B01E2B;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  text-transform: uppercase;
}
/* Специфичность должна быть выше, чем у ".ab-team__photo > img",
   иначе стикер растягивается до размеров фото */
.ab-team__photo > img.ab-team__sticker {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  height: auto;
}
/* Координаты сняты с макета: колпак выступает над стыком карточек 1–2,
   морковка лежит на правом нижнем углу 4-й */
.ab-team__photo > img.ab-team__sticker--hat    { top: -37px; left: 168px; width: 80px; height: auto; }
.ab-team__photo > img.ab-team__sticker--carrot { top: 166px; left: 193px; width: 77.5px; height: auto; }
.ab-team__info { padding-top: 22px; }
.ab-team__name {
  display: block;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  text-transform: uppercase;
  color: #FFF6EB;
  margin-bottom: 2px;
}
.ab-team__role {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 16px;
  color: #FFF6EB;
}
/* Заголовок и кнопка — ПОД карточками */
.ab-team__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 50px;
  line-height: 57px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFF6EB;
  margin: 48px 0 9px;
}
.ab-team__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 46px;
  border-radius: 80px;
  background: linear-gradient(180deg, #FFF6ED 0%, #F8EADC 100%);
  box-shadow: 4px 4px 8px rgba(48, 23, 12, 0.1);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #B01E2B;
  transition: transform 0.2s ease;
}
.ab-team__more:hover { transform: scale(1.02); }

/* Почему нас выбирают */
.ab-why__header {
  display: flex;
  align-items: center;
  gap: 72px;
  margin-bottom: 48px;
}
.ab-why__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 50px;
  line-height: 57px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #401C0C;
  margin: 0;
  white-space: nowrap;
}
.ab-why__sub {
  display: flex;
  align-items: center;
  gap: 53px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 18px;
  color: #401C0C;
}

/* Карточки — такая же «оторванная» кромка, как у блока доставки */
.ab-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 546px;
  align-items: start;
  height: 268px;
  margin-bottom: 48px;
  background: transparent;
}
.ab-feature:last-child { margin-bottom: 0; }
.ab-feature--tall { height: 320px; }
.ab-feature--flip { grid-template-columns: 521px 1fr; }
.ab-feature--flip .ab-feature__img  { order: -1; }
.ab-feature__text { position: relative; z-index: 2; padding: 54px 0 0 60px; }
.ab-feature--flip .ab-feature__text { padding-left: 58px; }
.ab-feature--flip .ab-feature__text { grid-column: 2; }
.ab-feature--love .ab-feature__text { padding-top: 77px; }
.ab-feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 38px;
  text-transform: uppercase;
  color: #401C0C;
  margin: 0 0 21px;
  max-width: 319px;
}
.ab-feature__title span { color: #B01E2B; }
.ab-feature__body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 15px;
  font-weight: 400;
  color: #401C0C;
  margin: 0;
  max-width: 338px;
  text-wrap: pretty;
}
.ab-feature__body strong { font-weight: 500; }
/* Переносы, заданные макетом (Figma 793:6067/793:5774): на ПК строка не рвётся,
   на планшете и телефоне — рвётся в этих местах. */
.ab-br { display: none; }
@media (max-width: 860px) { .ab-br--tablet { display: inline; } }
@media (max-width: 430px) { .ab-br--phone { display: inline; } }
.ab-feature--flip .ab-feature__body { max-width: 428px; }
.ab-feature:not(.ab-feature--tall):not(.ab-feature--flip) .ab-feature__body { max-width: 370px; }
.ab-feature__note {
  font-family: var(--font-body);
  font-size: 9px;
  line-height: 10px;
  color: #401C0C;
  margin: 21px 0 0;
  max-width: 338px;
  text-wrap: pretty;
}
.ab-feature__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.ab-feature__texture {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  background-repeat: no-repeat;
  mix-blend-mode: darken;
}
/* Текстура кроет ВСЮ кремовую половину (519.5px — ровно до колонки фото),
   по горизонтали в натуральном масштабе, по вертикали тянется на высоту
   карточки. Куски меньше половины давали видимый прямоугольник поверх
   плашки — см. правку по «разнообразию вкусов». */
.ab-feature--tall .ab-feature__texture {
  left: 0;
  top: 0;
  width: 519px;
  height: 100%;
  background-image: url('img/about/figma-paper-texture-layer.webp');
  background-position: left top;
  background-size: 1031px 100%;
}
.ab-feature--flip:not(.ab-feature--love) .ab-feature__texture {
  left: 520px;
  right: auto;
  top: 0;
  width: 520px;
  height: 100%;
  background-image: url('img/about/figma-paper-texture-packaging.webp');
  background-position: right top;
  background-size: 1040px 100%;
}
/* Текстура кладётся на ВСЮ кремовую половину (494px = 1040 минус колонка
   фото 546), а не куском 473x213 в углу. В Figma картинка текстуры (нода
   793:5680) действительно 832x212 и лежит под фотографией, а не поверх неё,
   поэтому её край там ничего не режет. У нас порядок обратный — текстура
   поверх запечённой картинки — и её прямоугольник был виден: внутри тон
   249,240,229, снаружи запечённый крем 252,244,233, при mix-blend darken
   получалась заметная ступенька по правому краю и по низу на y=213.
   Растягиваем на всю половину: зерно у текстуры std 1.38, растяжение на
   26% по высоте на глаз не читается, а ступеньки больше нет. */
.ab-feature:not(.ab-feature--tall):not(.ab-feature--flip) .ab-feature__texture {
  left: 0;
  top: 0;
  width: 519px;
  height: 100%;
  background-image: url('img/about/figma-paper-texture-flavors.webp');
  background-position: left top;
  background-size: 833px 100%;
}
.ab-feature--love .ab-feature__texture {
  left: 520px;
  right: auto;
  top: 0;
  width: 520px;
  height: 100%;
  background-image: url('img/about/figma-paper-texture-love.webp');
  background-position: right top;
  background-size: 1040px 100%;
}
/* Рваная кромка низа во всю ширину + тень карточки.
   Сверено с design-reference/13-about-us.png (тот же эталон, по которому шла
   вся сессия) и с нодами 793:5633/5655/5672/5693 нового файла
   oophelWtqvvRZ18vxjg6IN — секция «почему нас выбирают» между файлами не
   менялась (диф 1.26%), так что это давний пробел вёрстки, а не редизайн.

   Что было не так: .ab-feature__img — это экспорт ноды с КАРТИНКАМИ
   (793:5662 и аналоги), в нём зубцы вырезаны только под фотографией, а
   кремовая половина обрывается прямой. Отдельный слой силуэта с тенью
   (793:5657) в вёрстке не воспроизводился вовсе. Из-за этого кромку на
   креме не было ни видно, ни физически: крем карточки отличается от фона
   страницы на 2 единицы, и без тени граница не читается.

   Геометрия снята НЕ из svg ноды, а замером самих запечённых PNG — иначе
   зубцы маски не попадают в фазу уже вырезанных и на стыке половин виден
   излом (svg новой ноды даёт шаг 26.298 и первое остриё 15.22, реальный
   экспорт — 26.333 и 13.00; на ширине карточки это расходится на полтора
   пикселя). Замер по всем четырём PNG: шаг 26.333px, острия на y=267.67
   при высоте 268, впадины на 259.33 → глубина 8.33px, решётка остриёв
   общая для всех карточек и начинается с x=13. Тень: dx4 dy4, чёрный 35%,
   радиус подобран по эталону.

   Почему тень на ::before, а не на самой карточке: CSS применяет filter ДО
   mask, поэтому у элемента с маской тень срезается собственной же маской.
   Форму ::before задаём фоном (прозрачно вне силуэта) — тогда drop-shadow
   берёт альфу фона и тень ложится по зубцам. Картинку и текстуру режем
   маской тем же силуэтом; фильтров на них нет, порядок не мешает. */
.ab-feature {
  --ab-tooth-w: 26.298px;
  --ab-tooth-h: 10.73px;
  --ab-tooth-x: 0.05px;
  /* Раунд 5: геометрия зубца снята с пути Figma (793:5657): шаг 26.298, глубина 9.73,
     скруглены и острия, и впадины (раньше впадины были острые). */
  --ab-tooth-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26.298' height='10.73' viewBox='0 0 26.298 10.73'><path d='M0 0H26.298V1C25.568 .995 24.838 1.25 24.278 1.76L15.149 9.96C14.009 10.98 12.289 10.98 11.149 9.96L2.02 1.76C1.46 1.25 .73 .995 0 1Z' fill='%23000'/></svg>");
  --ab-tooth-fill: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26.298' height='10.73' viewBox='0 0 26.298 10.73'><path d='M0 0H26.298V1C25.568 .995 24.838 1.25 24.278 1.76L15.149 9.96C14.009 10.98 12.289 10.98 11.149 9.96L2.02 1.76C1.46 1.25 .73 .995 0 1Z' fill='%23F8EADC'/></svg>");
}

/* Подложка-силуэт: она же плашка карточки и она же отбрасывает тень.
   Градиент — из заливки paint0_linear ноды силуэта: сверху вниз
   #FFF6ED → #F8EADC. Раньше кремовую половину рисовала запечённая
   картинка, а она плоская и на 10 единиц светлее макета (231 против 221
   у эталона), из-за чего плашка почти сливалась с фоном страницы, а любая
   наложенная текстура вылезала ступенькой. Проверка модели: darken
   градиента с тоном текстуры (249,240,229) даёт (249,240,229) сверху и
   (248,234,220) снизу — эталон показывает 249-252 и 244-248, сходится.
   Полоса зубцов залита цветом конца градиента: она 8.67px, на неё
   приходятся последние 3% градиента. */
.ab-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, #FFF6ED 0%, #F8EADC 100%), var(--ab-tooth-fill);
  background-size: 100% calc(100% - var(--ab-tooth-h) + 2px), var(--ab-tooth-w) var(--ab-tooth-h);
  background-position: 0 0, var(--ab-tooth-x) bottom;
  background-repeat: no-repeat, repeat-x;
  border-radius: 4px 4px 0 0;
  filter: drop-shadow(4px 4px 9.5px rgba(0, 0, 0, 0.35));
}

.ab-feature__img,
.ab-feature__texture {
  border-radius: 4px 4px 0 0;
  -webkit-mask-image: linear-gradient(#000, #000), var(--ab-tooth-mask);
  mask-image: linear-gradient(#000, #000), var(--ab-tooth-mask);
  -webkit-mask-size: 100% calc(100% - var(--ab-tooth-h) + 2px), var(--ab-tooth-w) var(--ab-tooth-h);
  mask-size: 100% calc(100% - var(--ab-tooth-h) + 2px), var(--ab-tooth-w) var(--ab-tooth-h);
  -webkit-mask-position: 0 0, var(--ab-tooth-x) bottom;
  mask-position: 0 0, var(--ab-tooth-x) bottom;
  -webkit-mask-repeat: no-repeat, repeat-x;
  mask-repeat: no-repeat, repeat-x;
}

/* Запечённая картинка теперь показывает ТОЛЬКО половину с фотографией:
   её кремовая половина плоская и светлее макета, крем рисует подложка.
   Замер границы по самим PNG: фото занимает 519..1040 у «ингредиентов» и
   «вкусов» и 0..520 у «упаковки» и «любви», то есть половина ровно 521px.
   clip-path, а не третий слой маски: слои маски объединяются, а не
   пересекаются, а clip-path применяется отдельно и даёт нужное пересечение. */
.ab-feature--tall .ab-feature__img,
.ab-feature:not(.ab-feature--tall):not(.ab-feature--flip) .ab-feature__img {
  clip-path: inset(0 0 0 519px);
}
.ab-feature--flip .ab-feature__img {
  clip-path: inset(0 520px 0 0);
}

/* Решётка остриёв общая для всей карточки и отсчитывается от её левого
   края (--ab-tooth-x: 13px). Маска же берёт отсчёт от левого края СВОЕГО
   элемента, а у перевёрнутых карточек текстура начинается не с нуля, а с
   520px — её зубцы уходили из фазы на 20.17px из 26.33px шага, и на стыке
   половин зубчатая кромка ломалась пополам.
   520 + 19.6667 - 13 = 526.6667 = ровно 20 шагов, то есть острия текстуры
   садятся на ту же решётку, что у фото и у подложки-силуэта. */
.ab-feature--flip .ab-feature__texture { --ab-tooth-x: 5.97px; }


.ab-feature__mobile-img { display: none; }

/* В Figma футер этой страницы начинается с логотипа на 55 px от верхней кромки. */
.about-page + .site-footer .footer-inner { padding-top: 55px; }

/* Tablet is a dedicated 860 px Figma composition (793:6067), not a
   collapsed desktop layout. */
@media (max-width: 860px) {
  .about-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .about-page > .container,
  .ab-team > .container {
    width: 100%;
    max-width: none;
    padding-left: 50px;
    padding-right: 50px;
  }
  .ab-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 725px;
    height: 109px;
    margin-bottom: 48px;
  }
  .ab-subtitle { width: 415px; gap: 20px; }

  .ab-story {
    display: block;
    width: 760px;
    height: 592px;
    min-height: 0;
    margin-bottom: 0;
  }
  .ab-story__col--left { width: 472px; }
  .ab-story__col--right {
    position: absolute;
    left: 302px;
    top: 304px;
    width: 458px;
    padding-top: 0;
  }
  .ab-story__watermark {
    left: 170px;
    top: 0;
    width: 603px;
  }

  .ab-team {
    height: 880px;
    padding: 0;
    margin-bottom: 60px;
    background: #9D1F2A;
  }
  .ab-team > .container { position: relative; height: 100%; }
  .ab-team__grid {
    position: absolute;
    left: 50px;
    top: 60px;
    grid-template-columns: repeat(3, 236px);
    gap: 43px 26px;
    width: 760px;
  }
  .ab-team__card:not(:first-child) { margin-top: 14px; }
  .ab-team__photo > img { width: 236px; height: 289px; }
  .ab-team__photo > img.ab-team__sticker--hat    { top: -37px; left: 168px; right: auto; width: 80px; }
  .ab-team__photo > img.ab-team__sticker--carrot { top: 166px; bottom: auto; left: 193px; right: auto; width: 77.5px; }
  .ab-team__title {
    position: absolute;
    left: 425px;
    top: 660px;
    margin: 0;
  }
  .ab-team__more {
    position: absolute;
    left: 425px;
    top: 727px;
  }
  .ab-team__grid,
  .ab-team__title { opacity: 0; }
  .ab-team__more { opacity: 0; }

  .ab-why__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 760px;
    height: 106px;
    margin-bottom: 48px;
  }
  .ab-why__title, .ab-title { white-space: nowrap; }
  .ab-why__sub { gap: 30px; }

  .ab-feature,
  .ab-feature--flip,
  .ab-feature--tall {
    display: block;
    width: 760px;
    height: 320px;
    margin-bottom: 44px;
    background: none;
  }
  .ab-feature::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: -15px;
    top: -15px;
    width: 790px;
    height: 350px;
    background: var(--about-feature-image) center / 100% 100% no-repeat;
    pointer-events: none;
    /* На планшете/мобилке силуэт с тенью уже запечён в --about-feature-image,
       десктопные тень и маска тут не нужны. */
    filter: none;
  }
  .ab-feature--tall { --about-feature-image: url('img/about/figma-feature-tablet-1.png'); }
  .ab-feature--flip:not(.ab-feature--love) { --about-feature-image: url('img/about/figma-feature-tablet-2.png'); }
  .ab-feature:not(.ab-feature--tall):not(.ab-feature--flip) { --about-feature-image: url('img/about/figma-feature-tablet-3.png'); }
  .ab-feature--love { --about-feature-image: url('img/about/figma-feature-tablet-4.png'); }
  .ab-feature__text { opacity: 0; pointer-events: none; }
  .ab-feature__texture { display: none; }
  .ab-feature__img {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ab-feature__img,
  .ab-feature__mobile-img { display: none; }

  .about-page + .site-footer,
  .about-page + .site-footer .footer-inner {
    height: 634px;
    min-height: 634px;
    overflow: hidden;
  }
  .about-page + .site-footer .footer-inner {
    width: 860px;
    max-width: none;
    padding: 0;
  }
  .about-page + .site-footer .footer-logo-svg {
    position: absolute;
    left: 50px;
    top: 71px;
    width: 760px;
    max-width: none;
    margin: 0;
  }
  .about-page + .site-footer .footer-columns {
    position: absolute;
    left: 50px;
    top: 263px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 73px;
    width: 760px;
    height: 250px;
    margin: 0;
  }
  .about-page + .site-footer .footer-col-buttons {
    position: absolute;
    left: 537px;
    top: 0;
    width: 176px;
    gap: 26px;
  }
  .about-page + .site-footer .footer-col-buttons .btn { width: 176px; }
  .about-page + .site-footer .footer-col-contact {
    position: absolute;
    left: 537px;
    top: 144px;
    width: 176px;
  }
  .about-page + .site-footer .footer-divider {
    position: absolute;
    left: 50px;
    top: 539px;
    width: 760px;
    margin: 0;
  }
  .about-page + .site-footer .footer-legal {
    position: absolute;
    left: 50px;
    top: 558px;
    width: 760px;
    padding: 0;
    flex-wrap: nowrap;
    gap: 0;
  }
  .about-page + .site-footer .footer-legal-main {
    flex-direction: column;
    gap: 4px;
  }
}

/* Mobile is the independent 430 px Figma frame 793:5774. */
@media (max-width: 430px) {
  .about-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .about-page > .container,
  .ab-team > .container {
    padding-left: 25px;
    padding-right: 25px;
  }
  .ab-header {
    gap: 10px;
    width: 381px;
    height: 91px;
    margin-bottom: 48px;
  }
  .ab-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 37px;
    line-height: normal;
    letter-spacing: 2.22px;
  }
  .ab-title::after {
    content: '';
    width: 23px;
    height: 23px;
    background: url('img/star.svg') center / contain no-repeat;
  }
  .ab-subtitle {
    width: 350px;
    font-size: 16px;
    line-height: normal;
  }
  .ab-subtitle .subtitle-star { display: none; }

  .ab-story {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 380px;
    height: 834px;
    margin-bottom: 60px;
  }
  .ab-story__col--left {
    display: block;
    width: 380px;
  }
  .ab-story__col--right {
    position: relative;
    left: auto;
    top: auto;
    width: 380px;
  }
  .ab-story__col p {
    font-size: 16px;
    line-height: normal;
    margin-bottom: 20px;
  }
  .ab-story__cta {
    height: 46px;
    margin-top: 40px;
    font-size: 14px;
  }
  .ab-story__watermark {
    left: 20px;
    top: 205px;
    width: 348px;
  }

  .ab-team {
    height: 899px;
    margin-bottom: 60px;
    background: #9D1F2A;
  }
  .ab-team__grid {
    left: 24px;
    top: 60px;
    grid-template-columns: repeat(2, 179px);
    gap: 32px 22px;
    width: 380px;
  }
  .ab-team__card:not(:first-child) { margin-top: 0; }
  .ab-team__photo > img { width: 179px; height: 235px; }
  .ab-team__info { padding-top: 18px; }
  .ab-team__name { font-size: 15px; line-height: normal; margin-bottom: 4px; }
  .ab-team__role { font-size: 12px; line-height: normal; }
  .ab-team__badge {
    top: -11px;
    left: 12px;
    width: 106px;
    height: 22px;
    font-size: 11px;
  }
  .ab-team__photo > img.ab-team__sticker--hat { top: -35px; left: 120px; width: 75px; }
  .ab-team__photo > img.ab-team__sticker--carrot { top: 157px; left: 145px; width: 65px; }
  .ab-team__title {
    left: 25px;
    top: 738px;
    width: 380px;
    font-size: 37px;
    line-height: normal;
    letter-spacing: 2.22px;
    text-align: center;
  }
  .ab-team__more {
    left: 25px;
    top: 796px;
    width: 380px;
    font-size: 14px;
  }

  .ab-why__header {
    gap: 10px;
    width: 380px;
    height: 134px;
    margin-bottom: 48px;
  }
  .ab-why__title {
    position: relative;
    width: 300px;
    font-size: 37px;
    line-height: normal;
    letter-spacing: 2.22px;
    white-space: normal;
  }
  .ab-why__title::after {
    content: '';
    position: absolute;
    left: 298px;
    bottom: 3px;
    width: 23px;
    height: 45px;
    background: url('img/star.svg') center / 23px 23px no-repeat;
  }
  .ab-why__sub { gap: 0; font-size: 16px; line-height: normal; }
  .ab-why__sub .subtitle-star { display: none; }

  .ab-feature,
  .ab-feature--flip,
  .ab-feature--tall {
    width: 380px;
    margin-bottom: 40px;
  }
  .ab-feature--tall {
    height: 630px;
    --about-feature-image: url('img/about/figma-feature-mobile-1.png');
  }
  .ab-feature--flip:not(.ab-feature--love) {
    height: 530px;
    --about-feature-image: url('img/about/figma-feature-mobile-2.png');
  }
  .ab-feature:not(.ab-feature--tall):not(.ab-feature--flip) {
    height: 530px;
    --about-feature-image: url('img/about/figma-feature-mobile-3.png');
  }
  .ab-feature--love {
    height: 480px;
    --about-feature-image: url('img/about/figma-feature-mobile-4.png');
  }
  .ab-feature::before {
    left: -7.5px;
    top: -8px;
    width: 395px;
    height: calc(100% + 16px);
  }
  .ab-feature--love::before {
    left: -8px;
    width: 396px;
  }

  .about-page + .site-footer,
  .about-page + .site-footer .footer-inner {
    height: 553px;
    min-height: 553px;
  }
  .about-page + .site-footer .footer-inner {
    width: 430px;
  }
  .about-page + .site-footer .footer-logo-svg {
    left: 25px;
    top: 76px;
    width: 382px;
  }
  .about-page + .site-footer .footer-columns {
    left: 25px;
    top: 182px;
    display: block;
    width: 374px;
    height: 249px;
  }
  .about-page + .site-footer .footer-col-nav {
    position: absolute;
    top: 0;
    gap: 16px;
  }
  .about-page + .site-footer .footer-col-nav:first-child { left: 0; }
  .about-page + .site-footer .footer-col-nav:nth-child(2) { left: 166px; }
  .about-page + .site-footer .footer-col-nav a { font-size: 9px; }
  .about-page + .site-footer .footer-col-buttons {
    left: 197px;
    top: 125px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 22px;
  }
  .about-page + .site-footer .footer-col-contact {
    left: 0;
    top: 134px;
    font-size: 9px;
  }
  .about-page + .site-footer .footer-divider {
    left: 25px;
    top: 453px;
    width: 374px;
  }
  .about-page + .site-footer .footer-legal {
    left: 25px;
    top: 472px;
    width: 374px;
    align-items: flex-end;
  }
  .about-page + .site-footer .footer-legal span,
  .about-page + .site-footer .footer-legal a {
    font-size: 7px;
    line-height: 9px;
  }
}

/* Standalone "Готовые наборы" page — header needs extra top clearance
   since it's the first element (not preceded by the hero on homepage) */
.sets-page__header { padding-top: 110px; }
.sets-page .sets-header-outer {
  height: 334px;
  padding-top: 166px;
}
.sets-page .sets {
  height: 5115px;
  padding-top: 66px;
  padding-bottom: 63px;
  background-color: #FFF6EB;
  background-image:
    url('img/sets-catalog-bg-bottom-lossless.webp'),
    url('img/sets-catalog-bg-middle-lossless.webp'),
    url('img/sets-catalog-bg-top-lossless.webp');
  background-size: 1200px 741px, 1200px 2187px, 1200px 2187px;
  background-position: center bottom, center 2187px, center top;
  background-repeat: no-repeat;
}
.sets-page .set-card:nth-child(2) .set-card__product-img { left: 686px; top: 41px; width: 313px; height: 275px; }
.sets-page .set-card:nth-child(3) .set-card__product-img { left: 681px; top: 41px; width: 324px; height: 274px; }
.sets-page .set-card:nth-child(5) .set-card__product-img { left: 679px; top: 85px; width: 320px; height: 185px; }
.sets-page .set-card:nth-child(n+6) .set-card__product-img {
  left: 674px;
  top: 31px;
  width: 324px;
  height: 292px;
  object-fit: contain;
}
.sets-page .set-card__product-pair {
  position: absolute;
  left: 679px;
  top: 56px;
  width: 319px;
  height: 232px;
}
.sets-page .set-card__product-pair span {
  position: absolute;
  left: 0;
  width: 319px;
  height: 100px;
  overflow: hidden;
}
.sets-page .set-card__product-pair span:first-child { top: 0; }
.sets-page .set-card__product-pair span:last-child { top: 132px; }
.sets-page .set-card__product-pair img {
  position: absolute;
  left: -96px;
  width: 517px;
  height: 344px;
  max-width: none;
}
.sets-page .set-card__product-composite {
  position: absolute;
  left: 679px;
  top: 56px;
  width: 319px;
  height: 232px;
  object-fit: contain;
  filter: drop-shadow(4px 4px 8px rgba(99, 24, 30, 0.55));
}
.sets-page .set-card__product-pair span:first-child img { top: -62px; }
.sets-page .set-card__product-pair span:last-child img { top: -193px; }
@media (max-width: 430px) {
  .sets-page__header { padding-top: 90px; }
  .sets-page .sets-header-outer { height: auto; padding-top: 90px; }
  .sets-page .sets { height: auto; background-size: cover; background-repeat: no-repeat; }
  .sets-page .set-card__product-pair {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 200px;
  }
  .sets-page .set-card__product-pair span { width: 100%; }
}




/* подсказка под кнопкой конструктора */
.constructor-hint {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-caramel-700);
  text-align: center;
}

/* согласие — подсветка при ошибке */
.co-consent--error .co-radio__dot {
  border-color: #D6001C;
  box-shadow: 0 0 0 3px rgba(214, 0, 28, 0.15);
}

/* ---------- Страница корзины ---------- */

.cart-page {
  padding: 106px 0 90px; /* top = y back-link в макете, clears fixed header */
  /* Обязательно перебить .site-main { overflow: hidden }: overflow создаёт
     скролл-контейнер, и position: sticky на .ct-summary начинает липнуть к
     нему, а не к вьюпорту, то есть не работает вовсе (правка клиента п.10).
     Тот же обход уже стоит на .set-composition-page и .edit-set-page. */
  overflow: visible;
}

/* «‹ Вернуться на Главную» (Figma 742:632) */
.ct-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 16px;
  color: var(--c-brown-900);
  text-decoration: none;
}

.ct-back svg { width: 11px; height: 11px; }
.ct-back:hover { color: var(--c-red); }

.ct-title {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brown-900);
}

.ct-empty {
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(160deg, #FFF6EC 0%, #F5E4D1 100%);
  border-radius: 28px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.8) inset,
    4px 8px 32px rgba(64, 28, 12, 0.1);
}

.ct-empty__text {
  margin-bottom: 30px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--c-brown-500);
}

.ct-empty__actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ct-empty__actions .btn { min-width: 240px; }

/* Двухколоночная сетка: 513px список + 420px сумма (Figma 742:497) */
.ct-body {
  display: grid;
  grid-template-columns: 513px 420px;
  justify-content: space-between;
  align-items: start;
}

.cart-page .ct-body[hidden],
.cart-page .ct-empty__actions[hidden] { display: none !important; }

.ct-left { min-width: 0; }

.ct-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Позиция корзины: без собственной карточки-подложки (Figma 742:500) */
.ct-item {
  display: flex;
  flex-direction: column;
}

.ct-item__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  min-height: 84px;
  width: 100%;
}

.ct-item__main {
  display: flex;
  gap: 18px;
  min-width: 0;
}

/* Правки [63].1 / [64].1: убран серый бокс за фотографией — заказчик
 * просил показывать «оригинальный фон» самой фотографии набора. Картинка
 * растянута до самой рамки контейнера (cover), контейнер прозрачный.
 * Drop-shadow убран: он рассчитан на прозрачный PNG, для прямоугольного
 * фото добавлял двойную «карамельную» тень поверх собственного фона. */
.ct-item__photo {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-item__photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  /* r5: фото набора из Figma (с тенью, 3x) показываем целиком, без обрезки тени */
  object-fit: contain;
}

.ct-item__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 84px;
  padding: 4px 0 2px;
  justify-content: space-between;
}

.ct-item__kicker {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--c-brown-900);
}

.ct-item__title {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-brown-900);
}

.ct-item__links {
  display: flex;
  flex-direction: column;
}

.ct-item__link {
  align-self: flex-start;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 8px;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--c-brown-900);
  opacity: 0.6;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ct-item__link:hover { opacity: 1; }

.ct-item__flavors {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-brown-500);
}

.ct-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  width: 154px;
  height: 84px;
  flex-shrink: 0;
  padding: 2px 0 4px;
}

.ct-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
}

/* Степпер: красные круги −/+ (Figma 742:516) */
.ct-qty {
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

.ct-qty__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  color: #FFF6EB;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 12px rgba(176, 30, 43, 0.2);
}

.ct-qty__btn:first-child { margin-right: -7px; }
.ct-qty__btn:last-child {
  width: 17px;
  height: 17px;
  margin-left: -7px;
}

.ct-qty__btn::before,
.ct-qty__btn:last-child::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 2px;
  border-radius: 1px;
  background: #FFF6EB;
  transform: translate(-50%, -50%);
}

.ct-qty__btn:last-child::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ct-qty__val {
  width: 45px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-red);
  border-radius: 80px;
  background: linear-gradient(96.27deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow:
    inset -4px -4px 10px #FFF,
    inset 2px 2px 11px rgba(231, 205, 177, 0.9),
    4px 4px 12px rgba(214, 191, 167, 0.45);
  position: relative;
  z-index: 1;
}

.ct-item__remove {
  display: flex;
  padding: 0;
  background: none;
  border: none;
  color: var(--c-red);
  cursor: pointer;
  transition: color 0.15s ease;
}

.ct-item__remove:hover { color: var(--c-brown-900); }
.ct-item__remove svg { width: 15px; height: 15px; }

.ct-item__price {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-brown-900);
  white-space: nowrap;
  margin-right: 28px;
}

/* Промокод: пунктирная рамка (Figma 742:561) */
.ct-promo {
  display: block;
  margin-top: 32px;
}

.ct-promo__input {
  width: 100%;
  height: 42px;
  padding: 0 20px;
  background: transparent;
  border: 1px dashed #D28B5C;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--c-brown-900);
  outline: none;
}

.ct-promo__input::placeholder {
  color: var(--c-brown-900);
  opacity: 0.8;
}

/* Сумма заказа (Figma 742:563) */
.ct-summary { position: sticky; top: 100px; }

.ct-summary__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brown-900);
}

.ct-sum-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-sum-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-body);
  color: var(--c-brown-900);
  line-height: 14px;
}

.ct-sum-row__label {
  font-size: 15px;
  line-height: 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ct-sum-row__leader {
  flex: 1;
  border-bottom: 1px dotted rgba(64, 28, 12, 0.45);
  transform: translateY(-3px);
}

.ct-sum-row__value {
  font-size: 16px;
  line-height: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ct-sum-row--discount .ct-sum-row__label,
.ct-sum-row--discount .ct-sum-row__value { color: #D28B5C; }
.ct-sum-row--discount .ct-sum-row__leader { border-color: rgba(210, 139, 92, 0.6); }

.ct-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 9px;
  margin-top: 24px;
  line-height: 14px;
}

.ct-total__label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--c-brown-900);
  line-height: 14px;
}

.ct-total__value {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-brown-900);
  line-height: 14px;
}

.ct-checkout {
  width: 100%;
  margin-top: 31px;
}

/* ---------- адаптив: Figma tablet 742:741 (860px) / mobile 742:635 (430px) ---------- */

.ct-item__pills { display: none; }

@media (max-width: 860px) {
  .cart-page { padding: 80px 0 50px; }
  .cart-page .container { padding: 0 50px; }
  .ct-body { grid-template-columns: 1fr; row-gap: 24px; }
  .ct-summary { position: static; }
  .ct-list { gap: 24px; }
}

@media (max-width: 430px) {
  .cart-page { padding: 140px 0 20px; }
  .cart-page .container { padding: 0 20px; }
  .ct-title { font-size: 37px; letter-spacing: 2.22px; margin-bottom: 40px; }
  .ct-list { gap: 32px; }

  .ct-item { gap: 16px; }
  .ct-item__row { flex-wrap: nowrap; }

  .ct-item__links { display: none; }
  .ct-item__pills {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .ct-item__pill {
    flex: 1;
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: none;
    border-radius: 80px;
    background: linear-gradient(105deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
    box-shadow:
      inset -4px -4px 10px #FFF,
      inset 2px 2px 11px rgba(231, 205, 177, 0.9),
      4px 4px 12px rgba(214, 191, 167, 0.45);
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.3px;
    text-align: center;
    text-transform: uppercase;
    color: var(--c-brown-900);
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }
  .ct-item__pill:hover { opacity: 1; }

  .ct-item__side { width: auto; }
  .ct-qty__btn,
  .ct-qty__btn:last-child { width: 28px; height: 28px; }
  .ct-qty__val { width: 61px; height: 37px; font-size: 14px; }
  .ct-item__price { font-size: 16px; margin-right: 0; }

  .ct-promo__input { height: 56px; }

  .ct-summary__title { font-size: 28px; letter-spacing: 1.68px; }
  .ct-sum-row__label { font-size: 13px; }
  .ct-sum-row__value { font-size: 16px; }
  .ct-total__label { font-size: 12px; }
  .ct-total__value { font-size: 16px; }
  .ct-checkout { height: 56px; font-size: 14px; }

  .ct-empty__actions .btn { min-width: 100%; }
}

/* =========================================
   PAGE: Просмотр состава набора (Figma 770:32674)
========================================= */
.set-composition-page {
  /* [19].5: после последнего вкуса не должно оставаться пустой прокрутки.
     Раньше min-height был зафиксирован под 24-плиточную сетку. */
  min-height: auto;
  padding-bottom: 60px;
  background: #FFF6EB;
  overflow: visible;
}

.sv-head {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 282px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(105.67deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow:
    inset -4px -4px 10px #FFF,
    inset 2px 2px 11px rgba(231, 205, 177, 0.9),
    4px 4px 12px rgba(214, 191, 167, 0.45);
}

.sv-back {
  position: absolute;
  top: 106px;
  left: 80px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-brown-900);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  text-decoration: none;
}

.sv-back__arrow {
  width: 8px;
  height: 8px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.sv-summary {
  position: absolute;
  right: 77px;
  bottom: 40px;
  left: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.sv-product {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 84px;
}

.sv-product__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  flex: 0 0 84px;
  border-radius: 8px;
  /* Заказчик просил показывать оригинальный фон фотографии набора
     (правка [19].1, [73].1, [76].1, [77].2.1, [80].2.1). */
  background: transparent;
}

.sv-product__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.sv-product__meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 84px;
  padding: 4px 0 2px;
  color: var(--c-brown-900);
  font-family: var(--font-body);
}

.sv-product__kicker {
  display: block;
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
}

.sv-product__title {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: normal;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.sv-product__bottom {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sv-product__weight {
  font-size: 11px;
  line-height: 14px;
}

.sv-product__edit {
  color: inherit;
  font-size: 8px;
  line-height: 14px;
  text-transform: uppercase;
  text-decoration: underline;
}

.sv-ingredients {
  width: 562px;
  height: 84px;
  overflow: hidden;
  margin: 0;
  color: var(--c-brown-900);
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 14px;
}

.sv-ingredients b { font-weight: 600; }

/* [19].2 / [73].3 / [77].3: пока пользователь не навёл (или не кликнул) на
   вкус, правая колонка показывает пунктирную рамку с подсказкой вместо
   полотна общего состава набора. Для продукта с аллергенами так и
   безопаснее — общий текст выше суммы вкусов часто врал. */
.sv-ingredients--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px dashed rgba(64, 28, 12, 0.45);
  border-radius: 12px;
  background: transparent;
  color: rgba(64, 28, 12, 0.72);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}
.sv-ingredients--empty b { display: none; }

.sv-mobile-hint { display: none; }

.sv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 130.5px;
  gap: 10px 40px;
  /* [19].3: сетка вкусов должна занимать всю ширину контейнера,
     а не жаться в 5×180px слева. */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 0;
  padding: 40px 70px 0;
  box-sizing: border-box;
}

/* [142]: на реальных широких экранах (>1200) сетка не должна сжиматься
   в центр окна — карточки фиксированы 180px, поэтому вместо max-width
   с центрированием растягиваем их space-between до краёв шапки
   (изображение набора слева на 80px, состав справа на width-77px). */
@media (min-width: 1200px) {
  .sv-grid {
    max-width: none;
    grid-template-columns: repeat(5, 180px);
    justify-content: space-between;
  }
}

/* Keep the ready-set composition interactive in every breakpoint.  Product
   photography is rendered by the individual tiles rather than a static page
   capture placed above the buttons. */
.sv-grid--figma { background: none; }

.sv-flavor {
  position: relative;
  width: 180px;
  height: 130.5px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-brown-900);
  cursor: pointer;
}

.sv-flavor__name {
  position: absolute;
  top: 5px;
  left: 9px;
  width: 162px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.sv-flavor__photo {
  position: absolute;
  top: var(--photo-y, 28px);
  left: var(--photo-x, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--photo-w, 170px);
  height: var(--photo-h, 57px);
}

.sv-flavor__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Composition photos use macarons/<flavor>.png; keep the same product
     shadow as on the .sm-tile__photo images. */
  filter: drop-shadow(3px 6px 7px rgba(170, 130, 103, 0.55));
  transition: transform 0.2s ease;
}

.sv-flavor:hover .sv-flavor__photo img,
.sv-flavor:focus-visible .sv-flavor__photo img { transform: scale(1.02); }

.sv-flavor__qty {
  position: absolute;
  top: 90px;
  left: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  border-radius: 60px;
  background: linear-gradient(95.91deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow:
    inset -3px -3px 7.5px #FFF,
    inset 1.5px 1.5px 8.25px rgba(231, 205, 177, 0.9),
    3px 3px 7px rgba(214, 191, 167, 0.45);
  color: var(--c-red);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* [19].6: подвал заказчик просил вернуть на страницу состава набора. */

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .set-composition-page { min-height: 100vh; }
  .sv-head { height: 350px; }
  .sv-back { top: 90px; left: 24px; }
  .sv-summary {
    right: 24px;
    bottom: 28px;
    left: 24px;
    align-items: flex-start;
  }
  .sv-ingredients { width: 48%; }
  .sv-grid {
    grid-template-columns: repeat(3, 180px);
    gap: 10px 28px;
    width: 668px;
    margin: 0 auto;
    padding: 40px 36px;
  }
  .sv-grid--figma { background: none; }
  .sv-grid--figma .sv-flavor { opacity: 1; }
}

@media (max-width: 430px) {
  .sv-head {
    position: sticky;
    height: 430px;
    border-radius: 0 0 28px 28px;
  }
  .sv-back { top: 88px; left: 16px; }
  .sv-summary {
    right: 16px;
    bottom: 22px;
    left: 16px;
    display: block;
    height: 278px;
  }
  .sv-product { height: 84px; }
  .sv-product__title { font-size: 14px; white-space: normal; }
  .sv-ingredients {
    width: 100%;
    height: 112px;
    margin-top: 18px;
    font-size: 9px;
    line-height: 14px;
  }
  .sv-mobile-hint {
    display: block;
    margin: 18px 16px 0;
    color: var(--c-brown-900);
    font-family: var(--font-body);
    font-size: 10px;
    line-height: 14px;
  }
  .sv-grid {
    grid-template-columns: repeat(2, 160px);
    grid-auto-rows: 126px;
    gap: 8px 18px;
    width: 338px;
    min-height: 0;
    margin: 0 auto;
    padding: 20px 0 40px;
  }
  .sv-flavor { width: 160px; height: 126px; }
  .sv-flavor__name { left: 5px; width: 150px; font-size: 12px; }
  .sv-flavor__photo { transform: scale(0.88); transform-origin: center; }
  .sv-flavor__qty { left: 58px; }
}

/* =========================================
   PAGE: Заказ принят / Страница успеха (Figma 850:13709)
========================================= */
.oa-hero {
  position: relative;
  height: 640px;
  min-height: 640px;
  margin-top: 0;
  background: url("img/order-success-bg-q96.webp") center / cover no-repeat;
  isolation: isolate;
  display: block;
  overflow: hidden;
}
.oa-hero__paper {
  position: absolute;
  z-index: 1;
  top: 146px;
  left: calc(50% - 303.5px);
  width: 567px;
  height: 434px;
  background:
    linear-gradient(rgba(255, 246, 237, .97), rgba(245, 232, 219, .97)),
    url("img/hero-paper-texture-3x.webp") center / cover;
  -webkit-mask: url("img/order-success-paper.svg") center / 100% 100% no-repeat;
  mask: url("img/order-success-paper.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(8px 8px 8px rgba(64, 28, 12, .2));
  transform: rotate(-5.83deg);
}
.oa-hero__card {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
}
.oa-hero__gift {
  position: absolute;
  z-index: 3;
  top: 274px;
  left: calc(50% - 374px);
  width: 105px;
  height: 112px;
  max-width: none;
}
.oa-hero__badge {
  position: absolute;
  z-index: 3;
  top: 339px;
  left: calc(50% + 208px);
  display: grid;
  place-items: center;
  width: 152px;
  height: 104px;
  filter: drop-shadow(4px 4px 6px rgba(64, 28, 12, .25));
  transform: rotate(12.47deg);
}
.oa-hero__badge img {
  grid-area: 1 / 1;
  width: 152px;
  height: 104px;
}
.oa-hero__badge span {
  grid-area: 1 / 1;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .28px;
  color: #B01E2B;
  opacity: .7;
  text-align: center;
  transform: rotate(-.77deg);
}
.oa-hero__script {
  position: absolute;
  top: 223px;
  left: calc(45.83% + 1.58px);
  width: 169px;
  margin: 0;
  font-family: var(--font-script);
  font-size: 66px;
  font-weight: 400;
  line-height: 43px;
  color: #B01E2B;
  transform: translateX(-50%) rotate(-6deg);
  transform-origin: center;
}
.oa-hero__title {
  position: absolute;
  top: 274px;
  left: calc(45.83% + 27.63px);
  width: 545px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 100;
  line-height: 48px;
  letter-spacing: 2.88px;
  color: #401C0C;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(-6deg);
}
.oa-hero__text {
  position: absolute;
  top: 391px;
  left: calc(50% - 209px);
  display: flex;
  align-items: center;
  gap: 15px;
  width: 390px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  color: #401C0C;
  text-align: left;
  transform: rotate(-6deg);
}
.oa-hero__text strong { font-weight: 500; }
.oa-hero__text .feature-star {
  width: 22px;
  height: 22px;
  background: url("img/order-success-star.svg") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}
.oa-hero__actions {
  position: absolute;
  top: 462px;
  left: calc(50% - 3px);
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  width: 449px;
  margin: 0;
  transform: translateX(-50%) rotate(-6deg);
}
.oa-hero__actions .btn {
  min-width: 0;
  height: 46px;
  padding: 14px 16px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: .36px;
}
.oa-hero__actions .btn--primary { width: 210px; }
.oa-hero__actions .btn--secondary {
  width: 231px;
  padding-right: 19px;
  padding-left: 20px;
}

/* Фрейм страницы включает меню: значения ниже из 850:13740 и ограничены
   только шаблоном успешного заказа. */
.page-template-page-order-accepted .site-header { padding: 0 33px; }
.page-template-page-order-accepted .header-inner {
  width: 100%;
  max-width: none;
  padding: 0 27px 0 37px;
  gap: 36px;
}
.page-template-page-order-accepted .header-logo img { height: 16px; }
.page-template-page-order-accepted .nav-menu { gap: 25px; }
.page-template-page-order-accepted .nav-menu a { font-size: 11px; }

@media (max-width: 430px) {
  .oa-hero {
    height: auto;
    min-height: 520px;
    padding: 90px 16px 32px;
    background-position: center;
  }
  .oa-hero__paper { display: none; }
  .oa-hero__card {
    position: relative;
    width: 100%;
    padding: 38px 24px 32px;
    background: #FFF6EB;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(40, 20, 10, .18);
  }
  .oa-hero__script,
  .oa-hero__title,
  .oa-hero__text,
  .oa-hero__actions {
    position: static;
    width: auto;
    transform: none;
  }
  .oa-hero__script { margin-bottom: 10px; font-size: 42px; }
  .oa-hero__title { margin-bottom: 22px; font-size: 30px; line-height: 1.1; letter-spacing: 1.8px; }
  .oa-hero__text { margin: 0 auto 26px; gap: 10px; font-size: 14px; }
  .oa-hero__actions { flex-wrap: wrap; justify-content: center; }
  .oa-hero__actions .btn { width: 100%; }
  .oa-hero__gift { top: auto; bottom: 24px; left: 8px; width: 76px; height: auto; }
  .oa-hero__badge { top: 80px; right: 2px; left: auto; width: 112px; height: 78px; }
  .oa-hero__badge img { width: 112px; height: 78px; }
}

/* =========================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (политика конфиденциальности)

   Отступы выведены из макетов PAOLA_Сайт_Для верстки
   по ink-метрикам шрифтов (Masvol/Gilroy):
     ПК 1200px  — контент 1040, заголовок 48/58,
                  лого 1042×174 во всю ширину,
                  раздел 36px #B01E2B, текст 14/19;
     Моб 430px  — контент 378, заголовок 32/39,
                  раздел остаётся 36px (как в макете).
========================================= */

.legal-page {
  padding: 161px 0 100px;
  background: var(--c-cream-2);
}

.legal-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 58px;
  font-weight: 100;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-brown-900);
}

/* Переносы заголовка под каждый макет:
   lb-dm — ПК и телефон, lb-tm — планшет и телефон, lb-m — только телефон */
.lb-dm { display: inline; }
.lb-tm { display: none; }
.lb-m  { display: none; }

.legal-date {
  margin: 0 0 69px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-brown-900);
}

/* Большой PAOLA во всю ширину контента (тот же ассет, что в футере) */
.legal-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 81px;
}

.legal-section {
  margin-bottom: 70px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-h2 {
  margin: 0 0 23px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 100;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-red-600);
  text-wrap: pretty;
}

.legal-section p {
  margin: 0 0 11px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 19px;
  color: var(--c-brown-900);
  text-wrap: pretty;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--c-red);
}

/* Списки: маленькая точка, висячий отступ (текст переноса под первой буквой) */
.legal-list {
  margin: 12px 0 11px;
  padding: 0;
  list-style: none;
}

.legal-list:last-child {
  margin-bottom: 0;
}

.legal-list li {
  position: relative;
  margin-bottom: 4px;
  padding-left: 23px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 19px;
  color: var(--c-brown-900);
  text-wrap: pretty;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-list li::before {
  content: "·";
  position: absolute;
  left: 10px;
  top: -1px;
  font-size: 18px;
  line-height: 19px;
  color: var(--c-brown-900);
}

/* ---------- планшет ---------- */

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  /* Планшет 860px: кегли те же, что на ПК (заголовок 50/58, раздел 36),
     меняются только отступы — контент 754px, заголовок ложится в 3 строки. */
  .legal-page { padding: 101px 0 80px; }
  .legal-page .container { padding: 0 53px; }

  /* «Политика / в отношении обработки / персональных данных» */
  .lb-tm { display: inline; }
  .lb-dm { display: none; }

  .legal-date { margin-bottom: 59px; }

  .legal-logo { margin-bottom: 73px; }
}

/* ---------- телефон ---------- */

@media (max-width: 430px) {
  .legal-page { padding: 120px 0 64px; }
  /* 26px — как в макете 430px (контент 378px) */
  .legal-page .container { padding: 0 26px; }

  /* по слову на строку — 5 строк, как в мобильном макете */
  .lb-dm, .lb-m { display: inline; }

  .legal-title {
    font-size: 32px;
    line-height: 39px;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
  }

  .legal-date { margin-bottom: 58px; }

  .legal-logo { margin-bottom: 61px; }

  .legal-section { margin-bottom: 56px; }

  .legal-h2 {
    font-size: 36px;
    letter-spacing: 1px;
    margin-bottom: 22px;
  }
}

/* =========================================
   PAGE: Подарочные сертификаты — мастер заказа
   Черновик по рендерам (макет 1200x640, 2x).
   Точные отступы/шрифты — после CSS-дампа из Figma.
========================================= */

.cw-page { background: #FFF6EB; padding: 120px 0 60px; min-height: 640px; }

.cw-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #401C0C;
  text-decoration: none;
}
.cw-back__arrow {
  width: 8px; height: 8px;
  border-left: 1.5px solid #401C0C;
  border-bottom: 1.5px solid #401C0C;
  transform: rotate(45deg);
}

.cw-layout {
  display: grid;
  grid-template-columns: 320px 340px 1fr;
  align-items: center;
  min-height: 430px;
}

/* ── Степпер ───────────────────────────── */
.cw-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.cw-step {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  position: relative;
}
/* соединительная линия между точками */
.cw-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 46px;
  width: 2px;
  height: 18px;
  background: rgba(176, 30, 43, 0.25);
}
.cw-step.is-done::after { background: #B01E2B; }
.cw-step__dot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFF6ED 0%, #F8EADC 100%);
  box-shadow: 2px 2px 6px rgba(165, 140, 114, 0.25), -3px -3px 6px #FFFFFF;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(64, 28, 12, 0.4);
  transition: 0.2s ease;
}
.cw-step__label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(64, 28, 12, 0.4);
  transition: 0.2s ease;
}
.cw-step.is-current .cw-step__dot,
.cw-step.is-done    .cw-step__dot {
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  color: #FFF6EB;
}
.cw-step.is-current .cw-step__label,
.cw-step.is-done    .cw-step__label { color: #401C0C; }
.cw-step.is-done { cursor: pointer; }
/* пройденные шаги помечаем галочкой вместо номера */
.cw-step.is-done .cw-step__dot { font-size: 0; }
.cw-step.is-done .cw-step__dot::before {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #FFF6EB;
  border-bottom: 2px solid #FFF6EB;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ── Превью карточки ───────────────────── */
.cw-preview { display: flex; justify-content: center; }
.cw-card {
  position: relative;
  width: 266px;
  height: 393px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(64, 28, 12, 0.28);
}
.cw-card__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cw-card__bg.is-active { opacity: 1; }
.cw-card__logo {
  position: absolute;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  width: 96px;
  z-index: 2;
}
.cw-card__balance {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, rgba(64, 28, 12, 0) 0%, rgba(64, 28, 12, 0.55) 55%);
  color: #FFF6EB;
}
.cw-card__balance-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
.cw-card__balance-sum { font-family: var(--font-display); font-size: 34px; line-height: 1; }

/* ── Панели шагов ──────────────────────── */
.cw-panels { position: relative; }
.cw-panel { display: none; }
.cw-panel.is-active { display: block; }
.cw-panel__title {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #401C0C;
}
.cw-panel__num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin-top: 4px;
  border-radius: 50%;
  background: linear-gradient(101.61deg, #DA1B2C -108.06%, #9D1F2A 81.99%);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  color: #FFF6EB;
}
.cw-panel__hint {
  /* [23].2 — раньше hint съедал верхний край -18px и наезжал на «Поздравление 03».
     Кладём его в поток под заголовком; форма шагов 3–4 всё равно позиционирована
     абсолютно от контейнера панели и остаётся на своих местах. */
  margin: 8px 0 22px 58px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(64, 28, 12, 0.7);
}
.cw-panel .btn { margin-top: 32px; width: 100%; }

/* стрелки карусели — по бокам от карточки */
.cw-nav { position: absolute; left: -406px; top: 176px; width: 392px; display: flex; justify-content: space-between; pointer-events: none; }
.cw-nav__btn {
  pointer-events: auto;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(180deg, #FFF6ED 0%, #F8EADC 100%);
  box-shadow: 4px 4px 14px rgba(214, 191, 167, 0.5), -4px -4px 10px #FFFFFF;
  position: relative;
}
.cw-nav__btn::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-left: 2px solid #C8763C;
  border-bottom: 2px solid #C8763C;
  transform: translate(-30%, -50%) rotate(45deg);
}
.cw-nav__btn--next::before { transform: translate(-70%, -50%) rotate(-135deg); }

/* ── Шаг 2: номиналы ───────────────────── */
.cw-sum { display: grid; grid-template-columns: 90px 1fr; gap: 30px; align-items: center; }
.cw-sum__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cw-sum__item {
  border: none;
  background: none;
  padding: 2px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(64, 28, 12, 0.45);
  transition: 0.15s ease;
}
.cw-sum__item:hover { color: #401C0C; }
.cw-sum__item.is-active { color: #401C0C; font-weight: 500; }
.cw-sum__item.is-active::before { content: "• "; color: #B01E2B; }
.cw-sum__value { display: block; font-family: var(--font-display); font-size: 40px; color: #401C0C; }
.cw-sum__note {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFF6ED 0%, #F8EADC 100%);
  box-shadow: 2px 2px 6px rgba(165, 140, 114, 0.2);
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(64, 28, 12, 0.75);
}
/* [183].2/[191]/[195] — пока номинал не выбран, скрипт оставляет
   .cw-sum-value и .cw-sum-note пустыми («—» и без текста), но их фон и
   паддинги остаются — получается «полоса» без содержимого рядом с нулевым
   балансом. Прячем весь блок целиком, а не только текст, чтобы не было
   пустой подложки; сумма и подсказка «можно купить набор...» появляются,
   как только note наполняется текстом по клику. */
.cw-sum__picked:has(.cw-sum__note:empty) { visibility: hidden; }

/* ── Формы (шаги 3–4) ──────────────────── */
.cw-form { display: flex; flex-direction: column; gap: 18px; }
.cw-field__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(64, 28, 12, 0.7);
}
.cw-input {
  width: 100%;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid rgba(64, 28, 12, 0.25);
  background: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: #401C0C;
  outline: none;
  transition: border-color 0.2s ease;
}
/* Плейсхолдер должен читаться как плейсхолдер. У поля поздравления
   подсказка дословно совпадает с тем, что в макете стоит уже введённым
   («Поздравляем! Порадуй себя!»), и при прежней непрозрачности пустое
   поле выглядело заполненным: клиент заполнял «Кому» и «От кого», жал
   «далее» и упирался в неактивную кнопку, не понимая почему. Курсив и
   более светлый тон разводят два состояния. Заполненный текст в макете
   (нода 936:11172) — rgb(102,71,57), плейсхолдер делаем заметно легче. */
.cw-input::placeholder { color: rgba(64, 28, 12, 0.28); }
/* Курсив — только полю поздравления: именно там подсказка дословно
   совпадает с текстом, который в макете стоит уже введённым. У телефона
   и почты (шаг 4) в макете плейсхолдер прямой, курсив туда занесло
   заодно и это было заметно. */
#cw-text::placeholder { font-style: italic; }
.cw-input:focus { border-bottom-color: #B01E2B; }
.cw-input--lg {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cw-input--lg::placeholder { font-size: 28px; }
/* поля телефона/почты — в неоморфной «таблетке», как в макете */
.cw-field .cw-input {
  padding: 12px 18px;
  border: none;
  border-radius: 80px;
  background: linear-gradient(93.77deg, #FFF6ED 15.55%, #F5E8DB 90.82%);
  box-shadow: inset 2px 2px 8px rgba(231, 205, 177, 0.9), inset -3px -3px 8px #FFFFFF;
}

/* ── Шаг 5: сводка ─────────────────────── */
.cw-summary { margin: 0; font-family: var(--font-body); font-size: 13px; color: #401C0C; }
.cw-summary__block { padding: 14px 0; border-bottom: 1px solid rgba(64, 28, 12, 0.15); }
.cw-summary__block dt { font-size: 11px; color: rgba(64, 28, 12, 0.55); margin-bottom: 2px; }
.cw-summary__block dd { margin: 0 0 8px; }
.cw-summary__block dd:last-child { margin-bottom: 0; }
.cw-summary__to {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cw-summary__total dd { font-family: var(--font-display); font-size: 26px; }
.cw-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-family: var(--font-body); font-size: 11px; line-height: 1.4; color: rgba(64, 28, 12, 0.75); cursor: pointer; }
.cw-consent input { margin-top: 2px; accent-color: #B01E2B; }
.cw-consent a { color: #B01E2B; }

/* ── Экран успеха ──────────────────────── */
/* display:flex перебивает атрибут hidden — гасим явно */
.cw-success[hidden] { display: none; }
.cw-success {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.cw-success__card {
  position: relative;
  max-width: 470px;
  padding: 44px 54px 40px;
  text-align: center;
  background: #FFF6EB;
  box-shadow: 4px 4px 24px rgba(64, 28, 12, 0.35);
  /* тот же «оторванный» край, что у карточек доставки */
  clip-path: polygon(
    0 0, 100% 0,
    100% 100%, 96.5% calc(100% - 10px), 93% 100%, 89.5% calc(100% - 10px),
    86% 100%, 82.5% calc(100% - 10px), 79% 100%, 75.5% calc(100% - 10px),
    72% 100%, 68.5% calc(100% - 10px), 65% 100%, 61.5% calc(100% - 10px),
    58% 100%, 54.5% calc(100% - 10px), 51% 100%, 47.5% calc(100% - 10px),
    44% 100%, 40.5% calc(100% - 10px), 37% 100%, 33.5% calc(100% - 10px),
    30% 100%, 26.5% calc(100% - 10px), 23% 100%, 19.5% calc(100% - 10px),
    16% 100%, 12.5% calc(100% - 10px), 9% 100%, 5.5% calc(100% - 10px),
    2% 100%, 0 calc(100% - 6px)
  );
}
.cw-success__script { font-family: var(--font-script); font-size: 44px; color: #B01E2B; }
.cw-success__title {
  margin: 6px 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #401C0C;
}
.cw-success__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 26px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: #401C0C;
}
.cw-success__actions { display: flex; gap: 12px; justify-content: center; }
.cw-success__actions .btn { min-width: 0; flex: 1; }

@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .cw-layout { grid-template-columns: 1fr; gap: 28px; }
  .cw-steps { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .cw-step { height: auto; }
  .cw-step:not(:last-child)::after { display: none; }
  .cw-nav { position: static; width: 100%; margin-bottom: 20px; }
  .cw-panel__title { font-size: 30px; }
}

@media (max-width: 430px) {
  .cw-page { padding: 96px 0 40px; }
  .cw-panel__title { font-size: 24px; gap: 14px; }
  .cw-sum { grid-template-columns: 1fr; gap: 16px; }
  .cw-success__card { padding: 32px 26px; }
  .cw-success__actions { flex-direction: column; }
}

/* Edit-set needs its own responsive geometry after the shared sv-* rules. */
@media (max-width: 430px) {
  .edit-set-page {
    min-height: 100vh;
    padding-top: 0;
    overflow: hidden;
  }

  .es-sticky-head {
    height: 430px;
    border-radius: 0 0 28px 28px;
  }

  .es-sticky-head .sv-back {
    top: 88px;
    left: 16px;
  }

  .es-sticky-head .sv-summary {
    top: 136px;
    right: 16px;
    bottom: auto;
    left: 16px;
    display: block;
    height: 270px;
  }

  .es-sticky-head .sv-product__title {
    font-size: 14px;
    white-space: normal;
  }

  .es-sticky-head .sv-ingredients {
    width: 100%;
    height: 112px;
    margin-top: 18px;
    font-size: 9px;
    line-height: 14px;
  }

  .es-stage,
  .es-stage.is-figma-initial {
    width: 100%;
    height: auto;
    margin-top: 20px;
    background: none;
  }

  .es-stage.is-figma-initial .es-grid,
  .es-stage.is-figma-initial .es-done-bar {
    opacity: 1;
  }

  .es-grid {
    grid-template-columns: repeat(2, 160px);
    grid-auto-rows: 126px;
    gap: 8px 18px;
    width: 338px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
  }

  .es-grid .es-tile,
  .es-grid .es-add-tile {
    width: 160px;
    height: 126px;
  }

  .es-done-bar {
    width: 100%;
    height: 82px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 28px 28px 0 0;
  }
}

/* =========================================
   HOME / MOBILE 430 — Figma node 208:4719
   Header + hero (208:6581)
========================================= */
@media (max-width: 430px) {
  body.home .site-header {
    top: 20px;
    padding: 0 13px 0 20px;
  }

  body.home .header-inner {
    height: 45px;
    padding: 0;
    gap: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.home .header-logo {
    display: none;
  }
  /* .header-nav сама уже display:none / .is-open{display:flex} в общем
     мобильном правиле выше (полноэкранная шторка) — тут переопределять
     нечего, оставлено только скрытие лого. */

  body.home .header-right {
    width: 100%;
    justify-content: flex-end;
    gap: 7px;
  }

  body.home .cart-btn {
    width: 146px;
    height: 45px;
    padding: 3px 4px 3px 20px;
    gap: 13px;
    justify-content: space-between;
    border: 1px solid rgba(255, 246, 235, .85);
    background: rgba(64, 28, 12, .18);
    color: #fff6eb;
    backdrop-filter: blur(4px);
  }

  body.home .cart-price {
    display: inline;
    order: -1;
    color: #fff6eb;
    font-size: 14px;
    font-weight: 400;
  }

  body.home .cart-icon-wrap {
    width: 37px;
    height: 37px;
    background: #fff6eb;
  }

  body.home .cart-icon-wrap svg path,
  body.home .cart-icon-wrap svg circle {
    stroke: #b01e2b;
  }

  body.home .cart-icon-wrap svg circle {
    fill: #b01e2b;
  }

  body.home .cart-count {
    left: 29px;
    top: 29px;
    width: 18px;
    height: 18px;
    transform: none;
    border-color: #fff6eb;
    background: #b01e2b;
    color: #fff6eb;
  }

  body.home .nav-burger {
    width: 45px;
    height: 45px;
    gap: 5px;
    background: #fff6eb;
  }

  body.home .nav-burger span {
    width: 18px;
    height: 1px;
  }

  body.home .hero {
    width: 430px;
    max-width: 100%;
    height: 955px;
    min-height: 955px;
    padding: 0;
  }

  body.home .hero-bg__blob {
    top: 0;
    display: block;
    height: 955px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left top;
  }

  body.home .hero-bg__blob--cream {
    left: -3px;
    width: 159px;
    background-image: url("img/hero-mobile-bg-left@3x-optimized.webp") !important;
  }

  body.home .hero-bg__blob--chocolate {
    left: 142px;
    width: 146px;
    background-image: url("img/hero-mobile-bg-middle@3x-optimized.webp");
  }

  body.home .hero-bg__blob--caramel {
    left: 288px;
    width: 142px;
    background-image: url("img/hero-mobile-bg-right@3x-optimized.webp");
  }

  body.home .hero-inner {
    width: 430px;
    max-width: 100%;
    height: 955px;
    padding: 0;
  }

  body.home .hero-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 430px;
    max-width: 100%;
    height: 955px;
    min-height: 955px;
    padding: 0;
  }

  body.home .hero-card::before {
    top: 114px;
    left: 4px;
    width: 421.6px;
    height: 316px;
    border-radius: 0;
    background:
      linear-gradient(rgba(255, 246, 237, .97), rgba(245, 232, 219, .97)),
      url("img/hero-paper-texture-3x.webp") center / cover;
    -webkit-mask: url("img/hero-figma-paper.svg") center / 100% 100% no-repeat;
    mask: url("img/hero-figma-paper.svg") center / 100% 100% no-repeat;
    box-shadow: none;
    filter: drop-shadow(8px 8px 8px rgba(64, 28, 12, .2));
    transform: rotate(-5deg);
  }

  body.home .hero-figma-logo {
    position: absolute;
    top: 89px;
    left: 120.5px;
    width: 142px;
    height: auto;
    margin: 0;
    transform: none;
    z-index: 6;
  }

  body.home .hero-title {
    position: absolute;
    top: 173.9px;
    left: 39.7px;
    width: 328.7px;
    margin: 0;
    font-size: 37px;
    line-height: 34px;
    letter-spacing: 2.22px;
    transform: rotate(-5deg);
  }

  body.home .hero-title__script {
    margin: 3px 0 0;
    font-size: 30px;
    line-height: .9;
  }

  body.home .hero-features {
    position: absolute;
    top: 312px;
    left: 97px;
    width: 285px;
    margin: 0;
    gap: 15px;
    transform: rotate(-5deg);
  }

  body.home .hero-features li {
    gap: 14px;
    font-size: 15px;
    line-height: 14px;
  }

  body.home .feature-star {
    width: 22px;
    height: 22px;
  }

  body.home .hero-actions {
    position: absolute;
    top: 503px;
    left: 20px;
    width: 390px;
    margin: 0;
    gap: 6px;
    transform: none;
  }

  body.home .hero-actions .btn,
  body.home .hero-actions .btn--primary,
  body.home .hero-actions .btn--secondary {
    width: 390px;
    height: 46px;
  }

  body.home .hero-macarons {
    position: absolute;
    top: 688px;
    left: 37px;
    display: flex;
    flex-direction: row;
    width: 356px;
    height: 216px;
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  body.home .hero-macaron-frame {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    transform: scale(1.18);
  }

  body.home .hero-macaron-frame--3 { order: 1; }
  body.home .hero-macaron-frame--1 { order: 2; }
  body.home .hero-macaron-frame--2 { order: 3; }

  body.home .hero-macaron-frame--2 {
    margin-left: 7px;
  }

  body.home .hero-sticker--3 {
    display: block;
    left: 15px;
    top: 382px;
    width: 125px;
  }

  body.home .hero-sticker--4 {
    left: 265px;
    top: 608px;
    width: 189px;
  }

  body.home .hero-sticker--7 {
    left: 20px;
    top: 828px;
    width: 76px;
  }

  body.home .constructor {
    width: 430px;
    max-width: 100%;
    height: 1343px;
    padding: 80px 0 49px;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.home .constructor > .container {
    padding: 0 20px;
  }

  body.home .constructor-header {
    position: relative;
    display: block;
    height: 110px;
    margin: 0 0 39px 5px;
  }

  body.home .constructor-header .section-title {
    margin: 0;
    font-size: 37px;
    line-height: normal;
    letter-spacing: 2.22px;
  }

  body.home .constructor-subtitle {
    display: block;
    width: 381px;
    max-width: 100%;
    margin: 10px 0 0;
    font-size: 15px;
    line-height: normal;
  }

  body.home .constructor-subtitle br {
    display: none;
  }

  body.home .constructor-subtitle .subtitle-star {
    position: absolute;
    top: 9px;
    left: 288px;
    width: 23px;
    height: 23px;
  }

  body.home .constructor-card {
    display: block;
    padding: 0;
    border-radius: 0;
  }

  body.home .constructor-step-toggle {
    gap: 18px;
  }

  body.home .constructor-step-toggle__label,
  body.home .constructor-step-two,
  body.home .constructor-step-three {
    margin: 0 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(64, 28, 12, .7);
  }

  body.home .constructor-step-two,
  body.home .constructor-step-three {
    display: block;
  }

  body.home .constructor-step-toggle__pill {
    width: 390px;
    height: 46px;
    padding-left: 30px;
  }

  body.home .constructor-step-two {
    margin-top: 33px;
    margin-bottom: 18px;
  }

  body.home .constructor-content-wrap {
    width: 456px;
    margin-left: -33px;
    filter: none;
  }

  body.home .constructor-content-wrap::before {
    display: none;
  }

  body.home .constructor-content-header {
    width: 390px;
    margin: 0 0 0 33px;
  }

  body.home .constructor-selected-block {
    width: 390px;
    height: 46px;
    padding: 0 16px;
    font-size: 12px;
  }

  body.home .constructor-set-counter {
    display: block;
    margin: 12px 0 0;
    text-align: center;
  }

  body.home .constructor-content {
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  body.home .macaron-grid {
    display: flex;
    flex-wrap: wrap;
    width: 456px;
    gap: 0;
    margin: 0;
  }

  body.home .macaron-grid.collapsed .macaron-item:nth-child(n+9) {
    display: none;
  }

  /* Нижний ряд в свёрнутом гриде должен быть заметно приглушён — он лишь
     намекает, что вкусов больше. Прежняя кривая (#000 → .55 на 48% →
     прозрачно на 92%) на имени карточки давала почти непрозрачные 0.89,
     хотя в макете там 0.36 от яркости обычного ряда: подписи «арахис» и
     «фисташка» читались в полную силу, а счётчики просвечивали из-под
     кнопки. Кривая ниже начинается уже с 0.5 и гасит ряд к 72% высоты. */
  body.home .macaron-grid.collapsed .macaron-item:nth-child(n+7):nth-child(-n+8) {
    display: block;
    -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .34) 20%, transparent 72%);
    mask-image: linear-gradient(rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .34) 20%, transparent 72%);
  }

  body.home .macaron-item {
    flex: 0 0 240px;
    width: 240px;
    height: 174px;
    margin-right: -33px;
    border-radius: 0;
  }

  body.home .macaron-name {
    top: 17px;
    left: 12px;
    width: 216px;
    min-height: 0;
    font-size: 18px;
    line-height: normal;
    letter-spacing: 1.08px;
  }

  body.home .macaron-photo {
    width: 240px;
    height: 174px;
  }

  body.home .macaron-photo::after {
    top: 91px;
    left: 43px;
    width: 154px;
    height: 18px;
  }

  body.home .macaron-item .macaron-photo img {
    left: 43px !important;
    top: 57px !important;
    width: 154px !important;
    height: 48px !important;
    transform: none;
  }

  body.home .macaron-item:nth-child(1) .macaron-photo img {
    left: 43.11px !important;
    top: 54.63px !important;
    width: 153.779px !important;
    height: 46.766px !important;
  }

  body.home .macaron-item:nth-child(2) .macaron-photo img {
    left: 45.55px !important;
    top: 57.88px !important;
    width: 150.905px !important;
    height: 45.99px !important;
  }

  body.home .macaron-item:nth-child(3) .macaron-photo img {
    left: 50.7px !important;
    top: 58.26px !important;
    width: 146.593px !important;
    height: 45.209px !important;
  }

  body.home .macaron-item:nth-child(4) .macaron-photo img {
    left: 29.76px !important;
    top: 53.8px !important;
    width: 177.492px !important;
    height: 54.581px !important;
  }

  body.home .macaron-controls {
    top: 120px;
    left: 68px;
    transform: none;
  }

  body.home .constructor-expand-row {
    width: 390px;
    margin: -97px 0 0 33px;
  }

  body.home .constructor-expand-row .btn {
    width: 390px;
  }

  body.home .constructor-actions-box {
    display: flex;
    width: 390px;
    margin: 18px 0 0 33px;
    gap: 0;
  }

  body.home .constructor-actions-box .btn {
    width: 390px;
    height: 46px;
  }

  body.home .constructor-actions-box > a { order: 1; }
  body.home .constructor-actions-box .constructor-step-three { order: 2; }
  body.home .constructor-actions-box #constructor-add { order: 3; }

  body.home .constructor-step-three {
    width: 370px;
    margin: 34px 10px 18px;
  }

  body.home .sets-header-outer {
    position: relative;
    height: 171px;
    padding: 40px 0 0;
    overflow: visible;
  }

  body.home .sets-header-outer .container {
    padding: 0 25px;
  }

  body.home .sets-header-row {
    position: relative;
    display: block;
  }

  body.home .sets-header .section-title {
    margin: 0;
    font-size: 37px;
    line-height: normal;
    letter-spacing: 2.22px;
  }

  body.home .sets-subtitle {
    display: block;
    width: 350px;
    margin: 10px 0 0;
    font-size: 15px;
    line-height: normal;
  }

  body.home .sets-subtitle .subtitle-star {
    position: absolute;
    top: 10px;
    left: 319px;
    width: 23px;
    height: 23px;
  }

  body.home .sets-decorative-badge {
    position: absolute;
    z-index: 8;
    top: 2728px;
    right: 26px;
    align-items: flex-end;
    margin: 0;
  }

  body.home .sets-dec-main {
    font-size: 43px;
  }

  body.home .sets-dec-sub {
    margin-top: -5px;
    font-size: 18px;
  }

  body.home .sets {
    width: 430px;
    max-width: 100%;
    height: 2658px;
    padding: 0;
    background: #fff6eb !important;
  }

  body.home .sets > .container {
    padding: 0 25px;
  }

  body.home .sets-list {
    gap: 22px;
  }

  body.home .set-card {
    flex: none;
    display: block;
    width: 379px;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent !important;
    isolation: isolate;
  }

  body.home .set-card:nth-child(1),
  body.home .set-card:nth-child(3),
  body.home .set-card:nth-child(4) {
    height: 493px;
  }

  body.home .set-card:nth-child(2) {
    height: 521px;
  }

  body.home .set-card:nth-child(5) {
    height: 409px;
  }

  body.home .set-card::before {
    display: none;
  }

  body.home .set-card__texture {
    /* Один Figma-экспорт хранит ровно тот составной слой, который нельзя
       стабильно собрать отдельными CSS-свойствами: рваный край, отверстие,
       бумажную фактуру, паттерн PAOLA и внешнюю тень. Координаты учитывают
       выход формы за базовый контейнер 379×493. */
    top: -6px;
    right: auto;
    bottom: auto;
    left: -6px;
    width: 399px;
    height: 499px;
    z-index: 0;
    opacity: 1;
    mix-blend-mode: normal;
    -webkit-mask: none;
    mask: none;
    border-radius: 0;
    box-shadow: none;
    background: center / 100% 100% no-repeat;
  }

  body.home .set-card__texture::before { display: none; }

  body.home .set-card.theme-cream .set-card__texture {
    background-image: url("img/sets/mobile/set-card-mobile-1.png");
  }

  body.home .set-card.theme-red-dark .set-card__texture {
    background-image: url("img/sets/mobile/set-card-mobile-2.png");
  }

  body.home .set-card.theme-caramel .set-card__texture {
    background-image: url("img/sets/mobile/set-card-mobile-3.png");
  }

  body.home .set-card:nth-child(2) .set-card__texture {
    height: 527px;
  }

  body.home .set-card:nth-child(4) .set-card__texture {
    background-image: url("img/sets/mobile/set-card-mobile-4.png");
  }

  body.home .set-card:nth-child(5) .set-card__texture {
    height: 415px;
    background-image: url("img/sets/mobile/set-card-mobile-5.png");
  }

  body.home .set-card__content {
    position: absolute;
    top: 46px;
    left: 32px;
    width: 292px;
    padding: 0;
  }

  body.home .set-card__text {
    gap: 41px;
  }

  body.home .set-card:nth-child(2) .set-card__text {
    gap: 72px;
  }

  body.home .set-card:nth-child(3) .set-card__text {
    gap: 77px;
  }

  body.home .set-card__title {
    width: 283px;
    margin: 0;
    font-size: 28px;
    line-height: 35px;
    letter-spacing: 1.68px;
  }

  body.home .set-card:nth-child(1) .set-card__title,
  body.home .set-card:nth-child(4) .set-card__title,
  body.home .set-card:nth-child(5) .set-card__title {
    font-size: 0;
    white-space: pre-line;
  }

  body.home .set-card:nth-child(1) .set-card__title::before,
  body.home .set-card:nth-child(4) .set-card__title::before,
  body.home .set-card:nth-child(5) .set-card__title::before {
    font-size: 28px;
    line-height: 35px;
    letter-spacing: 1.68px;
  }

  body.home .set-card:nth-child(1) .set-card__title::before { content: "популярные вкусы\A 24 шт."; }
  body.home .set-card:nth-child(4) .set-card__title::before { content: "популярные вкусы\A 18 шт."; }
  body.home .set-card:nth-child(5) .set-card__title::before { content: "популярные вкусы\A 12 шт."; }

  body.home .set-card__desc {
    display: block;
    width: 175px;
    height: auto;
    margin: 0;
    overflow: visible;
    font-size: 12px;
    line-height: 16px;
  }

  body.home .set-card__sostav {
    left: 16px;
    top: 86px;
    width: 132px;
    height: 96px;
  }

  body.home .set-card__visual {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    overflow: hidden;
  }

  body.home .set-card__visual > img {
    position: absolute;
    object-fit: fill;
    filter: drop-shadow(4px 4px 8px rgba(99, 24, 30, .55));
  }

  body.home .set-card:nth-child(1) .set-card__product-img {
    left: 206px;
    top: 189.7px;
    width: 191.32px !important;
    height: 167.76px !important;
  }

  body.home .set-card:nth-child(2) .set-card__product-img {
    left: 204.96px;
    top: 178.78px;
    width: 196.25px !important;
    height: 181.81px !important;
  }

  body.home .set-card:nth-child(3) .set-card__product-img {
    left: 190.92px;
    top: 185.84px;
    width: 205.17px !important;
    height: 175.64px !important;
  }

  body.home .set-card:nth-child(4) .set-card__product-img {
    left: 196px;
    top: 188.39px;
    width: 197.99px !important;
    height: 171.34px !important;
  }

  body.home .set-card:nth-child(5) .set-card__product-img {
    left: 201.92px;
    top: 158.86px;
    width: 189.83px !important;
    height: 125.15px !important;
  }

  body.home .set-card__group-bg {
    left: 160px;
    top: 70px;
    width: 300px;
    height: 400px;
    transform: none;
  }

  body.home .set-card__action-row {
    position: absolute;
    top: 332px;
    left: 8px;
    flex-direction: column;
    align-items: center;
    gap: 54px;
    width: 298px;
  }

  body.home .set-card:nth-child(2) .set-card__action-row {
    top: 360px;
  }

  body.home .set-card:nth-child(5) .set-card__action-row {
    top: 248px;
  }

  body.home .set-card__action-row .btn,
  body.home .set-order-btn {
    width: 298px;
    height: 46px;
  }

  body.home .btn-text-link {
    width: 199px;
    line-height: 15px;
    text-align: center;
    /* Подпись уже находится в точном Figma-экспорте фона. Сам элемент
       остаётся кликабельным и доступным для screen reader, но не рисуется
       поверх запечённой подписи вторично. */
    color: transparent;
    text-shadow: none;
  }

  body.home .sets-view-all {
    position: absolute;
    left: 20px;
    bottom: 83px;
    width: 390px;
    height: 56px;
    margin: 0;
    transform: none;
  }

  body.home .sets-view-all:hover {
    transform: scale(1.02);
  }

  body.home .certificates {
    position: relative;
    width: 430px;
    max-width: 100%;
    height: 1033px;
    padding: 0;
    overflow: hidden;
  }

  body.home .certificates > .container {
    position: relative;
    width: 430px;
    height: 1033px;
    padding: 0;
  }

  body.home .cert-header-row {
    position: absolute;
    top: 38px;
    left: 26px;
    display: block;
    width: 353px;
    margin: 0;
  }

  body.home .cert-header .section-title {
    width: 353px;
    margin: 0;
    font-size: 37px;
    line-height: 34px;
    letter-spacing: 2.22px;
    white-space: normal;
  }

  body.home .cert-subtitle {
    display: block;
    width: 353px;
    max-width: none;
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
  }

  body.home .cert-subtitle-desktop {
    display: none;
  }

  body.home .cert-subtitle-mobile {
    display: inline;
  }

  body.home .cert-subtitle br {
    display: none;
  }

  body.home .cert-subtitle .subtitle-star {
    position: absolute;
    top: 37px;
    left: 254px;
    width: 24px;
    height: 24px;
  }

  body.home .cert-decorative-badge {
    position: absolute;
    top: 909px;
    right: 8px;
    align-items: flex-end;
    margin: 0;
  }

  body.home .cert-dec-sub {
    font-size: 19px;
    line-height: normal;
    letter-spacing: 1.14px;
  }

  body.home .cert-dec-main {
    margin-top: -8px;
    font-size: 52px;
    line-height: 43px;
  }

  body.home .cert-grid {
    position: absolute;
    inset: 0;
    display: block;
  }

  body.home .cert-card {
    position: absolute;
    left: 26px;
    display: block;
    width: 380px;
    padding: 0;
    overflow: visible;
    border-radius: 30px;
    background: linear-gradient(180deg, #fff6ed -3.87%, #f9ebdd 92.85%);
    box-shadow: 4px 4px 24px rgba(214, 191, 167, .45), inset -4px -4px 10px #fff, inset 2px 2px 11px rgba(231, 205, 177, .9);
  }

  body.home .cert-card--electronic {
    top: 209px;
    height: 284px;
  }

  body.home .cert-card--electronic::before {
    display: none;
  }

  body.home .cert-card--physical {
    top: 547px;
    height: 360px;
  }

  body.home .cert-card__content {
    position: absolute;
    top: 42px;
    left: 174px;
    width: 182px;
    max-width: none;
  }

  body.home .cert-card--physical .cert-card__content {
    left: 180px;
    max-width: none;
  }

  body.home .cert-card__title {
    font-size: 30px;
    line-height: 29px;
  }

  body.home .cert-card--physical .cert-card__title {
    font-size: 32px;
  }

  body.home .cert-card__desc {
    margin-top: 22px;
    font-size: 14px;
    line-height: normal;
  }

  body.home .cert-card__visual {
    display: block;
  }

  body.home .cert-card--electronic .cert-card__visual {
    position: absolute;
    top: 34px;
    left: 35px;
    width: 105px;
    height: 213px;
  }

  body.home .cert-card--electronic .cert-card__visual img {
    width: 100%;
    height: 100%;
  }

  body.home .cert-card__btn {
    position: absolute;
    left: 196px;
    bottom: 0;
    width: 171px;
    height: 37px;
    padding: 10px 9px;
  }

  body.home .cert-card__sticker,
  body.home .cert-card__sticker--dot,
  body.home .cert-card__sticker--photo {
    display: block;
  }

  body.home .cert-card__sticker--left {
    top: 157px;
    left: -37px;
    width: 109px;
    height: 98px;
    transform: none;
  }

  body.home .cert-card__sticker--dot {
    top: -7px;
    left: 95px;
    width: 87px;
    height: 86px;
    transform: none;
  }

  body.home .cert-card__visual--pair {
    position: absolute;
    inset: 0;
    width: 380px;
    height: 360px;
  }

  body.home .cert-photo--1 {
    position: absolute;
    top: 14px;
    left: -17px;
    width: 134px;
    height: 162px;
  }

  body.home .cert-photo--2 {
    position: absolute;
    top: 173px;
    left: 25px;
    width: 143px;
    height: 166px;
  }

  body.home .cert-card__sticker--photo {
    top: -6px;
    left: 43px;
    width: 136px;
    height: 131px;
  }

  body.home .cert-card__sticker--right {
    top: 182px;
    right: auto;
    left: 6px;
    width: 74px;
    height: 74px;
  }

  body.home .cert-card__address {
    position: absolute;
    top: 226px;
    left: 180px;
    width: 185px;
  }

  body.home .cert-card__address > p {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: normal;
  }

  body.home .cert-card__address-row p {
    font-size: 16px;
    line-height: 21px;
  }

  body.home .delivery {
    width: 430px;
    max-width: 100%;
    height: 1941px;
    padding: 0;
    overflow: hidden;
    background: #9d1f2a url("img/delivery/dl-mobile-bg-lossless.webp") left top / 430px 1941px no-repeat;
  }

  body.home .delivery::before {
    display: none;
  }

  body.home .delivery > .container {
    position: relative;
    width: 430px;
    height: 1941px;
    padding: 0;
  }

  body.home .delivery > .container > .section-title {
    position: absolute;
    top: 56px;
    left: 24px;
    width: 353px;
    margin: 0;
    font-size: 37px;
    line-height: 32px;
    letter-spacing: 2.22px;
    white-space: normal;
  }

  body.home .delivery-title-break {
    display: inline;
  }

  body.home .delivery > .container > .section-subtitle {
    position: absolute;
    top: 134px;
    left: 24px;
    display: block;
    width: 353px;
    margin: 0;
    font-size: 16px;
    line-height: normal;
  }

  body.home .delivery > .container > .section-subtitle .subtitle-star {
    position: absolute;
    top: -43px;
    left: 261px;
    width: 21px;
    height: 21px;
  }

  body.home .delivery-grid {
    position: absolute;
    inset: 0;
    display: block;
  }

  body.home .delivery-card {
    position: absolute;
    left: 24px;
    display: block;
    width: 382px;
    padding: 0;
    overflow: visible;
    text-align: left;
  }

  /* Основа каждой карточки уже сведена в Figma: бумага, её зерно,
     градиент, рваный край и тень не пересобираются браузером из
     приближённых clip-path/gradient-правил. */
  /* На телефоне подложка карточки — готовый PNG, тень в нём уже впечатана,
     поэтому собственный слой тени здесь лишний. */
  body.home .delivery-card__shadow { display: none; }

  body.home .delivery-card::before {
    inset: 0 auto auto 0;
    width: 383px;
    height: 528px;
    background: url("img/delivery/mobile/delivery-coffee-bg.png") left top / 100% 100% no-repeat;
    clip-path: none;
    -webkit-clip-path: none;
    filter: none;
  }

  body.home .delivery-card--vending::before {
    height: 459px;
    background-image: url("img/delivery/mobile/delivery-vending-bg.png");
  }

  body.home .delivery-card--door::before {
    height: 606px;
    background-image: url("img/delivery/mobile/delivery-door-bg.png");
  }

  body.home .delivery-card--coffee {
    top: 208px;
    min-height: 0;
    height: 527px;
  }

  body.home .delivery-card--vending {
    top: 782px;
    min-height: 0;
    height: 458px;
  }

  body.home .delivery-card--door {
    top: 1285px;
    min-height: 0;
    height: 605px;
  }

  body.home .delivery-card__content {
    position: absolute;
    top: 33px;
    left: 27px;
    width: 329px;
    max-width: none;
  }

  body.home .delivery-card--door .delivery-card__content {
    top: 34px;
  }

  body.home .delivery-card__title {
    margin: 0;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0;
  }

  body.home .delivery-card__desc {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: normal;
  }

  body.home .delivery-card__desc br {
    display: none;
  }

  body.home .delivery-card__meta {
    font-size: 14px;
    line-height: normal;
  }

  body.home .delivery-card--coffee .delivery-card__meta {
    position: absolute;
    top: 140px;
    left: 0;
    margin: 0;
    font-size: 16px;
    line-height: 21px;
  }

  body.home .delivery-card--door .delivery-card__meta {
    position: absolute;
    top: 132px;
    left: 0;
    width: 333px;
    margin: 0;
    gap: 11px;
  }

  body.home .delivery-card--coffee .delivery-card__content > .btn,
  body.home .delivery-card--vending .delivery-card__content > .btn {
    position: absolute;
    left: 8px;
    width: 312px;
    height: 46px;
  }

  body.home .delivery-card--coffee .delivery-card__content > .btn {
    top: 413px;
  }

  body.home .delivery-card--vending .delivery-card__content > .btn {
    top: 344px;
  }

  body.home .dc-art {
    position: absolute;
    display: block;
    margin: 0;
  }

  /* Коллаж фото был растянут на десктопный размер (640px) — на мобильном
     кадре Figma (208:4719 "Главная_Моб" → 208:4841 "5" → 208:4879 "photo")
     сам коллаж x=-6.627 y=448.725 width=439.111 относительно канвы, карточка
     "back" 208:4851 стоит на x=24 y=208 → в координатах .delivery-card
     (left уже 24px) это left=-6.627-24=-30.6px, top=448.725-208=240.7px,
     width=439px. Раньше 640px вместо 439px — коллаж вылезал далеко за
     карточку и «уезжал» вправо/вниз вместо аккуратного бликуна. */
  body.home .dc-art--coffee-photos {
    top: 240px;
    left: -24px;
    width: 430px;
    height: auto;
    content: url("img/delivery/mobile/delivery-coffee-photos@3x.png");
  }

  body.home .dc-art--coffee-new {
    top: -22px;
    left: 298px;
    width: 76px;
  }

  body.home .dc-art--coffee-macaron {
    top: 227px;
    left: 284px;
    width: 45px;
  }

  body.home .dc-art--coffee-cocoa {
    display: block;
    left: -22px;
    top: 367px;
    width: 140.667px;
    height: auto;
    transform: none;
  }

  body.home .dc-art--coffee-cocoa img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
  }

  /* Тот же баг с коллажем, что и у coffee-photos выше, тот же копипаст
     640px/-52px на все три карточки. Мобильный узел Figma — 208:4953
     "photo" (внутри карточки "Вендинги"): x=-6.629 y=952.738 width=439.104,
     карточка "back" стоит на y=782 → top=952.738-782=170.7px, left те же
     -30.6px (карточки все левым краем на x=24, коллаж на x=-6.63). */
  body.home .dc-art--vending-photos {
    top: 171px;
    left: -24px;
    width: 430px;
    height: auto;
    content: url("img/delivery/mobile/delivery-vending-photos@3x.png");
  }

  body.home .dc-art--vending-badge {
    top: 112px;
    left: 247px;
    width: 142px;
  }

  body.home .dc-art--vending-sticker3 {
    top: 293px;
    left: 10px;
    width: 79px;
  }

  /* Тот же баг с коллажем, что и у coffee-photos выше. Мобильный узел
     Figma — 208:4914 "photo" (внутри карточки "У двери"): x=-6.633
     y=1543.686 width=439.111, карточка "back" стоит на y=1285 →
     top=1543.686-1285=258.7px, left -30.6px как у остальных двух. */
  body.home .dc-art--door-photos {
    top: 259px;
    left: -24px;
    width: 430px;
    height: auto;
    content: url("img/delivery/mobile/delivery-door-photos@3x.png");
  }

  body.home .dc-art--door-sticker {
    top: 209px;
    left: 208px;
    width: 113px;
  }

  body.home .delivery-card__action-box {
    position: absolute;
    top: 425px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 312px;
    gap: 20px;
  }

  body.home .delivery-card__cta {
    width: 312px;
    height: 46px;
  }

  body.home .delivery-apps {
    justify-content: center;
    width: 312px;
    gap: 8px;
  }

  body.home .delivery-apps .app-btn img {
    width: 38px;
    height: 38px;
  }

  body.home .delivery-apps .app-btn:nth-child(3) { order: 1; }
  body.home .delivery-apps .app-btn:nth-child(1) { order: 2; }
  body.home .delivery-apps .app-btn:nth-child(2) { order: 3; }

  body.home + .site-footer,
  body.home .site-footer {
    height: 553px;
  }

  body.home .site-footer .footer-inner {
    width: 430px;
    max-width: 100%;
    height: 553px;
    padding: 0;
  }

  body.home .footer-logo-svg {
    position: absolute;
    top: 76px;
    left: 25px;
    width: 382px;
    max-width: none;
    height: 64px;
    margin: 0;
  }

  body.home .footer-logo {
    width: 382px;
    height: 64px;
  }

  body.home .footer-columns {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
  }

  body.home .footer-col-nav {
    position: absolute;
    top: 182px;
    gap: 16px;
  }

  body.home .footer-col-nav:nth-child(1) {
    left: 25px;
  }

  body.home .footer-col-nav:nth-child(2) {
    left: 222px;
  }

  body.home .footer-col-nav a {
    font-size: 9px;
    line-height: normal;
  }

  body.home .footer-col-buttons {
    position: absolute;
    top: 307px;
    left: 222px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 22px;
    width: 176px;
  }

  body.home .footer-social-row {
    gap: 8px;
  }

  /* канва 38px → кружок 22.49px, см. блок выше */
  body.home .footer-social-item { --social-hover-scale: 1.0889; }

  body.home .footer-social-item img {
    width: 38px;
    height: 38px;
  }

  body.home .footer-col-buttons .btn {
    width: 176px;
    height: 46px;
    min-width: 0;
  }

  body.home .footer-col-contact {
    position: absolute;
    top: 316px;
    left: 25px;
    width: 175px;
    font-size: 9px;
    line-height: normal;
  }

  body.home .footer-col-contact__label,
  body.home .footer-col-contact__phone {
    margin-bottom: 19px;
  }

  body.home .footer-col-contact__address {
    line-height: 17px;
  }

  body.home .footer-divider {
    position: absolute;
    top: 453px;
    left: 25px;
    width: 374px;
    height: 1px;
    margin: 0;
  }

  body.home .footer-legal {
    position: absolute;
    top: 480px;
    left: 25px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 23px;
    width: 374px;
    padding: 0;
  }

  body.home .footer-legal-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 10px;
    width: 243px;
  }

  body.home .footer-legal-main span:nth-child(3) {
    width: 233px;
  }

  body.home .footer-legal span,
  body.home .footer-legal a {
    font-size: 8px;
    line-height: 11px;
    text-align: left;
  }

  body.home .footer-legal > a {
    width: 106px;
    text-align: right;
  }

}

/* =========================================
   АВТОМАСШТАБИРОВАНИЕ МАКЕТА (desktop / tablet)
========================================= */
/* Проблема. Макет свёрстан абсолютными координатами из Figma под кадр
   1200px, а фоновые полосы — процентами от вьюпорта. Как только окно
   (или браузерный зум) делает вьюпорт уже 1200px, две системы координат
   расходятся. Замерено на 1000px: стикеры «французский шоколад» и
   «калифорнийский миндаль» уезжали на 1162–1165px, то есть за кадр и под
   обрезку, а шоколадная полоса фона вставала на 700px вместо 800px —
   контент и фон разъезжались на 100px.

   Решение. Вместо переверстки на чужой брейкпоинт — пропорциональное
   уменьшение: zoom удерживает CSS-вьюпорт равным ширине макета, поэтому
   и проценты, и абсолютные координаты снова сходятся, и кадр рендерится
   как нарисован, просто оптически мельче.

   Почему zoom, а не transform: scale — transform на предке делает его
   containing block для position: fixed, и фиксированная шапка вместе с
   модалками (.sm-overlay) перестают быть фиксированными. С zoom шапка
   проверена: остаётся fixed, top корректно масштабируется (24 -> 20 при
   0.833). Sticky-блоки (корзина, панель состава) тоже не ломаются.

   Единица px в знаменателе обязательна: zoom принимает <number>, а
   calc(100vw / 1200) без единицы даёт <length> — правило невалидно и
   молча игнорируется (проверено: даёт 1). Деление длины на длину даёт
   число — это CSS Values 4. Скрипт в header.php задаёт тот же числовой
   масштаб для старых браузеров; calc остаётся fallback, если скрипт отключён.

   Знаменатель строго равен ширине макета. Пробовал закладывать резерв
   под полосу прокрутки (1218 вместо 1200, т.к. 100vw её включает) — но
   это рвёт границу полосы: на 1199 zoom выходил 0.984, на 1200 сразу
   1.0, и кадр заметно дёргался при ресайзе. Плюс терялась точность 1:1
   на самой ширине макета. С равным знаменателем на 1199 zoom = 0.999,
   переход незаметен.
   Компенсировать полосу прокрутки отдельно не требуется: контейнеры
   заданы через max-width, а .hero и секции с вылетающими стикерами
   имеют overflow: hidden. Нехватка ~17px на системах с классическими
   полосами просто отрисует кадр как чуть более узкий вьюпорт — этот
   случай вёрстка и так держит. */

/* `fluid-flow` turns off only the shared root zoom: the route must own native
   layouts at the 430/860/1200px Figma endpoints. Page owners must check the
   adjacent widths and media boundaries before adding a route to
   paola_fluid_module() in functions.php. */

/* Десктопный макет (1200) — ужимаем вниз до планшетного брейкпоинта */
@media (min-width: 861px) and (max-width: 1199px) ,  (width > 860px) and (max-width: 1199px) ,  (min-width: 861px) and (width < 1200px) {
  :root { zoom: var(--paola-root-zoom, calc(100vw / 1200px)); zoom: calc(100vw / 1200px); }
  :root:has(body.fluid-flow) { zoom: 1; }
}

/* Планшетный макет (860) — та же логика внутри своей полосы.
   Нижняя граница 431, а не 601: без неё зазор 431–600px оставался
   вовсе без масштабирования (см. заметку у блока «HERO на планшете»
   в начале файла — там же обнаружено и починено). */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  :root { zoom: var(--paola-root-zoom, calc(100vw / 860px)); zoom: calc(100vw / 860px); }
  :root:has(body.fluid-flow) { zoom: 1; }
}

/* Мобильный макет (430) — своего бакета не было, и это ломало вёрстку
   уже с 375px. Мобильный макет нарисован по фигмовскому артборду 430 и
   местами прибит к нему гвоздями: только в assets/mobile-fixes.css
   тринадцать жёстких width:430px, плюс 412/413/420px в этом файле и
   min-width:430px у страниц «сертификаты» и «заказ принят». Пока экран
   ровно 430 (iPhone 14 Pro Max) всё сходится, а на 375 (SE, 12 mini, 8)
   и 390-393 (12/13/14/15) блоки шире экрана: layout viewport раздувается
   до 430, страница уезжает вбок. Замер на 375: у главной innerWidth
   становился 407, у «наборов», «состава» и «сертификатов» — 430.

   Лечим тем же приёмом, что уже применён к десктопу и планшету: ужимаем
   весь макет пропорционально. 100vw внутри мобильных блоков нигде не
   используется, так что zoom их не ломает. */
@media (max-width: 430px) {
  :root { zoom: var(--paola-root-zoom, calc(100vw / 430px)); zoom: calc(100vw / 430px); }
  :root:has(body.fluid-flow) { zoom: 1; }
}

/* Чтобы масштаб был честно пропорциональным, одного zoom не хватает.
   По умолчанию Chrome округляет ширину каждого глифа до целого пикселя
   устройства, а под zoom пиксель устройства мельче пикселя макета — и
   одна и та же строка при одном и том же font-size и одной и той же
   ширине контейнера получается разной ширины на разных экранах полосы.
   Замер «Состав вкусов» (контейнер 426px на всех ширинах): надпись
   «КБЖУ на 1 шт.:» давала 101.9px на 860, 105.1 на 650, 91.9 на 480;
   описание вкуса переносилось на 5 строк на 860 и на 4 на 480, и из
   28 пунктов набегало — высота страницы гуляла 9332…9672px.

   geometricPrecision выключает это округление: шрифт позиционируется
   с дробной точностью, ширина текста становится линейной по zoom. Те
   же замеры после: надпись 99.2/99.2/99/99, описание 4 строки везде,
   высота страницы 9428…9433px.

   Правило глобальное, а не внутри полос: на 860 zoom = 1, и если бы
   округление там осталось, эталон полосы отличался бы от неё самой.
   На ПК (zoom = 1, ширина >= 1200) влияние проверено — меняется только
   плашка КБЖУ, она становится на 15px уже, то есть плотнее облегает
   текст: ровно то, что просили в пункте [99]. Figma считает метрики
   текста так же дробно, поэтому это ещё и ближе к макету. */
html { text-rendering: geometricPrecision; }

/* =========================================
   CERTIFICATE WIZARD / DESKTOP 1200
   Figma section 936:4142, frames 936:4227–936:4797
========================================= */
body.page-template-page-certificates {
  min-width: 1200px;
  background: #fff6eb;
}

body.page-template-page-certificates .site-footer {
  display: none;
}

body.page-template-page-certificates .cw-page {
  position: relative;
  width: 1200px;
  height: 640px;
  min-height: 640px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #fff6eb;
}

body.page-template-page-certificates .cw-page > .container {
  position: relative;
  width: 1200px;
  max-width: none;
  height: 640px;
  margin: 0;
  padding: 0;
}

body.page-template-page-certificates .cw-back {
  position: absolute;
  z-index: 5;
  top: 106px;
  left: 80px;
  gap: 7px;
  margin: 0;
  font-size: 12px;
  line-height: 16px;
}

body.page-template-page-certificates .cw-back__arrow {
  width: 8px;
  height: 8px;
}

body.page-template-page-certificates .cw-layout {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.page-template-page-certificates .cw-steps {
  position: absolute;
  z-index: 5;
  top: 232px;
  left: 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 160px;
  margin: 0;
}

body.page-template-page-certificates .cw-step {
  gap: 20px;
  width: 160px;
  height: 28px;
}

body.page-template-page-certificates .cw-step:not(:last-child)::after {
  left: 13px;
  top: 28px;
  width: 1px;
  height: 36px;
  background: rgba(176, 30, 43, .22);
}

body.page-template-page-certificates .cw-step.is-done::after {
  background: #b01e2b;
}

body.page-template-page-certificates .cw-step__dot {
  width: 28px;
  height: 28px;
  font-size: 8px;
  letter-spacing: .24px;
  color: rgba(64, 28, 12, .4);
  background: linear-gradient(156.14deg, #fff8f2 15.59%, #f8eadc 90.2%);
  box-shadow: 2px 2px 6px rgba(165, 140, 114, .25), -6px -6px 10px #fff, 4px 4px 18px rgba(214, 191, 167, .9);
}

body.page-template-page-certificates .cw-step__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(64, 28, 12, .4);
}

body.page-template-page-certificates .cw-step.is-current .cw-step__dot,
body.page-template-page-certificates .cw-step.is-done .cw-step__dot {
  background: linear-gradient(101.61deg, #da1b2c -108.06%, #9d1f2a 81.99%);
}

body.page-template-page-certificates .cw-step.is-current .cw-step__label,
body.page-template-page-certificates .cw-step.is-done .cw-step__label {
  color: rgba(64, 28, 12, .8);
}

body.page-template-page-certificates .cw-preview {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  pointer-events: none;
}

body.page-template-page-certificates .cw-preview__orbit {
  position: absolute;
  top: 177px;
  left: 280px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(93.77deg, #fff6ed 15.55%, #f5e8db 90.82%);
  box-shadow: inset -4px -4px 10px #fff, inset 2px 2px 11px rgba(231, 205, 177, .9), 4px 4px 12px rgba(214, 191, 167, .45);
  opacity: 0;
}

body.page-template-page-certificates [data-step="1"] .cw-preview__orbit {
  left: 412px;
  opacity: 1;
}

body.page-template-page-certificates [data-step="2"] .cw-preview__orbit {
  opacity: 1;
}

body.page-template-page-certificates .cw-card {
  position: absolute;
  top: 187px;
  left: 350px;
  width: 260px;
  height: 380px;
  border-radius: 32px;
  box-shadow: 2px 2px 6px rgba(165, 140, 114, .25), -6px -6px 10px #fff, 4px 4px 18px rgba(214, 191, 167, .9);
  pointer-events: auto;
}

body.page-template-page-certificates [data-step="1"] .cw-card {
  left: 482px;
}

body.page-template-page-certificates .cw-card__bg {
  inset: auto;
  top: -133px;
  left: -130px;
  width: 390px;
  height: 587px;
  max-width: none;
  object-fit: cover;
  opacity: 0;
}

body.page-template-page-certificates .cw-card__bg.is-active { opacity: .8; }

/* Node 936:4320 is exported at 4x with its exact Figma crop and 80%
   compositing already baked in. Other carousel designs retain the raw
   390x587 Figma source geometry. */
body.page-template-page-certificates .cw-card__bg[data-design="0"] {
  top: 0;
  left: 0;
  width: 260px;
  height: 380px;
  opacity: 0;
}

body.page-template-page-certificates .cw-card__bg[data-design="0"].is-active {
  opacity: 1;
}

/* Desktop sticker ink bounds from current Figma node 936:4227. The phone
   export's transparent canvas needs a wider image box to match the mark. */
body.page-template-page-certificates .cw-card__logo {
  top: 20px;
  left: calc(50% + 4px);
  width: 89.96px;
  content: url('img/cert/phone-card-logo@3x.png');
}

body.page-template-page-certificates .cw-card__balance {
  right: auto;
  bottom: auto;
  top: 278px;
  left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  width: 228px;
  height: 86px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .01);
  backdrop-filter: blur(13.5px);
}

body.page-template-page-certificates .cw-card__balance-label {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .3px;
}

body.page-template-page-certificates .cw-card__balance-sum {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .72px;
}

body.page-template-page-certificates .cw-thumb {
  position: absolute;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transition: opacity .2s ease;
}

body.page-template-page-certificates [data-step="1"] .cw-thumb {
  opacity: 1;
}

body.page-template-page-certificates .cw-thumb img {
  position: absolute;
  top: -19px;
  left: -19px;
  width: 158px;
  max-width: none;
  height: 158px;
  object-fit: contain;
}

body.page-template-page-certificates .cw-thumb--prev img,
body.page-template-page-certificates .cw-thumb--next img,
body.page-template-page-certificates .cw-thumb--far img {
  object-position: center;
  opacity: 1;
  transform: none;
}

body.page-template-page-certificates .cw-thumb--far img {
  width: 138px;
  height: 138px;
}

body.page-template-page-certificates .cw-thumb--prev { top: 317px; left: 256px; width: 120px; height: 120px; }
body.page-template-page-certificates .cw-thumb--next { top: 317px; left: 848px; width: 120px; height: 120px; }
body.page-template-page-certificates .cw-thumb--far  { top: 327px; left: 1004px; width: 100px; height: 100px; }

body.page-template-page-certificates .cw-panels {
  position: absolute;
  z-index: 4;
  top: 118px;
  left: 720px;
  width: 384px;
  height: 472px;
}

body.page-template-page-certificates .cw-panel {
  position: relative;
  width: 100%;
  height: 100%;
}

body.page-template-page-certificates .cw-panel__title {
  gap: 22px;
  width: 384px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
  line-height: 39px;
  letter-spacing: 2.04px;
}

body.page-template-page-certificates .cw-panel__num {
  width: 36px;
  height: 36px;
  margin-top: 0;
  font-size: 12px;
  line-height: 15px;
}

body.page-template-page-certificates .cw-panel .btn {
  position: absolute;
  top: 426px;
  left: 54px;
  width: 330px;
  height: 46px;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

body.page-template-page-certificates .cw-nav {
  position: fixed;
  z-index: 8;
  top: 359px;
  left: calc(50% - 168px);
  display: flex;
  justify-content: space-between;
  width: 360px;
  pointer-events: none;
}

body.page-template-page-certificates .cw-nav__btn {
  width: 36px;
  height: 36px;
  background: transparent;
  box-shadow: none;
}

body.page-template-page-certificates .cw-nav__btn::before {
  width: 7px;
  height: 7px;
  border-width: 1px;
}

/* ПК (Figma 936:4230/4231): стрелки каталога — круглые кнопки 36px
   с градиентом и объёмной тенью, а не голые шевроны */
@media (min-width: 861px) ,  (width > 860px) {
  body.page-template-page-certificates .cw-nav__btn {
    background: linear-gradient(144deg, #FFF6ED 13%, #F5E8DB 100%);
    box-shadow: 4px 4px 18px rgba(214, 191, 167, 0.9), -6px -6px 10px #FFFFFF, 2px 2px 6px rgba(165, 140, 114, 0.25);
  }
  body.page-template-page-certificates .cw-nav__btn::before {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
}

body.page-template-page-certificates .cw-sum {
  position: absolute;
  top: 137px;
  left: -4px;
  display: block;
  width: 388px;
}

body.page-template-page-certificates .cw-sum__list {
  position: absolute;
  top: 0;
  left: 0;
  gap: 0;
  width: 42px;
}

body.page-template-page-certificates .cw-sum__list li {
  height: 23px;
}

body.page-template-page-certificates .cw-sum__item {
  position: relative;
  width: 48px;
  padding: 0;
  text-align: left;
  font-size: 12px;
  line-height: 15px;
}

body.page-template-page-certificates .cw-sum__item.is-active::before {
  position: absolute;
  left: -20px;
}

body.page-template-page-certificates .cw-sum__picked {
  position: absolute;
  top: 98px;
  left: 114px;
  width: 210px;
}

body.page-template-page-certificates .cw-sum__value {
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 600;
  line-height: 49px;
  letter-spacing: 1.2px;
}

body.page-template-page-certificates .cw-sum__note {
  min-width: 181px;
  margin-top: 3px;
  padding: 10px 16px;
  text-align: center;
  font-size: 9px;
  border-radius: 80px;
  background: linear-gradient(93.77deg, #fff6ed 15.55%, #f5e8db 90.82%);
  box-shadow: inset -4px -4px 10px #fff, inset 2px 2px 11px rgba(231, 205, 177, .9), 4px 4px 12px rgba(214, 191, 167, .45);
}

/* [183].1 — «.cw-panel__miss» (подсказка о незаполненном поле) — тот же
   класс .cw-panel__hint, вставленный JS'ом в конец панели перед кнопкой.
   В потоке он идёт сразу после вступительной подсказки, а форма шага
   спозиционирована абсолютно — из-за этого текст наезжает на поля ввода
   («МАМЕ» / «Укажите, от кого подарок.» на скрине сайта). Ставим ему
   собственное место над кнопкой «Далее», как в остальных десктопных
   раскладках мастера (900/1200), и не трогаем телефон/планшет. */
@media (min-width: 861px) ,  (width > 860px) {
  body.page-template-page-certificates .cw-panel__miss {
    position: absolute;
    top: 388px;
    left: 58px;
    width: 326px;
    margin: 0;
  }
}

body.page-template-page-certificates [data-panel="3"] {
  /* [23].2 — весь блок «поздравление» опущен на 22px, чтобы под номером/заголовком
     свободно поместилась подсказка «Заполните все три поля». */
  padding-top: 127px;
}

body.page-template-page-certificates [data-panel="3"] .cw-form {
  position: absolute;
  top: 212px;
  left: 58px;
  width: 326px;
  gap: 14px;
}

body.page-template-page-certificates [data-panel="3"] .cw-input {
  height: 40px;
  padding: 0;
  border: 0;
  font-size: 13px;
  color: #401c0c;
}

body.page-template-page-certificates [data-panel="3"] .cw-input--lg {
  border-bottom: 1px solid rgba(64, 28, 12, .28);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 1.68px;
}

body.page-template-page-certificates [data-panel="3"] .cw-input--lg::placeholder {
  font-size: 28px;
}

body.page-template-page-certificates [data-panel="4"] {
  padding-top: 86px;
}

body.page-template-page-certificates [data-panel="4"] .cw-panel__hint {
  margin: 13px 0 0 58px;
  font-size: 12px;
  line-height: 15px;
  color: #401c0c;
}

body.page-template-page-certificates [data-panel="4"] .cw-form {
  position: absolute;
  top: 229px;
  left: 54px;
  width: 330px;
  gap: 18px;
}

body.page-template-page-certificates [data-panel="4"] .cw-field__label {
  margin: 0 0 12px 4px;
  font-size: 12px;
  color: #401c0c;
}

body.page-template-page-certificates [data-panel="4"] .cw-field .cw-input {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #da1b2c;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

body.page-template-page-certificates [data-panel="5"] .cw-panel__title {
  width: 250px;
}

body.page-template-page-certificates .cw-summary {
  position: absolute;
  top: 95px;
  left: 58px;
  width: 326px;
  font-size: 12px;
}

body.page-template-page-certificates .cw-summary__block {
  padding: 14px 0;
  border-bottom: 1px solid rgba(64, 28, 12, .3);
}

body.page-template-page-certificates .cw-summary__block:first-child {
  min-height: 131px;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(64, 28, 12, .3);
}

body.page-template-page-certificates .cw-summary__to {
  font-size: 28px;
  line-height: 34px;
}

body.page-template-page-certificates .cw-summary__block dt {
  font-size: 11px;
}

body.page-template-page-certificates .cw-summary__block dd {
  margin-bottom: 6px;
}

body.page-template-page-certificates .cw-summary__from {
  margin-top: 14px !important;
  font-weight: 600;
}

body.page-template-page-certificates .cw-summary__block:nth-child(2) {
  padding-top: 20px;
  border-bottom: 0;
}

body.page-template-page-certificates .cw-summary__total {
  border: 0;
}

body.page-template-page-certificates .cw-summary__total dd {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
}

body.page-template-page-certificates .cw-consent {
  position: absolute;
  top: 395px;
  left: 58px;
  width: 306px;
  margin: 0;
  font-size: 9px;
  line-height: 11px;
}

body.page-template-page-certificates .cw-consent input {
  appearance: none;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid #da1b2c;
  border-radius: 50%;
}

body.page-template-page-certificates .cw-consent input:checked {
  background: #b01e2b;
  box-shadow: inset 0 0 0 3px #fff6eb;
}

body.page-template-page-certificates [data-panel="5"] > .btn {
  top: 439px;
}

body.page-template-page-certificates .cw-panel .btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

body.page-template-page-certificates .cw-page.is-success {
  height: max(640px, 100vh);
  min-height: max(640px, 100vh);
}

body.page-template-page-certificates .cw-success {
  position: absolute;
  inset: 0;
  width: 1200px;
  height: 100%;
  min-height: 640px;
  background-size: 1200px 798px;
  background-position: center -100px;
  background-repeat: no-repeat;
}

/* Референсный кадр Figma — 1200×640. На более высоком реальном экране
   фон продолжает фотографию до нижней кромки, а не оставляет белое поле. */
@media (min-height: 641px) {
  body.page-template-page-certificates .cw-page.is-success .cw-success {
    background-size: cover;
    background-position: center;
  }
}

body.page-template-page-certificates .cw-success__card {
  position: absolute;
  inset: 0;
  width: 1200px;
  max-width: none;
  height: 640px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

body.page-template-page-certificates .cw-success__paper {
  position: absolute;
  top: 145px;
  left: 295px;
  width: 567px;
  height: 434px;
  background:
    linear-gradient(rgba(255, 246, 237, .97), rgba(245, 232, 219, .97)),
    url("img/hero-paper-texture-3x.webp") center / cover;
  -webkit-mask: url("img/cert/success-paper.svg") center / 100% 100% no-repeat;
  mask: url("img/cert/success-paper.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(8px 8px 8px rgba(64, 28, 12, .2));
  transform: rotate(-5.83deg);
}

body.page-template-page-certificates .cw-success__content {
  position: static;
  z-index: auto;
  width: auto;
  height: auto;
  transform: none;
}

body.page-template-page-certificates .cw-success__script {
  position: absolute;
  z-index: 2;
  top: 220px;
  left: calc(45.83% + 1.59px);
  display: block;
  width: 169px;
  font-size: 66px;
  line-height: 43px;
  transform: translateX(-50%) rotate(-6deg);
}

body.page-template-page-certificates .cw-success__title {
  position: absolute;
  z-index: 2;
  top: 278px;
  left: calc(45.83% + 23.54px);
  width: 369px;
  margin: 0;
  font-weight: 100;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: 2.88px;
  transform: translateX(-50%) rotate(-6deg);
}

body.page-template-page-certificates .cw-success__note {
  position: absolute;
  z-index: 2;
  top: 392px;
  left: calc(50% - 209px);
  gap: 15px;
  width: 390px;
  margin: 0;
  font-size: 15px;
  line-height: 18px;
  transform: rotate(-6deg);
}

body.page-template-page-certificates .cw-success__note strong {
  font-weight: 500;
}

body.page-template-page-certificates .cw-success__actions {
  position: absolute;
  z-index: 2;
  top: 462px;
  left: calc(50% - 229px);
  gap: 6px;
  width: 468px;
  transform: rotate(-6deg);
}

body.page-template-page-certificates .cw-success__actions .btn {
  flex: 0 0 230px;
  width: 230px;
  height: 46px;
  padding: 0 12px;
  font-size: 12px;
}

body.page-template-page-certificates .cw-success__gift {
  position: absolute;
  z-index: 3;
  top: 266px;
  left: 222px;
  width: 126px;
  height: 133px;
}

body.page-template-page-certificates .cw-success__gift-lines {
  position: absolute;
  z-index: 4;
  top: 274px;
  left: 244px;
  width: 90px;
  height: 113px;
}

body.page-template-page-certificates .cw-success__love {
  position: absolute;
  z-index: 3;
  top: 339px;
  left: calc(50% + 208px);
  display: grid;
  place-items: center;
  width: 152px;
  height: 104px;
  filter: drop-shadow(4px 4px 6px rgba(64, 28, 12, .25));
  transform: rotate(12.47deg);
}

body.page-template-page-certificates .cw-success__love img,
body.page-template-page-certificates .cw-success__love span {
  grid-area: 1 / 1;
}

body.page-template-page-certificates .cw-success__love img {
  width: calc(100% - 14px);
  height: calc(100% - 8px);
}

body.page-template-page-certificates .cw-success__love span {
  width: 112px;
  color: #b01e2b;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: .28px;
  text-align: center;
  transform: rotate(-.77deg);
  opacity: .7;
}

/* CERTIFICATE WIZARD / TABLET 860 */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  body.page-template-page-certificates { min-width: 860px; }

  body.page-template-page-certificates .site-header {
    top: 21px;
    padding: 0 20px;
  }

  body.page-template-page-certificates .header-inner {
    height: 42px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.page-template-page-certificates .header-logo { display: none; }

  body.page-template-page-certificates .header-right { gap: 8px; }
  body.page-template-page-certificates .header-right { margin-left: auto; }

  body.page-template-page-certificates .cart-btn {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 145px;
    height: 42px;
    padding: 0;
    border: 0;
    background: #8f7564;
    color: #fff6eb;
  }

  body.page-template-page-certificates .cart-icon-wrap {
    width: 42px;
    height: 42px;
    background: #fff6eb;
  }

  body.page-template-page-certificates .cart-icon-wrap path,
  body.page-template-page-certificates .cart-icon-wrap circle {
    stroke: #b01e2b;
  }

  body.page-template-page-certificates .cart-icon-wrap circle { fill: #b01e2b; }

  body.page-template-page-certificates .cart-price {
    flex: 1;
    text-align: center;
    font-size: 16px;
  }

  body.page-template-page-certificates .cart-count {
    top: 34px;
    right: -7px;
    left: auto;
    width: 18px;
    height: 18px;
    color: #fff6eb;
    background: #b01e2b;
    border: 1px solid #fff6eb;
  }

  body.page-template-page-certificates .cw-page,
  body.page-template-page-certificates .cw-page > .container {
    width: 860px;
    height: 707px;
    min-height: 707px;
  }

  body.page-template-page-certificates .cw-page[data-step="5"] {
    height: 741px;
    min-height: 741px;
  }

  body.page-template-page-certificates .cw-page[data-step="5"] > .container,
  body.page-template-page-certificates .cw-page[data-step="5"] .cw-panels {
    height: 741px;
  }

  body.page-template-page-certificates .cw-layout::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 860px;
    height: 140px;
    border-radius: 0 0 38px 38px;
    background: #fff6eb;
    box-shadow: 0 4px 18px rgba(214, 191, 167, .45);
  }

  body.page-template-page-certificates .cw-layout::after {
    position: absolute;
    z-index: 6;
    top: 56px;
    left: 250px;
    width: 360px;
    color: #684536;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
  }

  body.page-template-page-certificates [data-step="1"] .cw-layout::after { content: "дизайн"; }
  body.page-template-page-certificates [data-step="2"] .cw-layout::after { content: "номинал"; }
  body.page-template-page-certificates [data-step="3"] .cw-layout::after { content: "поздравление"; }
  body.page-template-page-certificates [data-step="4"] .cw-layout::after { content: "данные получателя"; }
  body.page-template-page-certificates [data-step="5"] .cw-layout::after { content: "оплата"; }

  body.page-template-page-certificates .cw-back {
    z-index: 110;
    top: 35px;
    left: 51px;
  }

  body.page-template-page-certificates .cw-steps {
    z-index: 5;
    top: 88px;
    left: 110px;
    flex-direction: row;
    justify-content: space-between;
    width: 638px;
    height: 32px;
  }

  body.page-template-page-certificates .cw-steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 16px;
    left: -60px;
    width: 760px;
    height: 1px;
    background: #9d877b;
  }

  body.page-template-page-certificates .cw-step {
    display: block;
    width: 32px;
    height: 32px;
  }

  body.page-template-page-certificates .cw-step:not(:last-child)::after,
  body.page-template-page-certificates .cw-step__label { display: none; }

  body.page-template-page-certificates .cw-step__dot {
    width: 32px;
    height: 32px;
  }

  body.page-template-page-certificates .cw-preview__orbit {
    top: 172px;
    left: 50px;
  }

  body.page-template-page-certificates [data-step="1"] .cw-preview__orbit { left: 230px; }

  body.page-template-page-certificates .cw-card,
  body.page-template-page-certificates [data-step="1"] .cw-card {
    top: 182px;
    left: 120px;
  }

  body.page-template-page-certificates [data-step="1"] .cw-card { left: 300px; }

  body.page-template-page-certificates .cw-thumb--prev { top: 312px; left: 74px; }
  body.page-template-page-certificates .cw-thumb--next { top: 312px; left: 666px; }
  body.page-template-page-certificates .cw-thumb--far { display: none; }

  body.page-template-page-certificates .cw-nav {
    position: absolute;
    top: 354px;
    left: 250px;
    width: 360px;
  }

  body.page-template-page-certificates .cw-panels {
    position: absolute;
    inset: 0;
    width: 860px;
    height: 707px;
  }

  body.page-template-page-certificates .cw-panel .btn {
    top: 632px;
    left: 20px;
    width: 820px;
  }

  body.page-template-page-certificates .cw-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    width: 860px;
    height: 102px;
    border-radius: 38px 38px 0 0;
    background: #fff6eb;
    box-shadow: 0 -4px 18px rgba(214, 191, 167, .45);
  }

  body.page-template-page-certificates .cw-panel__title,
  body.page-template-page-certificates [data-panel="3"] .cw-panel__title { display: none; }

  body.page-template-page-certificates .cw-sum {
    top: 250px;
    left: 486px;
    width: 324px;
  }

  body.page-template-page-certificates .cw-sum__picked {
    top: 100px;
    left: 114px;
  }

  body.page-template-page-certificates [data-panel="3"] { padding: 0; }

  body.page-template-page-certificates [data-panel="3"] .cw-form {
    top: 308px;
    left: 484px;
    width: 326px;
  }

  body.page-template-page-certificates [data-panel="4"] { padding: 0; }

  body.page-template-page-certificates [data-panel="4"] .cw-panel__title {
    display: flex;
    position: absolute;
    top: 222px;
    left: 484px;
    width: 326px;
    font-size: 34px;
    line-height: 39px;
  }

  body.page-template-page-certificates [data-panel="4"] .cw-panel__num { display: none; }

  body.page-template-page-certificates [data-panel="4"] .cw-panel__hint {
    position: absolute;
    top: 314px;
    left: 484px;
    width: 326px;
    margin: 0;
  }

  body.page-template-page-certificates [data-panel="4"] .cw-form {
    top: 369px;
    left: 480px;
    width: 330px;
  }

  body.page-template-page-certificates [data-panel="5"] .cw-panel__title {
    display: flex;
    position: absolute;
    top: 181px;
    left: 487px;
    width: 326px;
    font-size: 34px;
    line-height: 39px;
  }

  body.page-template-page-certificates [data-panel="5"] .cw-panel__num { display: none; }

  body.page-template-page-certificates .cw-summary {
    top: 278px;
    left: 487px;
    width: 326px;
  }

  body.page-template-page-certificates .cw-consent {
    top: 576px;
    left: 487px;
  }

  body.page-template-page-certificates [data-panel="5"] > .btn {
    top: 667px;
  }

  body.page-template-page-certificates .cw-page[data-step="5"] .cw-panel::after {
    height: 102px;
  }

  body.page-template-page-certificates .cw-page[data-step="5"] .cw-panel .btn {
    top: 667px;
  }

  body.page-template-page-certificates .cw-success {
    width: 860px;
    height: 640px;
    min-height: 640px;
    background-image: url("img/cert/success-bg-tablet-figma.jpg") !important;
    background-size: 860px 638px;
    background-position: 0 0;
  }

  body.page-template-page-certificates .cw-success__paper { top: 124px; left: 143px; }
  body.page-template-page-certificates .cw-success__content { top: 190px; left: 209px; }
  body.page-template-page-certificates .cw-success__gift,
  body.page-template-page-certificates .cw-success__gift-lines {
    top: 253px;
    left: 80px;
    width: 98px;
    height: 123px;
  }
  body.page-template-page-certificates .cw-success__love { top: 323px; left: 663px; }
  body.page-template-page-certificates .cw-success__love-text { top: 350px; left: 672px; }
}

/* CERTIFICATE WIZARD / MOBILE 430 */
@media (max-width: 430px) {
  body.page-template-page-certificates { min-width: 430px; }

  body.page-template-page-certificates .site-header {
    top: 21px;
    padding: 0 12px 0 20px;
  }

  body.page-template-page-certificates .header-inner {
    height: 42px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.page-template-page-certificates .header-logo { display: none; }

  body.page-template-page-certificates .header-right { gap: 8px; }
  body.page-template-page-certificates .header-right { margin-left: auto; }

  body.page-template-page-certificates .cart-btn {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 145px;
    height: 42px;
    padding: 0;
    border: 0;
    background: #8f7564;
    color: #fff6eb;
  }

  body.page-template-page-certificates .cart-icon-wrap {
    width: 42px;
    height: 42px;
    background: #fff6eb;
  }

  body.page-template-page-certificates .cart-icon-wrap path,
  body.page-template-page-certificates .cart-icon-wrap circle { stroke: #b01e2b; }
  body.page-template-page-certificates .cart-icon-wrap circle { fill: #b01e2b; }

  body.page-template-page-certificates .cart-price {
    flex: 1;
    text-align: center;
    font-size: 16px;
  }

  body.page-template-page-certificates .cart-count {
    top: 34px;
    right: -7px;
    left: auto;
    width: 18px;
    height: 18px;
    color: #fff6eb;
    background: #b01e2b;
    border: 1px solid #fff6eb;
  }

  body.page-template-page-certificates .cw-page,
  body.page-template-page-certificates .cw-page > .container {
    width: 430px;
    height: 880px;
    min-height: 880px;
  }

  body.page-template-page-certificates .cw-page[data-step="3"] { height: 951px; min-height: 951px; }
  body.page-template-page-certificates .cw-page[data-step="4"] { height: 1018px; min-height: 1018px; }
  body.page-template-page-certificates .cw-page[data-step="5"] { height: 1214px; min-height: 1214px; }

  body.page-template-page-certificates .cw-page[data-step="3"] > .container { height: 951px; }
  body.page-template-page-certificates .cw-page[data-step="4"] > .container { height: 1018px; }
  body.page-template-page-certificates .cw-page[data-step="5"] > .container { height: 1214px; }

  body.page-template-page-certificates .cw-layout::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 430px;
    height: 170px;
    border-radius: 0 0 30px 30px;
    background: #fff6eb;
    box-shadow: 0 4px 18px rgba(214, 191, 167, .45);
  }

  body.page-template-page-certificates .cw-layout::after {
    position: absolute;
    z-index: 6;
    top: 88px;
    left: 80px;
    width: 270px;
    color: #684536;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
  }

  body.page-template-page-certificates [data-step="1"] .cw-layout::after { content: "дизайн"; }
  body.page-template-page-certificates [data-step="2"] .cw-layout::after { content: "номинал"; }
  body.page-template-page-certificates [data-step="3"] .cw-layout::after { content: "поздравление"; }
  body.page-template-page-certificates [data-step="4"] .cw-layout::after { content: "данные получателя"; }
  body.page-template-page-certificates [data-step="5"] .cw-layout::after { content: "оплата"; }

  body.page-template-page-certificates .cw-back {
    z-index: 110;
    top: 36px;
    left: 20px;
    font-size: 14px;
  }

  body.page-template-page-certificates .cw-steps {
    z-index: 5;
    top: 120px;
    left: 47px;
    flex-direction: row;
    justify-content: space-between;
    width: 336px;
    height: 32px;
  }

  body.page-template-page-certificates .cw-steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 16px;
    left: -22px;
    width: 380px;
    height: 1px;
    background: #9d877b;
  }

  body.page-template-page-certificates .cw-step {
    display: block;
    width: 32px;
    height: 32px;
  }

  body.page-template-page-certificates .cw-step:not(:last-child)::after,
  body.page-template-page-certificates .cw-step__label { display: none; }
  body.page-template-page-certificates .cw-step__dot { width: 32px; height: 32px; }

  body.page-template-page-certificates .cw-preview__orbit,
  body.page-template-page-certificates .cw-nav { display: none; }

  body.page-template-page-certificates .cw-preview { z-index: 5; }

  body.page-template-page-certificates .cw-card,
  body.page-template-page-certificates [data-step="1"] .cw-card {
    top: 194px;
    left: 85px;
  }

  body.page-template-page-certificates .cw-panels {
    position: absolute;
    inset: 0;
    width: 430px;
    height: 100%;
  }

  body.page-template-page-certificates .cw-panel { height: 100%; }
  body.page-template-page-certificates .cw-panel__title { display: none; }

  body.page-template-page-certificates .cw-thumb {
    top: 658px;
    width: 100px;
    height: 100px;
  }

  body.page-template-page-certificates .cw-thumb--prev { left: 29px; }
  body.page-template-page-certificates .cw-thumb--next { left: 165px; }
  body.page-template-page-certificates .cw-thumb--far { display: block; left: 301px; }

  /* Mobile nodes use 100px circles; the first two source exports are
     desktop 120px nodes with 19px shadow bleed on each side. */
  body.page-template-page-certificates .cw-thumb--prev img,
  body.page-template-page-certificates .cw-thumb--next img {
    top: -15.833px;
    left: -15.833px;
    width: 131.667px;
    height: 131.667px;
  }

  body.page-template-page-certificates [data-step="1"] .cw-panel::before,
  body.page-template-page-certificates [data-step="2"] .cw-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 598px;
    left: 0;
    width: 430px;
    height: 282px;
    border-radius: 30px 30px 0 0;
    background: #fff6eb;
    box-shadow: 0 -4px 18px rgba(214, 191, 167, .45);
  }

  body.page-template-page-certificates [data-step="1"] .cw-panel::after,
  body.page-template-page-certificates [data-step="2"] .cw-panel::after {
    content: "•  •  •  •  •  •  •  ●  •  •  •  •  •  •  •  •  •  •  •";
    position: absolute;
    top: 614px;
    left: 25px;
    width: 380px;
    overflow: hidden;
    color: #a58978;
    font-size: 12px;
    letter-spacing: 7px;
    white-space: nowrap;
  }

  body.page-template-page-certificates .cw-panel .btn {
    top: auto;
    bottom: 20px;
    left: 20px;
    width: 390px;
    height: 56px;
    font-size: 14px;
  }

  body.page-template-page-certificates .cw-sum {
    top: 655px;
    left: 0;
    width: 430px;
  }

  body.page-template-page-certificates .cw-sum__list {
    top: 72px;
    left: 0;
    flex-direction: row;
    gap: 28px;
    width: 430px;
    padding-left: 0;
    overflow: hidden;
  }

  body.page-template-page-certificates .cw-sum__list li { flex: 0 0 auto; }
  body.page-template-page-certificates .cw-sum__item { width: auto; font-size: 18px; white-space: nowrap; }
  body.page-template-page-certificates .cw-sum__item.is-active::before { display: none; }

  body.page-template-page-certificates .cw-sum__picked {
    top: -60px;
    left: 91px;
    width: 248px;
    text-align: center;
  }

  body.page-template-page-certificates .cw-sum__value { display: none; }
  body.page-template-page-certificates .cw-sum__note { min-width: 248px; font-size: 11px; }

  body.page-template-page-certificates [data-panel="3"] { padding: 0; }
  body.page-template-page-certificates [data-panel="3"]::before {
    content: "напишите поздравление";
    position: absolute;
    top: 610px;
    left: 25px;
    width: 380px;
    color: #684536;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
  }

  body.page-template-page-certificates [data-panel="3"] .cw-form {
    top: 670px;
    left: 25px;
    width: 380px;
    gap: 14px;
  }

  body.page-template-page-certificates [data-panel="3"] .cw-input {
    height: 42px;
    border: 0;
  }

  body.page-template-page-certificates [data-panel="3"] .cw-input--lg { border: 0; }

  body.page-template-page-certificates [data-panel="4"] { padding: 0; }
  body.page-template-page-certificates [data-panel="4"] .cw-panel__title {
    display: block;
    position: absolute;
    top: 610px;
    left: 44px;
    width: 342px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
  }

  body.page-template-page-certificates [data-panel="4"] .cw-panel__num { display: none; }

  body.page-template-page-certificates [data-panel="4"] .cw-panel__hint {
    position: absolute;
    top: 644px;
    left: 52px;
    width: 326px;
    margin: 0;
    text-align: center;
    line-height: 18px;
  }

  body.page-template-page-certificates [data-panel="4"] .cw-form {
    top: 712px;
    left: 44px;
    width: 342px;
    gap: 18px;
  }

  body.page-template-page-certificates [data-panel="4"] .cw-field .cw-input { height: 48px; }

  body.page-template-page-certificates [data-panel="5"] .cw-panel__title {
    display: block;
    position: absolute;
    top: 610px;
    left: 52px;
    width: 326px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
  }

  body.page-template-page-certificates [data-panel="5"] .cw-panel__num { display: none; }

  body.page-template-page-certificates .cw-summary {
    top: 682px;
    left: 25px;
    width: 380px;
    font-size: 13px;
  }

  body.page-template-page-certificates .cw-summary__block:first-child { min-height: 175px; }
  body.page-template-page-certificates .cw-summary__to { font-size: 30px; line-height: 38px; }
  body.page-template-page-certificates .cw-summary__block:nth-child(2) { min-height: 135px; }
  body.page-template-page-certificates .cw-summary__total { display: flex; justify-content: space-between; align-items: baseline; }
  body.page-template-page-certificates .cw-summary__total dd { font-size: 20px; }

  body.page-template-page-certificates .cw-consent {
    top: 1055px;
    left: 25px;
    width: 380px;
    font-size: 11px;
    line-height: 13px;
  }

  body.page-template-page-certificates [data-panel="5"] > .btn { top: auto; bottom: 20px; }

  body.page-template-page-certificates .cw-success {
    width: 430px;
    height: 810px;
    min-height: 810px;
    background-image: url("img/cert/success-bg-mobile-figma.jpg") !important;
    background-size: 430px 810px;
    background-position: 0 0;
  }

  body.page-template-page-certificates .cw-success__paper {
    top: 221px;
    left: 5px;
    width: 420px;
    height: 322px;
  }

  body.page-template-page-certificates .cw-success__content {
    inset: 0;
    width: 430px;
    height: 810px;
    transform: none;
  }

  body.page-template-page-certificates .cw-success__script {
    position: absolute;
    top: 267px;
    left: 102px;
    width: 226px;
    font-size: 48px;
    line-height: 52px;
    transform: rotate(-6deg);
  }

  body.page-template-page-certificates .cw-success__title {
    position: absolute;
    top: 320px;
    left: 60px;
    width: 310px;
    margin: 0;
    font-size: 37px;
    line-height: 38px;
    transform: rotate(-6deg);
  }

  body.page-template-page-certificates .cw-success__note {
    position: absolute;
    top: 406px;
    left: 73px;
    width: 300px;
    margin: 0;
    font-size: 15px;
    line-height: 18px;
    transform: rotate(-6deg);
  }

  body.page-template-page-certificates .cw-success__actions {
    position: absolute;
    top: 625px;
    left: 20px;
    flex-direction: column;
    gap: 8px;
    width: 390px;
    transform: none;
  }

  body.page-template-page-certificates .cw-success__actions .btn {
    flex: 0 0 56px;
    width: 390px;
    height: 56px;
    font-size: 13px;
  }

  body.page-template-page-certificates .cw-success__gift,
  body.page-template-page-certificates .cw-success__gift-lines {
    top: 160px;
    left: 32px;
    width: 104px;
    height: 114px;
  }

  body.page-template-page-certificates .cw-success__love {
    top: 473px;
    left: 273px;
    width: 130px;
    height: 102px;
  }

  body.page-template-page-certificates .cw-success__love-text {
    top: 503px;
    left: 279px;
    width: 120px;
  }
}

/* =========================================
   Корпоративные подарки — планшет 860px
   (Figma node 481:1162, fileKey TWaDkrs6TlwgqgOq4idaaT).
   Правки клиента: стикеры съехали / баннер прыгает — обе точки
   были следствием того, что этот блок жил в легаси @media(max-width:900/1024px),
   которые триггерились в диапазоне 861-1199px ОДНОВРЕМЕННО с общим
   :root{zoom:calc(100vw/1200px)} — origin CSS для десктопа зумился,
   а легаси-правила поверх него подменяли часть значений вне зависимости
   от zoom-бакета, отсюда рывок при пересечении границы. Здесь — только
   настоящий диапазон 431-860px, где сайт уже использует zoom:calc(100vw/860px)
   и версия страницы структурно другая (не десктоп в уменьшенном виде).
========================================= */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .cp-hero {
    height: 556px;
    max-height: none;
    background-image: url("img/corporate/hero-bg-tablet-figma.png") !important;
    background-position: center;
    background-size: 860px 556px;
  }

  .cp-hero__card {
    left: 214px;
    top: 120px;
    width: 433px;
    height: 331px;
    margin-left: 0;
    padding: 40px 62px 42px;
  }
  .cp-hero__title {
    width: 239px;
    max-width: none;
    font-size: 31px;
    line-height: 31px;
    transform: none;
  }
  .cp-hero__script {
    width: 254px;
    margin-top: 0;
    font-size: 45px;
    line-height: 43px;
    transform: rotate(-.93deg);
  }
  .cp-hero__sub {
    width: 309px;
    margin-top: 13px;
    margin-left: 0;
    gap: 15px;
    justify-content: flex-start;
    font-size: 14px;
    line-height: 14px;
  }
  .cp-hero__cta { width: 294px; height: 46px; margin-top: 20px; }

  .cp-hero__sticker--gift {
    left: 152px;
    top: 218px;
    width: 103px;
    height: 96px;
    margin-left: 0;
  }
  .cp-hero__sticker--love {
    left: 603px;
    top: 285px;
    width: 114px;
    height: 78px;
    margin-left: 0;
    transform: rotate(16.38deg);
    /* см. мобильный блок: у десктопа background-size в пикселях */
    background-size: contain;
  }
  .cp-hero__sticker--love span {
    width: 81px;
    font-size: 10px;
    letter-spacing: .2px;
  }

  /* .cp-bento / .cp-bento-row / .cp-bento-row--last остаются в разметке
     только для десктопа — на планшете все карточки становятся прямыми
     items одной grid-сетки .cp-features .container, потому что
     "повод есть каждый день" в макете физически переезжает вниз, в один
     ряд с "документооборот"/"персонализация", а не остаётся сверху —
     это невозможно выразить, если карточки заперты в трёх раздельных
     контейнерах. */
  .cp-bento,
  .cp-bento-row,
  .cp-bento-row--last {
    display: contents;
  }

  .cp-features {
    position: relative;
    height: 1771px;
    padding: 0;
  }
  .cp-features .container {
    position: relative;
    display: block;
    width: 860px;
    max-width: none;
    height: 1771px;
    margin: 0;
    padding: 0;
  }

  .cp-features .cp-card,
  .cp-features .cp-col__cta {
    position: absolute;
    box-sizing: border-box;
    margin: 0;
  }
  .cp-card--left-tall   { left: 50px;  top: 80px;   width: 373px; height: 646px; }
  .cp-card--red          { left: 449px; top: 80px;   width: 361px; height: 323px; }
  .cp-card--center-white { left: 448px; top: 424px;  width: 362px; height: 302px; }
  .cp-card--packaging    { left: 50px;  top: 726px;  width: 760px; height: 264px; }
  .cp-card--doc           { left: 50px;  top: 1011px; width: 373px; height: 313px; }
  .cp-card--personal      { left: 54px;  top: 1345px; width: 369px; height: 241px; }
  .cp-card--right-tall   { left: 449px; top: 1011px; width: 361px; height: 646px; }
  .cp-col__cta            { left: 54px;  top: 1611px; width: 369px; height: 46px; max-width: none; }

  .cp-card--left-tall {
    overflow: visible;
    background: url("img/corporate/cp-tablet-left-image.png") -4px -4px / 381px 654px no-repeat;
  }
  .cp-card--left-tall .cp-card__photo { display: none; }
  .cp-card--red {
    overflow: visible;
    background-image: none !important;
  }
  .cp-card--red::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -10px;
    top: -10px;
    width: 381px;
    height: 343px;
    background: url("img/corporate/cp-tablet-red-bg.png") center / 381px 343px no-repeat;
  }
  .cp-card--center-white {
    overflow: visible;
    background: transparent;
  }
  .cp-card--center-white::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -24px;
    top: -24px;
    width: 409px;
    height: 350px;
    background: url("img/corporate/cp-tablet-center-bg.png") center / 409px 350px no-repeat;
  }
  .cp-card--packaging {
    overflow: visible;
    background: transparent;
  }
  .cp-card--packaging::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -10px;
    top: 0;
    width: 780px;
    height: 263px;
    background: url("img/corporate/cp-tablet-packaging-bg.png") center / 780px 263px no-repeat;
  }
  .cp-card--doc,
  .cp-card--personal {
    overflow: visible;
    background: transparent;
  }
  .cp-card--doc::before,
  .cp-card--personal::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -24px;
    top: -24px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .cp-card--doc::before {
    width: 421px;
    height: 361px;
    background-image: url("img/corporate/cp-tablet-doc-bg.png");
    background-size: 421px 361px;
  }
  .cp-card--personal::before {
    width: 417px;
    height: 289px;
    background-image: url("img/corporate/cp-tablet-personal-bg.png");
    background-size: 417px 289px;
  }
  .cp-card--right-tall {
    overflow: visible;
    background: url("img/corporate/cp-tablet-right-image.png") -4px -4px / 369px 654px no-repeat;
  }
  .cp-card--right-tall .cp-card__photo { display: none; }

  .cp-card--left-tall .cp-card__body {
    position: absolute;
    left: 4px;
    top: 62px;
    width: 364px;
    padding: 0;
  }
  .cp-card--left-tall .cp-card__title,
  .cp-card--red .cp-card__title,
  .cp-card--center-white .cp-card__title,
  .cp-card--doc .cp-card__title,
  .cp-card--right-tall .cp-card__title {
    line-height: 33px;
    margin-bottom: 21px;
  }
  .cp-card--left-tall .cp-card__icon--gift-sm {
    position: absolute;
    left: 147px;
    top: 217px;
    width: 79px;
    margin: 0;
    transform: none;
  }
  .cp-card--left-tall .cp-card__photo {
    position: absolute;
    left: 0;
    top: 243px;
    width: 373px;
    height: 403px;
  }

  .cp-card--red .cp-card__body {
    position: absolute;
    left: 54px;
    top: 42px;
    width: 258px;
    padding: 0;
  }
  .cp-card--red .cp-card__title { font-size: 37px; }

  .cp-card--center-white {
    padding: 78px 0 0;
    justify-content: flex-start;
  }
  .cp-card--center-white .cp-card__title,
  .cp-card--center-white .cp-card__text {
    position: relative;
    z-index: 1;
    width: 362px;
  }

  .cp-card--packaging .cp-card__body {
    position: absolute;
    left: 61px;
    top: 82px;
    width: 412px;
    padding: 0;
    text-align: left;
    z-index: 3;
  }
  .cp-card--packaging .cp-card__title {
    width: 329px;
    margin-bottom: 21px;
    font-size: 40px;
    line-height: 34px;
  }
  .cp-card__packaging-box {
    position: absolute;
    left: 390px;
    top: 0;
    width: 334px;
    height: 263px;
    object-fit: cover;
  }

  .cp-card--doc .cp-card__icon--doc {
    position: absolute;
    left: 173px;
    top: 32px;
    width: 59px;
    height: 68px;
    margin: 0;
  }
  .cp-card--doc .cp-card__title {
    position: absolute;
    left: 4px;
    top: 141px;
    width: 364px;
  }
  .cp-card--doc .cp-card__text {
    position: absolute;
    left: 4px;
    top: 230px;
    width: 364px;
  }

  .cp-card--personal.cp-card--row { display: block; padding: 0; }
  .cp-card--personal .cp-card__body {
    position: absolute;
    left: 27px;
    top: 44px;
    width: 315px;
    text-align: center;
  }
  .cp-card--personal .cp-card__title {
    margin-bottom: 21px;
    line-height: 34px;
  }
  .cp-card--personal .cp-card__icon--gift-lg {
    position: absolute;
    left: 147px;
    top: 149px;
    width: 83px;
    margin: 0;
    transform: none;
  }

  .cp-card--right-tall .cp-card__body {
    position: absolute;
    left: 4px;
    top: 60px;
    width: 352px;
    padding: 0;
  }
  .cp-card--right-tall .cp-card__photo {
    position: absolute;
    left: 0;
    top: 253px;
    width: 361px;
    height: 393px;
  }

  /* Десктоп кладёт иконку слева от текста в ряд (.cp-card--row); на
     планшете (узел 481:1502) текст сверху, иконка снизу по центру. */
  .cp-card--personal.cp-card--row { text-align: center; }
}

/* =========================================
   ЕДИНЫЙ ХОВЕР КНОПОК
   Все кнопки увеличиваются на 2% при наведении.
   Блок идёт последним, поэтому перекрывает частные
   правила (translateY, разные scale) без их правки.
========================================= */

/* Плавность для тех кнопок, у которых своего transition не было */
.qty-btn,
.ct-qty__btn,
.ct-item__pill,
.ct-item__link,
.cw-nav__btn,
.nav-burger,
.social-item,
.footer-social-item,
.app-btn,
.cart-btn,
.constructor-step-toggle__pill {
  transition: transform 0.25s ease;
}

.btn:hover,
.btn-text-link:hover,
.set-order-btn:hover,
.tab-btn:hover,
.co-submit:hover,
.ct-checkout:hover,
.ct-item__pill:hover,
.ct-item__link:hover,
.ct-qty__btn:hover,
.qty-btn:hover,
.es-stepper__btn:hover,
.es-add-btn:hover,
.es-add-flavor:hover,
.es-done:hover:not(:disabled),
.es-popup__size:hover,
.es-popup__ok:hover,
.es-popup__cancel:hover,
.lh-point__btn:hover,
.cw-nav__btn:hover,
.ab-story__cta:hover,
.ab-team__more:hover,
.cert-card__btn:hover,
.delivery-card__cta:hover,
.cp-hero__cta:hover,
.cp-col__cta:hover,
.nav-mobile-footer__cta:hover,
.constructor-step-toggle__pill:hover,
.cart-btn:hover,
.app-btn:hover,
.nav-burger:hover,
.sm-close:hover {
  transform: scale(1.02);
}

/* .social-item / .footer-social-item намеренно НЕ в списке выше: по ТЗ
   контактные кнопки растут ровно на 2px, а не на 2%, множитель у них свой
   (--social-hover-scale) и зависит от размера канвы иконки. */

/* Кнопка отцентрована через transform — масштаб добавляется к сдвигу */
.sets-view-all:hover {
  transform: translateX(-50%) scale(1.02);
}

/* Выключенные кнопки не реагируют */
.btn:disabled:hover,
.btn.is-disabled:hover,
.tab-btn.is-disabled:hover,
.es-done:disabled:hover,
.co-submit:disabled:hover {
  transform: none;
}

/* Кнопки размера набора в левой колонке конструктора: ховер-увеличение
   переносим с самой кнопки на её содержимое. При scale() на кнопке вместе
   с картинкой едет и её хит-бокс, а в zoom-бакете 861-1199
   (:root{zoom:calc(100vw/1200px)}) браузер промахивается по краю на доли
   пикселя: наведение то срабатывает, то слетает, и курсор мигает
   стрелка/пальчик — ровно на «плюсе», где кнопка граничит с карточкой
   (жалоба из правок клиента). Внутренности увеличиваются так же на 2%,
   но область наведения остаётся неподвижной, и мигать нечему. */
.constructor-tabs .tab-btn:hover { transform: none; }

.constructor-tabs .tab-text { transition: transform 0.2s ease; }

.constructor-tabs .tab-btn:not(.is-disabled):hover .tab-text,
.constructor-tabs .tab-btn:not(.is-disabled):hover .tab-plus {
  transform: scale(1.02);
}

/* Живая проверка 03.10: часть фото вкусов конструктора (фисташка, пекан,
   дубайский шоколад, маракуйя) и квадратная картинка «Гурман / 12» на /sets/
   растягивались на 11–73%: боксы заданы под другие пропорции, а object-fit
   по умолчанию fill. contain вписывает картинку без искажения; при совпадающих
   пропорциях результат не меняется. */
.macaron-photo img,
.set-card__product-img { object-fit: contain !important; }

/* Раунд 5: текстура бумаги карточек «почему нас выбирают» на планшете и
   телефоне (раньше .ab-feature__texture там скрывался, бумага была плоской).
   Тот же слой, что на десктопе (Figma: ткань, opacity .13), по всей плашке
   кроме полосы зубцов, под фото и текстом. */
@media (max-width: 860px) {
  body.tablet-flow .about-page .ab-feature > .ab-feature__texture,
  body.phone-flow .about-page .ab-feature > .ab-feature__texture {
    display: block;
    left: 0; right: 0; top: 0; bottom: 16px; width: auto; height: auto;
    z-index: 0;
    background-image: url('img/about/figma-team-fabric.webp');
    background-position: left top;
    background-size: 900px auto;
    background-repeat: repeat;
    opacity: .3;
    mix-blend-mode: soft-light;
    -webkit-mask-image: none; mask-image: none;
  }
}

/* Раунд 5: на планшете текстура фона команды — 1630x880 по центру (Figma 793:6222, x=-385 при 860). */
@media (min-width: 431px) and (max-width: 860px) ,  (width > 430px) and (max-width: 860px) {
  .ab-team::before { background-size: 1630px auto; background-position: center top; }
}

/* r5 sets: фото наборов на ПК 1:1 с Figma (экспорт 3x с тенью, 796:50788) */
@media (min-width: 861px) ,  (width > 860px) {
  .sets-page .set-card:nth-child(1) .set-card__product-img { left: 670.48px; top: 37.15px; width: 340.33px; height: 290.33px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(2) .set-card__product-img { left: 678.38px; top: 37.15px; width: 340.33px; height: 290.33px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(3) .set-card__product-img { left: 682.00px; top: 36.68px; width: 329.00px; height: 291.00px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(4) .set-card__product-img { left: 665.48px; top: 38.15px; width: 342.67px; height: 287.33px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(5) .set-card__product-img { left: 679.00px; top: 85.32px; width: 320.00px; height: 185.00px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(6) .set-card__product-img { left: 670.48px; top: 72.17px; width: 344.33px; height: 206.33px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(7) .set-card__product-img { left: 679.00px; top: 83.00px; width: 320.00px; height: 187.00px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(8) .set-card__product-img { left: 693.00px; top: 31.00px; width: 288.00px; height: 288.00px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(9) .set-card__product-img { left: 694.00px; top: 36.00px; width: 276.00px; height: 276.00px; filter: none; transform: none; object-fit: fill !important; }
  .sets-page .set-card:nth-child(10) .set-card__product-img { left: 695.00px; top: 26.00px; width: 292.00px; height: 292.00px; filter: none; transform: none; object-fit: fill !important; }
}

/* Сертификаты: акцент в подсказке шага 4 — Medium, как в Figma (boldWeight 500). */
body.page-template-page-certificates .cw-panel__hint strong { font-weight: 500; }

/* Наклейка макарона у кофейни на 431–860 вписывалась с растяжением ~9%. */
.dc-art--coffee-macaron { object-fit: contain; }

/* Fluid home uses its natural flow at intermediate tablet widths, but the
   authored 860px constructor remains a fixed Figma frame. Keep this exact
   endpoint isolated so none of the responsive 431–859px composition changes. */
@media (width: 860px) {
  body.home.fluid-flow .constructor:has(.macaron-grid) {
    width: 860px;
    padding: 70px 0 0;
    overflow: hidden;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed) { height: 1074px; }
  /* Keep the collapsed Figma frame for up to three tabs; once they wrap,
     let the header rows add their natural height to the frame. */
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed):has(#constructor-set-tabs .set-tab:nth-child(n + 4)) {
    height: auto;
    min-height: 1074px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed):has(#constructor-set-tabs .set-tab:nth-child(n + 4)) .constructor-content-wrap { height: auto; }
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed):has(#constructor-set-tabs .set-tab:nth-child(n + 4)) .constructor-content {
    height: 612px;
    flex: 0 0 612px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid:not(.collapsed)) {
    height: 2382px;
    padding-bottom: 30px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) > .container {
    width: 860px;
    max-width: none;
    padding: 0 50px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-header {
    display: block;
    width: 760px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed) .constructor-header {
    height: 103px;
    margin: 0 0 32px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid:not(.collapsed)) .constructor-header {
    height: 95px;
    margin: 0 0 40px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-header .section-title { margin: 0 0 9px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-subtitle {
    width: 760px;
    max-width: none;
    gap: 20px;
    margin: 0;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-subtitle br { display: initial; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-card {
    display: flex;
    flex-direction: column;
    gap: 55px;
    width: 760px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-left { width: 760px; height: 105px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-tabs {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    justify-content: space-between;
    width: 760px;
    height: 105px;
    gap: 13px 0;
    overflow: visible;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-tabs .tab-btn { flex: 0 0 253px; width: 253px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-tabs .tab-text { width: 235px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-content-wrap {
    flex: 0 0 auto;
    width: 760px;
    height: 1987px;
    filter: drop-shadow(0 8px 28px rgba(64, 28, 12, .06));
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-content-header {
    width: 732px;
    min-height: 46px;
    margin-left: 14px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .constructor-content {
    flex: 0 0 1796px;
    width: 760px;
    height: 1796px;
    margin-top: 21px;
    padding: 20px 0 0;
    border-radius: 0 44px 28px 28px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-grid {
    display: flex;
    width: 760px;
    height: 1740px;
    padding: 0 30px;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item {
    flex: 0 0 200px;
    width: 200px;
    height: 174px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-name {
    position: absolute;
    top: 17px;
    left: 0;
    width: 200px;
    min-height: 0;
    font-size: 18px;
    line-height: normal;
    letter-spacing: 1.08px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-photo { width: 200px; height: 174px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-photo::after {
    top: 91px;
    left: 24px;
    width: 153px;
    height: 18px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-controls { top: 120px; left: 48px; }

  /* The frame shows twelve flavors in its clipped collapsed state; the last
     row fades behind the fixed show-all control, as in Figma 224:5086. */
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed) .macaron-grid.collapsed .macaron-item:nth-child(n+13) { display: none; }
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed) .macaron-grid.collapsed .macaron-item:nth-child(n+10):nth-child(-n+12) {
    display: block;
    -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .34) 20%, transparent 72%);
    mask-image: linear-gradient(rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .34) 20%, transparent 72%);
  }
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed) .constructor-expand-row {
    position: absolute;
    z-index: 3;
    top: 566px;
    left: 254px;
    width: 252px;
    margin: 0;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed) .constructor-expand-row .btn { width: 252px; height: 46px; }
  body.home.fluid-flow .constructor:has(.macaron-grid.collapsed) :is(.constructor-actions-box, .constructor-hint) { display: none; }
  body.home.fluid-flow .constructor:has(.macaron-grid:not(.collapsed)) .constructor-expand-row {
    position: absolute;
    z-index: 3;
    top: 1757px;
    right: 32px;
    width: auto;
    margin: 0;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid:not(.collapsed)) .constructor-actions-box {
    flex: 0 0 104px;
    width: 760px;
    height: 104px;
    margin-top: 20px;
    gap: 12px;
  }
  body.home.fluid-flow .constructor:has(.macaron-grid:not(.collapsed)) .constructor-actions-box .btn { width: 760px; height: 46px; }
  body.home.fluid-flow .constructor:has(.macaron-grid:not(.collapsed)) .constructor-hint { display: none; }

  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(1) .macaron-photo img { left: 23.11px; top: 54.63px; width: 153.779px; height: 46.766px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(2) .macaron-photo img { left: 25.55px; top: 57.88px; width: 150.905px; height: 45.99px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(3) .macaron-photo img { left: 30.7px; top: 58.26px; width: 146.593px; height: 45.209px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(4) .macaron-photo img { left: 9.76px; top: 53.8px; width: 177.492px; height: 54.581px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(5) .macaron-photo img { left: 26.91px; top: 57.28px; width: 142.573px; height: 51.033px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(6) .macaron-photo img { left: 27.27px; top: 56.38px; width: 149.467px; height: 51.534px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(7) .macaron-photo img { left: 29.84px; top: 58.56px; width: 147.312px; height: 45.665px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(8) .macaron-photo img { left: 22.41px; top: 58.95px; width: 150.186px; height: 46.709px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(9) .macaron-photo img { left: 27.28px; top: 56.56px; width: 144.437px; height: 50.025px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(10) .macaron-photo img { left: 18.27px; top: 59.48px; width: 164.797px; height: 52.233px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(11) .macaron-photo img { left: 32.99px; top: 56.03px; width: 132.73px; height: 48.091px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(12) .macaron-photo img { left: 29.27px; top: 60.18px; width: 149.467px; height: 44.791px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(13) .macaron-photo img { left: 22.23px; top: 57.48px; width: 159.528px; height: 51.739px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(14) .macaron-photo img { left: 19.44px; top: 56.47px; width: 163.399px; height: 51.642px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(15) .macaron-photo img { left: 26.27px; top: 58.63px; width: 149.467px; height: 46.884px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(16) .macaron-photo img { left: 32px; top: 62.42px; width: 143px; height: 44.258px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(17) .macaron-photo img { left: 21.61px; top: 55.5px; width: 156.314px; height: 57.22px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(18) .macaron-photo img { left: 22.25px; top: 59.41px; width: 154.497px; height: 51.02px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(19) .macaron-photo img { left: 26.97px; top: 57.41px; width: 153.06px; height: 47.195px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(20) .macaron-photo img { left: 26px; top: 63px; width: 143px; height: 49px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(21) .macaron-photo img { left: 18.94px; top: 62.88px; width: 163.121px; height: 45.99px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(22) .macaron-photo img { left: 34.56px; top: 60.43px; width: 145.874px; height: 45.331px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(23) .macaron-photo img { left: 32.72px; top: 59.77px; width: 141.563px; height: 47.682px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(24) .macaron-photo img { left: 27px; top: 56px; width: 150px; height: 52px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(25) .macaron-photo img { left: 26.97px; top: 59.19px; width: 153.06px; height: 45.752px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(26) .macaron-photo img { left: 32.03px; top: 65.91px; width: 132.94px; height: 38.331px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(27) .macaron-photo img { left: 24.41px; top: 61.26px; width: 150.186px; height: 50.305px; }
  body.home.fluid-flow .constructor:has(.macaron-grid) .macaron-item:nth-child(28) .macaron-photo img { left: 34px; top: 64px; width: 143px; height: 41.999px; }
}
