/* «Резная форма» — фирменный стиль.
   Палитра: мука, мёд, бук, пряник, шоколад. Акцент — клюквенный, только точечно. */

:root {
  --flour: #fbf6ee;
  --flour-2: #f5ecdf;
  --linen: #ecdfcc;
  --linen-2: #e2d0b6;
  --beech: #d8a676;
  --honey: #e0a03a;
  --honey-deep: #b9741f;
  --ginger: #94532a;
  --ginger-2: #7a4220;
  --choco: #3a2317;
  --ink: #2a1a10;
  --muted: #7b6556;
  --berry: #a3352b;
  --cream-text: #f6ead8;
  --white: #fffdf9;
  --ok: #4f7a3a;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow-sm: 0 1px 2px rgba(58, 35, 23, .06), 0 4px 14px rgba(58, 35, 23, .06);
  --shadow: 0 2px 6px rgba(58, 35, 23, .06), 0 18px 40px -12px rgba(58, 35, 23, .22);
  --shadow-lg: 0 30px 80px -20px rgba(58, 35, 23, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--flour);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Лёгкое «мучное» зерно поверх фона. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--honey); color: var(--ink); }
:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- типографика ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.01em; color: var(--choco); margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 88px); }
h2 { font-size: clamp(34px, 4.4vw, 58px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--ginger); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; }
h1 + .lead, h2 + .lead { margin-top: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ginger);
  margin-bottom: 18px;
}
.eyebrow .rosette { width: 20px; height: 23px; color: var(--honey-deep); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--linen { background: var(--flour-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head .lead { margin: 14px 0 0; }

/* ---------- кнопки ---------- */
.btn {
  --bg: var(--ginger); --fg: var(--cream-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15.5px; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 10px 24px -10px rgba(122, 66, 32, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 16px 30px -12px rgba(122, 66, 32, .65); }
.btn:active { transform: translateY(0); }
.btn--honey { --bg: linear-gradient(135deg, #f0b450, var(--honey) 45%, #c97d1f); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--choco); box-shadow: inset 0 0 0 1.5px var(--linen-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ginger); }
.btn--light { --bg: var(--flour); --fg: var(--choco); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spark { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ginger); text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--linen-2); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--choco); text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--ginger); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--choco); border-color: var(--choco); color: var(--cream-text); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--choco); color: var(--cream-text);
}
.badge--honey { background: var(--honey); color: var(--ink); }
.badge--berry { background: var(--berry); color: #fff; }
.badge--light { background: rgba(255, 253, 249, .92); color: var(--choco); backdrop-filter: blur(6px); }

/* ---------- шапка ---------- */
.topbar { background: var(--choco); color: var(--cream-text); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { text-decoration: none; opacity: .9; }
.topbar a:hover { opacity: 1; }
.topbar__msg { display: flex; align-items: center; gap: 8px; }
.topbar__msg .rosette { width: 14px; height: 16px; color: var(--honey); }
.topbar__links { display: flex; gap: 18px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--linen); box-shadow: 0 8px 30px -18px rgba(58, 35, 23, .35); }
.header__row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--choco); flex: none; }
/* Знак: тёмный контур и «РФ», коричневая ладонь (ручная работа), зелёный росток (натуральный материал). */
.logo__mark { width: 76px; height: 88px; color: var(--ink); flex: none; transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: translateY(-2px); }
.logo--full .logo__mark { width: 128px; height: 148px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: .01em; }
.logo__sub { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.logo img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--choco); transition: background .2s;
}
.nav a:hover { background: var(--flour-2); }
.nav a.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--honey-deep);
}
.nav__special { background: linear-gradient(135deg, rgba(224, 160, 58, .22), rgba(224, 160, 58, .08)); }
.nav__special .spark { width: 14px; height: 14px; color: var(--honey-deep); vertical-align: -2px; margin-right: 4px; }

.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: transparent; color: var(--choco); cursor: pointer; text-decoration: none; transition: background .2s;
}
.icon-btn:hover { background: var(--flour-2); }
.icon-btn .icon { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; background: var(--honey); color: var(--ink); font-size: 11px; font-weight: 800;
  transform: scale(1); transition: transform .3s var(--ease);
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }
.header__phone { font-weight: 700; text-decoration: none; font-size: 15px; margin-right: 6px; white-space: nowrap; }
.burger { display: none; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 80; background: var(--flour); padding: 24px var(--gutter);
  display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: transform .45s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: none; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-nav a.mobile-nav__link {
  font-family: var(--font-display); font-size: 34px; font-weight: 600; text-decoration: none; color: var(--choco);
  padding: 8px 0; border-bottom: 1px solid var(--linen);
}
.mobile-nav__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }

