/* ============================================================
   Sofra Pasuda — лендинг
   ============================================================ */

/* ---------- Шрифты (локально, woff2, вариативные) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  /* палитра */
  --clay:        #C2603F;
  --clay-deep:   #8E3F27;
  --clay-btn:    #AE532D;
  --clay-btn-hi: #96421F;
  --clay-soft:   #E0A184;
  --porcelain:   #F7F3EC;
  --porcelain-hi:#FCFAF6;
  --sand:        #E8DCCB;
  --sand-deep:   #D8C7AE;
  --graphite:    #14151A;
  --graphite-2:  #1C1E25;
  --graphite-3:  #262931;
  --ink:         #2A2C33;
  --ink-2:       #4E515A;
  --ink-3:       #6A6D76;
  --brass:       #C9A227;
  --brass-soft:  #E0C368;
  --sage:        #6E8B74;

  /* поверхности и линии */
  --line:        rgba(42, 44, 51, .12);
  --line-strong: rgba(42, 44, 51, .22);
  --line-light:  rgba(247, 243, 236, .14);
  --on-dark:     var(--porcelain);
  --on-dark-2:   rgba(247, 243, 236, .72);

  /* типографика */
  --font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --fs-display: clamp(2.5rem, 1.40rem + 5.20vw, 5.75rem);
  --fs-h2:      clamp(1.75rem, 1.15rem + 2.60vw, 3.25rem);
  --fs-h3:      clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-lead:    clamp(1.0625rem, 0.99rem + 0.38vw, 1.25rem);
  --fs-body:    clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  /* ритм 4/8 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(64px, 7vw, 128px);
  --header-h: 76px;

  /* формы */
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(42, 44, 51, .05);
  --shadow-md: 0 12px 32px -12px rgba(64, 40, 26, .18);
  --shadow-lg: 0 32px 64px -28px rgba(64, 40, 26, .32);
  --ease: cubic-bezier(.22, .68, .28, 1);
}

@media (max-width: 720px) { :root { --header-h: 62px; } }

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums lining-nums;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.stage-track :focus-visible, .section--delivery :focus-visible, .footer :focus-visible {
  outline-color: var(--brass-soft);
}
::selection { background: var(--clay); color: #fff; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--graphite); color: var(--porcelain);
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* якоря не прячутся под фиксированной шапкой */
:target, section[id], div[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Типографские примитивы ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-deep);
}
.eyebrow--light { color: var(--brass-soft); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.section__title--light { color: var(--porcelain); }
.section__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.section__lead--tight { max-width: 40ch; }

.section { padding-block: var(--section-y); position: relative; }
.section__head { display: grid; gap: var(--s-4); margin-bottom: clamp(40px, 5vw, 72px); }
.section__head--split {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
.section__head--center { justify-items: center; text-align: center; }
.section__head--center .section__lead { text-align: center; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: var(--s-8); }
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  position: relative;
  transition: background-color .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-bg: var(--clay-btn); --btn-fg: #fff; --btn-bd: var(--clay-btn);
  box-shadow: 0 10px 24px -12px rgba(142, 63, 39, .8);
}
.btn--primary:hover { --btn-bg: var(--clay-btn-hi); --btn-bd: var(--clay-btn-hi); }
.btn--ghost {
  --btn-fg: var(--porcelain);
  --btn-bd: rgba(247, 243, 236, .34);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { --btn-bg: rgba(247, 243, 236, .1); --btn-bd: rgba(247, 243, 236, .6); }
.btn--outline { --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--porcelain); --btn-bd: var(--ink); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: var(--fs-micro); letter-spacing: .04em; }
.btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  color: var(--porcelain);
  transition: background-color .4s var(--ease), color .4s var(--ease),
              box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 21, 26, .78);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(247, 243, 236, .08);
}
.site-header.is-light {
  color: var(--ink);
  background: rgba(252, 250, 246, .86);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 12px 28px -26px rgba(42, 44, 51, .5);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: var(--s-5);
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: var(--s-3); flex: none; }
.logo__mark {
  width: 38px; height: 38px; flex: none;
  color: var(--brass);
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(30deg); }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.24rem; font-weight: 600; letter-spacing: .01em;
}
.logo__sub {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  opacity: .62; margin-top: 3px;
}

