/* ============================================================================
   Публичный лендинг — «Современный городской бар с характером»
   ----------------------------------------------------------------------------
   Тёмная палитра (#121212) с золотистым акцентом (#D4A853). Заголовки —
   Literata, основной текст — Golos Text (надёжные fallback-стеки ниже).
   Принципы: выразительная типографика, воздух, тонкие разделители, минимум
   скруглений, без декоративных теней и лишних карточек. Публичный контур
   отделён от админки (см. admin.css).
   ========================================================================== */

:root {
    /* Палитра */
    --bg: #121212;
    --surface: #1A1A1A;
    --surface-2: #242424;
    --ink: #F5F0E6;
    --muted: #A39F96;
    --accent: #D4A853;
    --accent-strong: #B8903F;
    --line: #2A2A2A;
    --focus: #F0D9A0;

    /* Шрифты */
    --font-heading: 'Literata', Georgia, 'Times New Roman', serif;
    --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Метрика */
    --wrap: 1120px;
    --wrap-narrow: 760px;
    --gutter: clamp(20px, 5vw, 48px);
    --section-gap: clamp(56px, 9vw, 112px);
    --radius: 4px;
}

/* --- Основы ---------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body.site {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(16px, 0.35vw + 15px, 18px);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Доступность: переход к содержимому и «Наверх» ------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: #121212;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

.to-top {
    position: fixed;
    right: clamp(16px, 4vw, 32px);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(36, 36, 36, 0.92);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.to-top:hover,
.to-top:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.to-top[hidden] {
    display: none;
}

.to-top__icon {
    font-size: 1rem;
    line-height: 1;
}

/* --- Кнопки ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
    background: var(--accent);
    color: #121212;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--accent-strong);
}

.btn--outline {
    border-color: var(--accent);
    background: transparent;
    color: var(--accent);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--accent);
    color: #121212;
}

/* --- Шапка ----------------------------------------------------------------- */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header__brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--ink);
}

.site-header__phone {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
}

.site-header__phone:hover,
.site-header__phone:focus-visible {
    color: var(--accent);
}

.site-nav {
    border-top: 1px solid var(--line);
}

.site-nav__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px var(--gutter);
    display: flex;
    gap: 22px;
    overflow-x: auto;
}

.site-nav__link {
    flex: 0 0 auto;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--ink);
}

/* --- Первый экран (hero) --------------------------------------------------- */

.hero__frame {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(560px, 84vh, 800px);
    overflow: hidden;
    background: var(--surface);
}

.hero__img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0.12) 30%, rgba(18, 18, 18, 0.7) 70%, rgba(18, 18, 18, 0.97) 100%),
        linear-gradient(90deg, rgba(18, 18, 18, 0.88) 0%, rgba(18, 18, 18, 0.52) 54%, rgba(18, 18, 18, 0.1) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(44px, 6vw, 72px);
}

.hero__content-inner {
    max-width: 680px;
}

.hero__eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.hero__brand-rule {
    display: block;
    width: clamp(36px, 6vw, 72px);
    height: 1px;
    background: var(--accent);
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.4rem, 5.6vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    max-width: 16ch;
}

.hero__lead {
    color: var(--ink);
    opacity: 0.8;
    font-size: clamp(1.02rem, 0.5vw + 1rem, 1.22rem);
    line-height: 1.7;
    margin-top: 22px;
    max-width: 46ch;
}

.hero__actions {
    margin-top: 32px;
}

@media (max-width: 719px) {
    .hero__frame {
        min-height: clamp(520px, 78vh, 680px);
    }

    .hero__content {
        padding-top: 96px;
        padding-bottom: 40px;
    }

    .hero__title {
        font-size: clamp(2.25rem, 10vw, 3.1rem);
        max-width: 12ch;
    }
}

/* --- Секции ---------------------------------------------------------------- */

.section {
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--line);
}

.section__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section__inner--narrow {
    max-width: var(--wrap-narrow);
}

.section__head {
    margin-bottom: clamp(24px, 4vw, 44px);
}

.section__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section__eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.empty {
    color: var(--muted);
    font-size: 1rem;
}

/* --- Меню ------------------------------------------------------------------ */

.menu-group + .menu-group {
    margin-top: 44px;
}

.menu-group__title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.menu-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.menu-item__num {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.menu-item__name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.menu-item__badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 9px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    vertical-align: middle;
}