/* ---------- герой ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; padding: 0; margin: 0; }
.hero__facts li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); max-width: 190px; line-height: 1.35; }
.hero__facts strong { display: block; color: var(--choco); font-size: 15px; }
.hero__facts .fact-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--white); box-shadow: var(--shadow-sm); color: var(--ginger);
}

.hero__stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; }
.hero__plate {
  position: absolute; inset: 6%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #fffaf2 0%, #f6ebdc 52%, #ead9c1 100%);
  box-shadow: inset 0 -18px 40px rgba(122, 66, 32, .12), inset 0 10px 30px rgba(255, 255, 255, .8), var(--shadow-lg);
}
.hero__plate::after {
  content: ""; position: absolute; inset: 7%; border-radius: 50%;
  border: 1.5px dashed rgba(148, 83, 42, .22);
}
.hero__canvas { position: absolute; inset: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__fallback {
  position: absolute; inset: 17%; border-radius: 50%; object-fit: cover; transition: opacity .8s;
}
.hero__stage.is-3d .hero__fallback { opacity: 0; }
.hero__tag {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  background: rgba(255, 253, 249, .92); backdrop-filter: blur(8px); border-radius: 999px; box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 700; color: var(--choco); animation: float 6s ease-in-out infinite;
}
.hero__tag small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.hero__tag .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--flour-2); color: var(--ginger); }
.hero__tag[hidden] { display: none; }
.hero__tag--1 { top: 9%; left: -2%; }
.hero__tag--2 { top: 30%; right: -4%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__flour { position: absolute; inset: 0; pointer-events: none; }
.hero__flour i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .9;
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
}
.hero__bg-rosette {
  position: absolute; right: -6vw; top: -4vw; width: 46vw; max-width: 680px; color: var(--linen); opacity: .45; z-index: -1;
}

/* ---------- бегущая строка ---------- */
.marquee { background: var(--ginger); color: var(--cream-text); overflow: hidden; padding: 18px 0; position: relative; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); white-space: nowrap; }
.marquee__item .rosette { width: 22px; height: 26px; color: var(--honey); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- карточки товаров ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__media {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--flour-2); box-shadow: var(--shadow-sm); isolation: isolate;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.card:hover .card__media { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s var(--ease), transform 1.2s var(--ease); }
.card__img--print { opacity: 0; transform: scale(1.06); }
.card:hover .card__img--main { transform: scale(1.04); }
.card.has-print:hover .card__img--main { opacity: 0; transform: scale(.97); }
.card.has-print:hover .card__img--print { opacity: 1; transform: scale(1); animation: press .7s var(--ease); }
@keyframes press { 0% { transform: scale(1.08); filter: brightness(1.08); } 55% { transform: scale(.985); } 100% { transform: scale(1); filter: none; } }
.card__video { opacity: 0; }
.card.is-playing .card__video { opacity: 1; }
/* Блик, пробегающий по резьбе при наведении. */
.card__media::after {
  content: ""; position: absolute; inset: -40%; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 246, 230, .45) 50%, transparent 60%);
  transform: translateX(-70%); transition: transform 1.1s var(--ease);
}
.card:hover .card__media::after { transform: translateX(70%); }
.card__badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; }
.card__hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; opacity: 0; transform: translateY(6px);
  transition: opacity .35s, transform .35s var(--ease);
}
.card.has-print:hover .card__hint { opacity: 1; transform: none; }
.card__add {
  position: absolute; right: 12px; bottom: 12px; z-index: 4; width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; background: var(--choco); color: var(--cream-text);
  box-shadow: var(--shadow); transform: scale(.85); opacity: 0; transition: transform .3s var(--ease), opacity .3s, background .2s;
}
.card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: scale(1); }
.card__add:hover { background: var(--ginger); }
.card__add.is-done { background: var(--ok); }
.card__body { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.card__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.15; color: var(--choco); }
.card__meta { font-size: 13px; color: var(--muted); }
.card__price { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-weight: 800; font-size: 18px; }
.card__price s { font-weight: 500; font-size: 14px; color: var(--muted); }

