/* ============================================
   12 Tashkent — single-page restaurant site
   Pure CSS3, custom properties, Grid + Flexbox
   ============================================ */

:root {
    /* === Brand book (Фирменные цвета) === */
    --brand-night: #0e1913;
    --brand-cultured: #f4f7f0;
    --brand-palm: #223a2d;
    --brand-burlywood: #d8bf8f;
    /* Светлее burlywood — лучше читается на night green */
    --brand-burlywood-bright: #ead8af;
    --brand-morning: #7ea88f;

    /* === Light theme === */
    --bg-primary: var(--brand-cultured);
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hero-overlay: rgba(0, 0, 0, 0.45);

    --text-primary: var(--brand-night);
    --text-secondary: #6b6b6b;
    --text-light: #999999;
    --text-on-dark: var(--brand-cultured);

    --accent: var(--brand-burlywood);
    --accent-hover: #b8945c;
    --accent-light: rgba(216, 191, 143, 0.18);

    --brand-green-light: var(--brand-morning);
    --brand-green-dark: var(--brand-palm);
    --brand-gold: var(--brand-burlywood);

    --divider: rgba(34, 58, 45, 0.18);
    --border: rgba(34, 58, 45, 0.12);

    --header-bg: transparent;
    --header-bg-scrolled: rgba(244, 247, 240, 0.97);
    --header-text: #ffffff;
    --header-text-scrolled: var(--brand-night);

    --overlay: rgba(14, 25, 19, 0.55);

    --font-main: "Akrobat", sans-serif;
    --header-height: 72px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Akrobat";
    src: url("../fonts/Akrobat-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll,
    .hero-slide-img,
    .hero-scroll-arrow,
    .btn-submit-spinner::after {
        transition: none !important;
        animation: none !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #000;
    z-index: 10000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

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

/* ---------- Header ---------- */
#header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    background: transparent;
}

#header.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: var(--header-height);
    position: relative;
    box-sizing: border-box;
}

/* === Logo: centered on mobile; hero = natural logo.png; scrolled bar = logo-dark.png === */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 0;
}

.header-logo-mark {
    height: 54px;
    width: auto;
    display: block;
}

.header-logo--on-bar {
    display: none;
    filter: none;
    opacity: 1;
}

#header.site-header.scrolled .header-logo--on-hero {
    display: none;
}

#header.site-header.scrolled .header-logo--on-bar {
    display: block;
}

/* === Desktop nav === */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 0.35rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
}

#header.site-header.scrolled .nav-link {
    color: var(--text-primary);
}

#header.site-header.scrolled .nav-link:hover,
#header.site-header.scrolled .nav-link:focus-visible,
#header.site-header.scrolled .nav-link.active {
    color: var(--accent);
}

/* === Burger → cross animation (header + mobile panel) === */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
}

.header-burger {
    display: none;
    z-index: 2001;
}

.burger-line {
    display: block;
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--accent);
    transition: top 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.35s ease, transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform: translateX(-50%);
    transform-origin: center;
}

.burger-line-1 {
    top: 11px;
}

.burger-line-2 {
    top: 21px;
}

.burger-line-3 {
    top: 31px;
}

