/* ============================================================================
   Buba Tea — стили сайта
   Палитра и шрифт взяты из брендбука приложения (BubaApp/blueprint/02_brand.md),
   чтобы сайт, планшет в кафе и упаковка выглядели одним брендом.
   Comfortaa — на заголовках и кнопках; для длинных абзацев системный гротеск:
   он читается лучше и не тянет второй шрифтовой файл.
   ========================================================================== */

@font-face {
  font-family: 'Comfortaa';
  src: url('/fonts/comfortaa-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('/fonts/comfortaa-cyrillic.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --black: #000;
  --white: #fff;
  --light-gray: #f0f0f0;
  --stone: #d8d3c9;
  --gray: #99a4b4;
  --matcha: #8db848;
  --matcha-dark: #6f9433; /* для текста по светлому — у #8DB848 не хватает контраста */

  --ink: var(--black);
  --ink-soft: #4a4a4a;
  --bg: var(--white);
  --bg-tint: var(--light-gray);

  --display: 'Comfortaa', system-ui, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3rem, 8vw, 6rem);
}

/* ── Основа ────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  /* Липкая шапка (72px) плюс липкая полоса категорий в меню (~58px)
     не должны накрывать заголовок при переходе по якорю. */
  scroll-padding-top: 136px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* Бесконечное покачивание при нулевой длительности превратилось бы
     в дрожание — выключаем его целиком. */
  .hero-fruit {
    animation: none !important;
  }
  /* Карусель не крутится сама — переключение только по точкам. */
  .hero-cup {
    transition: none !important;
  }
  /* Блик по плашкам — чистое украшение, при просьбе о покое убираем. */
  .chip::after,
  .ticks .tick-wow::after {
    animation: none !important;
    opacity: 0;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
.btn,
.nav,
.lang,
.item-price,
.logo {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.h-small {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
}

.note {
  font-size: 0.9375rem;
  color: var(--gray);
}

.kicker {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--matcha-dark);
  margin: 0 0 0.75rem;
}

.center {
  text-align: center;
}

.center .lead,
.center .cta-row {
  margin-left: auto;
  margin-right: auto;
}

.center .cta-row {
  justify-content: center;
}

/* ── Раскладка ─────────────────────────────────────────────────────────── */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.section {
  padding-block: var(--section-y);
}

.section-tint {
  background: var(--bg-tint);
}

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  min-height: 48px; /* палец на телефоне */
  border: 2px solid var(--matcha);
  border-radius: 999px;
  background: var(--matcha);
  color: var(--black);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: #9fc75c;
  border-color: #9fc75c;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--black);
}

.btn-ghost:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: var(--stone);
  border-color: var(--stone);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  min-height: 40px;
  font-size: 0.9375rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--matcha-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

/* ── Шапка ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 72px;
}

.logo {
  display: flex;
  flex: 0 0 auto;
}

.logo img {
  height: 30px;
  width: auto;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.9375rem;
  margin-right: auto;
}

.nav a {
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.is-current {
  border-bottom-color: var(--matcha);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.lang {
  display: flex;
  gap: 0.4rem;
  font-size: 0.8125rem;
}

.lang a {
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  color: var(--gray);
}

.lang a.is-current {
  background: var(--light-gray);
  color: var(--black);
}

/* ── Плашки соцсетей ───────────────────────────────────────────────────── */

/* auto-отступ слева прижимает плашки и всё, что за ними, к правому краю */
.social-bar {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: 0.25rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--light-gray);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.social-link svg {
  width: 19px;
  height: 19px;
}

.social-link:hover {
  background: var(--matcha);
  color: var(--black);
}

.burger {
  display: grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  align-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--light-gray);
  background: var(--white);
  padding-block: 1rem 1.5rem;
}

.mobile-nav .wrap {
  display: grid;
  gap: 0.25rem;
}

.mobile-nav a:not(.btn) {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.6rem 0;
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  justify-self: start;
}

@media (min-width: 900px) {
  .nav,
  .header-actions {
    display: flex;
  }
  .burger,
  .mobile-nav {
    display: none !important;
  }
}

