/* ============ Coffee Original — общие стили ============ */
:root {
  /* Палитра по логотипу Coffee Original: бордо, кофейно-чёрный, белый */
  --brand: #75040a;       /* красный логотипа — кнопки, фон формы и отзывов (9:1 с белым) */
  --brand-dark: #560307;
  --espresso: #1c0f0f;    /* чёрный лента/кант логотипа — подвал, тёмный текст */
  --rust: #9a1b1f;        /* крупные заголовки и иконки */
  --rust-ink: #75040a;    /* мелкий акцентный текст */
  --sand: #e3c9a8;        /* тёплый беж — плитка-цитата */
  --paper: #f3eee5;
  --kraft: #d8c2a2;
  --ink: #2a2620;
  --muted: #6d655a;
  --white: #fffdf9;
  --line: rgba(42, 38, 32, 0.14);

  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.page-menu { scroll-padding-top: calc(var(--header-h) + 120px); }
a, button, select, input { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
/* В Cormorant цифры по умолчанию «старого стиля» — для цен и времени нужны ровные */
.price, .facts b, .reviews__score b, .badge-247 { font-variant-numeric: lining-nums tabular-nums; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--espresso); color: var(--white); padding: 12px 18px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 2.1em;
  border: 0; border-radius: 999px;
  background: var(--brand); color: var(--white);
  font: 600 .9rem/1 var(--sans); letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn--ghost:hover { background: var(--brand); color: var(--white); }
.btn--light { background: var(--white); color: var(--espresso); }
.btn--light:hover { background: var(--kraft); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Шапка: логотип слева, иконки-вкладки по центру, «24/7» и кнопка меню справа */
.header .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { width: 52px; height: 52px; }
.logo span { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--espresso); line-height: 1; }

.badge-247 {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--white); background: var(--rust-ink);
  border-radius: 999px; padding: 4px 12px; line-height: 1.2; white-space: nowrap;
}

/* Надпись «О НАС» справа в шапке (на месте прежней кнопки ☰) */
.header-about {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--brand);
  color: var(--brand); text-decoration: none; white-space: nowrap;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.header-about:hover, .header-about[aria-current="page"] { background: var(--brand); color: var(--white); }

/* Переключатель языка RU / EN */
.lang-switch {
  flex: none; display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(28, 15, 15, .06); font-size: .74rem; font-weight: 600; letter-spacing: .06em;
}
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 34px;
  padding: 0 8px; border-radius: 999px; text-decoration: none;
}
.lang-switch a { color: var(--muted); transition: color .2s, background .2s; }
.lang-switch a:hover { color: var(--brand); background: var(--white); }
.lang-switch [aria-current] { background: var(--brand); color: var(--white); }

.reviews__note { text-align: center; font-size: .82rem; opacity: .8; margin: 14px 0 -24px; }
.badge-247 { flex: none; }
@media (max-width: 1000px) {
  .logo span { font-size: 1.05rem; white-space: nowrap; }
  .logo img { width: 44px; height: 44px; }
}
/* Узкие экраны: иконки уходят во вторую строку шапки */
@media (max-width: 820px) {
  :root { --header-h: 124px; }
  .header .wrap { flex-wrap: wrap; align-content: center; row-gap: 2px; column-gap: 12px; }
  .header .badge-247 { margin-left: auto; }
  .header .icon-tabs { order: 5; flex: 1 0 100%; }
}
/* Узкий телефон: прячем подпись у логотипа, чтобы поместились «24/7», «О нас» и RU/EN */
@media (max-width: 460px) {
  .header .logo span { display: none; }
  .header .wrap { column-gap: 8px; }
  .header-about { padding: 0 10px; font-size: .72rem; }
}