/* «Скоро»: пустые места в демо-каталоге. */
.card--soon .card__media { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--flour-2) 0 14px, var(--flour) 14px 28px); box-shadow: none; border: 1.5px dashed var(--linen-2); }
.card--soon .rosette { width: 38%; height: auto; color: var(--linen-2); }

/* ---------- блок конструктора на главной ---------- */
.diy {
  position: relative; overflow: hidden; color: var(--cream-text);
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(224, 160, 58, .22), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(148, 83, 42, .5), transparent 60%),
    var(--choco);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 80px);
}
.diy h2 { color: var(--flour); }
.diy h2 em { color: var(--honey); }
.diy .lead { color: rgba(246, 234, 216, .75); }
.diy .eyebrow { color: var(--honey); }
.diy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 700; font-style: italic;
  border: 1.5px solid rgba(224, 160, 58, .55); color: var(--honey);
}
.steps strong { display: block; font-size: 17px; color: var(--flour); margin-bottom: 2px; }
.steps span { color: rgba(246, 234, 216, .7); font-size: 15px; }
.diy__visual { position: relative; aspect-ratio: 1.05; }
.diy__card {
  position: absolute; border-radius: var(--radius); overflow: hidden; background: var(--flour);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.diy__card--photo { width: 44%; aspect-ratio: .82; left: 0; top: 0; transform: rotate(-6deg); padding: 10px 10px 34px; z-index: 1; }
.diy__card--photo .ph { width: 100%; height: 100%; border-radius: 12px; background: linear-gradient(160deg, #eadfce, #d4c3ab); display: grid; place-items: center; }
.diy__card--photo .ph svg { width: 78%; }
.diy__card--photo figcaption { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-style: italic; color: var(--choco); font-size: 18px; }
.diy__card--3d { width: 62%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fffaf2, #ecdcc5); }
.diy__card--3d canvas { width: 100% !important; height: 100% !important; }
.diy__arrow { position: absolute; left: 34%; top: 50%; width: 30%; color: var(--honey); transform: rotate(18deg); }
.diy__price { margin-top: 18px; font-size: 14px; color: rgba(246, 234, 216, .65); }

/* ---------- поводы ---------- */
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.occasion {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 170px;
  padding: 22px; border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--choco);
  border: 1px solid var(--linen); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}
.occasion:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fffaf1; }
.occasion__icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--flour-2); color: var(--ginger); transition: background .3s, color .3s; }
.occasion:hover .occasion__icon { background: var(--honey); color: var(--ink); }
.occasion__icon .icon { width: 26px; height: 26px; }
.occasion__name { font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.1; }
.occasion__tag { font-size: 13px; color: var(--muted); margin-top: 4px; }
.occasion .rosette { position: absolute; right: -24px; bottom: -24px; width: 110px; color: var(--flour-2); transition: transform 1.2s var(--ease); }
.occasion:hover .rosette { transform: scale(1.08) rotate(-4deg); }

