/* Кафе «Бриз». Раскладка по эталону Restora, гамма и шрифты — по логотипу
   «вечер на Каме» (static/img/logo): ночное небо, лазурь стены, подсветка
   кругов и тёплые точки — вино и свеча. Заголовки Cormorant Garamond, как
   надпись на логотипе, текст Raleway. Сначала телефон, широкие — через min-width.

   --accent меняется по контексту: на светлом фоне — глубокая лазурь, в тёмных
   блоках — светящаяся (как контур кругов на логотипе). Так один и тот же
   компонент читается и там и там. */

:root {
  --sky: #0b4f6c;          /* вечернее небо */
  --azure: #1b93bf;        /* лазурь стены */
  --river: #1583ad;        /* река — акцент на светлом */
  --glow: #7fd8f5;         /* подсветка кругов — акцент на тёмном */
  --moon: #eefbff;         /* свет луны */
  --wood: #2a1f1a;         /* тёмное дерево */
  --wine: #e8b15a;         /* вино в бокале — цены в тёмных блоках */
  --candle: #ffd27a;       /* огонь свечи */

  --accent: var(--river);
  --accent-deep: var(--sky);
  --accent-soft: rgba(21, 131, 173, .35);
  --price: var(--river);

  --dark: #082f40;         /* тёмные блоки: глубина реки ночью */
  --darker: #05202c;
  --dark-2: #0a3a4f;
  --ink: #20262b;
  --text: #5d6b73;
  --text-dark: #a9c4cf;
  --line: #d6e1e5;
  --paper: #f3f6f7;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --poster: "Oswald", "Arial Narrow", sans-serif;  /* узкие плакатные акценты */
  --kraft: #d9cbb0;        /* крафт-бумага, как у винилового яблока */
  --kraft-light: #ece4d4;
  --cream: #ecdcbc;        /* кремовые буквы «VODKA ONLY» */
  --dust: #a9b8c1;         /* пыльная лазурь */
  --vinyl: #141414;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 80px;
}

/* Тёмные блоки: акцент светится, цены — цвета вина */
.header, .nav, .hero, .about, .dark-menu, .book, .banner, .footer, .note-card, .total, .install, .chat__toggle {
  --accent: var(--glow);
  --accent-deep: var(--glow);
  --accent-soft: rgba(127, 216, 245, .35);
  --price: var(--wine);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.75;
  color: var(--text); background: var(--white);
  /* У Raleway и Lora по умолчанию «старинные» цифры разной высоты — в ценах и телефонах ровные лучше */
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
input, select, textarea, button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 60px; } }
.center { text-align: center; }
.muted { color: var(--text); }
.accent { color: var(--accent); }
.narrow { max-width: 640px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i-arrow { width: 18px; height: 18px; flex: none; }

.devbar { background: var(--darker); color: var(--glow); text-align: center; font-size: .78rem; padding: 5px 16px; letter-spacing: .03em; }

/* --- надпись над заголовком и заголовок секции --- */
.eyebrow {
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .7em;
}
.heading { text-align: center; margin-bottom: 56px; }
.heading__title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; color: var(--ink); margin: 0; }
.heading--light .heading__title { color: var(--white); }
@media (min-width: 900px) { .heading { margin-bottom: 80px; } }

/* --- кнопка в двойной рамке, как в эталоне --- */
.frame-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 44px; border: 1px solid var(--accent); background: transparent;
  color: var(--white); font-family: var(--sans); font-size: 1.05rem; font-weight: 500; cursor: pointer;
  transition: color .3s, background .3s;
}
.frame-btn::before {
  content: ""; position: absolute; inset: -7px 9px; border: 1px solid var(--accent);
  transition: inset .3s; pointer-events: none;
}
.frame-btn:hover::before { inset: 0; }
.frame-btn:hover { background: var(--accent); color: var(--white); }
.frame-btn--sm { min-height: 44px; padding: 0 30px; font-size: 1rem; }
.frame-btn--dark { color: var(--accent-deep); }
.frame-btn--glow { color: var(--accent); }
.frame-btn--glow:hover { color: var(--white); }

/* --- простые кнопки (чат, плашки) --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s;
}
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--line { border-color: var(--accent); color: var(--accent); }
.btn--line:hover { background: var(--accent); color: var(--white); }
.btn--block { width: 100%; }
.linklike { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }

/* --- шапка: тёмная полупрозрачная, поверх первого экрана --- */
.header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: rgba(5, 32, 44, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding-top: env(safe-area-inset-top); box-sizing: content-box;
}
.header__row { height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 20px; max-width: 1440px; margin: 0 auto; }
@media (min-width: 900px) { .header__row { padding: 0 50px; } }
.logo { display: flex; align-items: center; gap: 12px; color: var(--white); margin-right: auto; }


.header__cta { display: none; }

.burger { width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column;
  padding: 10px 20px 24px; background: var(--darker); border-top: 1px solid rgba(255,255,255,.06);
}
.nav.is-open { display: flex; }
.nav a { padding: 14px 0; font-size: .95rem; font-weight: 700; text-transform: uppercase; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav__phone { color: var(--accent) !important; border-bottom: 0 !important; }
.nav__order { color: var(--cream) !important; }
/* В шапке шесть пунктов и кнопка: ниже 1200 px им тесно — сворачиваем в бургер */
@media (min-width: 1200px) {
  .burger, .nav__phone, .nav__order, .nav__cab { display: none; }
  .header__cta { display: inline-flex; }
  .nav { position: static; display: flex; flex-direction: row; gap: 30px; padding: 0; background: none; border: 0; margin-right: auto; }
  .nav a { padding: 6px 0; border: 0; font-size: .9rem; }
}

/* --- 1. первый экран --- */
.hero { position: relative; height: max(560px, 100svh); margin-top: calc(-1 * var(--header-h)); background: var(--darker); overflow: hidden; color: var(--white); }
.hero__slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(4,24,34,.92) 0%, rgba(4,24,34,.7) 40%, rgba(4,24,34,.15) 100%), var(--bg) center / cover no-repeat;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__inner { padding-top: var(--header-h); }
@media (min-width: 900px) { .hero__inner { padding-left: 15vw; } }
.hero__eyebrow { font-size: clamp(.95rem, 1.8vw, 1.45rem); letter-spacing: .14em; }
.hero__title { font-family: var(--serif); font-weight: 600; color: var(--white); font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1.08; max-width: 13ch; margin: 0 0 .5em; }
.hero__text { max-width: 480px; font-size: 1.05rem; color: rgba(255,255,255,.75); margin-bottom: 2.4em; }
.hero__slide.is-active .eyebrow, .hero__slide.is-active .hero__title, .hero__slide.is-active .hero__text, .hero__slide.is-active .frame-btn { animation: rise 1s both; }
.hero__slide.is-active .hero__title { animation-delay: .1s; }
.hero__slide.is-active .hero__text { animation-delay: .2s; }
.hero__slide.is-active .frame-btn { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 14vh; display: flex; justify-content: center; gap: 10px; }
.hero__dot { width: 20px; height: 12px; border: 0; padding: 5px 0; background: none; cursor: pointer; }
.hero__dot::before { content: ""; display: block; height: 2px; background: rgba(255,255,255,.55); transition: background .3s; }
.hero__dot.is-active { width: 40px; }
.hero__dot.is-active::before, .hero__dot:hover::before { background: var(--white); }

