/* ==========================================================
   GUSSI — «Салон на Мира, 26 × Печатная карта»
   Self-hosted WOFF2 шрифты, вогнутые плашки, ноль внешних ресурсов.
   ========================================================== */

/* ---------- 1. Self-hosted WOFF2 шрифты ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Токены палитры и типографики ---------- */
:root {
  --salon-deep:  #1A211B;
  --salon-mid:   #263026;
  --walnut:      #221914;
  --salon-ink:   #F2EAE0;
  --salon-muted: #BEB5A7;

  --paper:       #F2EAE0;
  --paper-card:  #FAF6EE;
  --paper-tint:  #E8DFCF;
  --ink:         #1B1E1B;
  --frame:       #36393B;
  --muted:       #636058;

  --persimmon:   #F07231;
  --brass:       #A98442;
  --brass-soft:  rgba(169, 132, 66, 0.36);
  --oxblood:     #541B26;
  --accent-ed:   #541B26;

  --line:        rgba(54, 57, 59, 0.16);
  --line-strong: rgba(54, 57, 59, 0.34);
  --card-border: rgba(54, 57, 59, 0.22);
  --mat-border:  rgba(54, 57, 59, 0.12);
  --salon-line:  rgba(242, 234, 224, 0.16);
  --shadow-card: 0 2px 10px rgba(27, 30, 27, 0.05), 0 1px 2px rgba(27, 30, 27, 0.04);
  --shadow-modal: 0 24px 64px rgba(18, 22, 18, 0.48);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-in:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 1, 1);
  --pad: 16px;
}

/* ---------- 2b. Вечерний салон (Тёмная тема) ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --salon-deep:  #131814;
  --salon-mid:   #1E261F;
  --walnut:      #1D1611;
  --salon-ink:   #F1E9DD;
  --salon-muted: #B6AEA0;

  --paper:       #181F19;
  --paper-card:  #202821;
  --paper-tint:  #1B231C;
  --ink:         #F1E9DD;
  --frame:       rgba(197, 162, 93, 0.62);
  --muted:       #B2AA9B;

  --brass:       #C5A25D;
  --brass-soft:  rgba(197, 162, 93, 0.34);
  --accent-ed:   #D2AC6A;

  --line:        rgba(241, 233, 221, 0.12);
  --line-strong: rgba(197, 162, 93, 0.36);
  --card-border: rgba(197, 162, 93, 0.24);
  --mat-border:  rgba(241, 233, 221, 0.1);
  --shadow-card: 0 4px 18px rgba(7, 10, 8, 0.36);
}

/* ---------- 3. Базовые правила ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 62px;
  scrollbar-color: var(--brass) var(--salon-deep);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-dialog-open { overflow: hidden; }

::selection { background: rgba(240, 114, 49, 0.22); color: var(--ink); }
.hero ::selection, .nav ::selection, .footer ::selection, .sheet ::selection {
  background: rgba(240, 114, 49, 0.36); color: var(--salon-ink);
}
:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }

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

/* ---------- 4. Вогнутые плашки и латунные таблички ---------- */
.plaque, .hero__frame, .mini-card {
  position: relative;
  --plaque-stroke: var(--frame);
  background-image:
    linear-gradient(var(--plaque-stroke), var(--plaque-stroke)),
    linear-gradient(var(--plaque-stroke), var(--plaque-stroke)),
    linear-gradient(var(--plaque-stroke), var(--plaque-stroke)),
    linear-gradient(var(--plaque-stroke), var(--plaque-stroke));
  background-position: center top, center bottom, left center, right center;
  background-size: calc(100% - 20px) 1px, calc(100% - 20px) 1px, 1px calc(100% - 20px), 1px calc(100% - 20px);
  background-repeat: no-repeat;
}

.plaque__c {
  position: absolute; width: 10px; height: 10px;
  color: var(--plaque-stroke); pointer-events: none;
}
.plaque__c--tl { top: 0; left: 0; }
.plaque__c--tr { top: 0; right: 0; transform: scaleX(-1); }
.plaque__c--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.plaque__c--br { bottom: 0; right: 0; transform: scale(-1); }

