/* ===== SITE — LAPSHA ===== */

html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100vw; position: relative; }
main, section, header, footer, .container { max-width: 100vw; overflow-x: clip; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

section { padding: var(--space-11) 0; position: relative; }
@media (max-width: 720px) { section { padding: var(--space-9) 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--paprika);
}
.eyebrow::before { content: "●"; color: var(--yellow); font-size: 10px; }
.eyebrow--on-accent { color: rgba(27,26,23,.85); }
.eyebrow--on-accent::before { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; margin-top: 10px; }
h3 { font-size: 22px; line-height: 1.2; }
.lead { color: var(--ink-2); font-size: 18px; max-width: 620px; margin-top: 14px; line-height: 1.55; }

.section-header { text-align: left; margin-bottom: var(--space-9); }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: .02em; text-align: center; white-space: nowrap;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1.5px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--ink-black); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--ink); border-color: rgba(27,26,23,.2); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-accent { background: var(--paprika); color: #fff; box-shadow: 0 12px 30px rgba(217,66,27,.30); }
.btn-accent:hover { background: var(--paprika-2); transform: translateY(-2px); box-shadow: 0 20px 40px rgba(217,66,27,.35); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-yellow); }
.btn-yellow:hover { background: var(--yellow-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(27,26,23,.15); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-link { background: transparent; padding: 8px 0; color: var(--paprika); border: 0; }
.btn-link:hover { color: var(--paprika-2); }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,247,238,.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: rgba(251,247,238,.95); border-color: var(--line); box-shadow: 0 6px 24px rgba(27,26,23,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: auto; height: 44px; display: block; max-width: 220px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.brand-tag  { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav-main { display: flex; align-items: center; gap: 32px; }
.nav-main a { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; transition: color .2s ease; }
.nav-main a:hover { color: var(--paprika); }
.nav-main a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--yellow); transition: right .3s ease;
}
.nav-main a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.header-phone svg { width: 18px; height: 18px; color: var(--paprika); }
.header-phone:hover { color: var(--paprika); }

.menu-open { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--cream-2); }
.menu-open span, .menu-open::before, .menu-open::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 3px 0;
}

