:root {
    /* Color Palette - Light Brown / Premium Theme */
    --bg-light: #fcf7f3;
    --bg-alt: #f6efe8;
    --bg-dark: #2d1e12;
    --primary: #8b5e3c;
    --primary-light: #a67c52;
    --secondary: #d7b494;
    --accent: #5d3a1a;
    --text-main: #3c2a1a;
    --text-muted: #6e5541;
    --text-light: #ffffff;
    --gold: #c5a059;
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(60, 42, 26, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5e3c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, .brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.mobile-only {
    display: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(252, 247, 243, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 101;
}

.menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.menu-btn:hover span:nth-child(2) {
    transform: translateX(5px);
}

.brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.header-brand-text {
    font-family: 'Ruslan Display', cursive;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

header.scrolled-deep .header-brand-text {
    opacity: 1;
    visibility: visible;
}

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

.scroll-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.scroll-nav-btn svg {
    width: 20px;
    height: 20px;
}

.scroll-nav-btn:hover {
    background: var(--accent);
    color: var(--bg-light);
}

.cta-small {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--bg-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.3);
}

.cta-small:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -24%; /* Hidden by default */
    width: 24%;
    height: 100vh;
    background-color: var(--bg-alt);
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother, faster transition */
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    will-change: transform; /* Hint for browser optimization */
    padding: 6rem 2rem; /* Adjusted padding to lift sections */
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(100%);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    line-height: 1;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 4rem;
}

.sidebar-logo img {
    width: 375px; /* Increased 2.5x from 150px */
    height: auto;
    mix-blend-mode: multiply;
}

.nav-links li {
    margin-bottom: 2rem;
}

.nav-links a {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    display: block;
    position: relative;
    width: fit-content;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateX(10px); /* сдвиг без изменения ширины — текст не переносится */
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.sidebar-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nav-links {
    flex-grow: 1; /* Pushes the footer down */
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 30, 18, 0.4);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--bg-alt) 0%, var(--bg-light) 100%);
    z-index: -1;
}

.hero-logo {
    width: 1800px; /* Even larger as requested */
    max-width: 98vw;
    max-height: 55vh; /* Increased back slightly since it's cropped now */
    object-fit: contain;
    margin-bottom: 0.5rem;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.0); /* Toned down to prevent overexposure */
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    background-color: transparent; 
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent); /* Same color as other brand text */
    line-height: 1.1;
}

.hero h1 .accent {
    display: block;
    font-size: 3.5rem;
    font-family: 'Ruslan Display', cursive;
    letter-spacing: 5px;
    color: var(--accent); /* Consistent color */
    margin-top: 0;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    opacity: 1; /* Show immediately, browser will swap font when ready */
}



.club-type {
    font-size: 1.25rem; /* Reduced by 30% approx */
    font-family: 'Ruslan Display', cursive;
    color: var(--accent);
    margin-bottom: 3rem; /* Added margin since subtitle is gone */
    letter-spacing: 2px;
}

.subtitle {
    display: none; /* Removed as requested */
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn.primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 10px 20px rgba(93, 58, 26, 0.2);
}

.btn.secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.btn.primary:hover {
    background-color: var(--primary);
}

/* Info Section */
.info-section {
    padding: 50px 0 100px;
    background-color: var(--bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start; /* Alignment with image top */
}



.info-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.features {
    margin-top: 2rem;
}

.features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.features li::before {
    content: "—"; /* Changed from checkmark to dash */
    color: var(--gold);
    font-weight: 900;
}

.visual-card {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-alt);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.visual-card:hover .about-img {
    transform: scale(1.05);
}

.card-inner {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--secondary);
    border-radius: 10px;
}

/* Info Section Improvements */
.info-section.alt-bg {
    background-color: var(--bg-alt);
}

.info-grid.reverse {
    direction: rtl;
}

.info-grid.reverse .info-text {
    direction: ltr;
}

.info-grid.reverse .info-visual {
    direction: ltr;
}

/* Gallery Section */
.gallery-section {
    padding: 30px 0 100px; /* Reduced top padding to lift section */
    background-color: var(--bg-light); /* Soft cream instead of pure white */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Section (Tournaments) */
.dark-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tournament-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.t-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-align: center;
}

.t-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    transform: scale(1.05);
    border: none;
}

.t-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.t-date {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.t-card.featured .t-date {
    color: white;
    opacity: 0.8;
}

.t-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.t-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.t-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    font-weight: 600;
}

.t-card.featured .t-link {
    background: white;
    color: var(--accent);
    border: none;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.vk-icon-circle {
    border: 2.5px solid var(--gold);
    border-radius: 50%;
    width: 60px !important;
    height: 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--gold);
}

