/* =====================================================================
   Raymond — полный CSS
   Тёмная тема «Мокрый асфальт + Золото + Медь»
   Шрифт Inter — современный и читабельный
   ===================================================================== */

/* =====================================================================
   0. ПОДКЛЮЧЕНИЕ ШРИФТА INTER
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* =====================================================================
   1. ПЕРЕМЕННЫЕ — ПАЛИТРА
   ===================================================================== */
:root {
    --bg:          #1a1c1e;
    --bg-2:        #212427;
    --bg-3:        #24272a;
    --bg-4:        #2a2e32;
    --bg-hover:    #2e3236;

    --text:        #e8eaed;
    --text-dim:    #9aa0a6;
    --text-mute:   #6b7075;
    --paper:       #f1f3f4;

    --accent:      #c9a86a;
    --accent-2:    #dcbb7d;
    --accent-dk:   #a88b52;
    --accent-bg:   rgba(201, 168, 106, 0.12);

    --copper:      #b87333;
    --copper-2:    #d4884a;
    --copper-dk:   #8f5828;

    --wine:        #b87333;
    --wine-2:      #d4884a;

    --border:      #3c4043;
    --border-2:    #4a4e52;

    --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow:      0 6px 18px rgba(0, 0, 0, 0.5);
    --shadow-lg:   0 14px 36px rgba(0, 0, 0, 0.6);

    --bg-card:     #24272a;

    --font-main:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-head:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --glow-gold:   0 0 12px rgba(201, 168, 106, 0.5);
    --glow-copper: 0 0 12px rgba(184, 115, 51, 0.5);

    /* Тёмный текст на золоте (для активных элементов) */
    --text-on-gold: #1a1c1e;
    --glow-white:   0 0 1px rgba(255, 255, 255, 0.6), 0 0 4px rgba(255, 255, 255, 0.25);
}

/* =====================================================================
   2. БАЗОВЫЕ СТИЛИ
   ===================================================================== */
html, body, .app, .main, .content, .content__body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }

p, li, dd, dt, td, th, label, blockquote {
    color: var(--text);
    font-family: var(--font-main);
}

small, .muted { color: var(--text-mute); }

a {
    color: var(--accent);
    transition: color 0.2s ease;
    font-weight: 500;
    text-decoration: none;
}
a:hover { color: var(--accent-2); }

hr {
    background: var(--border) !important;
    border-color: var(--border) !important;
    height: 1px;
}

/* =====================================================================
   3. САЙДБАР — ПРИНУДИТЕЛЬНОЕ ВЫРАВНИВАНИЕ ПО ЛЕВОМУ КРАЮ
   (фиксит центрирование на /sobytiya/ из-за инлайн-стиля a { text-align: center })
   ===================================================================== */
.sidebar,
.sidebar__nav,
.sidebar__nav ul,
.sidebar__nav ul.menu,
.sidebar__nav ul.menu > li,
.sidebar__nav ul.menu ul,
.sidebar__nav ul.menu ul li {
    text-align: left !important;
}

.sidebar__nav ul.menu > li > a,
.sidebar__nav ul.menu ul li > a {
    text-align: left !important;
    display: block !important;
    justify-content: flex-start !important;
}

