/* Qauap Food — каркас меню Fish Fried в восточном прочтении:
   ночная лазурь с гириховой сеткой, кремовые панели, золото знака,
   арки михраба вокруг фото и ленты «қошқар мүйіз» по швам. */

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

:root {
  --ink: #1b1a2b;
  --ink-2: #5b5465;
  --ink-3: #8b8291;
  --paper: #fffaf1;
  --panel: #f7efe0;
  --surface-2: #f0e4cd;

  --lapis-deep: #10223f;
  --lapis: #1e3d6e;
  --gold: #d9a441;
  --gold-ink: #95671a;
  --gold-light: #e8cd92;
  --tint: #f3e3c2;

  --line: #e8dbc0;
  --line-2: #d8c49c;

  --accent: #1e3d6e;
  --hot: #b4442a;
  --hot-soft: #f6e1d6;
  --wa: #1fa855;

  /* бирюза изразцов и гранат ковра — второй и третий цвет после золота */
  --turq: #1d7f86;
  --turq-ink: #16656b;
  --turq-deep: #0f4a52;
  --garnet: #7a2433;

  /* углы мягче не делаем: изразец и ковёр — прямые формы */
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 12px;
  --r-xl: 14px;

  --shadow-sm: 0 2px 8px -3px rgba(16, 20, 40, .25);
  --shadow: 0 20px 40px -26px rgba(16, 20, 40, .55);
  --shadow-lg: 0 40px 80px -44px rgba(6, 10, 28, .75);

  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Yeseva One и Geist покрывают казахский алфавит целиком (ә ғ қ ң ө ұ ү һ і) —
     проверено замером глифов, так что отдельная гарнитура для kk не нужна.
     У Yeseva одно начертание: синтез жирного выключен, иначе браузер его «раздувает». */
  --font-display: 'Yeseva One', 'PT Serif', Georgia, serif;
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --band: url('img/band.svg?v=20261026');
  --arch: url('img/arch.svg?v=20261026');
  --arch-line: url('img/arch-line.svg?v=20261026');
  --tile: url('img/tile.svg?v=20261026');
  --carpet: url('img/carpet.svg?v=20261026');
  --divider: url('img/divider.svg?v=20261026');
  --carpet-w: 14px;

  --topbar-h: 120px;
  font-synthesis-weight: none;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 14px); }

body {
  margin: 0;
  background: var(--lapis-deep);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

/* ночная лазурь: гириховая сетка и тёплый отсвет сверху, как от мангала */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 55% at 50% -5%, rgba(217, 164, 65, .22), transparent 65%),
    radial-gradient(70% 50% at 100% 100%, rgba(180, 68, 42, .18), transparent 70%),
    url('img/girih.svg?v=20261026') 0 0 / 80px 80px,
    var(--lapis-deep);
}

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

/* .gate/.cartfab задают display, а он перебивает атрибут hidden —
   без этого закрытая модалка остаётся невидимым оверлеем и глотает клики */
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 5px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 90;
  padding: .7rem 1.1rem; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 700;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.is-hidden { display: none !important; }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: .2rem 0 0;
}

.eyebrow {
  display: flex; align-items: center; gap: .5rem;
  margin: 0;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}

/* восьмиконечная звезда — тот же знак, что в центре розетки */
.star {
  flex-shrink: 0;
  width: 10px; height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3.2s var(--ease) infinite;
}

@keyframes twinkle {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(45deg) scale(1.25); }
}

.price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
  margin: 0;
}

/* ─────────── шапка ─────────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 239, 224, .92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
/* орнаментная кайма по нижнему краю шапки */
.topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 100%;
  height: 10px;
  background: var(--band) 0 0 / 24px 10px repeat-x, var(--garnet);
  pointer-events: none;
}

.topbar__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem;
  transition: padding .35s var(--ease);
}
.topbar.is-compact .topbar__row { padding-block: .5rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }

/* официальный знак сети — тот же, что на обложке печатного меню */
.brand__logo {
  width: auto; height: 46px;
  transition: transform .5s var(--ease);
}
.brand:hover .brand__logo { transform: translateY(-2px); }
.topbar.is-compact .brand__logo { height: 40px; }

.topbar__tools { display: flex; align-items: center; gap: .6rem; flex: 0 1 560px; justify-content: flex-end; }

/* ─────────── переключатель языка ─────────── */

.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--paper); flex-shrink: 0;
}
.lang__btn {
  border: 0; border-radius: 100px; cursor: pointer;
  padding: .32rem .62rem; background: transparent;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--ink-3);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--lapis); color: #fff; }

