/* ═══════════════════════════════════════════════════════════
   LAFFA & CO — one-page site
   Brand: olive #606D38 · warm white #F4F0E9 · black #0C0C0C
   Type:  Prata (≈ Kugile) · Dancing Script (акцент) · Jost
   ═══════════════════════════════════════════════════════════ */

:root {
  --olive: #606D38;
  --olive-deep: #4C5629;
  --olive-dark: #39421F;
  --cream: #F4F0E9;
  --cream-card: #FBF8F2;
  --ink: #0C0C0C;
  --hairline: rgba(12, 12, 12, 0.09);
  --hairline-cream: rgba(244, 240, 233, 0.16);
  --serif: 'Prata', 'Times New Roman', serif;
  --script: 'Dancing Script', 'Snell Roundhand', 'Segoe Script', cursive;
  --sans: 'Jost', sans-serif;
  --ez: cubic-bezier(0.32, 0.72, 0, 1);
  --r-outer: 28px;
  --r-inner: 19px;
}

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

[hidden] { display: none !important; }

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

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--olive); color: var(--cream); }

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

/* ── film grain ── */
.grain {
  position: fixed; inset: 0; z-index: 80;
  pointer-events: none; opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── layout shells ── */
.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section { padding-block: clamp(96px, 11vw, 160px); }

/* ── typography atoms ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.62);
}

.eyebrow--glass {
  border-color: rgba(244, 240, 233, 0.38);
  background: rgba(12, 12, 12, 0.28);
  color: rgba(244, 240, 233, 0.92);
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.16;
  margin-top: 22px;
}

/* акцентное слово в заголовках — рукописный, полный и читаемый */
.script {
  font-family: var(--script);
  font-weight: 600;
  font-size: 1.12em;
  line-height: 1;
  color: var(--olive);
  text-transform: none;
  letter-spacing: 0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 400;
  line-height: 1.72;
  color: rgba(12, 12, 12, 0.86);
  margin-top: 28px;
}

.body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(12, 12, 12, 0.7);
  margin-top: 18px;
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 13px 15px 13px 26px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 0.6s var(--ez), background-color 0.6s var(--ez), border-color 0.6s var(--ez), color 0.6s var(--ez);
}
.btn:active { transform: scale(0.97); }

.btn__orb {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, 0.08);
  font-size: 13px;
  transition: transform 0.6s var(--ez);
}
.btn__orb svg { width: 14px; height: 14px; }
.btn:hover .btn__orb { transform: translate(3px, -2px) scale(1.06); }

.btn--cream { background: var(--cream); color: var(--ink); box-shadow: 0 18px 44px -18px rgba(12, 12, 12, 0.5); }
.btn--cream:hover { background: #fffdf8; }

.btn--ghost {
  border: 1px solid rgba(244, 240, 233, 0.45);
  background: rgba(244, 240, 233, 0.07);
  color: var(--cream);
  padding: 13px 26px;
}
.btn--ghost:hover { background: rgba(244, 240, 233, 0.16); }

.btn--lg { padding: 17px 19px 17px 34px; font-size: 13px; }
.btn--lg .btn__orb { width: 34px; height: 34px; }

/* кнопка Uber Eats: словомарка */
.btn--uber { padding: 15px 30px; gap: 10px; }
.ue-mark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1;
}
.ue-mark i { font-style: normal; color: #06C167; }

.btn--nav { background: var(--cream); color: var(--ink); padding: 8px 9px 8px 18px; font-size: 11px; }
.btn--nav .btn__orb { width: 26px; height: 26px; font-size: 12px; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.52);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--hairline-cream);
  box-shadow: 0 24px 60px -24px rgba(12, 12, 12, 0.55);
  max-width: calc(100vw - 32px);
}

.nav__logo img { height: 28px; width: auto; }

.nav__links { display: flex; gap: 22px; }

.nav__link {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.72);
  padding-block: 6px;
  transition: color 0.5s var(--ez);
}
.nav__link:hover, .nav__link.is-active { color: var(--cream); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--cream);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: transform 0.5s var(--ez), opacity 0.5s var(--ez);
}
.nav__link.is-active::after { opacity: 1; transform: translateX(-50%) scale(1); }