.contact-item:hover .contact-icon {
    /* No hover effects as requested */
}

.contact-item span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--gold);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--bg-alt);
    padding: 40px 0 30px; /* Reduced padding to lift information higher */
    border-top: 1px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 20px; /* Reduced from 60px */
}

.footer-text-logo {
    font-family: 'Ruslan Display', cursive;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: flex-start;                 /* верх — чтобы высокие окна не обрезались */
    overflow-y: auto;                        /* прокручивается САМ оверлей: крестик и кнопки доступны всегда */
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    /* отступы по краям + учёт «чёлки»/домашней полосы на телефонах */
    padding: 24px 14px;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    margin: auto;                            /* центр по вертикали, если окно короче экрана; иначе прокрутка оверлея */
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    color: var(--text-main);
}

.modal-content.doc-modal {
    max-width: 720px;
    padding: 2.5rem;
}

.doc-body {
    max-height: 70vh;
    overflow-y: auto;
    text-align: left;
    padding-right: 14px;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.doc-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.6rem 0 0.7rem;
    color: var(--text-main);
}

.doc-body h3:first-child {
    margin-top: 0;
}

.doc-body p {
    margin: 0 0 0.6rem;
}

.doc-body .doc-pre {
    margin-bottom: 1rem;
    text-align: justify;
}

.doc-body .doc-p {
    display: flex;
    gap: 0.45em;
    text-align: justify;
}

.doc-body .doc-p > .n {
    flex: 0 0 auto;
    min-width: 2.4em;
    font-weight: 600;
    color: var(--primary);
}

.doc-body .doc-dash {
    display: flex;
    gap: 0.5em;
    margin-left: 1.6em;
    margin-bottom: 0.45rem;
}

.doc-body .doc-dash > .n {
    flex: 0 0 auto;
    color: var(--primary);
}

.doc-body strong {
    font-weight: 700;
}

.doc-more {
    margin-top: 1.2rem;
    text-align: right;
    font-size: 0.85rem;
}

.doc-more a {
    color: var(--primary);
    text-decoration: none;
}

.doc-more a:hover {
    text-decoration: underline;
}

/* тонкий скроллбар внутри документа */
.doc-body::-webkit-scrollbar {
    width: 8px;
}

.doc-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--accent);
}

.footer-btn {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.footer-btn:hover {
    color: var(--primary);
    padding-left: 10px;
}


.footer-brand p {
    max-width: 300px;
    color: var(--text-muted);
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px; /* Reduced from 40px */
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 50%;
        left: -50%;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-section, .gallery-section, .dark-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80%;
        left: -80%;
    }
    .hero h1 {
        font-size: 4.2rem;
    }
    .hero h1 .accent {
        font-size: 3.3rem;
    }
    .club-type {
        font-size: 1.2rem;
    }
    .header-brand-text {
        font-size: 1.1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .hero-logo {
        max-height: 35vh;
        mix-blend-mode: multiply; 
        filter: contrast(1.1) brightness(1.0);
        isolation: isolate;
    }
    .hero {
        height: auto;
        min-height: 80vh;
        padding-bottom: 2rem;
    }
    .hero-bg {
        background: #fdf8f4 !important;
    }
    .hero-content {
        padding-bottom: 1rem;
    }
    .info-section, .gallery-section, .dark-section {
        padding: 30px 0;
    }
    .container {
        padding: 0 1rem;
    }
    footer {
        padding: 30px 0 20px;
    }
    .section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    .header-brand-text {
        display: none;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero h1 .accent {
        font-size: 1.8rem;
    }
    .hero-btns {
        flex-direction: column;
        padding: 0 2rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

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

.hero-btns.fade-in { animation-delay: 0.4s; }
.subtitle.fade-in { animation-delay: 0.2s; }

/* Hide age gate if verified via JS */
.age-verified-session .age-gate-overlay {
    display: none !important;
}

/* Age Gate Styles */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 248, 244, 0.8);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.age-gate-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.age-gate-content {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--bg-alt);
}

.age-gate-content h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.age-gate-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.age-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.age-btn {
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: 'Outfit', sans-serif;
}

.age-btn.btn-yes {
    background-color: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(93, 58, 26, 0.2);
}

.age-btn.btn-yes:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 58, 26, 0.3);
}

.age-btn.btn-no {
    background-color: transparent;
    color: var(--text-muted);
    border: 2px solid var(--secondary);
}