/* ---------- Заголовки секций (как в референсе: крупный капс с засечками) ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow-x: clip; }
.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
}
.section-lead {
  max-width: 62ch; margin: 18px auto 0; text-align: center;
  color: var(--muted); font-size: 1.02rem;
}

/* ---------- Рисованные зёрна по краям ---------- */
.doodle { position: absolute; pointer-events: none; opacity: .85; z-index: 0; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
/* Главное фото: логотип в кольце из зёрен — показываем целиком, без обрезки */
.hero-photo { margin: 0; background: #ecebe8; }
.hero-photo img { width: 100%; height: auto; }

/* ---------- Иконки-вкладки в шапке (по мотивам 3d-icon-tabs) ---------- */
.icon-tabs { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.icon-tabs__bar { position: relative; display: flex; gap: clamp(0px, 1.2vw, 14px); }
.icon-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 0; padding: 2px 8px 8px; text-decoration: none; text-align: center; white-space: nowrap;
  color: var(--muted); font-size: .74rem; letter-spacing: .01em; -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.icon-tab:hover { color: var(--espresso); }
.icon-tab.is-active { color: var(--espresso); font-weight: 600; }
.icon-tab__icon {
  position: relative; display: block; width: 34px; height: 34px;
  transform: scale(0); animation: icon-pop .6s cubic-bezier(.34, 1.56, .64, 1) forwards;
  animation-delay: calc(var(--i) * .1s);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.icon-tab__icon svg { width: 100%; height: 100%; overflow: visible; }
/* После появления снимаем анимацию, чтобы работали наведение и нажатие */
.icon-tabs.is-ready .icon-tab__icon { animation: none; transform: scale(1); }
.icon-tabs.is-ready .icon-tab:not(.is-active):hover .icon-tab__icon { transform: scale(1.1); }
.icon-tabs.is-ready .icon-tab:not(.is-active):active .icon-tab__icon { transform: scale(.8); }
.icon-tabs.is-ready .icon-tab.is-bouncing .icon-tab__icon { animation: icon-bounce .45s cubic-bezier(.34, 1.56, .64, 1); }
@media (prefers-reduced-motion: reduce) { .icon-tab__icon { transform: none; } }
.icon-tab__steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes icon-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes icon-bounce { 0% { transform: scale(1); } 35% { transform: scale(.82) rotate(-6deg); } 70% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(1); } }
@keyframes steam { 0%, 100% { opacity: .85; transform: translateY(0); } 50% { opacity: .35; transform: translateY(-3px); } }

/* Скользящая полоска под активной вкладкой */
.icon-tabs__bubble {
  position: absolute; bottom: 2px; left: 0; height: 3px; width: 0; border-radius: 999px;
  background: var(--brand); transition: left .4s cubic-bezier(.34, 1.3, .64, 1), width .4s cubic-bezier(.34, 1.3, .64, 1);
}
.icon-tabs__bubble.no-anim { transition: none; }

/* Глянцевая плашка NEW */
.new-badge {
  position: absolute; top: -5px; right: -20px; z-index: 2;
  padding: 1px 5px; border-radius: 999px 999px 999px 4px;
  background: var(--brand); color: #fff; font: 700 .5rem/1.2 var(--sans); letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 190, .25), inset 0 3px 7px rgba(255, 190, 190, .4),
    inset 0 -4px 3px rgba(255, 190, 190, .35), 0 1px 3px rgba(0, 0, 0, .45), 0 4px 12px rgba(0, 0, 0, .35);
}
.new-badge__reflection {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -6px) scaleY(-1); opacity: .35;
  color: var(--brand); pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #fff 10%, transparent 55%); mask-image: linear-gradient(to top, #fff 10%, transparent 55%);
}
/* Во второй строке шапки — на всю ширину */
@media (max-width: 820px) {
  .icon-tabs__bar { width: 100%; max-width: 520px; justify-content: space-between; gap: 0; }
  .icon-tab { flex: 1 1 0; padding: 0 1px 8px; font-size: .68rem; line-height: 1.15; white-space: normal; }
  .icon-tab__icon { width: 30px; height: 30px; }
}

/* Интерьер с заголовком и кнопками */
.hero {
  position: relative; display: grid; place-items: center; text-align: center;
  padding: clamp(72px, 10vw, 128px) 0; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(243,238,229,.6), rgba(243,238,229,.8) 60%, var(--paper));
}
.hero .wrap { position: relative; z-index: 1; }
.hero__stamp { width: clamp(96px, 12vw, 136px); height: auto; aspect-ratio: 1; margin: 0 auto 26px; filter: drop-shadow(0 10px 18px rgba(28, 15, 15, .3)); }
.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  color: var(--espresso); text-transform: uppercase; letter-spacing: .03em;
}
.hero__sub { max-width: 46ch; margin: 22px auto 34px; font-size: 1.08rem; color: var(--ink); }