.sidebar__nav {
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

/* =====================================================================
   4. САЙДБАР + ЛОГОТИП С ВРАЩЕНИЕМ R (кольцо статичное)
   ===================================================================== */
.sidebar {
    background: var(--bg-2) !important;
    border-right: 1px solid var(--border);
}

.sidebar__header {
    padding: 18px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.sidebar__header .logo,
.logo--text {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    padding: 6px 0;
    line-height: 1;
    min-width: 0;
    overflow: hidden;
}

.logo__word {
    font-family: 'Playfair Display SC', 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--accent);          /* ← золото, как у R */
    line-height: 1;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.sidebar__header .logo:hover .logo__word {
    color: var(--accent-2);        /* ← при наведении — светлое золото */
}

.logo__letter-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55em;
    height: 1.55em;
    margin: 0 2px 0 0;
    vertical-align: middle;
    flex-shrink: 0;
    perspective: 400px;
}

.logo__letter {
    position: relative;
    z-index: 2;
    display: inline-block;
    color: var(--accent);
    font-size: 1.05em;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 10px rgba(201, 168, 106, 0.5), 0 0 20px rgba(184, 115, 51, 0.25);
    transform-style: preserve-3d;
    will-change: transform;
    animation: logo-letter-spin 5s linear infinite;
}

@keyframes logo-letter-spin {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.logo__letter--plain {
    color: inherit;
    font-weight: 800;
    font-size: 1em;
    font-style: normal;
    text-shadow: inherit;
    margin-left: 0.3em;
    animation: none;
    transform: none;
}

.logo__letter-ring {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--copper);
    border-bottom-color: var(--accent-dk);
    border-left-color: var(--copper-dk);
    border-radius: 50%;
    box-shadow:
        0 0 10px rgba(201, 168, 106, 0.4),
        inset 0 0 6px rgba(184, 115, 51, 0.25);
}

.sidebar__header .logo:hover .logo__letter-ring {
    box-shadow:
        0 0 16px rgba(201, 168, 106, 0.7),
        0 0 26px rgba(184, 115, 51, 0.4),
        inset 0 0 8px rgba(184, 115, 51, 0.4);
}

.sidebar__header .logo:hover .logo__letter {
    color: var(--accent-2);
    text-shadow:
        0 0 14px rgba(220, 187, 125, 0.9),
        0 0 28px rgba(184, 115, 51, 0.5);
}

@media (max-width: 768px) {
    .logo__word {
        font-size: 17px;
        letter-spacing: -0.3px;
    }
    .logo__letter-wrap {
        width: 1.4em;
        height: 1.4em;
    }
}

/* Меню */
.sidebar__nav {
    padding: 16px 14px;
}

.sidebar__nav ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar__nav ul.menu > li {
    margin-bottom: 4px;
}

.sidebar__nav ul.menu > li > a {
    display: block;
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.sidebar__nav ul.menu > li > a:hover {
    background: var(--bg-hover);
    color: var(--text);
    padding-left: 22px;
}

/* Активный пункт меню — тёмный текст на золоте + белая окантовка */
.sidebar__nav ul.menu > li.active > a {
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(201, 168, 106, 0.35);
}

.sidebar__nav ul.menu ul {
    list-style: none;
    margin: 4px 0 6px 0;
    padding: 0 0 0 18px;
    border-left: 2px solid var(--border);
}

.sidebar__nav ul.menu ul li > a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--text-mute);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.sidebar__nav ul.menu ul li > a:hover {
    color: var(--text);
    background: var(--bg-hover);
}

/* Футер */
.sidebar__footer {
    padding: 12px 14px 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--border);
}

.rm-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 0;
    margin: 0;
    text-align: center;
    font-family: inherit;
}

.rm-footer__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.rm-footer__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-mute);
    text-transform: uppercase;
    margin: 0 0 4px;
}

.rm-footer__hours {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    max-width: 200px;
}

.rm-footer__hours li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dim);
    margin: 0;
    padding: 0;
}

.rm-footer__day { font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.rm-footer__time { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rm-footer__phone {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--accent);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.rm-footer__phone:hover { color: var(--accent-2); text-shadow: var(--glow-gold); }

.rm-footer__block--muted {
    padding-top: 10px;
    margin-top: 4px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-top: 1px solid var(--border);
}

.rm-footer__copyright {
    font-size: 11px;
    letter-spacing: 0.3px;
    color: var(--text-mute);
    text-decoration: none;
    transition: color 0.25s ease;
}

.rm-footer__copyright:hover { color: var(--accent); }

@media (max-width: 768px) {
    .rm-footer { gap: 8px; padding-top: 8px; }
    .rm-footer__hours li { font-size: 13px; }
    .rm-footer__phone { font-size: 15px; }
}

/* =====================================================================
   5. TOPBAR
   ===================================================================== */
.topbar {
    background: var(--bg-2) !important;
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.topbar__word {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.3s ease;
}

.topbar__letter {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    margin-right: 1px;
    text-shadow: 0 0 8px rgba(201, 168, 106, 0.4);
}

@media (max-width: 768px) {
    .topbar__word { font-size: 17px; }
    .topbar__title { min-height: 30px; }
}

.a11y-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 0;
    background: var(--bg-3);
    color: var(--accent);
    border: 1px solid var(--border-2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    position: relative;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
}

.a11y-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 106, 0.3);
}

.a11y-toggle.is-active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(201, 168, 106, 0.5);
}

.a11y-toggle__icon {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease;
}

.a11y-toggle:hover .a11y-toggle__icon { transform: scale(1.1); }
.a11y-toggle.is-active .a11y-toggle__icon { color: var(--text-on-gold); }

.a11y-toggle::after {
    content: attr(title);
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    padding: 6px 10px;
    background: var(--text);
    color: var(--bg);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
    letter-spacing: 0.3px;
}

.a11y-toggle:hover::after { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .a11y-toggle { width: 34px; height: 34px; }
    .a11y-toggle__icon { font-size: 16px; }
    .a11y-toggle::after { display: none; }
}

/* =====================================================================
   6. ГЛАВНАЯ — БАННЕР
   ===================================================================== */
.home-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 60px 30px 30px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

.home-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #333;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.home-banner:hover .home-banner__bg { transform: scale(1.08); }

.home-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(26, 28, 30, 0.7) 0%,
        rgba(26, 28, 30, 0.5) 50%,
        rgba(26, 28, 30, 0.95) 100%);
    z-index: 1;
}

