/* ============================================================
   EGUN Concept Cafe — дизайн 3.
   Цвета и шрифты — из дизайнов 1 и 2: орех, бумага, камень,
   терракота, розовая глина; Unbounded / Lora / Montserrat.
   Приёмы: асимметричные пары фото и толстые линии (как у «Северян»),
   полноэкранный первый экран с переключением кадров (как у «Турандота»),
   арки и розетка из логотипа — свои.
   ============================================================ */

:root {
  --walnut: #2A201C;
  --walnut-2: #3A2C26;
  --cocoa: #5E4238;
  --ash: #62554D;
  --stone: #E4DBCE;
  --paper: #F1ECE4;
  --blush: #F7F0EB;
  --clay: #A45E4D;
  --clay-deep: #7B4536;
  --clay-ink: #8B4A3A;
  --clay-glow: #D99A86;

  --display: "Unbounded", "Arial", sans-serif;
  --text: "Lora", Georgia, serif;
  --sans: "Montserrat", "Arial", sans-serif;

  --gut: clamp(20px, 7vw, 120px);
  --top-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

/* без синей вспышки при нажатии на телефоне — нажатие видно по своим состояниям кнопок */
* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--top-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--walnut);
  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 { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: inherit; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--walnut);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
}
.skip:focus { top: 12px; }

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

/* надзаголовок */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--clay-glow);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .12em;
}
.kicker--ink { color: var(--clay-ink); }
.kicker--walnut { color: var(--walnut); }

.title {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1.5px solid transparent;
  border-radius: 100px;
  background: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 14px; }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-deep); }
.btn--line { border-color: rgba(241, 236, 228, .55); color: var(--paper); }
.btn--line:hover { border-color: var(--paper); background: rgba(241, 236, 228, .08); }
.btn--walnut { background: var(--walnut); color: var(--paper); }
.btn--walnut:hover { background: var(--cocoa); }
.btn--line-walnut { border-color: var(--walnut); color: var(--walnut); }
.btn--line-walnut:hover { background: rgba(42, 32, 28, .08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 16px; }
.link-arrow--light { color: var(--paper); }

/* арка — рамка для фото, отсылка к арочным окнам старого Баку */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 10px 10px;
  background: var(--stone);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

figcaption {
  margin-top: 12px;
  color: var(--ash);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
}

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

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--top-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gut);
  color: var(--paper);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.top.is-solid {
  background: rgba(42, 32, 28, .96);
  box-shadow: 0 1px 0 rgba(241, 236, 228, .08);
}
.top :focus-visible { outline-color: var(--paper); }

.top-logo img {
  width: auto;
  height: 34px;
  filter: brightness(0) invert(1);
}

.top-nav { display: none; }

.top-end {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-end .langdrop,
.top-end .btn { display: none; }

.langs { display: flex; gap: 4px; }
.lang {
  min-width: 40px;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: rgba(241, 236, 228, .86);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  cursor: pointer;
}
.lang:hover { color: var(--paper); }
.lang.is-active { color: var(--paper); box-shadow: inset 0 -2px 0 var(--clay-glow); }

.langdrop { position: relative; }
.langdrop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1.5px solid rgba(241, 236, 228, .4);
  border-radius: 100px;
  background: rgba(42, 32, 28, .25);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.langdrop-btn:hover { border-color: var(--paper); }
.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);
  min-width: 170px;
  padding: 6px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 18px 40px -16px rgba(20, 14, 12, .55);
}
.langdrop-list[hidden] { display: none; }
/* в мобильном меню список раскрывается вверх, кнопка крупнее */
/* язык — в одном ряду с «Меню» и «3D-тур» */
.langdrop--drawer { align-self: center; }
.langdrop--drawer .langdrop-btn { min-height: 52px; font-size: 15px; }
.langdrop--drawer .langdrop-list { left: auto; right: 0; top: auto; bottom: calc(100% + 8px); min-width: 200px; }
.lang--opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--walnut);
  font-family: var(--text);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  text-align: left;
  text-shadow: none;
}
.lang--opt:hover { color: var(--walnut); background: var(--stone); }
.lang--opt.is-active { color: var(--clay-ink); box-shadow: none; background: rgba(164, 94, 77, .1); }
.langdrop :focus-visible { outline-color: var(--clay); }
.langdrop-btn:focus-visible { outline-color: var(--paper); }

.burger {
  width: 44px;
  height: 44px;
  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: var(--paper); }
