/* ============================================================
   keys — кофейня с доставкой
   Дизайн-направление: «Тёплая обжарка»
   Палитра: овсяное молоко + жжёная карамель + эспрессо
   ============================================================ */

:root {
  /* Фон и поверхности — тёплый, не стерильно-кремовый */
  --bg:        #F3EBDD;   /* овсяное молоко с розовато-бежевым подтоном */
  --bg-2:      #ECE0CD;   /* крафт-бумага, чуть темнее */
  --surface:   #FBF6EC;   /* латте, светлая карточка */
  --surface-2: #FFFDF8;   /* почти белый, для всплывающих */
  --line:      #E0D2BC;   /* линии/границы */
  --line-2:    #CDB99A;

  /* Текст — эспрессо */
  --ink:       #2E2018;   /* основной текст, тёмный кофе */
  --ink-soft:  #5C4A3A;   /* вторичный */
  --ink-mute:  #8A7560;   /* приглушённый */

  /* Акценты */
  --caramel:   #C66A2E;   /* жжёная карамель — главный CTA */
  --caramel-d: #A8501C;   /* hover, темнее */
  --copper:    #B8763D;   /* медь — второстепенный */
  --crema:     #E8B873;   /* крема, светлый акцент/подсветки */
  --leaf:      #5E7348;   /* «зелёное зерно» — статусы/успех */
  --berry:     #8E3B4A;   /* ягодная нота — скидки */

  /* Типографика */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'Spline Mono', ui-monospace, monospace;

  /* Раскладка */
  --maxw: 1200px;
  --radius: 18px;
  --radius-s: 12px;
  --radius-xs: 8px;

  --shadow:   0 18px 50px rgba(46,32,24,.14);
  --shadow-s: 0 8px 24px rgba(46,32,24,.10);
  --shadow-cta: 0 10px 26px rgba(198,106,46,.32);

  --ease: cubic-bezier(.33,.1,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--crema); color: var(--ink); }

/* ---------- Утилиты ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { position: relative; padding: 92px 0; }
.section--tight { padding: 60px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--caramel);
  display: inline-block;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
  margin-bottom: 18px;
}
.h-section em { font-style: italic; color: var(--caramel); font-weight: 500; }
.lead {
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 600px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .005em;
  transition: transform .16s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: var(--caramel);
  color: #FFF7EC;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background: var(--caramel-d); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(198,106,46,.42); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--caramel); color: var(--caramel); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,235,221,.86);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  white-space: nowrap;
}
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--caramel);
  display: grid; place-items: center;
  flex: none;
  box-shadow: var(--shadow-cta);
  position: relative;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand__name b { color: var(--caramel); font-weight: 600; }

.nav__links { display: flex; gap: 4px; margin-left: 10px; }
.nav__links a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  transition: color .18s, background .18s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }
.nav__links a.is-active { color: var(--caramel); }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: relative;
  height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .2s, transform .15s;
}
.cart-btn:hover { border-color: var(--caramel); transform: translateY(-2px); }
.cart-btn svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; }
.cart-btn__sum { font-variant-numeric: tabular-nums; }
.cart-count {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 21px; height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--caramel);
  color: #FFF7EC;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  display: grid; place-items: center;
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.cart-count.show { transform: scale(1); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 24px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--caramel); background: var(--bg-2); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--leaf);
  background: rgba(94,115,72,.10);
  border: 1px solid rgba(94,115,72,.26);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,115,72,.5); }
  70% { box-shadow: 0 0 0 8px rgba(94,115,72,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,115,72,0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.025em;
  font-optical-sizing: auto;
  margin-bottom: 24px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--caramel); font-weight: 500; }
.hero__text { color: var(--ink-soft); font-size: 19px; max-width: 460px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__assure {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft);
}
.hero__assure span { display: inline-flex; align-items: center; gap: 8px; }
.hero__assure svg { width: 17px; height: 17px; stroke: var(--leaf); fill: none; flex: none; }

/* зёрна-атмосфера на фоне hero */
.hero__beans { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5; }
.hero__beans span {
  position: absolute;
  width: 26px; height: 36px;
  border-radius: 50% 50% 48% 48%;
  background: var(--copper);
  opacity: .10;
}
.hero__beans span::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 46%, var(--bg) 47%, var(--bg) 53%, transparent 54%);
  transform: rotate(18deg);
}
.hero__grid, .hero .wrap { position: relative; z-index: 1; }