.plaque { display: inline-block; max-width: 100%; }
.plaque__inner { position: relative; z-index: 1; }

.plaque__logo {
  display: inline-block;
  width: calc(1.04em * 616 / 150);
  height: 1.04em;
  transform: translateY(0.18em);
  flex-shrink: 0;
  color: var(--ink);
}

.brass-plate {
  display: inline-block;
  padding: 3px 11px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--walnut);
  background: linear-gradient(180deg, #C7A666 0%, #B18C4A 100%);
  border: 1px solid rgba(250, 246, 238, 0.32);
}

/* ---------- 5. Салонный Hero ---------- */
.hero {
  background: var(--salon-deep);
  color: var(--salon-ink);
  padding: 12px var(--pad) 16px;
  border-bottom: 1px solid var(--brass-soft);
}

.hero__frame {
  max-width: 1180px; margin: 0 auto;
  padding: 20px 18px 22px;
  --plaque-stroke: rgba(169, 132, 66, 0.52);
}
.hero__frame::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(242, 234, 224, 0.12);
  pointer-events: none;
}

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; }
.hero__content { text-align: center; }

.hero__topbar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.hero__meta {
  margin: 0;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--salon-muted);
}

.theme-toggle {
  appearance: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 3px 10px;
  background: rgba(242, 234, 224, 0.05);
  border: 1px solid rgba(169, 132, 66, 0.42);
  color: var(--salon-muted);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--salon-ink); border-color: var(--brass); background: rgba(242, 234, 224, 0.09); }
.theme-toggle__ico { width: 14px; height: 14px; color: var(--brass); flex-shrink: 0; }
.theme-toggle__ico--sun { display: none; }
html[data-theme="dark"] .theme-toggle__ico--moon { display: none; }
html[data-theme="dark"] .theme-toggle__ico--sun { display: block; }

.hero__title { margin: 0; line-height: 0; }
.hero__logo {
  appearance: none; background: none; border: 0; padding: 2px 0;
  cursor: pointer; display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
.logo {
  display: block; width: min(64vw, 272px); height: auto;
  color: var(--salon-ink);
  transition: transform 240ms var(--ease-in);
}
.hero__logo:active .logo { transform: translateY(-2px); }

.plaque--hero {
  margin-top: 16px;
  --plaque-stroke: rgba(169, 132, 66, 0.68);
}
.plaque--hero .plaque__inner {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 3px 9px;
  padding: 7px 16px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--salon-ink);
}
.hero__hours-sep { color: var(--brass); }
.hero__hours-kitchen { transition: color 200ms ease, opacity 200ms ease; }
html.is-kitchen-closed .hero__hours-kitchen { color: var(--salon-muted); opacity: 0.68; }

.hero__lead {
  margin: 14px auto 0; max-width: 38ch;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(16px, 4.2vw, 18.5px); line-height: 1.4;
  color: var(--salon-muted);
}

.hero__art { display: none; margin: 0; }

@media (min-width: 860px) {
  .hero { padding: 18px 24px 22px; }
  .hero__frame { padding: 26px 38px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 34px; }
  .hero__content { text-align: left; }
  .hero__topbar { justify-content: flex-start; }
  .logo { width: min(100%, 336px); }
  .hero__lead { margin: 18px 0 0; font-size: 20px; }
  .hero__art { display: flex; flex-direction: column; align-items: center; justify-self: end; }
  .hero__triptych {
    display: grid;
    grid-template-columns: 202px 178px;
    gap: 12px;
    align-items: stretch;
  }
  .hero__stack { display: flex; flex-direction: column; gap: 12px; }
  .artframe {
    padding: 7px;
    background: var(--walnut);
    border: 1px solid rgba(169, 132, 66, 0.48);
    box-shadow: 0 16px 36px rgba(12, 16, 13, 0.5);
  }
  .artframe--sub { flex: 1; display: flex; }
  .artframe__mat {
    width: 100%; height: 100%; padding: 6px;
    background: #FAF6EE;
    border: 1px solid rgba(54, 57, 59, 0.24);
    overflow: hidden;
  }
  .artframe__mat img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 520ms var(--ease-in);
  }
  .artframe--main .artframe__mat img { aspect-ratio: 3 / 4; }
  .artframe--sub .artframe__mat img { aspect-ratio: 4 / 3; }
  .artframe:hover .artframe__mat img { transform: scale(1.03); }
  .hero__art .brass-plate { margin-top: 10px; }
}
@media (min-width: 1120px) {
  .hero__triptych { grid-template-columns: 222px 196px; gap: 14px; }
  .hero__stack { gap: 14px; }
}