.burger span:last-child { width: 20px; justify-self: end; }

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

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 20px 28px;
  overflow-y: auto;
  background: var(--walnut);
  color: var(--paper);
}
.drawer[hidden] { display: none; }
.drawer :focus-visible { outline-color: var(--paper); }
.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-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
}
.drawer-nav { display: grid; }
.drawer-nav a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(241, 236, 228, .14);
  font-family: var(--display);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.2;
  text-decoration: none;
}
.drawer-kids {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--clay-glow);
  color: var(--walnut);
  text-decoration: none;
}
.drawer-kids img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.drawer-kids b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.drawer-kids span span { font-size: .98rem; }
.drawer-actions { display: flex; align-items: center; gap: 8px; }
.drawer-actions .btn { padding: 0 clamp(16px, 5vw, 30px); }
.langdrop--drawer .langdrop-btn { padding: 0 clamp(12px, 4vw, 18px); }
.langs--drawer { margin-top: auto; }

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

.hero {
  position: relative;
  display: grid;
  background: var(--walnut);
  color: var(--paper);
}

.hero-media {
  position: relative;
  height: 64svh;
  min-height: 340px;
  overflow: hidden;
  background: var(--walnut-2);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  transition: opacity 1.2s var(--ease);
}
.hero-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  /* ушедший кадр возвращается к приближению мгновенно, но уже после затухания */
  transition: transform 0s 1.2s;
  will-change: transform;
}
.hero-slide.is-active { opacity: 1; }
/* отдаление: быстро в начале, плавно к концу — заметно за время одного кадра */
.hero-slide.is-active video { transform: none; transition: transform 6.5s cubic-bezier(.2, .55, .3, 1); }
/* затемнение у шапки и подписи */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-media::before {
  background:
    linear-gradient(180deg, rgba(42, 32, 28, .8) 0%, rgba(42, 32, 28, .45) 11%, rgba(42, 32, 28, 0) 24%),
    linear-gradient(0deg, rgba(42, 32, 28, .55) 0%, rgba(42, 32, 28, 0) 26%);
}
.hero-caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 16px;
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 12px rgba(0, 0, 0, .45);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 36px 20px 28px;
}
.hero-title {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.025em;
}
.hero-lead {
  max-width: 30em;
  margin-top: 22px;
  color: rgba(241, 236, 228, .82);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero :focus-visible { outline-color: var(--paper); }

/* баннер EGUN Kids на первом экране */
.hero-kids {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 8px 18px 8px 8px;
  border-radius: 100px;
  background: rgba(217, 154, 134, .14);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .3s var(--ease);
}
.hero-kids:hover { background: rgba(217, 154, 134, .26); }
.hero-kids-mark {
  position: relative;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clay-glow);
}
.hero-kids-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--walnut);
  -webkit-mask: url("../img/egun-logo.png") center / contain no-repeat;
          mask: url("../img/egun-logo.png") center / contain no-repeat;
}

/* утро / день / вечер — подписи вместо точек слайдера, с полосой времени */
.daybar {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  border-top: 1px solid rgba(241, 236, 228, .16);
}
.day {
  position: relative;
  min-height: 52px;
  padding: 16px 12px 0 0;
  border: 0;
  background: none;
  color: rgba(241, 236, 228, .62);
  font-family: var(--display);
  font-weight: 300;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.day:hover { color: var(--paper); }
.day[aria-pressed="true"] { color: var(--paper); }
.day i {
  position: absolute;
  left: 0;
  right: 12px;
  top: -1px;
  height: 2px;
  overflow: hidden;
}
.day i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clay-glow);
  transform: scaleX(0);
  transform-origin: left;
}
.day[aria-pressed="true"] i::after { transform: scaleX(1); }
.daybar.is-playing .day[aria-pressed="true"] i::after { animation: daybar var(--slide-ms, 6500ms) linear both; }
.daybar.is-held .day[aria-pressed="true"] i::after { animation-play-state: paused; }
@keyframes daybar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.day-pause {
  align-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgba(241, 236, 228, .7);
  cursor: pointer;
}
.day-pause:hover { color: var(--paper); }
.day-pause .i-play { display: none; }
.day-pause.is-paused .i-play { display: block; }
.day-pause.is-paused .i-pause { display: none; }

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px 24px;
  padding: clamp(80px, 11vw, 168px) var(--gut);
}
.about-lead {
  max-width: 30em;
  margin-top: 26px;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.45;
}
.about-body {
  max-width: 36em;
  margin-top: 18px;
  color: var(--ash);
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  line-height: 1.75;
}