/* signature: чек-заказ */
.receipt {
  background: var(--surface-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  font-family: var(--font-mono);
  max-width: 380px;
  margin-inline: auto;
  padding: 0 0 8px;
  --notch: 13px;
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: var(--notch);
  background-image: radial-gradient(circle at var(--notch) center, transparent var(--notch), var(--surface-2) var(--notch));
  background-size: calc(var(--notch) * 2) 100%;
  background-position: 0 0;
}
.receipt__head {
  padding: 24px 26px 18px;
  border-bottom: 1.5px dashed var(--line-2);
  text-align: center;
}
.receipt__logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.receipt__logo b { color: var(--caramel); }
.receipt__sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
.receipt__body { padding: 18px 26px; }
.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 7px 0;
  color: var(--ink-soft);
  animation: rowin .4s var(--ease);
}
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; } }
.receipt__row .q { color: var(--caramel); }
.receipt__row b { color: var(--ink); font-weight: 500; }
.receipt__empty { text-align: center; color: var(--ink-mute); font-size: 13px; padding: 14px 0; }
.receipt__divider { border-top: 1.5px dashed var(--line-2); margin: 12px 0; }
.receipt__total {
  display: flex;
  justify-content: space-between;
  padding: 4px 26px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.receipt__total .val { color: var(--caramel); }
.receipt__progress { padding: 6px 26px 16px; }
.receipt__bar {
  height: 7px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.receipt__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--copper), var(--caramel));
  border-radius: 999px;
  transition: width .5s var(--ease);
}
.receipt__hint { font-size: 11.5px; color: var(--ink-mute); text-align: center; }
.receipt__hint b { color: var(--leaf); }
.receipt__cta { padding: 4px 22px 0; }
.receipt__stamp {
  position: absolute;
  top: 88px; right: 18px;
  width: 78px; height: 78px;
  border: 2px solid var(--berry);
  color: var(--berry);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-14deg);
  opacity: .42;
  font-weight: 600;
}

/* ============================================================
   Лента-маркетка
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  max-width: 100%;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: scroll-x 34s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  padding: 16px 0;
  will-change: transform;
}
.marquee__track span { display: inline-flex; align-items: center; }
.marquee__track span::after {
  content: "✦";
  font-style: normal;
  color: var(--caramel);
  margin: 0 32px;
  font-size: 14px;
}
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   Меню-каталог
   ============================================================ */
.menu-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.menu-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 30px 0 32px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 360px;
}
.search-box input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px 13px 46px;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(198,106,46,.12); }
.search-box input::placeholder { color: var(--ink-mute); }
.search-box svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--ink-mute); fill: none; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: all .18s;
}
.tab:hover { border-color: var(--line-2); color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.drink-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform .24s var(--ease), border-color .24s, box-shadow .24s;
  position: relative;
}
.drink-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow-s); }
.drink-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.drink-card__cup {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  flex: none;
  font-size: 30px;
  position: relative;
}
.drink-card__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-soft);
}
.drink-card__badge--hit { background: rgba(198,106,46,.14); color: var(--caramel-d); }
.drink-card__badge--new { background: rgba(94,115,72,.14); color: var(--leaf); }
.drink-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; margin-bottom: 7px; }
.drink-card__desc { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin-bottom: 16px; flex: 1; }
.drink-card__meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.drink-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.drink-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); }
.price__now { font-size: 19px; font-weight: 600; color: var(--ink); }
.price__old { font-size: 13px; color: var(--ink-mute); text-decoration: line-through; }
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  font-size: 13.5px;
  transition: all .18s var(--ease);
  flex: none;
}
.add-btn:hover { background: var(--caramel); }
.add-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.add-btn.added { background: var(--leaf); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--ink-soft);
}
.empty-state b { color: var(--caramel); }
.empty-state .em { font-family: var(--font-display); font-style: italic; font-size: 22px; display: block; margin-bottom: 8px; color: var(--ink); }

/* ============================================================
   Как работает доставка — шаги
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step {
  position: relative;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: var(--crema);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* ============================================================
   Почему keys — фичи
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feat {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s var(--ease);
}
.feat:hover { transform: translateY(-4px); }
.feat__ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-2);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feat__ic svg { width: 25px; height: 25px; stroke: var(--caramel); fill: none; }
.feat h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 9px; }
.feat p { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   Отзывы — слайдер
   ============================================================ */
.slider { position: relative; overflow: hidden; margin-top: 40px; }
.slides { display: flex; transition: transform .5s var(--ease); }
.slide { min-width: 100%; padding: 6px; }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.review__stars { color: var(--crema); font-size: 18px; letter-spacing: 3px; margin-bottom: 20px; }
.review__quote {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  color: var(--ink);
}
.review__author { display: inline-flex; align-items: center; gap: 13px; }
.review__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #FFF7EC;
  font-size: 18px;
}
.review__who { text-align: left; }
.review__name { font-weight: 700; font-size: 15px; }
.review__role { font-size: 13px; color: var(--ink-mute); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.slider-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--ink);
  transition: all .18s;
}
.slider-arrow:hover { border-color: var(--caramel); color: var(--caramel); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: all .2s; }
.slider-dot.is-active { background: var(--caramel); width: 26px; border-radius: 5px; }

/* ============================================================
   Зона доставки
   ============================================================ */