.home-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: homeFadeIn 0.8s ease;
    padding-bottom: 30px;
}

@keyframes homeFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-banner__title {
    font-family: var(--font-head);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 14px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                 0 0 30px rgba(201, 168, 106, 0.4);
}

.home-banner__subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #e8eaed;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.home-banner__links {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.home-banner__link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 130px;
    max-width: 170px;
    padding: 16px 22px;
    min-height: 96px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.home-banner__link:hover {
    background: linear-gradient(135deg, rgba(201, 168, 106, 0.25) 0%, rgba(184, 115, 51, 0.25) 100%);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 168, 106, 0.3);
}

.home-banner__link-icon {
    font-size: 24px;
    line-height: 1;
    filter: grayscale(0.4) brightness(1.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.home-banner__link:hover .home-banner__link-icon {
    transform: scale(1.15);
    filter: grayscale(0) brightness(1.2);
}

.home-banner__link-text {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .home-banner { min-height: 460px; padding: 50px 20px 24px; margin-bottom: 14px; }
    .home-banner__title { font-size: 42px; letter-spacing: -0.02em; }
    .home-banner__subtitle { font-size: 16px; }
    .home-banner__link { min-width: 110px; padding: 14px 18px; min-height: 86px; }
    .home-banner__link-icon { font-size: 22px; }
    .home-banner__link-text { font-size: 13px; }
}

@media (max-width: 600px) {
    .home-banner { min-height: 400px; padding: 40px 14px 20px; margin-bottom: 10px; }
    .home-banner__title { font-size: 28px; letter-spacing: -0.01em; }
    .home-banner__subtitle { font-size: 13px; margin-bottom: 14px; }
    .home-banner__content { padding-bottom: 20px; }
    .home-banner__links { gap: 8px; padding: 0 4px; }
    .home-banner__link { flex: 1 1 0; min-width: 0; max-width: none; padding: 10px 6px; min-height: 76px; gap: 5px; }
    .home-banner__link-icon { font-size: 20px; }
    .home-banner__link-text { font-size: 11px; letter-spacing: 0; white-space: normal; word-break: break-word; }
}

@media (max-width: 380px) {
    .home-banner__title { font-size: 24px; }
    .home-banner__links { gap: 6px; }
    .home-banner__link { padding: 8px 4px; min-height: 68px; }
    .home-banner__link-icon { font-size: 18px; }
    .home-banner__link-text { font-size: 10px; }
}

.home-mobile-footer {
    display: block;
    margin: 0 !important;
    padding: 14px 16px 12px !important;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 901px) { .home-mobile-footer { display: none !important; } }

@media (max-width: 900px) {
    .home-mobile-footer .rm-footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }
    .home-mobile-footer .rm-footer__block { flex: 1 1 auto; min-width: 130px; }
    .home-mobile-footer .rm-footer__block--muted { flex-basis: 100%; text-align: center; padding-top: 10px; margin-top: 2px; }
    .home-mobile-footer .rm-footer__hours { max-width: 100%; width: 100%; }
    .home-mobile-footer .rm-footer__phone { font-size: 16px; display: block; padding: 6px 0; }
}

@media (max-width: 500px) {
    .home-mobile-footer { padding: 12px 14px 10px !important; margin: 0 0 8px !important; }
    .home-mobile-footer .rm-footer { flex-direction: column; text-align: center; gap: 12px; }
    .home-mobile-footer .rm-footer__block { min-width: 100%; }
    .home-mobile-footer .rm-footer__hours { max-width: 220px; margin: 0 auto; }
}

.home-mobile-footer + hr {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    background: var(--border);
}

/* =====================================================================
   7. ФОРМЫ
   ===================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="password"],
select,
textarea {
    background: var(--bg) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-2) !important;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.2) !important;
    outline: none;
}

input::placeholder, textarea::placeholder { color: var(--text-mute) !important; }

input[readonly], select[readonly], textarea[readonly] {
    background: var(--bg-2) !important;
    color: var(--text-dim) !important;
}

label { color: var(--text-dim); font-size: 14px; font-weight: 500; }

input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }

select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a86a' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px !important;
}

/* =====================================================================
   8. КНОПКИ
   ===================================================================== */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(201, 168, 106, 0.3);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.btn:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--copper-2) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 168, 106, 0.5), 0 0 20px rgba(184, 115, 51, 0.3);
}

button:active, .btn:active { transform: translateY(0); }
button:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--ghost {
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--text-dim);
    box-shadow: none;
    text-shadow: none;
}

.btn--ghost:hover {
    background: var(--bg-hover);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(201, 168, 106, 0.2);
    text-shadow: none;
}

.btn--wine {
    background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dk) 100%);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn--wine:hover {
    background: linear-gradient(135deg, var(--copper-2) 0%, var(--copper) 100%);
    color: #ffffff;
}