.nav__burger {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hairline-cream);
  background: rgba(244, 240, 233, 0.06);
}
.nav__burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 17px; height: 1.6px;
  background: var(--cream);
  transition: transform 0.6s var(--ez);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav__burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
body.menu-open .nav__burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ═══════════ OVERLAY MENU ═══════════ */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex;
  background: rgba(57, 66, 31, 0.88);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity 0.7s var(--ez), visibility 0s linear 0.7s;
}
body.menu-open { overflow: hidden; }
body.menu-open .overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ez);
}

.overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.4vh, 22px);
  text-align: center;
  margin: auto;
  padding-block: 48px;
}

.overlay__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 6.5vh, 3rem);
  color: var(--cream);
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.8s var(--ez), transform 0.8s var(--ez), color 0.5s var(--ez);
}
.overlay__link em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(244, 240, 233, 0.5);
}
.overlay__link:hover { color: #fffdf6; }

body.menu-open .overlay__link { opacity: 1; transform: translateY(0); }
body.menu-open .overlay__link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .overlay__link:nth-child(2) { transition-delay: 0.16s; }
body.menu-open .overlay__link:nth-child(3) { transition-delay: 0.22s; }
body.menu-open .overlay__link:nth-child(4) { transition-delay: 0.28s; }
body.menu-open .overlay__link:nth-child(5) { transition-delay: 0.34s; }
body.menu-open .overlay__link:nth-child(6) { transition-delay: 0.4s; }

.overlay__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  max-width: 86vw;
  margin-top: clamp(16px, 4vh, 36px);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.65);
  opacity: 0;
  transition: opacity 0.9s var(--ez) 0.5s;
}
.overlay__foot a,
.overlay__foot span { white-space: nowrap; }
body.menu-open .overlay__foot { opacity: 1; }
.overlay__foot a:hover { color: var(--cream); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  /* стоп-кадр как фон секции: виден сразу, пока грузится видео,
     и остаётся, если автозапуск запрещён (энергосбережение на iOS) */
  background: var(--ink) url('../assets/video/poster.jpg') center 58% / cover no-repeat;
}

/* видео проявляется поверх стоп-кадра, когда действительно готово играть */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  opacity: 0;
  transition: opacity 0.6s var(--ez);
}
.hero__video.is-ready { opacity: 1; }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.5) 0%, rgba(12, 12, 12, 0.14) 38%, rgba(12, 12, 12, 0.66) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: 140px clamp(20px, 5vw, 48px) clamp(96px, 14vh, 150px);
  max-width: 820px;
}

.hero__logo {
  width: clamp(250px, 36vw, 500px);
  height: auto;
  filter: drop-shadow(0 10px 44px rgba(0, 0, 0, 0.4));
}

.hero__tag {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  color: rgba(244, 240, 233, 0.95);
}
.hero__tag .script { color: var(--cream); font-size: 1.3em; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.hero__badge {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.78);
  margin-top: 6px;
}