/* ---------- процесс ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: proc; }
.process::before { content: ""; position: absolute; top: 32px; left: 8%; right: 8%; border-top: 1.5px dashed var(--linen-2); }
.process__step { position: relative; text-align: center; padding: 0 6px; }
.process__num {
  position: relative; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flour); border: 1.5px solid var(--linen-2); color: var(--ginger);
}
.process__num .icon { width: 28px; height: 28px; }
.process__step h3 { font-size: 22px; margin-bottom: 8px; }
.process__step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- рецепт / контент ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.recipe-card {
  position: relative; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow); border: 1px solid var(--linen);
}
.recipe-card::before {
  content: ""; position: absolute; inset: 10px; border-radius: calc(var(--radius-lg) - 8px); border: 1px dashed var(--linen-2); pointer-events: none;
}
.recipe-card h3 { margin-bottom: 18px; }
.ingredients { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.ingredients li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dotted var(--linen-2); font-size: 15.5px; }
.ingredients li:last-child { border-bottom: 0; }
.ingredients b { font-variant-numeric: tabular-nums; color: var(--ginger); white-space: nowrap; }
.prose { max-width: 70ch; }
.prose h2 { margin: 1.4em 0 .5em; font-size: clamp(30px, 3.4vw, 42px); }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.tip {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(224, 160, 58, .12);
  border-left: 3px solid var(--honey); font-size: 15px; margin: 1.4em 0;
}
.tip .icon { color: var(--honey-deep); margin-top: 3px; }

/* ---------- отзывы, FAQ ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--linen); }
.review__stars { color: var(--honey); letter-spacing: 3px; margin-bottom: 10px; }
.review__author { margin-top: 14px; font-weight: 700; font-size: 14px; }
.review__author span { font-weight: 500; color: var(--muted); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--linen); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 16.5px; color: var(--choco);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ginger); border-bottom: 2px solid var(--ginger); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }

/* ---------- подвал ---------- */
.footer { background: var(--choco); color: rgba(246, 234, 216, .78); padding: 0 0 28px; margin-top: 0; }
.footer__ornament { height: 26px; color: var(--ginger); background-repeat: repeat-x; margin-bottom: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer .logo { color: var(--flour); }
.footer .logo__sub { color: rgba(246, 234, 216, .55); }
.footer .logo__mark { color: var(--cream-text); }
.footer h4 { margin: 0 0 16px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--honey); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--flour); }
.footer__about { margin-top: 18px; font-size: 14.5px; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(246, 234, 216, .2); }
.footer__social a:hover { background: rgba(246, 234, 216, .08); }
.footer__bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(246, 234, 216, .12); font-size: 13px; color: rgba(246, 234, 216, .5); }

/* ---------- каталог ---------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 32px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ginger); }
.breadcrumbs span[aria-hidden] { opacity: .5; }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 26px; }
.filters h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.filters__list { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar__count { color: var(--muted); font-size: 14.5px; }
.select {
  appearance: none; min-height: 44px; padding: 0 42px 0 16px; border-radius: 999px; border: 1.5px solid var(--linen-2);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394532a' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.search { position: relative; }
.search input {
  width: 100%; min-height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1.5px solid var(--linen-2); background: var(--white);
}
.search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.grid-loading { opacity: .45; transition: opacity .2s; pointer-events: none; }
.empty { text-align: center; padding: 60px 20px; border-radius: var(--radius); background: var(--white); border: 1px dashed var(--linen-2); }
.empty .rosette { width: 70px; height: 81px; margin: 0 auto 14px; color: var(--linen-2); }
.custom-banner {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius); background: linear-gradient(120deg, #f6e3c2, #f1d4a6); color: var(--choco);
}
.custom-banner strong { font-family: var(--font-display); font-size: 26px; display: block; line-height: 1.1; }

/* ---------- карточка товара ---------- */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 18px); display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.gallery__thumbs { display: grid; gap: 10px; align-content: start; }
.gallery__thumb {
  width: 84px; height: 84px; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid transparent; cursor: pointer;
  background: var(--flour-2); transition: border-color .2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--ginger); }
.gallery__thumb--video { position: relative; }
.gallery__thumb--video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(58, 35, 23, .35); font-size: 20px; }
.gallery__main {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--flour-2);
  box-shadow: var(--shadow); cursor: zoom-in;
}
.gallery__main img, .gallery__main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out, opacity .35s; }
.gallery__main.is-zoom img { transform: scale(2); }
.gallery__flip {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
}
.gallery__ruler { position: absolute; left: 16px; bottom: 16px; z-index: 2; }

.buy h1 { font-size: clamp(36px, 4.2vw, 56px); margin-bottom: 14px; }
.buy__sku { font-size: 13px; color: var(--muted); letter-spacing: .06em; margin-bottom: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.buy__price { display: flex; align-items: baseline; gap: 14px; margin: 22px 0; }
.buy__price strong { font-size: 38px; font-weight: 800; letter-spacing: -.02em; color: var(--choco); }
.buy__price s { color: var(--muted); font-size: 19px; }
.buy__stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.buy__stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(79, 122, 58, .15); }
.buy__stock--order::before { background: var(--honey); box-shadow: 0 0 0 4px rgba(224, 160, 58, .2); }
.buy__actions { display: flex; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; border: 1.5px solid var(--linen-2); background: var(--white); height: 52px; }
.qty button { width: 46px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--ginger); }
.qty input { width: 40px; border: 0; text-align: center; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy__perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.buy__perks li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.buy__perks .icon { color: var(--ginger); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0; border-top: 1px solid var(--linen); }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--linen); }
.specs dt { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.specs dd { margin: 0; font-weight: 700; }
.tabs { margin-top: 18px; }
.tabs__nav { display: flex; gap: 6px; border-bottom: 1px solid var(--linen); overflow-x: auto; }
.tabs__nav button {
  padding: 14px 16px; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs__nav button[aria-selected="true"] { color: var(--choco); border-color: var(--ginger); }
.tabs__panel { padding: 22px 0; }
.tabs__panel[hidden] { display: none; }

.calc { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--linen); }
.calc__row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.calc output { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--ginger); min-width: 64px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--honey) var(--p, 50%), var(--linen) var(--p, 50%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2px solid var(--ginger); box-shadow: var(--shadow-sm); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--ginger); cursor: grab; }

