@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Arabskij"; src: url("fonts/Arabskij.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --orange: #EE9528;
  --orange-dark: #d27d14;
  --orange-50: #fff4e5;
  --green: #284332;
  --green-2: #35573f;
  --green-50: #eaf0ec;
  --green-100: #d6e2da;
  --white: #ffffff;
  --ink: #1a1a1a;
  /* Серый подобран под контраст 4.5:1 на белом. */
  --gray: #5c6661;
  --gray-2: #8a938f;
  --border: #e7e3da;
  --bg: #fafaf8;
  --photobg: #eef2ef;
  --danger: #b3261e;
  --ok: #1f7a3a;

  --r-card: 20px;
  --r-field: 14px;
  --r-pill: 999px;
  --tap: 44px;
  --shadow: 0 8px 28px rgba(20, 30, 25, 0.16);
  --shadow-sm: 0 2px 10px rgba(20, 30, 25, 0.08);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 88px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; }
:focus-visible { outline: 3px solid rgba(238, 149, 40, .55); outline-offset: 2px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border: none; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: filter .15s, transform .1s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { background: var(--orange-dark); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { background: var(--green-50); color: var(--green); }
.btn-ghost:hover { background: var(--green-100); }
.btn-wide { width: 100%; }

/* Круглые кнопки-иконки. Всё, что могло сделать их овальными или сдвинуть
   значок: явные размеры и запрет сжатия во flex, нулевой padding, отключённый
   системный вид кнопки, значок — SVG по центру. */
.add-btn, .qty-btn, .sheet-close, .cart-close {
  flex: 0 0 auto; padding: 0; margin: 0; border: none; appearance: none; -webkit-appearance: none;
  border-radius: 50%; aspect-ratio: 1 / 1; display: inline-flex; align-items: center; justify-content: center;
  line-height: 0; cursor: pointer; position: relative;
}
.add-btn svg, .qty-btn svg, .sheet-close svg, .cart-close svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.add-btn {
  width: var(--tap); height: var(--tap); background: var(--green); color: var(--white);
  transition: background .15s, transform .12s var(--ease);
}
.add-btn:hover { background: var(--green-2); }
.add-btn:active { transform: scale(.92); }
.add-btn.small { width: 36px; height: 36px; }
.add-btn.small svg { width: 16px; height: 16px; }
.add-btn .count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--orange); color: var(--white); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--white);
}
.qty-stepper {
  display: inline-flex; align-items: center; gap: 2px; background: var(--green-50); border-radius: var(--r-pill); padding: 2px;
}
.qty-btn { width: 40px; height: 40px; background: var(--white); color: var(--green); box-shadow: var(--shadow-sm); }
.qty-btn svg { width: 18px; height: 18px; }
.qty-btn:hover { background: #f4f7f5; }
.qty-btn:active { transform: scale(.92); }
.qty-value { min-width: 28px; text-align: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty-stepper.small .qty-btn { width: 34px; height: 34px; }
.qty-stepper.small .qty-btn svg { width: 16px; height: 16px; }
.qty-stepper.small .qty-value { min-width: 24px; font-size: 14px; }

/* ---------- шапка: уезжает при прокрутке, закреплена только лента разделов ---------- */
.site-header { background: var(--green); color: var(--white); }
/* Логотип слева, напротив него — телефон и вход; строка «открыто · адрес ·
   часы» ниже на телефоне и между ними на широком экране. */
.header-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: 12px 16px; padding: 16px 20px 12px; max-width: 1100px; margin: 0 auto;
}
.logo { height: 44px; width: auto; }
.header-actions { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.header-phone { color: var(--orange); font-weight: 700; font-size: 18px; white-space: nowrap; letter-spacing: -.01em; }
.header-phone:hover { text-decoration: underline; }
.header-info {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  font-size: 13.5px; color: rgba(255,255,255,.85);
}
.header-info .sep { opacity: .5; }
@media (min-width: 760px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .header-info { grid-column: 2; grid-row: 1; padding-left: 12px; font-size: 14px; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .header-phone { font-size: 20px; }
}
.guest-box { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.guest-name { font-weight: 600; }
.guest-link { color: rgba(255,255,255,.7); text-decoration: underline; }
.guest-login {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--ink); border-radius: var(--r-pill);
  padding: 6px 12px 6px 6px; font-weight: 600; font-size: 13px;
}
.guest-login .ya { width: 22px; height: 22px; border-radius: 50%; background: #fc3f1d; color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.open-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.open-state .dot { width: 8px; height: 8px; border-radius: 50%; background: #7ddc8f; }
.open-state.is-closed .dot { background: var(--gray-2); }
.phone-link { color: var(--orange); font-weight: 700; }
.phone-link:hover { text-decoration: underline; }

.catbar {
  position: sticky; top: 0; z-index: 20; background: var(--green);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
/* Лента начинается ровно по сетке сайта (левый край контента: 20px на
   телефоне, край колонки 1100px на широком экране) и не уезжает левее неё —
   прокручиваемая область сама начинается там, а не у края экрана. Справа —
   до края экрана: видно, что лента листается. */
.categories {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scrollbar-width: none;
  margin-left: max(20px, calc((100% - 1100px) / 2 + 20px)); padding: 10px 20px 12px 0;
}
.categories::-webkit-scrollbar { display: none; }
.category-link {
  flex-shrink: 0; scroll-snap-align: start; padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); color: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.category-link:hover, .category-link.active { background: var(--orange); color: var(--white); }

/* ---------- меню ---------- */
.menu { max-width: 1100px; margin: 0 auto; padding: 16px 20px 40px; }
.notice { border-radius: 16px; padding: 12px 16px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.notice-closed { background: var(--orange-50); color: #6b3e00; }
.notice-table { background: var(--green-50); color: var(--green); }
.notice-order { background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice-order a { font-weight: 700; color: var(--orange); white-space: nowrap; }

.hero {
  display: grid; grid-template-columns: 1fr; background: var(--green); color: var(--white);
  border-radius: 24px; overflow: hidden; margin: 4px 0 8px; cursor: pointer;
}
/* height:auto обязателен: атрибут height у <img> иначе перебивает aspect-ratio. */
.hero-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-body { padding: 18px 20px 20px; }
.hero-badge { display: inline-block; background: var(--orange); color: var(--white); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: var(--r-pill); }
.hero-title { font-family: "Arabskij", "Inter", cursive; font-weight: 400; font-size: 46px; line-height: 1.15; margin: 10px 0 4px; }
.hero-text { margin: 0 0 16px; color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.45; }
.hero-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-price { font-size: 26px; font-weight: 700; }
.hero-old { font-size: 16px; color: rgba(255,255,255,.6); text-decoration: line-through; }
.hero-foot .btn { margin-left: auto; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero-photo { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .hero-body { padding: 28px 32px; }
}

.category-section { padding-top: 26px; scroll-margin-top: 64px; }
.category-title { font-family: "Arabskij", "Inter", cursive; font-weight: 400; font-size: 44px; line-height: 1.2; color: var(--green); margin: 0 0 14px; }
.nw { white-space: nowrap; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } .card-grid.compact { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .card-grid.compact { grid-template-columns: repeat(4, 1fr); } }

.card {
  min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s var(--ease);
}
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); } }
.card-photo {
  position: relative; display: block; width: 100%; padding: 0; border: none; background: var(--photobg);
  aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-photo img { transform: scale(1.03); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--orange); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill);
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-name {
  display: block; text-align: left; padding: 0; border: none; background: none; cursor: pointer;
  font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: break-word;
}
.card-weight { font-size: 13px; color: var(--gray); margin-top: 2px; }
.card-desc {
  font-size: 13.5px; line-height: 1.5; color: var(--gray); margin: 8px 0 0; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; min-width: 0; }
.card-price { font-size: 18px; font-weight: 700; color: var(--green); white-space: nowrap; }
.card-old { font-size: 13px; color: var(--gray-2); text-decoration: line-through; white-space: nowrap; }
.card-control { margin-left: auto; display: flex; align-items: center; flex-shrink: 0; }
.card-off { font-size: 14px; font-weight: 600; color: var(--gray); }
.card.is-off .card-photo img { filter: grayscale(.8); opacity: .6; }
.card-grid.compact .card-photo { aspect-ratio: 1 / 1; }
.card-grid.compact .card-body { padding: 10px 12px 12px; }
.card-grid.compact .card-name { font-size: 15px; }
.card-grid.compact .card-desc { display: none; }
.card-grid.compact .card-price { font-size: 16px; }
.card-grid.compact .badge { top: 8px; left: 8px; font-size: 11px; padding: 4px 8px; }
@media (max-width: 400px) {
  .card-grid.compact .card-foot { flex-wrap: wrap; }
  .card-grid.compact .qty-stepper { margin-left: auto; }
}

/* ---------- подвал ---------- */
.site-footer { background: var(--green); color: var(--white); padding: 32px 0 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 48px; width: auto; }
.footer-info { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.85); }
.footer-links a { font-size: 12.5px; color: rgba(255,255,255,.6); text-decoration: underline; }
.footer-links { color: rgba(255,255,255,.4); font-size: 12.5px; line-height: 1.8; }
.footer-seller { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); color: var(--white); font-size: 14px; font-weight: 600; transition: background .15s, color .15s;
}
.social-link svg { width: 22px; height: 22px; flex: none; }
.social-link:hover { background: var(--orange); }
@media (min-width: 760px) { .footer-social { margin-left: auto; } }

/* ---------- полоса корзины ---------- */
.cart-bar {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 40; width: min(460px, calc(100% - 32px)); min-height: 56px; border: none; border-radius: var(--r-pill);
  background: var(--orange); color: var(--white); display: flex; align-items: center; gap: 10px; padding: 0 22px;
  font-size: 16px; font-weight: 700; box-shadow: var(--shadow); cursor: pointer;
}
.cart-bar-count { background: rgba(255,255,255,.25); border-radius: var(--r-pill); min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
.cart-bar-sum { margin-left: auto; }
.cart-bar.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.04); } }

.toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: var(--white); border-radius: 14px; padding: 12px 18px; font-size: 14px;
  font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px);
}