@media (max-width: 980px) {
  .nav-main, .header-phone-desktop { display: none; }
  .menu-open { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed; top: 0; right: -100%; width: min(360px, 88vw); height: 100dvh; z-index: 80;
  background: var(--cream); padding: 24px; transition: right .3s ease;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.drawer.is-open { right: 0; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(27,26,23,.4); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 70; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; background: var(--cream-2); font-size: 22px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.drawer-nav a { font-family: var(--font-display); font-size: 20px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 60px;
  background:
    radial-gradient(circle at 90% 10%, rgba(245,179,36,.14), transparent 55%),
    radial-gradient(circle at 5% 90%, rgba(217,66,27,.08), transparent 55%),
    var(--cream);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) {
  .hero-inner { display: flex; flex-direction: column; gap: 28px; }
  .hero-visual { display: block; order: -1; }
  .hero-content { order: 1; }
}
@media (max-width: 720px) {
  .hero { padding: 24px 0 28px; }
  .hero-visual {
    display: block; order: -1;
    max-width: 100%; margin: 0 -8px 8px; padding: 8px 8px 0;
    position: relative;
  }
  .hero-photo {
    aspect-ratio: 16/10;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(217,66,27,.18), 0 8px 16px rgba(0,0,0,.08);
  }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
  .hero-title { font-size: clamp(42px, 12vw, 64px); }
  .hero-quick { grid-template-columns: 1fr 1fr; }

  /* Мобильный бэйдж — в верхнем углу фото, компактнее */
  .hero-badge {
    width: 88px; height: 88px; padding: 10px 8px;
    top: 0; left: 6px;
    transform: rotate(-12deg);
    box-shadow: 0 10px 24px rgba(217,66,27,.35);
  }
  .hero-badge-line { font-size: 13px; }
  .hero-badge-title { font-size: 8px; max-width: 68px; margin-top: 3px; letter-spacing: .02em; }

  /* Мобильный стикер «№1» — в нижнем правом углу */
  .hero-sticker {
    padding: 10px 14px; font-size: 12px;
    bottom: -10px; right: 12px;
    box-shadow: 0 8px 20px rgba(245,179,36,.4);
  }
  .hero-sticker span { font-size: 13px; }
  .hero-sticker small { font-size: 9px; }

  /* Анимация пара над картинкой */
  .hero-visual::before,
  .hero-visual::after {
    content: ""; position: absolute;
    width: 18px; height: 40px;
    background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 70%);
    filter: blur(6px);
    top: 4px;
    animation: steamRise 3.6s ease-in-out infinite;
    z-index: 4; pointer-events: none;
  }
  .hero-visual::before { left: 42%; animation-delay: 0s; }
  .hero-visual::after  { left: 56%; animation-delay: 1.2s; width: 14px; height: 32px; }
}
@keyframes steamRise {
  0%   { transform: translateY(6px) scale(.9); opacity: 0; }
  40%  { opacity: .8; }
  100% { transform: translateY(-32px) scale(1.4); opacity: 0; }
}

.hero-decor { position: absolute; inset: 0; pointer-events: none; color: var(--paprika); }
.enso { position: absolute; border-radius: 50%; border: 3px solid; opacity: .12; }
.enso--1 { width: 480px; height: 480px; border-color: var(--paprika); top: -160px; right: -120px; }
.enso--2 { width: 260px; height: 260px; border-color: var(--yellow); bottom: -80px; left: -60px; opacity: .30; }
.enso--3 { width: 140px; height: 140px; border-color: var(--miso); top: 30%; left: 42%; opacity: .10; }
.noodle-strokes { position: absolute; inset: 0; }
.noodle-strokes svg { width: 100%; height: 100%; opacity: .5; }

.hero-title { font-size: clamp(44px, 6.6vw, 96px); line-height: .96; letter-spacing: -.03em; }
.hero-title em { font-style: normal; color: var(--paprika); position: relative; display: inline-block; }
.hero-title em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%;
  height: 14px; background: var(--yellow); z-index: -1; border-radius: 4px; opacity: .55;
}
.hero-sub { font-size: 18px; color: var(--ink-2); margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--line); }
.hero-quick li { display: flex; flex-direction: column; gap: 4px; }
.hero-quick-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hero-quick-value { font-weight: 600; color: var(--ink); }
.hero-quick-value a:hover { color: var(--paprika); }
@media (max-width: 640px) { .hero-quick { grid-template-columns: 1fr 1fr; } }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  animation: floatY 8s ease-in-out infinite;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-badge {
  position: absolute; top: -10px; left: -10px; z-index: 3;
  background: var(--paprika); color: #fff;
  border-radius: 50%;
  width: 160px; height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: var(--shadow);
  transform: rotate(-8deg);
  padding: 22px 14px;
  box-sizing: border-box;
}
.hero-badge-line { font-family: var(--font-jp); font-size: 20px; letter-spacing: .04em; line-height: 1; }
.hero-badge-title {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0; text-transform: uppercase;
  line-height: 1.2; margin-top: 8px;
  max-width: 100px;
  word-break: normal; hyphens: none;
}
@media (max-width: 900px) {
  .hero-badge { width: 132px; height: 132px; padding: 18px 12px; }
  .hero-badge-line { font-size: 16px; }
  .hero-badge-title { font-size: 9px; max-width: 84px; }
}

.hero-sticker {
  position: absolute; bottom: 10px; right: -10px; z-index: 3;
  background: var(--yellow); color: var(--ink);
  padding: 16px 20px; border-radius: 999px;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display); box-shadow: var(--shadow-yellow);
  transform: rotate(6deg);
}
.hero-sticker span { font-weight: 700; font-size: 15px; }
.hero-sticker small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

