/* CSS Variables */
:root {
    /* Colors */
    --primary-bg: #161516;
    --secondary-bg: #3F2549;
    --accent-color: #9C38C5;
    --accent-hover: #8A2BB8;
    --text-primary: #FFFFFF;
    --text-secondary: #D1D1D1;
    --text-muted: #C9C9C9;
    --border-color: #674F6B;
    --card-bg: rgba(32, 42, 73, 0.16);
    --overlay-bg: rgba(148, 148, 148, 0.25);
    
    /* Typography */
    --font-primary: 'Anton', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-accent: 'Kadwa', serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 40px;
    --spacing-xxxl: 80px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0px 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0px 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0px 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-header: 1000;
    --z-mobile-menu: 999;
    --z-burger: 1001;
    --z-modal: 1002;
    --z-cookie: 1003;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

html, body {
    overflow-x: hidden !important;
    word-wrap: break-word;
    width: 100% !important;
}

/* Принудительная защита от горизонтального скролла */
html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xxxl);
    max-width: 1440px;
    margin: 0 auto;
}

.header__logo-img {
    width: 71px;
    height: 60px;
    object-fit: cover;
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.header__nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.header__nav-link:hover {
    color: var(--accent-color);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-normal);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__burger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    gap: 4px;
}

.header__burger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    z-index: var(--z-mobile-menu);
    transform: translateX(-100%);
    transition: var(--transition-normal);
    padding: var(--spacing-lg);
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.mobile-menu__logo {
    width: 82px;
    height: 65px;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.mobile-menu__nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-menu__nav-link:hover {
    background: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(70px + var(--spacing-xxl)) var(--spacing-xxxl) var(--spacing-xxl);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(22, 21, 22, 0) 0%,
        rgba(22, 21, 22, 0.37) 29.64%,
        rgba(22, 21, 22, 0.59) 69.47%,
        rgba(22, 21, 22, 1) 89.17%,
        rgba(22, 21, 22, 1) 100%
    ), url('images/backgr-img.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 940px;
}

.hero__title {
    font-family: var(--font-primary);
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.2;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.hero__subtitle {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Sports Bars Section */
.sports-bars {
    padding: var(--spacing-xxl) 0;
}

.sports-bar-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    backdrop-filter: blur(3.3px);
    width: 100% ;
    max-width: 100% ;
    box-sizing: border-box;
    padding: var(--spacing-lg);
    column-gap: var(--spacing-lg);
}

.sports-bar-card__image {
    width: 343px;
    height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.sports-bar-card__image--athens {
    background-image: url('images/mega-play-athens.webp');
}

.sports-bar-card__image--heraklion {
    background-image: url('images/play-opap-heraklion.webp');
}

.sports-bar-card__image--regency {
    background-image: url('images/regency-casino.webp');
}

.sports-bar-card__content {
    flex: 1;
    
}

.sports-bar-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.sports-bar-card__title {
    font-family: var(--font-primary);
    font-size: clamp(20px, 4vw, 34px);
    color: var(--text-primary);
    flex: 1;
    margin-right: var(--spacing-md);
}

.sports-bar-card__rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.sports-bar-card__star {
    width: 24px;
    height: 24px;
}

.sports-bar-card__score {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--text-primary);
}

.sports-bar-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.sports-bar-card__info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 16px;
}

.sports-bar-card__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sports-bar-card__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.sports-bar-card__detail-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    backdrop-filter: blur(3.3px);
}

.sports-bar-card__detail-item h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.sports-bar-card__detail-item p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.sports-bar-card__btn {
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
}

.sports-bar-card__btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* About Section */
.about {
    padding: var(--spacing-xxl) 0;
    background: var(--card-bg);
}