.branchbtn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem .95rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: var(--paper);
  font-size: .87rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: all .25s var(--ease);
}
.branchbtn svg { width: 16px; height: 16px; fill: none; stroke: var(--lapis); stroke-width: 2; }
.branchbtn:hover { border-color: var(--gold-ink); }
.branchbtn:active { transform: scale(.97); }
.branchbtn.is-set { background: var(--tint); border-color: var(--gold-light); }

.search { position: relative; display: flex; align-items: center; flex: 1 1 auto; max-width: 260px; }
.search__icon { position: absolute; left: .8rem; width: 17px; height: 17px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }

.search input {
  width: 100%; font: inherit; font-size: .9rem; color: var(--ink);
  background: var(--surface-2);
  border: 1px solid transparent; border-radius: 100px;
  padding: .6rem 2.2rem .6rem 2.35rem;
  transition: all .25s var(--ease);
}
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; background: var(--paper); border-color: var(--gold-light); box-shadow: 0 0 0 4px var(--tint); }

.search__clear {
  position: absolute; right: .45rem;
  display: grid; place-items: center;
  width: 25px; height: 25px; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer;
}
.search__clear svg { width: 12px; height: 12px; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }
.search__clear:active { transform: scale(.9); }

/* ─────────── кнопки ─────────── */

.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem;
  border: 1px solid transparent; border-radius: 100px;
  font-weight: 700; font-size: .9rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translate(var(--tx), var(--ty));
  transition: transform .35s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.btn--lg { padding: .9rem 1.5rem; font-size: .97rem; }

.btn--primary { background: var(--lapis-deep); color: var(--panel); box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(217, 164, 65, .45); }
.btn--primary:hover { background: var(--hot); }
.btn--primary:active { transform: translate(var(--tx), var(--ty)) scale(.97); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.btn--ghost:active { transform: scale(.97); }

.btn--full { width: 100%; }

.btn--wa { background: var(--wa); color: #fff; width: 100%; box-shadow: var(--shadow-sm); }
.btn--wa:hover { background: #178c46; }
.btn--wa:active { transform: scale(.985); }
.btn--wa.is-disabled { background: var(--line-2); color: var(--ink-3); cursor: not-allowed; box-shadow: none; }

/* ─────────── навигация по разделам ─────────── */

.bleed {
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --bleed: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter)));
}

.catnav {
  position: relative; display: flex; gap: .3rem;
  padding: 0 var(--bleed) .65rem;
  scroll-padding-inline: var(--bleed);
  overflow-x: auto; scrollbar-width: none;
}
.catnav::-webkit-scrollbar { display: none; }