/* Hero marquee */
.hero-marquee {
  margin-top: 60px; padding: 18px 0;
  background: var(--ink); color: var(--cream);
  overflow: hidden; position: relative;
  transform: rotate(-1.2deg);
  border-top: 1px solid var(--yellow);
  border-bottom: 1px solid var(--yellow);
}
.marquee-track { display: flex; gap: 24px; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-item { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.marquee-dot { color: var(--yellow); font-size: 12px; align-self: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-visual { position: relative; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-photo--main img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-photo--accent {
  position: absolute; bottom: -20px; right: -20px; width: 48%;
  border: 6px solid var(--cream); border-radius: var(--radius);
}
.about-photo--accent img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
@media (max-width: 900px) {
  .about-photo--accent { position: static; width: 60%; margin: -30px 0 0 auto; }
}

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 60px; }
.about-stats div { background: var(--cream-2); border-radius: var(--radius); padding: 20px; text-align: left; }
.about-stats b { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--paprika); display: inline-block; }
.about-stats small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.about-stats .stat-top { display: inline-block; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--paprika); margin: 0 6px 0 0; letter-spacing: 0; text-transform: none; }

.about-text h2 { max-width: 12ch; }
.about-text p { margin-top: 18px; color: var(--ink-2); }
.pull-quote {
  margin-top: 28px; padding: 20px 26px;
  border-left: 4px solid var(--yellow);
  background: var(--cream-2);
  font-family: var(--font-display);
  font-size: 20px; font-style: normal; font-weight: 500;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   MENU
   ============================================================ */
.menu-section { background: var(--paper); position: relative; }
.menu-section::before {
  content: ""; position: absolute; top: 40px; right: -60px; width: 240px; height: 240px;
  border: 30px solid var(--yellow); border-radius: 50%; opacity: .12; pointer-events: none;
}

.menu-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 20px 0 40px; padding-bottom: 4px;
}
.menu-cat {
  padding: 10px 20px; border-radius: 999px;
  background: var(--cream); color: var(--ink-2);
  font-weight: 600; font-size: 14px;
  border: 1.5px solid transparent;
  transition: all .25s ease;
}
.menu-cat:hover { color: var(--ink); border-color: var(--ink); }
.menu-cat.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.dishes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1080px) { .dishes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .dishes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .dishes { grid-template-columns: 1fr; } }

.dish {
  background: var(--cream); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid transparent;
}
.dish:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--yellow); }
.dish[hidden] { display: none; }

.dish-img { position: relative; aspect-ratio: 5/3; overflow: hidden; background: var(--cream-2); }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dish:hover .dish-img img { transform: scale(1.05); }
.dish-weight { position: absolute; top: 12px; left: 12px; background: rgba(27,26,23,.72); color: var(--cream); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }

.dish-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.dish-title { font-size: 18px; font-weight: 700; }
.dish-desc { color: var(--ink-2); font-size: 14px; margin-top: 8px; flex: 1; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.dish-price { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--paprika); }
.dish-order { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); transition: color .2s ease; }
.dish-order svg { width: 14px; height: 14px; transition: transform .2s ease; }
.dish-order:hover { color: var(--paprika); }
.dish-order:hover svg { transform: translateX(3px); }

.menu-cta {
  margin-top: 60px; padding: 32px 40px;
  background: var(--cream-2); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.menu-cta p { color: var(--ink); max-width: 520px; }
.menu-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   KITCHENS
   ============================================================ */
.kitchens { background: var(--cream); }
.kitchens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .kitchens-grid { grid-template-columns: 1fr; } }

.kitchen-card {
  background: var(--paper); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.kitchen-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.kitchen-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.kitchen-media img { width: 100%; height: 100%; object-fit: cover; }
.kitchen-kanji {
  position: absolute; right: 14px; bottom: 10px;
  font-family: var(--font-jp); font-size: 48px; font-weight: 700;
  color: var(--cream); text-shadow: 0 6px 18px rgba(0,0,0,.4);
  line-height: 1;
}
.kitchen-body { padding: 22px; }
.kitchen-body h3 { font-size: 22px; }
.kitchen-body p { color: var(--ink-2); margin-top: 10px; font-size: 15px; }

/* ============================================================
   TAKEAWAY
   ============================================================ */
.takeaway { background: var(--paper); }
.takeaway-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .takeaway-inner { grid-template-columns: 1fr; gap: 40px; } }
.takeaway-text h2 { max-width: 14ch; }
.takeaway-text p { color: var(--ink-2); margin-top: 16px; }
.takeaway-cta { margin-top: 28px; }

