/* ============================================================
   EGUN Concept Cafe — дизайн 4.
   Идея: в имени EGUN есть «gün» — «день». Первый экран показывает
   утро, день и вечер и подсвечивает то время, которое сейчас в Баку.
   Шрифты: Geologica (заголовки) + Piazzolla (текст) — оба с «ə» и кириллицей.
   ============================================================ */

:root {
  --ink: #1F1714;
  --ink-2: #2B211C;
  --chalk: #F6F1E9;
  --stone: #E8E0D3;
  --terra: #A45E4D;
  --terra-deep: #8A4A3A;
  --brick: #6B3427;
  --apricot: #F0B49B;
  --ash: #66574F;

  --display: "Geologica", "Arial", sans-serif;
  --text: "Piazzolla", Georgia, serif;

  --gut: clamp(20px, 5.5vw, 96px);
  --top-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* без синей вспышки при нажатии на телефоне — у кнопок свои состояния */
* { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--top-h);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--chalk);
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* ─────────────── общие элементы ─────────────── */

.kicker {
  color: var(--terra-deep);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.3;
  letter-spacing: .06em;
}
.kicker--light { color: var(--apricot); }

.title {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--terra { background: var(--terra); color: #fff; }
.btn--terra:hover { background: var(--terra-deep); }
.btn--ghost { border-color: rgba(246, 241, 233, .55); color: var(--chalk); }
.btn--ghost:hover { border-color: var(--chalk); background: rgba(246, 241, 233, .1); }
.btn--ink { background: var(--ink); color: var(--chalk); }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: rgba(31, 23, 20, .06); }
.btn--chalk { background: var(--chalk); color: var(--ink); }
.btn--chalk:hover { background: #fff; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
}

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

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gut);
  color: var(--chalk);
  transition: background-color .4s var(--ease);
}
.top.is-solid { background: var(--ink); }
.top :focus-visible { outline-color: var(--chalk); }
.top-logo img { width: auto; height: 36px; filter: brightness(0) invert(1); }
.top-nav { display: none; }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-end > .langdrop,
.top-end > .btn { display: none; }
/* 3D-тур пока скрыт — кнопки в разметке остаются, вернуть: убрать это правило */
.js-tour { display: none !important; }

.burger {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span { display: block; width: 30px; height: 2px; border-radius: 2px; background: currentColor; }

/* выпадающий список языков */
.langdrop { position: relative; }
.langdrop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid rgba(246, 241, 233, .4);
  border-radius: 12px;
  background: none;
  color: var(--chalk);
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.langdrop-btn:hover { border-color: var(--chalk); }
.langdrop-btn svg { transition: transform .3s var(--ease); }
.langdrop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.langdrop-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: var(--chalk);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
}
.langdrop-list[hidden] { display: none; }
.langdrop--up .langdrop-list { top: auto; bottom: calc(100% + 8px); }
.lang {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.lang:hover { background: var(--stone); }
.lang.is-active { color: var(--terra-deep); background: rgba(164, 94, 77, .12); }
.langdrop-list :focus-visible { outline-color: var(--terra); outline-offset: -2px; }

/* ─────────────── мобильное меню ─────────────── */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0 20px 28px;
  overflow-y: auto;
  background: var(--ink);
  color: var(--chalk);
}
.drawer[hidden] { display: none; }
.drawer :focus-visible { outline-color: var(--chalk); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--top-h); }
.drawer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
.drawer-nav { display: grid; }
.drawer-nav a {
  padding: 12px 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 2.3rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-decoration: none;
}
.drawer-actions { display: flex; align-items: center; gap: 8px; }
.drawer-actions .btn { min-height: 52px; padding: 0 clamp(14px, 5vw, 26px); }
.drawer-actions .langdrop-btn { min-height: 52px; padding: 0 clamp(12px, 4vw, 16px); }

/* карточка-баннер EGUN Kids (первый экран и меню) */
.kids-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: var(--apricot);
  color: var(--ink);
  text-decoration: none;
  transition: transform .3s var(--ease);
}
.kids-card:hover { transform: translateY(-2px); }
.kids-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.kids-card b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.kids-card span span { display: block; font-size: .95rem; line-height: 1.35; }
.kids-card:focus-visible { outline-color: var(--chalk); }

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

