/* ============================================================
   CRAFT · Bar & Grill — fresh design system
   Type: Playfair Display (display) + Inter (body)
   Palette: warm black + gold
   ============================================================ */

:root {
    --black:      #0c0a09;
    --black-2:    #14110f;
    --char:       #1c1917;
    --cream:      #f6f1e7;
    --cream-soft: #d9d2c5;
    --gold:       #d4af37;
    --gold-soft:  rgba(212, 175, 55, 0.5);
    --muted:      rgba(246, 241, 231, 0.62);
    --line:       rgba(246, 241, 231, 0.12);
    --maxw:       1240px;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

/* отступ под фиксированную шапку при переходе по якорям */
section[id] { scroll-margin-top: 72px; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- shared bits ---------- */
.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.1;
}

h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 15px 34px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}
.btn--sm { padding: 11px 22px; font-size: 0.9rem; }
.btn--gold { background: var(--gold); color: var(--char); border-color: var(--gold); }
.btn--gold:hover { background: transparent; color: var(--gold); }
.btn--outline { background: transparent; color: var(--cream); border-color: rgba(246,241,231,0.4); }
.btn--outline:hover { border-color: var(--cream); background: var(--cream); color: var(--char); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cream); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   AGE GATE
   ============================================================ */
.agegate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 6, 5, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.agegate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.agegate__card {
    background: var(--char);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 48px 44px;
    max-width: 420px;
    text-align: center;
}
.agegate__logo { width: 120px; margin: 0 auto 26px; }
.agegate__title { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 10px; }
.agegate__sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.agegate__actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid transparent;
}
.header.is-solid {
    background: rgba(12, 10, 9, 0.85);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}
.header__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: padding 0.4s ease;
}
.header.is-solid .header__inner { padding: 15px 32px; }
.header__logo img { height: 30px; width: auto; }
.header__nav { display: flex; gap: 34px; margin-left: auto; }
.header__nav a {
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    color: var(--cream);
    position: relative;
    padding: 4px 0;
    transition: color 0.25s ease;
}
.header__nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}
.header__nav a:hover { color: var(--gold); }
.header__nav a:hover::after { width: 100%; }
.header__side { display: flex; align-items: center; gap: 22px; }
.header__phone { font-size: 0.92rem; color: var(--cream); transition: color 0.25s; }
.header__phone:hover { color: var(--gold); }

.header__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.header__burger span { width: 24px; height: 2px; background: var(--cream); transition: 0.3s var(--ease); }
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0 32px;
    background: rgba(12, 10, 9, 0.97);
    backdrop-filter: blur(12px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
}
.header__mobile.is-open { max-height: 420px; padding: 12px 32px 28px; }
.header__mobile a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.header__mobile a.btn { border: 1px solid var(--gold); margin-top: 16px; justify-content: center; }
.header__mobile-phone { color: var(--gold) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,10,9,0.55), rgba(12,10,9,0.4) 45%, rgba(12,10,9,0.92)),
                url(../img/exterior-hero.jpg) center/cover no-repeat;
    transform: scale(1.08);
    animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__inner {
    position: relative;
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
    padding: 120px 32px 80px;
}
.hero__title {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 600;
    margin-bottom: 26px;
}
.hero__title em { color: var(--gold); font-style: italic; }
.hero__lead {
    max-width: 480px;
    color: var(--cream-soft);
    font-size: 1.08rem;
    font-weight: 300;
    margin-bottom: 38px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 44px;
    border: 1px solid var(--gold-soft);
    border-radius: 14px;
}
.hero__scroll span {
    position: absolute;
    top: 8px; left: 50%;
    width: 3px; height: 8px;
    margin-left: -1.5px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ============================================================
   FESTIVAL
   ============================================================ */
.festival {
    background:
        linear-gradient(180deg, rgba(20,17,15,0.92), rgba(12,10,9,0.96)),
        url(../img/gallery-2.jpg) center/cover no-repeat fixed;
    border-block: 1px solid var(--gold-soft);
    padding: 110px 32px;
    text-align: center;
}
.festival__inner { max-width: 720px; margin: 0 auto; }
.festival__date {
    display: inline-block;
    color: var(--gold);
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 26px;
}
.festival__name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 30px;
}
.festival__photo {
    width: min(640px, 100%);
    margin: 0 auto 34px;
    border-radius: 10px;
    border: 1px solid var(--gold-soft);
}
.festival__lead {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    line-height: 1.45;
    margin-bottom: 30px;
}
.festival__speakers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 32px;
}
.festival__speakers-title {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.festival__speakers-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
}
.festival__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 42px;
}
.festival__badges li {
    border: 1px solid var(--gold-soft);
    background: rgba(246,241,231,0.04);
    border-radius: 40px;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 300;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 120px 32px; }