/* индикатор прокрутки — только анимация, кликать нечего */
.hero__scroll {
  pointer-events: none;
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 25px; height: 42px;
  border: 1px solid rgba(244, 240, 233, 0.42);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3.5px; height: 3.5px;
  border-radius: 999px;
  background: var(--cream);
  transform: translateX(-50%);
  animation: scrollcue 2.2s var(--ez) infinite;
}
@keyframes scrollcue {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 18px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  background: var(--olive);
  color: var(--cream);
  overflow: hidden;
  padding-block: 16px;
  border-block: 1px solid rgba(12, 12, 12, 0.12);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 38s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i {
  font-style: normal;
  color: rgba(244, 240, 233, 0.75);
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ═══════════ double-bezel shell ═══════════ */
.shell {
  background: rgba(12, 12, 12, 0.045);
  border: 1px solid rgba(12, 12, 12, 0.07);
  border-radius: var(--r-outer);
  padding: 9px;
  box-shadow: 0 34px 70px -34px rgba(12, 12, 12, 0.22);
}
.shell > img, .shell figure img { border-radius: var(--r-inner); width: 100%; }
figure.shell { overflow: hidden; }
figure.shell img { height: 100%; object-fit: cover; }

/* ═══════════ ABOUT ═══════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
}

.about__media { display: grid; }
.about__media .shell--tilt-l {
  width: 76%;
  justify-self: start;
  --tilt: -2deg;
}
.about__media .shell--tilt-r {
  width: 62%;
  justify-self: end;
  margin-top: -72px;
  --tilt: 2.4deg;
}

/* фото «влетают» и оседают в свой наклон */
.about__media .reveal {
  transform: translateY(90px) rotate(0deg) scale(0.94);
  transition-duration: 1.2s;
}
.about__media .reveal.in {
  transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1);
}

/* ── features ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(80px, 9vw, 130px);
}

.features .shell {
  background: rgba(12, 12, 12, 0.06);
  border-color: rgba(12, 12, 12, 0.1);
  box-shadow: 0 40px 80px -36px rgba(12, 12, 12, 0.4);
}

/* карточка: видео-подложка + стеклянная панель с текстом */
.feature__core {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  background: var(--ink);
  border-radius: calc(var(--r-outer) - 9px);
  height: 100%;
}
.feature__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* текст на нижнем градиенте — без «стеклянной» плашки */
.feature__glass {
  position: relative;
  z-index: 2;
  padding: 110px 26px 28px;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0) 0%, rgba(12, 12, 12, 0.45) 38%, rgba(12, 12, 12, 0.82) 100%);
  color: var(--cream);
}

.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 10px;
  /* резерв под 2 строки — иконки всех карточек на одной линии */
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
}
.feature p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(244, 240, 233, 0.88);
  min-height: 3.3em;
}

/* «раскладывание» карточек при скролле */
.features .reveal {
  transform: translateY(90px) scale(0.92);
  transition-duration: 1.1s;
}
.features .reveal.in { transform: translateY(0) scale(1); }
.features .reveal[data-delay="1"] { transition-delay: 0.18s; }
.features .reveal[data-delay="2"] { transition-delay: 0.36s; }

/* ── quote ── */
/* ═══════════ MENU ═══════════ */
.menu { background: linear-gradient(180deg, var(--cream) 0%, #EFEADF 50%, var(--cream) 100%); }
.about.section { padding-bottom: clamp(56px, 6vw, 84px); }
.menu.section { padding-top: clamp(56px, 6vw, 84px); }

.menu__head { text-align: center; margin-bottom: 44px; }

.menu__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.tab {
  border: 1px solid rgba(12, 12, 12, 0.16);
  background: transparent;
  border-radius: 999px;
  padding: 10px 19px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.58);
  transition: color 0.5s var(--ez), border-color 0.5s var(--ez), background-color 0.5s var(--ez), transform 0.5s var(--ez);
}
.tab:hover { border-color: var(--olive); color: var(--olive); }
.tab:active { transform: scale(0.96); }
.tab.is-active { background: var(--olive); border-color: var(--olive); color: var(--cream); }

.menu__core {
  background: var(--cream-card);
  border: 1px solid rgba(96, 109, 56, 0.55);
  box-shadow: inset 0 0 0 4px var(--cream-card), inset 0 0 0 5px rgba(96, 109, 56, 0.55);
  border-radius: calc(var(--r-outer) - 9px);
  padding: clamp(30px, 5vw, 64px);
}

.panel[hidden] { display: none; }
.panel.is-active { animation: panelIn 0.65s var(--ez); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* подзаголовок группы внутри вкладки — тонкий разделитель, а не второй заголовок */
.menu__sub {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 38px 0 22px;
}
.menu__sub::before,
.menu__sub::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(96, 109, 56, 0.22);
}
/* первый подзаголовок в панели не отбиваем сверху */
.panel > .menu__sub:first-child { margin-top: 0; }

.menu__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(30px, 4.5vw, 70px);
  row-gap: 28px;
}

/* позиция меню — ссылка прямо на своё блюдо в Toast */
.item {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
  margin: -10px -12px;
  transition: background-color 0.45s var(--ez);
}
.item:hover { background: rgba(96, 109, 56, 0.07); }
.item:hover h3 { color: var(--olive); }
.item h3 { transition: color 0.45s var(--ez); }
.item:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.item header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.item header i {
  flex: 1;
  border-bottom: 1px dotted rgba(12, 12, 12, 0.28);
  transform: translateY(-4px);
}
.item header span {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--olive);
}
.item p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(12, 12, 12, 0.68);
  margin-top: 7px;
  padding-right: 26px;
}