.hero { position: relative; background: var(--ink); color: var(--chalk); }

.panes { position: relative; height: 74svh; min-height: 440px; overflow: hidden; background: var(--ink-2); }
.pane { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
/* при загрузке кадр ставится сразу, без проявления и отдаления (см. скрипт в #hero) */
.hero.no-anim .pane, .hero.no-anim .pane video { transition: none; }
.pane.is-active { opacity: 1; }
.pane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 5s cubic-bezier(.2, .55, .3, 1), filter .8s var(--ease);
}
.pane.is-active video { transform: none; }
/* затемнение у шапки — чтобы логотип и меню читались на любом кадре */
.panes::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 140px;
  background: linear-gradient(rgba(31, 23, 20, .7), rgba(31, 23, 20, 0));
  pointer-events: none;
}

/* утро / день / вечер: на телефоне — ряд под видео */
.times { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); }
.time {
  position: relative;
  display: flex;
  /* название сверху, отметка «сейчас» под ним — у всех трёх одинаково */
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  padding: 14px 12px 12px 20px;
  border: 0;
  background: none;
  color: rgba(246, 241, 233, .66);
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.time:first-child { padding-left: 20px; }
.time[aria-pressed="true"] { color: var(--chalk); }
/* отклик на касание — без изменения вида */
.time { touch-action: manipulation; }
.time:active { opacity: .7; }
.time-name { font-family: var(--display); font-weight: 500; font-size: 1.05rem; line-height: 1.2; }
.time-cap { display: none; }
.now-mark {
  /* место под отметку есть всегда — чтобы её появление не сдвигало кнопки */
  display: inline-block;
  visibility: hidden;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--apricot);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
}
.time.is-now .now-mark { visibility: visible; }
.time:focus-visible { outline-color: var(--chalk); outline-offset: -4px; }

.hero-text { padding: 30px 20px 28px; }
.hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.hero-clock { display: block; }
.hero-clock time { color: var(--apricot); font-variant-numeric: tabular-nums; }
#nowLine { display: block; }
.hero-place {
  margin-top: 18px;
  font-style: italic;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: rgba(246, 241, 233, .85);
}
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.hero-actions > .btn { flex: none; padding: 0 22px; }
/* карточка Kids делит ряд с «Menyu» и на телефоне — сжимается, подпись переносится */
.kids-card--hero { flex: 0 1 460px; min-width: 0; gap: 10px; padding-right: 12px; }
.kids-card--hero span span { font-size: .85rem; }
.hero :focus-visible { outline-color: var(--chalk); }

/* «Вниз»: прячется через полсекунды после начала прокрутки */
.cue { display: none; }

/* ─────────────── о нас ─────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(48px, 11vw, 170px) var(--gut) clamp(64px, 11vw, 170px);
}
.about-lead {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 4.3rem);
  line-height: 1.1;
  letter-spacing: -.022em;
}
.about-body {
  max-width: 34em;
  margin-top: 30px;
  color: var(--ash);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.7;
}
/* что на столе: четыре направления, у каждого — своё фото из меню */
.table-of {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 14px;
  margin-top: 64px;
}
.table-of img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.table-of span {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.25;
}

/* ─────────────── кухня ─────────────── */

.kitchen { padding: clamp(48px, 10vw, 150px) 0 clamp(64px, 10vw, 150px); background: var(--stone); }
.kitchen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 0 var(--gut);
}
/* фильтр — всегда в один ряд; на телефоне кнопки растягиваются на всю ширину, чтобы не сжимались в кружки */
.chips { display: flex; flex-wrap: nowrap; gap: clamp(4px, 1.5vw, 8px); }
.chip {
  flex: none;
  min-height: 40px;
  padding: 0 22px;
  border: 1.5px solid rgba(31, 23, 20, .35);
  border-radius: 100px;
  background: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(13px, 3.8vw, 15px);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--chalk); }