.btn--add {
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
}

.btn--add:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--copper-2) 100%);
}

/* =====================================================================
   9. КАРТОЧКИ, БЛОКИ, DETAILS
   ===================================================================== */
.card, .module {
    background: var(--bg-3) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    color: var(--text);
}

.rules-block {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.rules-block[open] {
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.rules-block__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.25s ease, color 0.25s ease;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
}

.rules-block__summary::-webkit-details-marker { display: none; }
.rules-block__summary::marker { display: none; }

.rules-block__summary:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

/* Открытый блок — тёмный текст на золоте + белая окантовка */
.rules-block[open] > .rules-block__summary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.rules-block__arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-right: 4px;
    margin-top: -4px;
    border-color: currentColor;
}

.rules-block[open] > .rules-block__summary .rules-block__arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
    border-color: var(--text-on-gold);
}

.rules-block__content {
    padding: 20px 22px 24px;
    animation: rulesFadeIn 0.35s ease;
    background: var(--bg-3);
}

@keyframes rulesFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.rules-block__summary[id] { scroll-margin-top: 90px; }

@media (max-width: 768px) {
    html { scroll-padding-top: 130px; }
    .rules-block__summary { padding: 14px 16px; font-size: 16px; }
    .rules-block__content { padding: 14px 16px 18px; }
    .rules-block__summary[id] { scroll-margin-top: 130px; }
}

/* =====================================================================
   10. ЯКОРНОЕ МЕНЮ
   ===================================================================== */
.rules-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    margin: 0 0 24px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rules-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.rules-nav__link:hover {
    color: var(--accent);
    background: linear-gradient(135deg,
        rgba(201, 168, 106, 0.15) 0%,
        rgba(184, 115, 51, 0.15) 100%);
    border-color: var(--accent);
}

.rules-nav__link.is-active {
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(201, 168, 106, 0.4);
}

.rules-nav:not(:hover) .rules-nav__link:first-child:not(.is-active) {
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    border-color: var(--accent);
    font-weight: 700;
}

@media (max-width: 768px) {
    .rules-nav { padding: 10px 8px; gap: 4px; margin-bottom: 18px; }
    .rules-nav__link { padding: 6px 12px; font-size: 12px; }
}

/* =====================================================================
   11. БЛЮДА
   ===================================================================== */
.dish--dots {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    text-align: left;
    overflow: hidden;
}
.dish--dots:last-child { border-bottom: none; }

.dish--dots .dish__line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.dish--dots .dish__name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-main);
}

.dish--dots .dish__dots {
    flex: 1 1 auto;
    min-width: 10px;
    border-bottom: 2px dotted var(--border-2);
    transform: translateY(-4px);
    margin: 0 6px;
}

.dish--dots .dish__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.dish--dots .dish__desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 2px;
}

.dish--dots .dish__meta {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 3px;
}

.dish--dots .text-error,
.dish--dots .text-warning {
    display: block;
    font-size: 13px;
    margin-top: 3px;
}
.dish--dots .text-error   { color: #ef5350; }
.dish--dots .text-warning { color: #ffb74d; }
.dish--dots .btn--add { margin-top: 6px; }

.dish--preview {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    overflow: hidden;
}
.dish--preview:last-child { border-bottom: none; }

.dish--preview .dish__thumb {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-hover);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
}
.dish--preview a.dish__thumb { cursor: zoom-in; }
.dish--preview a.dish__thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.dish--preview .dish__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
    font-size: 24px;
    cursor: default;
}

.dish--preview .dish__body { flex: 1; min-width: 0; overflow: hidden; }

.dish--preview .dish__line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.dish--preview .dish__name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-main);
}

.dish--preview .dish__dots {
    flex: 1 1 auto;
    min-width: 10px;
    border-bottom: 2px dotted var(--border-2);
    transform: translateY(-4px);
    margin: 0 6px;
}

.dish--preview .dish__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.dish--preview .dish__desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 6px;
}
.dish--preview .dish__meta {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
    color: var(--text-mute);
    margin-bottom: 6px;
}
.dish--preview .text-error,
.dish--preview .text-warning {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}
.dish--preview .text-error   { color: #ef5350; }
.dish--preview .text-warning { color: #ffb74d; }
.dish--preview .btn--add { margin-top: 2px; }

@media (max-width: 600px) {
    .dish--preview { gap: 12px; }
    .dish--preview .dish__thumb { width: 70px; height: 70px; }
    .dish--preview .dish__name { font-size: 15px; }
    .dish--preview .dish__price { font-size: 15px; }
}

@media (max-width: 768px) {
    .dish--dots .dish__name,
    .dish--preview .dish__name { font-size: 15px; }
    .dish--dots .dish__price,
    .dish--preview .dish__price { font-size: 15px; }
}

/* =====================================================================
   12. ТАБЫ И АККОРДЕОН МЕНЮ
   ===================================================================== */
.menu-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--bg-3);
    color: #8a7f6e;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.menu-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: linear-gradient(135deg,
        rgba(201, 168, 106, 0.15) 0%,
        rgba(184, 115, 51, 0.15) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 16px rgba(201, 168, 106, 0.2);
}

