/* ============================================================
   Coffeedelia — landing styles
   Палитра под логотип: кремовый фон + кофейно-коричневые акценты
   ============================================================ */

:root {
  --cream:      #EFE7D6;
  --cream-soft: #F6F1E6;
  --paper:      #FBF8F1;
  --coffee:     #4A2E1E;
  --coffee-2:   #6B4226;
  --latte:      #B98A5E;
  --caramel:    #C68B4C;
  --ink:        #2C2017;
  --muted:      #7C6A57;
  --line:       #E2D7C2;
  --white:      #ffffff;
  --shadow:     0 14px 40px rgba(74, 46, 30, .12);
  --shadow-sm:  0 6px 18px rgba(74, 46, 30, .10);
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1140px;
  --font-head:  'Comfortaa', system-ui, sans-serif;
  --font-body:  'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* страховка от горизонтального переполнения на узких экранах */
}

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

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--coffee); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--caramel);
  margin-bottom: .5rem;
}

.section { padding: clamp(54px, 8vw, 96px) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section__sub { color: var(--muted); margin-top: .8rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--coffee); color: var(--cream-soft); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--coffee-2); }
.btn--ghost { background: transparent; border-color: var(--coffee); color: var(--coffee); }
.btn--ghost:hover { background: var(--coffee); color: var(--cream-soft); }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn--full { width: 100%; white-space: normal; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .6s ease, box-shadow .6s ease, border-color .6s ease;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; transition: height .55s cubic-bezier(.22,.61,.36,1);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__logo {
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform .25s ease;
}
.brand__logo { transition: none; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--cream-soft); transition: color .55s ease; }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav__link {
  position: relative; font-weight: 500; color: var(--cream-soft); font-size: .98rem;
  transition: color .2s; padding: .2rem 0;
}
/* Анимированное подчёркивание */
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--caramel); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover { color: var(--caramel); }
.nav__cta { background: var(--coffee); color: var(--cream-soft) !important; }
.nav__cta:hover { background: var(--coffee-2); }
.nav__cta::after { display: none; }

