        :root {
            --c-bg: #0a0a0a;
            --c-bg-light: #141414;
            --c-surface: #1a1a1a;
            --c-border: #2a2a2a;
            --c-text: #f5f2ed;
            --c-text-dim: #8a8580;
            --c-green: #2D4A32;
            --c-green-light: #3F6347;
            --c-gold: #8A7A4A;
            --c-red: #8B2A1A;
            --font-display: 'Playfair Display', serif;
            --font-sub: 'Oswald', sans-serif;
            --font-body: 'Montserrat', sans-serif;
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
            --radius-full: 999px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body {
            overflow: hidden;
            height: 100%;
        }
        body {
            background: var(--c-bg);
            color: var(--c-text);
            font-family: var(--font-body);
        }

        /* ===== HERO ===== */
        .hero {
            position: relative;
            height: 100vh;
            height: 100dvh;
            width: 100%;
            overflow: hidden;
        }
        .hero-bg {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 0;
            background-image: url('/bg.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* ===== ЛОГОТИП ===== */
        .hero-logo-wrap {
            position: absolute;
            top: 40px;
            left: 60px;
            z-index: 2;
            animation: fadeInLeft 1s ease-out both;
        }
        @keyframes fadeInLeft {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }
        .hero-logo {
            width: 220px;
            height: auto;
            filter: drop-shadow(0 8px 30px rgba(0,0,0,0.5));
        }

        /* ===== СЛОГАН ===== */
        .hero-center {
            position: absolute;
            top: 290px;
            left: 60px;
            z-index: 2;
            text-align: left;
            animation: fadeInCenter 1.2s ease-out 0.2s both;
        }
        @keyframes fadeInCenter {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .hero-slogan {
            font-family: var(--font-display);
            font-size: clamp(28px, 3.5vw, 52px);
            font-weight: 700;
            letter-spacing: 4px;
            color: rgba(245,242,237,0.75);
            text-shadow: 0 4px 30px rgba(0,0,0,0.6);
            line-height: 1.15;
            transition: opacity 0.3s ease;
            white-space: nowrap;
        }

        /* ===== КНОПКИ ===== */
        .hero-right {
            position: absolute;
            right: 60px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            display: flex;
            flex-direction: column;
            gap: 16px;
            align-items: flex-end;
            animation: fadeInRight 1s ease-out 0.4s both;
        }
        @keyframes fadeInRight {
            from { opacity: 0; transform: translateY(-50%) translateX(30px); }
            to { opacity: 1; transform: translateY(-50%) translateX(0); }
        }

        .hero-btn {
            padding: 16px 36px;
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: var(--radius-full);
            color: var(--c-text);
            font-family: var(--font-sub);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            min-width: 200px;
            justify-content: center;
        }
        .hero-btn:hover {
            background: rgba(45,74,50,0.7);
            border-color: var(--c-green);
            transform: translateX(-4px);
            box-shadow: 0 8px 24px rgba(45,74,50,0.4);
        }

        /* ===== ПЛАШКИ ===== */
        .mini-cards {
            position: absolute;
            bottom: 70px;
            left: 60px;
            z-index: 2;
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-width: 320px;
            animation: fadeInUp 1s ease-out 0.5s both;
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .mini-card {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: var(--radius-sm);
            transition: all 0.3s;
            cursor: pointer;
            width: 100%;
        }
        .mini-card:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.25);
        }
        .mini-card.expanded {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.25);
        }
        .mini-card-icon {
            width: 32px;
            height: 32px;
            background: rgba(45,74,50,0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }
        .mini-card-content {
            flex: 1;
            min-width: 0;
        }
        .mini-card-text {
            font-family: var(--font-sub);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #ffffff;
        }
        .mini-card-desc {
            font-size: 11px;
            color: rgba(255,255,255,0.65);
            margin-top: 0;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: all 0.3s ease;
            font-family: var(--font-body);
            text-transform: none;
            letter-spacing: 0;
        }
        .mini-card:hover .mini-card-desc,
        .mini-card.expanded .mini-card-desc {
            max-height: 30px;
            opacity: 1;
            margin-top: 2px;
        }

        /* ===== FOOTER ===== */
        .site-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            padding: 14px 40px;
            background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.4) 70%, transparent 100%);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }
        .footer-inner {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
        }
        .footer-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .footer-copy {
            font-size: 12px;
            color: rgba(245,242,237,0.6);
            font-family: var(--font-body);
        }
        .footer-tagline {
            font-family: var(--font-sub);
            font-size: 11px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: rgba(245,242,237,0.4);
        }
        .footer-socials {
            display: flex;
            gap: 10px;
        }
        .footer-socials a {
            width: 36px;
            height: 36px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s;
            text-decoration: none;
        }
        .footer-socials a:hover {
            background: var(--c-green);
            border-color: var(--c-green);
            transform: translateY(-2px);
        }

        /* ===== МОДАЛКИ ===== */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(10,10,10,0.75);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            padding: 20px;
        }
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .modal {
            background: rgba(20,20,20,0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-lg);
            padding: 32px;
            max-width: 520px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            transform: scale(0.95) translateY(20px);
            transition: transform 0.3s;
        }
        .modal-overlay.active .modal {
            transform: scale(1) translateY(0);
        }
        .modal-close {
            position: absolute;
            top: 16px; right: 16px;
            width: 32px; height: 32px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            color: var(--c-text);
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10;
        }
        .modal-close:hover {
            background: var(--c-green);
            border-color: var(--c-green);
            transform: rotate(90deg);
        }
        .modal h2 {
            font-family: var(--font-display);
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 6px;
            color: var(--c-text);
        }
        .modal-subtitle {
            font-size: 13px;
            color: var(--c-text-dim);
            margin-bottom: 24px;
        }

        /* ===== ФОРМА БРОНИ ===== */
        .booking-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .form-group label {
            font-family: var(--font-sub);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--c-text-dim);
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 12px 14px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: var(--radius-sm);
            color: var(--c-text);
            font-family: var(--font-body);
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--c-green);
            background: rgba(255,255,255,0.08);
        }
        .form-group textarea {
            min-height: 60px;
            resize: vertical;
        }
        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255,255,255,0.3);
        }

        /* ===== Date picker (стрелки ‹ › + выбор в списке) ===== */
        .date-picker {
            display: flex;
            align-items: stretch;
            gap: 6px;
        }
        .date-picker input[type="date"] {
            flex: 1;
            min-width: 0;
            color-scheme: dark; /* тёмный нативный календарь-список */
        }
        .dp-arrow {
            width: 44px;
            flex-shrink: 0;
            border: 1px solid var(--c-border);
            background: var(--c-surface);
            color: var(--c-gold);
            font-size: 22px;
            line-height: 1;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: background .2s, transform .1s;
        }
        .dp-arrow:hover { background: var(--c-green); color: #fff; }
        .dp-arrow:active { transform: scale(.92); }
        .dp-weekdays {
            margin-top: 6px;
            font-family: var(--font-sub);
            font-size: 13px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--c-gold);
            min-height: 16px;
        }

        .tariff-selector {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        .tariff-option {
            padding: 14px;
            background: rgba(255,255,255,0.05);
            border: 2px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }
        .tariff-option:hover {
            border-color: var(--c-green-light);
            background: rgba(255,255,255,0.08);
        }
        .tariff-option.selected {
            border-color: var(--c-green);
            background: rgba(45,74,50,0.2);
        }
        .tariff-option-name {
            font-family: var(--font-sub);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 4px;
        }
        .tariff-option-type {
            font-size: 11px;
            color: var(--c-text-dim);
            margin-bottom: 6px;
        }
        .tariff-option-price {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 700;
            color: var(--c-green);
        }

        /* ===== ВЫБОР СТОЛА ===== */
        .table-selector {
            display: none;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
            margin-top: 8px;
        }
        .table-selector.visible {
            display: grid;
        }
        /* Кнопки столов — в виде прямоугольных бильярдных столов, одного размера */
        .table-option {
            width: 100%;
            aspect-ratio: 2 / 1;
            background:
                radial-gradient(circle at 15% 25%, rgba(245,242,237,0.9) 0 4px, transparent 5px),
                radial-gradient(circle at 15% 75%, rgba(245,242,237,0.9) 0 4px, transparent 5px),
                radial-gradient(circle at 85% 25%, rgba(245,242,237,0.9) 0 4px, transparent 5px),
                radial-gradient(circle at 85% 75%, rgba(245,242,237,0.9) 0 4px, transparent 5px),
                radial-gradient(circle at 50% 12%, rgba(20,20,20,0.85) 0 6px, transparent 7px),
                radial-gradient(circle at 50% 88%, rgba(20,20,20,0.85) 0 6px, transparent 7px),
                linear-gradient(rgba(45,74,50,0.35), rgba(45,74,50,0.35)),
                #2f5d3a;
            border: 6px solid #5c3a21;
            border-radius: 14px;
            box-shadow: inset 0 0 18px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }
        .table-option:hover:not(.disabled) {
            border-color: var(--c-green);
            transform: scale(1.03);
        }
        .table-option.selected {
            border-color: var(--c-green);
            box-shadow: inset 0 0 18px rgba(0,0,0,0.45), 0 0 20px rgba(45,74,50,0.6);
        }
        .table-option.disabled {
            opacity: 0.35;
            cursor: not-allowed;
            background:
                linear-gradient(rgba(139,42,26,0.45), rgba(139,42,26,0.45)),
                #2f5d3a;
            border-color: var(--c-red);
        }
        .table-option.disabled::after {
            content: '✕';
            position: absolute;
            font-size: 32px;
            color: var(--c-red);
            opacity: 0.6;
        }
        .table-number {
            font-family: var(--font-display);
            font-size: 32px;
            font-weight: 700;
            color: var(--c-text);
            text-shadow: 0 2px 6px rgba(0,0,0,0.7);
        }
        .table-label {
            font-size: 10px;
            color: rgba(245,242,237,0.75);
            margin-top: 2px;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 1px 4px rgba(0,0,0,0.7);
        }

        /* ===== БРОНИ СТОЛА ===== */
        .table-option.table-pending { opacity: .75; border-color: rgba(240,192,64,.5); position: relative; }
        .table-option.table-pending::after { content: '⏳ ждёт подтверждения'; position: absolute; bottom: 4px; left: 0; right: 0; font-size: 9px; color: #f0c040; text-align: center; }
        .table-bookings {
            display: none;
            flex-direction: column;
            gap: 8px;
            margin-top: 16px;
            padding: 16px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-sm);
        }
        .table-bookings.visible {
            display: flex;
        }
        .table-bookings-title {
            font-family: var(--font-sub);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--c-text-dim);
            margin-bottom: 8px;
        }
        .booking-item {
            padding: 10px 12px;
            background: rgba(255,255,255,0.05);
            border-radius: var(--radius-sm);
            font-size: 13px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .booking-item-date {
            color: var(--c-text);
            font-weight: 600;
        }
        .booking-item-time {
            color: var(--c-green);
            font-weight: 700;
        }
        .no-bookings {
            color: var(--c-text-dim);
            font-size: 13px;
            text-align: center;
            padding: 12px;
        }

        .btn-submit {
            padding: 14px;
            background: var(--c-green);
            border: none;
            border-radius: var(--radius-sm);
            color: var(--c-text);
            font-family: var(--font-sub);
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn-submit:hover {
            background: var(--c-green-light);
            transform: translateY(-2px);
        }
        .btn-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* ===== КОНТАКТЫ МОДАЛКА ===== */
        .contacts-modal-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .contact-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .contact-info-item {
            padding: 14px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-sm);
        }
        .contact-info-item h4 {
            font-family: var(--font-sub);
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--c-text-dim);
            margin-bottom: 6px;
        }
        .contact-info-item p {
            font-size: 14px;
            color: var(--c-text);
            line-height: 1.4;
        }
        .contact-info-item a {
            color: var(--c-green);
            text-decoration: none;
            transition: color 0.3s;
        }
        .contact-info-item a:hover {
            color: var(--c-green-light);
        }
        .modal-video {
            width: 100%;
            aspect-ratio: 16/9;
            border-radius: var(--radius-sm);
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.1);
            background: #000;
        }
        .modal-video video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .modal-gallery {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
        }
        .modal-gallery img {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255,255,255,0.1);
            transition: transform 0.3s;
            cursor: pointer;
        }
        .modal-gallery img:hover {
            transform: scale(1.08);
        }

        /* ===== TOAST ===== */
        #toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            padding: 14px 24px;
            background: rgba(45,74,50,0.9);
            backdrop-filter: blur(10px);
            color: var(--c-text);
            border-radius: var(--radius-full);
            font-family: var(--font-sub);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1px;
            z-index: 3000;
            opacity: 0;
            transition: all 0.4s;
            box-shadow: 0 8px 20px rgba(45,74,50,0.4);
            border: 1px solid rgba(255,255,255,0.15);
        }
        #toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* ===== ДЫМ (кальянный, только ПК, canvas + JS) ===== */
        .smoke-layer {
            display: none;
            position: absolute;
            inset: 0;
            overflow: hidden;
            z-index: 1;
            pointer-events: none;
        }
        #hookahSmoke {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
            mix-blend-mode: screen;
            opacity: 0.85;
        }

        /* ===== МЕРЦАНИЕ СЛОГАНА (перегоревшая лампа, только ПК) ===== */
        @keyframes faultyBulbFlicker {
            0%     { opacity: 1;    text-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 0 18px rgba(245,242,237,0.25); }
            8%     { opacity: 0.15; text-shadow: none; }
            10%    { opacity: 0.9;  text-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 0 22px rgba(245,242,237,0.35); }
            12%    { opacity: 0.2;  text-shadow: none; }
            14%    { opacity: 1; }
            32%    { opacity: 1; }
            33%    { opacity: 0.1;  text-shadow: none; }
            34.5%  { opacity: 0.85; }
            36%    { opacity: 0.15; text-shadow: none; }
            37.5%  { opacity: 1;    text-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 0 20px rgba(245,242,237,0.3); }
            62%    { opacity: 1; }
            63%    { opacity: 0.25; text-shadow: none; }
            64%    { opacity: 1; }
            66%    { opacity: 0.1; }
            67%    { opacity: 0.95; }
            100%   { opacity: 1;    text-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 0 18px rgba(245,242,237,0.25); }
        }

        /* ===== ПК ВЕРСИЯ (>1024px) ===== */
        @media (min-width: 1025px) {
            /* Логотип скрыт в ПК версии */
            .hero-logo-wrap { display: none; }

            /* Дымок виден только на ПК */
            .smoke-layer { display: block; }

            /* Слоган: меньше размером, в одну строку, ниже на 25% + мерцание */
            .hero-center { top: calc(290px + 25vh); }
            .hero-slogan {
                font-size: clamp(22px, 2.4vw, 38px);
                letter-spacing: 3px;
                white-space: nowrap;
                animation: faultyBulbFlicker 5s linear infinite;
            }

            /* Кнопки справа — крупнее */
            .hero-btn {
                padding: 22px 48px;
                font-size: 17px;
                letter-spacing: 3px;
                min-width: 280px;
            }
        }

        /* ===== АДАПТИВ ===== */
        @media (max-width: 1024px) {
            .hero-logo-wrap { top: 30px; left: 30px; }
            .hero-logo { width: 180px; }
            .hero-center { top: 250px; left: 30px; }
            .hero-slogan { font-size: clamp(24px, 3vw, 40px); }
            .hero-right { right: 30px; }
            .mini-cards { left: 30px; bottom: 60px; }
        }
        @media (max-width: 768px) {
            .hero-bg {
                background-image: url('/bg2.jpg');
                background-position: right center;
            }

            .hero-logo-wrap,
            .hero-center,
            .hero-right {
                animation: none;
            }

            /* Логотип — СЛЕВА сверху + тень */
            .hero-logo-wrap {
                top: 16px;
                left: 16px;
                transform: none;
            }
            .hero-logo {
                width: 130px;
                filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8)) drop-shadow(0 0 20px rgba(0,0,0,0.6));
            }

            /* Слоган — ПО ЦЕНТРУ */
            .hero-center {
                top: 28%;
                left: 50%;
                transform: translateX(-50%);
                text-align: center;
                width: 90%;
            }
            .hero-slogan {
                font-size: 32px;
                letter-spacing: 2px;
                min-height: 70px;
            }

            /* Кнопки — ПО ЦЕНТРУ, прозрачные */
            .hero-right {
                top: 50%;
                left: 50%;
                right: auto;
                transform: translateX(-50%);
                align-items: center;
            }
            .hero-btn {
                min-width: auto;
                padding: 12px 24px;
                font-size: 11px;
                width: 220px;
                background: rgba(255,255,255,0.04);
                border-color: rgba(255,255,255,0.12);
            }

            .mini-cards { display: none; }

            .site-footer {
                padding: 10px 16px;
            }
            .footer-inner {
                justify-content: center;
                gap: 8px;
            }
            .footer-left {
                flex-direction: column;
                gap: 4px;
                align-items: center;
            }
            .footer-copy { font-size: 10px; }
            .footer-tagline { font-size: 9px; }
            .footer-socials { display: none; }

            .form-row { grid-template-columns: 1fr; }
            .tariff-selector { grid-template-columns: 1fr; }
            .contact-info-grid { grid-template-columns: 1fr; }
            .modal-gallery { grid-template-columns: repeat(3, 1fr); }
            .modal { padding: 24px 18px; }
            #toast { bottom: 70px; }
        }
    

