:root {
    --nav-h: 80px;
    --bg-dark: #000000;
    --bg-anthracite: #1a1a1a;
    --white: #ffffff;
    --pt-serif: "PT Serif", serif;
    --satoshi: 'Satoshi', sans-serif;
    --cubic: cubic-bezier(0.23, 1, 0.32, 1);
    --container-w: 1200px;
    --side-gutter: 25px;
}

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

body,
html {
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--satoshi);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 10000;
    display: flex;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--side-gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 35px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Состояние активной ссылки */
.nav-links a.active {
    opacity: 1;
    position: relative;
}

/* Линия под текстом */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    /* Расстояние от текста до линии */
    left: 0;
    width: 100%;
    height: 2px;
    /* Толщина линии */
    background-color: var(--white);
}

/* Burger Button */
.burger-btn {
    display: none;
    /* По умолчанию скрыт на десктопе */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

.burger-btn span {
    width: 28px;
    height: 2px;
    background-color: var(--white);
    transition: 0.4s var(--cubic);
}

/* Состояние крестика */
.burger-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.6s var(--cubic);
}

.mobile-menu.is-active {
    right: 0;
}

.mobile-menu a {
    font-family: var(--pt-serif);
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s var(--cubic);
}

/* Анимация появления ссылок в меню */
.mobile-menu.is-active a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        /* Прячем обычные ссылки */
    }

    .burger-btn {
        display: flex;
        /* Показываем бургер */
    }
}

/* ===== COMPACT LUXURY FOOTER ===== */
.footer {
    background-color: var(--bg-anthracite);
    color: var(--white);
    padding: 60px 0 30px;
    /* Уменьшенные вертикальные отступы */
    font-family: var(--satoshi);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--side-gutter);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* Левый блок */
.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-address {
    font-style: normal;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 20px;
}

.footer-contacts-links {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.3s var(--cubic);
}

.footer-link:hover {
    opacity: 1;
}

/* Правый блок (Навигация) */
.footer-nav-wrapper ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.footer-nav-wrapper a {
    color: var(--white);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: 0.3s var(--cubic);
}

.footer-nav-wrapper a:hover {
    opacity: 1;
}

/* Разделитель и Копирайт */
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Социальные иконки */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s var(--cubic), transform 0.3s var(--cubic);
}

.footer-socials a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav-wrapper ul {
        flex-direction: column;
        gap: 12px;
    }

    .footer-contacts-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}




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

/* Hero Section */
.hookah-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-info h1 {
    font-size: 72px;
    line-height: 0.9;
    margin: 20px 0;
    font-family: 'PT Serif', serif;
}

.hero-visual img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Chess Grid - ИСПРАВЛЕННЫЙ */
.chess-item {
    display: grid;
    grid-template-columns: 550px 1fr;
    /* Ограничиваем ширину фото */
    gap: 80px;
    margin-bottom: 120px;
    align-items: center;
}

.chess-item.reverse {
    grid-template-columns: 1fr 550px;
}

.chess-item.reverse .chess-media-wrapper {
    order: 2;
}

.chess-img-box {
    width: 100%;
    height: 450px;
    /* Фиксированная высота, чтобы не ломать верстку */
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.chess-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Фото всегда аккуратно заполнит бокс */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.chess-img-box:hover img {
    transform: scale(1.05);
}

.step-num {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.3;
    letter-spacing: 3px;
}

.chess-text h3 {
    font-size: 32px;
    letter-spacing: 2px;
    margin: 15px 0;
}

.dark-wavy {
    filter: invert(1);
    width: 80px;
    opacity: 0.2;
    margin-bottom: 20px;
}

/* Features Grid */
.features-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.f-card {
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: transparent;
    color: #ffffff;
    will-change: transform, opacity; /* Помогает браузеру анимировать плавно */
}

.f-icon {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ===== Mobile & Adaptive ===== */
@media (max-width: 991px) {
    
    .container {
        padding: 0 20px; /* Уменьшаем боковые отступы контейнера */
    }

    /* Исправление Hero Grid на планшетах */
    .hookah-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-info h1 {
        font-size: 56px; /* Чуть меньше шрифт */
    }

    .hero-visual img {
        max-height: 400px;
    }

    /* Исправление Chess Item */
    .chess-item,
    .chess-item.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        margin-bottom: 80px;
    }

    .chess-img-box {
        height: 350px;
    }

    .features-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Критические исправления конкретно для мобильных телефонов */
    
    .main.hookah-details {
        margin-top: 60px; /* Уменьшаем верхний отступ из-за навигации */
    }

    .section-dark, 
    .section-light {
        padding: 60px 0 !important; /* Уменьшаем вертикальные отступы секций */
    }

    .hookah-hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-info {
        order: 1; /* Текст сначала */
        margin-bottom: 0;
    }

    .hero-info h1 {
        font-size: 42px; /* Значительно меньше шрифт заголовка */
        line-height: 1.1;
    }

    .hero-visual {
        order: 2; /* Картинка потом */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-visual img {
        min-height: 300px; /* Ограничиваем высоту картинки на телефоне */
        width: auto;
        object-fit: contain;
    }

    .chess-text h3 {
        font-size: 26px; /* Меньше заголовки в шахматке */
    }

    .f-card {
        padding: 30px; /* Меньше падинги в карточках */
    }
}