.menu__note {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  text-align: center;
}
.menu__pdf {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  border-bottom: 1px solid rgba(96, 109, 56, 0.4);
  padding-bottom: 3px;
  transition: opacity 0.5s var(--ez);
}
.menu__pdf:hover { opacity: 0.65; }
.menu__pdf svg { width: 12px; height: 12px; vertical-align: -1px; }
/* кошерная сертификация ORB */
.kosher {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 16px 26px;
  border: 1px solid rgba(12, 12, 12, 0.14);
  border-radius: 18px;
}
.kosher__badge { width: 52px; height: 52px; color: var(--ink); flex-shrink: 0; }
.kosher p {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
  text-align: left;
  color: rgba(12, 12, 12, 0.72);
}
.kosher strong { font-weight: 500; color: var(--ink); }

.menu__legal {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.42);
}

/* ═══════════ GALLERY ═══════════ */
.gallery { background: var(--ink); color: var(--cream); }

.gallery__head { text-align: center; margin-bottom: 46px; }
.gallery .eyebrow { border-color: rgba(244, 240, 233, 0.28); color: rgba(244, 240, 233, 0.62); }
.gallery .h2 { color: var(--cream); }
.gallery .script { color: #B9C37E; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(120px, 15vw, 215px);
  gap: 14px;
}

.bento__cell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(244, 240, 233, 0.05);
  border: 1px solid rgba(244, 240, 233, 0.1);
  padding: 8px;
}
/* picture — обёртка для AVIF с запасным WebP, должна занимать всю ячейку */
.bento__cell picture {
  display: block;
  width: 100%;
  height: 100%;
}
.bento__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 17px;
  transition: transform 1.3s var(--ez);
}
.bento__cell:hover img { transform: scale(1.05); }

/* точная раскладка 12×6 — без пустых ячеек */
.b1 { grid-column: 1 / 6;  grid-row: 1 / 3; }
.b2 { grid-column: 6 / 9;  grid-row: 1 / 4; }
.b3 { grid-column: 9 / 13; grid-row: 1 / 3; }
.b4 { grid-column: 1 / 6;  grid-row: 3 / 5; }
.b5 { grid-column: 6 / 9;  grid-row: 4 / 7; }
.b6 { grid-column: 9 / 13; grid-row: 3 / 5; }
.b7 { grid-column: 1 / 6;  grid-row: 5 / 7; }
.b8 { grid-column: 9 / 13; grid-row: 5 / 7; }

/* анимированное появление плиток галереи */
.bento .reveal {
  transform: translateY(70px) scale(0.93);
  transition-duration: 1s;
}
.bento .reveal.in { transform: translateY(0) scale(1); }
.bento .reveal:nth-child(1) { transition-delay: 0s; }
.bento .reveal:nth-child(2) { transition-delay: 0.12s; }
.bento .reveal:nth-child(3) { transition-delay: 0.24s; }
.bento .reveal:nth-child(4) { transition-delay: 0.06s; }
.bento .reveal:nth-child(5) { transition-delay: 0.18s; }
.bento .reveal:nth-child(6) { transition-delay: 0.3s; }
.bento .reveal:nth-child(7) { transition-delay: 0.12s; }
.bento .reveal:nth-child(8) { transition-delay: 0.24s; }

.gallery__credit {
  margin-top: 28px;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.4);
}

/* ═══════════ ORDER ═══════════ */
.order {
  position: relative;
  overflow: hidden;
  background: var(--olive-deep);
  color: var(--cream);
}

.order__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.42) 0%, rgba(12, 12, 12, 0.3) 50%, rgba(12, 12, 12, 0.55) 100%);
}

.order__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

/* прозрачное стекло — как у навигации */
.order__glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  max-width: 720px;
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-outer);
  background: rgba(12, 12, 12, 0.38);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-cream);
  box-shadow: 0 40px 90px -40px rgba(12, 12, 12, 0.7);
}

.order__script {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  color: rgba(244, 240, 233, 0.95);
}

.order__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.14;
}