.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__rating { margin-top: 30px; font-size: .92rem; color: var(--muted); }
.hero__rating strong { color: var(--rust); font-size: 1.05rem; }

/* ---------- Три направления ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); margin-top: 56px; }
.trio a { text-decoration: none; text-align: center; }
.trio figure { margin: 0; aspect-ratio: 4/4.4; overflow: hidden; background: var(--kraft); }
.trio img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.trio a:hover img { transform: scale(1.04); }
.trio h3 { margin-top: 18px; font-size: 1.55rem; color: var(--rust); text-transform: uppercase; letter-spacing: .05em; }
.trio p { color: var(--muted); font-size: .93rem; margin: 6px auto 0; max-width: 30ch; }
@media (max-width: 720px) { .trio { grid-template-columns: 1fr; } .trio figure { aspect-ratio: 16/11; } }

/* ---------- Мозаика с цитатами ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mosaic > * { aspect-ratio: 1; margin: 0; overflow: hidden; background: var(--kraft); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.quote {
  display: grid; place-items: center; text-align: center; padding: 12%;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.4; color: var(--white);
}
.quote--rust { background: var(--rust-ink); }
.quote--sand { background: var(--sand); color: var(--espresso); }
.quote--olive { background: var(--espresso); }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .quote { font-size: 1.05rem; padding: 10%; }
}

/* ---------- Авторские напитки ---------- */
.signature { background: #efe6d8; }
/* Фото трёх чашек из меню кофейни, под каждой — название и цена */
.signature__cups { margin: 48px auto 0; max-width: 680px; border-radius: 14px; overflow: hidden; background: var(--kraft); }
.signature__cups img { width: 100%; height: auto; }
.signature__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 680px; margin: 18px auto 0; align-items: end; }
.drink { text-align: center; }
.drink h3 { font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--espresso); }
.drink p { color: var(--muted); font-size: .9rem; margin: 4px 0 6px; }
.drink .price { font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--rust-ink); }
.signature .center { text-align: center; margin-top: 48px; }

/* Чайная карта — как на постере кофейни */
.tea-board {
  position: relative; max-width: 760px; margin: 64px auto 0;
  border: 1.5px solid rgba(74, 52, 30, .45); border-radius: 22px;
  padding: 44px clamp(18px, 5vw, 48px) 28px; background: rgba(255, 253, 249, .55);
}
.tea-board__title {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  background: #efe6d8; padding: 0 22px; margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: #4a341e; text-transform: uppercase; letter-spacing: .08em;
}
.tea-board__list { list-style: none; margin: 0; padding: 0; }
.tea-board__list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px 28px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed rgba(74, 52, 30, .2);
}
.tea-board__list li:last-child { border-bottom: 0; }
.tea-board__name { font-weight: 600; color: #4a341e; }
.tea-board__vol { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.tea-board__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: #4a341e; }
@media (max-width: 560px) {
  .tea-board__list li { grid-template-columns: 1fr auto; }
  .tea-board__vol { grid-column: 1; grid-row: 2; margin-top: -6px; }
  .tea-board__price { grid-row: 1 / span 2; align-self: center; }
}

/* Кофе с собой */
.takeaway__in { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.takeaway__photo { margin: 0; border-radius: 14px; overflow: hidden; background: var(--kraft); box-shadow: 0 24px 50px -28px rgba(74, 52, 30, .55); }
.takeaway__photo img { width: 100%; height: auto; }
.takeaway h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--brand); }
.takeaway p { color: var(--muted); max-width: 40ch; margin: 16px 0 28px; }
@media (max-width: 820px) { .takeaway__in { grid-template-columns: 1fr; } }

/* ---------- Собери свой завтрак ---------- */
.builder { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.builder__photo { margin: 0; aspect-ratio: 4/5; overflow: hidden; background: var(--kraft); }
.builder__photo img { width: 100%; height: 100%; object-fit: cover; }
.builder h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--brand); }
.builder p { color: var(--muted); max-width: 46ch; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; padding: 0; list-style: none; }
.chips li {
  font-size: .85rem; padding: 7px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
}
.chips li b { color: var(--rust-ink); font-weight: 600; margin-left: 6px; }
@media (max-width: 820px) { .builder { grid-template-columns: 1fr; } .builder__photo { aspect-ratio: 16/11; } }