/* ===== КНИГА ЖАЛОБ (замена плашкам слева на ПК) ===== */
.feedback-btn {
    position: absolute;
    bottom: 70px;
    left: 60px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: var(--c-text);
    font-family: var(--font-sub);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.5s both;
}
.feedback-btn:hover {
    background: rgba(138,122,74,0.35);
    border-color: var(--c-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.4);
}
.feedback-btn .fb-icon { font-size: 20px; }

@media (min-width: 1025px) {
    /* Плашки слева убраны, вместо них — книга жалоб */
    .mini-cards { display: none; }
    /* Кнопки справа — ещё крупнее (по требованию) */
    .hero-btn {
        padding: 26px 56px;
        font-size: 19px;
        min-width: 320px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .mini-cards { display: none; }
}

/* Мобильная версия: кнопка обратной связи — самая нижняя в списке кнопок */
@media (max-width: 768px) {
    .mini-cards { display: none; }
    .hero-right { top: auto; bottom: 84px; transform: translateX(-50%); }
    .hero-btn {
        width: 260px;
        padding: 16px 24px;
        font-size: 14px;
    }
    .feedback-btn {
        position: static;
        order: 99;
        width: 260px;
        justify-content: center;
        margin: 0 auto;
        animation: none;
    }
    /* В горизонтальной ориентации на мобильных логотип скрыт */
    @media (orientation: landscape) {
        .hero-logo-wrap { display: none; }
    }
}

/* ===== ОБЛАТО КАПЧИ ===== */
.captcha-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.8);
    backdrop-filter: blur(10px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}