.rail-wrap { position: relative; margin-top: 44px; }
.rail {
  display: flex;
  gap: 16px;
  padding: 4px var(--gut) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.dish {
  position: relative;
  flex: 0 0 clamp(250px, 76vw, 380px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ink-2);
  scroll-snap-align: start;
}
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dish:hover img { transform: scale(1.04); }
.dish::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 14, 12, .82) 0%, rgba(20, 14, 12, .3) 36%, rgba(20, 14, 12, 0) 58%);
  pointer-events: none;
}
.dish-time {
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 16px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(246, 241, 233, .92);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
}
.dish-text {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 18px rgba(0, 0, 0, .45);
}
.dish-name { display: block; font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.dish-desc { display: block; margin-top: 6px; font-style: italic; font-size: 1rem; line-height: 1.4; }

/* стрелки как во втором дизайне: полупрозрачный белый круг с размытием, внутри края карточки */
.rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .25);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
/* тень у самой стрелки — чтобы читалась и на светлом фото */
.rail-arrow svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.rail-arrow:hover { background: rgba(255, 255, 255, .45); }
.rail-arrow:focus-visible { outline-color: #fff; }
.rail-arrow--prev { left: calc(var(--gut) + 14px); }
.rail-arrow--next { right: 14px; }
.rail-arrow[disabled] { opacity: 0; pointer-events: none; }
.kitchen-cta { margin: 40px var(--gut) 0; min-height: 62px; padding: 0 38px; font-size: 18px; }

/* ─────────────── EGUN Kids ─────────────── */
/* Детский блок: округлый Comfortaa, краски с палитры (роспись фигурок, холст),
   карточки занятий чуть вразнобой — как рисунки на холодильнике. */

.kids {
  --butter: #F6D57A;
  --mint: #A9D9BC;
  --sky: #A9CBEF;
  --lilac: #D3BCEB;
  --kid: "Comfortaa", "Geologica", sans-serif;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(48px, 10vw, 150px) var(--gut) clamp(64px, 10vw, 150px);
  background: var(--brick);
  color: var(--chalk);
}
.kids :focus-visible { outline-color: var(--chalk); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kids-title {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: .92;
  letter-spacing: -.035em;
}
/* «Kids» — каждая буква своей краской и чуть подпрыгивает */
.kids-word { display: inline-flex; font-family: var(--kid); font-weight: 700; letter-spacing: 0; }
.kids-word b { display: inline-block; font-weight: inherit; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.kids-word b:nth-child(1) { color: var(--apricot); transform: translateY(.03em) rotate(-4deg); }
.kids-word b:nth-child(2) { color: var(--butter); transform: translateY(-.05em) rotate(3deg); }
.kids-word b:nth-child(3) { color: var(--mint); transform: translateY(.02em) rotate(-2deg); }
.kids-word b:nth-child(4) { color: var(--sky); transform: translateY(-.03em) rotate(5deg); }
.kids-title:hover .kids-word b:nth-child(odd) { transform: translateY(-.1em) rotate(-6deg); }
.kids-title:hover .kids-word b:nth-child(even) { transform: translateY(.04em) rotate(6deg); }

.kids-slogan {
  margin-top: 22px;
  font-family: var(--kid);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.3;
}
.paint-1 { color: var(--butter); }
.paint-2 { color: var(--mint); }
.paint-3 { color: var(--sky); }
.kids-lead { max-width: 34em; margin-top: 16px; font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.65; }

/* видео — как фотокарточка в светлой рамке, чуть наискосок */
.kids-video { position: relative; width: min(100%, 440px); margin-top: 40px; transform: rotate(-2deg); }
.kids-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 10px solid var(--chalk);
  border-radius: 30px;
  background: var(--ink);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
}

/* занятия: сетка 2×2 из «пятен краски» — у каждого свой цвет, свой рисунок
   и цена-стикер в углу; пакет — широкая полоса ниже */
.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.act {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 150px;
  padding: 18px 18px 20px;
  color: var(--ink);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.act { border-radius: 28px; }
.act--butter { background: var(--butter); }
.act--mint   { background: var(--mint); }
.act--sky    { background: var(--sky); }
.act--lilac  { background: var(--lilac); }
.act:hover { transform: translateY(-3px); }

.act-ic {
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.act b { font-family: var(--kid); font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.25; }
.act > span { font-size: clamp(.98rem, 1.15vw, 1.08rem); line-height: 1.4; color: rgba(31, 23, 20, .75); }
/* цена — крупная цифра, обведённая «мелком» от руки, как в детском рисунке */
.act em {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 118px;
  height: 76px;
  display: grid;
  place-items: center;
  padding: 4px 0 0 5%;
  color: var(--ink);
  font-family: var(--kid);
  font-style: normal;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}
.act em::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2080%22%3E%3Cpath%20d%3D%22M16%2046C10%2024%2040%208%2063%2010C87%2012%2097%2031%2090%2051C83%2070%2053%2077%2033%2070C15%2063%207%2049%2017%2035C25%2023%2046%2017%2068%2021%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2080%22%3E%3Cpath%20d%3D%22M16%2046C10%2024%2040%208%2063%2010C87%2012%2097%2031%2090%2051C83%2070%2053%2077%2033%2070C15%2063%207%2049%2017%2035C25%2023%2046%2017%2068%2021%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
}


.act--pack {
  grid-column: 1 / -1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 16px 164px 16px 22px;
  border-radius: 999px;
  background: var(--chalk);
  border: 2px dashed rgba(31, 23, 20, .35);
}
.act--pack .act-ic { flex: none; width: 40px; height: 40px; margin: 0; stroke: var(--terra); fill: rgba(164, 94, 77, .15); }
.pack-text b { display: block; padding: 0; font-size: clamp(1.25rem, 1.7vw, 1.45rem); }
.pack-text span { display: block; font-size: clamp(.98rem, 1.15vw, 1.08rem); line-height: 1.35; color: rgba(31, 23, 20, .75); }
@media (max-width: 480px) {
  .chips { width: 100%; }
  .chip { flex: 1 1 auto; padding: 0 6px; }
  .act { padding: 16px 14px 18px; }
  .act--pack { padding: 14px 104px 14px 14px; border-radius: 28px; }
  /* на телефоне ценники меньше */
  .act em { top: 6px; right: 4px; width: 88px; height: 58px; font-size: 1.15rem; }
  .act-ic { margin-bottom: 14px; }
  .prices .act--pack em { right: 6px; width: 96px; height: 66px; font-size: 1.35rem; }
}
.act--pack em { top: 50%; right: 18px; width: 136px; height: 90px; color: var(--terra); font-size: 1.9rem; transform: translateY(-50%); }

.kids-menu { max-width: 36em; margin-top: 32px; font-size: 1.08rem; line-height: 1.6; }
.kids-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.kids .btn { border-radius: 100px; font-family: var(--kid); font-weight: 700; }

.video-ctrl { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.video-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 23, 20, .6);
  color: var(--chalk);
  cursor: pointer;
}
.video-btn:hover { background: rgba(31, 23, 20, .85); }
.video-btn .i-play,
.video-btn .i-sound { display: none; }
.video-btn.is-paused .i-play,
.video-btn[aria-pressed="true"] .i-sound { display: block; }
.video-btn.is-paused .i-pause,
.video-btn[aria-pressed="true"] .i-muted { display: none; }

/* ─────────────── адрес ─────────────── */

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding: clamp(48px, 10vw, 150px) var(--gut) clamp(64px, 8vw, 110px);
}
.visit-title {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--terra-deep);
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}
.map-link:hover { color: var(--ink); }
.facts { display: grid; gap: 22px; margin-top: 44px; }
.facts dt { color: var(--terra-deep); font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .04em; }
.facts dd { margin-top: 10px; font-family: var(--display); font-weight: 400; font-size: clamp(1.2rem, 1.55vw, 1.5rem); line-height: 1.45; font-variant-numeric: tabular-nums; }
.facts dd a[href^="tel:"] { white-space: nowrap; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* соцсети — квадратные значки с обводкой, без заливки */
.social { display: flex; gap: 12px; margin-top: 18px; }
.social-btn {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: none;
  color: var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.social-btn svg { width: 30px; height: 30px; }
.facts .social-btn:hover { background: var(--ink); color: var(--chalk); text-decoration: none; transform: translateY(-2px); }
.nowrap { white-space: nowrap; }
.map-link { font-size: 19px; }
.visit-actions .btn { min-height: 62px; padding: 0 34px; font-size: 18px; border-radius: 14px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.visit-video { width: min(100%, 420px); }
.visit-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 22px;
  background: var(--stone);
}
.visit-video figcaption { margin-top: 14px; color: var(--ash); font-style: italic; font-size: 1.05rem; }

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

.foot {
  display: grid;
  gap: 22px;
  padding: 48px var(--gut) 56px;
  background: var(--ink);
  color: rgba(246, 241, 233, .72);
  font-size: .95rem;
}
.foot :focus-visible { outline-color: var(--chalk); }
.foot-logo { width: auto; height: 40px; filter: brightness(0) invert(1); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-nav a { color: var(--chalk); font-family: var(--display); font-weight: 500; font-size: 15px; text-decoration: none; }
.foot-nav a:hover { color: var(--apricot); }
/* нижняя строка: на телефоне копирайт, под ним NEOMAX; с планшета — копирайт слева, NEOMAX справа */
.foot .legal { order: 1; margin-top: 18px; }
.foot .credit { order: 2; }

/* ─────────────── окно 3D-тура ─────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 10, 8, .74);
}
.modal[hidden] { display: none; }
.modal-box { width: min(1000px, 100%); overflow: hidden; border-radius: 18px; background: var(--chalk); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 24px; }
.modal-head h2 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; }
.modal-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.modal-soon { padding: 40px 24px 56px; text-align: center; font-size: 1.2rem; }

/* ─────────────── планшет ─────────────── */

@media (min-width: 700px) {
  .table-of { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .facts { grid-template-columns: repeat(3, max-content); gap: 32px clamp(24px, 3vw, 64px); }
  .hero-text { padding: 40px var(--gut) 52px; }
  .hero-actions { gap: 12px; }
  .hero-actions > .btn { padding: 0 28px; }
  .kids-card--hero { gap: 14px; padding-right: 16px; }
  .kids-card--hero span span { font-size: .95rem; }
  .time { padding-left: var(--gut); }
  .time + .time { padding-left: 20px; }
  .rail-arrow { display: grid; }
  .dish { flex-basis: clamp(260px, 34vw, 380px); }
  .foot { grid-template-columns: auto 1fr; align-items: center; }
  .foot-nav { justify-self: end; }
  .foot .legal { order: 1; grid-column: 1; margin-top: 28px; }
  .foot .credit { order: 2; grid-column: 2; justify-self: end; margin-top: 28px; }
}

/* ─────────────── компьютер ─────────────── */

@media (min-width: 1000px) {
  :root { --top-h: 84px; }

  .top-logo img { height: 48px; }
  .top-nav { display: flex; gap: clamp(22px, 2.6vw, 44px); margin-left: clamp(20px, 3vw, 56px); }
  .top-nav a {
    padding: 8px 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
    text-underline-offset: 8px;
    /* тень — чтобы пункты читались на светлых кадрах видео */
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 14px rgba(0, 0, 0, .45);
    text-decoration-thickness: 1.5px;
  }
  .top-nav a:hover { text-decoration: underline; }
  .top-end > .langdrop { display: block; }
  .top-end > .btn { display: inline-flex; min-height: 50px; padding: 0 24px; font-size: 16px; }
  .top-end .langdrop-btn { min-height: 50px; padding: 0 16px; font-size: 16px; }
  .burger { display: none; }

  /* первый экран: три кадра во всю высоту; текущий по времени — в цвете */
  .hero { height: 100svh; min-height: 680px; }
  .stage { position: absolute; inset: 0; }
  .panes {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--ink);
  }
  .pane { position: relative; opacity: 1; overflow: hidden; }
  .pane video { filter: brightness(.42) saturate(.55); }
  .pane.is-active video { filter: brightness(.95) saturate(1.02); }
  /* подсказка при наведении на соседний кадр */
  .stage:has(.time[data-time="morning"]:hover) .pane[data-time="morning"]:not(.is-active) video,
  .stage:has(.time[data-time="afternoon"]:hover) .pane[data-time="afternoon"]:not(.is-active) video,
  .stage:has(.time[data-time="evening"]:hover) .pane[data-time="evening"]:not(.is-active) video { filter: brightness(.62) saturate(.8); }
  .panes::before { height: 220px; }
  /* низ темнее — под заголовком */
  .hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 66%;
    background: linear-gradient(0deg, rgba(20, 14, 12, .88) 0%, rgba(20, 14, 12, .55) 45%, rgba(20, 14, 12, 0) 100%);
    pointer-events: none;
  }

  .times { position: absolute; inset: 0; z-index: 2; background: none; }
  .time {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: calc(var(--top-h) + 26px) 28px 28px !important;
    color: rgba(246, 241, 233, .78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 16px rgba(0, 0, 0, .35);
  }
  .time-name { font-size: 1.5rem; font-weight: 400; }
  .time-cap { display: block; font-family: var(--text); font-style: italic; font-size: 1.05rem; }
  .now-mark { margin-top: 10px; text-shadow: none; font-size: 12px; padding: 3px 10px; }
  .time:focus-visible { outline-offset: -8px; }

  .hero-text {
    position: absolute;
    left: var(--gut);
    bottom: clamp(20px, 3.5vh, 36px);
    z-index: 3;
    max-width: min(880px, 64vw);
    padding: 0;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 26px rgba(0, 0, 0, .35);
  }
  .hero-text a, .hero-text button { pointer-events: auto; text-shadow: none; }
  .kids-card--hero { display: inline-grid; }

  /* «Вниз» — по центру среднего кадра (День) */
  .cue {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(20px, 3.5vh, 36px);
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--chalk);
    font-family: var(--display);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .08em;
    text-decoration: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  }
  .cue i {
    display: block;
    width: 2px;
    height: 52px;
    background: linear-gradient(var(--chalk) 50%, transparent 50%) 0 0 / 2px 200%;
    animation: drip 1.6s var(--ease) infinite;
  }
  .cue > * { transition: opacity .6s var(--ease); }
  .cue.is-hidden { pointer-events: none; }
  .cue.is-hidden > * { opacity: 0; }

  /* о нас: крупный текст на всю ширину, описание — справа ниже */
  .about { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .about > .kicker, .about-lead { grid-column: 1 / 11; }
  .about-body { grid-column: 7 / 13; margin-top: 48px; }
  .table-of { grid-column: 1 / -1; margin-top: 110px; }

  /* кухня: три карточки целиком и почти половина четвёртой — видно, что дальше есть ещё */
  .dish { flex-basis: calc((100vw - var(--gut) - 3 * 16px) / 3.45); }

  /* EGUN Kids: видео слева на всю высоту блока, справа текст и цены */
  .kids {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "video intro" "video prices" "video end";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, 6vw, 110px);
  }
  .kids-intro { grid-area: intro; }
  .kids-video { grid-area: video; margin-top: 0; align-self: start; position: sticky; top: calc(var(--top-h) + 32px); }
  /* видео 720×1280: не шире исходника и целиком в окне — без растяжения и мыла */
  /* видео 720×1280: не шире исходника и целиком в окне — без растяжения и мыла */
  .kids-video { width: min(100%, 560px, calc((100svh - var(--top-h) - 80px) * 9 / 16)); }
  .prices { grid-area: prices; }
  .kids-end { grid-area: end; }

  /* адрес: текст слева, фасад справа */
  .visit { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(40px, 6vw, 110px); align-items: start; }
  .visit-video { width: min(100%, 500px, calc((100svh - var(--top-h) - 120px) * 9 / 16)); }
}

/* очень широкие экраны: четыре карточки и половина пятой, иначе карточки слишком крупные */
@media (min-width: 2000px) {
  .dish { flex-basis: calc((100vw - var(--gut) - 4 * 16px) / 4.45); }
}

@keyframes drip { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ─────────────── доступность ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .pane video { transform: none; }
  .kids-word b, .act, .kids-video { transform: none !important; }
  .act--pack em { transform: translateY(-50%) !important; }
}

/* подпись разработчика */
.legal, .credit { font-family: var(--display); font-size: 14px; color: #DDD6CC; }
.credit a { color: #6FB1FF; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
