@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #232323;
  --muted: #808080;
  --line: #e4e4e4;
  --panel: #f6f6f6;
  --tile: #f5f4f2;   /* фон под фото блюд — совпадает с фоном самих снимков */
  --accent: #ee6a1f;
  --accent-dark: #d6570f;
  --green: #1f9254;
  --red: #c8321f;
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 500; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 18px; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

mark.todo { background: #ffe58a; color: #5a4300; padding: 0 4px; border-radius: 2px; font-weight: 400; }
.draft { background: #ffe58a; color: #5a4300; font-size: 13px; text-align: center; padding: 5px 16px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font: 500 15px var(--font); white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:disabled { background: #cfcfcf; border-color: #cfcfcf; cursor: default; }
.btn--soft, .btn--light { background: #fff; border-color: #d2d2d2; color: var(--ink); }
.btn--soft:hover, .btn--light:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.is-in { background: #fff; border-color: var(--accent); color: var(--accent-dark); }

/* Верхняя строка */
.topline { background: var(--panel); font-size: 13px; color: #555; }
.topline__row { display: flex; align-items: center; gap: 22px; height: 36px; }
.topline a { color: #555; }
.topline a:hover { color: var(--ink); }
.topline__nav { display: flex; gap: 18px; margin-left: auto; }
.topline__nav a[aria-current] { color: var(--ink); font-weight: 500; }
.citypick { position: relative; }
.citypick summary { list-style: none; cursor: pointer; color: var(--ink); font-weight: 500; padding-right: 14px; white-space: nowrap; background: no-repeat right 0 center / 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23232323' stroke-width='1.6'/%3E%3C/svg%3E"); }
.citypick summary::-webkit-details-marker { display: none; }
.citypick ul { position: absolute; z-index: 60; top: calc(100% + 8px); left: -12px; width: 340px; max-width: calc(100vw - 24px); margin: 0; padding: 8px; list-style: none; columns: 2; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, .14); }
.citypick a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.citypick a:hover { background: var(--panel); }
.citypick a[aria-current] { color: var(--accent-dark); }
.is-open { color: var(--green); }

/* Шапка */
.head { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.head__row { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo { flex: none; font-weight: 800; font-size: 27px; line-height: 1; letter-spacing: -0.035em; color: var(--ink); text-transform: lowercase; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }
.cats { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { padding: 8px 10px; color: var(--ink); font-size: 15px; white-space: nowrap; border-radius: 6px; }
.cats a:hover { color: var(--accent-dark); }
.cats .is-page { display: none; }
.head__phone { flex: none; font-weight: 500; font-size: 17px; color: var(--ink); white-space: nowrap; }
.cartbtn { flex: none; }
.cartbtn__sum { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .5); }
.cartfab { display: none; }

/* Главная */
.lead { padding: 20px 0 0; }
.lead__row { display: grid; grid-template-columns: 1fr 330px; gap: 16px; }
.lead__banner { position: relative; border-radius: 10px; overflow: hidden; background: #2b2723; min-height: 250px; }
.lead__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead__info { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 10px; }
.lead__info h1 { font-size: 22px; margin-bottom: 14px; }
.facts { margin: 0 0 16px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.lead__info .btn { margin-top: auto; }

.menu__section { padding-top: 34px; scroll-margin-top: 70px; }
.menu__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.menu__head h2 { font-size: 26px; }
.menu__head p { margin: 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; }
.card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--tile); cursor: pointer; }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.tag { font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 4px; background: #fff; color: var(--ink); }
.tag--veg { color: var(--green); }
.tag--hot { color: var(--red); }
.card__title { margin-top: 10px; font-size: 17px; }
.card__title button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.card__title button:hover { color: var(--accent-dark); }
.card__desc { margin: 4px 0 12px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-weight: 500; font-size: 17px; white-space: nowrap; }
.price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.buy { display: flex; }

.stepper { display: inline-grid; grid-template-columns: 34px minmax(26px, auto) 34px; align-items: center; height: 36px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent-dark); font-weight: 500; }
.stepper button { height: 100%; border: 0; background: none; color: inherit; font-size: 19px; line-height: 1; cursor: pointer; }
.stepper span { text-align: center; font-size: 14px; }
.stepper--big { height: 44px; grid-template-columns: 44px minmax(34px, auto) 44px; }

.sizes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; background: #efefef; border-radius: 8px; }
.sizes button { height: 34px; border: 0; border-radius: 6px; background: none; font-size: 14px; color: var(--ink); cursor: pointer; }
.sizes button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }

.about { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 860px; }
.about h2 { margin-bottom: 10px; }
.about p { color: #555; }

/* Внутренние страницы */
.page { padding-top: 26px; padding-bottom: 10px; }
.page > h1 { margin-bottom: 20px; }
.lead-text { max-width: 46em; margin-bottom: 22px; color: #555; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.cols section { padding: 20px 0; border-top: 1px solid var(--line); }
.cols h2, .split h2 { margin-bottom: 10px; }
.cols section > :last-child { margin-bottom: 0; }
.spec { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 42%; font-weight: 400; color: var(--muted); }
.spec thead th { font-size: 13px; }
.spec--3 th, .spec--3 td, .spec--zones th, .spec--zones td { width: auto; }
.spec--3 tbody th, .spec--zones tbody th { color: var(--ink); font-weight: 500; white-space: nowrap; }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: 10px; }
.note { font-size: 13px; color: var(--muted); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 2px; }

.split { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.split__main section { padding: 0 0 22px; }
.split__side { padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.vacancy { padding: 18px 0; border-top: 1px solid var(--line); }
.vacancy header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.vacancy__pay { font-weight: 500; margin: 0; }
.vacancy__schedule { color: var(--muted); margin-top: 4px; }
.vacancy h3 { margin: 12px 0 4px; }
.empty { padding: 18px 20px; background: var(--panel); border-radius: 10px; color: #555; margin: 0; }
.empty p:last-child { margin: 0; }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form select, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 8px; background: #fff; font-size: 15px; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--ink); }
.form textarea { resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--muted); }
.check input { margin-top: 1px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.form .trap { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form--2 { grid-template-columns: 1fr 1fr; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.inline .btn { flex: none; }
.form__status { margin: 0; font-size: 13px; color: var(--muted); min-height: 1em; }
.form__status.is-error { color: var(--red); }
.form__done { margin: 0; padding: 14px; background: #e6f3eb; color: #17613a; border-radius: 8px; }

.split--doc { grid-template-columns: minmax(0, 780px) 280px; justify-content: space-between; }
.doc h1 { font-size: 24px; margin-bottom: 14px; }
.doc h2 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 14px; line-height: 1.6; }
.doc p:first-of-type { color: var(--muted); }
.doc-nav ul { list-style: none; padding: 0; margin: 0; }
.doc-nav li { margin-bottom: 8px; font-size: 14px; }
.doc-nav a { color: var(--ink); }
.doc-nav a:hover, .doc-nav a[aria-current] { color: var(--accent-dark); }

/* Карта и зоны */
.map { height: 460px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); z-index: 0; }
.map--big { height: 560px; }
.leaflet-container { font: 12px var(--font); }
.leaflet-container a { color: #555; }
.leaflet-interactive:focus { outline: none; }
.pin { background: var(--accent); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.zones { margin-bottom: 26px; }
.zones__info { margin-top: 16px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px 40px; align-items: start; }
.zones__info h2 { grid-column: 1 / -1; }

/* Корзина и оформление */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.checkout__main { min-width: 0; }
.checkout__main section { padding: 0 0 26px; }
.checkout__main section > * + * { margin-top: 12px; }
.checkout__main form { gap: 0; }
.checkout h2 { margin: 0 0 2px; }
.checkout__side { position: sticky; top: 80px; display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; }
.checkout__side .btn { width: 100%; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid #cfcfcf; font-size: 14px; color: var(--ink); }
.pill input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.zone-status { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--panel); font-size: 14px; color: #555; }
.zone-status.is-ok { background: #e6f3eb; color: #17613a; }
.zone-status.is-error { background: #fbe9e6; color: #9c2a18; }
.cartlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cartlist li { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cartlist img { width: 76px; height: 57px; object-fit: cover; border-radius: 6px; }
.cartlist__name { display: flex; flex-direction: column; min-width: 0; }
.cartlist__name b { font-weight: 500; }
.cartlist__name span { font-size: 13px; color: var(--muted); }
.cartlist__sum { min-width: 76px; text-align: right; font-weight: 500; white-space: nowrap; }
.cartlist .stepper { border-color: #cfcfcf; color: var(--ink); }
.totals { margin: 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; white-space: nowrap; }
.totals__all { padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.totals__all dt { color: var(--ink); }
.done { max-width: 600px; padding: 24px; background: #e6f3eb; border-radius: 10px; }
.done h2 { margin-bottom: 8px; }
.done p:last-child { margin: 14px 0 0; }

/* Подвал */
.foot { margin-top: 56px; background: #232323; color: #a9a9a9; padding: 36px 0 22px; font-size: 13px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 28px; }
.foot h2 { font-size: 13px; color: #fff; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: #a9a9a9; }
.foot a:hover { color: #fff; }
.foot .logo { display: inline-block; margin-bottom: 14px; color: #fff; font-size: 24px; }
.foot__phone { font-size: 17px; font-weight: 500; color: #fff !important; }
.foot__note { margin-top: 26px; padding-top: 16px; border-top: 1px solid #3a3a3a; color: #7d7d7d; font-size: 12px; }

/* Окно блюда */
.modal { width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 12px; color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); overflow: hidden; }
.modal[open] { display: flex; }
.modal::backdrop { background: rgba(0, 0, 0, .5); }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; min-height: 0; }
.modal__grid--plain { grid-template-columns: 1fr; }
.modal__img { width: 100%; height: 100%; min-height: 400px; object-fit: contain; background: var(--tile); }
.modal__inner { padding: 26px; overflow-y: auto; max-height: calc(100dvh - 24px); }
.modal__close { position: absolute; z-index: 1; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .2); font-size: 20px; line-height: 1; cursor: pointer; }
.modal h2 { font-size: 22px; padding-right: 30px; }
.modal__amount { margin: 4px 0 0 !important; color: var(--muted); font-size: 13px; }
.modal h3 { margin: 16px 0 4px; font-size: 12px; color: var(--muted); font-weight: 400; }
.modal p { margin: 6px 0 0; }
.modal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.modal th, .modal td { text-align: left; padding: 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.modal td:last-child { text-align: right; }
.modal__note { font-size: 12px; color: var(--muted); }
.modal .sizes { margin-top: 18px; }
.modal__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.modal__buy .price { font-size: 22px; }

.cookie { position: fixed; z-index: 50; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; max-width: 440px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .16); font-size: 13px; }
.cookie p { margin: 0; }

@media (max-width: 1000px) {
  .topline__nav { display: none; }
  .cats .is-page { display: inline; color: var(--muted); }
  .head__phone { display: none; }
  .lead__row, .cols, .split, .split--doc, .checkout, .zones__info { grid-template-columns: 1fr; }
  .checkout__side { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .map, .map--big { height: 400px; }
  .modal__grid { grid-template-columns: 1fr; overflow-y: auto; max-height: calc(100dvh - 24px); }
  .modal__img { min-height: 0; height: 230px; }
  .modal__inner { overflow: visible; max-height: none; padding: 20px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  h1 { font-size: 24px; }
  .topline__row { gap: 14px; }
  .topline__time { display: none; }
  .head__row { flex-wrap: wrap; height: auto; gap: 0 14px; padding-top: 10px; }
  .logo { font-size: 24px; margin-right: auto; }
  .head__phone { display: block; font-size: 15px; }
  .cartbtn { display: none; }
  .cats { order: 3; flex: 0 0 100%; margin: 6px -4px 0; padding-bottom: 6px; }
  .cats a { padding: 6px 8px; }
  .cartfab { position: fixed; z-index: 45; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 500; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
  .cartfab:hover { color: #fff; }
  .lead { padding-top: 12px; }
  .lead__banner { min-height: 150px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card__title { font-size: 15px; }
  .card__desc { font-size: 12px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .card__foot .btn, .card__foot .stepper { width: 100%; }
  .buy { display: block; }
  .form--2 { grid-template-columns: 1fr; }
  .inline { flex-direction: column; }
  .cartlist li { grid-template-columns: 56px 1fr auto; }
  .cartlist img { width: 56px; height: 42px; }
  .cartlist__sum { grid-column: 2 / -1; text-align: left; min-width: 0; }
  .foot__grid { grid-template-columns: 1fr; gap: 22px; }
  .cookie { right: 14px; }
}