.about-tall { aspect-ratio: 4 / 5; max-width: 420px; }
.about-tall::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(0deg, rgba(42, 32, 28, .55), rgba(42, 32, 28, 0));
  pointer-events: none;
}
.about-tall figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  color: var(--paper);
  z-index: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* перечень того, что на столе, через розетки */
.words {
  display: grid;
  gap: 4px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.words ul { display: flex; flex-wrap: wrap; }
.words li { display: inline-flex; align-items: center; white-space: nowrap; }
/* розетка идёт после слова, поэтому при переносе строка не начинается с неё */
.words li:not(:last-child)::after {
  content: "";
  width: .62em;
  height: .62em;
  margin: 0 .5em;
  background: var(--clay);
  -webkit-mask: url("../img/egun-logo.png") center / contain no-repeat;
          mask: url("../img/egun-logo.png") center / contain no-repeat;
}
/* телефон: столбик, розетка перед каждым словом */
@media (max-width: 699px) {
  .words { gap: 0; }
  .words ul { display: grid; gap: 0; }
  .words li:not(:last-child)::after { content: none; }
  .words li { white-space: normal; }
  .words li::before {
    content: "";
    flex: 0 0 .62em;
    height: .62em;
    margin-right: .5em;
    background: var(--clay);
    -webkit-mask: url("../img/egun-logo.png") center / contain no-repeat;
            mask: url("../img/egun-logo.png") center / contain no-repeat;
  }
}
@media (min-width: 700px) {
  .words ul:last-child { padding-left: 1.6em; }
}

.about-wide img,
.about-small img { width: 100%; border-radius: 4px; }
.about-small { max-width: 320px; justify-self: end; }

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

.kitchen {
  padding: clamp(80px, 10vw, 150px) var(--gut);
  background: var(--stone);
}
.kitchen-lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--ash);
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
}