.catnav__link {
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: .05rem;
  padding: .35rem .75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-2);
  transition: all .25s var(--ease);
}
.catnav__link b { font-size: .84rem; font-weight: 700; letter-spacing: -.01em; }
.catnav__link i { font-style: normal; font-size: .64rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.catnav__link:hover { background: var(--surface-2); color: var(--ink); }
.catnav__link.is-active { background: var(--lapis-deep); color: var(--panel); }
.catnav__link.is-active i { color: var(--gold-light); }

/* ─────────── герой ─────────── */

.hero { padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(2.4rem, 6vw, 4.5rem); }

.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

/* ковровая кайма: гранат, золото, бирюзовые ромбы — как край сюзане.
   border-image не дружит со скруглением, поэтому листы прямоугольные. */
.carpet, .sheet, .hero__copy, .gate__panel {
  border: var(--carpet-w) solid var(--garnet);
  border-image: var(--carpet) 18 round;
  border-radius: 0;
}

.hero__copy {
  position: relative;
  background: var(--panel);
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.8rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* розетка знака водяным знаком в углу панели */
.hero__copy::before {
  content: '';
  position: absolute; right: -70px; bottom: -70px;
  width: 300px; height: 300px;
  background: url('img/mark.svg?v=20261026') center / contain no-repeat;
  opacity: .1;
  pointer-events: none;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__copy > * { position: relative; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.04; letter-spacing: -.015em;
  margin: 1rem 0 0;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--hot); }

/* фото шашлыка прямо в строке заголовка */
.pill {
  display: inline-block;
  width: 1.9em; height: .82em;
  margin: 0 .06em;
  vertical-align: .02em;
  border-radius: 100px;
  background: url('img/d/kebab-lamb.jpg?v=20261026') center 58% / 150% auto no-repeat;
  box-shadow: inset 0 0 0 2px var(--gold);
  transform: rotate(-4deg);
}

.hero__lede { margin: 1.3rem 0 0; max-width: 46ch; font-size: 1.02rem; color: var(--ink-2); line-height: 1.62; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }

/* портал-пештак: арка с фото в стене из майолики, всё — в ковровой кайме */
.hero__art {
  position: relative;
  padding: 22px 22px 0;
  background: var(--tile) 0 0 / 40px 40px;
  border: var(--carpet-w) solid var(--garnet);
  border-image: var(--carpet) 18 round;
  box-shadow: var(--shadow-lg);
}
.hero__art::before {
  content: '';
  position: absolute; z-index: 1; inset: 14px 14px 0;
  background: var(--arch-line) center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero__plate {
  aspect-ratio: 4 / 5;
  background: #fff;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
  mask: var(--arch) center / 100% 100% no-repeat;
}
.hero__plate img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; animation: heroIn 1.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.12); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 899px) { .hero__art { max-width: 460px; width: 100%; margin-inline: auto; } }

/* ─────────── лента между героем и меню ─────────── */

.ribbon {
  overflow: hidden;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
  padding: 20px 0;
  background:
    var(--band) 0 4px / 34px 14px repeat-x,
    var(--band) 0 calc(100% - 4px) / 34px 14px repeat-x,
    var(--turq-deep);
  border-block: 4px solid var(--garnet);
}
.ribbon__track {
  display: flex; width: max-content;
  animation: ribbon 38s linear infinite;
}
.ribbon__track span {
  display: inline-flex; align-items: center; gap: 1.4rem;
  padding-right: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--panel);
  white-space: nowrap;
}
.ribbon__track span::after {
  content: '';
  width: 12px; height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ─────────── панель меню ─────────── */

#menu { padding-top: clamp(1rem, 3vw, 2rem); scroll-margin-top: var(--topbar-h); }

.sheet { background: var(--panel); box-shadow: var(--shadow-lg); }

.menubar {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1rem;
  padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.2rem, 3vw, 2.2rem) 1.1rem;
}
.menubar .eyebrow { justify-content: center; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  padding: .45rem .9rem;
  border: 1px solid var(--line-2); border-radius: 100px;
  background: transparent; font-size: .84rem; font-weight: 700;
  color: var(--ink-2); cursor: pointer;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--gold-ink); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--turq-deep); border-color: var(--turq-deep); color: #fff; }

.results {
  margin: 0; padding: 0 clamp(1.2rem, 3vw, 2.2rem) .4rem;
  font-size: .84rem; color: var(--ink-3); min-height: 1.2em; text-align: center;
}

.sec {
  position: relative;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.2rem) 0;
  scroll-margin-top: var(--topbar-h);
}

/* шапка раздела симметрична, как надпись над порталом:
   второй язык между звёздами, заголовок, подпись и рога-разделитель */
.sec__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .35rem; padding-bottom: 1.6rem;
}
.sec__head::after {
  content: '';
  order: 9;
  width: 200px; height: 24px; margin-top: .5rem;
  background: var(--divider) center / contain no-repeat;
}
.sec__titles { display: flex; flex-direction: column; align-items: center; gap: .25rem; }

.sec__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -.01em; margin: 0;
}
.sec__kicker { margin: 0; font-size: .88rem; color: var(--ink-2); }
.sec__count { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--turq-ink); font-variant-numeric: tabular-nums; }

.sec__kk {
  display: flex; align-items: center; gap: .6rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink);
  pointer-events: none;
}
.sec__kk::before, .sec__kk::after {
  content: '';
  width: 9px; height: 9px; flex-shrink: 0;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* разделы разделены полосой изразцов, как пояс на стене медресе */
.sec + .sec::before, .cluster::before {
  content: '';
  display: block;
  height: 22px;
  margin: 0 calc(-1 * clamp(1.2rem, 3vw, 2.2rem)) clamp(1.8rem, 3.5vw, 2.6rem);
  background: var(--tile) center / 20px 20px repeat-x;
  border-block: 1px solid var(--gold);
}
.cluster::before { grid-column: 1 / -1; margin: clamp(1.8rem, 4vw, 3rem) 0 0; }

.sec__note {
  margin: -.5rem 0 1.3rem;
  padding: .55rem .85rem;
  border-radius: var(--r-sm);
  background: var(--tint);
  font-size: .8rem; color: var(--ink-2);
}

/* ─────────── фото ─────────── */

.thumb { position: relative; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }

.thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .6) 50%, transparent 80%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
.thumb.is-loaded::after, .thumb.is-empty::after { display: none; }