/* ── Первый экран ──────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Первый экран: один большой напиток и разлетевшиеся кусочки фрукта.
   Тёплая подложка взята из самого напитка, поэтому вырезанный стакан
   не выглядит наклеенным на чужой фон. */
.hero {
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 40%, rgba(240, 196, 186, 0.28) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--white) 0%, #fbf9f8 100%);
}

@media (min-width: 900px) {
  .hero-inner {
    min-height: min(84vh, 780px);
    align-items: center;
  }
}

.hero-shot {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* ── Карусель напитков ─────────────────────────────────────────────────
   Три стакана на одной сцене: передний крупный и резкий, боковые уменьшены,
   отодвинуты и размыты. Каждые несколько секунд роли сдвигаются по кругу —
   поэтому видно и наполнение переднего, и что напитков несколько. */
.hero-carousel {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: min(64vh, 600px);
}

.hero-cup {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  transition: transform 0.75s cubic-bezier(0.22, 0.7, 0.24, 1),
    opacity 0.75s ease, filter 0.75s ease;
  will-change: transform, opacity;
}

/* Значения выписаны целиком, без переменных: Safari не анимирует переходы,
   если transform собран из CSS-переменных — стаканы перескакивали бы рывком. */
.hero-cup[data-pos='front'] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: drop-shadow(0 26px 38px rgba(120, 60, 50, 0.22));
  z-index: 3;
}

.hero-cup[data-pos='right'] {
  transform: translate(-50%, -50%) translateX(74%) scale(0.58);
  opacity: 0.5;
  filter: drop-shadow(0 18px 26px rgba(120, 60, 50, 0.18)) blur(2.5px);
  z-index: 1;
}

