:root {
  --terracotta: #ba8b6a;
  --olive: #9da378;
  --cream: #f4f2e1;
  --burgundy: #6b2737;
  --ink: #25231f;
  --muted: #69665d;
  --paper: #fffdf5;
  --danger: #9b382f;
  --line: rgba(37, 35, 31, .18);
  --shadow: 0 18px 50px rgba(37, 35, 31, .14);
  --radius: 22px;
  --focus: 0 0 0 4px rgba(244, 242, 225, .9), 0 0 0 7px #25231f;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--ink); color: white; transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 .35rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.text-link { font-weight: 700; text-underline-offset: .24em; }
.info-link { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 50%; transition: background-color .2s, transform .2s; }
.info-link:hover { background: rgba(107,39,55,.09); transform: translateY(-1px); }
.info-link img { width: 30px; height: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.2rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font-weight: 750; text-decoration: none; }
.button:hover { background: #403d36; }
.button--secondary { background: transparent; color: var(--ink); }
.button--secondary:hover, .button--quiet:hover { background: rgba(37,35,31,.08); }
.button--quiet { min-height: 40px; background: transparent; color: var(--ink); }

/* City picker */
.city-page { overflow-x: hidden; }
.city-picker { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100svh; background: var(--terracotta); }
.city-panel { position: relative; isolation: isolate; display: flex; min-height: 100svh; align-items: flex-end; justify-content: center; overflow: hidden; padding: clamp(2rem, 6vw, 5.5rem); color: white; text-decoration: none; background: var(--olive) var(--city-photo) center/cover no-repeat; }
.city-panel--makhachkala { --city-photo: url("/static/brand/sova-makhachkala.jpg"); grid-column: 1; grid-row: 1; }
.city-panel--derbent { --city-photo: url("/static/brand/sova-derbent.jpg"); grid-column: 2; grid-row: 1; }
.city-panel::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--city-photo) center/cover no-repeat; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.city-panel__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(20,18,15,.72), rgba(20,18,15,.04) 60%), rgba(157,163,120,.18); transition: background-color .3s; }
.city-panel:nth-of-type(even) .city-panel__shade { background-color: rgba(186,139,106,.16); }
.city-panel__label { position: relative; display: grid; gap: .2rem; text-align: center; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.city-panel__eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.city-panel__name { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; }
.city-panel:hover::before, .city-panel:focus-visible::before { transform: scale(1.035); }
.city-panel:focus-visible { position: relative; z-index: 3; box-shadow: inset 0 0 0 6px white; }
.city-picker__logo-wrap { position: relative; isolation: isolate; z-index: 4; display: grid; grid-column: 1 / -1; grid-row: 1; width: clamp(105px, 11vw, 168px); max-height: 32vh; place-self: center; place-items: center; pointer-events: none; }
.city-picker__logo-wrap::before { content: ""; position: absolute; z-index: -1; inset: -18% -42%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20,18,15,.44) 0%, rgba(20,18,15,.24) 42%, transparent 72%); }
.city-picker__logo { display: block; width: 100%; height: auto; max-height: 32vh; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0,0,0,.3)); }
.city-panel--empty { background-image: repeating-linear-gradient(45deg, transparent 0 28px, rgba(244,242,225,.12) 28px 29px), repeating-linear-gradient(-45deg, transparent 0 28px, rgba(244,242,225,.12) 28px 29px); }

