/* ==========================================================================
   caketimes — редакционный дизайн: тёплая бумага, крупная типографика, арка
   ========================================================================== */

:root {
  --paper: #f4eee4;
  --paper-2: #ece3d4;
  --cream: #fff9f0;
  --ink: #171210;
  --ink-2: #241c17;
  --muted: #7d6b5d;
  --line: #ddd0be;
  --line-2: #c8b7a1;
  --accent: #e4472b;
  --accent-deep: #b93a1f;
  --accent-soft: #f8d9ca;
  --sage: #c9d2ad;

  --font-display: "Unbounded", "Onest", "Arial Black", sans-serif;
  --font-heading: "Prata", "Cormorant Garamond", "Georgia", serif;
  --font-hero: var(--font-heading);
  --font-body: "Onest", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --pill: 999px;

  --shadow: 0 30px 70px -50px rgba(23, 18, 16, .65);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
}
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -.025em;
}
p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; }
input, select, textarea { accent-color: var(--accent); }
::selection { background: var(--accent); color: var(--cream); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--ink); color: var(--cream); font-size: 14px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Кнопки и чипсы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px;
  border: 1px solid transparent; border-radius: var(--pill);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:focus-visible { outline: 3px solid rgba(228, 71, 43, .35); outline-offset: 3px; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--cream); }
.btn--ghost-light { border-color: rgba(255, 249, 240, .45); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(255, 249, 240, .12); border-color: var(--cream); }
.btn--card { padding: 10px 15px; background: var(--ink); color: var(--cream); font-size: 12.5px; }
.btn--card:hover { background: var(--accent); }
.btn--sm { padding: 11px 16px; font-size: 12.5px; }
.btn--block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.round-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Хедер ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  padding: 14px 0;
  transition: padding .3s var(--ease);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 7px 7px 7px 18px;
  background: rgba(255, 249, 240, .82);
  border: 1px solid rgba(221, 208, 190, .85);
  border-radius: var(--pill);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px -34px rgba(23, 18, 16, .7);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-stuck { padding: 8px 0; }