/* «В натуральную величину»: картинка в реальных миллиметрах. */
.lifesize { position: fixed; inset: 0; z-index: 90; background: rgba(42, 26, 16, .82); display: none; place-items: center; overflow: auto; padding: 24px; }
.lifesize.is-open { display: grid; }
.lifesize__box { position: relative; background: var(--flour); border-radius: var(--radius); padding: 28px; text-align: center; }
.lifesize__frame { position: relative; margin: 28px auto 24px; outline: 1.5px dashed var(--ginger); outline-offset: 2px; border-radius: 8px; }
/* На обработанных фото доска занимает 80% кадра — растягиваем кадр так, чтобы доска совпала с рамкой. */
.lifesize__frame img { position: absolute; left: 50%; top: 50%; width: 125%; max-width: none; transform: translate(-50%, -50%); pointer-events: none; }
.lifesize__note { font-size: 13.5px; color: var(--muted); max-width: 44ch; margin: 0 auto 10px; }

/* ---------- корзина и оформление ---------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: clamp(20px, 4vw, 48px); align-items: start; }
.cart__list { display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 20px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--linen); }
.cart-line img { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; }
.cart-line__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; text-decoration: none; color: var(--choco); }
.cart-line__sum { font-weight: 800; min-width: 96px; text-align: right; }
.summary { position: sticky; top: calc(var(--header-h) + 18px); padding: 28px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.summary__total { border-top: 1px dashed var(--linen-2); margin-top: 10px; padding-top: 16px; font-size: 22px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 13.5px; font-weight: 700; color: var(--choco); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--linen-2); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--ginger); box-shadow: 0 0 0 4px rgba(148, 83, 42, .12); }
.field .errorlist { list-style: none; padding: 0; margin: 0; color: var(--berry); font-size: 13px; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--berry); }
.radio-cards { display: grid; gap: 10px; }
.radio-cards > div { display: contents; }
.radio-cards label {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--linen-2);
  background: var(--white); cursor: pointer; font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s;
}
.radio-cards label:has(input:checked) { border-color: var(--ginger); background: #fff7ec; }
.radio-cards input { accent-color: var(--ginger); width: 18px; height: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--ginger); width: 19px; height: 19px; margin-top: 2px; flex: none; }
.fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.fieldset legend { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--choco); margin-bottom: 16px; padding: 0; }

.done { text-align: center; max-width: 640px; margin: 0 auto; }
.done .rosette { width: 96px; height: 111px; margin: 0 auto 24px; color: var(--honey-deep); animation: brand-breathe 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- всплывающее уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 100; display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 20px; border-radius: 999px; background: var(--choco); color: var(--cream-text); box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%); transition: transform .5s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-shown { transform: translate(-50%, 0); }
.toast .btn { min-height: 40px; }

/* ---------- появление при прокрутке ---------- */
/* Прячем только когда работает JS — без скрипта контент виден сразу. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav, .header__phone { display: none; }
  .burger { display: inline-grid; }
  .header__actions { margin-left: auto; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .process::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 74px; }
  .hero__grid, .diy__grid, .split, .product, .cart { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { max-width: 420px; }
  .hero__tag--1 { left: 0; }
  .hero__tag--2 { right: 0; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .occasions { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { grid-auto-flow: column; grid-auto-columns: 72px; order: 2; overflow-x: auto; }
  .gallery__thumb { width: 72px; height: 72px; }
  .summary { position: static; }
  .topbar__links { display: none; }
  .topbar { font-size: 12px; }
  .topbar__msg { min-width: 0; padding: 6px 0; line-height: 1.35; }
  .topbar__msg .rosette { flex: none; }
}
@media (max-width: 640px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__title { font-size: 18px; }
  .card__price { font-size: 16px; }
  .card__add { opacity: 1; transform: scale(.85); width: 42px; height: 42px; right: 8px; bottom: 8px; }
  .process { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 80px 1fr; }
  .cart-line img { width: 80px; height: 80px; }
  .cart-line .qty, .cart-line__sum { grid-column: 2; justify-self: start; }
  .logo__sub { display: none; }
  .logo__name { font-size: 22px; }
  .logo__mark { width: 54px; height: 63px; }
  /* Шапка телефона: логотип и иконки в одну строку даже на 360 px */
  .header__row { gap: 8px; }
  .header__actions { gap: 0; margin-left: auto; }
  .header__actions .icon-btn { width: 40px; height: 40px; }
  .header__actions .icon-btn--staff { display: none; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero__facts li { flex-direction: column; text-align: center; gap: 8px; font-size: 12px; }
  .hero__facts strong { font-size: 13px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .specs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { padding: 8px 20px; white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; }
}

@media (max-width: 370px) {
  .header__actions .icon-btn--search { display: none; }
  .logo__name { font-size: 21px; }
}

/* Списки в описании товара */
.desc-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.desc-list li { position: relative; padding-left: 26px; line-height: 1.5; }
.desc-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 9px; height: 9px; border-radius: 2px; background: var(--honey); transform: rotate(45deg); }

