/* ============================================================
   ЛОЖКА — доставка еды
   Тон: тёплый и быстрый. Кремовый фон, томатный акцент, круглые
   карточки блюд, крупные цены. Всё подчинено одному действию —
   положить в корзину, поэтому кнопка добавления есть в каждой
   карточке и никогда не прячется за наведение.
   ============================================================ */

:root {
  --cream: #fdf8f1;
  --cream-2: #f6ecdf;
  --ink: #221a16;
  --muted: #6f6058;
  --line: #e7d9c8;
  --tomato: #c53f22;
  --tomato-2: #b93818;
  --olive: #4a6b3c;

  --display: "Unbounded", "Trebuchet MS", sans-serif;
  --body: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;

  --cart-bg: #fffdf9;
  --cart-fg: var(--ink);
  --cart-shadow: -22px 0 70px rgba(34, 26, 22, 0.3);

  --gut: clamp(16px, 4.5vw, 56px);
  --sec-y: clamp(52px, 7vw, 100px);
}

body { background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
.kicker { margin-bottom: 16px; color: var(--tomato); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* ── Кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 22px; border: 2px solid transparent; border-radius: 999px;
  background: transparent;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--lg { padding: 16px 32px; font-size: 15.5px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--tomato { background: var(--tomato); color: #fff; }
.btn--tomato:hover { background: var(--tomato-2); }
.btn--tomato:disabled { background: #d9c9ba; color: #fffdf9; cursor: not-allowed; }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn__q:not(:empty) {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.28);
  font-size: 11px;
}
[data-add][data-in-cart] { background: var(--olive); }
[data-add][data-in-cart]:hover { background: #3d5a31; }

/* ── Шапка ──────────────────────────────────────────────── */

.hdr { position: sticky; top: var(--demo-bar-h); z-index: 100; background: rgba(253, 248, 241, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; color: var(--tomato); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--tomato); }
.hdr__side { display: flex; align-items: center; gap: 14px; }
.phone { font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream);
}
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn:hover { background: var(--tomato); }
.cart-btn__n {
  position: absolute; top: -2px; right: -2px;
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--tomato); color: #fff;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px 8px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  .hdr__in { position: relative; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 4px var(--gut) 16px; margin: 0; }
  .nav[data-open] { display: flex; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .hdr__side { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 620px) { .phone { display: none; } }

/* ── Первый экран ───────────────────────────────────────── */

.hero { padding-block: clamp(36px, 5vw, 76px); }
.hero__in { display: grid; gap: clamp(32px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); }
.hero h1 em { font-style: normal; color: var(--tomato); }
.lede { max-width: 30em; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.marks { display: grid; gap: 18px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.marks b { display: block; font-family: var(--display); font-size: 22px; color: var(--olive); }
.marks span { color: var(--muted); font-size: 12.5px; }
@media (min-width: 520px) { .marks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.05fr 0.95fr; } }

/* Тарелка: круги и дуги вместо фотографии еды, которой у демо нет. */
.hero__plate { position: relative; display: grid; place-items: center; min-height: 300px; }
.plate { position: relative; display: block; width: min(100%, 330px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 28px 60px -30px rgba(34, 26, 22, 0.45); }
.plate__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px solid var(--line); }
.plate__food { position: absolute; border-radius: 50%; }
.plate__food--a { inset: 22% 30% 40% 22%; background: radial-gradient(circle at 35% 30%, #e8763f, var(--tomato)); }
.plate__food--b { inset: 44% 24% 22% 38%; background: radial-gradient(circle at 40% 35%, #7fa05e, var(--olive)); }
.plate__food--c { inset: 26% 20% 48% 52%; background: radial-gradient(circle at 40% 35%, #f2c66b, #d9a02f); }
.steam { position: absolute; width: 6px; border-radius: 999px; background: linear-gradient(180deg, transparent, rgba(34, 26, 22, 0.14)); }
.steam--1 { height: 64px; top: 8%; left: 42%; }
.steam--2 { height: 88px; top: 3%; left: 52%; }
.steam--3 { height: 56px; top: 11%; left: 61%; }
@media (prefers-reduced-motion: no-preference) {
  .steam { animation: rise 3.4s ease-in-out infinite; }
  .steam--2 { animation-delay: 0.5s; }
  .steam--3 { animation-delay: 1s; }
  @keyframes rise { 0%, 100% { opacity: 0.25; transform: translateY(4px); } 50% { opacity: 0.6; transform: translateY(-6px); } }
}

/* ── Секции ─────────────────────────────────────────────── */

.sec { padding-block: var(--sec-y); }
/* На тёмном фоне тот же томатный проваливается по контрасту, поэтому
   внутри тёмных секций токен переопределяется на осветлённый. */
.sec--dark { background: var(--ink); color: #e6dcd3; --tomato: #ef7d5f; }
.sec--soft { background: var(--cream-2); }
.sec__head { max-width: 44em; margin-bottom: clamp(26px, 3vw, 42px); }
.sec__head h2 { font-size: clamp(26px, 3.8vw, 42px); }
.sec__head p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.sec__head--light h2 { color: #fff; }
.sec__head--light p { color: #b3a49a; }

/* ── Фильтры ────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  background: #fff; color: var(--muted); font-size: 14px; font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[data-on] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ── Блюда ──────────────────────────────────────────────── */

.dishes { display: grid; gap: 18px; }
.dish {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.dish:hover { border-color: var(--tomato); transform: translateY(-2px); }
.dish__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.dish h3 { font-size: 17px; margin-bottom: 7px; }
.dish p { color: var(--muted); font-size: 13.5px; }
.dish__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.dish__price { font-family: var(--display); font-size: 20px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
@media (min-width: 560px) { .dishes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .dishes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .dishes { grid-template-columns: repeat(4, 1fr); } }

/* ── Шаги ───────────────────────────────────────────────── */

.steps { display: grid; gap: 20px; }
.steps li { border-top: 2px solid #3b2e28; padding-top: 18px; }
.steps span { display: block; margin-bottom: 12px; color: var(--tomato); font-family: var(--display); font-size: 13px; }
.steps h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.steps p { color: #b3a49a; font-size: 14px; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ── Оформление ─────────────────────────────────────────── */

.order { display: grid; gap: clamp(28px, 3.5vw, 52px); }
.order h2 { font-size: clamp(24px, 3.4vw, 38px); margin-bottom: 14px; }
.order__copy p { color: var(--muted); max-width: 32em; }
.order__notes { display: grid; gap: 9px; margin-top: 22px; }
.order__notes li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14.5px; }
.order__notes li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }

.order__form { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 2.6vw, 30px); background: #fff; }
.order__row { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input, select {
  border: 1px solid var(--line); border-radius: 12px; background: #fffdf9;
  color: var(--ink); padding: 12px 14px; font-size: 15px;
}
input:focus, select:focus { outline: 2px solid var(--tomato); outline-offset: 0; border-color: var(--tomato); }
.order__sum { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.order__sum b { font-family: var(--display); font-size: 26px; }
.order__min { color: var(--tomato); font-size: 13px; }
.order__legal { color: var(--muted); font-size: 12px; }
@media (min-width: 560px) { .order__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .order { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.done { grid-column: 1 / -1; border: 2px solid var(--olive); border-radius: 20px; padding: 24px; background: #f2f7ed; }
.done__t { font-family: var(--display); font-size: 20px; }
.done__s { margin-top: 8px; color: var(--muted); }
.done__d { margin-top: 14px; color: #7d8c70; font-size: 13px; }

/* ── Вопросы ────────────────────────────────────────────── */

.faq__h { font-size: clamp(24px, 3.4vw, 38px); margin-bottom: 26px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; font-family: var(--display); font-size: clamp(16px, 2vw, 19px); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tomato); font-family: var(--body); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 60em; }

/* ── Корзина ────────────────────────────────────────────── */

.cart { padding: 0; }
.cart__top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gut) 16px; border-bottom: 1px solid var(--line); }
.cart__top h2 { font-size: 22px; }
.cart__x { width: 38px; height: 38px; border: 0; border-radius: 999px; background: var(--cream-2); font-size: 22px; line-height: 1; color: var(--ink); }
.cart__x:hover { background: var(--tomato); color: #fff; }
.cart__empty { padding: 32px var(--gut); color: var(--muted); }
.cart__empty a { color: var(--tomato); }
.cart__body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart__lines { flex: 1; padding: 8px var(--gut); }

.line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__i b { display: block; font-size: 14.5px; font-weight: 600; }
.line__u { color: var(--muted); font-size: 12px; }
.line__q { display: flex; align-items: center; gap: 4px; }
.line__q button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; line-height: 1; }
.line__q button:hover { border-color: var(--tomato); color: var(--tomato); }
.line__q span { min-width: 18px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line__p { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.line__x { width: 26px; height: 26px; border: 0; background: none; color: #b6a79d; font-size: 18px; line-height: 1; }
.line__x:hover { color: var(--tomato); }

.promo { display: flex; gap: 8px; padding: 14px var(--gut) 0; }
.promo input { flex: 1; }
.promo__msg { padding: 8px var(--gut) 0; color: var(--tomato); font-size: 13px; }
.promo__msg[data-ok] { color: var(--olive); }

.cart__sum { padding: 14px var(--gut); border-top: 1px solid var(--line); display: grid; gap: 7px; }
.cart__sum > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); }
.cart__sum--total { padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink) !important; font-size: 18px !important; }
.cart__sum--total dd { font-family: var(--display); font-weight: 700; }
.cart__min { padding: 0 var(--gut) 10px; color: var(--tomato); font-size: 13px; }
.cart__body > .btn { margin: 0 var(--gut) calc(var(--gut) + 6px); width: auto; }
.cart__backdrop { position: fixed; inset: 0; z-index: 290; border: 0; }

/* ── Подвал ─────────────────────────────────────────────── */

.foot { background: var(--ink); color: #a5978d; --tomato: #ef7d5f; padding-block: clamp(36px, 5vw, 60px); }
.foot__in { display: grid; gap: 28px; }
.foot__brand { font-family: var(--display); font-size: 22px; letter-spacing: 0.1em; color: var(--cream); }
.foot__t { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.foot h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tomato); margin-bottom: 12px; }
.foot a { display: block; padding: 4px 0; color: #a5978d; font-size: 14px; text-decoration: none; }
.foot a:hover { color: var(--cream); }
@media (min-width: 700px) { .foot__in { grid-template-columns: 1.7fr 1fr 1fr; } }

.dish__pic {
  display: block; width: 100%; height: 128px; object-fit: cover; background: #f4ece1;
}