/* ---------- 6. Sticky-навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(26, 33, 27, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brass-soft);
}
.nav__wrap { max-width: 1200px; margin: 0 auto; }

.nav__scroll {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  padding: 2px var(--pad);
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, rgba(27, 30, 27, 1) 16px, rgba(27, 30, 27, 1) calc(100% - 16px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(27, 30, 27, 1) 16px, rgba(27, 30, 27, 1) calc(100% - 16px), transparent 100%);
}
.nav__scroll::-webkit-scrollbar { display: none; }

.nav__link {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 11px;
  color: var(--salon-muted);
  text-decoration: none;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease;
}
.nav__link:first-of-type { margin-left: auto; }
.nav__link:last-of-type { margin-right: auto; }
.nav__link::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--persimmon);
  opacity: 0; transform: scale(0.4);
  transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in);
  flex-shrink: 0;
}
.nav__link:hover, .nav__link.is-active { color: var(--salon-ink); }
.nav__link.is-active::before { opacity: 1; transform: scale(1); }

.nav__indicator {
  position: absolute; left: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--persimmon), var(--brass));
  opacity: 0; pointer-events: none;
  transition: transform 280ms var(--ease-in), width 280ms var(--ease-in), opacity 180ms ease;
}
.nav__indicator.is-ready { opacity: 1; }

@media (min-width: 1100px) {
  .nav__scroll { mask-image: none; -webkit-mask-image: none; }
}

/* ---------- 7. Полотно меню и шапки разделов ---------- */
.folio {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px var(--pad) 52px;
}

.section { padding: 34px 0 8px; }
.section + .section { margin-top: 24px; border-top: 1px solid var(--line); }

.section--seasonal {
  margin-top: 14px;
  padding: 24px 12px 22px;
  background: var(--paper-tint);
  border: 1px solid rgba(169, 132, 66, 0.36);
}
.section--seasonal + .section { border-top: 0; margin-top: 18px; }

.section__head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 24px;
}
.plaque--section { --plaque-stroke: var(--frame); }
.section--seasonal .plaque--section { --plaque-stroke: var(--accent-ed); }
.plaque--section .plaque__inner { padding: 8px 22px 9px; }

.section__title {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(23px, 5.2vw, 32px); line-height: 1.14;
  letter-spacing: 0.015em;
  color: var(--ink);
  display: inline-flex; align-items: baseline; justify-content: center; gap: 0.3em; flex-wrap: wrap;
}

.section__meta {
  margin: 10px 0 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.season-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--persimmon); flex-shrink: 0; }