.about__grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about__media { position: relative; }
.about__media img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--gold-soft);
}
.about__tag {
    position: absolute;
    bottom: 22px; left: 22px;
    background: var(--gold);
    color: var(--char);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 4px;
}
.about__text h2 { margin-bottom: 26px; }
.about__text p { color: var(--muted); margin-bottom: 18px; font-weight: 300; font-size: 1.05rem; }
.about__text p:last-child { margin-bottom: 0; }

/* ============================================================
   CONCEPT CARDS
   ============================================================ */
.concept { padding: 0 32px 120px; }
.concept__head { max-width: var(--maxw); margin: 0 auto 50px; text-align: center; }
.concept__grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.concept__card {
    background: var(--black-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 44px 36px;
    transition: border-color 0.35s ease, transform 0.35s var(--ease);
}
.concept__card:hover { border-color: var(--gold-soft); transform: translateY(-6px); }
.concept__num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--gold);
    display: block;
    margin-bottom: 18px;
}
.concept__card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.concept__card p { color: var(--muted); font-weight: 300; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { padding: 0 32px 120px; }
.gallery__head { text-align: center; margin-bottom: 50px; }
.gallery__stage {
    position: relative;
    max-width: 1080px;
    height: 600px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gold-soft);
}
.gallery__track { position: relative; width: 100%; height: 100%; }
.gallery__slide {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1s var(--ease), transform 6s ease-out;
}
.gallery__slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gold-soft);
    background: rgba(12,10,9,0.55);
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.25s ease;
}
.gallery__arrow:hover { background: var(--gold); color: var(--char); }
.gallery__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gallery__arrow--prev { left: 20px; }
.gallery__arrow--next { right: 20px; }
.gallery__dots {
    position: absolute;
    bottom: 20px; left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}
.gallery__dots button {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}
.gallery__dots button.is-active { background: var(--gold); transform: scale(1.15); }

/* ============================================================
   VISIT
   ============================================================ */
.visit {
    background: var(--black-2);
    border-top: 1px solid var(--line);
    padding: 110px 32px;
}
.visit__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.visit__text h2 { margin-bottom: 36px; }
.visit__info { margin-bottom: 40px; }
.visit__info li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.visit__info li:last-child { border-bottom: 1px solid var(--line); }
.visit__label { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.visit__info a, .visit__info span:not(.visit__label) { font-size: 1.15rem; transition: color 0.25s; }
.visit__hours { line-height: 1.9; }
.visit__info a:hover { color: var(--gold); }
.visit__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.visit__media img { width: 100%; border-radius: 8px; border: 1px solid var(--gold-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); padding: 60px 32px; }
.footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.footer__logo { height: 34px; width: auto; }
.footer__socials { display: flex; gap: 18px; }
.footer__socials a {
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.footer__socials a:hover { border-color: var(--gold); transform: translateY(-3px); }
.footer__socials img { width: 18px; height: 18px; }
.footer__copy { color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .hero__bg { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .header__nav, .header__side { display: none; }
    .header__burger { display: flex; }
    .header__mobile { display: flex; }

    .about__grid, .visit__inner { grid-template-columns: 1fr; gap: 40px; }
    .about__media { order: -1; }
    .concept__grid { grid-template-columns: 1fr; }
    .gallery__stage { height: 380px; }
}

@media (max-width: 560px) {
    .header__inner { padding: 16px 20px; }
    .header.is-solid .header__inner { padding: 12px 20px; }
    .hero__inner { padding: 110px 20px 70px; }
    .festival, .about, .visit { padding-left: 20px; padding-right: 20px; }
    .concept, .gallery { padding-left: 20px; padding-right: 20px; }
    .about, .concept { padding-bottom: 80px; }
    .festival { padding-top: 80px; padding-bottom: 80px; }
    .festival { background-attachment: scroll; }
    .gallery__stage { height: 300px; }
    .gallery__arrow { width: 38px; height: 38px; }
    .hero__actions, .visit__actions { width: 100%; }
    .hero__actions .btn, .visit__actions .btn { flex: 1; }
}