.about .container {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.about__content {
    flex: 1;
}

.about__title {
    font-family: var(--font-primary);
    font-size: clamp(20px, 4vw, 16px);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.about__text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.about__text h3 {
    color: var(--text-primary);
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

.about__text ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.about__text li {
    margin-bottom: var(--spacing-xs);
}

.about__text strong {
    color: var(--text-primary);
}

.about__image {
    width: 625px;
    height: 400px;
    background: url('images/block-about-us.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

/* Disclaimer Section */
.disclaimer {
    padding: var(--spacing-xxl) 0;
    background: var(--overlay-bg);
}

.disclaimer__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer__content h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.disclaimer__content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.disclaimer__content ul {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.disclaimer__content li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.disclaimer__content a {
    color: var(--accent-color);
    text-decoration: none;
}

.disclaimer__content a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
}

.footer__main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer__section h4 {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.footer__section p {
    color: var(--text-muted);
    line-height: 1.6;
}



.footer__resource-text {
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    display: inline-block;
    margin: var(--spacing-xs);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.footer__age-restriction {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
}

.footer__age-icon {
    width: 79px;
    height: 36px;
}

.footer__copyright {
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(22px);
}

.modal__content {
    position: relative;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-xxl);
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal__header h3 {
    font-family: var(--font-accent);
    font-size: 34px;
    color: var(--text-primary);
}

.modal__close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(156, 56, 197, 0.2);
}

.booking-form__submit {
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: var(--spacing-lg);
}

.booking-form__submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    z-index: var(--z-cookie);
    transform: translateY(100%);
    transition: var(--transition-normal);
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.cookie-consent__content p {
    color: var(--text-secondary);
    flex: 1;
}

.cookie-consent__buttons {
    display: flex;
    gap: var(--spacing-md);
}

.cookie-consent__btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.cookie-consent__btn--accept {
    background: var(--accent-color);
    color: var(--text-primary);
}

.cookie-consent__btn--accept:hover {
    background: var(--accent-hover);
}

.cookie-consent__btn--decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-consent__btn--decline:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Privacy Policy Page */
.privacy-policy {
    padding: calc(70px + var(--spacing-xxl)) 0 var(--spacing-xxl);
}

.privacy-policy__title {
    font-family: var(--font-accent);
    font-size: clamp(24px, 5vw, 34px);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.privacy-policy__section {
    margin-bottom: var(--spacing-xl);
}

.privacy-policy__section h2 {
    font-family: var(--font-primary);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.privacy-policy__section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.privacy-policy__section ul {
    color: var(--text-secondary);
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.privacy-policy__section li {
    margin-bottom: var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header__container {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .hero {
        padding: calc(70px + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
    }
    
    .sports-bar-card {
        flex-direction: column;
    }
    
    .sports-bar-card__image {
        width: 100%;
        height: 250px;
    }
    
    .about .container {
        flex-direction: column;
        text-align: center;
    }
    
    .about__image {
        width: 100%;
        max-width: 500px;
    }
    
    /* Предотвращение горизонтального скролла */
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .sports-bar-card__details {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 900px) {
    .header__nav {
        display: none;
    }
    
    .header__burger {
        display: flex;
    }
    
    .sports-bar-card__details {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: calc(70px + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
    }
    
    .sports-bars {
        padding: var(--spacing-lg) 0;
    }
    
    .sports-bar-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .sports-bar-card__content {
        padding: var(--spacing-md);
    }
    
    .sports-bar-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .modal__content {
        padding: var(--spacing-lg);
        margin: var(--spacing-md);
    }
    
    .privacy-policy {
        padding: calc(70px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: var(--spacing-md);
    }
    
    .hero__title {
        font-size: 20px;
    }
    
    .hero__subtitle {
        font-size: 14px;
    }
    
    .sports-bar-card__title {
        font-size: 18px;
    }
    
    .modal__content {
        padding: var(--spacing-md);
    }
    
    .cookie-consent__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent__btn {
        width: 100%;
    }
    
    /* Дополнительные правила для очень маленьких экранов */
    .sports-bar-card__content {
        padding: var(--spacing-sm);
    }
    
    .sports-bar-card__details {
        gap: var(--spacing-sm);
    }
    
    .sports-bar-card__detail-item {
        padding: var(--spacing-sm);
    }
    
    .footer__resources-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Дополнительные медиа-запросы для критических размеров */
@media (max-width: 360px) {
    .hero {
        padding: calc(70px + var(--spacing-sm)) var(--spacing-sm) var(--spacing-sm);
    }
    
    .sports-bars {
        padding: var(--spacing-md) 0;
    }
    
    .about {
        padding: var(--spacing-lg) 0;
    }
    
    .disclaimer {
        padding: var(--spacing-lg) 0;
    }
    
    .footer {
        padding: var(--spacing-md) 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Дополнительные классы для адаптивности */
.no-horizontal-scroll {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

.responsive-container {
    width: 100% ;
    max-width: 1280px;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Принудительное предотвращение горизонтального скролла */
@media (max-width: 1200px) {
    .sports-bar-card__image {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 900px) {
    .sports-bar-card__details {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }
    

}

@media (max-width: 768px) {

    
    .modal__content {
        margin: var(--spacing-md) !important;
        max-width: calc(100vw - 2 * var(--spacing-md)) !important;
    }
}

@media (max-width: 480px) {
    .sports-bar-card__content {
        padding: var(--spacing-sm) !important;
    }
    
    .sports-bar-card__details {
        gap: var(--spacing-sm) !important;
    }
    

}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .mobile-menu,
    .cookie-consent,
    .modal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
}