.order__body {
  max-width: 500px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(244, 240, 233, 0.82);
}

.order__cta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.order__note {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.78);
}

.order__powered {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.5);
  margin-top: 4px;
}

/* ═══════════ CONTACT ═══════════ */
.contact__head { text-align: center; margin-bottom: 46px; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* контакты — редакционные колонки в рамке с двойной линовкой (как меню) */
.contact__core {
  position: relative;
  overflow: hidden;
  background: var(--cream-card);
  border: 1px solid rgba(96, 109, 56, 0.55);
  box-shadow: inset 0 0 0 4px var(--cream-card), inset 0 0 0 5px rgba(96, 109, 56, 0.55);
  border-radius: calc(var(--r-outer) - 9px);
  padding: clamp(36px, 5.5vw, 72px);
}

.contact__mark {
  position: absolute;
  right: -5%;
  bottom: -16%;
  width: 44%;
  opacity: 0.06;
  transform: rotate(-6deg);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  z-index: 2;
  column-gap: clamp(30px, 4vw, 60px);
}

.contact__num {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--olive);
  margin-bottom: 16px;
}

.contact__col {
  border-top: 1px solid rgba(96, 109, 56, 0.4);
  padding-top: 26px;
}
.contact__col h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  margin-bottom: 16px;
}
.contact__col p {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(12, 12, 12, 0.68);
}

.address-link {
  border-bottom: 1px dotted rgba(96, 109, 56, 0.5);
  transition: color 0.5s var(--ez), border-color 0.5s var(--ez);
}
.address-link:hover { color: var(--olive); border-color: var(--olive); }

.contact__social {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* круглые иконки соцсетей */
.social-row { display: flex; gap: 12px; }

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(12, 12, 12, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s var(--ez), border-color 0.5s var(--ez), transform 0.5s var(--ez);
}
.social-btn svg { width: 20px; height: 20px; color: var(--olive); transition: color 0.5s var(--ez); }
.social-btn:hover { background: var(--olive); border-color: var(--olive); transform: translateY(-2px); }
.social-btn:hover svg { color: var(--cream); }
.social-btn:active { transform: scale(0.95); }

.social-btn--cream { border-color: rgba(244, 240, 233, 0.3); }
.social-btn--cream svg { color: rgba(244, 240, 233, 0.85); }
.social-btn--cream:hover { background: var(--cream); border-color: var(--cream); }
.social-btn--cream:hover svg { color: var(--ink); }

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(12, 12, 12, 0.82);
  transition: color 0.5s var(--ez);
}
.contact__phone svg { width: 18px; height: 18px; color: var(--olive); }
.contact__phone:hover { color: var(--olive); }

.social-row--footer { justify-content: center; }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(12, 12, 12, 0.15);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background-color 0.5s var(--ez), color 0.5s var(--ez), border-color 0.5s var(--ez), transform 0.5s var(--ez);
}
.pill-link svg { width: 17px; height: 17px; color: var(--olive); transition: color 0.5s var(--ez); }
.pill-link:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}
.pill-link:hover svg { color: var(--cream); }
.pill-link:active { transform: scale(0.97); }

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(64px, 8vw, 96px) 0 44px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer__logo { width: 172px; height: auto; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer__nav a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.68);
  transition: color 0.5s var(--ez);
}
.footer__nav a:hover { color: var(--cream); }

.footer__line {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.45);
}

.footer__copy {
  font-size: 12px;
  color: rgba(244, 240, 233, 0.35);
}

.footer__credit {
  font-size: 12px;
  color: rgba(244, 240, 233, 0.35);
}
.footer__credit a {
  color: rgba(244, 240, 233, 0.6);
  border-bottom: 1px solid rgba(244, 240, 233, 0.25);
  transition: color 0.5s var(--ez), border-color 0.5s var(--ez);
}
.footer__credit a:hover { color: var(--cream); border-color: var(--cream); }

/* ═══════════ ПЛАВАЮЩАЯ ПАНЕЛЬ: CALL + CHAT + ORDER ═══════════
   Появляется только после hero (на всех устройствах) */