/* Активный таб — тёмный текст на золоте + белая окантовка */
.menu-tab.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    border-color: var(--accent);
    box-shadow:
        0 4px 14px rgba(201, 168, 106, 0.45),
        0 0 22px rgba(184, 115, 51, 0.3);
    font-weight: 700;
}

.menu-tab.active .menu-tab__icon {
    opacity: 1;
}

.menu-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: currentColor;
    flex-shrink: 0;
    opacity: 0.85;
}

.acc-item {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.acc-item:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg,
        rgba(201, 168, 106, 0.06) 0%,
        rgba(184, 115, 51, 0.06) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 16px rgba(201, 168, 106, 0.15);
}

.acc-item.open {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(201, 168, 106, 0.2);
}

.acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    outline: none;
}

.acc-header:hover {
    background: transparent;
    color: var(--accent);
}

/* Открытая категория — тёмный текст на золоте + белая окантовка */
.acc-item.open .acc-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    font-weight: 700;
}

/* =====================================================================
   13. ГАЛЕРЕЯ
   ===================================================================== */
.gallery-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(201, 168, 106, 0.2);
}

.gallery-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-hover);
}

.gallery-card__body { padding: 14px 16px 18px; }

.gallery-card__title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    transition: color 0.2s;
}

.gallery-card:hover .gallery-card__title { color: var(--accent); }
.gallery-card__date { font-size: 13px; color: var(--text-mute); }
.gallery-card__desc { font-size: 14px; color: var(--text-dim); margin-top: 4px; }

/* =====================================================================
   14. РАЗДЕЛЫ
   ===================================================================== */
.rules-page,
.discount-page,
.rezerv-page,
.delivery-page,
.contacts-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 0 40px;
    font-family: var(--font-main);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

.rules-page__title,
.discount-page__title,
.rezerv-page__title,
.delivery-page__title,
.contacts-page__title {
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .rules-page,
    .discount-page,
    .rezerv-page,
    .delivery-page,
    .contacts-page { font-size: 14px; padding: 0 4px 30px; }

    .rules-page__title,
    .discount-page__title,
    .rezerv-page__title,
    .delivery-page__title,
    .contacts-page__title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
}

.rules-page__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.rules-page__list > li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.rules-page__list > li:last-child { border-bottom: none; }

.rules-page__list > li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(201, 168, 106, 0.6);
}

.rules-page__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dim);
    margin: 0 0 12px;
}

.rules-page__text strong { color: var(--text); }

.rules-page a { color: var(--accent); font-weight: 600; }
.rules-page a:hover { color: var(--accent-2); }

.toggle-header a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 6px;
}
.toggle-header a:hover { background: var(--bg-hover); border-color: var(--accent); }

.toggle-header.active a {
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    border-color: var(--accent);
    font-weight: 700;
}

.toggle-panel { padding: 0 4px; }
.toggle-panel.no-height { display: none; }

/* =====================================================================
   15. ДИСКОНТ
   ===================================================================== */
.discount-page__intro,
.discount-page__note {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 20px;
}

.discount-page__intro p { margin: 0 0 12px; }
.discount-page__intro p:last-child { margin-bottom: 0; }

.discount-page__logo { text-align: center; margin: 20px 0 24px; }
.discount-page__logo img { max-width: 100%; height: auto; display: inline-block; }

.discount-page__note {
    background: var(--accent-bg);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    font-size: 14px;
}

.discount-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

@media (max-width: 600px) { .discount-cards { grid-template-columns: 1fr; } }

.discount-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.25s ease;
}

.discount-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(201, 168, 106, 0.2);
}

.discount-card--featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--bg-3) 0%, rgba(184, 115, 51, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(201, 168, 106, 0.15);
}

.discount-card__percent {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 12px rgba(201, 168, 106, 0.4);
}

.discount-card__price {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.discount-form {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
}

.discount-form__title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    margin: 0 0 6px;
    text-shadow: 0 0 12px rgba(201, 168, 106, 0.3);
}

.discount-form__subtitle {
    font-size: 14px;
    color: var(--text-mute);
    text-align: center;
    margin: 0 0 20px;
}

.discount-form__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.discount-form__label { display: block; margin: 0; }
.discount-form__label span {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-weight: 500;
}

.discount-form__submit {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.discount-form__submit:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--copper-2) 100%);
    box-shadow: 0 6px 18px rgba(201, 168, 106, 0.4);
}