/* ---------- окна ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10, 20, 15, .45); opacity: 0; transition: opacity .2s; }
.backdrop.open { opacity: 1; }

.sheet {
  position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 94vh; background: var(--white);
  border-radius: 24px 24px 0 0; display: flex; flex-direction: column; transform: translateY(100%);
  transition: transform .25s var(--ease); overflow: hidden;
}
.sheet.open { transform: translateY(0); }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 540px; max-height: 88vh; border-radius: 24px;
           transform: translate(-50%, -46%); opacity: 0; transition: transform .2s var(--ease), opacity .2s; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.sheet-close svg { width: 18px; height: 18px; }
.sheet-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--photobg); }
.sheet-content { padding: 18px 20px 8px; }
.sheet-name { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.25; }
.sheet-weight { color: var(--gray); font-size: 14px; margin-top: 4px; }
.sheet-desc { color: var(--gray); font-size: 15px; line-height: 1.5; margin: 10px 0 0; }
.sheet-parts { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.sheet-parts .lbl { color: var(--gray); margin-right: 6px; }
.sheet-save {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; background: #e6f4ea; color: #145c2c;
  font-weight: 600; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; line-height: 1.4;
}
.sheet-save svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.opt-group { margin-top: 18px; }
.opt-title { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 42px; padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--border); background: var(--white);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill small { font-weight: 500; opacity: .75; font-size: 13px; }
.pill:hover { border-color: var(--green); }
.pill.selected { background: var(--green); border-color: var(--green); color: var(--white); }
.pill.selected small { opacity: .85; }
.pill:disabled { opacity: .4; cursor: default; text-decoration: line-through; }
.mods { display: flex; flex-direction: column; gap: 6px; }
.mod {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: 14px; cursor: pointer; font-size: 15px; background: var(--white); text-align: left; width: 100%;
}
.mod .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--gray-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--white); }
.mod .box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mod .mod-label { flex: 1; }
.mod .mod-weight { margin-left: 6px; font-size: 13px; color: var(--gray); font-weight: 400; }
.mod.on { border-color: var(--green); background: var(--green-50); }
.mod.on .box { background: var(--green); border-color: var(--green); }
.mod .price { font-weight: 600; color: var(--green); white-space: nowrap; }
.mod:disabled { opacity: .45; cursor: default; }
.sheet-foot { display: flex; gap: 12px; align-items: center; padding: 12px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--white); }
.sheet-foot .btn { flex: 1; min-height: 52px; font-size: 16px; }
.sheet-foot .btn-ghost { flex: 0 0 auto; padding: 0 22px; }

.upsell { padding: 20px; }
.upsell-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.upsell h3 { font-size: 22px; margin: 16px 0 6px; }
.upsell p { margin: 0; color: var(--gray); font-size: 15px; line-height: 1.5; }
.upsell-math { margin-top: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 6px 14px; font-size: 14.5px; }
.upsell-math .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.upsell-math .row span:last-child { white-space: nowrap; }
.upsell-math .row:last-child { border-bottom: none; }
.upsell-math .muted { color: var(--gray); }
.upsell-math .strike span:last-child { text-decoration: line-through; }
.upsell-math .strong { font-weight: 700; font-size: 16px; }
.upsell-math .save { color: var(--ok); font-weight: 700; }
.upsell-note { font-size: 13px; color: var(--gray); padding: 6px 0 0; }
.upsell .opt-group { margin-top: 16px; }

/* ---------- корзина ---------- */
.cart-panel {
  position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px; background: var(--white);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s var(--ease); box-shadow: -8px 0 24px rgba(0,0,0,.15);
}
.cart-panel.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--green); color: var(--white); }
.cart-head h2 { font-size: 20px; font-weight: 700; margin: 0; flex: 1; }
.cart-back { border: none; background: rgba(255,255,255,.15); color: var(--white); border-radius: var(--r-pill); padding: 8px 12px; font-weight: 600; cursor: pointer; }
.cart-close { width: 40px; height: 40px; background: rgba(255,255,255,.15); color: var(--white); }
.cart-close svg { width: 18px; height: 18px; }
.cart-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cart-step, .checkout { padding: 16px 20px 24px; }
.cart-foot { padding: 12px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--white); }
.cart-foot .btn { min-height: 54px; font-size: 16px; }
.cart-note { font-size: 13px; color: var(--gray); text-align: center; margin: 0 0 8px; }