.section__story {
  margin: 10px auto 0; max-width: 56ch;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(16.5px, 2.8vw, 19px); line-height: 1.44;
  color: var(--muted);
}
.section__kitchen-status {
  display: none;
  margin: 10px 0 0;
  padding: 4px 12px;
  background: rgba(54, 57, 59, 0.08);
  border: 1px solid rgba(54, 57, 59, 0.18);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
html.is-kitchen-closed .section__kitchen-status { display: inline-flex; align-items: center; }

.empty {
  max-width: 460px; margin: 8px auto; padding: 20px;
  text-align: center; background: var(--paper-card);
  border: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.empty__title { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); }

/* ---------- 8. Фото-галерея (.gallery & .card) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card { min-width: 0; display: flex; }

.card__trigger {
  appearance: none; -webkit-appearance: none;
  width: 100%; display: flex; flex-direction: column; text-align: left;
  background: var(--paper-card);
  border: 1px solid var(--card-border);
  padding: 6px 6px 12px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
  -webkit-tap-highlight-color: transparent;
}
.card__mat {
  width: 100%; padding: 3px;
  border: 1px solid var(--mat-border);
  background: var(--paper);
}
.card__pic {
  position: relative; aspect-ratio: 3 / 4;
  overflow: hidden; background: var(--paper-tint);
}
.card__pic img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 360ms ease, transform 520ms var(--ease-in);
  will-change: transform;
}
.card__pic img.is-loaded { opacity: 1; }

@media (hover: hover) {
  .card__trigger:hover { border-color: rgba(169, 132, 66, 0.68); box-shadow: 0 8px 24px rgba(27, 30, 27, 0.09); }
  .card__trigger:hover .card__pic img.is-loaded { transform: scale(1.035); }
}

.card__tag {
  position: absolute; left: 7px; top: 7px; z-index: 2;
  padding: 3px 8px;
  background: rgba(26, 33, 27, 0.88);
  border: 1px solid rgba(169, 132, 66, 0.52);
  color: var(--salon-ink);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.card__kitchen-badge {
  display: none;
  position: absolute; left: 7px; top: 7px; z-index: 2;
  padding: 3px 8px;
  background: rgba(26, 33, 27, 0.82);
  border: 1px solid rgba(242, 234, 224, 0.22);
  color: var(--salon-ink);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* Кухня закрыта (до 08:00 и после 20:00 по Волгограду) */
html.is-kitchen-closed .card[data-kitchen="true"] .card__kitchen-badge { display: inline-block; }
html.is-kitchen-closed .card[data-kitchen="true"] .card__trigger {
  background: #E8E3DB;
  border-color: rgba(54, 57, 59, 0.14);
  box-shadow: none;
}
html.is-kitchen-closed .card[data-kitchen="true"] .card__mat {
  background: #E1DCD3;
  border-color: rgba(54, 57, 59, 0.1);
}
html.is-kitchen-closed .card[data-kitchen="true"] .card__pic { background: #DDD7CE; }
html.is-kitchen-closed .card[data-kitchen="true"] .card__pic img {
  filter: grayscale(0.95) contrast(0.9) brightness(0.94);
  opacity: 0.72;
}
html.is-kitchen-closed .card[data-kitchen="true"] .card__name,
html.is-kitchen-closed .card[data-kitchen="true"] .price-row__val { color: #757169; }
html.is-kitchen-closed .card[data-kitchen="true"] .price-row__vol,
html.is-kitchen-closed .card[data-kitchen="true"] .card__desc { color: #8D8981; }
@media (hover: hover) {
  html.is-kitchen-closed .card[data-kitchen="true"] .card__trigger:hover {
    border-color: rgba(54, 57, 59, 0.26);
    box-shadow: none;
  }
  html.is-kitchen-closed .card[data-kitchen="true"] .card__trigger:hover .card__pic img.is-loaded {
    transform: scale(1.015);
  }
}

.card__body { width: 100%; display: flex; flex-direction: column; flex: 1; padding: 10px 4px 0; }
.card__name {
  margin: 0;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.1rem, 2.7vw, 1.25rem); line-height: 1.2;
  color: var(--ink); overflow-wrap: break-word;
}
.card__desc { margin: 5px 0 0; font-size: 12px; line-height: 1.42; color: var(--muted); }

.card__prices { margin-top: auto; padding-top: 9px; display: flex; flex-direction: column; gap: 4px; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-top: 4px; border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.price-row:first-child { border-top: 0; padding-top: 0; }
.price-row__vol { font-size: 12px; color: var(--muted); white-space: nowrap; }
.price-row__val { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; margin-left: auto; }

/* ---------- 9. Подблок без фото (.showcase-more) ---------- */
.showcase-more { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.subsection__label {
  margin: 0 0 14px; text-align: center;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ed);
}
.plaque-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mini-card {
  --plaque-stroke: var(--line-strong);
  padding: 13px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
}
.mini-card__goose { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--brass); opacity: 0.92; }
.mini-card__name { grid-column: 2; margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.2; color: var(--ink); }
.mini-card__desc { grid-column: 2; margin: 0; font-size: 12.5px; line-height: 1.42; color: var(--muted); }
.mini-card__prices {
  grid-column: 3; grid-row: 1 / 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.mini-card__prices .price-row { border-top: 0; padding-top: 0; }

/* ---------- 10. Печатная карта (.carte) ---------- */
.carte { margin: 0 auto; }
.carte--single { max-width: 680px; }
.carte--two { max-width: 1040px; }
.carte__group + .carte__group { margin-top: 28px; }
.carte__group-title {
  margin: 0 0 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--brass-soft);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.22rem; color: var(--accent-ed);
}
.carte__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.carte--single .carte__row:last-child { border-bottom: 0; }
.carte__info { min-width: 0; flex: 1; }
.carte__name {
  margin: 0;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.12rem, 2.7vw, 1.26rem); line-height: 1.24;
  color: var(--ink);
}
.carte__desc, .carte__varieties { margin: 4px 0 0; font-size: 13px; line-height: 1.46; color: var(--muted); }
.carte__prices {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.carte__pair { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.carte__vol { font-size: 12px; color: var(--muted); white-space: nowrap; }
.carte__price { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; min-width: 4.5ch; text-align: right; }

@media (min-width: 580px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .card__trigger { padding: 8px 8px 14px; }
  .plaque-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
}
@media (min-width: 800px) {
  .carte--two .carte__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
}
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .folio {
    width: min(1180px, calc(100% - 48px));
    margin: 28px auto 48px; padding: 14px 34px 48px;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line), 0 0 0 9px var(--paper), 0 0 0 10px rgba(169, 132, 66, 0.24);
  }
  .section { padding: 42px 0 12px; }
  .section--seasonal { padding: 30px 28px 26px; }
  .plaque--section .plaque__inner { padding: 10px 28px 11px; }
}

/* ---------- 11. Подвал-колофон (.footer) ---------- */
.footer {
  background: var(--salon-deep);
  color: var(--salon-ink);
  border-top: 1px solid var(--brass-soft);
  padding: 44px var(--pad) calc(88px + env(safe-area-inset-bottom));
}
.footer__inner { max-width: 920px; margin: 0 auto; }

.footer__top {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
}
.footer__portrait {
  appearance: none; background: none; border: 0; padding: 0;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.portrait__frame {
  width: 138px; aspect-ratio: 3 / 4; padding: 6px;
  background: var(--walnut);
  border: 1px solid rgba(169, 132, 66, 0.58);
  border-radius: 69px 69px 6px 6px;
  box-shadow: 0 14px 32px rgba(12, 16, 13, 0.45);
  overflow: hidden;
  transition: transform 240ms var(--ease-in), border-color 200ms ease;
}
.portrait__frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 63px 63px 3px 3px;
}
.footer__portrait .brass-plate { margin-top: 10px; }
@media (hover: hover) {
  .footer__portrait:hover .portrait__frame { border-color: var(--persimmon); transform: translateY(-2px); }
}

.goose--footer { width: 34px; height: 34px; color: var(--brass); margin-bottom: 8px; }
.footer__wordmark {
  margin: 0;
  font-family: var(--serif); font-weight: 600;
  font-size: 26px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--salon-ink);
}
.footer__motto {
  margin: 4px 0 12px;
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--brass);
}
.footer__line { margin: 4px 0 0; font-size: 13.5px; color: var(--salon-ink); font-variant-numeric: tabular-nums; }
.footer__line--dim { color: var(--salon-muted); font-size: 13px; }