.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.nav__link {
  position: relative;
  font-size: var(--fs-small); font-weight: 500;
  padding: 8px 2px;
  opacity: .82;
  transition: opacity .25s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { opacity: 1; }
.nav__foot { display: none; }

.header__actions { display: flex; align-items: center; gap: var(--s-4); flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-small); font-weight: 600; white-space: nowrap;
  padding: 8px 4px;
}
.header__phone svg { width: 18px; height: 18px; opacity: .7; }
.header__phone:hover { color: var(--brass-soft); }
.site-header.is-light .header__phone:hover { color: var(--clay-deep); }

.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 20px; height: 1.6px; border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__cta { display: none; }
}
@media (max-width: 960px) {
  .burger { display: flex; }
  .header__phone span { display: none; }
  .header__phone svg { width: 20px; height: 20px; opacity: 1; }
  .header__phone { min-width: 44px; min-height: 44px; justify-content: center; }
  .nav {
    position: fixed; inset: 0;
    background: var(--graphite);
    color: var(--porcelain);
    padding: calc(var(--header-h) + 32px) clamp(20px, 6vw, 48px) 40px;
    display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .5s var(--ease), visibility .5s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line-light); }
  .nav__link {
    display: block; padding: 18px 0;
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; opacity: 1;
  }
  .nav__link::after { display: none; }
  .nav__foot { display: grid; gap: var(--s-4); }
  .nav__phone {
    font-family: var(--font-display); font-size: 1.5rem; text-align: center;
    padding: 10px; color: var(--brass-soft);
  }
  body.is-locked { overflow: hidden; }
}
@media (max-width: 400px) {
  .logo__sub { display: none; }
  .logo__name { font-size: 1.1rem; }
  .logo__mark { width: 32px; height: 32px; }
}

/* ============================================================
   3D-СЦЕНА + ПОВЕСТВОВАТЕЛЬНЫЕ ПАНЕЛИ
   ============================================================ */
.stage-track {
  position: relative;
  background: var(--graphite);
  color: var(--on-dark);
}
.stage {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 62% 34%, #2E2A26 0%, #1A1B21 46%, var(--graphite) 100%);
}
.stage__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.stage.is-3d .stage__canvas { opacity: 1; }
.stage__poster {
  position: absolute; inset: 0;
  transition: opacity 1s var(--ease);
}
.stage__poster svg { width: 100%; height: 100%; object-fit: cover; }
.stage.is-3d .stage__poster { opacity: 0; }
.stage__scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 120%, rgba(194, 96, 63, .16), transparent 70%),
    linear-gradient(to bottom, rgba(20, 21, 26, .55) 0%, transparent 22%, transparent 62%, rgba(20, 21, 26, .82) 100%);
}
.stage__note {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(247, 243, 236, .5);
  margin: 0; text-align: center; padding-inline: 16px;
}

.stage-panels { position: relative; z-index: 2; margin-top: -100svh; }
.panel {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 48px) 96px;
}
.panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.panel__inner { width: 100%; display: flex; }

/* --- Hero --- */
.panel--hero::before {
  background:
    linear-gradient(96deg, rgba(20, 21, 26, .95) 0%, rgba(20, 21, 26, .88) 30%,
      rgba(20, 21, 26, .5) 52%, rgba(20, 21, 26, .12) 72%, rgba(20, 21, 26, 0) 90%),
    linear-gradient(to top, rgba(20, 21, 26, .8), rgba(20, 21, 26, 0) 42%);
}
/* Содержимое hero идёт колонкой: плашка → заголовок → текст → кнопки → цифры.
   Без flex-direction наследуется row из .panel__inner, и блок уезжает за экран. */