.thumb > img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.thumb.is-loaded > img { opacity: 1; }

@keyframes shimmer { from { background-position: 140% 0; } to { background-position: -60% 0; } }

/* без фото плитка должна читаться как фирменная, а не как битая картинка */
/* без фото ниша остаётся светлой, в ней — розетка знака */
.thumb.is-empty {
  background:
    radial-gradient(70% 60% at 50% 62%, rgba(217, 164, 65, .28), transparent 70%),
    var(--paper);
}
.thumb__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--lapis); }
.thumb__none svg {
  width: 52%; max-width: 74px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .42;
}
.thumb__none img { width: 42%; max-width: 96px; opacity: .9; }

/* ─────────── бейджи ─────────── */

.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .5rem; border-radius: 100px;
  font-size: .64rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.badge--hit { background: var(--hot-soft); color: var(--hot); }
.badge--new { background: var(--hot); color: #fff; }
.badge--persons { background: var(--tint); color: var(--lapis); }

/* ─────────── кнопка «в заказ» ─────────── */

.add {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--paper); cursor: pointer;
  transition: all .25s var(--ease);
}
.add svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; }
.add:hover { border-color: var(--lapis); background: var(--lapis); }
.add:hover svg { stroke: #fff; }
.add:active { transform: scale(.88); }
.add--sm { width: 32px; height: 32px; }
.add--sm svg { width: 15px; height: 15px; }

.add { position: relative; }

/* счётчик прямо в карточке меню, когда позиция уже в заказе */
.qty { display: inline-flex; align-items: center; flex-shrink: 0; }
.stepper--card { padding: .1rem; border-color: var(--lapis); background: var(--paper); box-shadow: var(--shadow-sm); }
.stepper--card button { width: 30px; height: 30px; color: var(--lapis); font-size: 1.05rem; }
.stepper--card span { min-width: 18px; font-size: .82rem; }
.qty--sm .stepper--card button { width: 26px; height: 26px; font-size: .95rem; }
.qty--sm .stepper--card span { min-width: 16px; font-size: .78rem; }

/* ─────────── сеты ─────────── */

.sets { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.set {
  grid-column: span 12;
  position: relative; display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--gold-light); border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line-2);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
@media (min-width: 640px) { .set { grid-column: span 6; } }
@media (min-width: 1024px) { .set { grid-column: span 4; } }
.set:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--line-2); }
.set:hover .thumb > img { transform: scale(1.035); }

/* фото стоит в стрельчатой нише: углы над аркой и простенки — майолика,
   по краю арки золотая обводка, под нишей — гранатовый порожек */
.set__niche {
  position: relative;
  padding: 12px 12px 0;
  background: var(--tile) center top / 30px 30px;
  border-bottom: 4px solid var(--garnet);
}
.set__niche::before {
  content: '';
  position: absolute; z-index: 1; inset: 7px 7px 0;
  background: var(--arch-line) center / 100% 100% no-repeat;
  pointer-events: none;
}
.set__media {
  aspect-ratio: 5 / 4;
  border-radius: 0;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
  mask: var(--arch) center / 100% 100% no-repeat;
}
.set__media.is-loaded:not(.is-empty) { background: #fff; }
.set__flags { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .35rem; z-index: 2; }
.set__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.2rem 1.25rem; }
.set__kk { margin: 0 0 .15rem; font-size: .72rem; font-weight: 600; color: var(--turq-ink); }
.set__name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.22rem; letter-spacing: 0; line-height: 1.2; }

/* фото «вырастает» из ниши при прокрутке (где браузер умеет view-timeline) */
@supports (animation-timeline: view()) {
  .set__media > img { animation: niche linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes niche { from { transform: scale(1.18); filter: saturate(.6); } to { transform: none; filter: none; } }
  .set:hover .thumb > img { scale: 1.05; }
}
.set__persons { margin: .5rem 0 0; }
.set__desc { margin: .65rem 0 1.1rem; font-size: .85rem; line-height: 1.55; color: var(--ink-2); }
.set__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.set__price { font-size: 1.2rem; }
.price--soon { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }

/* ─────────── рыба ─────────── */

.fishgroup + .fishgroup { margin-top: 2.4rem; }
.fishgroup__head { display: flex; align-items: baseline; gap: .7rem; border-top: 1px solid var(--line); padding: .85rem 0 1rem; }
.fishgroup__label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fishgroup__hint { font-size: .78rem; color: var(--ink-3); }

.fishgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .7rem; }
@media (min-width: 700px) { .fishgrid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 1rem; } }