.discount-result {
    max-width: 520px;
    margin: 40px auto;
    padding: 44px 30px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.discount-result__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.discount-result--ok .discount-result__icon {
    background: rgba(0, 166, 80, 0.15);
    color: #4caf50;
    border: 2px solid rgba(0, 166, 80, 0.4);
}

.discount-result--error .discount-result__icon {
    background: rgba(201, 168, 106, 0.15);
    color: var(--accent);
    border: 2px solid rgba(201, 168, 106, 0.4);
}

.discount-result__title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.discount-result__text {
    font-size: 15px;
    color: var(--text-dim);
    margin: 0 0 28px;
}

.discount-balance {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 0 40px;
}

.discount-balance__title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.discount-balance__card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.discount-balance__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
}

.discount-balance__row:last-child { border-bottom: none; }

.discount-balance__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    flex-shrink: 0;
}

.discount-balance__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.discount-balance__value--accent { color: var(--accent); font-size: 17px; text-shadow: 0 0 8px rgba(201, 168, 106, 0.3); }
.discount-balance__value.is-active { color: #4caf50; }
.discount-balance__value.is-blocked { color: var(--accent); }

.discount-balance__topup {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
}

.discount-balance__topup-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    text-align: center;
}

/* =====================================================================
   16. РЕЗЕРВ
   ===================================================================== */
.rezerv-page__form-wrap,
.rezerv-page__memo {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 24px;
}

.rezerv-page__memo {
    border-left: 4px solid var(--accent);
    padding: 22px 26px;
}

.rezerv-page__memo-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.rezerv-page__memo-title:not(:first-child) { margin-top: 20px; }

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

.rezerv-page__list li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.rezerv-page__list li:last-child { border-bottom: none; }
.rezerv-page__list li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(201, 168, 106, 0.6);
}
.rezerv-page__list strong { color: var(--text); }

.rezerv-page__outro {
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    padding: 16px;
    background: var(--accent-bg);
    border-radius: 8px;
}

.rezerv-page__outro a { color: var(--accent); font-weight: 600; }

.rezerv-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rezerv-form__title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    margin: 0 0 8px;
    text-shadow: 0 0 12px rgba(201, 168, 106, 0.3);
}

.rezerv-form__section {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin: 12px 0 4px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}

.rezerv-form__field { display: flex; flex-direction: column; gap: 6px; }
.rezerv-form__field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    margin: 0;
}

.rezerv-form__agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--accent-bg);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-dim);
    cursor: pointer;
    margin: 0;
}

.rezerv-form__agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.rezerv-form__agree a { color: var(--accent); font-weight: 600; }
.rezerv-form__submit-wrap { text-align: center; margin-top: 8px; }

.reserve-result {
    max-width: 520px;
    margin: 30px auto;
    padding: 40px 30px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    color: var(--text);
}

.reserve-result--ok    { border-top: 4px solid #4caf50; }
.reserve-result--error { border-top: 4px solid var(--accent); }
.reserve-result--info  { border-top: 4px solid var(--accent); }
.reserve-result--warning { border-top: 4px solid #ffb74d; }

.reserve-result__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 18px;
}

.reserve-result--ok .reserve-result__icon {
    background: rgba(0, 166, 80, 0.15);
    color: #4caf50;
    border: 2px solid rgba(0, 166, 80, 0.4);
}
.reserve-result--error .reserve-result__icon {
    background: rgba(201, 168, 106, 0.15);
    color: var(--accent);
    border: 2px solid rgba(201, 168, 106, 0.4);
}
.reserve-result--info .reserve-result__icon {
    background: var(--accent-bg);
    color: var(--accent);
    border: 2px solid var(--accent);
}
.reserve-result--warning .reserve-result__icon {
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    border: 2px solid rgba(255, 152, 0, 0.4);
}

.reserve-result__title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
}

.reserve-result__text {
    font-size: 15px;
    color: var(--text-dim);
    margin: 0 0 12px;
}

.reserve-result__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-hover);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    text-align: left;
    margin: 16px 0;
}

.reserve-result__info strong { color: var(--accent); }

.reserve-result__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* =====================================================================
   17. ДОСТАВКА
   ===================================================================== */
.delivery-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 26px;
    margin: 24px 0;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.delivery-status--on  { border-left: 4px solid #4caf50; }
.delivery-status--off { border-left: 4px solid var(--accent); }

.delivery-status__label {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.delivery-status__indicator {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
}

.delivery-status__indicator--on {
    background: rgba(0, 166, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(0, 166, 80, 0.4);
}

.delivery-status__indicator--off {
    background: rgba(201, 168, 106, 0.15);
    color: var(--accent);
    border: 1px solid rgba(201, 168, 106, 0.4);
}

.delivery-status__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: all 0.2s;
}

.delivery-status__info:hover {
    background: var(--accent);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
    box-shadow: 0 0 12px rgba(201, 168, 106, 0.5);
}

/* =====================================================================
   18. КОНТАКТЫ
   ===================================================================== */
.contacts-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 22px 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.25s ease;
    min-height: 160px;
}

.contacts-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(201, 168, 106, 0.2);
}