.age-btn.btn-no:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.legal-notice-premium {
    text-align: center;
    background: #fdf8f4;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(198, 161, 107, 0.2);
    margin: 1.5rem 0;
    box-shadow: inset 0 0 40px rgba(198, 161, 107, 0.05);
}

.legal-notice-premium p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.2rem !important;
    color: var(--text-main) !important;
    font-weight: 400;
}

.legal-notice-premium p:last-child {
    margin-bottom: 0 !important;
    font-style: italic;
    color: var(--accent) !important;
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

.age-disclaimer {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .age-gate-content {
        padding: 3rem 2rem;
    }
    .info-text h2, .section-header h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem;
    }
    .info-text h2 {
        text-align: center;
    }
    .info-text p {
        text-align: justify;
    }
    .info-text p:first-of-type {
        text-align: left;
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    .hero-logo.mobile-only {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 80vh;
        animation: none;
    }
    .hero {
        height: auto;
        min-height: 60vh;
        padding-top: 60px;
    }
    #about {
        margin-top: -80px;
        position: relative;
        z-index: 10;
    }
}

/* Booking/Registration Section Styles */
.booking-section {
    background-color: var(--bg-alt);
    position: relative;
}

.booking-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.booking-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 94, 60, 0.15);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.booking-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 20px 40px rgba(60, 42, 26, 0.15);
}

.booking-form-premium {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
}

.select-wrapper, .input-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select, .input-wrapper input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 94, 60, 0.3);
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 3rem;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary);
    pointer-events: none;
    transition: var(--transition);
}

.select-wrapper:hover::after {
    border-top-color: var(--gold);
}

.input-wrapper input:focus, .select-wrapper select:focus {
    border-color: var(--gold);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

.input-spinner {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 94, 60, 0.1);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.validation-badge {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: none;
    animation: slideDown 0.3s ease-out forwards;
}

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

.validation-badge.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.validation-badge.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.btn-premium {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(93, 58, 26, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-premium:hover:not(.btn-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(93, 58, 26, 0.3);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-premium:active:not(.btn-disabled) {
    transform: translateY(0);
}

.btn-disabled {
    background: #e2d7cd !important;
    color: #9c8e82 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Success Card Overlay */
.booking-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    gap: 1.5rem;
    animation: fadeInSuccess 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInSuccess {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.15);
}

.success-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.booking-success-overlay h3 {
    font-size: 2rem;
    color: var(--accent);
}

.booking-success-overlay p {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    max-width: 400px;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .booking-card {
        padding: 2rem 1.5rem;
    }
    .booking-success-overlay {
        padding: 2rem 1.5rem;
    }
    .booking-success-overlay h3 {
        font-size: 1.6rem;
    }
}

.modal-header-premium {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header-premium h2 {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.modal-header-premium p {
    font-size: 1rem;
    color: var(--text-muted);
}

.booking-card-modal {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* --- VIEW ALL GALLERY POPUP --- */
.view-all-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 0;
}

.view-all-btn:hover {
    color: var(--primary);
}

.albums-list-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Albums Grid & Cards */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.album-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(139, 94, 60, 0.1);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(139, 94, 60, 0.2);
    border-color: var(--gold);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-card:hover img {
    transform: scale(1.05);
}

.album-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.3s;
}

.album-card:hover .album-card-overlay {
    background: linear-gradient(to top, rgba(93, 58, 26, 0.95) 0%, rgba(0,0,0,0.5) 65%, transparent 100%);
}

.album-card-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.album-card-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    display: flex;
    justify-content: space-between;
}

.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 576px) {
    .album-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

/* Album detail view styling */
.album-detail-header {
    margin-bottom: 25px;
}

.back-to-albums-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(254, 203, 0, 0.12), rgba(254, 203, 0, 0.04));
    border: 1px solid rgba(254, 203, 0, 0.3) !important;
    color: #bfa370 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.back-to-albums-btn:hover {
    background: rgba(254, 203, 0, 0.25);
    color: #fff !important;
    border-color: var(--gold) !important;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(254, 203, 0, 0.2);
}

.album-detail-title {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.album-detail-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.album-photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid rgba(139, 94, 60, 0.08);
}

.album-photo-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(139, 94, 60, 0.15);
    border-color: var(--gold);
}

.album-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-photo-item:hover img {
    transform: scale(1.05);
}

/* Custom Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 8, 5, 0.96);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    user-select: none;
    -webkit-user-drag: none;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #eee;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--gold);
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border-color: var(--gold);
}

.lightbox-nav.prev {
    left: -65px;
}

.lightbox-nav.next {
    right: -65px;
}

/* Lightbox Description & Counter */
.lightbox-desc {
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 20010;
    box-sizing: border-box;
    color: #fff;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    word-wrap: break-word;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 6px;
}

.lightbox-counter {
    position: absolute;
    bottom: -95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20010;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .lightbox-nav.prev {
        left: 10px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    .lightbox-nav.next {
        right: 10px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    .lightbox-desc {
        position: fixed;
        bottom: 50px;
        left: 5%;
        width: 90%;
        transform: none;
        max-width: 100%;
    }
    .lightbox-counter {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        position: fixed;
        font-size: 2.5rem;
        z-index: 20005;
    }
    .lightbox-content {
        max-height: 80%;
        width: 100%;
        max-width: 100%;
    }
    .modal-content {
        padding: 2rem 1.25rem;
        border-radius: 16px;
        width: 100%;
    }
    .close-modal {
        top: 0.75rem;
        right: 1rem;
    }
}

/* === Регистрация новых игроков (сайт) === */
.reg-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent);
    margin: 2px 0 20px;
    line-height: 1.55;
}
.reg-hint a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity .2s;
}
.reg-hint a:hover { opacity: .75; }