/* ---------- WhatsApp-карточка с логотипом ---------- */
.wa-card {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 8px 24px 8px 8px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: border-color .2s;
}
.wa-card:hover { border-color: #1f8f4e; }
.wa-card img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.wa-card b { display: block; font-size: 1.08rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.wa-card small { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.wa-card small svg { width: 16px; height: 16px; color: #1f8f4e; flex: none; }
.footer .wa-card { margin-top: 20px; background: rgba(255, 253, 249, .06); border-color: rgba(255, 253, 249, .2); color: var(--white); }
.footer .wa-card:hover { border-color: #7fd39f; color: var(--white); }
.footer .wa-card small { color: rgba(255, 253, 249, .8); }
.footer .wa-card small svg { color: #7fd39f; }

/* ---------- Онлайн-заказ ---------- */
.order-links { display: flex; flex-wrap: wrap; gap: 12px; }
.order-links--center { justify-content: center; margin-top: 26px; }
.order-link {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 24px 8px 8px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); text-align: left; transition: border-color .2s;
}
.order-link:hover { border-color: var(--brand); }
.order-link__mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.order-link__mark svg { width: 22px; height: 22px; }
.order-link--yandex .order-link__mark { background: #fce000; color: #21201f; }
.order-link--wolt .order-link__mark { background: #009de0; color: #fff; }
.order-link b { display: block; font-weight: 600; font-size: 1rem; }
.order-link small { display: block; font-size: .82rem; color: var(--muted); }

.order { display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 5vw, 64px); align-items: center; }
.order h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--brand); }
.order p { color: var(--muted); max-width: 48ch; margin: 16px 0 0; }
.order__actions { display: grid; gap: 12px; min-width: min(100%, 320px); }
.order__actions .order-links { flex-direction: column; }
.order__actions .order-link, .order__actions .wa-card { width: 100%; }
@media (max-width: 820px) { .order { grid-template-columns: 1fr; } }

/* ---------- Отзывы ---------- */
.reviews { background: var(--brand); color: var(--white); overflow: hidden; }
.reviews .section-title { color: var(--white); }
.reviews__summary { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 18px; }
.reviews__score { margin: 0; text-align: center; font-size: 1rem; }
.reviews__score b { font-family: var(--serif); font-size: 2rem; vertical-align: -2px; }
.reviews__stars { color: #f3c969; letter-spacing: 2px; margin: 0 6px; }

/* Плашка «аватарки внахлёст + число оценок» (по мотивам demo из промта) */
.trust-pill {
  display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center;
  padding: 5px 18px 5px 6px; border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: .9rem;
}
.trust-pill__faces { display: inline-flex; padding-right: 6px; }
.trust-pill__faces img { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--white); }
.trust-pill__faces img + img { margin-left: -10px; }
@media (max-width: 520px) {
  .trust-pill { flex-direction: column; gap: 6px; border-radius: 18px; padding: 10px 18px; text-align: center; }
  .trust-pill__faces { padding: 0; }
}

/* Карточки отзывов (по мотивам testimonial из промта: тёмная карточка, цитата, автор, строка с градиентом) */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.t-card {
  margin: 0; display: flex; flex-direction: column;
  padding: 24px; border-radius: 18px; background: var(--espresso); color: #f6f2ea;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .55);
}
.t-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(246, 242, 234, .25);
}
.t-card__avatar--initials {
  display: grid; place-items: center; background: #c0632b; color: #fff;
  font-weight: 600; font-size: 1.1rem; letter-spacing: .02em;
}
.t-card__stars { margin-top: 16px; color: #f3c969; letter-spacing: 3px; font-size: 1.05rem; }
.t-card__star-off { color: rgba(246, 242, 234, .25); }
.t-card blockquote {
  flex: 1; margin: 12px 0 0; padding-bottom: 20px; border-bottom: 1px solid rgba(246, 242, 234, .18);
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; font-weight: 400;
}
.t-card figcaption { display: grid; gap: 2px; margin-top: 16px; }
.t-card__author { font-weight: 500; }
.t-card__meta {
  font-size: .85rem; font-weight: 600;
  background: linear-gradient(90deg, #f3c969, #e9a066 55%, #d98a6a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reviews .center { text-align: center; margin-top: 48px; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn--outline-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 253, 249, .75); }
.btn--outline-light:hover { background: rgba(255, 253, 249, .12); }
@media (max-width: 1000px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .t-grid { grid-template-columns: 1fr; } }

/* ---------- Волна-разделитель ---------- */
.wave { display: block; width: 100%; height: 60px; margin-bottom: -1px; }

/* ---------- Подвал ---------- */
.footer { background: var(--espresso); color: rgba(255, 253, 249, .85); padding: 64px 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer h2 { font-size: 1.3rem; color: var(--white); margin: 0 0 14px; }
.footer ul a { display: inline-block; padding: 4px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sand); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer .logo span { color: var(--white); }
.footer__about { margin-top: 16px; max-width: 32ch; }
.footer__bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; opacity: .7;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Заголовок внутренней страницы ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); text-align: center; position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); color: var(--rust); text-transform: uppercase; letter-spacing: .05em; }
.page-head p { color: var(--muted); max-width: 56ch; margin: 16px auto 0; }
@media (max-width: 640px) { .page-head .doodle { display: none; } }

/* ---------- Меню ---------- */
.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(243, 238, 229, .95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.menu-tabs__groups { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
.menu-tabs__groups button {
  border: 0; background: none; cursor: pointer; font: 600 .8rem var(--sans);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; white-space: nowrap; flex: none;
}
.menu-tabs__groups button[aria-pressed="true"] { background: var(--brand); color: var(--white); }
.menu-tabs__cats {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--gutter) 12px;
  scrollbar-width: thin; max-width: var(--wrap); margin: 0 auto; position: relative;
}
.menu-tabs__cats a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px;
  text-decoration: none; font-size: .88rem; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); white-space: nowrap;
}
.menu-tabs__cats a.is-active { border-color: var(--rust-ink); color: var(--rust-ink); }

.menu-group[hidden] { display: none; }
.menu-cat {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 5vw, 64px);
  padding: clamp(44px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 110px);
}
.menu-cat:last-child { border-bottom: 0; }
.menu-cat__head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem); color: var(--rust);
  text-transform: uppercase; letter-spacing: .05em;
}
.menu-cat__head svg { width: 64px; height: 64px; color: var(--rust); margin-top: 18px; }
.menu-cat__note { font-size: .85rem; color: var(--muted); margin-top: 12px; max-width: 26ch; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list { min-width: 0; }
.menu-sizes, .menu-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 14px; }
.menu-sizes { font-size: .78rem; color: var(--muted); padding-bottom: 6px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.menu-item { padding: 9px 0; }
.menu-item__name { font-weight: 600; font-size: .95rem; display: flex; align-items: baseline; gap: 10px; }
.menu-item__name::after { content: ""; flex: 1; border-bottom: 1.5px dotted rgba(42,38,32,.35); transform: translateY(-4px); min-width: 20px; }
.menu-item__desc { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); margin-top: -4px; max-width: 70ch; }
.prices { display: flex; gap: 14px; }
.prices span { min-width: 72px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prices span.empty { color: rgba(42, 38, 32, .3); }
.price-alt { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.menu-photos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 24px); margin-top: 18px; }
.menu-photos figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--kraft); }
.menu-photos img { width: 100%; height: 100%; object-fit: cover; }