/* Cafe locations */
.cafes-page { --ink: var(--cream); --muted: var(--cream); min-height: 100svh; overflow-x: hidden; color: var(--cream); font-weight: 700; background: linear-gradient(rgba(20, 15, 16, 0.224), rgba(20, 15, 16, 0.201)), url("/static/brand/flowers-abstract-bg.jpg") center / cover fixed no-repeat; }
.cafes-header { position: relative; z-index: 10; display: flex; min-height: 116px; align-items: center; justify-content: space-between; padding: .7rem clamp(1rem,4vw,4rem); border-bottom: 1px solid rgba(244,242,225,.25); background: rgba(244,242,225,.82); color: var(--burgundy); backdrop-filter: blur(8px); }
.cafes-header__link { display: inline-flex; min-height: 44px; align-items: center; gap: .55rem; padding: .5rem 0; font-size: .95rem; text-underline-offset: .25em; }
.cafes-header__link span { font-size: 1.35rem; font-weight: 400; }
.cafes-page main { display: grid; min-height: calc(100svh - 116px); align-items: center; }
.cafes-list { display: grid; width: min(1040px, calc(100% - 2rem)); grid-template-columns: repeat(3, minmax(0, 300px)); align-items: start; justify-content: center; gap: clamp(1rem,2.5vw,2rem); margin: 0 auto; padding: clamp(2rem,5vw,4rem) 0; }
.cafe-point { display: grid; width: 100%; min-width: 0; gap: 1.3rem; padding: clamp(1.6rem,2.7vw,2.2rem); border: 1px solid rgba(244,242,225,.34); border-radius: clamp(20px,2.5vw,30px); background: rgba(25,20,21,.75); color: var(--cream); box-shadow: 0 18px 46px rgba(15,10,11,.28); text-align: center; backdrop-filter: blur(5px); }
.cafe-point h2 { margin: 0; font-size: clamp(2.1rem,3.4vw,3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.045em; }
.cafe-point p { margin: 0; }
.cafe-point__address { min-height: 3.1em; font-size: clamp(1.05rem,1.65vw,1.25rem); line-height: 1.55; }
.cafe-point__hours { display: grid; min-height: 3.5em; align-content: center; gap: .3rem; color: rgba(244,242,225,.82); font-size: clamp(.9rem,1.35vw,1.05rem); line-height: 1.55; }
.cafe-point__hours span { display: block; }
.cafe-point__phone { width: fit-content; margin: 0 auto; font-size: clamp(1rem,1.5vw,1.15rem); line-height: 1.5; text-underline-offset: .28em; }
.cafes-footer { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 1rem; padding: 2.5rem 1rem; border-top: 1px solid rgba(244,242,225,.2); background: rgba(20,15,16,.76); color: var(--cream); text-align: center; backdrop-filter: blur(8px); }
.cafes-footer img { width: 76px; height: auto; filter: brightness(0) invert(1); }
.cafes-footer p { margin: 0; font-size: clamp(1.4rem,3vw,2.2rem); }

/* Public menu */
.menu-page { --ink: var(--burgundy); --muted: var(--burgundy); color: var(--burgundy); font-size: 1.05rem; font-synthesis: weight; font-weight: 700; }
.site-header { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 116px; padding: .7rem clamp(1rem,4vw,4rem); border-bottom: 1px solid var(--line); background: rgba(244,242,225,.94); }
.site-header .brand-link { justify-self: start; }
.brand-link img { width: 62px; height: 92px; object-fit: contain; }
.site-header__location-summary { display: contents; }
.site-header__location { display: grid; justify-items: center; }
.site-header__location strong { font-size: 1.2rem; }
.site-header__location-summary > .text-link, .site-header__location-summary > .info-link { justify-self: end; }
.menu-intro { padding: clamp(1.25rem,3vw,3rem) max(1rem, calc((100% - 1200px)/2)); text-align: center; background: var(--cream) url("/static/bg-menu.png") center / cover no-repeat; color: var(--burgundy); }
.menu-intro__paper { display: grid; width: clamp(220px, 54vw, 500px); min-height: clamp(7.5rem, 18vw, 13rem); margin: .4rem auto 0; place-items: center; padding: clamp(.65rem, 2vw, 1.2rem) clamp(2rem, 7vw, 5rem); background-color: rgba(244,242,225,.96); background-image: radial-gradient(circle at 17% 28%, rgba(116,98,67,.08) 0 1px, transparent 1.5px), radial-gradient(circle at 78% 67%, rgba(116,98,67,.06) 0 1px, transparent 1.5px), repeating-linear-gradient(105deg, rgba(255,255,255,.2) 0 1px, rgba(116,98,67,.035) 1px 3px, transparent 3px 7px); background-size: 17px 17px, 23px 23px, 100% 100%; border-radius: 44% 56% 47% 53% / 57% 43% 60% 40%; box-shadow: 0 8px 22px rgba(37,35,31,.12); transform: rotate(-1.5deg); }
.menu-intro__paper h1 { margin: 0; color: var(--olive); font-size: clamp(2.9rem,7.35vw,5.8rem); font-style: normal; font-weight: 700; line-height: .95; letter-spacing: -.04em; transform: rotate(1.5deg); }
.category-nav { position: sticky; z-index: 15; top: 0; padding: .75rem 0; border-bottom: 1px solid var(--line); background: rgba(244,242,225,.94); backdrop-filter: blur(12px); }
.category-nav__track { display: flex; max-width: 1240px; gap: .5rem; overflow-x: auto; margin: auto; padding: .2rem 1rem .4rem; scrollbar-width: thin; }
.category-chip { flex: none; padding: .58rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .95rem; font-weight: 700; text-decoration: none; }
.category-chip:hover, .category-chip.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.menu-content { width: min(1200px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 6rem; }
.menu-section { scroll-margin-top: 90px; padding-top: clamp(3rem,7vw,6rem); }
.section-heading { max-width: 650px; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.1rem,4.2vw,3.6rem); letter-spacing: -.04em; }
.section-heading p { margin: .5rem 0 0; color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem,2.5vw,2rem); }
.menu-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 25px rgba(37,35,31,.06); }
.menu-card__link { display: grid; grid-template-rows: auto 1fr; align-content: start; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.menu-card__link:focus-visible { box-shadow: inset 0 0 0 4px var(--ink); }
.menu-card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--olive); line-height: 0; }
.menu-card__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s; }
.menu-card:hover img { transform: scale(1.025); }
.menu-card__media > .badge { position: absolute; top: .8rem; left: .8rem; }
.brand-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background-color: var(--olive); background-image: linear-gradient(45deg, transparent 47%, rgba(244,242,225,.25) 48% 52%, transparent 53%), linear-gradient(-45deg, transparent 47%, rgba(244,242,225,.25) 48% 52%, transparent 53%); background-size: 42px 42px; color: var(--cream); }
.brand-placeholder span { padding: 1rem 1.4rem; border: 2px solid currentColor; transform: rotate(45deg); font-weight: 900; letter-spacing: .12em; }
.brand-placeholder span::first-line { transform: rotate(-45deg); }
.menu-card__body { display: grid; align-content: start; gap: .65rem; padding: 1.15rem 1.25rem 1.35rem; }
.menu-card__name { font-size: clamp(1.2rem,2.1vw,1.5rem); font-weight: 700; letter-spacing: -.01em; }
.menu-card__meta, .item-dialog__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.menu-card__meta strong { font-size: clamp(1rem, 1.25vw, 1.15rem); }
.menu-card__meta span { font-size: clamp(1.1rem, 1.575vw, 1.25rem); }
.item-dialog__meta strong { font-size: clamp(1.65rem, 4.2vw, 2rem); }
.item-dialog__meta span { font-size: clamp(1.15rem, 3.15vw, 1.35rem); }
.menu-card__meta span, .item-dialog__meta span { color: var(--muted); }
.badge { display: inline-block; width: fit-content; margin: 0; padding: .25rem .55rem; border: 1px solid var(--burgundy); border-radius: 999px; background: var(--cream); color: var(--burgundy); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.empty-state { width: min(620px, calc(100% - 2rem)); margin: clamp(4rem,10vw,9rem) auto; padding: clamp(2rem,7vw,4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }
.empty-state h2, .empty-state h3 { margin: .4rem 0; font-size: clamp(1.8rem,4.2vw,2.75rem); }
.empty-state p { margin: 0 0 1.5rem; color: var(--muted); }
.empty-state__owl { font-size: 3rem; color: var(--terracotta); }
.item-dialog { width: min(760px, calc(100% - 2rem)); max-height: min(90svh, 900px); padding: 0; overflow: auto; border: 0; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.item-dialog::backdrop { background: rgba(20,18,15,.72); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; z-index: 2; top: .75rem; right: .75rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 4px 15px rgba(0,0,0,.2); }
.dialog-close::before, .dialog-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 2px; border-radius: 999px; background: currentColor; }
.dialog-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.item-dialog__media { aspect-ratio: 4/3; background: var(--olive); }
.item-dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.item-dialog__content { display: grid; gap: 1rem; padding: clamp(1.4rem,4vw,2.5rem); }
.item-dialog__content h2 { margin: 0; font-size: clamp(1.9rem,5.25vw,3.15rem); line-height: 1; }
.item-dialog__content > p:not(.badge) { margin: 0; color: var(--muted); white-space: pre-line; }
.menu-page .category-chip:hover, .menu-page .category-chip.is-active { border-color: var(--burgundy); background: var(--burgundy); color: var(--cream); }

/* Errors */
.error-shell { display: grid; min-height: 100svh; place-items: center; align-content: center; padding: 2rem; text-align: center; }
.error-shell img { margin-bottom: 1.5rem; }
.error-shell h1 { margin: 0; font-size: clamp(2rem,6vw,4rem); }
.error-shell > p:not(.eyebrow) { max-width: 42rem; color: var(--muted); }

/* Admin */
.admin-page { background: #efede2; }
.admin-header { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem clamp(1rem,3vw,2.5rem); border-bottom: 1px solid var(--line); background: var(--cream); }
.admin-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.admin-brand img { width: 44px; height: 66px; object-fit: contain; }
.admin-brand span { display: grid; }
.admin-brand small { color: var(--muted); }
.admin-shell { width: min(1380px, calc(100% - 2rem)); margin: auto; padding: 2rem 0 5rem; }
.admin-title, .admin-section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.admin-title h1 { margin: 0; font-size: clamp(2.2rem,5vw,4rem); }
.location-tabs { display: flex; gap: .6rem; overflow-x: auto; margin: 2rem 0; padding-bottom: .35rem; }
.location-tab { display: grid; min-width: 190px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; }
.location-tab span { font-weight: 800; }
.location-tab small { color: var(--muted); }
.location-tab.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.location-tab.is-active small { color: rgba(255,255,255,.72); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stats-grid article { display: grid; padding: 1.2rem; border-radius: 16px; background: var(--terracotta); }
.stats-grid article:nth-child(even) { background: var(--olive); }
.stats-grid strong { font-size: 2rem; }
.stats-grid small { color: rgba(37,35,31,.7); }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 1.5rem; margin-top: 2rem; }
.admin-section-title h2 { margin: 0 0 1rem; }
.save-status { min-height: 1.5em; color: var(--muted); font-size: .85rem; }
.sortable-list { display: grid; gap: 1rem; }
.admin-category { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.admin-category__header { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .75rem; padding: 1rem; }
.admin-category__title { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; min-width: 0; }
.admin-category__title h3 { margin: 0; font-size: 1.25rem; }
.drag-handle { padding: .4rem; color: var(--muted); font-size: 1.4rem; cursor: grab; user-select: none; }
.sortable-item.is-dragging { opacity: .5; }
.order-controls { display: flex; gap: .25rem; }
.order-controls button, .icon-button { min-width: 38px; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); }
.icon-button { padding: .4rem .65rem; font-size: .82rem; font-weight: 700; }
.order-controls button:hover, .icon-button:hover { background: rgba(37,35,31,.07); }
.order-controls button:disabled { opacity: .3; cursor: not-allowed; }
.status { display: inline-block; width: fit-content; padding: .18rem .48rem; border-radius: 999px; background: #e3e0d5; color: #4c4942; font-size: .7rem; font-weight: 800; }
.status--published { background: #dce7ce; color: #304822; }
.status--hidden { background: #ead9d5; color: #702f29; }
.edit-panel { padding: 1rem; border-top: 1px solid var(--line); background: #f9f7ed; }
.admin-items { padding: 0 1rem 1rem; }
.sortable-list--items { gap: .5rem; }
.admin-item { display: grid; grid-template-columns: auto 64px minmax(0,1fr) auto auto; align-items: center; gap: .7rem; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-item__image { display: grid; width: 64px; height: 64px; overflow: hidden; place-items: center; border-radius: 10px; background: var(--olive); color: var(--cream); }
.admin-item__image img { width: 100%; height: 100%; object-fit: cover; }
.admin-item__summary { display: grid; min-width: 0; font-size: .84rem; }
.admin-item__summary strong { overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-item__summary > span { color: var(--muted); }
.admin-item__edit { grid-column: 1/-1; width: calc(100% + 1.4rem); margin: .1rem -.7rem -.7rem; }
.create-box { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.create-box > summary { padding: .9rem 1rem; font-weight: 800; }
.create-box__body { padding: 1rem; border-top: 1px solid var(--line); }
.admin-items > .create-box { margin-top: .75rem; }
.admin-aside { position: sticky; top: 1rem; }
.form-stack, .form-grid { display: grid; gap: 1rem; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-stack label, .form-grid label { display: grid; align-content: start; gap: .35rem; font-size: .82rem; font-weight: 750; }
.image-upload-field { display: grid; gap: .65rem; }
.image-cropper { display: grid; width: min(100%, 520px); gap: .65rem; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(244,242,225,.7); }
.image-cropper__viewport { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 9px; background: #25231f; }
.image-cropper__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-cropper__hint { color: var(--muted); font-weight: 400; }
.image-cropper__hint--error { color: var(--danger); }
.field-wide { grid-column: 1/-1; }
input, textarea, select { width: 100%; min-height: 44px; padding: .6rem .7rem; border: 1px solid #aaa69a; border-radius: 9px; background: white; color: var(--ink); }
textarea { resize: vertical; }
label small { color: var(--muted); font-weight: 400; }
.checkbox { grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.checkbox input { width: 20px; min-height: 20px; }
.delete-form { margin-top: .8rem; }
.danger-link { border: 0; background: transparent; color: var(--danger); font-weight: 750; text-decoration: underline; text-underline-offset: .2em; }
.inline-empty { margin: 0; padding: 1rem; color: var(--muted); text-align: center; }
.alert { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid; border-radius: 12px; }
.alert--error { border-color: #c86d63; background: #f6ddd9; color: #722d27; }
.alert--success { border-color: #8ba970; background: #e1ecd8; color: #29461e; }
.alert--warning { border-color: #be965a; background: #fae9c9; color: #604515; }
.inline-warning {
  margin: 0 1rem 1rem;
  padding: .7rem .85rem;
  border: 1px solid #be965a;
  border-radius: .55rem;
  background: #fae9c9;
  color: #604515;
  font-size: .875rem;
}
.empty-state--admin { margin: 1rem 0; }
.login-shell { display: grid; min-height: 100svh; place-items: center; padding: 1rem; background-color: var(--terracotta); background-image: linear-gradient(45deg, transparent 47%, rgba(244,242,225,.15) 48% 52%, transparent 53%), linear-gradient(-45deg, transparent 47%, rgba(244,242,225,.15) 48% 52%, transparent 53%); background-size: 42px 42px; }
.login-card { display: grid; width: min(440px, 100%); gap: 1.2rem; padding: clamp(1.5rem,6vw,3rem); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.login-card > img { width: 90px; height: 135px; margin: 0 auto; object-fit: contain; }
.login-card h1 { margin: 0; font-size: 2.7rem; }

@media (max-width: 850px) {
  .city-picker { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(50svh, auto)); }
  .city-panel { min-height: 0; padding: 2rem; }
  .city-panel--makhachkala { grid-column: 1; grid-row: 1; }
  .city-panel--makhachkala .city-panel__label { align-self: flex-start; }
  .city-panel--derbent { grid-column: 1; grid-row: 2; }
  .city-panel--derbent .city-panel__label { align-self: flex-end; }
  .city-picker__logo-wrap { grid-column: 1; grid-row: 1 / 3; width: 92px; max-height: 24svh; }
  .city-picker__logo { max-height: 24svh; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-aside { position: static; order: -1; }
}

@media (max-width: 640px) {
  .site-header { grid-template-columns: auto 1fr; min-height: 88px; padding: .4rem 1rem; }
  .brand-link img { width: 46px; height: 69px; }
  .cafes-header { min-height: 88px; padding: .4rem 1rem; }
  .cafes-header__link { font-size: .8rem; }
  .cafes-page { display: grid; grid-template-rows: auto 1fr; height: 100svh; overflow: hidden; }
  .cafes-page .cafes-header { min-height: 60px; }
  .cafes-page .brand-link img { width: 34px; height: 51px; }
  .cafes-page main { display: grid; min-height: 0; align-items: center; overflow: hidden; }
  .cafes-list { display: grid; width: 100%; min-height: 0; grid-template-columns: minmax(0, 300px); grid-template-rows: repeat(3, auto); align-content: center; justify-content: center; gap: .35rem; padding: .4rem; }
  .cafe-point { gap: .4rem; padding: .65rem .8rem; border-radius: 12px; box-shadow: none; }
  .cafe-point h2 { font-size: clamp(1.3rem,5.8vw,1.6rem); line-height: 1.2; }
  .cafe-point__address { min-height: 0; font-size: clamp(.85rem,3.6vw,1rem); line-height: 1.35; }
  .cafe-point__hours { min-height: 0; gap: .08rem; font-size: clamp(.72rem,3.1vw,.86rem); line-height: 1.4; }
  .cafe-point__phone { font-size: clamp(.8rem,3.4vw,.94rem); line-height: 1.35; }
  .cafes-footer { display: none; }
  .site-header__location-summary { display: contents; }
  .site-header__location { position: absolute; top: 50%; left: 50%; width: min(8.5rem, calc(100% - 11.5rem)); min-width: 0; justify-items: center; text-align: center; transform: translate(-50%, -50%); }
  .site-header__location .eyebrow { margin-bottom: .15rem; font-size: .65rem; letter-spacing: .1em; white-space: nowrap; }
  .site-header__location strong { max-width: 100%; overflow: hidden; font-size: 1.05rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
  .site-header__location-summary > .text-link { grid-column: 2; width: 4.5rem; justify-self: end; font-size: .8rem; line-height: 1.15; text-align: right; }
  .site-header__location-summary > .info-link { grid-column: 2; justify-self: end; }
  .menu-intro { background-size: 115% auto; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .menu-content { width: min(100% - 1rem, 1200px); }
  .menu-card { border-radius: 14px; }
  .menu-card__media > .badge { top: .45rem; left: .45rem; max-width: calc(100% - .9rem); padding: .18rem .35rem; font-size: .62rem; line-height: 1.15; overflow-wrap: anywhere; }
  .brand-placeholder span { padding: .55rem .75rem; font-size: .8rem; }
  .menu-card__body { gap: .45rem; padding: .7rem; }
  .menu-card__name { font-size: clamp(.95rem,3.99vw,1.1rem); line-height: 1.2; overflow-wrap: anywhere; }
  .menu-card__meta { flex-wrap: wrap; gap: .1rem .4rem; }
  .menu-card__meta strong { font-size: clamp(.8rem,2.625vw,.9rem); line-height: 1.15; }
  .menu-card__meta span { margin-left: auto; font-size: clamp(.75rem,2.415vw,.85rem); line-height: 1.15; text-align: right; }
  .admin-shell { width: min(100% - 1rem, 1380px); padding-top: 1rem; }
  .admin-title { align-items: start; }
  .admin-title .button { padding: .55rem .8rem; font-size: .8rem; }
  .stats-grid { gap: .5rem; }
  .stats-grid article { padding: .8rem; }
  .admin-category__header { grid-template-columns: auto 1fr auto; }
  .admin-category__header > .icon-button { grid-column: 2/-1; justify-self: end; }
  .admin-item { grid-template-columns: 48px minmax(0,1fr) auto; }
  .admin-item > .drag-handle { display: none; }
  .admin-item__image { width: 48px; height: 48px; }
  .admin-item > .order-controls { grid-column: 2; }
  .admin-item > .icon-button { grid-column: 3; grid-row: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .admin-item__edit { grid-column: 1/-1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