.reg-optional {
    font-weight: 400;
    color: #a08d7a;
    font-size: 0.85em;
}

.reg-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--accent);
    line-height: 1.5;
    margin: 4px 0 20px;
    cursor: pointer;
}
.reg-terms input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--gold);
    cursor: pointer;
}
.reg-terms a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Док-модалка (оферта/правила) всегда поверх модалки регистрации */
#modal-container.modal { z-index: 1100; }

/* === Личный кабинет (профиль игрока на сайте) === */
.profile-result.hidden { display: none; }
.pf-card { text-align: left; }
.pf-head {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(93, 58, 26, 0.15);
    margin-bottom: 18px;
}
.pf-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--accent);
    font-weight: 700;
    line-height: 1.2;
}
.pf-nick { color: var(--gold); font-weight: 600; margin-top: 4px; }
.pf-id { margin-top: 8px; color: var(--accent); font-size: 0.95rem; }
.pf-id b { color: var(--gold); }
.pf-phone { margin-top: 4px; color: var(--accent); font-size: 0.95rem; }
.pf-section { margin-bottom: 18px; }
.pf-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-stat {
    background: rgba(197, 160, 89, 0.10);
    border: 1px solid rgba(197, 160, 89, 0.30);
    border-radius: 10px;
    padding: 10px 4px;
    text-align: center;
}
.pf-stat span { display: block; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.pf-stat label { display: block; font-size: 0.72rem; color: #8a7458; margin-top: 3px; }
.pf-rating-total {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(93, 58, 26, 0.08));
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--accent);
    font-size: 1rem;
}
.pf-rating-total b { color: var(--gold); font-size: 1.15rem; }
.pf-rt-list { margin-top: 10px; }
.pf-rt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-bottom: 1px dashed rgba(93, 58, 26, 0.15);
    color: var(--accent);
    font-size: 0.95rem;
}
.pf-rt-row b { color: var(--gold); flex-shrink: 0; }
.pf-x { color: #8a7458; font-size: 0.85em; }
.pf-prize { padding: 6px 0; color: var(--accent); }
.pf-empty { color: #8a7458; font-style: italic; }
#profile-back-btn { margin-top: 12px; }

@media (max-width: 600px) {
    .pf-stats { grid-template-columns: repeat(2, 1fr); }
    .pf-name { font-size: 1.4rem; }
}

/* SVG-иконки в профиле (вместо эмодзи) */
.pf-ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.pf-section-title { display: flex; align-items: center; gap: 8px; }
.pf-phone, .pf-nick { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pf-medal { width: 30px; height: 30px; display: block; margin: 0 auto 4px; }
.pf-prize { display: flex; align-items: center; gap: 6px; }
.pf-prize .pf-ico { color: var(--gold); }

/* запас прочности: скролл оверлея модалки не «пробивает» фон, плавно на тач-устройствах */
.modal, .doc-body { overscroll-behavior: contain; }

/* v722: блок с основной информацией о выбранном турнире (под селектом, перед «Ваш игровой ID») */
.tour-info-block {
    background: var(--bg-alt);
    border: 1px solid var(--secondary);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
}
.tour-info-block.hidden { display: none; }
.tour-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(139, 94, 60, 0.10);
    font-size: 0.95rem;
}
.tour-info-row:last-child { border-bottom: none; }
.tour-info-row > span:first-child { color: var(--text-muted); }
.tour-info-row > span:last-child { color: var(--text-main); font-weight: 600; text-align: right; }
.tour-info-prizes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 94, 60, 0.18);
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}
.tour-info-prizes-title {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