.footer__legal {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--salon-line);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.sign-s {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border: 1px solid rgba(169, 132, 66, 0.5);
  font-family: var(--serif); font-weight: 600; font-size: 17px;
  color: var(--brass);
}
.footer__small { margin: 0; font-size: 12px; line-height: 1.55; color: var(--salon-muted); max-width: 66ch; }

@media (min-width: 720px) {
  .footer__top { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 38px; text-align: left; }
  .footer__legal { flex-direction: row; justify-content: space-between; text-align: left; gap: 20px; }
}

/* ---------- 12. Нижний thumb-zone модуль (.dock) ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: stretch;
  background: rgba(26, 33, 27, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(169, 132, 66, 0.56);
  box-shadow: 0 12px 32px rgba(12, 16, 13, 0.44);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 170ms var(--ease-out), transform 170ms var(--ease-out);
}
.dock.is-on {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 280ms var(--ease-in), transform 280ms var(--ease-in);
}
.dock__sections {
  appearance: none; background: none; border: 0;
  min-height: 46px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--salon-ink);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
}
.dock__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 6px;
  background: rgba(169, 132, 66, 0.22);
  border: 1px solid rgba(169, 132, 66, 0.45);
  font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dock__theme, .dock__top {
  appearance: none; background: none; border: 0;
  border-left: 1px solid rgba(169, 132, 66, 0.32);
  min-width: 46px; min-height: 46px;
  display: grid; place-items: center;
  color: var(--brass); cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}
.dock__theme:hover, .dock__top:hover { background: rgba(242, 234, 224, 0.06); color: var(--salon-ink); }
.dock__theme .theme-toggle__ico { width: 18px; height: 18px; }
.dock__icon { width: 20px; height: 20px; }

/* ---------- 13. Оглавление разделов (.sheet) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 60;
  display: grid; align-items: end; justify-items: center;
  pointer-events: none;
}
.sheet.is-open { pointer-events: auto; }
.sheet__backdrop {
  position: fixed; inset: 0;
  background: rgba(19, 24, 20, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 170ms var(--ease-out);
}
.sheet.is-open .sheet__backdrop { opacity: 1; transition: opacity 280ms var(--ease-in); }

.sheet__panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; max-height: min(78vh, 620px);
  display: flex; flex-direction: column;
  background: var(--salon-deep); color: var(--salon-ink);
  border: 1px solid rgba(169, 132, 66, 0.5); border-bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: var(--shadow-modal);
  opacity: 0; transform: translateY(26px);
  transition: opacity 170ms var(--ease-out), transform 170ms var(--ease-out);
}
.sheet.is-open .sheet__panel {
  opacity: 1; transform: translateY(0);
  transition: opacity 280ms var(--ease-in), transform 280ms var(--ease-in);
}

.sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--salon-line);
}
.sheet__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.sheet__close, .modal__close {
  appearance: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(26, 33, 27, 0.88);
  border: 1px solid var(--salon-line);
  color: var(--salon-ink); cursor: pointer;
}
.sheet__close svg, .modal__close svg { width: 18px; height: 18px; }

.sheet__list { overflow-y: auto; padding: 8px 10px 14px; display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 480px) { .sheet__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }

.sheet__item {
  appearance: none; background: none;
  border: 1px solid transparent; color: var(--salon-ink);
  min-height: 44px; padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.sheet__item:hover { background: rgba(242, 234, 224, 0.06); }
.sheet__item.is-active { background: var(--salon-mid); border-color: rgba(169, 132, 66, 0.56); }
.sheet__name { font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.sheet__item.is-active .sheet__name::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--persimmon); flex-shrink: 0;
}
.sheet__qty { font-size: 12px; color: var(--salon-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ---------- 14. Галерейная модалка блюда (.modal) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 14px;
  pointer-events: none;
}
.modal.is-open { pointer-events: auto; }
.modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(19, 24, 20, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 170ms var(--ease-out);
}
.modal.is-open .modal__backdrop { opacity: 1; transition: opacity 280ms var(--ease-in); }

.modal__card {
  position: relative; z-index: 1;
  width: min(100%, 720px); max-height: min(90vh, 760px);
  overflow-y: auto;
  background: var(--paper-card); color: var(--ink);
  border: 1px solid rgba(169, 132, 66, 0.56);
  box-shadow: var(--shadow-modal);
  display: grid; grid-template-columns: 1fr;
  opacity: 0; transform: translateY(16px) scale(0.985);
  transition: opacity 170ms var(--ease-out), transform 170ms var(--ease-out);
}
.modal.is-open .modal__card {
  opacity: 1; transform: translateY(0) scale(1);
  transition: opacity 280ms var(--ease-in), transform 280ms var(--ease-in);
}
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 3; border-color: rgba(169, 132, 66, 0.55); }

.modal__mat {
  background: var(--paper); padding: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.modal__pic {
  width: 100%; max-width: 290px; aspect-ratio: 3 / 4; padding: 6px;
  background: var(--paper-card); border: 1px solid var(--card-border);
  overflow: hidden;
}
.modal__pic img { width: 100%; height: 100%; object-fit: cover; }
.modal__plate { margin-top: 10px; }

.modal__body { padding: 18px 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.modal__title {
  margin: 0; padding-right: 36px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem); line-height: 1.14;
  color: var(--ink);
}
.modal__desc { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.modal__prices {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.modal__price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.modal__vol { font-size: 13px; color: var(--muted); }
.modal__val { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.modal__note { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--accent-ed); }
.modal__card.is-kitchen-closed .modal__pic img {
  filter: grayscale(0.92) contrast(0.92) brightness(0.95);
  opacity: 0.8;
}
.modal__card.is-kitchen-closed .modal__note { color: var(--muted); }

/* Тёмная тема: тонкие правки контраста, кухни и навигации */
html[data-theme="dark"] .nav { background: rgba(19, 24, 20, 0.94); }
html[data-theme="dark"] .section__kitchen-status {
  background: rgba(241, 233, 221, 0.06);
  border-color: rgba(241, 233, 221, 0.16);
}
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .card__trigger {
  background: #1A201B;
  border-color: rgba(241, 233, 221, 0.08);
  box-shadow: none;
}
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .card__mat {
  background: #151A16;
  border-color: rgba(241, 233, 221, 0.06);
}
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .card__pic { background: #141915; }
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .card__pic img {
  filter: grayscale(0.95) contrast(0.88) brightness(0.66);
  opacity: 0.72;
}
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .card__name,
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .price-row__val { color: #8F897F; }
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .price-row__vol,
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .card__desc { color: #726D64; }
html[data-theme="dark"].is-kitchen-closed .card[data-kitchen="true"] .card__kitchen-badge {
  background: rgba(15, 19, 16, 0.88);
  border-color: rgba(197, 162, 93, 0.28);
}
html[data-theme="dark"] .modal__card.is-kitchen-closed .modal__pic img {
  filter: grayscale(0.92) contrast(0.9) brightness(0.72);
  opacity: 0.78;
}

@media (min-width: 680px) {
  .modal__card { grid-template-columns: 1fr 1fr; }
  .modal__mat { border-bottom: 0; border-right: 1px solid var(--line); padding: 18px; }
  .modal__body { padding: 28px 26px; }
}

/* ---------- 15. Тост Гуся и Reduced Motion ---------- */
.honk {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 10px);
  max-width: calc(100vw - 32px); padding: 10px 20px;
  background: var(--salon-deep);
  border: 1px solid rgba(169, 132, 66, 0.65);
  color: var(--salon-ink);
  font-family: var(--serif); font-style: italic; font-size: 16.5px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(12, 16, 13, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 170ms var(--ease-out), transform 170ms var(--ease-out);
}
.honk.is-on {
  opacity: 1; transform: translate(-50%, 0);
  transition: opacity 280ms var(--ease-in), transform 280ms var(--ease-in);
}

.sheet__panel:focus, .modal__card:focus { outline: none; }

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