.burger-btn.is-active .burger-line-1 {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.burger-btn.is-active .burger-line-2 {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.burger-btn.is-active .burger-line-3 {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

#header.site-header.scrolled .header-burger .burger-line {
    background: var(--text-primary);
}

/* Mobile menu header: burger always gold + cross */
.mobile-menu-header .burger-btn .burger-line {
    background: var(--accent);
}

.menu-burger {
    display: flex;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 60px;
    }

    .desktop-nav {
        display: none;
    }

    .header-burger {
        display: block;
    }

    /* Bar: burger left + same-width spacer right → logo dead-center, one vertical axis */
    .header-container {
        min-height: 0;
        padding: 10px 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .header-container::after {
        content: "";
        display: block;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        pointer-events: none;
        visibility: hidden;
    }

    .header-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .header-logo-mark {
        height: 50px;
    }
}

@media (min-width: 768px) {
    .header-container {
        display: flex;
    }

    .header-container::after {
        display: none;
        content: none;
    }

    .header-logo {
        position: static;
        transform: none;
        grid-column: auto;
        justify-self: auto;
        justify-content: flex-start;
    }

    .header-burger {
        grid-column: auto;
        justify-self: auto;
        display: none;
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* ===== Mobile menu (dark green panel ~70vh + dimmed page below) ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.35);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.4s, opacity 0.4s ease;
}

.mobile-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    background: #2d3a2e;
    width: 100%;
    min-height: 70vh;
    flex: 0 0 auto;
    padding: 0;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.menu-burger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mobile-menu-logo {
    display: flex;
    line-height: 0;
}

.mobile-menu-logo img {
    height: 50px;
    width: auto;
    /* logo.png on green panel: light version */
    filter: brightness(0) invert(1);
    opacity: 0.98;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0 0 24px;
}

.mobile-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.55;
    padding: 22px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, background 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-link:nth-child(even) {
    background: rgba(0, 0, 0, 0.08);
}

.mobile-nav-link.gold {
    color: var(--accent);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    padding-left: 35px;
}

.mobile-nav-link.active {
    color: var(--accent);
}

/* =============================================
   HERO — CINEMATIC SLIDER v2 (opacity CSS + Ken Burns JS)
   ============================================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #0a0a0a;
    color: var(--text-on-dark);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Мобилка: только видео; слайдер не показываем */
@media (max-width: 768px) {
    .hero-slider--desktop {
        display: none !important;
    }
}

/* По умолчанию (десктоп) видео скрыто; display: block только в медиа ниже — иначе «глобальный» display:none затирает mobile */
.hero-video-mobile {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video-mobile .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #0a0a0a;
}

@media (max-width: 768px) {
    .hero-video-mobile {
        display: block;
    }
}

@media (min-width: 769px) {
    .hero-video-mobile {
        display: none !important;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1) translate(0px, 0px);
    will-change: transform;
}

/* ===== CINEMATIC OVERLAYS ===== */
.hero-overlays {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-color-grade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 15, 10, 0.3) 0%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0) 60%,
        rgba(10, 8, 5, 0.2) 100%
    );
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-grain {
    position: absolute;
    inset: -100px;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    animation: grainShift 0.5s steps(1) infinite;
    pointer-events: none;
}

@keyframes grainShift {
    0% {
        background-position: 0 0;
    }
    20% {
        background-position: -50px -30px;
    }
    40% {
        background-position: 30px -60px;
    }
    60% {
        background-position: -70px 20px;
    }
    80% {
        background-position: 50px 40px;
    }
    100% {
        background-position: -20px -50px;
    }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 45%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 55px;
    text-align: center;
    pointer-events: none;
}

.hero-content .hero-scroll-arrow {
    pointer-events: auto;
}