.menu-item__desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 8px;
    max-width: 62ch;
}

.menu-item__off {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.menu-item__price {
    text-align: right;
    white-space: nowrap;
}

.menu-item__amount {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.menu-item__note {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 3px;
}

.menu-item--off .menu-item__name,
.menu-item--off .menu-item__amount {
    color: var(--muted);
}

/* --- Афиша ----------------------------------------------------------------- */

.afisha-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.afisha-item {
    display: grid;
    gap: 12px 40px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

.afisha-item:last-child {
    border-bottom: 1px solid var(--line);
}

.afisha-item__date {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.afisha-item__time {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.afisha-item__day {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 5.5vw, 2.75rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.afisha-item__month {
    color: var(--muted);
    font-size: 1rem;
}

.afisha-item__meta {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;
}

.afisha-item__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    line-height: 1.25;
}

.afisha-item__desc {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-top: 10px;
    max-width: 62ch;
}

@media (min-width: 720px) {
    .afisha-item {
        grid-template-columns: 160px minmax(0, 1fr);
        align-items: start;
    }
}

/* --- О баре ---------------------------------------------------------------- */

.about__inner {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
}

.about__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    max-width: 16ch;
}

.about__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__lead {
    color: var(--ink);
    font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
    line-height: 1.65;
}

.about__paragraph {
    color: var(--muted);
    font-size: clamp(1rem, 0.4vw + 0.95rem, 1.1rem);
    line-height: 1.8;
}

@media (min-width: 900px) {
    .about__inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: clamp(48px, 7vw, 96px);
        align-items: start;
    }

    .about__body {
        border-left: 1px solid var(--line);
        padding-left: clamp(28px, 4vw, 56px);
    }
}

/* --- Контакты -------------------------------------------------------------- */

.contacts__lead {
    color: var(--muted);
    max-width: 56ch;
    margin-top: 14px;
    font-size: 1.02rem;
}

.contacts__grid {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
}

.contacts__group {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.contacts__group-title {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacts__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contacts__label {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.contacts__value {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.12rem;
    line-height: 1.4;
}

a.contacts__value:hover,
a.contacts__value:focus-visible {
    color: var(--accent);
}

.contacts__facts {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts__fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacts__fact + .contacts__fact {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.contacts__fact dt {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.contacts__fact dd {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.45;
}

.contacts__route {
    margin-top: 24px;
}

@media (min-width: 800px) {
    .contacts__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(40px, 6vw, 80px);
    }

    .contacts__grid--single {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
    }
}

/* --- Подвал ---------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: clamp(20px, 3.2vw, 34px) 0 calc(16px + env(safe-area-inset-bottom, 0px));
}

.site-footer__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer__columns {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

.site-footer__col {
    min-width: 0;
}

.site-footer__brand {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.site-footer__note {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 42ch;
    margin-top: 6px;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__nav-link {
    align-self: flex-start;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

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

.site-footer__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.site-footer__action {
    align-self: flex-start;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-footer__action:hover,
.site-footer__action:focus-visible {
    color: var(--accent-strong);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.site-footer__demo {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0;
}

.site-footer__copy {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0;
}

@media (min-width: 720px) {
    .site-footer__columns {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
        gap: clamp(24px, 5vw, 64px);
        align-items: start;
    }
}

@media (max-width: 719px) {
    .site-footer__columns {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px 24px;
    }

    .site-footer__col--brand {
        grid-column: 1 / -1;
    }
}

/* --- Мобильная панель быстрых действий ------------------------------------- */

.mobile-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: flex;
    gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 18, 18, 0.96);
    border-top: 1px solid var(--line);
    overflow-x: auto;
    backdrop-filter: blur(6px);
}

.mobile-panel__link,
.mobile-panel__toggle {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.mobile-panel__link:hover,
.mobile-panel__link:focus-visible,
.mobile-panel__toggle:hover,
.mobile-panel__toggle:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-panel__toggle[hidden] {
    display: none;
}

/* Нижний отступ страницы, чтобы панель не перекрывала подвал на узких экранах */
@media (max-width: 719px) {
    .site-footer {
        padding-bottom: 64px;
    }

    .to-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 720px) {
    .mobile-panel {
        display: none;
    }
}

/* --- Уважение к prefers-reduced-motion ------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