.hero-cup[data-pos='left'] {
  transform: translate(-50%, -50%) translateX(-74%) scale(0.58);
  opacity: 0.5;
  filter: drop-shadow(0 18px 26px rgba(120, 60, 50, 0.18)) blur(2.5px);
  z-index: 1;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-dot[aria-selected='true']::before {
  background: var(--matcha-dark);
  transform: scale(1.4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Кусочки фрукта ────────────────────────────────────────────────────
   Разный размер, поворот и размытие: ближние резкие, дальние мягкие —
   так плоская картинка получает глубину, как в съёмке с малой глубиной резкости. */
.hero-fruit {
  position: absolute;
  z-index: 1;
  width: 18%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  animation: buba-float 8s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-fruit-1 { top: 6%; right: 4%; width: 22%; filter: blur(1px); animation-duration: 7.5s; }
.hero-fruit-2 { top: 22%; left: 2%; width: 15%; filter: blur(3px); animation-duration: 9s; animation-delay: -2s; }
.hero-fruit-3 { bottom: 16%; left: 6%; width: 20%; animation-duration: 6.5s; animation-delay: -3s; }
.hero-fruit-4 { bottom: 4%; right: 10%; width: 16%; filter: blur(2px); animation-duration: 8.5s; animation-delay: -1s; }
.hero-fruit-5 { top: 44%; right: 0; width: 13%; filter: blur(4px); animation-duration: 10s; animation-delay: -4s; }
.hero-fruit-6 { top: 2%; left: 22%; width: 12%; filter: blur(3px); animation-duration: 9.5s; animation-delay: -5s; }

@keyframes buba-float {
  from { transform: translateY(6px); }
  to { transform: translateY(-12px); }
}

@media (max-width: 620px) {
  .hero-stage {
    height: min(48vh, 400px);
  }
  /* На узком экране боковые стаканы почти не видны — придвигаем их */
  .hero-cup[data-pos='right'] {
    transform: translate(-50%, -50%) translateX(62%) scale(0.58);
  }
  .hero-cup[data-pos='left'] {
    transform: translate(-50%, -50%) translateX(-62%) scale(0.58);
  }
  /* На узком экране дальние кусочки только мешают */
  .hero-fruit-5,
  .hero-fruit-6 {
    display: none;
  }
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.open-badge::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray);
}

.open-badge[data-state='open']::before {
  background: var(--matcha);
}

/* ── Блок преимуществ ──────────────────────────────────────────────────── */

.usp-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem) var(--gap);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .usp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usp-card {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  align-content: start;
}

/* Subgrid выравнивает медальоны, заголовки и абзацы по общим строкам —
   иначе двухстрочный заголовок сдвигает текст соседней карточки вниз.
   Браузеры без subgrid просто показывают обычную сетку. */
@supports (grid-template-rows: subgrid) {
  .usp-grid {
    grid-template-rows: repeat(2, auto);
  }
  .usp-card {
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
}

/* Круглый медальон. Внутри либо иконка, либо фотография — размер один и тот же,
   поэтому подмена фото не сдвигает вёрстку. */
.usp-icon {
  width: clamp(96px, 22vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--light-gray);
  color: var(--matcha-dark);
  overflow: hidden;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.section-tint .usp-icon {
  background: var(--white);
}

.usp-icon svg {
  width: 46%;
  height: 46%;
}

.usp-icon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Заголовок крупнее текста — глазом блок читается по заголовкам,
   а подробности догоняются только у того пункта, который зацепил. */
.usp-card h3 {
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.2;
  margin: 0;
  max-width: 20ch;
}

.usp-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
}

/* Наведение: медальон подрастает и заливается матчей.
   Глобальное правило prefers-reduced-motion гасит это для тех,
   кому анимация мешает. */
.usp-card:hover .usp-icon,
.usp-card:focus-within .usp-icon {
  transform: scale(1.08);
  background: var(--matcha);
  color: var(--black);
}

/* ── Карточки ──────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.section-tint .card {
  background: var(--white);
}

.card p:last-child {
  margin-bottom: 0;
}

.panel {
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.panel .btn {
  margin-top: auto;
}

.panel p {
  margin-bottom: 1.5rem;
}

.panel-dark {
  background: var(--black);
  color: var(--white);
}

.panel-dark p {
  color: var(--stone);
}

.panel-option {
  background: var(--bg-tint);
}

/* ── Позиции меню ──────────────────────────────────────────────────────── */

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

/* Подборки фиксируем по колонкам, иначе 6 позиций встают как 5+1. */
@media (min-width: 720px) {
  .items[data-cols='3'] {
    grid-template-columns: repeat(3, 1fr);
  }
  .items[data-cols='4'] {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 719px) {
  .items[data-cols] {
    grid-template-columns: repeat(2, 1fr);
  }
}

.item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.item-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--stone);
}

.item-nophoto {
  justify-content: flex-end;
  min-height: 100%;
  padding: 1rem 1.1rem;
  background: var(--bg-tint);
  border-radius: var(--radius);
}

.section-tint .item-nophoto {
  background: var(--white);
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.item-name {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.item-price {
  font-size: 0.9375rem;
  color: var(--matcha-dark);
}

.menu-jump {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding-block: 0.75rem;
}

.menu-jump .wrap {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-jump .wrap::-webkit-scrollbar {
  display: none;
}

.menu-jump a {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--light-gray);
  white-space: nowrap;
}

.menu-jump a:hover {
  background: var(--stone);
}

.menu-section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

/* ── Вкладки с напитками ───────────────────────────────────────────────── */

.drinks-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  /* На телефоне полоса уезжает за край экрана — возвращаем поля внутрь */
  padding-inline: 0.25rem;
  scroll-padding-inline: 0.25rem;
}

.drinks-tabs::-webkit-scrollbar {
  display: none;
}

.drinks-tabs button {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.55rem 1.1rem;
  min-height: 42px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.drinks-tabs button:hover {
  border-color: var(--stone);
  color: var(--ink);
}

.drinks-tabs button[aria-selected='true'] {
  background: var(--matcha);
  border-color: var(--matcha);
  color: var(--black);
}

/* Карточка напитка чуть приподнимается — понятно, что блок живой */
.drinks .item {
  transition: transform 0.22s ease;
}

.drinks .item:hover {
  transform: translateY(-4px);
}

.drinks .item-photo {
  background: var(--white);
}

/* ── Галерея ───────────────────────────────────────────────────────────── */

.gallery {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

/* Все три кадра сняты вертикально — не режем их в горизонт,
   а даём равные колонки в родном соотношении. */
.gallery img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  background: var(--stone);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.015);
}

@media (min-width: 620px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Чётные кадры опущены — ряд перестаёт читаться как таблица */
@media (min-width: 620px) {
  .gallery img:nth-child(even) {
    margin-top: clamp(1rem, 3vw, 2.5rem);
  }
}

.rounded {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

/* ── Шапка страницы ────────────────────────────────────────────────────── */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem);
}

.page-head-media {
  background: var(--bg-tint);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.address {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
}

.plain {
  text-decoration: none;
  border-bottom: 2px solid var(--matcha);
}

/* ── Часы работы ───────────────────────────────────────────────────────── */

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-weight: 400;
}

.section-tint .hours th,
.section-tint .hours td {
  border-bottom-color: var(--stone);
}

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours tr[data-today] th,
.hours tr[data-today] td {
  font-weight: 700;
  color: var(--matcha-dark);
}

/* ── Списки и шаги ─────────────────────────────────────────────────────── */

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

.ticks li {
  padding-left: 1.9rem;
  position: relative;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 6px;
  border-left: 2.5px solid var(--matcha-dark);
  border-bottom: 2.5px solid var(--matcha-dark);
  transform: rotate(-45deg);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--matcha);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
}

.step p:last-child {
  margin-bottom: 0;
}

/* ── Вопросы ───────────────────────────────────────────────────────────── */

.faq details {
  border-bottom: 1px solid var(--light-gray);
}

.faq summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 1.1rem 2rem 1.1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--matcha-dark);
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ── Форма кейтеринга ──────────────────────────────────────────────────── */

.quote-form {
  margin-top: 2rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > span {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem; /* меньше 16px — iOS зумит страницу при фокусе */
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--stone);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--matcha-dark);
}