.hero-tagline {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-scroll-arrow {
    color: rgba(255, 255, 255, 0.55);
    display: block;
    transition: color 0.3s ease;
    animation: floatArrow 2.5s ease-in-out infinite;
}

.hero-scroll-arrow:hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes floatArrow {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@media (max-width: 768px) {
    .hero-tagline {
        font-size: 0.85rem;
        letter-spacing: 3px;
        padding: 0 24px;
    }

    .hero-grain {
        opacity: 0.04;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-grain {
        animation: none;
    }
    .hero-scroll-arrow {
        animation: none;
    }
    .hero-slide {
        transition: opacity 0.5s ease;
    }
}

/* ---------- Sections ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 0;
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s;
}

.section {
    padding: 4rem 1.25rem;
}

@media (min-width: 768px) {
    .section {
        padding: 6.25rem 2rem;
    }
}

.section-title {
    margin: 0 auto 10px;
    text-align: center;
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: none;
    color: var(--text-primary);
}

@media (min-width: 769px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px auto 32px;
    width: 100%;
}

.chef-section .section-divider {
    margin-bottom: 36px;
}

.section-divider-left {
    justify-content: flex-start;
    margin: 20px 0 32px;
    width: 100%;
}

.divider-img {
    width: 80px;
    height: 30px;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.85;
}

.section-title-left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    color: var(--text-primary);
}

.section-title-on-dark {
    color: var(--text-on-dark);
}

/* ---------- About ---------- */
.about-section {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.section.about {
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (max-width: 767px) {
    .section.about {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.about-body {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ---------- Chef ---------- */
.chef-section,
.chef {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.chef-section.section,
.chef.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.chef-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .chef-container {
        padding: 0 2rem;
    }
}

.chef-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: 100%;
}

/* Desktop: две колонки — фото слева, текст справа, по вертикали по центру */
@media (min-width: 768px) {
    .chef-content {
        flex-direction: row;
        align-items: center;
        gap: clamp(2rem, 4vw, 3.5rem);
    }
}

.chef-photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none;
}

@media (min-width: 768px) {
    .chef-photo-wrapper {
        flex: 1 1 48%;
        min-width: 0;
        max-width: none;
        border-radius: 0;
    }
}

.chef-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.chef-text {
    text-align: left;
    width: 100%;
}

@media (min-width: 768px) {
    .chef-text {
        flex: 1 1 52%;
        min-width: 0;
    }
}

.chef-text p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 400;
}

@media (max-width: 480px) {
    .chef-text p {
        font-size: 1.0625rem;
    }
}

/* ---------- Interior ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.section.interior-section {
    padding-bottom: 0;
}

.interior-section {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.interior-section .interior-slider {
    margin-top: 0.5rem;
}

/* ===== INTERIOR SLIDER ===== */
.interior-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 4px;
}

.interior-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.interior-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1000ms ease;
    z-index: 0;
}

.interior-slide.active {
    opacity: 1;
    z-index: 1;
}

/* На десктопе только кадры с отдельным landscape (-d); вертикальные без -d не тянем на 16:7 */
@media (min-width: 768px) {
    .interior-slide--mobile-only {
        display: none;
    }
}

.interior-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.interior-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.interior-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.interior-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    padding: 0;
}

.interior-slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.interior-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.interior-slider-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    /* Слайдер на всю ширину экрана; заголовок остаётся в .container с отступами */
    .section.interior-section {
        padding-left: 0;
        padding-right: 0;
    }

    .interior-slider {
        /* Высота как у вертикального референса (экран / stories) */
        aspect-ratio: 9 / 16;
        border-radius: 0;
        width: 100%;
        max-width: none;
    }

    .interior-slider-dots {
        bottom: 15px;
    }

    .interior-slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* ---------- Gallery ---------- */
.gallery-section {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    position: relative;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.gallery-zoom {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

.gallery-zoom::before {
    content: "";
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23d8bf8f' stroke-width='1.5'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E")
        center/20px no-repeat;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.05);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after,
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom {
    opacity: 1;
}

.gallery-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Скрытые превью до «View more» (в сетке не занимают место) */
.gallery-grid:not(.is-expanded) .gallery-item--extra {
    display: none;
}

.gallery-more-wrap {
    max-width: 1400px;
    margin: 1.75rem auto 0;
    padding: 0 1.25rem;
    text-align: center;
}

.gallery-more-btn {
    font: inherit;
    cursor: pointer;
    padding: 0.75rem 2.25rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.gallery-more-btn:hover,
.gallery-more-btn:focus-visible {
    background: rgba(216, 191, 143, 0.12);
    color: var(--text-primary);
    border-color: var(--accent);
}

.gallery-more-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .gallery-more-wrap {
        padding: 0 1.25rem;
    }

    .section.gallery-section {
        padding-left: 0;
        padding-right: 0;
    }

    .gallery-section .section-title,
    .gallery-section .section-divider {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        max-width: none;
        padding: 0;
    }

    .gallery-item {
        aspect-ratio: 1;
        border-radius: 0;
    }
}

/* ---------- Menu ---------- */
.menu-section {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.menu-lead {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

.menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 920px;
    margin: 0 auto;
}

.menu-buttons .menu-card {
    flex: 1 1 240px;
    max-width: 380px;
    margin: 0;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    text-decoration: none;
    transition: background 0.35s var(--ease-out), color 0.35s;
}

.menu-card:hover,
.menu-card:focus-visible {
    background: var(--accent);
    color: var(--text-primary);
}

.menu-card-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.menu-card:hover .menu-card-icon-img,
.menu-card:focus-visible .menu-card-icon-img {
    filter: brightness(0) saturate(100%);
}

.menu-card-icon svg {
    display: block;
}

.menu-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---------- Celebrate ---------- */
.celebrate-section,
.celebrate {
    background: var(--brand-night);
    color: var(--text-on-dark);
}

.celebrate {
    position: relative;
    padding: 5rem 1.25rem;
    overflow: hidden;
}

.celebrate-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/parallax-celebrate.webp");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

@media (min-width: 769px) {
    .celebrate-bg {
        background-attachment: fixed;
    }
}

.celebrate-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--overlay);
}

.celebrate-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.celebrate .section-title {
    margin-bottom: 15px;
}

.celebrate-text {
    margin: 0;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(244, 247, 240, 0.78);
}

/* ---------- Reservation form ---------- */
.reservation-section,
.reservation {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.reservation-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row-half {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 480px) {
    .form-row-half {
        grid-template-columns: 1fr 1fr;
    }
}

.form-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b6b6b'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    padding-right: 2rem;
    cursor: pointer;
}

.form-disclaimer {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-secondary);
}

.form-status {
    min-height: 1.5rem;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.form-status.is-success {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #5cb85c;
}

.form-status.is-error {
    color: #e07a7a;
}

.btn-submit {
    width: 100%;
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1.15rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-submit:hover:not(:disabled),
.btn-submit:focus-visible:not(:disabled) {
    background: var(--accent-hover);
}

.btn-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.btn-submit-spinner {
    position: relative;
    width: 22px;
    height: 22px;
}

.btn-submit-spinner[hidden] {
    display: none !important;
}

.btn-submit-spinner::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Footer ---------- */
.contacts-section,
.footer.contacts-section {
    background: var(--brand-night);
    color: var(--text-on-dark);
}

.footer {
    padding: 4rem 1.25rem 0;
}

.footer-title-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
}

.footer-title-wrap .section-divider {
    margin-bottom: 2.5rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    gap: 2.5rem;
    justify-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        justify-items: start;
        text-align: left;
        gap: clamp(2rem, 5vw, 3.5rem);
    }
}

.footer-heading {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-address {
    font-style: normal;
    color: rgba(244, 247, 240, 0.82);
    font-weight: 300;
    line-height: 1.8;
}

.footer-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contacts a {
    color: rgba(244, 247, 240, 0.88);
    font-weight: 300;
}

.footer-contacts a:hover {
    color: var(--accent-hover);
}

.footer-hours {
    margin: 0;
    color: rgba(244, 247, 240, 0.82);
    font-weight: 300;
    line-height: 1.8;
}

.map-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    border: 1px solid rgba(244, 247, 240, 0.2);
    overflow: hidden;
    box-sizing: border-box;
}

.map-embed {
    width: 100%;
    height: 320px;
    display: block;
    background: var(--brand-palm);
}

@media (min-width: 768px) {
    .map-embed {
        height: 400px;
    }
}

.footer-copy {
    text-align: center;
    margin: 2.5rem -1.25rem 0;
    padding: 1.5rem 1.25rem 2rem;
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    background: var(--brand-palm);
}

@media (min-width: 768px) {
    .footer-copy {
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ---------- Scroll animations ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-from-left {
    transform: translateX(-40px);
}

.animate-from-left.visible {
    transform: translateX(0);
}

.animate-from-right {
    transform: translateX(40px);
}

.animate-from-right.visible {
    transform: translateX(0);
}

.gallery-item.animate-on-scroll {
    transition-delay: 0s;
}

.gallery-item.animate-on-scroll.visible {
    transition-delay: inherit;
}

.gallery-item:nth-child(1).animate-on-scroll {
    transition-delay: 0.05s;
}
.gallery-item:nth-child(2).animate-on-scroll {
    transition-delay: 0.1s;
}
.gallery-item:nth-child(3).animate-on-scroll {
    transition-delay: 0.15s;
}
.gallery-item:nth-child(4).animate-on-scroll {
    transition-delay: 0.2s;
}
.gallery-item:nth-child(5).animate-on-scroll {
    transition-delay: 0.25s;
}
.gallery-item:nth-child(6).animate-on-scroll {
    transition-delay: 0.3s;
}
.gallery-item:nth-child(7).animate-on-scroll {
    transition-delay: 0.35s;
}
.gallery-item:nth-child(8).animate-on-scroll {
    transition-delay: 0.4s;
}

/* 9+ — появляются после View more; одинаковая задержка, чтобы не раздувать CSS */
.gallery-item:nth-child(n + 9).animate-on-scroll {
    transition-delay: 0.45s;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: grid;
    place-items: center;
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right))
        max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
}

.lightbox[hidden] {
    display: none !important;
}

/* Вертикальный кадр 9:16 на всю высоту экрана (как полноэкранные вертикальные кадры) */
.lightbox-stage {
    box-sizing: border-box;
    height: min(100dvh, 100vh);
    width: min(100vw, calc(min(100dvh, 100vh) * 9 / 16));
    max-width: 100vw;
    max-height: min(100dvh, 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2001;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-on-dark);
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: border-color 0.3s, color 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
    .lightbox-prev {
        left: 0.35rem;
    }
    .lightbox-next {
        right: 0.35rem;
    }
}

/* ---------- Scroll to top ---------- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