.fish { position: relative; display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.fish:hover { transform: translateY(-4px); }
.fish:hover .thumb > img { transform: scale(1.05); }
.fish__media { aspect-ratio: 1; border-radius: var(--r); border: 1px solid var(--line); }
.fish__flags { position: absolute; top: .55rem; left: .55rem; z-index: 2; display: flex; gap: .3rem; }
.fish__kk { margin: .7rem 0 0; font-size: .68rem; font-weight: 600; color: var(--gold-ink); }
.fish__name { margin: .1rem 0 0; font-size: .93rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.28; }
.fish__desc { margin: .2rem 0 0; font-size: .74rem; color: var(--ink-3); line-height: 1.4; }
.fish__foot { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.fish__w { font-size: .76rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fish__price { font-size: .98rem; }
.fish > .qty { position: absolute; right: .5rem; top: .5rem; }
.fish > .qty .add { box-shadow: var(--shadow-sm); }

/* ─────────── строки ─────────── */

/* minmax(0,…) — иначе трек растягивается по min-content строки и вылезает за панель */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .rows { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.6rem; } }

.row { display: flex; align-items: center; gap: .9rem; min-width: 0; padding: .9rem 0; border-top: 1px solid var(--line); }
.row:hover .thumb > img { transform: scale(1.05); }
.row__media { width: 78px; height: 78px; border-radius: var(--r-sm); }
.row__body { flex: 1; min-width: 0; }
.row__kk { margin: 0; font-size: .68rem; font-weight: 600; color: var(--gold-ink); }
.row__name { margin: .05rem 0 0; font-size: .95rem; font-weight: 700; letter-spacing: -.015em; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.row__w { font-size: .76rem; font-weight: 600; color: var(--ink-3); }
.row__desc { margin: .2rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.row__end { display: flex; align-items: center; gap: .7rem; }
.row__price { font-size: 1rem; }

/* ─────────── компактные списки ─────────── */

.cluster { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem); }
@media (min-width: 820px) { .cluster { grid-template-columns: 1fr 1fr; align-items: start; } }
.cluster .sec { padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.cluster .sec__title { font-size: 1.2rem; }

.lrow { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.lrow__name { font-size: .91rem; font-weight: 600; letter-spacing: -.01em; }
.lrow__w { font-size: .78rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lrow__dots { flex: 1 1 auto; min-width: 1.2rem; border-bottom: 1px dotted var(--line-2); transform: translateY(-.2em); }
.lrow__price { font-size: .93rem; }
.lrow__desc { flex-basis: 100%; margin: 0; font-size: .76rem; color: var(--ink-3); order: 9; }

/* ─────────── пусто ─────────── */

.empty {
  display: grid; justify-items: center; text-align: center; gap: .5rem;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1rem;
  background: var(--panel);
}
.empty__mark { width: 72px; height: 72px; }
.empty h3 { margin: .3rem 0 0; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.empty p { margin: 0 0 .8rem; max-width: 42ch; color: var(--ink-2); font-size: .9rem; }

/* меню без блока об обслуживании — панель закрывается здесь */
#sections { padding-bottom: clamp(1.8rem, 4vw, 3rem); }

/* в режиме брони меню только для просмотра — заказ оформляется в чате */
body.is-reserve .qty { display: none; }

/* ─────────── филиалы ─────────── */

.places { padding: clamp(1.6rem, 4vw, 2.6rem) 0 0; }
.places__sheet { padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.2rem, 3vw, 2.2rem) clamp(1.6rem, 4vw, 2.4rem); }
.places__sheet .eyebrow, .menubar .eyebrow { justify-content: center; text-align: center; }
.places__sheet .h2 { text-align: center; }
.places__sheet .h2::after {
  content: '';
  display: block;
  width: 200px; height: 24px; margin: .7rem auto 0;
  background: var(--divider) center / contain no-repeat;
}

/* аркада между последним листом и подвалом */
.arcade {
  height: 40px;
  margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  background: url('img/arcade.svg?v=20261026') center bottom / 44px 40px repeat-x;
  border-bottom: 3px solid var(--gold);
}
.places__list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 820px) { .places__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }

.place { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .85rem 0; border-top: 1px solid var(--line); }
.place__main { display: flex; flex-direction: column; }
.place__city { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.place__street { font-weight: 700; font-size: .95rem; letter-spacing: -.015em; }
.place__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.place__hours { font-size: .76rem; font-weight: 600; color: var(--gold-ink); }
.place__tel { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.place__tel i { font-style: normal; font-weight: 700; color: var(--ink-3); }
.place__tel:hover { color: var(--lapis); }
.place__wa { font-size: .74rem; color: var(--wa); font-weight: 700; }
.place__soon { font-size: .74rem; color: var(--ink-3); font-weight: 600; }


/* ─────────── подвал ─────────── */

.foot { padding: 0 0 6rem; color: var(--panel); }
.foot__grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
.foot__logo { width: auto; height: 70px; }
.foot__tagline { margin: .9rem 0 0; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; max-width: 22ch; line-height: 1.3; color: var(--gold-light); }
.foot__links { display: grid; gap: .5rem; justify-items: start; }
.foot__links a { font-size: .9rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.foot__links a:hover { border-bottom-color: currentColor; }
.foot__note { grid-column: 1 / -1; margin: .5rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .76rem; line-height: 1.6; color: rgba(255, 255, 255, .66); max-width: 70ch; }

/* ─────────── выбор филиала ─────────── */

.gate {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(8, 14, 32, .74);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .26s var(--ease);
}
.gate.is-open { opacity: 1; }

.gate__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 88dvh; overflow-y: auto;
  background: var(--panel);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98);
  transition: transform .32s var(--ease);
}
.gate.is-open .gate__panel { transform: none; }

.gate__close {
  position: absolute; top: 1rem; right: 1rem;
  display: grid; place-items: center;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--surface-2); cursor: pointer;
}
.gate__close svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }

.gate__back {
  position: absolute; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .38rem .8rem .38rem .55rem;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface-2); cursor: pointer;
  font-size: .76rem; font-weight: 700; color: var(--ink-2);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.gate__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gate__back:hover { border-color: var(--lapis); color: var(--ink); }
.gate__back:active { transform: scale(.97); }

.gate__logo { width: auto; height: 78px; margin-top: .4rem; }
.gate__back:not(.is-hidden) ~ .gate__logo { margin-top: 2.4rem; }
.gate__kk { margin: .8rem 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.gate__title { margin: .3rem 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3.2vw, 1.8rem); line-height: 1.18; }
.gate__lede { margin: .6rem 0 1.3rem; font-size: .9rem; color: var(--ink-2); }

.gate__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.pick {
  width: 100%; text-align: left;
  display: grid; gap: .1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); cursor: pointer;
  transition: all .25s var(--ease);
}
.pick:hover:not(:disabled) { border-color: var(--lapis); background: var(--tint); transform: translateY(-2px); }
.pick:active:not(:disabled) { transform: scale(.99); }
.pick:disabled { opacity: .55; cursor: not-allowed; }
.pick__city { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.pick__name { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }
.pick__addr { font-size: .82rem; color: var(--ink-2); }
.pick__hours { font-size: .74rem; font-weight: 600; color: var(--lapis); }
.pick__soon { font-size: .72rem; font-weight: 700; color: var(--hot); }
.pick__partial { font-size: .72rem; font-weight: 700; color: var(--ink-3); }

/* ─────────── формы: бронь и данные гостя ─────────── */

.gate__form { display: grid; gap: .7rem; text-align: left; }

.fieldrow { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; }

.field { display: grid; gap: .28rem; }
.field__label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.field input {
  width: 100%;
  padding: .72rem .9rem;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: .92rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus {
  outline: none; border-color: var(--gold-light);
  box-shadow: 0 0 0 4px var(--tint);
}

.formerr {
  margin: 0; padding: .5rem .8rem;
  border-radius: var(--r-sm); background: var(--hot-soft);
  font-size: .8rem; font-weight: 600; color: var(--hot);
}

.checkout { display: grid; gap: .7rem; margin-bottom: .2rem; text-align: left; }
.checkout__title { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ─────────── корзина ─────────── */

.cartfab {
  position: fixed; left: 50%; bottom: 1.1rem; z-index: 45;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem .8rem .95rem;
  border: 0; border-radius: 100px;
  background: var(--lapis-deep); color: var(--panel);
  font-weight: 700; font-size: .92rem;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--gold);
  cursor: pointer;
  transition: transform .3s var(--ease), background .25s var(--ease);
}
.cartfab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cartfab:hover { background: var(--lapis); }
.cartfab:active { transform: translateX(-50%) scale(.96); }
.cartfab.is-bump { animation: bump .45s var(--ease); }
@keyframes bump {
  0% { transform: translateX(-50%) scale(1); }
  40% { transform: translateX(-50%) scale(1.09); }
  100% { transform: translateX(-50%) scale(1); }
}
.cartfab__count {
  min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 100px; background: var(--hot);
  font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.cartfab__total { font-variant-numeric: tabular-nums; }

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(8, 14, 32, .62); backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(430px, 100%);
  display: flex; flex-direction: column;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  /* ковровая кайма только по открытому краю корзины */
  border: solid var(--garnet);
  border-width: 0 0 0 var(--carpet-w);
  border-image: var(--carpet) 18 round;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }

@media (max-width: 620px) {
  .drawer__panel {
    right: 0; left: 0; top: auto; width: auto; max-width: 100%;
    max-height: 92dvh;
    border-width: var(--carpet-w) 0 0;
    transform: translateY(100%);
  }
}

.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem .8rem; }
.drawer__title { margin: .2rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.drawer__close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; flex-shrink: 0; }
.drawer__close svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; }

.drawer__branch { margin: 0 1.3rem .6rem; padding: .65rem .85rem; border-radius: var(--r-sm); background: var(--tint); display: grid; gap: .1rem; }
.drawer__branch b { font-size: .88rem; }
.drawer__branch span { font-size: .78rem; color: var(--ink-2); }

/* самовывоз ↔ доставка прямо в корзине */
.modeswitch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  margin: 0 1.3rem .7rem;
  padding: 3px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--paper);
}
.modeswitch__btn {
  border: 0; border-radius: 100px; cursor: pointer;
  padding: .5rem .7rem; background: transparent;
  font-size: .8rem; font-weight: 700; color: var(--ink-3);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.modeswitch__btn:hover { color: var(--ink); }
.modeswitch__btn.is-active { background: var(--lapis); color: #fff; }

/* доставку гость заказывает сам — предупреждаем до оформления */
.drawer__notice {
  margin: 0 0 .7rem;
  padding: .7rem .9rem;
  border-radius: var(--r-sm);
  background: var(--hot-soft);
  border-left: 3px solid var(--hot);
}
.drawer__notice-title {
  margin: 0 0 .2rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--hot);
}
.drawer__notice-text { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--ink-2); }

/* flex-basis: auto — иначе длинное предупреждение о доставке съедает
   всю высоту и список заказа схлопывается в ноль */
.drawer__body { flex: 1 1 auto; min-height: 5rem; overflow-y: auto; padding: 0 1.3rem; }

/* ─────────── проверка филиала перед отправкой ─────────── */

.drawer__confirm { display: none; }
.drawer.is-confirm .drawer__confirm {
  flex: 1;
  display: flex; flex-direction: column; align-content: start;
  gap: .5rem; padding: 1.4rem 1.3rem 1.6rem; overflow-y: auto;
}
.drawer.is-confirm .drawer__branch,
.drawer.is-confirm .modeswitch,
.drawer.is-confirm .drawer__body,
.drawer.is-confirm .drawer__empty,
.drawer.is-confirm .drawer__foot { display: none; }

.confirm__eyebrow { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.confirm__title { margin: .1rem 0 .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.25; letter-spacing: -.01em; }

/* филиал — самый крупный элемент экрана: его и нужно перепроверить */
.confirm__branch {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem; border: 2px solid var(--lapis); border-radius: var(--r);
  background: var(--tint);
}
.confirm__pin { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--lapis); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.confirm__branch-body { min-width: 0; }
.confirm__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; color: var(--lapis-deep); }
.confirm__addr { margin: .28rem 0 0; font-size: .87rem; line-height: 1.4; color: var(--ink-2); }
.confirm__wa { margin: .3rem 0 0; font-size: .8rem; font-weight: 700; color: var(--lapis); font-variant-numeric: tabular-nums; }

.confirm__meta { margin: .75rem 0 0; display: grid; gap: .35rem; }
.confirm__meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.confirm__meta-row dt { font-size: .84rem; color: var(--ink-2); }
.confirm__meta-row dd { margin: 0; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.confirm__warn {
  margin: .85rem 0 1rem; padding: .7rem .85rem;
  border-radius: var(--r-sm); background: var(--hot-soft);
  font-size: .8rem; line-height: 1.5; color: #8d2a1c;
}

.drawer__confirm .btn--full + .btn--full { margin-top: .5rem; }
.confirm__back {
  margin: .7rem auto 0; padding: .4rem .6rem;
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
}
.confirm__back:hover { color: var(--ink); }

/* ─────────── спасибо за заказ ─────────── */

.drawer__done { display: none; }
.drawer.is-done .drawer__done {
  flex: 1;
  display: grid; align-content: center; justify-items: center; gap: .55rem;
  padding: 2rem 1.6rem; text-align: center;
}
.drawer.is-done .drawer__branch,
.drawer.is-done .modeswitch,
.drawer.is-done .drawer__body,
.drawer.is-done .drawer__empty,
.drawer.is-done .drawer__foot { display: none; }

.drawer__done-mark {
  width: 62px; height: 62px;
  fill: none; stroke: var(--wa); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.drawer__done-title { margin: .4rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.drawer__done-text { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.drawer__done-branch { margin: .2rem 0 .9rem; font-size: .82rem; font-weight: 700; color: var(--lapis); }
.drawer__done .btn--full + .btn--full { margin-top: .5rem; }

.line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .7rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.line__body { min-width: 0; }
.line__name { margin: 0; font-size: .89rem; font-weight: 700; line-height: 1.3; }
.line__name span { font-weight: 600; color: var(--ink-3); }
.line__price { margin: .1rem 0 0; font-size: .76rem; color: var(--ink-3); }
.line__sum { margin: 0; font-family: var(--font-display); font-size: .88rem; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }

.stepper { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid var(--line-2); border-radius: 100px; padding: .12rem; }
.stepper button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; font-size: 1rem; font-weight: 700; line-height: 1; cursor: pointer; }
.stepper button:hover { background: var(--surface-2); }
.stepper button:active { transform: scale(.9); }
.stepper span { min-width: 20px; text-align: center; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.drawer__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: .8rem; padding: 2rem 2.2rem; text-align: center; }
.drawer__empty-mark { width: 64px; height: 64px; }
.drawer__empty p { margin: 0; font-size: .88rem; color: var(--ink-2); max-width: 30ch; }

.drawer__foot { padding: 1rem 1.3rem 1.3rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.sum { margin: 0 0 .9rem; display: grid; gap: .3rem; }
.sum__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sum__row dt { font-size: .84rem; color: var(--ink-2); }
.sum__row dd { margin: 0; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum__row--total dt { font-weight: 700; color: var(--ink); }
.sum__row--total dd { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.drawer__note { margin: .7rem 0 0; font-size: .74rem; color: var(--ink-3); text-align: center; }

/* ─────────── тост ─────────── */

.toast {
  position: fixed; left: 50%; bottom: 5.2rem; z-index: 80;
  transform: translate(-50%, 12px);
  padding: .6rem 1.1rem; border-radius: 100px;
  background: var(--ink); color: #fff;
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ─────────── появление ─────────── */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}

@media (max-width: 719px) {
  :root { --topbar-h: 180px; --carpet-w: 10px; }
  .topbar__row { flex-wrap: wrap; row-gap: .5rem; }
  .topbar__tools { display: contents; }
  /* шапка держится в две строки: знак + филиал + язык, затем поиск */
  .branchbtn { order: 1; min-width: 0; max-width: 36vw; padding-inline: .75rem; }
  .branchbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang { order: 2; padding: 2px; }
  .lang__btn { padding: .3rem .5rem; font-size: .64rem; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  /* знак шире прежнего, поэтому в узкой шапке он не растёт и при прокрутке */
  .brand__logo, .topbar.is-compact .brand__logo { height: 34px; }
  .topbar__row { column-gap: .6rem; }
  .fieldrow { grid-template-columns: 1fr; }
  .hero__copy { padding: 1.6rem 1.1rem 1.5rem; }
  .hero__art { padding: 16px 16px 0; }
  .hero__art::before { inset: 10px 10px 0; }
  .set__niche { padding: 10px 10px 0; }
  .set__niche::before { inset: 6px 6px 0; }
  .cartfab { bottom: .9rem; }
}

/* ─────────── казахская типографика ───────────
   Қ, ғ, ң, ү, ұ, ә, ө несут хвосты и лишние штрихи —
   по-казахски строкам заголовков нужно чуть больше воздуха. */

html[lang="kk"] .hero__title { line-height: 1.1; }
html[lang="kk"] .h2 { line-height: 1.16; text-wrap: balance; }
html[lang="kk"] .sec__title { line-height: 1.14; }
html[lang="kk"] .gate__title { line-height: 1.24; }
html[lang="kk"] .drawer__title { line-height: 1.22; }
html[lang="kk"] .set__name { line-height: 1.3; }
html[lang="kk"] .foot__tagline { line-height: 1.4; }

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