.menu-foot { text-align: center; color: var(--muted); font-size: .88rem; padding: 32px 0 80px; }

@media (max-width: 760px) {
  .menu-cat { grid-template-columns: 1fr; }
  .menu-cat__head { display: flex; align-items: center; gap: 16px; }
  .menu-cat__head svg { order: -1; width: 44px; height: 44px; margin: 0; flex: none; }
  .menu-cat__note { display: none; }
  .prices { gap: 10px; }
  .prices span { min-width: 46px; font-size: .95rem; }
  .menu-item__name { font-size: 1rem; }
  .menu-item__desc { font-size: .9rem; }
  .menu-item__name::after { min-width: 8px; }
  .menu-item__name { font-size: .9rem; }
  .menu-photos { gap: 6px; }
  .menu-tabs__groups { justify-content: flex-start; overflow-x: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* ---------- О нас ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-intro figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; background: var(--kraft); }
.about-intro img { width: 100%; height: 100%; object-fit: cover; }
.about-intro h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--brand); margin-bottom: 22px; }
.about-intro p { color: var(--muted); max-width: 52ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 36px 12px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--rust); line-height: 1; }
.facts span { color: var(--muted); font-size: .9rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: 52px; }
.values h3 { font-size: 1.6rem; color: var(--espresso); margin: 16px 0 10px; }
.values p { color: var(--muted); font-size: .94rem; }
.values svg { width: 52px; height: 52px; color: var(--rust); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 240px; gap: 8px; }
.gallery figure { margin: 0; overflow: hidden; background: var(--kraft); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .about-intro, .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.contact-info dl { margin: 0; display: grid; gap: 22px; }
.contact-info dt { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--rust); }
.contact-info dd { margin: 4px 0 0; }
.contact-info dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info dd a:hover { border-color: var(--rust); }
.map { margin-top: 32px; aspect-ratio: 4/3; border: 0; width: 100%; background: var(--kraft); display: block; }