.site-header.is-stuck .header__bar {
  background: rgba(255, 249, 240, .96);
  box-shadow: 0 18px 44px -30px rgba(23, 18, 16, .55);
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--cream);
}
.logo__text {
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  letter-spacing: -.03em;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 14px; border-radius: var(--pill);
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.nav a:hover, .nav a.is-active { background: var(--paper-2); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__phone { padding: 0 10px; font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.header__phone:hover { color: var(--accent); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px;
  border: 0; border-radius: var(--pill);
  background: var(--ink); color: var(--cream);
  font-size: 13px; font-weight: 500;
  transition: background-color .2s;
}
.cart-btn:hover { background: var(--accent); }
.cart-count {
  display: grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--pill);
  background: var(--accent); color: var(--cream);
  font-size: 10.5px; font-weight: 700;
}
.burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 15px; height: 1.8px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger.is-active span:nth-child(1) { transform: translateY(3.4px) rotate(45deg); }
.burger.is-active span:nth-child(2) { transform: translateY(-3.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 34px 0 0; overflow: hidden; }
.hero__mesh {
  position: absolute; z-index: 0;
  inset: -16% -8% -8%;
  pointer-events: none;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.hero__mesh-layer {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 55% at 10% 20%, rgba(228, 71, 43, .38), transparent 72%),
    radial-gradient(44% 48% at 82% 4%, rgba(211, 164, 104, .52), transparent 74%),
    radial-gradient(58% 62% at 100% 72%, rgba(174, 196, 148, .64), transparent 76%),
    radial-gradient(48% 52% at 56% 102%, rgba(228, 112, 78, .18), transparent 72%),
    radial-gradient(52% 56% at 32% 92%, rgba(255, 249, 240, .92), transparent 70%);
  animation: heroMesh 26s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__mesh-layer::after {
  content: ""; position: absolute; inset: 0;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  opacity: .22;
  mix-blend-mode: multiply;
}
.hero__mesh-light {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 42%), rgba(255, 243, 224, .62), rgba(255, 243, 224, 0) 34%);
  mix-blend-mode: soft-light;
  opacity: .9;
}
@keyframes heroMesh {
  0% { transform: translate3d(-1.2%, -1%, 0) scale(1.02); }
  50% { transform: translate3d(1.4%, 1.4%, 0) scale(1.06); }
  100% { transform: translate3d(-.6%, 2%, 0) scale(1.03); }
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center; gap: clamp(28px, 4vw, 64px);
  padding-bottom: 56px;
}
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 26px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.tag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.hero__accent { color: var(--accent); }
.hero__lead {
  max-width: 42ch; margin-top: 24px;
  color: var(--muted); font-size: 15.5px; line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero .btn--primary { background: var(--accent); color: var(--cream); padding-inline: 28px; }
.hero .btn--primary:hover { background: var(--ink); }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 28px; justify-content: start;
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; letter-spacing: -.04em;
  margin-bottom: 3px;
}
.hero__stats span { font-size: 11.5px; color: var(--muted); }

.hero__stage { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.hero__arch {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(120% 80% at 30% 8%, rgba(255, 246, 236, .9), rgba(255, 246, 236, 0) 55%),
    linear-gradient(165deg, #f7d4c0 0%, #efb79b 52%, #e59a7a 100%);
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 249, 240, .35);
}
.hero__arch::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(255, 249, 240, .28);
  border-radius: inherit;
  pointer-events: none;
}
.hero__art {
  position: absolute; inset: 0 -3% 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero__art svg { width: 100%; height: auto; }
.hero__spin {
  position: absolute; top: 4%; right: -3%;
  width: 112px; height: 112px;
  animation: spin 26s linear infinite;
  filter: drop-shadow(0 18px 26px rgba(23, 18, 16, .18));
}
.hero__spin-text {
  fill: var(--paper); font-family: var(--font-body); font-size: 9.2px;
  font-weight: 500; letter-spacing: 2.2px; text-transform: uppercase;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__chip {
  position: absolute; left: -3%; bottom: 5%;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 44px -28px rgba(23, 18, 16, .55);
}
.hero__chip span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__chip strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -.04em; }

.ticker {
  position: relative; z-index: 1;
  background: var(--ink); color: var(--paper);
  padding: 15px 0;
  overflow: hidden;
}
.ticker__viewport {
  overflow: hidden;
  --fade: 150px;
  --fade-soft: 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent var(--fade-soft), #000 var(--fade), #000 calc(100% - var(--fade)), transparent calc(100% - var(--fade-soft)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, transparent var(--fade-soft), #000 var(--fade), #000 calc(100% - var(--fade)), transparent calc(100% - var(--fade-soft)), transparent 100%);
}
.ticker__track {
  display: flex; align-items: center;
  width: max-content;
  will-change: transform;
  animation: marquee 38s linear infinite;
}
.ticker__track > * { margin-right: 26px; }
.ticker__track span {
  font-family: var(--font-display); font-size: 12px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.ticker__track i { color: var(--accent); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--cream); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 38px;
}
.section__head h2 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); }
.section__aside { max-width: 390px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.section--dark .section__aside { color: rgba(255, 249, 240, .62); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span {
  display: grid; place-items: center;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-size: 9.5px; letter-spacing: 0;
}
.section--dark .eyebrow { color: rgba(255, 249, 240, .55); }
.section--dark .eyebrow span { background: var(--cream); color: var(--ink); }
.section__head--dark h2 { color: var(--cream); }

/* ---------- Каталог ---------- */
.catalog__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.catalog__count { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense; gap: 16px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card.is-hidden { display: none; }
.card__art {
  position: relative;
  padding: 14px 14px 0;
  background: var(--tint, #f2e3d3);
}
.card__art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 28% 0%, rgba(255, 255, 255, .55), transparent 58%);
  pointer-events: none;
}
.card__art svg { position: relative; width: 100%; height: auto; transition: transform .6s var(--ease); }
.card:hover .card__art svg { transform: scale(1.035); }
.card__art img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 18px;
  transition: transform .6s var(--ease);
}
.card:hover .card__art img { transform: scale(1.035); }
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 11px;
  border-radius: var(--pill);
  background: var(--accent); color: var(--cream);
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.card__index {
  position: absolute; top: 15px; right: 16px; z-index: 2;
  font-family: var(--font-display); font-size: 10px; font-weight: 500;
  color: rgba(23, 18, 16, .45);
}
.card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 20px 20px; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__title { font-size: 1.02rem; font-weight: 500; letter-spacing: -.035em; }
.card__price { font-family: var(--font-display); font-size: .92rem; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.card__desc { font-size: 12.6px; line-height: 1.48; color: var(--muted); flex: 1; }
.card__meta {
  font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.card--featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.card--featured .card__art { display: flex; align-items: center; padding: 20px 10px 10px; }
.card--featured .card__art svg { width: 100%; }
.card--featured .card__body { justify-content: center; padding: 30px 30px 28px; gap: 12px; }
.card--featured .card__title { font-size: 1.7rem; letter-spacing: -.05em; }
.card--featured .card__desc { font-size: 14px; line-height: 1.55; flex: 0; }
.card--featured .card__price { font-size: 1.2rem; }
.card--featured .card__meta { margin-top: 4px; }

.catalog__note { margin-top: 28px; font-size: 13px; color: var(--muted); }
.catalog__note a { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* ---------- Конструктор ---------- */
.builder {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.builder__form { display: flex; flex-direction: column; gap: 26px; }
.opt { padding-top: 22px; border-top: 1px solid rgba(255, 249, 240, .16); }
.opt legend {
  display: flex; align-items: center; gap: 10px;
  padding: 0; margin-bottom: 12px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 249, 240, .55);
}
.opt legend span {
  display: grid; place-items: center;
  width: 21px; height: 21px; border-radius: 50%;
  background: rgba(255, 249, 240, .12); color: var(--cream);
  font-size: 9px; letter-spacing: 0;
}
.opt__row { display: flex; flex-wrap: wrap; gap: 7px; }
.opt button {
  padding: 10px 15px;
  border: 1px solid rgba(255, 249, 240, .18);
  border-radius: var(--pill);
  background: transparent;
  color: var(--cream);
  font-size: 13px; font-weight: 400;
  transition: background-color .2s, border-color .2s, color .2s;
}
.opt button i { font-style: normal; font-size: 10.5px; opacity: .5; margin-left: 6px; }
.opt button:hover { border-color: rgba(255, 249, 240, .55); }
.opt button.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--cream);
  box-shadow: 0 12px 24px -16px rgba(228, 71, 43, .9);
}
.opt button.is-active i { opacity: .8; }

.builder__preview {
  position: sticky; top: 96px;
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8);
}
.builder__canvas {
  position: relative;
  padding: 14px 14px 0;
  background: radial-gradient(110% 80% at 30% 0%, #fff7ec, #f1d2ba 62%, #e5b79d);
}
.builder__art svg { display: block; width: 100%; height: auto; }
.builder__3d {
  position: absolute; inset: 0;
  z-index: 1;
}
.builder__3d canvas { display: block; width: 100%; height: 100%; }
.builder__canvas.is-3d #builderPreview { visibility: hidden; }
.builder__3d-hint {
  position: absolute; right: 16px; bottom: 14px; z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 18, 16, .72);
  color: #fff9f0;
  font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  pointer-events: none;
}
.builder__3d-hint[hidden] { display: none; }
.builder__summary { padding: 22px 24px 24px; }
.builder__summary-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.builder__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.builder__list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.builder__list li { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; }
.builder__list span { color: var(--muted); flex-shrink: 0; }
.builder__list strong { font-weight: 500; text-align: right; }
.builder__price {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0 16px; margin-bottom: 14px;
  border-top: 1px solid var(--line);
}
.builder__price span { font-size: 12px; color: var(--muted); }
.builder__price strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: -.045em; }
.builder__hint { margin-top: 12px; font-size: 11px; line-height: 1.45; color: var(--muted); }

/* ---------- Доставка ---------- */
.delivery-list { border-top: 1px solid var(--line); }
.delivery-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center; gap: 24px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.delivery-row:hover { background: var(--cream); padding-left: 18px; padding-right: 18px; }
.delivery-row__num { font-family: var(--font-display); font-size: 11px; color: var(--muted); }
.delivery-row__body h3 { font-size: 1.28rem; font-weight: 500; margin-bottom: 5px; }
.delivery-row__body p { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.delivery-row__price { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: -.03em; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 56px;
}
.steps__item { padding-top: 18px; border-top: 1px solid var(--line); }
.steps__num {
  display: block; margin-bottom: 10px;
  font-family: var(--font-display); font-size: 10px; letter-spacing: .1em; color: var(--accent);
}
.steps__item h3 { font-size: .98rem; font-weight: 500; margin-bottom: 5px; }
.steps__item p { font-size: 12px; line-height: 1.5; color: var(--muted); }
.payment {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.payment strong { color: var(--ink); font-weight: 500; }

/* ---------- Отзывы ---------- */
.reviews__score { display: flex; align-items: center; gap: 16px; }
.reviews__score strong {
  font-family: var(--font-display); font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 500; letter-spacing: -.06em; line-height: .9;
}
.reviews__score span { display: block; font-size: 11px; color: var(--muted); }
.stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 3px; }
.reviews__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 18px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.reviews__nav { display: flex; gap: 8px; }
.reviews {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 2px 2px 10px;
  margin: 0 -2px;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  position: relative;
  flex: 0 0 clamp(300px, 31vw, 396px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 26px 26px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review__stars { color: var(--accent); font-size: 11px; letter-spacing: 2px; margin-bottom: 16px; }
.review__stars .is-empty { color: var(--line-2); }
.review blockquote { font-size: 14px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.review figcaption {
  display: flex; align-items: center; gap: 11px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
}
.review__avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 13px; font-weight: 600; color: var(--cream);
}
.review figcaption strong { display: block; font-size: 12.5px; font-weight: 600; }
.review figcaption span { display: block; font-size: 10.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__head { position: sticky; top: 108px; }
.faq__head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.faq__head > p { margin: 18px 0 24px; max-width: 30ch; font-size: 13.5px; color: var(--muted); }
.faq__head .btn { padding: 12px 20px; font-size: 13px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px;
  align-items: center; gap: 14px;
  padding: 22px 0;
  font-size: 15px; font-weight: 500;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { font-family: var(--font-display); font-size: 9.5px; color: var(--muted); }
.faq__q { transition: color .2s; }
.faq__item summary:hover .faq__q { color: var(--accent); }
.faq__icon {
  position: relative; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color .25s, border-color .25s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 9px; height: 1.4px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .25s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--accent); border-color: var(--accent); }
.faq__item[open] .faq__icon::before { background: var(--cream); transform: translate(-50%, -50%) rotate(45deg); }
.faq__item[open] .faq__icon::after { background: var(--cream); transform: translate(-50%, -50%) rotate(-45deg); }
.faq__answer { padding: 0 0 22px 54px; }
.faq__answer p { font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 62ch; }

/* ---------- Контакты ---------- */
.contact-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius-xl);
  background: var(--accent-deep);
  color: var(--cream);
}
.contact-card::after {
  content: ""; position: absolute; right: -150px; bottom: -210px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(255, 249, 240, .14);
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card .eyebrow { color: rgba(255, 249, 240, .7); }
.contact-card .eyebrow span { background: var(--cream); color: var(--accent-deep); }
.contact-card h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.contact-card__head > p { margin: 18px 0 26px; max-width: 38ch; font-size: 14px; color: rgba(255, 249, 240, .78); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; align-self: center; }
.contact-card__grid div { padding-top: 16px; border-top: 1px solid rgba(255, 249, 240, .22); }
.contact-card__grid span {
  display: block; margin-bottom: 7px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 249, 240, .6);
}
.contact-card__grid p { font-family: var(--font-display); font-size: 1rem; font-weight: 400; line-height: 1.35; letter-spacing: -.02em; }
.contact-card__grid a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Футер ---------- */
.footer {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--cream);
  padding: 64px 0 12px;
}
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.logo--light .logo__mark { background: var(--cream); color: var(--ink); }
.footer__brand p { margin-top: 18px; max-width: 32ch; font-size: 13px; line-height: 1.6; color: rgba(255, 249, 240, .55); }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 6px; }
.footer__col span {
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 249, 240, .4); margin-bottom: 4px;
}
.footer__col a { font-size: 13px; color: rgba(255, 249, 240, .85); }
.footer__col a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 20px; padding-bottom: 20px;
  border-top: 1px solid rgba(255, 249, 240, .14);
  font-size: 10.5px; color: rgba(255, 249, 240, .45);
}