.delivery-band {
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.delivery-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.02em; margin-bottom: 16px; line-height: 1.05; }
.delivery-band h2 em { font-style: italic; color: var(--crema); }
.delivery-band p { color: rgba(251,246,236,.72); margin-bottom: 26px; }
.delivery-zones { display: flex; flex-direction: column; gap: 12px; }
.zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(251,246,236,.06);
  border: 1px solid rgba(251,246,236,.12);
  border-radius: var(--radius-s);
}
.zone-row__name { font-weight: 600; }
.zone-row__name span { display: block; font-size: 13px; color: rgba(251,246,236,.6); font-weight: 400; margin-top: 2px; }
.zone-row__time { font-family: var(--font-mono); font-size: 14px; color: var(--crema); white-space: nowrap; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink);
}
.faq-q .ic {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
}
.faq-q .ic::before, .faq-q .ic::after {
  content: ""; position: absolute;
  background: var(--caramel);
  border-radius: 2px;
  top: 50%; left: 50%;
  transition: transform .28s var(--ease);
}
.faq-q .ic::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq-q .ic::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq-item.open .faq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a div { padding: 0 4px 24px; color: var(--ink-soft); max-width: 680px; }

/* ============================================================
   Форма заказа
   ============================================================ */
.order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.order-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--caramel); }
.field input, .field textarea, .field select {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 13px 15px;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(198,106,46,.1); }
.field input.err, .field textarea.err { border-color: var(--berry); }
.field textarea { resize: vertical; min-height: 96px; }
.field__msg { font-size: 12.5px; color: var(--berry); min-height: 15px; font-family: var(--font-mono); }

.order-aside {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: sticky;
  top: 92px;
}
.order-aside h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin-bottom: 18px; }
.order-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.order-list__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.order-list__row .q { color: var(--caramel); font-family: var(--font-mono); font-size: 13px; }
.order-list__row b { font-weight: 600; font-family: var(--font-mono); }
.order-empty { color: var(--ink-mute); font-size: 14px; text-align: center; padding: 20px 0; }
.order-empty a { color: var(--caramel); font-weight: 600; }
.order-sum {
  border-top: 1.5px dashed var(--line-2);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
}
.order-sum .val { color: var(--caramel); }
.order-free { font-size: 12.5px; color: var(--ink-mute); margin-top: 10px; text-align: center; }
.order-free b { color: var(--leaf); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(251,246,236,.7);
  padding: 64px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 44px;
}
.footer-brand .brand__name { color: var(--surface); }
.footer-about p { font-size: 14.5px; margin: 16px 0 20px; max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crema);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; color: rgba(251,246,236,.7); padding: 5px 0; font-size: 14.5px; transition: color .18s; }
.footer-col a:hover { color: var(--surface); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(251,246,236,.08);
  display: grid; place-items: center;
  padding: 0;
}
.footer-social a:hover { background: var(--caramel); }
.footer-social svg { width: 18px; height: 18px; fill: var(--surface); }
.footer-bottom {
  border-top: 1px solid rgba(251,246,236,.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(251,246,236,.5);
  font-family: var(--font-mono);
}

/* ============================================================
   Тосты
   ============================================================ */
.toast-host {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--caramel);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
  min-width: 260px;
  max-width: 340px;
  transform: translateX(125%);
  transition: transform .4s var(--ease);
  pointer-events: auto;
}
.toast.show { transform: translateX(0); }
.toast--ok { border-left-color: var(--leaf); }
.toast__ic { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.toast__ic svg { width: 20px; height: 20px; stroke: var(--caramel); fill: none; }
.toast--ok .toast__ic svg { stroke: var(--leaf); }
.toast b { font-weight: 700; }

/* ============================================================
   Хлебные крошки / page hero
   ============================================================ */
.page-hero { padding: 54px 0 12px; }
.crumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-mute); margin-bottom: 20px; display: flex; gap: 9px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--caramel); }
.crumbs .sep { color: var(--line-2); }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.02em; margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: var(--caramel); font-weight: 500; }

/* ============================================================
   404
   ============================================================ */
.nf {
  min-height: 66vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
}
.nf__cup { font-size: 90px; margin-bottom: 8px; animation: sway 3s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.nf__code { font-family: var(--font-display); font-style: italic; font-size: clamp(64px, 12vw, 120px); font-weight: 600; line-height: 1; color: var(--caramel); letter-spacing: -.03em; }
.nf h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin: 12px 0; }
.nf p { color: var(--ink-soft); margin-bottom: 28px; max-width: 440px; }
.nf .hero__cta { justify-content: center; }

/* ============================================================
   Reveal-анимация
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .receipt { margin-top: 0; }
  .menu-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .delivery-band { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .order { grid-template-columns: 1fr; }
  .order-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__right > .btn--primary { display: none; }
  .hero { padding: 44px 0 52px; }
  .menu-grid, .feat-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .delivery-band { padding: 32px 24px; }
  .review { padding: 32px 24px; }
}

@media (max-width: 460px) {
  .wrap { padding-inline: 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .cart-btn__sum { display: none; }
  .toast-host { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: none; }
}