/* ---------- Знак мастерской (главная) ---------- */
.brand-sign__row { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.brand-sign__board {
  position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; border-radius: 30px; display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 240, 220, .35), transparent 60%),
    repeating-linear-gradient(91deg, rgba(122, 66, 32, .07) 0 1.5px, transparent 1.5px 7px),
    repeating-linear-gradient(89deg, rgba(122, 66, 32, .05) 0 3px, transparent 3px 19px),
    linear-gradient(165deg, #e9c095, #d9a571 55%, #cc935d);
  box-shadow: inset 0 0 0 1px rgba(90, 50, 20, .14), inset 0 -10px 24px rgba(120, 66, 30, .18), var(--shadow-lg);
  transform: rotate(-3deg); transition: transform .8s var(--ease);
}
.brand-sign__board:hover { transform: rotate(0deg) scale(1.02); }
.brand-sign__board::after { content: "выжжено на доске"; position: absolute; bottom: 16px; right: 22px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(74, 42, 20, .45); }
.brand-sign__svg { width: 64%; height: auto; color: #4a2814; --logo-hand: #4a2814; --logo-leaf: #4a2814; opacity: .9; mix-blend-mode: multiply; filter: drop-shadow(0 0 .7px rgba(74, 40, 20, .7)); }
.brand-sign__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.brand-sign__list li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; }
.brand-sign__ico { width: 64px; height: 64px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--ink); }
.brand-sign__ico svg { width: 46px; height: 46px; }
.brand-sign__ico .brand-sign__rf { width: 34px; height: 40px; }
.brand-sign__list b { display: block; font-size: 17px; color: var(--choco); margin-bottom: 3px; }
.brand-sign__list p { margin: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 820px) {
  .brand-sign__row { grid-template-columns: 1fr; }
  .brand-sign__board { width: min(78vw, 300px); }
}

/* Ладонь с ростком в подписи над заголовком главной */
.eyebrow .brand-hand { width: 30px; height: 21px; color: var(--ink); }

/* ---------- Первый экран: смена карточек форм ---------- */
.hero-slides { position: absolute; inset: 6%; }
.hero-slide { position: absolute; inset: 0; display: block; text-decoration: none; color: inherit; opacity: 0; pointer-events: none;
  transform: scale(.94) rotate(-3deg); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.hero-slide.is-on { opacity: 1; pointer-events: auto; transform: none; }
.hero-slide__photo { position: absolute; inset: 7%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(148, 83, 42, .08); }
.hero-slide__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 6s linear; }
.hero-slide.is-on .hero-slide__photo img { transform: scale(1.04); }
.hero-slide__print { position: absolute; left: 0; bottom: 14%; width: 30%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--white); box-shadow: var(--shadow); background: var(--flour); transform: translateY(14px); opacity: 0;
  transition: opacity .8s .5s, transform 1s .5s var(--ease); }
