/* Базові налаштування та Змінні (згідно брендбуку) */
:root {
    --c-dark: #3f4144;
    --c-black: #000000;
    --c-beige: #e5dbbd;
    --c-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--c-white);
    background-color: var(--c-black);
    line-height: 1.5;
}

a {
    text-decoration: none; color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block; padding: 14px 28px; font-size: 16px; font-weight: 600; font-family: var(--font-main);
    border-radius: 4px; cursor: pointer; text-align: center; border: none; transition: var(--transition);
}

.btn-primary {
    background-color: var(--c-beige); color: var(--c-black);
}

.btn-primary:hover {
    background-color: #d1c5a3;
}

.btn-outline {
    background-color: transparent; border: 2px solid var(--c-beige); color: var(--c-beige);
}

.btn-outline:hover {
    background-color: var(--c-beige); color: var(--c-black);
}

.btn-large {
    padding: 18px 40px; font-size: 18px;
}

.full-width {
    width: 100%;
}

/* Шапка */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 0;
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    display: flex; flex-direction: column; line-height: 1.2;
}

.logo-title {
    font-size: 24px; font-weight: 700; letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--c-beige);
}

.nav-list {
    display: flex; gap: 20px; font-size: 14px; font-weight: 500;
}

.nav-list a:hover {
    color: var(--c-beige);
}

.header-actions {
    display: flex; align-items: center; gap: 15px;
}

.burger-menu {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
}

.burger-menu span {
    width: 25px; height: 2px; background-color: var(--c-white); transition: var(--transition);
}

/* Секції загальне */
.section-dark { background-color: var(--c-dark); padding: 80px 0; }
.section-black { background-color: var(--c-black); padding: 80px 0; }
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 15px; text-transform: uppercase; }
.section-subtitle { font-size: 18px; text-align: center; margin-bottom: 40px; color: var(--c-beige); }
.left-align { text-align: left; }
.center-text { text-align: center; }
.center-btn { text-align: center; margin-top: 40px; }

/* Hero */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px;
}
.hero-bg {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-size: cover; background-position: center; z-index: 1;
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(63,65,68,0.8)); z-index: 2;
}
.hero-content {
    position: relative; z-index: 3;
}
.hero-content .logo-text { font-size: 60px; font-weight: 700; letter-spacing: 5px; margin-bottom: 10px; }
.hero-title { font-size: 32px; font-weight: 600; margin-bottom: 20px; color: var(--c-beige); }
.hero-desc, .hero-subtitle { font-size: 18px; max-width: 600px; margin: 0 auto 30px; }

/* Cards (Games) */
.games-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.game-card {
    background-color: var(--c-black); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.game-img {
    height: 200px; background-size: cover; background-position: center; background-color: #222;
}
.game-info {
    padding: 20px; text-align: center;
}
.game-info h3 { font-size: 24px; margin-bottom: 10px; color: var(--c-beige); }
.game-info p { margin-bottom: 20px; font-size: 14px; }

/* Prices */
.price-tables {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px;
}
.price-box {
    background-color: var(--c-dark); padding: 30px; border-radius: 8px; border: 1px solid var(--c-beige);
}
.price-box h3 { margin-bottom: 20px; font-size: 20px; text-align: center; color: var(--c-beige); }
.price-box ul li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.vip-price { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.big-price { font-size: 40px; font-weight: 700; color: var(--c-beige); }
.military-discount {
    background-color: rgba(229, 219, 189, 0.1); padding: 20px; border-radius: 8px; text-align: center; border: 1px dashed var(--c-beige);
}
.military-discount h3 { color: var(--c-beige); margin-bottom: 10px; }
.military-discount .small { font-size: 12px; margin-top: 10px; opacity: 0.7; }

/* Why Us */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.feature h3 { font-size: 20px; color: var(--c-beige); margin-bottom: 10px; }
.feature p { font-size: 15px; opacity: 0.9; }

/* Two Cols layout (School, Tournaments, VIP) */
.two-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.reverse .text-col { order: 2; }
.reverse .img-col { order: 1; }
.text-col p { margin-bottom: 15px; }
.check-list { margin-bottom: 30px; }
.check-list li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--c-beige); font-weight: bold; }
.img-col {
    height: 400px; border-radius: 8px; background-size: cover; background-position: center; background-color: #222;
}
.vip-price-tag { font-size: 28px; font-weight: 700; color: var(--c-beige); margin-bottom: 20px; }