.form-card { scroll-margin-top: calc(var(--header-h) + 16px); background: var(--brand); color: var(--white); padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.form-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.form-card > p { opacity: .85; margin: 10px 0 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-size: .82rem; font-weight: 500; }

/* ---------- Календарь брони (по мотивам Halaska UI kit) ---------- */
.cal {
  width: 100%; max-width: 360px; padding: 16px;
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(42, 38, 32, .08); border-radius: 16px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45);
}
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__title { font-weight: 600; font-size: .95rem; color: var(--espresso); }
.cal__nav {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font: 400 1.4rem/1 var(--sans); color: var(--muted); transition: background .15s, color .15s;
}
.cal__nav:hover:not(:disabled) { background: #f1ece2; color: var(--espresso); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__wd { text-align: center; padding: 6px 0; font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.cal__day {
  min-height: 40px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer;
  font: 400 .9rem var(--sans); color: var(--ink); font-variant-numeric: tabular-nums;
  transition: background .15s, color .15s, border-color .15s;
}
.cal__day:hover:not(:disabled):not(.is-selected) { background: #f1ece2; }
.cal__day.is-today { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.cal__day.is-selected { background: var(--brand); color: #fff; font-weight: 600; border-color: var(--brand); }
.cal__day:disabled { color: rgba(42, 38, 32, .28); cursor: default; }
.cal__day:focus-visible, .cal__nav:focus-visible { outline: 2px solid var(--rust-ink); outline-offset: 1px; }
.field.has-error .cal { box-shadow: 0 0 0 2px #f0a37a; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); min-height: 48px;
  padding: 12px 14px; border-radius: 10px; border: 2px solid transparent; background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sand); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #f0a37a; }
.field__error { font-size: .78rem; color: #ffd2b8; min-height: 1em; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__hint { grid-column: 1 / -1; font-size: .8rem; opacity: .75; margin: 0; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success h3 { font-size: 2rem; margin-bottom: 12px; }
.form-success[hidden], .form[hidden] { display: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ================= ОСЕННЕЕ МЕНЮ ================= */
:root {
  --au-bg: #f4e6d2;      /* тёплый беж */
  --au-pumpkin: #c8611f; /* тыква — крупный текст и акценты */
  --au-rust: #8f3b1b;    /* ржавчина — мелкий текст (6:1 на беже) */
  --au-mustard: #d9a23a; /* горчица */
  --au-wine: #5e2324;    /* бордо */
  --au-brown: #3b2416;   /* корица */
}
html.page-autumn body { background: var(--au-bg); }

.btn--autumn { background: var(--au-pumpkin); color: #fff; }
.btn--autumn:hover { background: var(--au-rust); }
.btn--autumn-ghost { background: transparent; color: #fff7ec; box-shadow: inset 0 0 0 1.5px rgba(255, 247, 236, .8); }
.btn--autumn-ghost:hover { background: rgba(255, 247, 236, .14); }

.au-hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; overflow: hidden; color: #fff7ec; }
.au-hero__img { position: absolute; inset: 0; }
.au-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.au-hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(59, 36, 22, .92) 0%, rgba(94, 35, 36, .72) 45%, rgba(94, 35, 36, .1) 100%);
}
.au-hero__body { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.au-hero h1 { font-size: clamp(2.4rem, 6.6vw, 4.8rem); text-transform: uppercase; letter-spacing: .03em; color: #fff7ec; max-width: 9ch; }
.au-hero p { max-width: 40ch; font-size: 1.12rem; margin: 22px 0 32px; color: #f6e3cc; }
.au-leaf { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
@media (max-width: 720px) {
  .au-hero__img::after { background: linear-gradient(180deg, rgba(59, 36, 22, .55), rgba(94, 35, 36, .9)); }
  .au-leaf { display: none; }
}

.au-section { padding: clamp(56px, 8vw, 96px) 0 0; }
.au-title {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--au-pumpkin);
  text-transform: uppercase; letter-spacing: .06em; text-align: center;
}
.au-title::before, .au-title::after {
  content: ""; width: 34px; height: 34px; flex: none;
  background: url("../assets/doodles/leaf.svg") center / contain no-repeat;
}
.au-title::after { transform: scaleX(-1) rotate(-20deg); }
.au-title::before { transform: rotate(-20deg); }

.au-dishes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px); margin-top: 44px; }
.au-dish { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.au-dish figure {
  margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--kraft);
  box-shadow: 0 18px 36px -16px rgba(94, 35, 36, .55), 0 0 0 6px #fbf3e7;
}
.au-dish img { width: 100%; height: 100%; object-fit: cover; }
.au-dish h3 { font-size: 1.6rem; color: var(--au-brown); }
.au-dish p { font-size: .92rem; color: #6b5444; margin: 8px 0 10px; }
.au-price { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--au-rust); font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 860px) {
  .au-dishes { grid-template-columns: 1fr; }
  .au-dish { grid-template-columns: 120px 1fr; gap: 18px; }
}

.au-teas { margin-top: clamp(64px, 9vw, 110px); background: var(--au-wine); color: #fbeedd; padding: clamp(56px, 8vw, 96px) 0; }
.au-teas__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.au-teas figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: 200px 200px 12px 12px; background: var(--au-brown); }
.au-teas img { width: 100%; height: 100%; object-fit: cover; }
.au-teas h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--au-mustard); }
.au-teas p { margin: 12px 0 24px; opacity: .9; }
.au-teas__list { list-style: none; margin: 0; padding: 0; }
.au-teas__list li {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(251, 238, 221, .2); font-weight: 500;
}
.au-teas__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .au-teas__in { grid-template-columns: 1fr; }
  .au-teas figure { aspect-ratio: 16/10; border-radius: 12px; }
}
@media (max-width: 420px) { .au-teas__list li { flex-direction: column; gap: 2px; } }

.au-cta .section-lead { margin-bottom: 8px; }

.menu-cat__link { margin-top: 18px; padding: .8em 1.4em; }

/* ---------- Адреса кофеен ---------- */
.addresses { background: #efe6d8; scroll-margin-top: -16px; }
.addr-group {
  display: flex; align-items: center; gap: 10px; margin: 44px 0 18px;
  font-size: 1.3rem; color: var(--espresso);
}
.addr-group span {
  font: 600 .8rem/1 var(--sans); color: var(--white); background: var(--brand);
  border-radius: 999px; padding: 5px 9px;
}
.addr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.addr {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  background: var(--white); border-radius: 16px; border: 1px solid rgba(28, 15, 15, .06);
}
.addr.is-soon { background: transparent; border-style: dashed; border-color: rgba(28, 15, 15, .25); }
.addr__name { margin: 0; font: 600 .8rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.addr__line { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; color: var(--espresso); }
.addr__rating { margin: 0; font-size: .88rem; color: var(--muted); }
.addr__rating b { color: var(--espresso); }
.addr__stars { color: #e3a52c; }
.addr__rating--none { font-style: italic; }
.addr__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.addr__status { font-size: .8rem; font-weight: 600; }
.addr__status--open { color: #2e7d32; }
.addr__status--soon { color: #b05a00; }
.addr__route {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand);
  transition: background .2s, color .2s;
}
.addr__route:hover { background: var(--brand); color: var(--white); }
@media (max-width: 1000px) { .addr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .addr-grid { grid-template-columns: 1fr; } }

/* ---------- Фолбэк для не загрузившихся фото ---------- */
img.img-missing { opacity: 0; }

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