.seg { display: flex; background: var(--green-50); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 40px; border: none; background: none; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--green); cursor: pointer; padding: 0 6px; }
.seg button.on { background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.seg button:disabled { opacity: .4; cursor: default; }

.progress { margin: 14px 0 4px; font-size: 13px; color: var(--gray); }
.progress-bar { height: 6px; background: var(--green-50); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.progress-bar i { display: block; height: 100%; background: var(--orange); border-radius: 6px; transition: width .3s; }

.cart-lines { margin-top: 8px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--photobg); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 14.5px; font-weight: 600; }
.cart-opts { font-size: 12.5px; color: var(--gray); margin-top: 2px; line-height: 1.35; }
.cart-opts.save { color: var(--ok); font-weight: 600; }
/* Горячие напитки при доставке: объяснение и кнопка «убрать». */
.hot-note { background: var(--orange-50); color: #6b3e00; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin: 12px 0 4px; }
.hot-note p { margin: 0 0 10px; }
.hot-note .btn { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: normal; text-align: center; }
.cart-line.is-blocked .cart-thumb, .cart-line.is-blocked .cart-name { opacity: .55; }
.cart-opts.hot { color: #8a4b00; }
.sheet-hot { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: #6b3e00; background: var(--orange-50); border-radius: 12px; padding: 8px 12px; }
.cart-sum { font-size: 14px; font-weight: 700; color: var(--green); margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.save-chip { font-size: 11.5px; font-weight: 700; color: #145c2c; background: #e6f4ea; border-radius: var(--r-pill); padding: 2px 8px; }
.cart-empty { text-align: center; color: var(--gray); padding: 48px 0; font-size: 14px; }
.cart-empty-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }

.xsell { margin-top: 20px; }
.xsell h3 { font-size: 15px; margin: 0 0 10px; }
.xsell-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.xsell-row::-webkit-scrollbar { display: none; }
.xsell-card { flex: 0 0 132px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.xsell-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--photobg); }
.xsell-card .n { font-size: 13px; font-weight: 600; padding: 8px 10px 0; line-height: 1.3; flex: 1; }
.xsell-card .f { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px 10px; }
.xsell-card .p { font-weight: 700; font-size: 14px; color: var(--green); }

.totals { margin-top: 16px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--gray); }
.totals .save { color: var(--ok); font-weight: 600; }
.totals .grand { color: var(--ink); font-weight: 700; font-size: 17px; padding-top: 8px; }

.field { margin-top: 14px; }
.field label, .field .label { display: block; font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1.5px solid var(--border); border-radius: var(--r-field); padding: 12px 14px;
  font: inherit; font-size: 16px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field-hint { font-size: 12.5px; color: var(--gray); margin-top: 6px; line-height: 1.4; }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.field-grid .field { margin-top: 10px; min-width: 0; }
.field-grid .field label { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-grid input { padding: 10px 10px; }
.address-block { margin-top: 4px; }
.address-block .field { position: relative; }
.addr-suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-field); box-shadow: var(--shadow); overflow: hidden; margin-top: 4px;
}
.addr-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: none; padding: 12px 14px; font-size: 15px; cursor: pointer; border-top: 1px solid var(--border); }
.addr-item:first-child { border-top: none; }
.addr-item:hover, .addr-item:focus { background: var(--green-50); outline: none; }
.addr-item.street { color: var(--gray); }
.addr-item small { color: var(--gray-2); font-size: 12px; white-space: nowrap; }
.addr-none { padding: 12px 14px; font-size: 13.5px; color: var(--gray); }
.addr-map { position: relative; height: 260px; border-radius: var(--r-field); overflow: hidden; margin-top: 10px; border: 1.5px solid var(--border); background: var(--photobg); }
/* Булавка в центре карты: остриё — точка адреса; двигается карта. */
.addr-pin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1000; pointer-events: none; }
.addr-pin svg { position: absolute; left: -20px; top: -52px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.28)); transition: transform .18s var(--ease); }
.addr-pin.lift svg { transform: translateY(-12px); }
.addr-pin.bad svg path { fill: var(--danger); }
.addr-pin-dot { position: absolute; left: -5px; top: -3px; width: 10px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.3); }
.addr-pin-label {
  position: absolute; left: 0; bottom: 60px; transform: translateX(-50%); width: max-content; max-width: 240px;
  background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; line-height: 1.25; padding: 6px 10px; border-radius: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: opacity .15s;
}
.addr-pin.lift .addr-pin-label { opacity: 0; }
.addr-status { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ok); }
.addr-status.bad { color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; flex-shrink: 0; }
.legal { font-size: 12px; color: var(--gray); margin-top: 14px; line-height: 1.45; }
.legal a { text-decoration: underline; }
.form-error { background: #fdecea; color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Подсказки Яндекса поверх панели корзины. */
.ymaps-2-1-79-search__suggest, ymaps[class*="-suggest"] { z-index: 60 !important; }

/* ---------- страница заказа ---------- */
.order-page { max-width: 560px; margin: 0 auto; padding: 20px 20px 60px; }
.order-card { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 22px 20px; margin-top: 16px; }
.order-num { font-size: 15px; color: var(--gray); }
.order-num b { display: block; font-size: 56px; line-height: 1.05; color: var(--green); margin-top: 2px; }
.order-status { font-size: 22px; font-weight: 700; margin-top: 12px; }
.order-hint { color: var(--gray); font-size: 15px; margin-top: 6px; line-height: 1.45; }
.order-card.ready { background: var(--green); color: var(--white); border-color: var(--green); }
.order-card.ready .order-num, .order-card.ready .order-hint { color: rgba(255,255,255,.8); }
.order-card.ready .order-num b { color: var(--orange); }
.order-card.cancelled { background: #fdecea; border-color: #f6c9c4; }
.steps { display: flex; gap: 6px; margin-top: 18px; }
.steps .s { flex: 1; }
.steps .s i { display: block; height: 6px; border-radius: 6px; background: var(--green-50); }
.steps .s.done i { background: var(--orange); }
.steps .s span { display: block; font-size: 11.5px; color: var(--gray); margin-top: 6px; }
.steps .s.done span { color: var(--ink); font-weight: 600; }
.order-card.ready .steps .s span { color: rgba(255,255,255,.8); }
.order-card.ready .steps .s i { background: rgba(255,255,255,.25); }
.order-card.ready .steps .s.done i { background: var(--orange); }
.order-items .cart-line:last-child { border-bottom: none; }
.order-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.points-note { background: var(--orange-50); color: #6b3e00; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }

.page-text { max-width: 760px; margin: 0 auto; padding: 24px 20px 60px; line-height: 1.6; font-size: 15px; }
.page-text h1 { font-size: 26px; line-height: 1.25; }
.page-text h2 { font-size: 18px; margin-top: 28px; }
.info-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin-bottom: 8px; }
.info-nav a { color: var(--gray, #6b7370); }
.info-nav a.on { color: inherit; font-weight: 600; text-decoration: none; }
.info-req { border-collapse: collapse; font-size: 15px; }
.info-req td { padding: 6px 16px 6px 0; vertical-align: top; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.info-req td:first-child { color: var(--gray, #6b7370); white-space: nowrap; }
.info-back { margin-top: 32px; }

/* ---------- заглушка вместо фото ----------
   Пока владелец не загрузил фото блюда: фирменный знак на фоне фото. Стоит
   в конце файла — свойства background у .card-photo и .sheet-photo выше
   иначе стирали бы картинку заглушки. */
.ph {
  display: block; background-color: var(--photobg); background-image: url("img/no-photo.svg");
  background-repeat: no-repeat; background-position: center; background-size: auto 46%;
}
.sheet-photo.ph { aspect-ratio: 5 / 2; background-size: auto 62%; }
.upsell-photo.ph { aspect-ratio: 5 / 2; }
.cart-thumb .ph { width: 100%; height: 100%; background-size: auto 62%; }
.xsell-card .ph { width: 100%; aspect-ratio: 4 / 3; }