.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 44px;
}
.switch-btn {
  position: relative;
  min-height: 48px;
  padding: 4px 0 10px;
  border: 0;
  background: none;
  color: var(--ash);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.switch-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.switch-btn:hover { color: var(--walnut); }
.switch-btn[aria-pressed="true"] { color: var(--walnut); }
.switch-btn[aria-pressed="true"]::after { transform: scaleX(1); }

.kitchen-body { margin-top: 28px; }
.preview { display: none; }

.dishes { border-bottom: 1px solid rgba(42, 32, 28, .18); }
.dish {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid rgba(42, 32, 28, .18);
  background: none;
  text-align: left;
  cursor: default;
}
.dish img { width: 76px; height: 95px; border-radius: 38px 38px 6px 6px; object-fit: cover; }
.dish-name {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.dish-desc {
  display: block;
  margin-top: 6px;
  color: var(--ash);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
}
.kitchen .link-arrow { margin-top: 36px; color: var(--clay-ink); }

/* ─────────────── EGUN Kids ─────────────── */

.kids {
  position: relative;
  display: grid;
  gap: 56px;
  padding: clamp(80px, 10vw, 150px) var(--gut);
  overflow: hidden;
  background: var(--clay-glow);
  color: var(--walnut);
}
.kids :focus-visible { outline-color: var(--walnut); }

/* «Kids» — буквы-кубики, каждая под своим углом */
.kids-title {
  margin-top: 22px;
  font-family: var(--display);
  line-height: .95;
}
.kids-egun {
  display: block;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: .02em;
}
.kids-word {
  display: flex;
  gap: .02em;
  margin-top: .08em;
  font-weight: 600;
  font-size: clamp(4.4rem, 11vw, 10rem);
  letter-spacing: -.02em;
}
.kids-word b { display: inline-block; font-weight: inherit; }
.kids-word b:nth-child(1) { color: var(--walnut); transform: rotate(-6deg); }
.kids-word b:nth-child(2) { color: var(--paper); transform: translateY(.06em) rotate(5deg); }
.kids-word b:nth-child(3) { color: var(--clay-deep); transform: rotate(-3deg); }
.kids-word b:nth-child(4) { color: var(--walnut); transform: translateY(.04em) rotate(8deg); }

.kids-slogan {
  margin-top: 26px;
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.25;
}
.kids-lead {
  max-width: 34em;
  margin-top: 16px;
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

/* занятия — «билетики» с вырубками по бокам */
.tickets {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}
.ticket {
  padding: 18px 30px;
  border-radius: 14px;
  background: var(--paper);
  -webkit-mask:
    radial-gradient(circle 10px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 10px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle 10px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 10px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* цены — с баннера EGUN Kids */
.ticket-price {
  flex: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--clay-ink);
}
.ticket--pack .ticket-price { color: var(--clay-glow); font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.ticket h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
}
.ticket p { margin-top: 4px; color: var(--ash); font-size: 1rem; line-height: 1.45; }
.ticket--pack { background: var(--walnut); color: var(--paper); }
.ticket--pack h3 { color: var(--clay-glow); }
.ticket--pack p { color: rgba(241, 236, 228, .85); }

.kids-menu {
  max-width: 36em;
  margin-top: 28px;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.kids-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.kids-photo { position: relative; margin: 0; max-width: 520px; }
.arch--kids { aspect-ratio: 4 / 5; background: var(--walnut); }
.arch--kids video { width: 100%; height: 100%; object-fit: cover; }
.video-ctrl {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}
.video-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 32, 28, .55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--paper);
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.video-btn:hover { background: rgba(42, 32, 28, .8); }
.video-btn:focus-visible { outline-color: var(--paper); }
.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; }
/* контурная тарелка из детского меню — как наклейка на фото */
.kids-plate {
  position: absolute;
  left: -18px;
  bottom: -26px;
  width: clamp(120px, 16vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--clay-deep);
  box-shadow: 0 16px 30px -18px rgba(42, 32, 28, .7);
  transform: rotate(-10deg);
}
.kids-plate::after {
  content: "";
  position: absolute;
  inset: 4%;
  background: var(--paper);
  -webkit-mask: url("../img/kids/plate-line.png") center / contain no-repeat;
          mask: url("../img/kids/plate-line.png") center / contain no-repeat;
}

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

.visit {
  display: grid;
  gap: 48px;
  padding: clamp(80px, 10vw, 150px) var(--gut) clamp(64px, 8vw, 110px);
  background: var(--walnut);
  color: var(--paper);
}
.visit :focus-visible { outline-color: var(--paper); }
.visit-title {
  margin: 22px 0 28px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.facts { display: grid; }
.facts > div {
  padding: 18px 0;
  border-top: 1px solid rgba(241, 236, 228, .16);
}
.facts dt {
  color: var(--clay-glow);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
}
.facts dd { margin-top: 8px; font-size: 1.125rem; line-height: 1.6; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }

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

.foot {
  display: grid;
  justify-items: start;
  gap: 22px;
  padding: 40px var(--gut) 120px;
  border-top: 1px solid rgba(241, 236, 228, .12);
  background: var(--walnut);
  color: rgba(241, 236, 228, .72);
  font-size: .95rem;
}
.foot :focus-visible { outline-color: var(--paper); }
.foot-logo { width: auto; height: 40px; filter: brightness(0) invert(1); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a {
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.foot-nav a:hover { color: var(--clay-glow); }

/* ─────────────── штамп EGUN Kids ─────────────── */

.sticker {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--clay-glow);
  color: var(--walnut);
  box-shadow: 0 14px 30px -14px rgba(42, 32, 28, .65);
  text-decoration: none;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.sticker:hover { transform: scale(1.06) rotate(-4deg); }
.sticker:focus-visible { outline-color: var(--walnut); outline-offset: 4px; }
.sticker.is-off { display: none; }
.sticker.is-hidden { opacity: 0; transform: scale(.7); pointer-events: none; }
.sticker-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}
.sticker-ring text {
  fill: currentColor;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .1em;
}
.sticker-mark {
  width: 34%;
  height: 34%;
  background: var(--clay-deep);
  -webkit-mask: url("../img/egun-logo.png") center / contain no-repeat;
          mask: url("../img/egun-logo.png") center / contain no-repeat;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 14, 12, .72);
}
.modal[hidden] { display: none; }
.modal-box {
  width: min(1000px, 100%);
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 22px;
  border-bottom: 1px solid rgba(42, 32, 28, .14);
}
.modal-head h2 { font-family: var(--display); font-weight: 300; font-size: 1.3rem; }
.modal-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
}
.modal-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.modal-soon { padding: 56px 28px; text-align: center; font-size: 1.2rem; }

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

@media (min-width: 700px) {
  .hero-text { padding: 48px var(--gut) 32px; }
  .hero-caption { left: var(--gut); }
  .tickets { grid-template-columns: 1fr 1fr; }
  .ticket--pack { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .sticker { width: 116px; height: 116px; right: 24px; bottom: 24px; }
  .foot { grid-template-columns: auto 1fr; align-items: center; }
  .foot-nav { justify-self: end; }
  .foot p { grid-column: 1 / -1; }
}

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

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

  .top-logo img { height: 40px; }
  .top { grid-template-columns: auto 1fr auto; }
  /* меню рядом с логотипом, на тёмной половине первого экрана */
  .top-nav {
    display: flex;
    justify-content: flex-start;
    gap: clamp(22px, 2.6vw, 40px);
    margin-left: clamp(24px, 3.4vw, 56px);
  }
  .top-nav a {
    position: relative;
    padding: 8px 0;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
  }
  .top-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1.5px;
    background: var(--clay-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
  }
  .top-nav a:hover::after { transform: scaleX(1); }
  .top-end .langdrop { display: block; }
  .top-end .btn { display: inline-flex; }
  .burger { display: none; }

  /* первый экран: текст слева, фото во всю высоту справа */
  .hero {
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    min-height: 100svh;
  }
  .hero-media { grid-column: 2; grid-row: 1; height: auto; min-height: 640px; }
  .hero-text {
    grid-column: 1;
    grid-row: 1;
    justify-content: space-between;
    padding: calc(var(--top-h) + 6vh) clamp(32px, 4vw, 72px) 36px var(--gut);
  }
  .hero-copy { margin-block: auto; }
  .hero-caption { left: 32px; bottom: 26px; }

  /* о нас: асимметрия — текст и арка, ниже слова и пара фото со сдвигом */
  .about { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 96px; }
  .about-head { grid-column: 1 / 8; align-self: center; }
  .about-tall { grid-column: 9 / 13; max-width: none; }
  .words { grid-column: 1 / -1; }
  .about-wide { grid-column: 1 / 8; }
  .about-small { grid-column: 9 / 12; max-width: none; justify-self: stretch; margin-top: 140px; }

  /* кухня: список слева, большое фото-арка справа, меняется при наведении */
  .kitchen-body {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 7vw;
    align-items: start;
  }
  .dish {
    grid-template-columns: 1fr;
    padding: 22px 0;
    cursor: pointer;
  }
  .dish img { display: none; }
  .dish:hover .dish-name,
  .dish[aria-pressed="true"] .dish-name { color: var(--clay-ink); transform: translateX(10px); }
  .preview {
    display: block;
    position: sticky;
    top: calc(var(--top-h) + 32px);
    aspect-ratio: 4 / 5;
  }
  .preview img { transition: opacity .35s var(--ease); }
  .preview img.is-swapping { opacity: 0; }

  /* EGUN Kids: текст слева, арка справа */
  .kids {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .kids-text { grid-column: 1 / 7; }
  .kids-photo { grid-column: 8 / 13; max-width: none; }

  /* адрес: крупный адрес слева, факты справа */
  .visit { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
  .visit-head { grid-column: 1 / 8; }
  .facts { grid-column: 1 / -1; }
  .visit-actions { grid-column: 1 / -1; }
}

@media (min-width: 1000px) and (max-height: 760px) {
  .hero-title { font-size: clamp(2rem, 3.8vw, 3.6rem); }
  .hero-actions { margin-top: 24px; }
  .hero-kids { margin-top: 20px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .hero-slide video { transform: none; }
}

/* телефон и планшет: в EGUN Kids видео идёт сразу после вступления,
   до карточек занятий и кнопок */
@media (max-width: 999px) {
  .kids { gap: 0; }
  .kids-text { display: contents; }
  .kids-photo { order: 1; margin-top: 36px; justify-self: center; width: 100%; }
  .kids .tickets, .kids-menu, .kids-actions { order: 2; }
  .kids .tickets { margin-top: 48px; }
}

/* телефон и планшет: «Утро / День / Вечер» — сразу под видео, текст ниже */
@media (max-width: 999px) {
  .hero-text { display: contents; }
  .daybar { order: 1; margin: 0 20px; border-top-color: rgba(241, 236, 228, .12); }
  .hero-copy { order: 2; padding: 32px 20px 40px; }
}
@media (min-width: 700px) and (max-width: 999px) {
  .daybar { margin: 0 var(--gut); }
  .hero-copy { padding: 40px var(--gut) 48px; }
}

/* подпись разработчика */
.legal, .credit { font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 14px; color: #DDD6CC; }
.credit a { font-family: "Montserrat", "Segoe UI", sans-serif; color: #6FB1FF; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