.form-error {
  color: #b3261e;
  font-size: 0.9375rem;
  margin: 0.75rem 0 0;
}

/* ── Кейтеринг ─────────────────────────────────────────────────────────── */

.catering-hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 800px) {
  .catering-hero {
    grid-template-columns: 1fr 0.85fr;
  }
}

/* Тележка вырезана, поэтому под неё нужна своя подложка и тень —
   иначе она висит в воздухе. Мятный отсвет взят с самой тележки. */
.page-head-media {
  background:
    radial-gradient(90% 80% at 74% 55%, rgba(150, 200, 180, 0.26) 0%, rgba(240, 240, 240, 0) 62%),
    var(--bg-tint);
}

.cart-shot {
  position: relative;
  display: grid;
  place-items: end center;
}

.cart-svg {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  height: auto;
  display: block;
}

/* Подсвеченный пункт списка: то, чего нет у других. Плашка с переливом
   и медленным бликом — тот же приём, что у форматов, чтобы глаз цеплялся
   именно за эти строки, а не за все семь одинаковых галочек. */
.ticks .tick-wow {
  position: relative;
  overflow: hidden;
  padding: 0.9rem 1.2rem 0.9rem 3.1rem;
  border-radius: 16px;
  background: linear-gradient(115deg, #cfe6d8 0%, #e6f0d9 45%, #d8e8c6 100%);
  font-weight: 600;
}

/* Общая галочка списка тут лишняя — у пункта своя иконка */
.ticks .tick-wow::before {
  display: none;
}

.ticks .tick-wow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: translateX(-120%);
  animation: chip-sheen 6s ease-in-out infinite;
  pointer-events: none;
}

.ticks .tick-wow + .tick-wow::after {
  animation-delay: 1.4s;
}

.tick-wow-icon {
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  width: 22px;
  height: 22px;
  color: var(--matcha-dark);
}

.tick-wow-icon svg {
  width: 100%;
  height: 100%;
}

/* Кадры с реального выезда */
.onsite-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .onsite-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.onsite-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--stone);
}

/* Плашки форматов: перелив мятного в матчу, лёгкий блик проходит слева
   направо. Список, а не сетка — плашки разной ширины и переносятся сами. */
