/* «Дружная семья»: единый дизайн по макету Figma (страница «Дизайн макет»).
   Шрифты (Manrope, Oswald, Caveat) подключает React-сборка; запасные: системные без засечек. */
:root {
  --bg: #f9f5ea; --card: #f7f4ed; --white: #fff; --ink: #000; --text: #333; --muted: #6b6b6b; --line: #e6dfcd;
  --brand: #44505c; --brand-dark: #353f49; --accent: #ffcc00; --soft: #fbedc5; --danger: #b3382c; --ok: #2f7d4f;
  --r-pill: 60px; --r-card: 30px; --container: 1540px; --gutter: 24px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;
  --shadow: 0 2px 8px rgba(40, 36, 28, .16);
  --header-h: 74px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(15px, .5vw + 9px, 19px); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 3px; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; } .muted { color: var(--muted); }
.ic { width: 1.5rem; height: 1.5rem; flex: none; vertical-align: middle; }
.hand { font-family: var(--font-hand); font-weight: 700; color: var(--brand); line-height: 1.05; }
.error { color: var(--danger); margin: 0; }

/* заголовки */
h1, h2, h3, h4 { margin: 0; }
.section-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.1rem); text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; color: var(--ink); margin: 0 0 .3em; }
.section-sub { font-size: 1.2rem; color: var(--ink); margin: 0 0 1.6rem; max-width: 46rem; }
.section { margin-block: clamp(2.6rem, 5vw, 5.2rem); }
.page-section { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2.5rem, 5vw, 5rem); min-height: 55vh; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.95rem; padding: .55rem 1.5rem; border: 2px solid var(--brand); border-radius: var(--r-pill); background: var(--brand); color: #fff; font-weight: 500; font-size: 1rem; text-decoration: none; line-height: 1.2; transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.btn:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover:not(:disabled) { background: var(--brand); color: #fff; }
.btn-sm { min-height: 2.3rem; padding: .3rem 1.1rem; font-size: .9rem; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn .ic { width: 1.1rem; height: 1.1rem; }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h); }
.logo img { height: 3.1rem; width: auto; }
.main-nav { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); margin-inline: auto; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--ink); padding: .4rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.main-nav a:hover { border-color: var(--brand); }
.header-right { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.header-right > div { display: flex; align-items: center; justify-content: flex-end; }
#auth-root { min-width: 7.6rem; display: flex; justify-content: flex-end; } #cart-badge { width: 9.4rem; display: flex; justify-content: flex-start; }          /* место под острова заранее: шапка не прыгает, когда они загрузились */       /* контейнеры островов: значки на одной линии */
.main-nav + .header-right { margin-left: 0; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 500; color: var(--ink); white-space: nowrap; }
.header-phone .ic { width: 1.1rem; height: 1.1rem; }
.phone-btn { display: none; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: transparent; color: var(--brand); place-items: center; }
.phone-btn:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); } .phone-btn .ic { width: 1.5rem; height: 1.5rem; }
.phone-pop { position: absolute; left: 50%; top: calc(100% + .4rem); transform: translateX(-50%); z-index: 60; display: grid; gap: .3rem; justify-items: center; text-align: center; padding: 1.1rem 1.2rem; border-radius: var(--r-card); background: var(--white); box-shadow: 0 14px 40px rgba(40, 36, 28, .25); width: min(20rem, calc(100% - 2 * var(--gutter))); }
.phone-pop[hidden] { display: none; } .phone-pop p { margin: 0; color: var(--muted); font-size: .85rem; } .phone-pop small { color: var(--muted); }
.phone-number { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; } .phone-number .ic { width: 1.3rem; height: 1.3rem; color: var(--brand); }
.auth-slot { width: 2.4rem; height: 2.4rem; display: inline-block; }
.auth-btn-head, .cart-badge { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; min-width: 2.6rem; padding: 0 .6rem; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--brand); font-weight: 600; text-decoration: none; justify-content: center; position: relative; transition: background .2s; }
.auth-btn-head:hover, .cart-badge:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.auth-btn-head .ic, .cart-badge .ic { width: 1.55rem; height: 1.55rem; }
.auth-name { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.cart-badge b.legacy { position: absolute; top: -.1rem; right: -.1rem; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 800; }
.cart-badge { width: auto; justify-content: flex-start; padding-inline: .5rem; gap: .5rem; }          /* подсветка только вокруг самой кнопки; сумма растёт вправо внутри зарезервированного места */
.cart-ico { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -.8rem; right: -.65rem; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; display: grid; place-items: center; border: 1.5px solid var(--brand); border-radius: 999px; background: var(--bg); color: var(--brand); font-size: .72rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cart-total { flex: none; text-align: left; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-badge.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* главная: Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); padding-block: clamp(1rem, 3vw, 3rem) 0; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 3.4rem); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; color: var(--ink); }
.hero-kind { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); text-transform: uppercase; letter-spacing: .06em; margin: .2rem 0 1.4rem; color: var(--ink); }
.hero-sub { font-size: 1.2rem; margin: 0 0 1.6rem; max-width: 26rem; color: var(--ink); }
.hero-icons { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: clamp(.8rem, 1.6vw, 1.6rem); flex-wrap: wrap; }
.hero-icons li { display: grid; justify-items: center; gap: .35rem; width: 5.2rem; text-align: center; font-size: .8rem; line-height: 1.2; color: var(--ink); }
.hero-icons .ic { width: 2.6rem; height: 2.6rem; color: var(--ink); stroke-width: 1.6; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-art img { width: 100%; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }

/* главная: меню по разделам */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 1.3rem; }
.cat-card { display: grid; gap: .25rem; align-content: start; text-decoration: none; }
.cat-photo { display: block; aspect-ratio: 370 / 280; border-radius: var(--r-card); overflow: hidden; background: var(--soft); margin-bottom: .5rem; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .cat-photo img { transform: scale(1.05); }
.cat-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand); } .cat-ph .ic { width: 3rem; height: 3rem; }
.cat-name { font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.cat-desc { font-size: .85rem; color: var(--muted); }

/* главная: «Популярное» */
.popular { --photo-w: clamp(11rem, 22vw, 21rem); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2rem; padding: 2.1rem calc(var(--photo-w) + 1.4rem) 2.1rem 3.2rem; border-radius: var(--r-card); background: var(--soft); overflow: hidden; min-height: 10.6rem; }
.popular-text p { margin: 0; font-size: 1.2rem; max-width: 34rem; color: var(--text); }
.popular-text .section-title { margin-bottom: .5rem; }
.popular-hand { font-size: 2rem; margin: 0; position: relative; padding-right: 1rem; } .popular-hand .ic { width: 2.6rem; height: 2.6rem; position: absolute; right: -2.4rem; top: -1.2rem; stroke-width: 1.8; }
.popular-photo { position: absolute; top: 0; right: 0; bottom: 0; width: var(--photo-w); height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); mask-image: linear-gradient(to right, transparent, #000 38%); }

/* напоминание внизу раздела меню */
.promo { margin-top: 2.4rem; grid-template-columns: minmax(0, 1fr) auto auto; }
.promo-text { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, .9rem + 1.4vw, 2rem); line-height: 1.3; text-transform: uppercase; letter-spacing: .03em; color: #333; max-width: 28rem; text-align: center; justify-self: center; }
.promo-btn { align-self: center; }

/* главная: «О нас» */
.about { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; align-items: center; }
.about-text p { font-size: 1.2rem; color: var(--text); margin: 0 0 1.2rem; max-width: 26rem; }
.about-photo { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 889 / 446; object-fit: cover; border-radius: var(--r-card); -webkit-mask-image: linear-gradient(to right, transparent, #000 28%); mask-image: linear-gradient(to right, transparent, #000 28%); }
.about-hand { position: absolute; left: 36%; top: 22%; font-size: 2.1rem; margin: 0; z-index: 1; transform: rotate(-6deg); }

/* главная: галерея и отзывы со стрелками */
.interior { position: relative; }
.interior .ornament { position: absolute; right: 0; top: -4.5rem; width: clamp(9rem, 17vw, 16rem); opacity: .95; pointer-events: none; z-index: -1; }       /* под содержимым: не перекрывает интерфейс, но виден в просветах */
.slider { position: relative; }
.slider-track { display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; overscroll-behavior-x: contain; padding-block: .3rem; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - 2.6rem) / 3); scroll-snap-align: start; margin: 0; min-width: 0; }
.gallery .slide img { width: 100%; aspect-ratio: 500 / 285; object-fit: cover; border-radius: var(--r-card); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 2.6rem; height: 3.2rem; border: 0; background: none; color: var(--brand); display: grid; place-items: center; transition: opacity .2s, transform .2s; }
.slider-arrow.prev { left: -.6rem; } .slider-arrow.next { right: -.6rem; }
.slider-arrow { width: 2.4rem; height: 2.4rem; background: rgba(249, 245, 234, .92); border-radius: 50%; box-shadow: var(--shadow); }
.slider-arrow:hover { transform: translateY(-50%) scale(1.1); }
@media (min-width: 1700px) { .slider-arrow { background: none; box-shadow: none; width: 2.6rem; height: 3.2rem; } .slider-arrow.prev { left: -3.3rem; } .slider-arrow.next { right: -3.3rem; } }
.slider-arrow[disabled] { opacity: .25; cursor: default; }
.slider-arrow .ic { width: 1.6rem; height: 2.4rem; stroke-width: 1.6; }
.slider-dots { display: flex; justify-content: center; gap: 1.1rem; margin-top: 1.6rem; }
.slider-dots button { width: .75rem; height: .75rem; padding: 0; border: 0; border-radius: 50%; background: #d1d1d1; transition: background .2s; }
.slider-dots button.on { background: var(--accent); }
.review-track { padding-top: 7.5rem; }
.review-card { position: relative; display: grid; justify-items: center; gap: .7rem; padding: 6.2rem 2rem 1.8rem; margin-top: 0; border-radius: var(--r-card); background: var(--white); text-align: center; min-height: 15rem; }
.review-card h3 { font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.review-card p { margin: 0; font-size: .9rem; color: #444; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card .avatar { position: absolute; top: -4rem; left: 50%; transform: translateX(-50%); width: 8rem; height: 8rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; border: 6px solid var(--bg); }
.review-card img.avatar { object-fit: cover; background: var(--bg); }
.stars { color: var(--accent); letter-spacing: .15em; font-size: 1.3rem; line-height: 1; } .stars .off { color: #ddd6c2; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6rem 1.3rem; padding-top: 5rem; margin-bottom: 2.5rem; }

/* подвал */
.site-footer { margin-top: clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--line); padding-block: 2.4rem 1.6rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.footer-brand img { width: min(100%, 17rem); height: auto; }
.footer-docs { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .2rem; font-size: .75rem; } .footer-docs a { text-decoration: none; } .footer-docs a:hover { text-decoration: underline; }
.footer-col h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--text); margin-bottom: .8rem; }
.footer-col p { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .7rem; font-size: .9rem; } .footer-col p .ic { width: 1.1rem; height: 1.1rem; margin-top: .25rem; }
.footer-link { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; text-decoration: none; } .footer-link .ic { width: 1.1rem; height: 1.1rem; } .footer-link:hover { text-decoration: underline; }
.footer-thanks { position: relative; min-height: 8rem; } .footer-thanks .hand { display: block; font-size: 2rem; max-width: 9rem; transform: rotate(-8deg); margin-top: .6rem; }
.footer-thanks img { position: absolute; right: 0; bottom: -1rem; width: 7.5rem; opacity: .9; }
.footer-copy { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 1.6rem; }

/* страница раздела меню */
.menu-page { position: relative; padding-top: clamp(1.2rem, 3vw, 2.8rem); padding-bottom: 2rem; }
.menu-page .ornament, .menu-page > .ornament { position: absolute; right: 0; top: -.5rem; width: clamp(8rem, 16vw, 15rem); pointer-events: none; opacity: .95; z-index: -1; }
.menu-page .section-title { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 1.1rem; }
.pills { position: relative; display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.pill { display: inline-flex; align-items: center; min-height: 2.35rem; padding: .25rem 1.15rem; border: 1px solid var(--brand); border-radius: var(--r-pill); color: var(--brand); text-decoration: none; background: var(--bg); font-weight: 500; transition: background .2s, color .2s; }
.pill:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); } .pill.on { background: var(--brand); color: #fff; }
.dish-group { margin-bottom: 2.6rem; }
.group-title { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-family: var(--font-head); font-weight: 500; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin-bottom: 1.1rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.05rem; padding: 0 1rem; border: 1px solid var(--brand); border-radius: var(--r-pill); font-family: var(--font); font-weight: 400; font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--brand); }
.dish-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.dish-card { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--card); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.dish-card.clickable { cursor: pointer; } .dish-card.clickable:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(40, 36, 28, .18); }
.dish-photo { display: block; width: 100%; aspect-ratio: 370 / 280; margin: 0; padding: 0; border: 0; background: var(--soft); overflow: hidden; } .dish-photo img { width: 100%; height: 100%; object-fit: cover; }
button.dish-photo { cursor: pointer; }
.dish-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.1rem 1.2rem; gap: .15rem; }
.dish-body h3 { font-size: 1.2rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.dish-weight { margin: 0; font-size: 1rem; color: var(--muted); }
.dish-desc { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: 1rem; }
.price { font-size: 1.4rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.dish-foot .btn { min-height: 2.4rem; padding: .3rem 1.4rem; }

/* степпер количества */
.stepper { display: inline-flex; align-items: center; justify-content: space-between; min-width: 7.2rem; min-height: 2.4rem; border: 1px solid var(--brand); border-radius: var(--r-pill); color: var(--brand); background: transparent; }
.stepper button { width: 2.3rem; height: 2.3rem; border: 0; background: none; border-radius: 50%; font-size: 1.15rem; line-height: 1; color: var(--brand); }
.stepper button:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.stepper output { min-width: 1.4rem; text-align: center; font-weight: 500; }

/* окно блюда */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(30, 28, 24, .55); animation: fade .2s both; }
.dish-modal { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(66rem, 100%); max-height: 92vh; border-radius: var(--r-card); background: var(--white); overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); animation: pop .25s both; }
.dm-photo { min-height: 100%; background: var(--soft); } .dm-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 22rem; }
.dm-body { display: flex; flex-direction: column; gap: .5rem; padding: 2rem 2rem 1.6rem; overflow-y: auto; }
.dm-body h2 { font-size: 1.3rem; font-weight: 500; color: var(--ink); padding-right: 2rem; }
.dm-weight { margin: 0; font-size: .8rem; color: var(--muted); }
.dm-comp { margin: 0; font-size: .8rem; color: var(--text); }
.dm-price { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: .5rem 0; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.dm-group { border: 0; padding: 0; margin: 0 0 .7rem; min-width: 0; } .dm-group legend { padding: 0; float: left; width: 100%; } .dm-group legend + * { clear: both; }
.dm-group h3 { font-size: .95rem; font-weight: 600; color: var(--ink); margin: .2rem 0 .5rem; }
.dm-row { display: flex; align-items: center; gap: .8rem; padding: .3rem 0; font-size: .85rem; cursor: pointer; }
.dm-row .grow { flex: 1; } .dm-row small { color: var(--muted); font-size: .8rem; }
.dm-row input { appearance: none; -webkit-appearance: none; flex: none; width: 1.15rem; height: 1.15rem; margin: 0; border: 1.5px solid var(--brand); border-radius: 4px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.dm-row input[type=radio] { border-radius: 50%; }
.dm-row input:checked { background: var(--brand); }
.dm-row input:checked::after { content: ''; width: .35rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.dm-row input[type=radio]:checked::after { width: .4rem; height: .4rem; border: 0; border-radius: 50%; background: #fff; transform: none; }
.dm-foot { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.dm-foot .btn { flex: 1; max-width: 15rem; }
.dm-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.dm-close:hover { background: #fff; }
.dm-error { color: var(--danger); font-size: .85rem; margin: 0; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* корзина */
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(28rem, 100%); display: flex; flex-direction: column; background: var(--card); box-shadow: -10px 0 40px rgba(0, 0, 0, .25); animation: slide .28s both; }
@keyframes slide { from { transform: translateX(100%); } }
.cart-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem .6rem; }
.cart-drawer h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; color: var(--ink); }
.icon-close { width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--ink); } .icon-close:hover { background: var(--bg); }
.cart-scroll { flex: 1; overflow-y: auto; padding: .4rem 1.4rem 1.2rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.cart-line { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: .8rem; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 3.6rem; height: 3.6rem; border-radius: 14px; overflow: hidden; background: var(--soft); } .cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line b { display: block; font-weight: 500; color: var(--ink); line-height: 1.25; } .cart-line small { color: var(--muted); font-size: .8rem; display: block; }
.cart-line .stepper { min-width: 6rem; min-height: 2rem; margin-top: .4rem; } .cart-line .stepper button { width: 1.9rem; height: 1.9rem; }
.cart-line .sum { font-weight: 600; white-space: nowrap; text-align: right; }
.cart-line .remove { display: block; margin: .2rem 0 0 auto; border: 0; background: none; color: var(--muted); font-size: .75rem; text-decoration: underline; padding: .2rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin: 1.1rem 0; } .cart-total-row b { font-size: 1.5rem; color: var(--ink); }
.cart-empty { text-align: center; color: var(--muted); padding: 2.4rem 0; }
.order-form { display: grid; gap: .7rem; margin-top: .4rem; }
.order-form .hp, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
input:not([type=checkbox]):not([type=radio]), textarea, select { width: 100%; padding: .75rem 1.1rem; border: 1px solid #cfc8b5; border-radius: 22px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 5rem; border-radius: 20px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.done-box { text-align: center; padding: 2rem 0; } .done-box .ic { width: 3.2rem; height: 3.2rem; color: var(--ok); }

/* вход, кабинет */
.auth-modal { position: relative; width: min(26rem, 100%); max-height: 92vh; overflow: hidden; border-radius: var(--r-card); background: var(--card); animation: pop .25s both; }
.auth-modal .modal-scroll { max-height: 92vh; overflow-y: auto; padding: 2rem 1.6rem 1.6rem; }
.modal-close { position: absolute; top: .8rem; right: .8rem; z-index: 3; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.auth-form { text-align: center; } .auth-form form { display: grid; gap: .7rem; text-align: left; }
.auth-form h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin-bottom: .4rem; color: var(--ink); }
.auth-lock { display: inline-grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: .6rem; border-radius: 50%; background: var(--soft); color: var(--brand); } .auth-lock .ic { width: 1.8rem; height: 1.8rem; }
.auth-lead { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; }
.auth-buttons { display: grid; gap: .65rem; margin-top: .9rem; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: 0 1rem; border: 1.5px solid var(--brand); border-radius: var(--r-pill); background: transparent; color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-btn:hover { background: var(--brand); color: #fff; }
.auth-btn.vk { background: #0077ff; border-color: #0077ff; color: #fff; } .auth-btn.ya { background: #fc3f1d; border-color: #fc3f1d; color: #fff; }
.auth-btn .ic { width: 1.2rem; height: 1.2rem; }
.auth-link { background: none; border: 0; padding: .5rem; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.auth-info { padding: .7rem .9rem; border-radius: 16px; background: var(--soft); color: var(--text); font-weight: 600; font-size: .9rem; }
.auth-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; color: var(--muted); } .auth-consent input { margin-top: .2rem; accent-color: var(--brand); } .auth-consent a { color: var(--brand); }
.account-card { max-width: 28rem; margin: 1rem auto; padding: 2rem; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.account-wait { text-align: center; padding: 3rem 0; }
.account { max-width: 46rem; margin: 0 auto; }
.account-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.account-nav a, .account-nav button { display: inline-flex; align-items: center; min-height: 2.35rem; padding: 0 1.15rem; border: 1px solid var(--brand); border-radius: var(--r-pill); background: transparent; color: var(--brand); text-decoration: none; font-weight: 500; }
.account-nav .on { background: var(--brand); color: #fff; }
.account-section { box-shadow: var(--shadow); margin-bottom: 1.2rem; padding: 1.4rem; background: var(--card); border-radius: var(--r-card); }
.account-section h3 { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: .8rem; }
.account-section form { display: grid; gap: .7rem; } .account-section label { display: grid; gap: .25rem; font-weight: 600; font-size: .85rem; }
.account-section .btn { justify-self: start; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; } .socials li { display: flex; justify-content: space-between; align-items: center; }
.orders-list { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 0; }
.order-card { box-shadow: var(--shadow); padding: 1.3rem; background: var(--card); border-radius: var(--r-card); } .order-card header { display: flex; justify-content: space-between; gap: .6rem; align-items: center; } .order-card ul { padding-left: 1.2rem; }
.order-status { padding: .15rem .8rem; border-radius: 999px; background: var(--soft); color: var(--brand); font-weight: 700; font-size: .8rem; }
.st-cancelled .order-status { background: #f3dcd8; color: var(--danger); } .st-done .order-status { background: #dcefe2; color: var(--ok); }

/* контакты, текстовые страницы, 404 */
.info-cards { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.info-cards li { box-shadow: var(--shadow); display: flex; gap: .9rem; align-items: flex-start; padding: 1.2rem 1.4rem; border-radius: var(--r-card); background: var(--card); }
.info-cards .ico { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: none; border-radius: 50%; background: var(--soft); color: var(--brand); }
.info-cards b { display: block; font-weight: 600; color: var(--ink); } .info-cards a { text-decoration: none; }
.map { width: 100%; height: clamp(18rem, 40vw, 30rem); border: 0; border-radius: var(--r-card); background: var(--soft); z-index: 0; }
.map-wrap { position: relative; margin-bottom: 1.4rem; }
.map-open { position: absolute; left: .8rem; bottom: 2.1rem; z-index: 500; background: #fff; color: var(--brand); border-color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.map-open:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.kebab-marker { background: none; border: 0; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.kebab-label { font-family: var(--font-body, inherit); font-weight: 600; color: var(--ink); border: 0; border-radius: 999px; padding: .25rem .7rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.kebab-label::before { display: none; }
.prose { max-width: 50rem; } .prose h2 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.5rem; margin: 1.6em 0 .5em; color: var(--ink); } .prose h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: .7em 0; } .prose img { border-radius: 20px; } .prose a { color: var(--brand); } .prose blockquote { margin: 1em 0; padding: .8rem 1.2rem; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 16px 16px 0; }
.not-found { text-align: center; }

/* cookie */
.cookie-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 1rem; width: min(44rem, calc(100% - 1.5rem)); padding: .9rem 1.2rem; border-radius: 24px; background: var(--brand); color: #fff; box-shadow: 0 10px 34px rgba(0, 0, 0, .3); }
.cookie-bar[hidden] { display: none; } .cookie-bar p { margin: 0; font-size: .85rem; flex: 1; }
.cookie-bar .btn { background: #fff; color: var(--brand); border-color: #fff; } .cookie-bar .btn-ghost { background: transparent; color: #fff; } .cookie-bar a { color: #fff; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* нижняя панель навигации: только на телефоне */
.tabbar { display: none; } .cart-fab { display: none; }

/* ---------- планшет ---------- */
@media (max-width: 1100px) {
  .cat-grid, .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-phone span { display: none; } .header-phone { padding: .5rem; }
  .slide { flex-basis: calc((100% - 1.3rem) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-thanks { display: none; }
  .info-cards { grid-template-columns: 1fr; } .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- телефон ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 62px; --tab-h: 4.1rem; }
  html { font-size: 15px; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
  .main-nav, .header-phone { display: none; }
  .main-nav + .header-right { margin-left: auto; }
  .phone-btn { display: grid; }
  .header-right { margin-left: auto; gap: .1rem; } .auth-name { display: none; }
  #cart-badge { display: none; }                      /* на телефоне корзина — круглая кнопка над нижней панелью */
  #auth-root { min-width: 2.8rem; }
  .cart-fab { position: fixed; right: 1rem; bottom: calc(var(--tab-h) + .9rem + env(safe-area-inset-bottom, 0px)); z-index: 46; width: 3.7rem; height: 3.7rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: fab-in .25s both; }
  .cart-fab .ic { width: 1.7rem; height: 1.7rem; }
  .cart-fab b { position: absolute; top: -.2rem; right: -.2rem; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: #22262b; font-size: .8rem; font-weight: 800; line-height: 1; }
  @keyframes fab-in { from { opacity: 0; transform: scale(.6); } }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(40, 36, 28, .08); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: .15rem; min-height: var(--tab-h); padding: .4rem .1rem; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 600; line-height: 1.1; }
  .tabbar .ic { width: 1.55rem; height: 1.55rem; stroke-width: 2; }
  .tabbar a.on { color: var(--brand); } .tabbar a.on .ic { color: var(--brand); }
  .hero { grid-template-columns: 1fr; padding-top: 1rem; } .hero-art { order: -1; margin-inline: -1rem; width: calc(100% + 2rem); }
  .hero-text { text-align: left; } .hero-sub { font-size: 1.05rem; }
  .hero-icons li { width: calc(25% - .8rem); min-width: 4.2rem; } .hero-icons .ic { width: 2.2rem; height: 2.2rem; }
  .hero-actions .btn { flex: 1; text-align: center; padding-inline: .8rem; }
  .review-track { padding-top: 4.1rem; } .section:has(.review-track) .section-sub { margin-bottom: 0; } .review-card { padding-top: 5.4rem; }
  .section-sub { font-size: 1.05rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .9rem; } .cat-name { font-size: 1rem; } .cat-desc { font-size: .75rem; }
  /* блоки «Популярное», «Напоминание» и «О нас»: всё по центру, подпись в одну строку */
  .popular { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 1.5rem 1.3rem 0; gap: .5rem; }
  .popular-text p, .promo-text { text-align: center; justify-self: center; }
  .popular .popular-photo { position: static; max-width: none; order: 4; width: calc(100% + 2.6rem); height: 11rem; margin-inline: -1.3rem; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%); }
  .popular-hand { order: 3; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; font-size: 1.7rem; margin: 0 0 .7rem; padding-right: 0; }
  .popular-hand br { display: none; } .popular-hand .ic { position: static; width: 1.9rem; height: 1.9rem; margin: 0; }
  .promo-btn { justify-self: center; order: 2; }
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 1.6rem 1.3rem 0; border-radius: var(--r-card); background: #fffcf4; box-shadow: var(--shadow); overflow: hidden; gap: .4rem; }
  .about-text p { max-width: none; }
  .about-hand { position: static; transform: none; font-size: 1.45rem; white-space: nowrap; margin: 0 0 .8rem; }
  .about-hand br { display: none; }
  .about-photo { grid-column: 1; grid-row: auto; width: calc(100% + 2.6rem); max-width: none; margin-inline: -1.3rem; border-radius: 0 0 var(--r-card) var(--r-card); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%); mask-image: linear-gradient(to bottom, transparent, #000 25%); aspect-ratio: 16 / 10; }
  .interior .ornament { width: 4.5rem; top: -1.2rem; opacity: .6; }
  .interior .section-title, .interior .section-sub { max-width: calc(100% - 4.5rem); }
  /* галерея и отзывы: на экране один элемент по центру */
  .slide { flex-basis: 100%; } .slider-arrow { display: none; }
  .gallery .slide img { aspect-ratio: 4 / 3; }
  .review-grid { grid-template-columns: 1fr; }
  /* подвал по центру */
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; justify-items: center; text-align: center; }
  .footer-brand { display: grid; justify-items: center; } .footer-brand a { display: block; width: min(100%, 17rem); } .footer-brand img { margin-inline: auto; } .footer-docs { justify-items: center; }
  .footer-col p { justify-content: center; text-align: left; } .footer-link { justify-content: center; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
  .dish-body { padding: .8rem .8rem 1rem; } .dish-body h3 { font-size: 1rem; } .dish-weight { font-size: .85rem; } .price { font-size: 1.15rem; }
  .dish-foot { flex-wrap: wrap; } .dish-foot .btn { padding: .3rem 1rem; min-height: 2.2rem; font-size: .9rem; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem .4rem; scrollbar-width: none; } .pills::-webkit-scrollbar { display: none; } .pill { flex: none; }
  .menu-page .ornament { width: 4.5rem; top: .2rem; opacity: .7; }
  .menu-page .section-title { max-width: calc(100% - 4.5rem); }
  /* окно блюда: почти на весь экран, весь текст виден (прокрутка внутри) */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .dish-modal { display: flex; flex-direction: column; width: 100%; height: auto; max-height: 92dvh; border-radius: var(--r-card) var(--r-card) 0 0; }
  .dm-photo { flex: none; height: clamp(9rem, 32dvh, 17rem); min-height: 0; } .dm-photo img { min-height: 0; height: 100%; }
  .dm-body { flex: 0 1 auto; min-height: 0; padding: 1.2rem 1.2rem 1rem; } .dm-foot { margin-top: .4rem; } .dm-foot { position: sticky; bottom: 0; background: #fff; padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); }
  .cart-drawer { width: 100%; } .auth-modal { align-self: flex-end; border-radius: var(--r-card) var(--r-card) 0 0; }
  .cookie-bar { bottom: calc(var(--tab-h) + .6rem + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; text-align: center; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