/* --- 2. о кафе --- */
.about { background: var(--dark); padding: 80px 0 0; overflow: hidden; }
@media (min-width: 900px) { .about { padding-top: 110px; } }
.about .heading { margin-bottom: 36px; }
.about__text { max-width: 800px; margin: 0 auto; text-align: center; color: var(--text-dark); font-size: 1.05rem; line-height: 2; }
/* Натюрморт: большая тарелка по центру уходит за нижний край, вокруг — маленькие */
.still { position: relative; height: clamp(300px, 46vw, 560px); margin-top: 60px; }
.still > img { position: absolute; border-radius: 50%; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.still__main { width: clamp(280px, 34vw, 480px); left: 50%; top: 0; transform: translateX(-50%); }
.still__a { width: clamp(90px, 11vw, 170px); left: 4%; top: 14%; }
.still__b { width: clamp(80px, 9vw, 140px); left: 13%; top: 64%; }
.still__c { width: clamp(90px, 11vw, 170px); right: 4%; top: 10%; }
.still__d { width: clamp(80px, 9.5vw, 150px); right: 12%; top: 60%; }
@media (max-width: 700px) { .still__b, .still__d { display: none; } .still__a { left: -20px; } .still__c { right: -20px; } }

/* --- строка меню с пунктиром --- */
.mi { margin-bottom: 28px; }
.mi__row { display: flex; align-items: baseline; gap: 12px; }
.mi__name { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.mi__dots { flex: 1; min-width: 24px; border-bottom: 1px dashed #b5b5b5; transform: translateY(-6px); }
.mi__price { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .06em; color: var(--price); white-space: nowrap; font-variant-numeric: lining-nums; }
.mi__price2 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--text); white-space: nowrap; font-variant-numeric: lining-nums; }
.mi__desc { margin: 4px 0 0; font-size: .92rem; font-weight: 300; color: var(--text); line-height: 1.8; max-width: 92%; }

/* --- раскрывающиеся категории --- */
.cat { margin-bottom: 30px; }
.cat__title {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 30px;
  font-size: 1.05rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.cat__title::-webkit-details-marker { display: none; }
.cat__title::after { content: "+"; font-size: .9rem; letter-spacing: 0; }
.cat[open] > .cat__title { margin-bottom: 34px; }
.cat[open] > .cat__title::after { content: "–"; }

/* --- 3. меню: три колонки --- */
.menu3 { display: grid; gap: 40px; }
.menu3__center { text-align: center; }
.menu3__photo { width: min(380px, 80%); margin: 0 auto 26px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 50px rgba(0,0,0,.18); }
.menu3__note { max-width: 420px; margin: 0 auto; font-size: .95rem; color: #666; line-height: 1.9; }
.menu3__more { display: grid; margin: 30px 0 40px; grid-auto-flow: row dense; }
@media (min-width: 1000px) {
  .menu3 { grid-template-columns: 1fr 1.05fr 1fr; gap: 60px; align-items: start; }
  .menu3__center { padding-top: 10px; }
  /* Свёрнутые разделы встают под левую и правую колонки, центр пустой — как в эталоне */
  .menu3__more { grid-template-columns: 1fr 1.05fr 1fr; gap: 0 60px; }
  .menu3__more > :nth-child(odd) { grid-column: 1; }
  .menu3__more > :nth-child(even) { grid-column: 3; }
}

/* --- 4. тёмный блок банкетов --- */
.dark-menu { position: relative; background: var(--dark); padding: 80px 0; overflow: hidden; }
@media (min-width: 900px) { .dark-menu { padding: 130px 0; } }
.dark-menu__plate {
  position: absolute; right: -16vw; top: -70px; width: min(40vw, 560px); border-radius: 50%; aspect-ratio: 1; object-fit: cover;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); display: none;
}
/* Тарелка у правого края — только там, где хватает места рядом с колонками */
@media (min-width: 1200px) { .dark-menu__plate { display: block; } .dark-menu .wrap > * { max-width: min(940px, calc(76vw - 120px)); } }
.dark-menu__head { display: flex; align-items: center; gap: 28px; margin-bottom: 56px; }
.dark-menu__head svg { width: 54px; height: 54px; color: var(--accent); flex: none; }
.dark-menu__head h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.dark-menu__cols { display: grid; gap: 30px 60px; margin-bottom: 40px; }
@media (min-width: 800px) { .dark-menu__cols { grid-template-columns: 1fr 1fr; } }
.subhead { font-family: var(--sans); font-size: 1.02rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 34px; }
.dark-menu .mi__name { color: var(--white); }
.dark-menu .mi__desc { color: var(--text-dark); }
.dark-menu .mi__dots { border-color: rgba(255,255,255,.3); }
.dark-menu .frame-btn { margin: 7px 9px; }

/* --- 5. меню недели --- */
.week-block { padding-bottom: 40px; }
.week__slide { display: none; }
.week__slide.is-active { display: grid; animation: fade .6s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.week__media img { width: 100%; aspect-ratio: 900 / 760; object-fit: cover; }
.week__body { padding: 36px 20px 0; }
.week__day { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.week__day svg { width: 46px; height: 46px; color: var(--accent-deep); flex: none; }
.week__day h3 { margin: 0; font-size: 1.9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.week__body .mi__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.week__legend { font-size: .85rem; color: var(--text); margin-top: 8px; }
.week__nav { display: flex; align-items: center; gap: 26px; padding: 30px 20px 0; }
.week__arrow { border: 0; background: none; padding: 6px; cursor: pointer; color: #c9c9c9; transition: color .2s; }
.week__arrow:hover { color: var(--accent-deep); }
.week__arrow svg { width: 32px; height: 16px; }
.week__count { font-family: var(--serif); font-weight: 600; font-size: 2.9rem; color: var(--river); margin-left: auto; font-variant-numeric: lining-nums; line-height: 1; }
.week__bar { flex: 1; max-width: 360px; height: 4px; background: #e2e2e2; }
.week__bar span { display: block; height: 100%; background: var(--river); transition: width .4s; }
@media (min-width: 1000px) {
  .week__slide.is-active { grid-template-columns: 57.5% 1fr; align-items: start; }
  .week__body { padding: 30px 60px 0 46px; }
  .week__nav { width: 57.5%; padding: 40px 0 0 90px; }
  .week__count { margin-left: 90px; }
}

/* --- 6. галерея --- */
.gallery { padding: 80px 0 0; }
@media (min-width: 900px) { .gallery { padding-top: 110px; } }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (min-width: 900px) { .gallery__grid { gap: 30px; } }
.g { margin: 0; overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g:hover img { transform: scale(1.05); }
.g--wide { grid-column: 1 / -1; aspect-ratio: 1600 / 560; }
.g--half { grid-column: span 2; aspect-ratio: 800 / 760; }
.g--quarter { grid-column: span 2; aspect-ratio: 420 / 440; }
@media (min-width: 700px) { .g--quarter { grid-column: span 1; } }
.gallery__more { padding: 70px 0 10px; }

/* --- 7. часы работы в рамке --- */
.squiggle { width: 190px; height: 12px; color: var(--river); margin: 0 auto 60px; }
.schedule-block .heading { margin-bottom: 70px; }
.schedule { position: relative; max-width: 1160px; margin: 0 auto; padding: 60px 20px 40px; border: 1px solid var(--accent-soft); text-align: center; }
.schedule::before { content: ""; position: absolute; inset: -15px 15px 15px -15px; border: 1px solid var(--accent-soft); pointer-events: none; }
.schedule__label { position: absolute; top: -15px; left: 50%; transform: translate(-50%, -50%); padding: 0 40px; background: var(--white); font-size: 1.05rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); white-space: nowrap; }
.schedule__row { margin-bottom: 26px; }
.schedule__days { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--ink); margin: 0 0 .3em; }
.schedule__time { font-family: var(--serif); font-size: 1.15rem; color: var(--text); margin: 0; font-variant-numeric: lining-nums; }

/* --- 8. заявка на банкет --- */
.book {
  padding: 90px 0 120px; color: var(--white);
  background: linear-gradient(rgba(4,24,34,.78), rgba(4,24,34,.86)), url("/static/img/briz/book-bg.webp") center / cover no-repeat;
}
@media (min-width: 900px) { .book { padding: 110px 0 170px; } }
.book .heading { margin-bottom: 50px; }
.book__form { display: grid; gap: 22px; max-width: 1290px; margin: 0 auto; }
@media (min-width: 800px) { .book__form { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.book__field { position: relative; display: block; }
.book__field input, .book__field select {
  width: 100%; height: 54px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 0;
  background: transparent; color: var(--accent); font-size: 1.05rem; appearance: none; -webkit-appearance: none; color-scheme: dark;
}
.book__field select option { color: #222; }
.book__field svg { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--white); pointer-events: none; }
.book__submit { text-align: center; margin-top: 18px; }
@media (min-width: 800px) { .book__submit { grid-column: 1 / -1; } }

/* --- шапка внутренних страниц --- */
.banner {
  margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 80px) 0 90px; color: var(--white);
  background: linear-gradient(90deg, rgba(4,24,34,.9), rgba(4,24,34,.45)), var(--bg) center / cover no-repeat;
}
@media (min-width: 900px) { .banner { padding: calc(var(--header-h) + 130px) 0 130px; } }
.banner__title { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 17ch; }
.banner__lead { max-width: 640px; color: rgba(255,255,255,.78); font-size: 1.08rem; margin: 0; }

.section { padding: 80px 0; }
.section--tight { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } .section--tight { padding: 56px 0; } }

.pagehead { padding: 60px 0; }
.pagehead--center { text-align: center; padding: 110px 0; }
.pagehead--center h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.btn-row { display: flex; flex-wrap: wrap; gap: 26px; }
.btn-row--center { justify-content: center; margin-top: 30px; }

.split { display: grid; gap: 50px; }
.split--top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 90px; } }

/* --- факты --- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts li { background: var(--white); padding: 22px 20px; display: flex; flex-direction: column; text-align: center; line-height: 1.4; }
.facts strong { font-family: var(--serif); font-weight: 600; font-size: 1.8rem; color: var(--accent); font-variant-numeric: lining-nums; }
.facts span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* --- пакеты банкета и калькулятор --- */
.pkgs { display: grid; gap: 30px; }
@media (min-width: 900px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
.pkg { position: relative; display: flex; flex-direction: column; padding: 40px 32px 32px; background: var(--white); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.pkg__badge { position: absolute; top: -12px; left: 32px; padding: 2px 14px; background: var(--wine); color: var(--wood); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pkg__title { font-size: 1.9rem; color: var(--ink); margin-bottom: .2em; }
.pkg__price { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; letter-spacing: .04em; color: var(--price); margin-bottom: 18px; font-variant-numeric: lining-nums; }
.pkg__price span { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.pkg__list { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.pkg__list li { display: flex; gap: 12px; padding: 6px 0; color: #666; border-bottom: 1px dashed var(--line); line-height: 1.5; }
.pkg__list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); flex: none; }
.pkg__note { font-size: .9rem; font-weight: 300; margin: 0; }
label.pkg { cursor: pointer; }
label.pkg:hover { border-color: var(--accent-soft); }
.pkg__radio { position: absolute; opacity: 0; pointer-events: none; }
label.pkg:has(.pkg__radio:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 50px rgba(21,131,173,.16); }
label.pkg:has(.pkg__radio:focus-visible) { outline: 2px solid var(--accent); outline-offset: 5px; }
label.pkg::after { content: ""; position: absolute; top: 36px; right: 28px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ccc; }
label.pkg:has(.pkg__radio:checked)::after { border: 7px solid var(--accent); }

.calc { display: grid; gap: 60px; }
.calc__grid { display: grid; gap: 50px; }
@media (min-width: 900px) { .calc__grid { grid-template-columns: 1fr 1fr; gap: 90px; } }
.calc h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.step { font-family: var(--sans); font-size: .95rem; letter-spacing: .2em; color: var(--accent); margin-right: 12px; vertical-align: 4px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border: 1px solid #d8d2c9; border-radius: 0;
  background: var(--white); font-size: 1rem; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,131,173,.15); }
.field__error { color: #b3261e; font-size: .9rem; font-weight: 500; margin: 6px 0 0; }
.field__hint { font-size: .86rem; color: var(--text); margin: 6px 0 0; line-height: 1.6; }
.stepper { display: flex; max-width: 230px; }
.stepper button { width: 56px; flex: none; border: 1px solid #d8d2c9; background: var(--white); font-size: 1.4rem; color: var(--accent); cursor: pointer; }
.stepper button:hover { background: #faf7f2; }
.stepper input { text-align: center; font-family: var(--serif); font-size: 1.3rem; border-left: 0; border-right: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.total {
  position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 30px; background: var(--dark); color: var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.total__label { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.total__sum { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 1.2; font-variant-numeric: lining-nums; }
.total__hint { font-size: .85rem; color: var(--text-dark); }
.total .frame-btn { margin: 7px 9px; }
.consent { font-size: .8rem; color: var(--text); margin: -30px 0 0; }
.done-mark { width: 80px; height: 80px; margin: 0 auto 26px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; }
.done-mark svg { width: 36px; height: 36px; }

/* --- страница меню --- */
.chips { position: sticky; top: var(--header-h); z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.chips__row { display: flex; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.chips__row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 20px 0 18px; border-bottom: 2px solid transparent; font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #777; }
.chip:hover, .chip.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.menu-cat { padding-top: 70px; }
.menu-cat__title { font-size: 1.15rem; font-family: var(--sans); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 36px; }
.menu-cols { display: grid; gap: 0 80px; }
@media (min-width: 900px) { .menu-cols { grid-template-columns: 1fr 1fr; } }

/* --- обеды --- */
.lunch-day { padding: 28px 0; border-bottom: 1px dashed var(--line); }
.lunch-day__name { font-size: 1rem; font-family: var(--sans); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lunch-day p { margin: 0; color: #666; line-height: 1.9; }
.lunch-day b { font-weight: 500; color: var(--ink); }
.note-card { padding: 44px 36px; background: var(--dark); color: var(--text-dark); }
.note-card h2 { color: var(--white); }
.note-card .mi__name { color: var(--white); }
.note-card .mi__dots { border-color: rgba(255,255,255,.3); }
.note-card .mi__price2 { color: var(--text-dark); }
.note-card .frame-btn { margin: 7px 9px; }
.plain { padding-left: 1.2em; margin: 10px 0 30px; }
.plain li { margin-bottom: 6px; }

/* --- контакты --- */
.contact-list { display: grid; gap: 34px; }
.contact-list .eyebrow { margin-bottom: .3em; }
.contact-big { font-family: var(--serif); font-weight: 600; font-size: 2.3rem; color: var(--ink); font-variant-numeric: lining-nums; }
.map { overflow: hidden; aspect-ratio: 4 / 3; background: #eee; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3); }

/* --- подвал, как в эталоне --- */
.footer { background: var(--darker); color: var(--text-dark); }
.footer__main { display: grid; max-width: 1440px; margin: 0 auto; }
@media (min-width: 1000px) { .footer__main { grid-template-columns: 1.35fr 1fr; } }
.footer__cols { display: grid; gap: 40px; padding: 70px 20px 50px; }
@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(3, auto); justify-content: space-between; padding: 100px 60px 70px 60px; } }
@media (min-width: 1200px) { .footer__cols { padding-left: 165px; } }
.footer__h { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-bottom: 30px; }
.footer__h--gap { margin-top: 40px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer__links a, .footer__links .linklike { font-size: .95rem; font-weight: 500; text-transform: uppercase; color: #c9ccd1; }
.footer__links a:hover, .footer__links .linklike:hover, .footer__links .is-active { color: var(--accent); }
.footer p { margin: 0 0 .6em; }
.footer a { color: #c9ccd1; }
.footer a:hover { color: var(--accent); }
.socials { display: flex; gap: 22px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; color: #c9ccd1; }
.socials a:hover { color: var(--accent); }
.socials svg { width: 24px; height: 24px; }
.footer__side { background: var(--dark-2); padding: 60px 20px; }
@media (min-width: 700px) { .footer__side { padding: 100px 60px 80px 14px; } }
.footer__side .logo { margin-bottom: 30px; }
@media (min-width: 700px) { .footer__side-body { padding-left: 85px; } }
.footer__days { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .14em; color: #b9bec5; margin: 0 0 .2em !important; }
.footer__time { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .16em; color: var(--white); margin: 0 0 1em !important; font-variant-numeric: lining-nums; }
.footer__side .frame-btn { margin: 20px 9px 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 28px 20px calc(110px + env(safe-area-inset-bottom)); font-size: .9rem; color: #c9ccd1; max-width: 1440px; margin: 0 auto; }
@media (min-width: 700px) { .footer__bottom { padding: 34px 60px; } }
@media (min-width: 1200px) { .footer__bottom { padding: 34px 165px; } }

/* --- кнопка чата --- */
.chat { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35; }
.chat__toggle {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border: 1px solid var(--accent);
  background: var(--dark); color: var(--white); font-weight: 600; cursor: pointer; box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.chat__toggle:hover { background: var(--accent); }
.chat__toggle svg { width: 22px; height: 22px; color: var(--accent); }
.chat__toggle:hover svg { color: var(--white); }
.chat__panel { position: absolute; right: 0; bottom: 64px; width: min(340px, calc(100vw - 32px)); padding: 24px; background: var(--white); box-shadow: 0 24px 60px rgba(0,0,0,.25); display: grid; gap: 12px; border-top: 2px solid var(--accent); }
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; justify-content: space-between; align-items: center; }
.chat__head strong { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; color: var(--ink); }
.chat__close { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text); }
.chat__lead { font-size: .92rem; margin: 0; line-height: 1.6; }
body:has(.total) .chat { bottom: calc(150px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { body:has(.total) .chat { bottom: calc(16px + env(safe-area-inset-bottom)); } }
@media (max-width: 420px) { .chat__toggle span { display: none; } .chat__toggle { padding: 0 15px; } }

/* --- PWA: плашка установки --- */
.install {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; max-width: 540px; margin: 0 auto;
  background: var(--dark); color: var(--text-dark); border: 1px solid var(--accent-soft); box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.install[hidden] { display: none; }
.install__icon { width: 48px; height: 48px; flex: none; }
.install__text { display: flex; flex-direction: column; line-height: 1.4; font-size: .86rem; min-width: 0; }
.install__text strong { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--white); }
.install__btn { flex: none; margin-left: auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--accent); background: none; color: var(--accent); font-weight: 600; cursor: pointer; }
.install__btn:hover { background: var(--accent); color: var(--white); }
.install__close { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--text-dark); cursor: pointer; padding: 4px; flex: none; }
body:has(.install:not([hidden])) .chat { bottom: calc(100px + env(safe-area-inset-bottom)); }

@media (display-mode: standalone) { .devbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 420px) { .install__text span { display: none; } }

/* --- логотип: знак + надпись с разрядкой, как на briz-logo-horizontal.svg --- */
.logo { display: flex; align-items: center; gap: 12px; color: var(--moon); margin-right: auto; }
.logo__mark { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 0 8px rgba(79, 210, 255, .45)); }
.logo__words { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; letter-spacing: .28em; margin-right: -.28em; }
.logo__tag { margin-top: 5px; font-family: var(--sans); font-weight: 600; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--glow); }
@media (max-width: 380px) { .logo__tag { display: none; } .logo__mark { width: 46px; height: 46px; } }
.footer__logo { width: 210px; margin-bottom: 34px; }

/* --- фирменный приём логотипа: круг со светящимся контуром --- */
.still > img, .menu3__photo, .dark-menu__plate {
  box-shadow: 0 0 0 3px var(--moon), 0 0 0 9px rgba(79, 210, 255, .18), 0 0 46px 6px rgba(79, 210, 255, .42), 0 30px 60px rgba(0, 0, 0, .45);
}
.menu3__photo { box-shadow: 0 0 0 3px var(--white), 0 0 0 9px rgba(27, 147, 191, .16), 0 0 40px 4px rgba(27, 147, 191, .3), 0 30px 50px rgba(8, 47, 64, .2); }

/* --- «О Бризе»: свечение, как на сцене логотипа --- */
.about { background: radial-gradient(ellipse 80% 60% at 50% 0%, #0f6a8c 0%, #0b4f6c 35%, var(--dark) 75%); }
.about__mark { width: 120px; margin: 0 auto 26px; filter: drop-shadow(0 0 18px rgba(79, 210, 255, .5)); }
.dark-menu { background: linear-gradient(160deg, var(--dark) 0%, #0a3a4f 60%, var(--dark) 100%); }
.dark-menu__head svg { color: var(--glow); }
.footer { background: var(--darker); }
.footer__side { background: radial-gradient(circle at 30% 20%, #0f5f7d 0%, var(--dark-2) 55%); }
.schedule__label { color: var(--river); }
.book { background: linear-gradient(rgba(4,24,34,.8), rgba(4,24,34,.88)), url("/static/img/briz/book-bg.webp") center / cover no-repeat; }
.hero__dot.is-active::before { background: var(--glow); }
.chat__toggle { border-color: var(--glow); }
.price-color { color: var(--price); }
/* На телефоне липкая сумма банкета не должна съедать треть экрана */
@media (max-width: 600px) {
  .total { padding: 12px 16px; gap: 10px; flex-wrap: nowrap; }
  .total__hint, .total__label { display: none; }
  .total__sum { font-size: 1.7rem; }
  .total .frame-btn { min-height: 44px; padding: 0 18px; font-size: .95rem; flex: none; }
}


/* ================= Ретро-печать: зерно, крафт, винил ================= */

/* Бумажное зерно поверх всего сайта (tools/texture.py). Клики проходят сквозь */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url("/static/img/grain.png") repeat; background-size: 256px;
}

/* Крафтовые секции: меню и часы работы — как бумага конверта пластинки */
.menu-block, .schedule-block { background-color: var(--kraft-light); }
.schedule__label { background: var(--kraft-light); }
.menu-block .mi__dots { border-color: #a99d86; }
.menu-block .mi__desc, .menu3__note { color: #6b6255; }

/* Плакатный шрифт: крупные короткие слова */
.dark-menu__head h2, .week__day h3, .week__count, .facts strong {
  font-family: var(--poster); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.dark-menu__head h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--cream); letter-spacing: .03em; line-height: 1; }
.week__day h3 { font-size: 2.1rem; color: var(--river); }
.week__count { font-size: 3rem; color: var(--ink); }
.facts strong { font-size: 1.7rem; color: var(--river); }

/* Контурные «пилюли», как «℗ 2026» и «D.R.A.A» на яблоке */
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; padding: 3px 14px 2px; border: 1.5px solid currentColor; border-radius: 999px;
  font-family: var(--poster); font-weight: 500; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6;
}
.hero__pills { margin-top: 34px; color: var(--cream); opacity: .9; }
.hero__slide.is-active .hero__pills { animation: rise 1s .4s both; }

/* Текст по кругу */
.ring { position: absolute; inset: -13%; pointer-events: none; transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ring text { font-family: var(--poster); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.ringed { position: relative; width: min(380px, 78%); margin: 50px auto 70px; color: var(--ink); }
.ringed .menu3__photo { width: 100%; margin: 0; }

/* Фарфоровая тарелка: обод с лазурными полосками, блюдо в углублении */
.plate { position: relative; width: 100%; aspect-ratio: 1; color: var(--cream); }
.plate__ring { inset: -12%; animation-direction: reverse; z-index: 1; }
.plate__dish { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.plate__photo { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)) drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
/* Логотип ложится в плоское дно тарелки, внутрь второго кольца */
.plate__logo { position: absolute; inset: 23%; width: 54%; height: 54%; filter: drop-shadow(0 4px 10px rgba(0, 20, 30, .45)); }
.plate__fork, .plate__knife { position: absolute; top: 2%; width: 8.5%; height: 96%; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); }
.plate__fork { left: -31%; }
.plate__knife { right: -31%; }
@media (max-width: 700px) { .plate__fork, .plate__knife { display: none; } }
.still__main { position: absolute; width: clamp(240px, 30vw, 420px); left: 50%; top: 40px; transform: translateX(-50%); }
.still { height: clamp(380px, 50vw, 620px); }
@media (max-width: 700px) { .still__main { top: 50px; } }

@media (prefers-reduced-motion: reduce) { .ring, .plate__dish { animation: none; } }
/* На телефоне вокруг пластинки тесно: тарелки наезжают на кольцо текста — оставляем одну пластинку */
@media (max-width: 700px) { .still > img { display: none; } .still { height: 420px; } .still__main { width: 250px; top: 40px; } }

/* ================= Выездной кейтеринг ================= */
/* Плакатный заголовок в две строки, как «VODKA ONLY» */
.poster { display: flex; flex-direction: column; margin: 0 0 26px; font-family: var(--poster); font-weight: 600; text-transform: uppercase; line-height: .92; letter-spacing: .01em; color: var(--ink); }
.poster span:first-child { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--river); }
.poster span:last-child { font-size: clamp(3.2rem, 8.6vw, 6.4rem); }
.kt-intro__grid { display: grid; gap: 60px; align-items: center; }
@media (min-width: 900px) { .kt-intro__grid { grid-template-columns: 1.1fr 1fr; gap: 100px; } .kt-teaser .kt-intro__grid { grid-template-columns: 1fr 1.1fr; } }
.kt-intro__text { font-size: 1.08rem; color: var(--text); max-width: 560px; }
.kt-intro__pills { margin: 26px 0 40px; color: var(--ink); }
.kt-intro__cta .frame-btn { margin: 7px 9px; }
.kt-intro__photo { width: min(440px, 76%); margin: 40px auto; }
.kt-teaser { background-color: var(--kraft-light); }
.kt-teaser .menu3__photo, .kt-intro .menu3__photo { box-shadow: 0 0 0 4px var(--vinyl), 0 0 0 10px rgba(21,131,173,.14), 0 30px 50px rgba(8,47,64,.25); }

.kt-formats { background-color: var(--kraft-light); }
.kt-cards { display: grid; gap: 40px 30px; }
@media (min-width: 700px) { .kt-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kt-cards { grid-template-columns: repeat(4, 1fr); } }
.kt-card { display: flex; flex-direction: column; }
.kt-card__img { position: relative; aspect-ratio: 1; overflow: hidden; margin-bottom: 24px; }
.kt-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.kt-card:hover .kt-card__img img { transform: scale(1.05); }
.kt-card__num { position: absolute; left: 14px; bottom: 6px; font-family: var(--poster); font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--cream); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.kt-card__title { font-size: 1.8rem; margin-bottom: .3em; }
.kt-card__text { color: var(--text); flex: 1; }
.kt-card__tags { margin-bottom: 18px; color: var(--river); }
.kt-card__tags .pill { font-size: .72rem; }
.kt-card__link { font-family: var(--poster); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--river); }
.kt-card__link:hover { color: var(--ink); }

.kt-steps { padding: 90px 0; background: radial-gradient(ellipse 70% 80% at 50% 0%, #0f6a8c 0%, var(--dark) 70%); color: var(--text-dark); --accent: var(--glow); }
@media (min-width: 900px) { .kt-steps { padding: 130px 0; } }
.kt-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 800px) { .kt-steps__list { grid-template-columns: repeat(4, 1fr); gap: 50px; } }
.kt-step { border-top: 1px solid rgba(127,216,245,.3); padding-top: 22px; }
.kt-step__num { display: block; font-family: var(--poster); font-weight: 600; font-size: 4rem; line-height: 1; color: var(--cream); margin-bottom: 16px; }
.kt-step__title { font-size: 1.7rem; color: var(--white); margin-bottom: .3em; }
.kt-step p { margin: 0; }

.narrow-form { max-width: 920px; }
.kt-form__grid { display: grid; gap: 0 30px; }
@media (min-width: 700px) { .kt-form__grid { grid-template-columns: 1fr 1fr; } .kt-form__wide { grid-column: 1 / -1; } }
.kt-form .consent { margin: 18px 0 0; }
.kt-form__formats { border: 0; padding: 0; margin: 0 0 30px; }
.kt-form__formats legend { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 9px 20px 8px; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--poster); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); transition: background .2s, color .2s; }
.choice input:checked + span { background: var(--ink); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--river); outline-offset: 3px; }

/* ================= Приложение: заказ обедов ================= */
.app__head { margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 40px) 0 34px; color: var(--white);
  background: radial-gradient(ellipse 80% 90% at 30% 0%, #0f6a8c 0%, var(--dark) 70%); --accent: var(--glow); }
.app__title { margin-bottom: 18px; }
.app__title span:first-child { color: var(--glow); }
.app__title span:last-child { color: var(--cream); }
.app__note { margin: 14px 0 0; color: var(--text-dark); font-size: .95rem; }
.app__body { padding-top: 26px; padding-bottom: 140px; }

/* Переключатель «Доставка / Самовывоз» */
.seg { display: inline-flex; border: 1.5px solid var(--glow); border-radius: 999px; padding: 3px; }
.seg__btn { border: 0; background: none; color: var(--glow); padding: 9px 20px 8px; border-radius: 999px; cursor: pointer;
  font-family: var(--poster); font-weight: 500; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.seg__btn[aria-checked="true"] { background: var(--glow); color: var(--dark); }

/* Дни */
.days { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 24px; padding: 0 20px 4px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; display: flex; flex-direction: column; align-items: flex-start; min-width: 132px; padding: 10px 16px; border: 1.5px solid var(--ink);
  border-radius: 14px; background: var(--white); cursor: pointer; line-height: 1.3; text-align: left; }
.day b { font-family: var(--poster); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.day span { font-size: .82rem; color: var(--text); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.day[aria-pressed="true"] span { color: var(--dust); }
.day:disabled { opacity: .4; cursor: not-allowed; border-style: dashed; }

/* Меню дня */
.today { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin-bottom: 26px; padding: 14px; background: var(--kraft-light); border-radius: 16px; }
@media (min-width: 700px) { .today { grid-template-columns: 220px 1fr; gap: 30px; padding: 20px; } }
.today__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px var(--white), 0 0 0 7px rgba(21,131,173,.2), 0 14px 30px rgba(8,47,64,.25); }
.today .eyebrow { margin-bottom: .4em; font-size: .78rem; }
.today__list { list-style: none; margin: 0; padding: 0; }
.today__list li { display: flex; flex-direction: column; padding: 5px 0; line-height: 1.35; }
.today__list span { font-family: var(--poster); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--river); }
.today__list b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
@media (min-width: 700px) { .today__list b { font-size: 1.45rem; } }

/* Варианты обеда */
.opts { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 20px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.opt.is-picked { border-color: var(--river); box-shadow: 0 10px 26px rgba(21,131,173,.15); }
.opt__info { flex: 1; min-width: 0; }
.opt__title { margin: 0 0 4px; font-size: 1.45rem; }
.opt__parts { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--text); }
.opt__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.opt__price { font-family: var(--poster); font-weight: 600; font-size: 1.5rem; color: var(--river); line-height: 1; }
.opt__add { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--poster); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.opt__add:hover { background: var(--ink); color: var(--cream); }
.qty { display: flex; align-items: center; border-radius: 999px; background: var(--ink); color: var(--cream); }
.qty button { width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 1.3rem; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-family: var(--poster); font-size: 1.15rem; }

/* Мои заказы */
.mine__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mine__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; background: var(--kraft-light); border-radius: 14px; }
.mine__item a { flex: 1 1 220px; color: var(--ink); line-height: 1.4; }
.mine__item a span { display: block; font-size: .86rem; color: var(--text); }
.mine__status { padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--line); }
.mine__status--new { background: var(--wine); color: var(--wood); }
.mine__status--on_way, .mine__status--ready, .mine__status--cooking, .mine__status--accepted { background: var(--river); color: var(--white); }

/* Корзина */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 36; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 20px;
  background: var(--dark); color: var(--white); border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.cartbar[hidden] { display: none; }
.cartbar__count { font-size: .82rem; color: var(--text-dark); }
.cartbar__sum { font-family: var(--poster); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--cream); }
.cartbar__btn { min-height: 50px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--glow); color: var(--dark); cursor: pointer;
  font-family: var(--poster); font-weight: 600; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
body:has(.cartbar:not([hidden])) .chat, body:has(.cartbar:not([hidden])) .install { display: none; }

/* Нижний лист оформления */
.sheet { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; margin: auto auto 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--white); color: var(--ink); }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 22px; } }
.sheet::backdrop { background: rgba(4, 24, 34, .6); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-up .3s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__form { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet__head h2 { margin: 0; font-size: 2rem; }
.sheet__close { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--text); }
.sheet__summary { margin: 6px 0 18px; font-size: .9rem; color: var(--text); }
.sheet__legend { padding: 0; margin-bottom: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.sheet fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.sheet__row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .sheet__row { grid-template-columns: 1fr 1fr; } }
.sheet__pay { font-size: .9rem; color: var(--text); margin: 4px 0 16px; }
.sheet__submit { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--dark); color: var(--cream); cursor: pointer;
  font-family: var(--poster); font-weight: 600; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; }
.sheet__submit:disabled { opacity: .6; }
.sheet .field[hidden] { display: none; }
.sheet .choice span { padding: 7px 16px 6px; font-size: .9rem; }

/* Статус заказа */
.steps { list-style: none; margin: 10px 0 30px; padding: 0; display: grid; counter-reset: st; }
.steps li { position: relative; padding: 0 0 22px 46px; color: var(--text); font-family: var(--poster); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .95rem; background: var(--white); }
.steps li::after { content: ""; position: absolute; left: 16px; top: 30px; bottom: 0; width: 1.5px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { content: "✓"; background: var(--river); border-color: var(--river); color: var(--white); }
.steps li.is-current { color: var(--river); }
.steps li.is-current::before { border-color: var(--river); color: var(--river); box-shadow: 0 0 0 6px rgba(21,131,173,.15); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(21,131,173,.05); } }
.status__cancelled { font-family: var(--poster); font-size: 1.3rem; color: #b3261e; text-transform: uppercase; }
.status__items { list-style: none; margin: 0 0 14px; padding: 0; max-width: 640px; }
.status__items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.status__items li span:not(.status__price) { display: block; font-size: .86rem; color: var(--text); }
.status__price { font-family: var(--poster); font-weight: 600; font-size: 1.2rem; color: var(--river); white-space: nowrap; }
.status__total b { font-family: var(--poster); font-size: 1.2rem; text-transform: uppercase; }
.status__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.status__actions .frame-btn { margin: 7px 9px; }
.status__cancel { color: var(--text); text-decoration: underline; }

/* ================= Личный кабинет гостя ================= */
.nav__cab { color: var(--glow) !important; }
.header__cab { display: none; color: var(--moon); font-family: var(--poster); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; white-space: nowrap; }
.header__cab:hover { color: var(--glow); }
@media (min-width: 1200px) { .header__cab { display: inline; } .nav__cab { display: none; } }

.auth { min-height: 70vh; display: grid; place-items: center; padding: 40px 16px 80px; background: radial-gradient(ellipse 70% 60% at 50% 0%, #0f6a8c 0%, var(--dark) 70%); margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 40px); }
.auth__card { width: min(440px, 100%); background: var(--white); border-radius: 22px; padding: 30px 24px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.auth__mark { margin: 0 auto 14px; filter: drop-shadow(0 0 14px rgba(79, 210, 255, .45)); }
.auth__title { align-items: center; margin-bottom: 10px; }
.auth__title span:first-child { font-size: 2.2rem; }
.auth__title span:last-child { font-size: 3rem; }
.auth__lead { color: var(--text); margin-bottom: 20px; }
.auth__form { text-align: left; }
.auth__error { text-align: center; margin-bottom: 12px; }
.auth__switch { margin: 18px 0 6px; }
.auth__hint { font-size: .86rem; color: var(--text); margin: 0; }

.cab-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cab-head .app__title span:last-child { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.cab-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.cab-stats li { display: flex; flex-direction: column; }
.cab-stats b { font-family: var(--poster); font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--cream); }
.cab-stats span { font-size: .85rem; color: var(--text-dark); }
.cab-cta { margin: 0 0 30px; }
.cab-cta .cartbar__btn { display: inline-flex; align-items: center; }
.co-list { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 10px; }
.co { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; }
.co__main { flex: 1 1 260px; display: flex; flex-direction: column; color: var(--ink); line-height: 1.4; }
.co__num { font-family: var(--poster); font-weight: 600; font-size: 1.2rem; }
.co__when { font-size: .86rem; color: var(--river); }
.co__what { font-size: .9rem; color: var(--text); }
.co__sum { font-family: var(--poster); font-weight: 600; font-size: 1.3rem; color: var(--river); }
.co__repeat { display: inline-flex; align-items: center; }
.cab-grid { display: grid; gap: 20px; margin-top: 10px; }
@media (min-width: 900px) { .cab-grid { grid-template-columns: 1fr 1fr; } }
.cab-box { background: var(--kraft-light); border-radius: 18px; padding: 22px; }
.cab-addr { list-style: none; margin: 0; padding: 0; }
.cab-addr li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #c9bda6; }
.cab-addr form { margin: 0; }
.cab-addr .linklike, .cab-logout { color: var(--text); text-decoration: underline; font-size: .9rem; }
.cab-form { margin-bottom: 22px; }
.cab-form .field { margin-bottom: 12px; }
.cab-note { padding: 8px 12px; border-radius: 10px; background: rgba(21,131,173,.12); color: var(--river); font-weight: 600; }
.cab-note--bad { background: rgba(179,38,30,.1); color: #b3261e; }

/* Экран заказа: сохранённые адреса и подсказка войти */
.addr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.addr-chip { border: 1.5px solid var(--ink); border-radius: 999px; background: none; padding: 5px 14px; cursor: pointer; font-size: .86rem; color: var(--ink); text-align: left; }
.addr-chip.is-on { background: var(--ink); color: var(--cream); }
.sheet__login { font-size: .88rem; color: var(--text); margin: -8px 0 16px; }

/* --- Меню: как печатное меню кафе — кремовая бумага, бирюзовая клякса, рисунки пером --- */
.paper {
  --paper-bg: #fbf3e6;      /* кремовая бумага */
  --sketch: #8a4a44;        /* рисунки пером — коричнево-вишнёвые */
  --teal-ink: #3a8790;      /* заголовки разделов — бирюза кляксы, потемнее для чтения */
  --brown-ink: #4a3533;     /* текст блюд */
  --muted-ink: #7d6965;
  --accent: var(--teal-ink);
  background: var(--paper-bg); color: var(--muted-ink);
}
.paper-hero { position: relative; overflow: hidden; padding: 40px 0 36px; text-align: center; }
@media (min-width: 900px) { .paper-hero { padding: 60px 0 50px; } }
.paper-hero__inner { position: relative; z-index: 1; }
.paper-hero__title {
  display: grid; place-items: center; width: min(520px, 100%); aspect-ratio: 520 / 340; margin: 0 auto 6px;
  background: url("/static/img/menu/splash.svg") center / contain no-repeat;
  font-family: "Amatic SC", var(--serif); font-weight: 700; font-size: clamp(4.4rem, 17vw, 8rem);
  line-height: 1; letter-spacing: .02em; color: #fff;
}
.paper-hero__lead { max-width: 520px; margin: 0 auto; font-size: 1.02rem; color: var(--muted-ink); }
.paper-hero__sketch { position: absolute; width: clamp(110px, 17vw, 240px); height: auto; color: var(--sketch); opacity: .5; }
.paper-hero__sketch--l { left: -20px; bottom: -6px; transform: rotate(-8deg); }
.paper-hero__sketch--r { right: -10px; top: 14px; transform: rotate(6deg); }
@media (max-width: 700px) { .paper-hero__sketch { opacity: .22; } }

.chips--paper { background: var(--paper-bg); border-color: rgba(138, 74, 68, .18); }
.chips--paper .chip { color: var(--muted-ink); }
.chips--paper .chip:hover, .chips--paper .chip.is-active { color: var(--teal-ink); border-bottom-color: var(--teal-ink); }

.paper-menu { padding: 10px 0 80px; }
.paper-cols { column-gap: 64px; }
@media (min-width: 760px) { .paper-cols { columns: 2; } }
@media (min-width: 1180px) { .paper-cols { columns: 3; } }
.pcat { break-inside: avoid; padding-top: 44px; scroll-margin-top: 50px; }
.pcat__title {
  display: flex; align-items: flex-end; gap: 12px; margin: 0 0 18px;
  font-family: "Amatic SC", var(--serif); font-weight: 700; font-size: 2.7rem; line-height: 1;
  letter-spacing: .03em; color: var(--teal-ink);
}
.pcat__icon { width: 62px; height: 62px; flex: none; color: var(--sketch); margin-bottom: -10px; }

.pdish { margin-bottom: 15px; }
.pdish__row { display: flex; align-items: baseline; gap: 8px; }
.pdish__name { font-size: 1.02rem; font-weight: 500; line-height: 1.45; color: var(--brown-ink); }
.pdish__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(138, 74, 68, .35); transform: translateY(-5px); }
.pdish__weight { white-space: nowrap; font-variant-numeric: lining-nums; }
.pdish__price { min-width: 4.4em; text-align: right; font-weight: 600; color: var(--brown-ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.pdish__note { margin: 2px 0 0; max-width: 34em; font-size: .88rem; line-height: 1.55; color: var(--muted-ink); }

.paper-menu__foot { max-width: 640px; margin: 50px auto 0; text-align: center; font-size: .9rem; }
.paper-menu__cta { margin-top: 30px; }

/* --- Статичная копия сайта: вместо отправки заявки — позвонить или написать --- */
.contact-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-cta__lead { margin: 0 0 6px; max-width: 520px; }
.kt-form-block .contact-cta { align-items: center; text-align: center; }

/* Крутящиеся надписи по кругу (.ring): повёрнутый квадрат по диагонали шире себя,
   и на телефоне его край выходил за экран — появлялась белая полоса справа и прокрутка
   вбок. Секции с кольцами обрезают лишнее по горизонтали; clip, а не hidden — чтобы не
   срезать верх и низ надписи и не превращать секцию в прокручиваемый блок. */
.menu-block, .kt-teaser, .kt-intro, .about { overflow-x: clip; }
/* Старые iPhone (iOS 15 и раньше) не знают clip — для них страховка на уровне страницы */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
/* Колонка сетки по умолчанию не уже своего самого широкого неразрывного содержимого
   (min-width: auto) — на экранах 320 px строка с ценами распирала её за край экрана */
.split > *, .week__slide > *, .menu3 > *, .kt-intro__grid > *, .dark-menu__cols > * { min-width: 0; }
/* Узкий экран: строка меню переносится целиком — цены уходят на следующую строку и
   прижимаются вправо, вместо того чтобы сжать название до столбика букв */
.mi__row { flex-wrap: wrap; row-gap: 2px; }
.mi__name { min-width: 0; overflow-wrap: break-word; }
.mi__price { margin-left: auto; }
@media (max-width: 400px) { .note-card { padding: 30px 20px; } }
/* Кнопки в рамке на узком экране: поуже поля, чтобы текст не ломался на две строки */
@media (max-width: 400px) { .frame-btn { padding: 0 26px; white-space: nowrap; } }
.calc > *, .calc__grid > * { min-width: 0; }
/* Самые узкие экраны: сумма и кнопка заявки — в две строки */
@media (max-width: 360px) { .total { flex-wrap: wrap; } .total .frame-btn { flex: 1 1 auto; } }
