/* =========================================================
   Просто Вкусно — домашняя кухня в Туле
   Палитра: зелёный #5B7C3A, кремовый #F3F1E7, акцент #E2703A
   Мобильный-first, без внешних CDN и шрифтов
   ========================================================= */

:root {
  --green: #5B7C3A;
  --green-dark: #3F5A26;
  --green-deep: #2E4220;
  --green-soft: #E7EEDD;
  --cream: #F3F1E7;
  --cream-dark: #E7E3D4;
  --orange: #E2703A;
  --orange-dark: #C85A28;
  --ink: #20241C;
  --muted: #6B7263;
  --line: #E1DDCE;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(32, 36, 28, .06);
  --shadow: 0 14px 34px rgba(32, 36, 28, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green-dark); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--green); color: var(--green-dark); }
.btn-whatsapp { background: #25D366; color: #10331B; }
.btn-whatsapp:hover { background: #1EBE5A; }
.btn-max { background: #2AABEE; color: #fff; }
.btn-max:hover { background: #1D96D4; }
.btn-phone { background: var(--green-soft); color: var(--green-dark); }
.btn-phone:hover { background: #DCE7C8; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { color: var(--ink); border-color: var(--green); }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; font-weight: 800; color: var(--green);
}
.eyebrow-light { color: #CFE0B4; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243, 241, 231, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-weight: 900; letter-spacing: .02em; font-size: 15px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 17px; font-weight: 800; }
.brand-copy strong b { color: var(--green); }
.brand-copy small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.main-nav { display: none; gap: 22px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.main-nav a:hover { color: var(--green); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.phone-link { display: none; text-decoration: none; line-height: 1.15; text-align: right; }
.phone-link span { font-weight: 800; font-size: 15px; display: block; }
.phone-link small { font-size: 11px; color: var(--muted); }
.cart-button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-weight: 700; font-size: 14px;
}
.cart-button b {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 13px;
}

/* ---------- Общие секции ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 52px 16px; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 30px; margin-top: 6px; }
.section-sub { color: var(--muted); margin-top: 8px; max-width: 52ch; }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(20, 17, 11, .92) 0%, rgba(20, 17, 11, .55) 42%, rgba(20, 17, 11, .15) 100%),
    url("img/hero-dish.jpg") center/cover no-repeat;
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 54px;
}
.hero-copy { color: #fff; max-width: 640px; }
.hero-label {
  color: #d9e8c8; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-copy h1 {
  font-size: 38px; line-height: .98; letter-spacing: -1.5px;
  margin: 14px 0 16px; font-weight: 800; text-transform: uppercase;
}
.hero-copy h1 em { font-style: normal; color: var(--orange); }
.hero-lead { color: #eee8dc; font-size: 16px; max-width: 46ch; margin: 0 0 20px; }
.hero-features {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: 14px; margin: 0 0 24px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 13px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.hero-social { display: flex; flex-wrap: wrap; gap: 10px; }

/* Фото-зона: реальные фото подставятся позже, пока — аккуратные плейсхолдеры */
.hero-photo-frame {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: flex; flex-direction: column;
  justify-content: flex-end; gap: 2px; padding: 14px;
  background: linear-gradient(150deg, var(--green-soft), var(--cream-dark));
  border: 1px solid var(--line);
}
.ph-1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; background: linear-gradient(150deg, #DCE7C8, var(--cream)); }
.ph b { font-size: 15px; }
.ph small { font-size: 12px; color: var(--muted); }

/* ---------- Преимущества ---------- */
.benefits {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px 20px;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.benefits article {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.benefit-num { color: var(--orange); font-weight: 900; font-size: 12px; letter-spacing: .1em; }
.benefits strong { display: block; margin: 6px 0 4px; font-size: 17px; }
.benefits p { color: var(--muted); font-size: 14px; }

/* ---------- Меню ---------- */
.menu-section { padding-top: 34px; }
.search-wrap {
  display: flex; align-items: center; gap: 8px; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 48px;
}
.search-wrap input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.search-icon { color: var(--muted); font-size: 18px; }

.tabs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; padding: 4px 0 16px;
}
.tab {
  border: 1px solid var(--line); background: var(--white);
  padding: 14px 16px; border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: 15px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  box-shadow: var(--shadow-sm);
}
.tab:hover { border-color: var(--green); }
.tab small { color: var(--muted); font-weight: 600; }
.tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.tab[aria-selected="true"] small { color: rgba(255,255,255,.75); }

.menu-title { font-size: 20px; margin: 12px 0 16px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* Карточка блюда */
.dish-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.dish-card:hover { box-shadow: var(--shadow); }
.photo-wrap {
  position: relative; aspect-ratio: 4 / 3; background: var(--green-soft);
  display: grid; place-items: center; overflow: hidden;
}
.photo-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.photo-wrap.is-broken img { display: none; }
/* Плейсхолдер: первая буква названия + подпись категории, без «битых» иконок */
.ph-text {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(150deg, var(--green-soft), var(--cream-dark));
}
.ph-initial {
  font-size: 40px; font-weight: 900; color: var(--green); opacity: .5; line-height: 1;
}
.ph-cat {
  position: absolute; bottom: 8px; left: 0; right: 0; text-align: center;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.dish-card .body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dish-card h3 { font-size: 15px; line-height: 1.25; }
.dish-card .meta { font-size: 12px; color: var(--muted); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-size: 17px; font-weight: 900; white-space: nowrap; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--cream); cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1;
}
.stepper button:hover { border-color: var(--green); color: var(--green-dark); }
.stepper span { min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; }

/* ---------- Доставка и калькулятор ---------- */
.delivery-section {
  max-width: none; background: var(--green-deep); color: #fff; padding: 52px 16px;
}
.delivery-inner {
  max-width: var(--wrap); margin: 0 auto; display: grid; gap: 28px;
}
.delivery-copy h2 { font-size: 28px; margin: 8px 0 12px; }
.delivery-copy p { color: #DDE6D2; max-width: 46ch; }
.rate-list { list-style: none; margin: 20px 0; padding: 0; max-width: 420px; }
.rate-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.rate-list b { color: #F0C08A; }
.delivery-hours { font-size: 14px; }

/* заметное предупреждение о времени доставки на дальние адреса */
.notice-attention {
  display: block;
  margin: 18px 0 0;
  padding: 14px 16px;
  max-width: 460px;
  background: #FFF3D6;
  border-left: 5px solid #E08A1E;
  border-radius: 10px;
  color: #4A2E05;
  font-size: 15px;
  line-height: 1.5;
}
.notice-attention b {
  display: inline-block;
  margin-right: 6px;
  color: #B8560B;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.notice-attention-sm {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
}

.calculator {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.calculator h3 { font-size: 21px; margin-bottom: 14px; }
.field { margin-bottom: 14px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--cream); outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green); background: var(--white);
}
.field textarea { resize: vertical; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream); font-size: 14px; font-weight: 600; cursor: pointer;
}
.radio input { accent-color: var(--green); }
.radio:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.calc-result {
  background: var(--green-soft); color: var(--green-dark); font-weight: 700;
  padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 14px;
}
.calc-result.is-error { background: #FBE7DF; color: #9A3B17; }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-hint { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Как заказать ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 900; margin-bottom: 12px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 16px; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { color: var(--muted); padding: 0 0 16px; max-width: 70ch; }

/* ---------- Контакты ---------- */
.contacts-section { max-width: none; padding: 0 16px 60px; }
.contacts-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 20px; }
.contacts-card { background: var(--green); color: #fff; border-radius: var(--radius); padding: 26px; }
.contacts-card h2 { font-size: 27px; margin: 8px 0 18px; }
.contacts-list { margin: 0 0 20px; display: grid; gap: 12px; }
.contacts-list div { display: flex; flex-direction: column; gap: 2px; }
.contacts-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #CFE0B4; }
.contacts-list dd { margin: 0; font-size: 17px; font-weight: 700; }
.contacts-list a { color: #fff; }
.contacts-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts-note { margin-top: 16px; font-size: 14px; color: #E4EDD8; }
.map-placeholder {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 8px;
  text-align: center; padding: 24px;
}
.map-pin {
  width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--orange); display: block;
}
.map-placeholder strong { font-size: 18px; }
.map-placeholder small { color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 36px 16px 24px;
  display: grid; gap: 26px; grid-template-columns: 1fr;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col > strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: var(--green-dark); }
.footer-col p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.brand-footer { margin-bottom: 6px; }
.footer-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 16px;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between; color: var(--muted); font-size: 13px;
}

/* ---------- Плавающая корзина ---------- */
.cart-dock {
  position: fixed; z-index: 70; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: min(640px, calc(100% - 20px));
  display: flex; align-items: center; gap: 18px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--green-deep); color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.cart-dock[hidden] { display: none; }
.dock-info { display: flex; flex-direction: column; line-height: 1.2; }
.dock-info span { font-size: 11px; opacity: .7; }
.dock-info strong { font-size: 14px; }
.cart-dock .btn { margin-left: auto; }

/* ---------- Диалог корзины ---------- */
dialog {
  width: min(640px, calc(100% - 20px)); max-height: 90vh; padding: 0;
  border: 0; border-radius: var(--radius); color: var(--ink); background: var(--cream);
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
dialog::backdrop { background: rgba(20, 26, 15, .6); backdrop-filter: blur(3px); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--white);
}
.cart-head h2 { font-size: 24px; margin-top: 4px; }
.cart-body { padding: 16px 20px 22px; overflow-y: auto; max-height: calc(90vh - 84px); }
.cart-items { display: grid; gap: 10px; }
.cart-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
}
.cart-item strong { display: block; font-size: 15px; }
.cart-item small { color: var(--muted); font-size: 12px; }
.cart-item-price { font-weight: 800; white-space: nowrap; }
.cart-empty { color: var(--muted); padding: 10px 0; }
.link-danger {
  background: none; border: 0; color: #B42318; font-weight: 700; font-size: 14px;
  padding: 10px 0; cursor: pointer; text-decoration: underline;
}
.cart-summary {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px;
}
.cart-summary-total { border-bottom: 0; padding-top: 14px; font-size: 19px; font-weight: 800; }
.notice {
  margin: 14px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #FBE7DF; color: #9A3B17; font-size: 14px; font-weight: 600;
}
.notice[hidden] { display: none; }
.form-title { font-size: 18px; margin: 18px 0 12px; }
#checkoutForm .field input, #checkoutForm .field select, #checkoutForm .field textarea { background: var(--white); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-status { font-size: 14px; font-weight: 600; margin-top: 10px; }
.form-status.is-error { color: #B42318; }
.form-status.is-ok { color: var(--green-dark); }
.consent { font-size: 12px; color: var(--muted); margin-top: 10px; }
.success { text-align: center; padding: 20px 0; }
.success[hidden] { display: none; }
.success-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-size: 28px;
}
.success p { color: var(--muted); margin-bottom: 12px; }
.success pre {
  white-space: pre-wrap; text-align: left; background: var(--white); border: 1px solid var(--line);
  padding: 14px; border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
}

/* ---------- Планшет ---------- */
@media (min-width: 640px) {
  .section { padding: 66px 20px; }
  .hero { min-height: 600px; }
  .hero-inner { width: min(var(--wrap), calc(100% - 40px)); }
  .hero-copy h1 { font-size: 44px; }
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-card h3 { font-size: 16px; }
}

/* ---------- Десктоп ---------- */
@media (min-width: 900px) {
  .header-inner { padding: 12px 20px; }
  .main-nav { display: flex; }
  .phone-link { display: block; }
  .hero {
    min-height: 620px; align-items: center;
    background:
      linear-gradient(90deg, rgba(25, 20, 12, .92) 0%, rgba(28, 21, 13, .72) 43%, rgba(20, 15, 8, .12) 100%),
      url("img/hero-dish.jpg") center/cover no-repeat;
  }
  .hero-inner { width: min(var(--wrap), calc(100% - 40px)); }
  .hero-copy h1 { font-size: 58px; }
  .hero-lead { font-size: 18px; }
  .section { padding: 88px 20px; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head h2 { font-size: 38px; }
  .search-wrap { width: 300px; }
  .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .benefits { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 20px 30px; }
  .delivery-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 46px; }
  .delivery-copy h2 { font-size: 34px; }
  .contacts-inner { grid-template-columns: 1.1fr .9fr; align-items: stretch; }
  .map-placeholder { min-height: 100%; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; }
  .cart-dock { bottom: 20px; }
}

@media (min-width: 1200px) {
  .hero-copy h1 { font-size: 62px; }
  .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Крупные экраны: ограничиваем ширину ---------- */
@media (min-width: 1500px) {
  .hero-inner, .delivery-inner, .contacts-inner, .header-inner, .footer-inner, .footer-bottom {
    max-width: 1280px;
  }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============ АДМИН-ПАНЕЛЬ ============ */
.admin-panel{
  position:fixed; inset:0; z-index:120;
  background:#F3F1E7;
  overflow:auto;
  padding:24px 20px 60px;
}
.admin-head{
  max-width:1400px; margin:0 auto 18px;
  display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; justify-content:space-between;
}
.admin-head h2{ font-size:30px; margin:4px 0 6px; }
.admin-hint{ max-width:640px; color:#6B7263; font-size:14px; }
.admin-head-actions{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.admin-status{
  max-width:1400px; margin:0 auto 14px;
  background:#E7EEDD; border:1px solid #D5DEC4; border-radius:10px;
  padding:10px 14px; font-size:14px; color:#3F5A26;
}
.admin-out{
  max-width:1400px; margin:0 auto 14px; padding:14px;
  background:#fff; border:1px solid #E1DDCE; border-radius:10px;
  white-space:pre-wrap; font-size:13px; max-height:260px; overflow:auto;
}
.admin-table-wrap{
  max-width:1400px; margin:0 auto;
  background:#fff; border:1px solid #E1DDCE; border-radius:14px; overflow:auto;
}
.admin-table{ width:100%; border-collapse:collapse; font-size:14px; }
.admin-table th, .admin-table td{
  padding:8px; border-bottom:1px solid #EFEBDF; text-align:left; vertical-align:middle;
}
.admin-table thead th{
  position:sticky; top:0; background:#F3F1E7; z-index:1;
  font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:#6B7263;
}
.admin-table input{
  width:100%; padding:8px 10px; border:1px solid #E1DDCE; border-radius:8px;
  font:inherit; font-size:14px; background:#fff; color:#20241C;
}
.admin-table input:focus{ outline:2px solid #E2703A; outline-offset:1px; border-color:#E2703A; }
.a-price{ max-width:110px; }
.a-weight{ max-width:120px; }
.a-id{ font-size:12px; color:#8A907F; font-family:ui-monospace,Menlo,monospace; }
.a-del{
  border:1px solid #E3C3B4; background:#FBEDE6; color:#B4502A;
  border-radius:8px; padding:7px 12px; font:inherit; font-size:13px; cursor:pointer;
}
.a-del:hover{ background:#F6DCCE; }
@media (max-width:720px){
  .admin-table thead{ display:none; }
  .admin-table tr{ display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px; border-bottom:1px solid #EFEBDF; }
  .admin-table td{ border:0; padding:2px; }
}

/* Быстрые комментарии в форме заказа */
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.quick-tag {
  border: 1px solid var(--line, #e5ded2);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.quick-tag:hover { background: #f6f1e8; border-color: #c9b79a; }
.btn-ghost {
  margin-top: 12px;
  background: transparent;
  border: 1px dashed #c9b79a;
  color: inherit;
}
.btn-ghost:hover { background: #f6f1e8; }

.calc-route-link {
  display: inline-block;
  margin-top: 6px;
  color: #b4531f;
  text-decoration: underline;
}

/* ---------- Отзывы ---------- */
.reviews-section { background: var(--cream); }
.reviews-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review-shot { margin: 0; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.review-shot img { width: 100%; display: block; object-fit: cover; background: #eef1f5; }
.review-shot figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; padding: 12px 14px; margin-top: auto; }
.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.review-text { margin: 0; font-size: 15px; line-height: 1.55; }
.review-author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-top: auto; }
.review-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 900; flex: none;
}

/* Значок «Сделано в Спру» от хостинга: он перекрывает кнопку оформления заказа */
#spru-pages-badge-host { display: none !important; }