/* Прозрачная шапка над героем: светлая CTA-кнопка для контраста */
.header:not(.scrolled) .nav__cta {
  background: var(--cream-soft); color: var(--coffee) !important;
}
.header:not(.scrolled) .nav__cta:hover { background: #fff; }

/* Плотная шапка при прокрутке */
.header.scrolled {
  background: rgba(251, 248, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(74, 46, 30, .08);
}
.header.scrolled .header__inner { height: 72px; }
.header.scrolled .brand__name { color: var(--coffee); }
.header.scrolled .nav__link { color: var(--ink); }
.header.scrolled .nav__link:hover { color: var(--caramel); }

/* Внутри открытого мобильного меню ссылки всегда тёмные (фон кремовый) */
.nav.is-open .nav__link { color: var(--ink); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--cream-soft); border-radius: 2px; transition: .3s; }
.header.scrolled .burger span { background: var(--coffee); }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 96px 0 40px; /* верхний отступ под фиксированную шапку, чтобы бейдж не налезал на меню */
  background: linear-gradient(180deg, #21150D 0%, #2E1E12 55%, #3A2416 100%);
  color: var(--cream-soft);
}
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,12,6,.55) 0%, rgba(20,12,6,.12) 18%, transparent 32%),
    linear-gradient(180deg, rgba(44,32,23,.30), rgba(44,32,23,.62));
}
.hero__inner { position: relative; z-index: 2; margin: 0 auto; max-width: 760px; padding-block: 60px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(251,248,241,.16);
  border: 1px solid rgba(251,248,241,.35);
  padding: .5rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  backdrop-filter: blur(4px); margin-bottom: 1.6rem;
}
/* индикатор открыто/закрыто */
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9bca8; flex: 0 0 auto; }
.hero__badge.is-open .status-dot {
  background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.22);
  animation: pulse 2s ease-in-out infinite;
}
.hero__badge.is-closed .status-dot { background: #e0975c; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(61,220,132,.35); } 50% { box-shadow: 0 0 0 6px rgba(61,220,132,0); } }

.open-pill {
  display: inline-block; margin-top: .5rem; font-size: .82rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 999px;
}
.open-pill.is-open { color: #1c7a45; background: rgba(61,220,132,.16); }
.open-pill.is-closed { color: #9a5a2c; background: rgba(224,151,92,.16); }
.hero__title { font-size: clamp(2.4rem, 9vw, 5.5rem); color: var(--cream-soft); letter-spacing: -.02em; }
.hero__tagline { font-family: var(--font-head); font-size: clamp(1rem, 3vw, 1.4rem); letter-spacing: .35em; text-transform: lowercase; margin-top: .4rem; color: var(--caramel); font-weight: 600; }
.hero__sub { font-size: clamp(1rem, 2.4vw, 1.25rem); margin-top: 1.4rem; opacity: .95; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero__cta .btn--ghost { border-color: var(--cream-soft); color: var(--cream-soft); }
.hero__cta .btn--ghost:hover { background: var(--cream-soft); color: var(--coffee); }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 2rem; color: var(--cream-soft); opacity: .8; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Каскадное появление текста hero на загрузке */
.hero__badge, .hero__title, .hero__tagline, .hero__sub, .hero__cta {
  opacity: 0; transform: translateY(18px);
  animation: heroUp .85s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero__title   { animation-delay: .10s; }
.hero__tagline { animation-delay: .22s; }
.hero__sub     { animation-delay: .34s; }
.hero__cta     { animation-delay: .46s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* ===== About ===== */
.about { background: var(--cream-soft); }
.about__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about__text h2 { margin-bottom: 1rem; }
.about__text p { color: var(--muted); margin-bottom: 1rem; }
.about__stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.8rem; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--coffee); }
.stat__label { font-size: .85rem; color: var(--muted); }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ===== Features ===== */
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon { font-size: 2.4rem; margin-bottom: .8rem; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ===== Gallery (menu + interior) ===== */
.menu { background: var(--cream-soft); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery--masonry { grid-template-columns: repeat(3, 1fr); }
.gallery__item {
  border: 0; padding: 0; cursor: zoom-in; background: none;
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
}
.gallery--masonry .gallery__item { aspect-ratio: 1 / 1; }
/* Страницы меню — портретные, без обрезки текста */
.gallery--menu { grid-template-columns: repeat(4, 1fr); }
.gallery--menu .gallery__item {
  aspect-ratio: 9 / 16;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery--menu .gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(74, 46, 30, .22);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.menu__cta { text-align: center; margin-top: 2.4rem; }
.menu__hint { display: none; margin-top: .6rem; font-size: .85rem; color: var(--caramel); font-weight: 600; }

/* Menu category tabs */
.menu-tabs {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin-bottom: 2rem;
}
.menu-tab {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .6rem 1.25rem; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--coffee); border: 1.5px solid var(--line);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.menu-tab:hover { transform: translateY(-2px); border-color: var(--caramel); }
.menu-tab.is-active { background: var(--coffee); color: var(--cream-soft); border-color: var(--coffee); }
.menu-panel { animation: fade .3s ease; }
.menu-panel[hidden] { display: none; }

/* Цельное меню — листалка как настоящее меню */
.menu-flip {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: .2rem .2rem 1rem;
}
.menu-flip::-webkit-scrollbar { display: none; }
.menu-flip .gallery__item {
  flex: 0 0 clamp(230px, 30%, 300px);
  scroll-snap-align: start; aspect-ratio: 9 / 16;
}
.menu-flip__nav { display: flex; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.flip-arrow {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white); color: var(--coffee);
  font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.flip-arrow:hover { background: var(--coffee); color: var(--cream-soft); border-color: var(--coffee); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Video gallery (атмосфера) ===== */
.video-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.video-card {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #1d130c; box-shadow: var(--shadow-sm); position: relative;
}
.video-card video {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  background: #1d130c;
}
.video-card video.living { pointer-events: none; }
.video-card { transition: transform .2s, box-shadow .2s; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem; color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
  pointer-events: none;
}
/* ===== Booking ===== */
.booking { background: var(--coffee); color: var(--cream-soft); }
.booking__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.booking__text h2 { color: var(--cream-soft); margin-bottom: 1rem; }
.booking__text .eyebrow { color: var(--caramel); }
.booking__text p { opacity: .9; }
.booking__list { list-style: none; margin-top: 1.4rem; display: grid; gap: .6rem; }
.booking__list a { color: var(--caramel); font-weight: 600; }
.booking__form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow); display: grid; gap: 1rem;
}
.field { display: grid; gap: .35rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--coffee-2); }
.field input, .field select {
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  line-height: 1.4; min-height: 3rem;
  padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  width: 100%; min-width: 0; max-width: 100%;
  -webkit-appearance: none; appearance: none;
}
/* одинаковый вид и вес у даты/времени — не тонкие и не жирные при выборе */
.field input[type="date"], .field input[type="time"] {
  font-weight: 500; font-variant-numeric: tabular-nums;
}
.field input[type="date"]::-webkit-datetime-edit,
.field input[type="time"]::-webkit-datetime-edit { font-weight: 500; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B4226' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.2rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(198,139,76,.18); }
.booking__hint { font-size: .82rem; color: var(--muted); text-align: center; }

/* ===== Contacts ===== */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-item__ico { font-size: 1.5rem; }
.contact-item strong { color: var(--coffee); font-family: var(--font-head); }
.contact-item p { color: var(--muted); }
.contact-item a { color: var(--caramel); font-weight: 600; }
.contacts__socials { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.contacts__route { display: inline-block; font-weight: 600; color: var(--coffee); border-bottom: 2px solid var(--caramel); padding-bottom: 2px; }
.contacts__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.contacts__map iframe { width: 100%; height: 100%; min-height: 340px; }

/* Карта-карточка 2ГИС (открывает заведение в 2ГИС) */
.map-2gis {
  position: relative; display: flex; align-items: center; justify-content: center;
  text-decoration: none; min-height: 340px; isolation: isolate;
  background:
    repeating-linear-gradient(0deg,  transparent 0 39px, rgba(74,46,30,.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(74,46,30,.06) 39px 40px),
    linear-gradient(135deg, #F2EBDC 0%, #E8DDC8 100%);
  transition: filter .25s ease;
}
.map-2gis::before, .map-2gis::after {
  content: ""; position: absolute; z-index: 0; background: rgba(198,139,76,.28);
}
.map-2gis::before { left: -10%; right: -10%; top: 58%; height: 18px; transform: rotate(-8deg); }
.map-2gis::after  { top: -10%; bottom: -10%; left: 32%; width: 16px; transform: rotate(6deg); background: rgba(74,46,30,.10); }
.map-2gis:hover { filter: brightness(1.02); }
.map-2gis__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #19AA1E; color: #fff; font-weight: 700; font-family: var(--font-head);
  font-size: .82rem; padding: .3rem .7rem; border-radius: 8px; letter-spacing: .02em;
}
.map-2gis__card {
  position: relative; z-index: 1; text-align: center;
  background: rgba(251,248,241,.92); backdrop-filter: blur(2px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: .25rem; max-width: 80%;
}
.map-2gis__pin { font-size: 2.2rem; line-height: 1; }
.map-2gis__card strong { font-family: var(--font-head); color: var(--coffee); font-size: 1.15rem; }
.map-2gis__addr { color: var(--muted); font-size: .92rem; }
.map-2gis__cta { margin-top: .6rem; font-weight: 700; color: var(--coffee); font-family: var(--font-head); }
.map-2gis:hover .map-2gis__cta { color: var(--caramel); }

/* ===== Footer ===== */
.footer { background: #2A1C12; color: var(--cream); padding: 48px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.footer__brand { display: flex; gap: 1rem; align-items: center; }
.footer__logo { width: 52px; height: 52px; border-radius: 50%; }
.footer__brand p { opacity: .8; font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: flex-end; }
.footer__links a { opacity: .85; font-weight: 500; transition: opacity .2s; }
.footer__links a:hover { opacity: 1; color: var(--caramel); }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 18px; font-size: .85rem; opacity: .65; text-align: center; }

/* ===== Floating WhatsApp ===== */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s;
}
.fab:hover { transform: translateY(-2px); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28,18,12,.92);
  display: none; align-items: center; justify-content: center;
  padding: 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff;
  cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
/* Понятная кнопка закрытия: тёмный круг + белая обводка + подпись */
.lightbox__close {
  top: 18px; right: 18px; width: 54px; height: 54px; font-size: 1.7rem; line-height: 1;
  background: rgba(20,12,6,.6); border: 2px solid rgba(255,255,255,.9);
  color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.35); z-index: 3;
}
.lightbox__close::after {
  content: "Закрыть"; position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 600; color: #fff; opacity: .85; letter-spacing: .02em;
  font-family: var(--font-body); white-space: nowrap;
}
.lightbox__close:hover { background: #b5462f; border-color: #fff; transform: scale(1.05); }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header__inner, .header.scrolled .header__inner { height: 64px; }
  .nav {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem 20px 1.5rem;
    transform: translateY(-130%); transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  /* В мобильном меню CTA всегда фирменная коричневая */
  .nav.is-open .nav__cta,
  .header:not(.scrolled) .nav.is-open .nav__cta {
    margin-top: .8rem; background: var(--coffee); color: var(--cream-soft) !important;
  }
  .burger { display: flex; }
  .about__inner, .booking__inner, .contacts__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery--menu { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 28px; }

  .gallery, .gallery--masonry { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .video-gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }

  /* Меню на телефоне — крупные страницы во всю ширину, свайп */
  .menu-flip { margin: 0 -16px; padding: .2rem 16px 1rem; gap: .8rem; scroll-snap-type: x mandatory; }
  .menu-flip .gallery__item { flex: 0 0 84%; scroll-snap-align: center; }
  .menu-flip__nav { display: none; }
  .menu__hint { display: block; }

  /* В просмотре фото — листаем свайпом, стрелки прячем */
  .lightbox__nav { display: none; }

  /* Вкладки меню — горизонтальный свайп, скрытая полоса прокрутки */
  .menu-tabs {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-bottom: 1.4rem;
    scrollbar-width: none;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tab { flex: 0 0 auto; }

  .field-row { grid-template-columns: 1fr; }
  .about__stats { gap: 1rem 1.4rem; }
  .stat__num { font-size: 1.3rem; }

  /* Hero на телефоне */
  .hero { min-height: 86vh; }
  .hero__inner { padding-block: 40px; }
  .hero__cta { width: 100%; gap: .7rem; }
  .hero__cta .btn { flex: 1 1 auto; min-width: 0; }

  /* Кнопки и контакты */
  .contacts__socials { gap: .6rem; }
  .contacts__socials .btn { flex: 1 1 auto; }
  .feature { padding: 1.5rem 1.1rem; }
}

@media (max-width: 380px) {
  .features__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.3rem; }
  .hero__badge { font-size: .8rem; padding: .45rem .9rem; }
  .hero__sub { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  /* без анимации текст hero должен остаться видимым */
  .hero__badge, .hero__title, .hero__tagline, .hero__sub, .hero__cta {
    opacity: 1; transform: none;
  }
}