.contacts-card__icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
    filter: grayscale(0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.contacts-card:hover .contacts-card__icon {
    transform: scale(1.15);
    filter: grayscale(0);
}

.contacts-card__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 4px;
}

.contacts-card__value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
}

.contacts-card__link {
    color: var(--accent);
    text-decoration: none;
}

.contacts-card__link:hover { color: var(--accent-2); }

/* =====================================================================
   19. КРУПНЫЙ ШРИФТ
   ===================================================================== */
body.font-large { font-size: 19px; }

body.font-large .sidebar__nav ul.menu > li > a { font-size: 16px; }
body.font-large .sidebar__nav ul.menu ul li > a { font-size: 15px; }
body.font-large .topbar__word { font-size: 22px; }
body.font-large .logo__word { font-size: 20px; }
body.font-large .rm-footer__hours li { font-size: 15px; }
body.font-large .rm-footer__phone { font-size: 17px; }
body.font-large .rm-footer__label { font-size: 12px; }
body.font-large .rm-footer__copyright { font-size: 12px; }

body.font-large h1 { font-size: 38px; }
body.font-large h2 { font-size: 30px; }
body.font-large h3 { font-size: 26px; }

body.font-large .rules-page__title,
body.font-large .discount-page__title,
body.font-large .rezerv-page__title,
body.font-large .delivery-page__title,
body.font-large .contacts-page__title {
    font-size: 40px;
}

/* =====================================================================
   ТАБЫ МЕНЮ — при крупном шрифте УВЕЛИЧИВАЮТСЯ, а не уменьшаются
   ===================================================================== */
body.font-large .menu-tabs {
    gap: 14px;
    margin: 0 0 36px;
    padding-bottom: 24px;
}
body.font-large .menu-tab {
    font-size: 18px;
    padding: 15px 30px;
    gap: 12px;
    border-radius: 10px;
    letter-spacing: 0.4px;
}
body.font-large .menu-tab__icon {
    width: 26px;
    height: 26px;
    opacity: 0.9;
}
body.font-large .menu-tab img {
    width: 26px;
    height: 26px;
}

/* =====================================================================
   АККОРДЕОН — при крупном шрифте крупнее заголовки категорий
   ===================================================================== */
body.font-large .acc-header {
    font-size: 18px;
    padding: 17px 24px;
}
body.font-large .acc-panel__inner {
    padding: 8px 24px 20px;
}

/* =====================================================================
   БЛЮДА — крупный шрифт, длинные названия переносятся построчно
   ===================================================================== */
body.font-large .dish--dots .dish__line,
body.font-large .dish--preview .dish__line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    align-items: baseline;
    flex-wrap: wrap;
    overflow: visible;
    margin-bottom: 6px;
}
body.font-large .dish--dots .dish__name,
body.font-large .dish--preview .dish__name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    min-width: 0;
    flex: unset;
}
body.font-large .dish--dots .dish__dots,
body.font-large .dish--preview .dish__dots {
    display: none;   /* точечная линия не нужна, когда текст переносится */
}
body.font-large .dish--dots .dish__price,
body.font-large .dish--preview .dish__price {
    font-size: 19px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    align-self: start;
    flex-shrink: 0;
}
body.font-large .dish--dots .dish__desc,
body.font-large .dish--preview .dish__desc {
    font-size: 16px;
    line-height: 1.55;
}
body.font-large .dish--dots .dish__meta,
body.font-large .dish--preview .dish__meta {
    font-size: 15px;
}
body.font-large .dish--preview .dish__thumb {
    width: 110px;
    height: 110px;
    border-radius: 12px;
}

/* =====================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ крупного шрифта
   ===================================================================== */
@media (max-width: 768px) {
    body.font-large { font-size: 17px; }
    body.font-large .logo__word { font-size: 18px; letter-spacing: 0.8px; }
    body.font-large .topbar__word { font-size: 18px; }

    body.font-large .menu-tabs { gap: 8px; margin-bottom: 24px; padding-bottom: 16px; }
    body.font-large .menu-tab {
        font-size: 13px;
        padding: 10px 16px;
        gap: 8px;
    }
    body.font-large .menu-tab__icon { width: 20px; height: 20px; }
    body.font-large .menu-tab img { width: 20px; height: 20px; }

    body.font-large .acc-header {
        font-size: 16px;
        padding: 14px 16px;
    }
    body.font-large .acc-panel__inner { padding: 6px 16px 14px; }

    body.font-large .dish--dots .dish__name,
    body.font-large .dish--preview .dish__name { font-size: 17px; }
    body.font-large .dish--dots .dish__price,
    body.font-large .dish--preview .dish__price { font-size: 17px; }
    body.font-large .dish--dots .dish__desc,
    body.font-large .dish--preview .dish__desc { font-size: 14px; }
    body.font-large .dish--preview .dish__thumb { width: 80px; height: 80px; }

    body.font-large .rm-footer__hours li { font-size: 13px; }
    body.font-large .rm-footer__phone { font-size: 15px; }
}
/* =====================================================================
   20. МОБИЛЬНАЯ АДАПТАЦИЯ
   ===================================================================== */