.takeaway-visual { position: relative; height: 400px; }
.takeaway-box {
  position: absolute; width: 200px; height: 200px;
  background: var(--cream-2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jp); font-size: 40px; font-weight: 700;
  color: var(--miso); box-shadow: var(--shadow);
  transition: transform .5s ease;
}
.takeaway-box--1 { top: 0; left: 10%; transform: rotate(-6deg); background: var(--yellow); color: var(--ink); }
.takeaway-box--2 { top: 40px; left: 40%; transform: rotate(4deg); background: var(--paprika); color: #fff; z-index: 2; }
.takeaway-box--3 { bottom: 0; left: 20%; transform: rotate(-2deg); font-size: 24px; }
.takeaway-visual:hover .takeaway-box--1 { transform: rotate(-9deg) translateY(-6px); }
.takeaway-visual:hover .takeaway-box--2 { transform: rotate(6deg) translateY(-6px); }
.takeaway-visual:hover .takeaway-box--3 { transform: rotate(-4deg) translateY(-6px); }

/* ============================================================
   DELIVERY
   ============================================================ */
.delivery { background: var(--cream); }
.delivery-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--yellow) 0%, #F5C24D 100%);
  border-radius: var(--radius-xl);
  padding: 72px 60px;
}
@media (max-width: 720px) { .delivery-card { padding: 48px 24px; border-radius: var(--radius-lg); } }
.delivery-content { position: relative; z-index: 2; max-width: 720px; }
.delivery-content h2 { color: var(--ink); }
.delivery-content .lead { color: rgba(27,26,23,.75); }

.delivery-quote {
  margin-top: 24px; padding: 16px 0; border-top: 1px solid rgba(27,26,23,.15); border-bottom: 1px solid rgba(27,26,23,.15);
  font-family: var(--font-display); font-size: 22px; font-weight: 500; font-style: normal;
  color: var(--ink);
}

.delivery-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 720px) { .delivery-steps { grid-template-columns: repeat(2, 1fr); } }
.delivery-step { display: flex; flex-direction: column; gap: 6px; }
.delivery-step b { font-family: var(--font-display); font-size: 24px; color: var(--paprika); }
.delivery-step span { font-size: 14px; color: var(--ink); font-weight: 500; }

.delivery .btn-accent { margin-top: 34px; }

.delivery-decor { position: absolute; inset: 0; pointer-events: none; }
.deco-circle {
  position: absolute; top: -100px; right: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 24px solid rgba(27,26,23,.06);
}
.deco-chop {
  position: absolute; width: 8px; height: 240px; border-radius: 4px;
  background: rgba(27,26,23,.08);
}
.deco-chop--1 { right: 12%; bottom: -60px; transform: rotate(20deg); }
.deco-chop--2 { right: 8%; bottom: -50px; transform: rotate(30deg); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { background: var(--paper); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 16px;
}
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g1 { grid-column: span 2; grid-row: span 2; }
.gallery .g6 { grid-column: span 2; }
@media (max-width: 900px)  { .gallery { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 200px); } .gallery .g1, .gallery .g6 { grid-column: span 2; grid-row: auto; } }
@media (max-width: 520px)  { .gallery { grid-template-columns: 1fr; grid-template-rows: none; } .gallery figure { aspect-ratio: 5/4; } .gallery .g1, .gallery .g6 { grid-column: auto; } }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts { background: var(--cream); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; } }

.contact-block { background: var(--paper); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact-value { font-size: 18px; font-weight: 600; color: var(--ink); }
.contact-value a:hover { color: var(--paprika); }
.contact-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 460px; background: var(--cream-2); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink); color: rgba(251,247,238,.75);
  padding: 72px 0 32px; position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--paprika) 0%, var(--yellow) 50%, var(--tea) 100%);
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand h3 { color: var(--cream); font-size: 24px; }
.footer-brand p { margin-top: 12px; font-size: 15px; }
.footer-slogan { margin-top: 16px; font-family: var(--font-display); font-size: 15px; color: var(--yellow); font-style: normal; }