.panel--hero .panel__inner {
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-top: var(--s-5);
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--clay-soft);
}
.hero__lead {
  margin-top: var(--s-5);
  font-size: var(--fs-lead);
  color: var(--on-dark-2);
  max-width: 48ch;
}
.hero__cta {
  margin-top: var(--s-7);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.hero__stats {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 620px;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-light);
}
.hero__stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 500; line-height: 1.1;
  color: var(--porcelain);
}
.hero__stat dd {
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  color: var(--on-dark-2);
  max-width: 22ch;
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid rgba(247, 243, 236, .3);
  display: grid; place-items: start center; padding-top: 8px;
}
.scroll-hint span {
  width: 3px; height: 8px; border-radius: 2px; background: var(--brass-soft);
  animation: scrollDot 2s var(--ease) infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(14px); opacity: .2; }
}

/* --- Story-панели --- */
.panel--right .panel__inner { justify-content: flex-end; }
.panel--left  .panel__inner { justify-content: flex-start; }
.panel--right::before {
  background: linear-gradient(264deg, rgba(20, 21, 26, .9) 0%, rgba(20, 21, 26, .5) 40%, rgba(20, 21, 26, 0) 72%);
}
.panel--left::before {
  background: linear-gradient(96deg, rgba(20, 21, 26, .9) 0%, rgba(20, 21, 26, .5) 40%, rgba(20, 21, 26, 0) 72%);
}
.story__card {
  max-width: 460px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: rgba(20, 21, 26, .68);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.story__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -.02em;
  margin-top: var(--s-4);
}
.story__text { margin-top: var(--s-4); color: var(--on-dark-2); }
.story__list {
  margin-top: var(--s-5); padding-top: var(--s-5);
  border-top: 1px solid var(--line-light);
  display: grid; gap: var(--s-3);
  font-size: var(--fs-small);
}
.story__list li { position: relative; padding-left: 22px; color: var(--porcelain); }
.story__list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--brass);
}