/* ---------- Корзина ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(23, 18, 16, .48);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.overlay.is-active { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(500px, 100%);
  display: flex; flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -40px 0 80px -40px rgba(23, 18, 16, .6);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .42s var(--ease), visibility 0s linear .42s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .42s var(--ease), visibility 0s; }
.drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 28px 18px;
}
.drawer__eyebrow {
  margin-bottom: 4px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.drawer__head h2 { font-size: 1.75rem; font-weight: 500; }
.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--ink); color: var(--cream); }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 28px 26px; overscroll-behavior: contain; }
.panel[hidden] { display: none; }

.cart-empty { text-align: center; padding: 52px 12px 32px; }
.cart-empty__icon {
  display: grid; place-items: center; margin: 0 auto 18px;
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
}
.cart-empty__title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.cart-empty p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.cart-list { display: flex; flex-direction: column; }
.cart-item {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item__art { border-radius: 16px; overflow: hidden; background: #f4e4d4; }
.cart-item__art svg { width: 100%; height: auto; }
.cart-item__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cart-item__meta { margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.cart-item__controls { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.qty-btn {
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; font-size: 14px; line-height: 1; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.qty-btn:hover { border-color: var(--ink); background: var(--paper-2); }
.qty { min-width: 16px; text-align: center; font-size: 12.5px; font-weight: 600; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cart-item__price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.remove-btn {
  width: 24px; height: 24px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%;
  font-size: 17px; line-height: 1; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.remove-btn:hover { color: var(--cream); background: var(--accent); }

.cart-tail { padding-top: 18px; }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; }
.promo__msg { min-height: 17px; margin-top: 6px; font-size: 11px; color: var(--accent); }
.promo__msg.is-ok { color: #2f7a4f; }
.totals { margin: 10px 0 16px; }
.totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 6px 0; }
.totals dt { font-size: 12.5px; color: var(--muted); }
.totals dd { font-size: 12.5px; font-weight: 600; }
.totals__discount dd { color: #2f7a4f; }
.totals__total { margin-top: 10px; padding-top: 14px !important; border-top: 1px solid var(--line); }
.totals__total dt { font-size: 14px; color: var(--ink); }
.totals__total dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; }
.drawer__note { margin-top: 12px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }

.link-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 4px 0 18px; padding: 0;
  background: none; border: 0;
  font-size: 12px; color: var(--muted);
}
.link-back:hover { color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field__label { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.field__label small { font-weight: 400; font-size: 10.5px; color: var(--muted); }
.field__label b { color: var(--accent); }
.field input, .field select, .field textarea, .promo input {
  width: 100%; padding: 12px 14px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 13.5px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 74px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder, .promo input::placeholder { color: #ab9887; }
.field input:focus, .field select:focus, .field textarea:focus, .promo input:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 18, 16, .08);
}
.field.has-error input, .field.has-error select { border-color: #b3261e; }
.field__error { font-size: 10.5px; line-height: 1.35; color: #b3261e; }
.field__error:empty { display: none; }

.field--dark input {
  background: rgba(255, 249, 240, .05);
  border-color: rgba(255, 249, 240, .2);
  color: var(--cream);
}
.field--dark .field__label { color: rgba(255, 249, 240, .75); }
.field--dark input::placeholder { color: rgba(255, 249, 240, .35); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-group { margin: 2px 0 16px; }
.choice-group legend { padding: 0; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; }
.choice-row { display: flex; flex-wrap: wrap; gap: 7px; }
.choice {
  position: relative; flex: 1 1 auto; min-width: 82px;
  display: flex; align-items: center; justify-content: center;
  padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 13px;
  background: #fffdf8;
  font-size: 12.5px; text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice input:checked + span { color: var(--ink); font-weight: 600; }
.choice:has(input:checked) {
  border-color: var(--ink); background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.choice:has(input:focus-visible) { outline: 3px solid rgba(23, 18, 16, .2); outline-offset: 2px; }

.order-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 4px; padding: 16px 0 14px;
  border-top: 1px solid var(--line);
}
.order-total span { font-size: 12.5px; color: var(--muted); }
.order-total strong { font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; letter-spacing: -.04em; }

.panel--success { text-align: center; padding-top: 28px; }
.success__icon {
  display: grid; place-items: center; margin: 0 auto 18px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
}
.panel--success .drawer__eyebrow { margin-bottom: 8px; }
.panel--success h3 { font-size: 1.75rem; margin-bottom: 10px; }
.panel--success > p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.success__info { margin: 22px 0 24px; text-align: left; }
.success__info > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.success__info dt { font-size: 11.5px; color: var(--muted); }
.success__info dd { font-size: 12.5px; font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  max-width: calc(100% - 32px);
  padding: 13px 22px;
  background: var(--ink); color: var(--cream);
  border-radius: var(--pill);
  font-size: 12.5px; font-weight: 500;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .nav a { padding: 9px 11px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-column: span 2; }
  .builder { grid-template-columns: 1fr; }
  .builder__preview { position: static; max-width: 520px; margin: 0 auto; width: 100%; }
  .contact-card { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .header__bar { position: relative; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; font-size: 14px; }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .hero__content { max-width: 640px; }
  .hero__stage { max-width: 460px; }
  .hero h1 { font-size: clamp(3rem, 9vw, 4.6rem); }
  .hero__stats { gap: 20px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section__aside { max-width: 520px; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__head > p { max-width: 46ch; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .delivery-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; }
}

@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .site-header { padding: 10px 0; }
  .header__bar { padding: 6px 6px 6px 12px; gap: 10px; }
  .logo__text { font-size: 14px; }
  .cart-btn { padding: 9px 12px; }
  .cart-btn__label { display: none; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .hero__lead { font-size: 14px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .hero__stats div:nth-child(3) { grid-column: 1 / -1; }
  .hero__spin { width: 84px; height: 84px; right: 0; top: 2%; }
  .hero__spin-text { font-size: 10px; }
  .hero__chip { left: 12px; bottom: 12px; padding: 11px 15px; }
  .hero__chip strong { font-size: 1.1rem; }
  .hero__art { inset: 13% 2% 0; }

  .ticker { padding: 12px 0; }
  .ticker__track span { font-size: 10px; }
  .ticker__track > * { margin-right: 18px; }
  .ticker__viewport { --fade: 64px; --fade-soft: 28px; }

  .section { padding: 56px 0; }
  .section__head h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .section__head { margin-bottom: 26px; }

  .product-grid { grid-template-columns: 1fr; }
  .card--featured { grid-column: span 1; display: flex; }
  .card--featured .card__art { padding: 14px 14px 0; }
  .card--featured .card__body { padding: 18px 20px 20px; gap: 8px; }
  .card--featured .card__title { font-size: 1.5rem; }
  .card--featured .card__desc { font-size: 12.6px; }
  .card--featured .card__price { font-size: .95rem; }
  .card--featured .card__meta { margin-top: 0; }

  .delivery-row { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 20px 4px; }
  .delivery-row__price { grid-column: 2; font-size: .95rem; }
  .delivery-row:hover { padding-left: 4px; padding-right: 4px; }

  .steps { grid-template-columns: 1fr; gap: 18px; }
  .reviews__score { align-items: flex-end; }
  .review { flex-basis: min(82vw, 340px); padding: 22px; }
  .faq__item summary { grid-template-columns: 28px minmax(0, 1fr) 26px; gap: 10px; font-size: 14px; }
  .faq__answer { padding-left: 38px; }

  .contact-card { border-radius: 24px; padding: 26px 22px; }
  .contact-card__grid { gap: 20px 16px; }
  .contact-card__grid p { font-size: .92rem; }

  .footer { padding-top: 48px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .drawer { border-radius: 0; }
  .drawer__head { padding: 20px 20px 14px; }
  .drawer__body { padding: 0 20px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select, .field textarea, .promo input { font-size: 16px; }
  .field__label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__spin, .ticker__track, .hero__mesh-layer { animation: none; }
  .hero__mesh { transform: none !important; transition: none; }
  .hero__mesh-light { display: none; }
}