.footer-col h4 { color: var(--cream); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col p { color: rgba(251,247,238,.7); display: block; padding: 4px 0; font-size: 15px; }
.footer-col a:hover { color: var(--yellow); }

.footer-bottom { border-top: 1px solid rgba(251,247,238,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(251,247,238,.5); }

/* ============================================================
   COOKIE NOTICE
   ============================================================ */
#cookie {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 480px; z-index: 90;
  background: var(--ink); color: var(--cream);
  padding: 18px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
#cookie.is-visible { display: flex; }
#cookie p { flex: 1; font-size: 14px; }
#cookie a { color: var(--yellow); text-decoration: underline; }
#cookieAccept { background: var(--yellow); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; }

/* ============================================================
   UTIL
   ============================================================ */
::selection { background: var(--yellow); color: var(--ink); }

/* ============================================================
   COMPAT LAYER — синхронизация с классами из header.php / footer.php
   ============================================================ */

/* --- Header nav (использует .nav) --- */
.site-header .nav {
  display: flex; align-items: center; gap: 30px;
}
.site-header .nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  position: relative; transition: color .2s ease;
  padding: 6px 0;
}
.site-header .nav a:hover { color: var(--paprika); }
.site-header .nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--yellow); transition: right .3s ease;
}
.site-header .nav a:hover::after { right: 0; }

.brand-logo { width: auto; height: 44px; }

/* Header кнопки size sm */
.btn-sm { padding: 10px 18px; font-size: 14px; }
.phone-link svg { width: 15px; height: 15px; color: var(--paprika); }
.phone-link { border-color: rgba(27,26,23,.14); }
.phone-link:hover .phone-link svg { color: var(--cream); }

/* Menu toggle */
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--cream-2); color: var(--ink);
  transition: background .2s ease;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle:hover { background: var(--yellow); }

@media (max-width: 980px) {
  .site-header .nav { display: none; }
  .phone-link { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .site-header .header-actions .btn-primary { padding: 8px 12px; font-size: 12px; letter-spacing: 0; }
  .site-header .header-actions .btn-primary .btn-full { display: none; }
  .site-header .header-actions .btn-primary .btn-short { display: inline; }
  .site-header .header-actions { gap: 8px; }
  .brand-logo { height: 38px; max-width: 160px; }
  .menu-toggle { width: 40px; height: 40px; }
}
.btn-primary .btn-short { display: none; }

/* Красная кнопка «Доставка» в шапке — приоритет через !important, чтобы не перекрывалась */
.header-delivery,
.site-header .header-delivery,
.site-header .header-actions .header-delivery {
  background: #D9421B !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
}
.header-delivery:hover,
.site-header .header-delivery:hover { background: #b8371a !important; color: #fff !important; }
@media (max-width: 720px) {
  .header-delivery { padding: 9px 14px; font-size: 13px; letter-spacing: 0; }
}

/* --- Mobile drawer (использует .mobile-drawer) --- */
.mobile-drawer {
  position: fixed; top: 0; right: -100%; width: min(360px, 88vw); height: 100dvh; z-index: 80;
  background: var(--cream); padding: 24px; transition: right .35s ease;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.is-open { right: 0; }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(27,26,23,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  z-index: 70;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer nav a {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: color .2s ease, padding .2s ease;
}
.mobile-drawer nav a:hover { color: var(--paprika); padding-left: 8px; }
.drawer-actions {
  margin-top: auto; padding-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.drawer-actions .btn { width: 100%; }

/* --- Footer sync (footer.php) --- */
.footer-inner {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.footer-brand-col .brand-logo { height: 56px; margin-bottom: 14px; max-width: 260px; }
.footer-tagline {
  margin-top: 12px; font-family: var(--font-display);
  font-size: 15px; color: var(--yellow); font-style: normal; line-height: 1.4;
}
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col-title {
  color: var(--cream); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 12px; font-weight: 600;
  display: block;
}
.footer-col a, .footer-col span { color: rgba(251,247,238,.7); padding: 4px 0; font-size: 15px; display: block; }
.footer-col a:hover { color: var(--yellow); }
.footer-copy { font-size: 13px; }
.footer-privacy { color: rgba(251,247,238,.5); font-size: 13px; text-decoration: underline; }
.footer-privacy:hover { color: var(--yellow); }

/* --- Cookie sync (.cookie-notice) --- */
.cookie-notice {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 480px; z-index: 90;
  background: var(--ink); color: var(--cream);
  padding: 18px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-notice.is-visible { display: flex; }
.cookie-notice p { flex: 1; font-size: 14px; margin: 0; }
.cookie-notice .btn-primary { background: var(--yellow); color: var(--ink); }
.cookie-notice .btn-primary:hover { background: var(--yellow-2); }