.captcha-overlay.active { opacity: 1; visibility: visible; }
.captcha-box {
    background: #161616;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
}
.captcha-box h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 14px; }
.captcha-q { font-family: var(--font-sub); font-size: 22px; letter-spacing: 2px; margin-bottom: 16px; color: var(--c-text); }
.captcha-input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-size: 16px;
    text-align: center;
    outline: none;
    margin-bottom: 16px;
}
.captcha-input:focus { border-color: var(--c-green); }
.captcha-actions { display: flex; gap: 10px; }
.captcha-actions .btn-submit { flex: 1; padding: 12px; font-size: 13px; }
.btn-cancel {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: var(--c-text-dim);
    font-family: var(--font-sub);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-cancel:hover { border-color: var(--c-red); color: var(--c-red); }
#turnstileWidget { display: none; margin-top: 8px; }

/* Кнопка жалобы: на мобильных — внутри блока кнопок (последней), на ПК — слева снизу */
.feedback-btn-mobile { display: none !important; }
@media (max-width: 768px) {
    .feedback-btn { display: none !important; }
    .feedback-btn-mobile { display: inline-flex !important; }
}

/* ===== Шестеренка админки (правый нижний угол) ===== */
.admin-gear {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    background: rgba(20, 16, 10, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    opacity: 0.55;
    transition: opacity .3s, transform .5s;
}
.admin-gear:hover {
    opacity: 1;
    transform: rotate(90deg);
}


/* ===== Модалка бронирования: форма + график ===== */
.modal-wide { max-width: 1100px; width: 96%; }
.booking-layout {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.35fr);
    gap: 24px;
    align-items: start;
}
.schedule-col {
    position: sticky;
    top: 0;
    background: rgba(12, 10, 6, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    padding: 14px;
}
.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.sch-date {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .5px;
    color: #e8d9a8;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
}
.sch-arrow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.10);
    color: #d4af37;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}
.sch-arrow:hover { background: rgba(212, 175, 55, 0.28); }
.schedule-wrap { overflow-x: auto; padding-bottom: 6px; }
.sch-grid {
    display: grid;
    grid-template-columns: 86px repeat(24, minmax(26px, 1fr));
    gap: 2px;
    user-select: none;
}
.sch-corner { grid-column: 1; }
.sch-time {
    font-size: 9px;
    color: rgba(232, 217, 168, 0.75);
    text-align: center;
    padding-bottom: 3px;
    white-space: nowrap;
    overflow: visible;
}
.sch-table {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2px 6px;
    background: rgba(212, 175, 55, 0.07);
    border-radius: 6px;
    border-left: 3px solid #d4af37;
}
.sch-num { font-weight: 700; font-size: 12px; color: #f0e6c8; }
.sch-type { font-size: 9px; color: rgba(232, 217, 168, 0.6); text-transform: uppercase; letter-spacing: .5px; }
.sch-cell {
    height: 34px;
    background: rgba(38, 84, 58, 0.35);
    border-radius: 3px;
}
.sch-cell.busy {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.85), rgba(160, 124, 28, 0.85));
    box-shadow: inset 0 0 4px rgba(0,0,0,.35);
}