@media (max-width: 900px) {
    .sidebar {
        background: var(--bg-2) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    }

    .mobile-overlay { background: var(--bg-2); }
    .overlay { background: rgba(0, 0, 0, 0.8); }

    .main-sidebar,
    .content,
    .main .content {
        background: var(--bg) !important;
    }
}

/* =====================================================================
   21. СКРОЛЛБАР
   ===================================================================== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-2) var(--bg);
}

/* =====================================================================
   22. ЛАЙТБОКС
   ===================================================================== */
.lightboxOverlay { background-color: rgba(0, 0, 0, 0.95); }
.lb-outerContainer { background-color: var(--bg-3); border: 1px solid var(--border); }
.lb-data .lb-caption { color: var(--text-dim); }

.lb-data .lb-closeContainer {
    position: relative;
    float: right;
    padding: 0;
    margin: 0;
}

.lb-data .lb-close,
.lb-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    top: -60px !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    background: var(--text) !important;
    background-image: none !important;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.25s ease, background 0.25s ease;
    text-decoration: none;
    overflow: visible;
}

.lb-close::before,
.lb-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--bg);
    border-radius: 1px;
}
.lb-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lb-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.lb-close:hover {
    background: var(--accent) !important;
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(201, 168, 106, 0.6);
}
.lb-close:hover::before,
.lb-close:hover::after {
    background: var(--text-on-gold);
}

@media (max-width: 768px) {
    .lb-data .lb-close {
        top: -50px !important;
        width: 34px !important;
        height: 34px !important;
    }
    .lb-close::before,
    .lb-close::after { width: 14px; }
}

/* =====================================================================
   23. КОРЗИНА И ПОПАПЫ
   ===================================================================== */
.bcontainer {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}
#bcaption td { background: var(--bg-2); color: var(--text); font-weight: 600; }
.bitem td { background: var(--bg-3); color: var(--text); border-color: var(--border); }

.popup, body #order.popup {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.popup h4 { color: var(--text); }

/* =====================================================================
   24. ТАБЛИЦЫ
   ===================================================================== */
table, .table, .discount-table {
    background: var(--bg-3);
    color: var(--text);
    border-radius: 10px;
    overflow: hidden;
}

table th, .table th, .discount-table th {
    background: var(--bg-2);
    color: var(--text-dim);
    border-color: var(--border);
    font-family: var(--font-head);
    font-weight: 700;
}

table td, .table td, .discount-table td {
    color: var(--text);
    border-color: var(--border);
}

table tbody tr:hover,
.discount-table tbody tr:hover {
    background: var(--bg-hover);
}

/* =====================================================================
   25. ПАГИНАЦИЯ И СОЦИКОНКИ
   ===================================================================== */
.pagination ul { border-top: 1px solid var(--border); padding: 16px 0; }
.pagination ul > li > a {
    color: var(--text);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 14px;
    transition: all 0.15s;
}
.pagination ul > li > a:hover,
.pagination ul > .active > a {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 0 12px rgba(201, 168, 106, 0.3);
}

.social-icons li a {
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-3);
}
.social-icons li a:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--copper) 100%);
    border-color: var(--accent);
    color: var(--text-on-gold);
    text-shadow: var(--glow-white);
}

/* =====================================================================
   26. ССЫЛКИ И ЗАГОЛОВКИ В КОНТЕНТЕ
   ===================================================================== */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: var(--text); }
h1 a:hover, h2 a:hover, h3 a:hover,
h4 a:hover, h5 a:hover, h6 a:hover { color: var(--accent); }

.news-item h2, .news-item h3 { color: var(--text); }
.news-item h2 a, .news-item h3 a {
    color: var(--text);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.news-item h2 a:hover, .news-item h3 a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.news-date { font-size: 13px; color: var(--text-mute); font-style: italic; }
.news-item img.preview_picture {
    float: left;
    margin: 0 16px 8px 0;
    border-radius: 8px;
    max-width: 220px;
}

/* =====================================================================
   27. ФИКС — ссылки в контенте не центрируются
   (перебивает инлайн-стиль a { text-align: center } на /sobytiya/)
   ===================================================================== */
.content__body a,
.main .content a,
article a {
    text-align: inherit;
}