.chips {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
  color: var(--ink);
  background: linear-gradient(115deg, #cfe6d8 0%, #e6f0d9 45%, #d8e8c6 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Блик — узкая светлая полоса, медленно уходящая вправо */
.chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  transform: translateX(-120%);
  animation: chip-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

.chip:nth-child(2)::after { animation-delay: 0.6s; }
.chip:nth-child(3)::after { animation-delay: 1.2s; }
.chip:nth-child(4)::after { animation-delay: 1.8s; }
.chip:nth-child(5)::after { animation-delay: 2.4s; }

@keyframes chip-sheen {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

.chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(90, 130, 105, 0.22);
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--matcha-dark);
  flex: 0 0 auto;
}

.chip-icon svg {
  width: 100%;
  height: 100%;
}

/* Полоса напитков: стаканы стоят в ряд, как на барной стойке.
   На узком экране прокручивается вбок, а не сжимается в точки. */
.pour-row {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 0.5rem;
  display: flex;
  gap: clamp(0.75rem, 3vw, 2rem);
  align-items: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
}

.pour-row::-webkit-scrollbar {
  display: none;
}

.pour-row li {
  flex: 0 0 auto;
  width: clamp(110px, 18vw, 190px);
}

.pour-row img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(120, 60, 50, 0.16));
  transition: transform 0.25s ease;
}

.pour-row img:hover {
  transform: translateY(-6px);
}

/* ── Отзывы ────────────────────────────────────────────────────────────── */

.reviews {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  margin-top: 2rem;
}

/* Слайды лежат в одной ячейке сетки: высота блока равна самому длинному
   отзыву, поэтому при листании страница не прыгает. */
.reviews-stage {
  display: grid;
  width: 100%;
}

.review {
  grid-area: 1 / 1;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  transition: opacity 0.5s ease;
}

.review[hidden] {
  display: grid;
  opacity: 0;
  pointer-events: none;
}

.review blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.625rem);
  line-height: 1.35;
  max-width: 30ch;
}

.review blockquote::before {
  content: '\201C';
  color: var(--matcha-dark);
}

.review blockquote::after {
  content: '\201D';
  color: var(--matcha-dark);
}

.review figcaption {
  display: grid;
  gap: 0.15rem;
  font-size: 0.9375rem;
}

.review-name {
  font-family: var(--display);
  font-weight: 700;
}

.review-event {
  color: var(--gray);
}

/* Пока отзывы выдуманные, на странице висит явная метка */
.review-warning {
  margin-top: 1.5rem;
  color: #b3261e;
}

/* ── Проза (юридические страницы) ──────────────────────────────────────── */

.prose h2 {
  font-size: 1.375rem;
  margin-top: 2.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ── Закрывающий блок и подвал ─────────────────────────────────────────── */

.closing {
  background: var(--bg-tint);
}

.site-footer {
  background: var(--black);
  color: var(--stone);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.9375rem;
  max-width: 26ch;
}

.footer-col {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-col h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.35rem;
}

.footer-col a,
.footer-col .linklike {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-col a:hover,
.footer-col .linklike:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gray);
}

/* ── Окно выбора доставки ──────────────────────────────────────────────── */

.order-modal {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(100% - 2rem, 460px);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.order-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.order-modal-inner {
  padding: clamp(1.5rem, 5vw, 2.25rem);
  position: relative;
}

.order-modal h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  padding-right: 2rem;
}

.order-modal p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}

.order-modal-actions {
  display: grid;
  gap: 0.75rem;
}

.order-modal-actions .btn {
  width: 100%;
}

.order-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--ink);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}

.order-modal-close:hover {
  background: var(--stone);
}

/* ── Cookie ────────────────────────────────────────────────────────────── */

.consent {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 1.25rem;
  max-width: 640px;
  margin-inline: auto;
}

.consent-inner {
  display: grid;
  gap: 1rem;
}

.consent p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}

.consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .consent-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ── Печать ────────────────────────────────────────────────────────────── */

@media print {
  .site-header,
  .site-footer,
  .consent,
  .cta-row,
  .menu-jump {
    display: none !important;
  }
}