/* Kitchen */
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 40px 0; }
.k-img { height: 200px; background-size: cover; background-position: center; border-radius: 8px; background-color: #222; }
.buttons-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.buttons-row.left { justify-content: flex-start; margin-top: 20px; }

/* Contacts */
.contact-map iframe { border-radius: 8px; min-height: 400px; }
.c-block { margin-bottom: 20px; }
.c-block strong { color: var(--c-beige); display: block; margin-bottom: 5px; font-size: 18px; }
.final-form { background-color: var(--c-black); padding: 30px; border-radius: 8px; margin-top: 40px; border: 1px solid rgba(255,255,255,0.1); }
.final-form h3 { margin-bottom: 10px; color: var(--c-beige); }
.inline-form { display: flex; gap: 10px; margin-top: 20px; }
.inline-form input { flex: 1; padding: 14px; border: 1px solid #555; background: #222; color: #fff; border-radius: 4px; }

/* Footer */
.footer { background-color: var(--c-black); border-top: 1px solid rgba(255,255,255,0.1); padding: 40px 0 20px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--c-beige); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #888; flex-wrap: wrap; gap: 10px; }
.footer-docs a { color: #888; margin-left: 15px; text-decoration: underline; }

/* Мобільна кнопка */
.mobile-sticky-btn {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--c-black);
    padding: 15px; z-index: 99; border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-sticky-btn button { width: 100%; }

/* Модальні вікна */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-window {
    background: var(--c-dark); padding: 40px; border-radius: 8px; width: 90%; max-width: 450px;
    position: relative; border: 1px solid var(--c-beige);
}
.close-modal {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    color: var(--c-white); font-size: 24px; cursor: pointer;
}
.modal-window h3 { color: var(--c-beige); margin-bottom: 10px; font-size: 24px; }
.modal-window p { font-size: 14px; margin-bottom: 20px; opacity: 0.9; }
.modal-window input:not([type="radio"]), .modal-window select {
    width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #555; background: #222; color: #fff; border-radius: 4px; font-family: inherit; font-size: 16px;
}

/* Тип столу — перемикач у формі бронювання */
.table-type-switch {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.type-btn {
    flex: 1; min-width: 0; cursor: pointer;
}
.type-btn input[type="radio"] {
    position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.type-btn span {
    display: block; padding: 10px 12px; border: 1.5px solid var(--c-beige); border-radius: 4px;
    text-align: center; font-size: 13px; font-weight: 600; color: var(--c-beige);
    transition: var(--transition); background: transparent; white-space: nowrap;
}
.type-btn:hover span { background: rgba(229, 219, 189, 0.15); }
.type-btn input[type="radio"]:checked + span {
    background: var(--c-beige); color: var(--c-black);
}

/* Адаптив (Мобільні пристрої) */
@media (max-width: 992px) {
    .nav { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: var(--c-black); padding: 20px; border-bottom: 1px solid #333; }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; align-items: center; }
    .burger-menu { display: flex; }
    .hidden-mobile { display: none; }
    .two-cols { grid-template-columns: 1fr; }
    .reverse .text-col { order: 1; }
    .reverse .img-col { order: 2; }
    .mobile-sticky-btn { display: block; }
    body { padding-bottom: 70px; } /* Місце під фіксовану кнопку */
}

@media (max-width: 600px) {
    .hero-content .logo-text { font-size: 40px; }
    .hero-title { font-size: 24px; }
    .section-title { font-size: 28px; }
    .inline-form { flex-direction: column; }
    .footer-top { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}