@media (max-width: 900px) {
  .panel { padding-block: calc(var(--header-h) + 32px) 72px; }
  .panel--hero::before {
    background:
      linear-gradient(to bottom, rgba(20, 21, 26, .55) 0%, rgba(20, 21, 26, .28) 28%,
        rgba(20, 21, 26, .82) 58%, rgba(20, 21, 26, .95) 100%);
  }
  /* колонка прижимается к низу экрана, а не вправо */
  .panel--hero .panel__inner { justify-content: flex-end; align-items: flex-start; }
  .panel--hero { align-items: flex-end; }
  .hero__title { max-width: 100%; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { width: 100%; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
  .panel--right .panel__inner, .panel--left .panel__inner { justify-content: center; }
  .panel--right::before, .panel--left::before {
    background: linear-gradient(to bottom, rgba(20, 21, 26, .5) 0%, rgba(20, 21, 26, .2) 22%, rgba(20, 21, 26, .88) 62%);
  }
  .story__card { max-width: 560px; margin-top: auto; }
  .panel--story { align-items: flex-end; }
  .scroll-hint { display: none; }
}

/* ============================================================
   БЕГУЩАЯ СТРОКА
   ============================================================ */
.ticker {
  background: var(--graphite);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  padding-block: var(--s-4);
  color: rgba(247, 243, 236, .58);
}
.ticker__row {
  display: flex; align-items: center; gap: var(--s-5);
  width: max-content;
  font-size: var(--fs-micro);
  letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  animation: tickerMove 46s linear infinite;
}
.ticker__row i { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); opacity: .8; flex: none; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   КАТЕГОРИИ
   ============================================================ */
.section--categories { background: var(--porcelain); }
.cat-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.cat-card__link {
  display: grid; gap: var(--s-5);
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background: var(--porcelain-hi);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
.cat-card__link:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 96, 63, .34);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.cat-card__art {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--sand) 0%, #F2E9DB 100%);
  color: var(--clay-deep);
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.cat-card__art svg { width: 46px; height: 46px; }
.cat-card__link:hover .cat-card__art { transform: rotate(-6deg) scale(1.05); }
.cat-card__body { display: grid; gap: var(--s-2); align-content: start; }
.cat-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3); font-weight: 500; line-height: 1.2;
}
.cat-card__note { font-size: var(--fs-small); color: var(--ink-3); }
.cat-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.cat-card__count {
  font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.cat-card__arrow {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: transform .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.cat-card__arrow svg { width: 17px; height: 17px; }
.cat-card__link:hover .cat-card__arrow {
  background: var(--clay-btn); border-color: var(--clay-btn); color: #fff;
  transform: translateX(4px);
}

/* ============================================================
   ВИТРИНА
   ============================================================ */
.section--catalog {
  background: linear-gradient(to bottom, var(--porcelain) 0%, #F2ECE1 100%);
}
.product-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.product__inner {
  height: 100%;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--porcelain-hi);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .42s var(--ease), box-shadow .42s var(--ease), border-color .42s var(--ease);
}
.product__inner:hover, .product:focus-within .product__inner {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(194, 96, 63, .3);
}
.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(155deg, #F3EDE2 0%, #E4D8C4 100%);
}
.product__media--pot     { background: linear-gradient(155deg, #EFECE6 0%, #D7D3CA 100%); }
.product__media--teapot  { background: linear-gradient(155deg, #F7EEE4 0%, #E9D5BF 100%); }
.product__media--glass   { background: linear-gradient(155deg, #EEF2F0 0%, #DAE3DD 100%); }
.product__media--cutlery { background: linear-gradient(155deg, #F3F0E9 0%, #DED9CD 100%); }
.product__media--gift    { background: linear-gradient(155deg, #F8E9E1 0%, #E7CCBA 100%); }
.product__media::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(65% 55% at 50% 42%, rgba(255, 255, 255, .55), transparent 70%);
  pointer-events: none;
}
.product__art {
  display: block; width: 52%; max-width: 150px;
  color: rgba(142, 63, 39, .5);
  transition: transform .5s var(--ease);
}
.product__inner:hover .product__art { transform: scale(1.07) rotate(-3deg); }
.product__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.product__inner:hover .product__img { transform: scale(1.05); }
.product__tag {
  position: absolute; z-index: 1; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(252, 250, 246, .84);
  backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid rgba(42, 44, 51, .08);
}
.product__body {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-5);
  flex: 1;
}
.product__name {
  font-size: 1rem; font-weight: 600; line-height: 1.4;
  letter-spacing: -.005em;
}
.product__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  flex-wrap: wrap;
}
.product__price {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap;
}
.product__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-small); font-weight: 600;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.product__btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.product__btn:hover {
  background: var(--clay-btn); border-color: var(--clay-btn); color: #fff;
}
.product__btn:hover svg { transform: translateX(3px); }
.catalog__note {
  margin-top: clamp(32px, 4vw, 56px);
  text-align: center;
  color: var(--ink-2);
  font-size: var(--fs-lead);
}
.catalog__note a {
  color: var(--clay-deep); font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(142, 63, 39, .4);
  transition: box-shadow .3s var(--ease);
}
.catalog__note a:hover { box-shadow: inset 0 -2px 0 var(--clay-deep); }

/* ============================================================
   ПОЧЕМУ МЫ
   ============================================================ */
.section--why { background: var(--sand); }
.why__grid { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 1000px) {
  .why__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .why__intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.why__intro { display: grid; gap: var(--s-4); justify-items: start; }
.why__intro .btn { margin-top: var(--s-3); }
.why__list {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.why__item {
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: rgba(252, 250, 246, .7);
  border: 1px solid rgba(42, 44, 51, .08);
  transition: transform .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.why__item:hover {
  transform: translateY(-4px);
  background: var(--porcelain-hi);
  box-shadow: var(--shadow-md);
}
.why__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem; line-height: 1;
  color: var(--clay);
  opacity: .85;
}
.why__title {
  margin-top: var(--s-4);
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em;
}
.why__text { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--ink-2); }

/* ============================================================
   ДОСТАВКА
   ============================================================ */
.section--delivery {
  background:
    radial-gradient(90% 60% at 12% 0%, rgba(194, 96, 63, .16), transparent 62%),
    radial-gradient(70% 50% at 92% 100%, rgba(110, 139, 116, .14), transparent 60%),
    var(--graphite);
  color: var(--porcelain);
}
.steps {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  counter-reset: step;
}
.step { padding-top: var(--s-5); border-top: 1px solid var(--line-light); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--brass); line-height: 1;
}
.step__title { margin-top: var(--s-4); font-size: var(--fs-h3); font-weight: 600; }
.step__text { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--on-dark-2); }

.delivery__grid {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.delivery__card {
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-md);
  background: rgba(247, 243, 236, .05);
  border: 1px solid var(--line-light);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.delivery__card:hover {
  background: rgba(247, 243, 236, .09);
  border-color: rgba(247, 243, 236, .26);
  transform: translateY(-3px);
}
.delivery__card--accent {
  background: rgba(194, 96, 63, .16);
  border-color: rgba(224, 161, 132, .34);
}
.delivery__city { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.delivery__term { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--on-dark-2); }
.delivery__price {
  margin-top: var(--s-3); font-size: var(--fs-small); font-weight: 600; color: var(--brass-soft);
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.section--reviews { background: var(--porcelain); }
.review-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.review__inner {
  height: 100%;
  display: flex; flex-direction: column; gap: var(--s-5);
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: var(--r-lg);
  background: var(--porcelain-hi);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.review__inner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review__stars { display: inline-flex; gap: 3px; color: var(--brass); }
.review__stars svg { width: 17px; height: 17px; }
.review__text { margin: 0; }
.review__text p {
  font-family: var(--font-display);
  font-size: 1.125rem; line-height: 1.55; font-weight: 400;
  color: var(--ink);
}
.review__author {
  margin-top: auto;
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.review__avatar {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sand), var(--sand-deep));
  color: var(--clay-deep);
  font-weight: 700; font-size: 1.05rem;
}
.review__name { display: block; font-weight: 600; font-size: var(--fs-small); }
.review__city { display: block; font-size: var(--fs-micro); color: var(--ink-3); }

/* ============================================================
   ЗАЯВКА
   ============================================================ */
.section--lead {
  background:
    radial-gradient(70% 60% at 90% 10%, rgba(194, 96, 63, .12), transparent 62%),
    linear-gradient(to bottom, #F2ECE1 0%, var(--sand) 100%);
}
.lead__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) {
  .lead__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(48px, 6vw, 96px); }
}
.lead__intro { display: grid; gap: var(--s-4); justify-items: start; }
.lead__facts {
  margin-top: var(--s-3);
  display: grid; gap: var(--s-3);
  font-size: var(--fs-small); color: var(--ink-2);
}
.lead__facts li { position: relative; padding-left: 26px; }
.lead__facts li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--clay); opacity: .85;
}
.lead__facts strong { color: var(--ink); font-weight: 700; }
.lead__contacts { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-3); }
.lead__contact {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 500;
  color: var(--clay-deep);
  box-shadow: inset 0 -1px 0 rgba(142, 63, 39, .3);
  padding-bottom: 2px;
  transition: box-shadow .3s var(--ease);
}
.lead__contact:hover { box-shadow: inset 0 -2px 0 var(--clay-deep); }
.lead__contact--muted { font-size: 1.125rem; color: var(--ink-2); box-shadow: inset 0 -1px 0 rgba(78, 81, 90, .3); }
.lead__contact--muted:hover { box-shadow: inset 0 -2px 0 var(--ink-2); }

.lead__formwrap {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: var(--porcelain-hi);
  border: 1px solid rgba(42, 44, 51, .08);
  box-shadow: var(--shadow-lg);
}
.lead-form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-small); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field__input::placeholder { color: #9A9CA3; }
.field__input:hover { border-color: rgba(42, 44, 51, .34); }
.field__input:focus {
  outline: none;
  border-color: var(--clay-btn);
  box-shadow: 0 0 0 3px rgba(174, 83, 45, .16);
}
.field__input:focus-visible { outline: none; }
.field__input--area { resize: vertical; min-height: 112px; line-height: 1.55; }
.field.is-invalid .field__input { border-color: #B4342B; background: #FFF7F6; }
.field__error {
  font-size: var(--fs-micro); color: #9C2C24; font-weight: 600;
  min-height: 0; opacity: 0; transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.field.is-invalid .field__error { opacity: 1; transform: none; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spinner {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  display: none;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lead-form.is-sending .spinner { display: block; }
.lead-form.is-sending [data-submit] { pointer-events: none; opacity: .8; }

.lead-form__status {
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0;
  min-height: 0;
  transition: min-height .2s var(--ease);
}
.lead-form__status:not(:empty) {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(110, 139, 116, .14);
  border: 1px solid rgba(110, 139, 116, .34);
  color: #3F5A46;
}
.lead-form__status.is-error:not(:empty) {
  background: #FDF0EE;
  border-color: rgba(156, 44, 36, .3);
  color: #9C2C24;
}
.lead-form__policy { font-size: var(--fs-micro); color: var(--ink-3); line-height: 1.5; }

.lead-form.is-done .field,
.lead-form.is-done [data-submit],
.lead-form.is-done .lead-form__policy { display: none; }
.lead-form__done {
  display: grid; gap: var(--s-3); justify-items: start;
  padding: var(--s-2) 0;
}
.lead-form__done:focus { outline: none; }
.lead-form__check {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(110, 139, 116, .16);
  color: var(--sage);
  margin-bottom: var(--s-2);
}
.lead-form__check svg { width: 28px; height: 28px; }
.lead-form__done-title {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 500; line-height: 1.15;
}
.lead-form__done-text { font-size: var(--fs-small); color: var(--ink-2); }
.lead-form__done .btn { margin-top: var(--s-3); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer {
  background: var(--graphite);
  color: var(--porcelain);
  padding-block: clamp(56px, 6vw, 96px) var(--s-6);
}
.footer__grid {
  display: grid; gap: clamp(32px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
}
.logo--footer .logo__mark { color: var(--brass); }
.footer__about {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
  color: var(--on-dark-2);
  max-width: 34ch;
}
.footer__social { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.social {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover {
  background: var(--brass); border-color: var(--brass); color: var(--graphite);
  transform: translateY(-2px);
}
.footer__title {
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: var(--s-4);
}
.footer__list { display: grid; gap: 2px; font-size: var(--fs-small); }
.footer__list a {
  display: inline-block; padding: 7px 0;
  color: var(--on-dark-2);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer__list a:hover { color: var(--porcelain); transform: translateX(3px); }
.footer__list--plain li { padding: 7px 0; color: var(--on-dark-2); }
.footer__phone {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--porcelain) !important;
}
.map {
  position: relative;
  margin-top: var(--s-4);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-light);
  aspect-ratio: 16 / 9;
}
.map__svg { width: 100%; height: 100%; }
.map__pin {
  position: absolute; left: 12px; bottom: 12px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(20, 21, 26, .82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-light);
  font-size: var(--fs-micro); font-weight: 600;
}
.footer__bar {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6);
  font-size: var(--fs-micro);
  color: rgba(247, 243, 236, .55);
}
.footer__legal { flex: 1 1 auto; }
.footer__staff {
  color: rgba(247, 243, 236, .38);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.footer__staff:hover { color: var(--on-dark-2); }

/* ============================================================
   ПОЯВЛЕНИЕ СЕКЦИЙ
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }

/* ============================================================
   ДОСТУПНОСТЬ / СНИЖЕННАЯ АНИМАЦИЯ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ticker__row { animation: none; }
  .stage { position: static; height: auto; min-height: 0; }
  .stage__poster { position: relative; height: min(72svh, 520px); }
  .stage-panels { margin-top: 0; }
  .panel { min-height: 0; padding-block: 72px; }
  .panel--hero { padding-top: calc(var(--header-h) + 40px); }
  .btn:hover, .cat-card__link:hover, .product__inner:hover, .why__item:hover, .review__inner:hover { transform: none; }
}

/* Печать */
@media print {
  .site-header, .stage, .ticker, .scroll-hint, .lead__formwrap { display: none; }
  body { background: #fff; color: #000; }
}