.fab {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(76, 86, 44, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(244, 240, 233, 0.28);
  box-shadow: 0 18px 44px -12px rgba(57, 66, 31, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ez), transform 0.5s var(--ez);
}
body.past-hero .fab {
  opacity: 1;
  pointer-events: auto;
}
.fab__btn {
  width: 44px;
  padding: 8px 0 6px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: background-color 0.5s var(--ez), transform 0.5s var(--ez);
}
.fab__btn svg { width: 18px; height: 18px; color: var(--cream); }
.fab__lbl {
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.85);
}
.fab__btn:hover { background: rgba(244, 240, 233, 0.16); }
.fab__btn:active { transform: scale(0.94); }
.fab__div { width: 20px; height: 1px; background: rgba(244, 240, 233, 0.3); }
.fab__btn[hidden] + .fab__div { display: none; }

/* мобайл: пилюля горизонтальная, по центру внизу */
@media (max-width: 768px) {
  .fab {
    top: auto;
    bottom: 14px;
    right: auto;
    left: 50%;
    transform: translate(-50%, 12px);
    flex-direction: row;
    gap: 3px;
    padding: 6px;
  }
  body.past-hero .fab { transform: translate(-50%, 0); }
  .fab__btn { width: 56px; padding: 7px 0 6px; }
  .fab__div { width: 1px; height: 24px; }
}

/* ═══════════ SCROLL REVEAL ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(52px) rotate(var(--tilt, 0deg));
  filter: blur(7px);
  transition: opacity 0.9s var(--ez), transform 0.9s var(--ez), filter 0.9s var(--ez);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt, 0deg));
  filter: blur(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.42s; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav { gap: 14px; padding: 8px 8px 8px 18px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { margin-top: 10px; }

  .menu__items { grid-template-columns: 1fr; }
  .item p { padding-right: 0; }
}

@media (max-width: 768px) {
  .section { padding-block: 88px; }

  .features { grid-template-columns: 1fr; gap: 16px; }
  .contact__grid { grid-template-columns: 1fr; gap: 16px; }

  /* мобайл: фото About — компактная пара, не во весь экран */
  .about__media {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }
  .about__media .shell--tilt-l {
    width: 100%;
    margin-top: 0;
    --tilt: -1.5deg;
  }
  .about__media .shell--tilt-r {
    width: 100%;
    margin-top: 28px;
    --tilt: 1.8deg;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 44vw;
    gap: 10px;
  }
  /* мобайл: ровная сетка 2×4 — без растянутых плиток и дыр между ними */
  .b1, .b2, .b3, .b4, .b5, .b6, .b7, .b8 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento__cell { border-radius: 18px; padding: 6px; }
  .bento__cell img { border-radius: 13px; }

  .hero__logo { width: min(78vw, 340px); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }

  .gallery__credit { text-align: center; }
}

@media (max-width: 520px) {
  .nav__logo img { height: 24px; }
  .btn--nav span:first-child { display: none; }
  .btn--nav { padding: 8px; }
  .overlay__link { font-size: clamp(1.7rem, 5.6vh, 2.4rem); }
}

/* ═══════════ QA MODE (?qa) ═══════════ */
.qa, .qa * , .qa *::before, .qa *::after { animation: none !important; transition: none !important; }
.qa { scroll-behavior: auto; }
.qa .reveal { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); filter: none; }
.qa .hero { min-height: 860px; }

/* ═══════════ TOUCH: без залипающих hover-состояний ═══════════ */
@media (hover: none) {
  .btn:hover .btn__orb { transform: none; }
  .btn--cream:hover { background: var(--cream); }
  .btn--ghost:hover { background: rgba(244, 240, 233, 0.07); }
  .tab:hover { border-color: rgba(12, 12, 12, 0.16); color: rgba(12, 12, 12, 0.58); }
  .tab.is-active:hover { border-color: var(--olive); background: var(--olive); color: var(--cream); }
  .menu__pdf:hover { opacity: 1; }
  .bento__cell:hover img { transform: none; }
  .pill-link:hover { background: transparent; border-color: rgba(12, 12, 12, 0.15); color: inherit; }
  .pill-link:hover svg { color: var(--olive); }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .features .reveal,
  .bento .reveal,
  .about__media .reveal {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
    filter: none;
    transition: none;
  }
  .marquee__track { animation: none; }
  .hero__scroll span { animation: none; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