.hero-slide__print img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.hero-slide.is-on .hero-slide__print { opacity: 1; transform: none; }
.hero-slide__card { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px;
  min-width: 62%; max-width: 86%; padding: 12px 22px 14px; border-radius: 20px; background: rgba(255, 253, 249, .95); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); text-align: center; }
.hero-slide__name { font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--choco); line-height: 1.15; }
.hero-slide__card b { color: var(--ginger); font-size: 15px; }
.hero-slide__go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hero-slide__go .icon { width: 14px; height: 14px; transition: transform .3s; }
.hero-slide:hover .hero-slide__go .icon { transform: translateX(4px); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: -13%; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--linen-2); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button[aria-selected="true"] { width: 26px; background: var(--ginger); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide__photo img, .hero-slide__print { transition: opacity .3s; transform: none !important; }
}

/* Фирменный знак вместо старой розетки: не крутится, а мягко «дышит» */
.brand-sign-icon { display: inline-block; flex: none; height: auto; }
@keyframes brand-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.94); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .brand-sign-icon { animation: none !important; } }

/* ---------- «Написать нам» ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--linen); box-shadow: var(--shadow-sm); }
.contact-form { display: grid; gap: 16px; }
.contact-form .field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--choco); }
.contact-form input[type=text], .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--linen-2); background: var(--flour); font: 500 16px var(--font-body); color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .err { color: var(--berry); font-weight: 600; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.contact-side h3 { margin-bottom: 10px; }
.contact-side p { margin: 0 0 8px; }
.contact-side .muted { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.contact-done { text-align: center; display: grid; justify-items: center; gap: 10px; }
.contact-done .rosette { width: 90px; height: 104px; color: var(--honey-deep); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- оплата по реквизитам ---------- */
.requisites { max-width: 720px; margin: 0 auto 26px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--white); border: 1.5px solid var(--linen-2); text-align: left; }
.requisites__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.requisites__head b { display: inline-flex; gap: 8px; align-items: center; font-size: 18px; color: var(--choco); }
.requisites__head span { font-size: 24px; font-weight: 800; color: var(--ginger); }
.requisites__grid { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.requisites__qr { width: 180px; height: 180px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--linen); }
.requisites__how { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.requisites dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; font-weight: 700; color: var(--choco); word-break: break-word; }
.requisites__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .requisites__grid { grid-template-columns: 1fr; justify-items: center; } .requisites dl { justify-self: stretch; } }

/* ---------- доставка СДЭК ---------- */
.cdek-city { position: relative; }
.cdek-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 6px); margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1.5px solid var(--linen-2); border-radius: 14px; box-shadow: 0 14px 36px rgba(60, 30, 10, .14); max-height: 280px; overflow: auto; }
.cdek-suggest li { padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 14.5px; line-height: 1.3; }
.cdek-suggest li[aria-selected="true"], .cdek-suggest li:hover { background: #fff7ec; }
.cdek-suggest li small { display: block; color: var(--muted); font-size: 12.5px; }
.cdek-pvz { grid-column: 1 / -1; display: grid; gap: 8px; }
.cdek-pvz select { height: auto; padding: 6px; font-size: 14px; }
.cdek-pvz option { padding: 6px 8px; border-radius: 8px; white-space: normal; }
.cdek-note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); }
.radio-cards .dl-price { margin-left: auto; font-weight: 800; color: var(--ginger); font-size: 14px; white-space: nowrap; }
.radio-cards .dl-price--na { color: var(--muted); font-weight: 600; }
.dcalc { display: grid; gap: 12px; max-width: 560px; }
.dcalc__out { display: grid; gap: 8px; }
.dcalc__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--linen-2); }
.dcalc__row b { color: var(--ginger); white-space: nowrap; }
.dcalc-block { margin-top: 48px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff7ec; border: 1.5px solid var(--linen-2); }
.dcalc-block h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.dcalc-mini { flex: 1; }
.dcalc-mini summary { cursor: pointer; list-style: none; }
.dcalc-mini summary::-webkit-details-marker { display: none; }
.dcalc-mini summary span { color: var(--ginger); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dcalc-mini .dcalc { margin-top: 10px; }
.buy__perks li:has(.dcalc-mini[open]) { align-items: flex-start; }
.field[hidden], .cdek-pvz[hidden], .cdek-note[hidden] { display: none; }