/* Кликабельный телефон в шапке модалки */
.modal-phone-link {
    color: #d4af37;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.5);
}
.modal-phone-link:hover { color: #f0d98a; }
.phone-ico { font-size: 14px; }

/* Мобильная версия: график сверху, форма снизу */
@media (max-width: 900px) {
    .booking-layout { grid-template-columns: 1fr; }
    .schedule-col { order: -1; position: static; }
    .sch-grid { grid-template-columns: 70px repeat(24, minmax(22px, 1fr)); }
    .sch-cell { height: 28px; }
}

/* ============================================================
   ОБНОВЛЕНИЕ 2026-12: график слева, тёмные поля, сукно, футер
   ============================================================ */

/* --- График занятости СЛЕВА от формы бронирования --- */
.booking-layout {
    grid-template-columns: minmax(430px, 1.5fr) minmax(330px, 1fr);
}

/* --- Поля ввода/селекты: тёмный фон везде (время видно), без системных подсветок --- */
.form-group input,
.form-group select,
.form-group textarea {
    background: #141815;
    color-scheme: dark;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #1a201c;
    border-color: var(--c-green-light);
}
.form-group select option {
    background: #141815;
    color: var(--c-text);
}
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: .55;
    cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* --- Модалка без ползунка прокрутки --- */
.modal { scrollbar-width: none; -ms-overflow-style: none; }
.modal::-webkit-scrollbar { width: 0; height: 0; display: none; }
.schedule-wrap { scrollbar-width: thin; scrollbar-color: rgba(96,140,106,.5) transparent; }
.schedule-wrap::-webkit-scrollbar { height: 6px; }
.schedule-wrap::-webkit-scrollbar-thumb { background: rgba(96,140,106,.5); border-radius: 3px; }
.schedule-wrap::-webkit-scrollbar-track { background: transparent; }

/* --- Цвета: приглушённое «бильярдное сукно» вместо золотого --- */
.sch-date { color: #dfe8dd; font-weight: 800; }
.sch-arrow {
    border: 1px solid rgba(96,140,106,.55);
    background: rgba(45,74,50,.35);
    color: #bcd3bd;
}
.sch-arrow:hover { background: var(--c-green); color: #fff; }
.sch-table { background: rgba(45,74,50,.25); border-left: 3px solid var(--c-green-light); }
.sch-num { color: #e6efe6; }
.sch-type { color: rgba(188,211,189,.65); }
.sch-time { color: rgba(200,220,200,.7); }
.sch-cell { background: rgba(47,93,58,.55); }          /* свободный стол — цвет сукна */
.sch-cell.busy {                                        /* занят — тёмный орех + янтарная кромка */
    background: linear-gradient(180deg, #6b4a2b, #4a3018);
    box-shadow: inset 0 0 0 1px rgba(212,175,55,.35), inset 0 0 6px rgba(0,0,0,.5);
}
.schedule-col { border-color: rgba(96,140,106,.3); }

/* Телефон и капча — в зелёной гамме сукна */
.modal-phone-link {
    color: #a9c8ab;
    border-bottom: 1px dashed rgba(96,140,106,.6);
}
.modal-phone-link:hover { color: #cfe3d0; }
.phone-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--c-green); font-size: 12px;
}

/* --- Кнопки в зелёной гамме сукна --- */
.hero-btn:hover { background: rgba(45,74,50,.85); }
.btn-submit { background: var(--c-green); }
.btn-submit:hover { background: var(--c-green-light); }
.tariff-option.selected { border-color: var(--c-green-light); background: rgba(45,74,50,.3); }
.tariff-option-price { color: #8fb493; }
.dp-arrow { color: #a9c8ab; }
.dp-arrow:hover { background: var(--c-green); color: #fff; }
.dp-weekdays { color: #8fb493; }
.feedback-btn:hover { background: rgba(45,74,50,.55); border-color: var(--c-green-light); }
.table-option.selected { border-color: var(--c-green-light); box-shadow: inset 0 0 18px rgba(0,0,0,.45), 0 0 22px rgba(63,99,71,.65); }

/* --- Шестерёнка входа в админку: ВНУТРИ нижнего футера --- */
.admin-gear {
    position: static;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(96,140,106,.45);
    border-radius: 50%;
    color: rgba(245,242,237,.65);
    opacity: 1;
}
.admin-gear svg { width: 18px; height: 18px; }
.admin-gear:hover {
    background: var(--c-green);
    border-color: var(--c-green-light);
    color: #fff;
    transform: rotate(60deg);
    opacity: 1;
}
@media (max-width: 768px) {
    .admin-gear { bottom: auto; right: auto; width: 36px; height: 36px; }
    .footer-socials { display: flex !important; }
}

/* --- Мобильная версия: график по-прежнему на самом верху модалки --- */
@media (max-width: 900px) {
    .booking-layout { grid-template-columns: 1fr; }
    .schedule-col { order: -1; }
}

/* --- Компактнее: чтобы форма помещалась без прокрутки (без ползунка) --- */
.modal { padding: 26px 28px; max-height: 94vh; }
.modal h2 { font-size: 24px; margin-bottom: 4px; }
.modal-subtitle { margin-bottom: 16px; font-size: 12.5px; }
.booking-form { gap: 12px; }
.form-group textarea { min-height: 44px; }
.form-group input, .form-group select, .form-group textarea { padding: 10px 12px; font-size: 13.5px; }
.btn-submit { padding: 12px; }
.sch-cell { height: 30px; }
.tariff-option { padding: 10px; }
.tariff-option-price { font-size: 17px; }

/* ============================================================
   ОБНОВЛЕНИЕ 2026-12 (v2): компактный график + яркий слоган на моб.
   ============================================================ */

/* --- График: без горизонтального скролла, колонки = 1 час --- */
.modal-wide { max-width: 980px; }
.booking-layout { grid-template-columns: minmax(340px, 1.15fr) minmax(300px, 1fr); gap: 18px; }
.schedule-col { position: static; padding: 12px; overflow: hidden; }
.schedule-wrap { overflow-x: clip; padding-bottom: 0; scrollbar-width: none; -ms-overflow-style: none; }
.schedule-wrap::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sch-grid {
    display: flex;              /* вместо grid — фикс. колонка столов + гибкие часы */
    flex-wrap: wrap;
    gap: 0;
}
.sch-corner, .sch-time { width: 52px; flex: 0 0 52px; text-align: center; }
.sch-table { width: 52px; flex: 0 0 52px; flex-direction: column; align-items: center; border-left: none; border-bottom: 2px solid var(--c-green); padding: 4px 2px; }
.sch-num { font-size: 11px; }
.sch-type { font-size: 7.5px; letter-spacing: 0; }
.sch-cell {
    flex: 1 1 0;                /* ячейки растягиваются строго по ширине контейнера */
    min-width: 0;
    height: 22px;
    border-radius: 2px;
    margin: 1px;
}
.sch-time { font-size: 8.5px; padding-bottom: 2px; }

@media (max-width: 900px) {
    .booking-layout { grid-template-columns: 1fr; }
    .schedule-col { order: -1; padding: 10px; }
    .sch-cell { height: 16px; }
    .sch-corner, .sch-time { width: 42px; flex-basis: 42px; }
    .sch-table { width: 42px; flex-basis: 42px; }
    .sch-num { font-size: 10px; }
    .sch-type { font-size: 7px; }
}

/* --- Мобильный меняющийся слоган — ярче, чтобы не сливался с фоном --- */
@media (max-width: 768px) {
    .hero-slogan {
        color: #ffffff;
        text-shadow:
            0 0 14px rgba(255, 255, 255, 0.55),
            0 0 34px rgba(63, 99, 71, 0.75),
            0 4px 14px rgba(0, 0, 0, 0.95),
            0 0 4px rgba(0, 0, 0, 1);
        -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.35);
    }
}

/* ============================================================
   ОБНОВЛЕНИЕ 2026-12 (v3): график броней «как в отеле» + крестик админки
   ============================================================ */

/* --- Список столов: №, название и интервалы брони (с – по) --- */
.hotel-schedule { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.hotel-row {
    display: grid;
    grid-template-columns: minmax(96px, auto) 1fr;
    align-items: center;
    gap: 10px;
    background: rgba(45, 74, 50, 0.22);
    border: 1px solid rgba(96, 140, 106, 0.28);
    border-radius: 10px;
    padding: 8px 12px;
}
.hotel-table { display: flex; flex-direction: column; line-height: 1.2; }
.ht-num { font-weight: 800; font-size: 14px; color: #e6efe6; }
.ht-name {
    font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px;
    color: rgba(188, 211, 189, 0.7);
}
.hotel-times { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.hotel-times.free {
    font-size: 11.5px; color: #8fb493; font-style: italic;
}
.ht-slot {
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
    padding: 3px 9px; border-radius: 6px;
    background: linear-gradient(180deg, #6b4a2b, #4a3018);
    color: #f0dfc0;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3), inset 0 0 6px rgba(0, 0, 0, 0.45);
}

/* --- Узкая модалка брони: без горизонтального скролла --- */
.modal-wide { max-width: 860px; }
.booking-layout { grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr); gap: 16px; }
.schedule-col { overflow: hidden; }
.schedule-wrap { overflow: visible; }
@media (max-width: 900px) {
    .booking-layout { grid-template-columns: 1fr; }
    .schedule-col { order: -1; }
    .hotel-row { grid-template-columns: 78px 1fr; padding: 6px 10px; gap: 8px; }
    .ht-num { font-size: 12.5px; }
    .ht-name { font-size: 8px; letter-spacing: 0; }
    .ht-slot { font-size: 10px; padding: 2px 7px; }
    .hotel-times.free { font-size: 10px; }
}

/* --- Кнопка-крестик на экране входа в админку (admin.html) --- */
.login-close {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(96, 140, 106, 0.45);
    border-radius: 50%;
    color: rgba(245, 242, 237, 0.7);
    font-size: 16px; cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    z-index: 2;
}
.login-close:hover {
    background: var(--c-green, #2f5d3a);
    border-color: var(--c-green-light, #5f8a68);
    color: #fff; transform: rotate(90deg);
}

/* --- Ярче меняющийся слоган на мобильной версии (v4) --- */
@media (max-width: 768px) {
    .hero-slogan,
    .hero-slogan.word-anim {
        color: #ffffff !important;
        opacity: 1 !important;
        font-weight: 900;
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.9),
            0 0 12px rgba(255, 255, 255, 0.65),
            0 0 30px rgba(120, 180, 130, 0.8),
            0 0 55px rgba(63, 99, 71, 0.9),
            0 3px 10px rgba(0, 0, 0, 1);
        -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.55);
    }
}

/* ============================================================
   ОБНОВЛЕНИЕ 2026-12 (v5): график броней — СЕТКА КОЛОНКами
   слева столы, сверху время, по центру блоки брони.
   Без горизонтального скролла, узкая модалка.
   ============================================================ */

.modal-wide { max-width: 820px; }
.booking-layout { grid-template-columns: minmax(300px, 1fr) minmax(240px, 0.95fr); gap: 14px; }
.schedule-col { overflow: hidden; padding: 12px; }
.schedule-wrap { overflow: visible !important; }

.sch-grid {
    display: grid !important;
    grid-template-columns: 74px 1fr !important;
    grid-auto-rows: auto;
    gap: 3px 6px;
    width: 100%;
}
.sch-corner {
    width: auto !important; flex: none !important;
    grid-column: 1; grid-row: 1;
}
.sch-time {
    width: auto !important; flex: none !important;
    text-align: center;
    font-size: 9px; color: rgba(214, 231, 214, 0.75);
    padding-bottom: 1px;
}
.sch-table {
    width: auto !important; flex: none !important;
    display: flex; flex-direction: row; align-items: baseline; gap: 5px;
    justify-content: flex-start !important;
    border-left: 3px solid var(--c-green, #2f5d3a);
    border-bottom: none !important;
    background: rgba(47, 93, 58, 0.14);
    border-radius: 6px;
    padding: 2px 6px !important;
    align-self: center;
}
.sch-num { font-size: 12px; font-weight: 800; color: #e6efe6; }
.sch-type { font-size: 8px; letter-spacing: .3px; }
.sch-track {
    position: relative;
    height: 26px;
    background: repeating-linear-gradient(90deg,
        rgba(47, 93, 58, 0.20) 0 calc(8.3333% - 1px),
        rgba(214, 231, 214, 0.10) calc(8.3333% - 1px) 8.3333%);
    border-radius: 6px;
    overflow: hidden;
}
.sch-block {
    position: absolute; top: 3px; bottom: 3px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #7a5a2e, #55391b);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 5px;
    color: #f0dfc0;
    font-size: 9px; font-weight: 700; white-space: nowrap;
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0,0,0,.4);
}
.sch-free {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-style: italic; color: rgba(143, 180, 147, 0.55);
}

@media (max-width: 900px) {
    .booking-layout { grid-template-columns: 1fr; }
    .schedule-col { order: -1; padding: 10px; }
    .sch-grid { grid-template-columns: 62px 1fr !important; gap: 2px 4px; }
    .sch-table { padding: 1px 4px !important; gap: 4px; }
    .sch-num { font-size: 11px; }
    .sch-type { font-size: 7px; }
    .sch-track { height: 22px; }
    .sch-block { font-size: 8px; }
    .sch-time { font-size: 8px; }
}

/* --- Ярче меняющийся слоган на мобильной версии (финально) --- */
@media (max-width: 768px) {
    .hero-slogan,
    .hero-slogan.word-anim {
        color: #ffffff !important;
        opacity: 1 !important;
        font-weight: 900 !important;
        text-shadow:
            0 0 2px rgba(255, 255, 255, 0.95),
            0 0 14px rgba(255, 255, 255, 0.7),
            0 0 34px rgba(140, 200, 150, 0.85),
            0 0 60px rgba(63, 99, 71, 1),
            0 3px 12px rgba(0, 0, 0, 1) !important;
        -webkit-text-stroke: 0.7px rgba(255, 255, 255, 0.6) !important;
    }
}

/* ============================================================
   ОБНОВЛЕНИЕ 2026-12 (v6): ИНТЕРАКТИВНАЯ ТАБЛИЦА БРОНЕЙ (booking grid)
   строки — столы, колонки — часы 14..00, ячейки кликабельны.
   ============================================================ */
.bg-grid {
    display: grid;
    grid-template-columns: 78px repeat(12, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
}
.bg-corner { grid-column: 1; }
.bg-hour {
    text-align: center;
    font-size: 9.5px;
    font-weight: 600;
    color: rgba(214, 231, 214, 0.75);
    padding-bottom: 2px;
    letter-spacing: .3px;
}
.bg-table {
    display: flex; flex-direction: column; justify-content: center;
    background: rgba(47, 93, 58, 0.16);
    border-left: 3px solid var(--c-green, #2f5d3a);
    border-radius: 6px;
    padding: 2px 6px;
}
.bg-num { font-size: 11.5px; font-weight: 800; color: #e6efe6; line-height: 1.1; }
.bg-name { font-size: 7.5px; text-transform: uppercase; letter-spacing: .3px; color: rgba(188, 211, 189, 0.65); line-height: 1.1; }
.bg-cell {
    height: 30px;
    border-radius: 4px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: transform .12s, box-shadow .12s;
}
.bg-cell.free {
    background: linear-gradient(180deg, rgba(47, 93, 58, 0.62), rgba(38, 76, 47, 0.62)); /* сукно */
    cursor: pointer;
}
.bg-cell.free:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 1px rgba(143, 180, 147, 0.65), 0 0 8px rgba(63, 99, 71, 0.8);
}
.bg-cell.busy {
    background: linear-gradient(180deg, #4a4a4a, #353535); /* занято — серый */
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: default;
}
.bg-cell.chosen {
    background: linear-gradient(180deg, #c9962f, #9a6f1c) !important; /* акцент — янтарь */
    box-shadow: 0 0 0 1.5px rgba(240, 223, 192, 0.85), 0 0 10px rgba(201, 150, 47, 0.55);
    cursor: pointer;
}
.bg-lbl {
    font-size: 8px; font-weight: 700; color: #d8d8d8;
    white-space: nowrap; overflow: hidden; text-overflow: clip;
    padding: 0 2px;
}
@media (max-width: 900px) {
    .bg-grid { grid-template-columns: 58px repeat(12, minmax(0, 1fr)); gap: 2px; }
    .bg-cell { height: 24px; }
    .bg-num { font-size: 10px; }
    .bg-name { font-size: 6.5px; }
    .bg-hour { font-size: 8px; }
    .bg-lbl { font-size: 6.5px; }
}

/* --- Окошко ввода пароля админки (шестеренка в футере) --- */
.admin-pass-box { max-width: 380px; text-align: center; }
.admin-pass-box input {
    width: 100%; padding: 13px 16px; margin: 14px 0 4px;
    background: rgba(15, 22, 16, 0.9);
    border: 1px solid rgba(96, 140, 106, 0.5);
    border-radius: 8px; color: #e6efe6; font-size: 15px; outline: none;
}
.admin-pass-box input:focus { border-color: var(--c-green-light, #8fb493); }

/* ============================================================
   ОБНОВЛЕНИЕ 2026-12 (v7): booking grid — получасовые слоты,
   шары у столов, легенда, чип выбора. Стиль — сукно клуба.
   ============================================================ */
.bg-grid {
    grid-template-columns: 96px repeat(22, minmax(0, 1fr)) !important;
    gap: 2px !important;
}
.bg-corner {
    font-family: var(--font-sub); font-size: 8px; letter-spacing: 1px;
    text-transform: uppercase; color: rgba(188, 211, 189, 0.5);
    display: flex; align-items: flex-end; padding-bottom: 3px;
}
.bg-hour { font-size: 8.5px; }
.bg-hour.nd { color: var(--c-gold, #8a7a4a); }
.bg-table { flex-direction: row !important; align-items: center; gap: 6px; padding: 2px 5px !important; }
.bg-tinfo { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.bg-cell.past {
    background: #0d150f !important;
    border: 1px solid rgba(30, 45, 34, 0.6) !important;
    opacity: .5; cursor: default;
}
.sch-legend {
    display: flex; flex-wrap: wrap; gap: 4px 12px;
    font-size: 10px; color: rgba(188, 211, 189, 0.75); margin-bottom: 8px;
}
.sch-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sch-legend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.sch-legend .sw-free { background: linear-gradient(180deg, rgba(47,93,58,.75), rgba(38,76,47,.75)); border: 1px solid rgba(96,140,106,.5); }
.sch-legend .sw-busy { background: repeating-linear-gradient(45deg, #4a4a4a 0 3px, #353535 3px 6px); border: 1px solid rgba(255,255,255,.1); }
.sch-legend .sw-sel  { background: linear-gradient(180deg, #c9962f, #9a6f1c); border: 1px solid rgba(240,223,192,.7); }
.sch-legend .sw-past { background: #0d150f; border: 1px solid #1e2d22; opacity: .7; }
.sch-chip {
    margin-top: 10px; padding: 8px 12px; border-radius: 9px;
    border: 1px dashed rgba(96,140,106,.45);
    font-size: 11.5px; color: rgba(200, 220, 200, 0.8);
    background: rgba(15, 22, 16, 0.5);
    transition: border-color .2s, color .2s, background .2s;
}
.sch-chip b { color: #e6efe6; }
.sch-chip.ok {
    border-style: solid; border-color: rgba(143,180,147,.7);
    background: linear-gradient(180deg, rgba(47,93,58,.35), rgba(30,60,38,.35));
    color: #dfe8dd;
}
.sch-chip.bad { border-style: solid; border-color: rgba(139,42,26,.7); background: rgba(60,25,18,.4); color: #eba49e; }
@media (max-width: 900px) {
    .bg-grid { grid-template-columns: 66px repeat(22, minmax(0, 1fr)) !important; }
    .bg-num { font-size: 9.5px; }
    .bg-name { font-size: 6px; }
    .sch-legend { font-size: 8.5px; gap: 3px 8px; margin-bottom: 6px; }
    .sch-legend .sw { width: 9px; height: 9px; }
    .sch-chip { font-size: 10px; padding: 6px 9px; margin-top: 7px; }
}

/* ============================================================
   ОБНОВЛЕНИЕ v3: график без шаров, легенда 2 статуса, узкое поле времени
   ============================================================ */
.sch-chip:empty { display: none; }
#bookingTime { width: 74px; min-width: 0; flex: 0 0 auto; padding: 10px 6px; font-size: 12.5px; }
.form-row:has(#bookingTime) { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 900px) {
    #bookingTime { width: 84px; }
    .form-row:has(#bookingTime) { grid-template-columns: 1fr auto; }
}

/* ============================================================
   ОБНОВЛЕНИЕ v8: график — только визуал (без кликов),
   названия столов по левому краю, время — новой строкой.
   ============================================================ */
.bg-cell { cursor: default !important; }
.bg-cell.free:hover { transform: none; box-shadow: none; }
.bg-table { justify-content: flex-start !important; text-align: left; }
.bg-tinfo { align-items: flex-start; text-align: left; }
.bg-num, .bg-name { text-align: left; }
#bookingTime { width: 100% !important; min-width: 0; padding: 10px 12px; font-size: 14px; }
.form-row:has(#bookingTime) { grid-template-columns: 1fr; }

/* ============================================================
   ОБНОВЛЕНИЕ v9: график-шкала (timeline) вместо квадратиков.
   Строка = сплошная «дорожка» сукна, брони — блоки поверх шкалы.
   ============================================================ */
.bg-grid {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 5px 8px !important;
}
.bg-ruler {
    position: relative;
    height: 16px;
}
.bg-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    color: rgba(214, 231, 214, 0.75);
    letter-spacing: .2px;
    white-space: nowrap;
}
.bg-tick.nd { color: var(--c-gold, #a08a4e); }
.bg-track {
    position: relative;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    /* фон свободной шкалы — цвет сукна бильярдного стола */
    background: linear-gradient(180deg, rgba(47, 93, 58, 0.62), rgba(34, 68, 43, 0.62));
    box-shadow: inset 0 0 0 1px rgba(96, 140, 106, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.25);
    background-image:
        repeating-linear-gradient(90deg, transparent 0 calc(100% / 11 - 1px), rgba(214, 231, 214, 0.10) calc(100% / 11 - 1px) calc(100% / 11)),
        linear-gradient(180deg, rgba(47, 93, 58, 0.62), rgba(34, 68, 43, 0.62));
}
.bg-block {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;                 /* без прямоугольников — сплошная зона */
    background: repeating-linear-gradient(-45deg,
        rgba(18, 18, 18, 0.88) 0 6px,
        rgba(42, 42, 42, 0.88) 6px 12px);   /* «занято» — тёмные диагональные штрихи */
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    color: #d8d8d8;
    font-size: 8.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}
.bg-block.chosen {
    background: repeating-linear-gradient(-45deg,
        rgba(201, 150, 47, 0.85) 0 6px,
        rgba(154, 111, 28, 0.85) 6px 12px);
    border-left: 1px solid rgba(240, 223, 192, 0.8);
    border-right: 1px solid rgba(240, 223, 192, 0.8);
    color: #fff8e8;
    box-shadow: 0 0 8px rgba(201, 150, 47, 0.45);
}
@media (max-width: 900px) {
    .bg-grid { grid-template-columns: 66px minmax(0, 1fr) !important; gap: 4px 6px !important; }
    .bg-track { height: 24px; }
    .bg-block { font-size: 7px; top: 0; bottom: 0; }
    .bg-tick { font-size: 7.5px; }
}

/* ============================================================
   ОБНОВЛЕНИЕ v10: шкала брони — БЕЗ квадратиков/прямоугольников.
   Строка = непрерывная «дорожка», бронь = тонкая затемнённая зона
   с подписью по центру; выбор пользователя — янтарная зона.
   Поле «Время» в форме — новой строкой, на всю ширину (широкое).
   ============================================================ */
.bg-track {
    background-image:
        repeating-linear-gradient(90deg, transparent 0 calc(100% / 11 - 1px),
            rgba(214, 231, 214, 0.07) calc(100% / 11 - 1px) calc(100% / 11)),
        linear-gradient(180deg, rgba(47, 93, 58, 0.55), rgba(34, 68, 43, 0.55)) !important;
}
#bookingTime { width: 100% !important; min-width: 0; padding: 10px 12px; font-size: 14px; }
.form-row:has(#bookingTime),
.booking-form .form-group:has(#bookingTime) { grid-template-columns: 1fr; }
