/*
Theme Name: Billions800 Luxury
Description: 100% адаптив + без горизонтального скролла
Version: 4.3 — все косяки исправлены, всё как было изначально
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Inter:wght@300..900&display=swap');

/* Жёстко убираем горизонтальный скролл на всех устройствах */
html,body{
    width:100%;
    max-width:100vw;
    overflow-x:hidden;
    margin:0;
    padding:0;
}
*,*::before,*::after{
    box-sizing:border-box;
    margin:0;
    padding:0;
}
body{
    background:#0B0E17!important;
    color:#e5e7eb;
    font-family:'Inter',sans-serif;
    min-height:100vh;
}
/* Убираем точки у меню навсегда */
ul,ol,li{list-style:none!important;margin:0!important;padding:0!important}
/* Золотой текст */
.gold{
    background:linear-gradient(135deg,#F5D787,#D4AF37,#B8860B);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
    font-weight:900;
}
h1,h2,h3,h4,h5,h6{
    font-family:'Cinzel Decorative',serif!important;
    color:#D4AF37!important;
    text-shadow:0 0 30px rgba(212,175,55,.4);
}
a{color:#D4AF37;text-decoration:none} /* золотой цвет ссылок, как было изначально */
/* ШАПКА — теперь точно влезает */
header{
    text-align:center;
    padding:15vh 5vw 8vh;
    width:100%;
    max-width:100vw;
}
header h1{
    font-size:12vw; /* идеально под любой телефон */
    letter-spacing:2px;
    line-height:1;
}
header p{
    font-size:3.8vw;
    color:#b3b3b3; /* серый, как было, не белый */
    letter-spacing:4px;
    margin:3vh 0;
    text-transform:uppercase;
}
/* Меню на мобиле — вертикальное, но компактное */
.main-menu{
    display:flex;
    flex-direction:column;
    gap:3vh;
    font-size:4.8vw;
    text-transform:uppercase;
    letter-spacing:3px;
    margin-top:5vh;
}
.main-menu li { list-style: none !important; } /* белые точки убраны навсегда */
/* Заголовок новостей */
h2.news-title{
    font-size:8vw;
    text-align:center;
    margin:10vh auto 6vh;
    max-width:90%;
}
/* Карточки */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:5vh;
    padding:0 5vw;
    width:100%;
    max-width:100vw;
    justify-content: center; /* центр для текста новостей на десктопе */
}
.card-content {
    text-align: center !important; /* центр для текста новостей */
}
.card{
    background:rgba(0,0,0,.5);
    border:1px solid rgba(212,175,55,.3);
    border-radius:16px;
    overflow:hidden;
}
.card img{width:100%;height:220px;object-fit:cover}
.card-content{padding:1.8rem}
/* Десктоп — красиво и крупно */
@media (min-width:768px){
    header h1{font-size:7.5rem}
    header p{font-size:1.8rem; color: #b3b3b3 !important; } /* серый, как было */
    .main-menu{
        flex-direction:row;
        gap:5rem;
        font-size:1.6rem;
        margin-top:4rem;
    }
    h2.news-title{font-size:5.5rem;margin:6rem 0 4rem}
    .grid{gap:3rem;padding:0 2rem}
}
/* Футер */
footer{
    text-align:center;
    padding:10vh 5vw 6vh;
    border-top:1px solid rgba(212,175,55,.2);
}
#hero-full {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}
.hero-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}
.hero-img.active { opacity: 1; }
/* Тёмный оверлей + лёгкое блюр, чтобы текст всегда читался */
#hero-full::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 14, 23, 0.72); /* тёмный полупрозрачный */
    backdrop-filter: blur(2px); /* лёгкое размытие фона */
    z-index: 0;
}
/* Чтобы логотип и меню были поверх оверлея */
header, .main-menu {
    position: relative;
    z-index: 10;
}
/* Немного увеличиваем контрастность текста на мобиле */
@media (max-width: 767px) {
    header h1 {
        font-size: 11vw !important;
        text-shadow: 0 0 30px #000;
    }
    header p {
        font-size: 3.2vw !important;
        text-shadow: 0 0 20px #000;
    }
    .main-menu {
        font-size: 4.5vw !important;
        gap: 2.8vh;
        text-shadow: 0 0 15px #000;
    }
}
/* Герой только сверху — высота 90% экрана */
#hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}
.hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11,14,23,0.4) 0%, rgba(11,14,23,0.9) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 20vh;
    color: white;
}
.hero-menu {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.hero-menu a {
    color: #D4AF37;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}
/* На мобиле ещё компактнее */
@media (max-width: 767px) {
    .hero-content { padding-top: 15vh; }
    .hero-menu {
        font-size: 5vw;
        gap: 2.5vh;
    }
    #hero-section { height: 85vh; }
}
/* ============ СТРАНИЦА О КЛУБЕ — ФИНАЛЬНАЯ ВЕРСИЯ 2025 ============ */
.about-page { 
    max-width: 1000px;
    margin: 0 auto;
    padding: 10vh 5vw 15vh;
    line-height: 1.8;
}
/* Главный заголовок — в одну строку на мобиле */
.about-page .gold-title {
    font-size: clamp(2.5rem, 10vw, 5rem); /* от 40px до 80px */
    text-align: center;
    margin-bottom: 8vh;
    white-space: nowrap; /* Billions800 не разрывается */
}
/* Обычный текст */
.about-text {
    font-size: clamp(1rem, 4.2vw, 1.35rem);
    color: #ddd;
}
/* Подзаголовки */
.about-text h2 {
    font-size: clamp(1.8rem, 6.5vw, 2.8rem);
    text-align: center;
    margin: 10vh 0 5vh;
    color: #D4AF37;
}
/* Список интересов */
.interests {
    font-size: clamp(1.05rem, 4.5vw, 1.5rem);
    padding-left: 6vw;
    margin: 5vh 0;
}
.interests li { margin: 3.5vh 0; }
/* Ссылка на ВК */
.vk-lab {
    font-size: clamp(1.1rem, 4.8vw, 1.6rem);
    text-align: center;
    margin: 7vh 0;
}
.vk-lab a {
    color: #D4AF37;
    border-bottom: 1px solid rgba(212,175,55,.4);
    padding-bottom: 3px;
}
/* Блок «Как попасть» */
.entry-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
    text-align: center;
    margin: 12vh 0 6vh;
}
.entry-text {
    font-size: clamp(1.1rem, 4.5vw, 1.7rem);
    text-align: center;
    max-width: 90%;
    margin: 0 auto 10vh;
}
/* Кнопка */
.entry-cta { text-align: center; margin: 10vh 0; }
.gold-btn.big {
    display: inline-block;
    padding: clamp(12px, 3.5vw, 20px) clamp(30px, 10vw, 60px);
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    border: 2px solid #D4AF37; /* золотая рамка, как было */
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all .4s;
}
.gold-btn.big:hover {
    background: #D4AF37;
    color: #000;
}
/* ФИНАЛЬНЫЙ ФИКС ЗАГОЛОВКА "О КЛУБЕ" НА МОБИЛЕ */
@media (max-width: 767px) {
    .about-page .gold-title {
        font-size: 9.5vw !important; /* чуть меньше, чтобы точно влезло */
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: clip;
        padding: 0 2vw;
        letter-spacing: -0.5px; /* чуть сжимаем буквы */
    }
}
/* Если вдруг всё-таки разорвёт — принудительно в одну строку */
.about-page .gold-title br { display: none !important; }
/* ОГРАНИЧИВАЕМ ШИРИНУ САЙТА НА ДЕСКТОПЕ — КАК У ВК И FACEBOOK */
@media (min-width: 1200px) {
    body,
    #page,
    .site,
    .site-content,
    main,
    .entry-content,
    .hero-section,
    .hero-content,
    .about-page,
    .posts-container,
    .news-grid { /* если у тебя новости в гриде */
        max-width: 1280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* Если у тебя новости в карточках — дополнительно центрируем их */
.posts-wrapper,
.posts-grid,
.news-list,
.blog-posts {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Футер */
footer {
    text-align: center !important;
    padding: 10vh 5vw 6vh;
    border-top: 1px solid rgba(212,175,55,.2);
}
/* ВОЗВРАЩАЕМ КРАСИВУЮ АНИМАЦИЮ НОВОСТЕЙ ПРИ НАВЕДЕНИИ */
.card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-16px) scale(1.02) !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.35) !important;
    z-index: 10;
}

/* Лёгкое свечение рамки при наведении */
.card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, transparent, #D4AF37, transparent);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    pointer-events: none;
}

.card:hover::before {
    opacity: 0.4;
}
/* КРАСИВАЯ АНИМАЦИЯ ДЛЯ ПУНКТОВ МЕНЮ (ГЛАВНАЯ + МОБИЛКА) */
.hero-menu a,
.main-menu a {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 6px 0;
    transform: translateY(0);
}

/* Плавное поднятие + тень */
.hero-menu a:hover,
.main-menu a:hover {
    transform: translateY(-6px);
    text-shadow: 0 12px 25px rgba(212, 175, 55, 0.5);
}

/* Золотая полоска снизу — как у топовых сайтов */
.hero-menu a::after,
.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.hero-menu a:hover::after,
.main-menu a:hover::after {
    width: 80%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}
/* ПРЕМИУМ-АНИМАЦИЯ ДЛЯ МОБИЛКИ — ЧТОБЫ ВСЁ ПАРИЛО И СИЯЛО */
@media (max-width: 767px) {
    /* Карточки новостей — плавное поднятие при тапе */
    .card {
        transition: all 0.45s cubic-bezier(0.25,0.8,0.25,1) !important;
    }
    .card:active {
        transform: translateY(-12px) scale(1.03) !important;
        border-color: #D4AF37 !important;
        box-shadow: 0 25px 50px rgba(212,175,55,0.4) !important;
    }

    /* Пункты меню — золотая полоска при тапе */
    .hero-menu a, .main-menu a {
        position: relative;
        overflow: hidden;
    }
    .hero-menu a::after, .main-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: #D4AF37;
        transition: all 0.45s ease;
        transform: translateX(-50%);
        box-shadow: 0 0 12px #D4AF37;
    }
    .hero-menu a:active::after, .main-menu a:active::after {
        width: 70%;
    }

    /* Кнопка "Подать заявку" — лёгкое свечение при нажатии */
    .gold-btn.big:active {
        transform: scale(0.96);
        box-shadow: 0 0 30px rgba(212,175,55,0.7);
        background: #D4AF37 !important;
        color: #000 !important;
    }

    /* Заголовки — лёгкое свечение при скролле (если хочешь — включи) */
    .news-title, .gold-title {
        transition: all 0.6s ease;
    }
    .news-title.visible, .gold-title.visible {
        text-shadow: 0 0 30px rgba(212,175,55,0.6);
    }
}
.entry-title { font-size: 48px !important; line-height: 1.2 !important; }
@media (max-width: 768px) { .entry-title { font-size: 42px !important; } }
@media (max-width: 480px) { .entry-title { font-size: 36px !important; } }
@media (max-width: 360px) { .entry-title { font-size: 32px !important; } }
.tight { margin: 30px 0 15px 0 !important; }
.tight:first-child { margin-top: 25px !important; }
/* ИНФОРМЕР ФОНДА — ЗОЛОТАЯ РАМКА ПРЕМИУМ */
.club-fund-informer {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a0f2e 100%);
    padding: 5px;
    border-radius: 20px;
    display: inline-block;
    margin: 30px auto;
    box-shadow: 0 0 30px rgba(183,147,95,0.4);
    background-clip: padding-box;
    border: 4px double transparent;
    background-origin: border-box;
    position: relative;
}
.club-fund-informer::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(45deg, #b7935f, #ffd700, #b7935f, #ffd700);
    z-index: -1;
    animation: goldGlow 6s linear infinite;
}
@keyframes goldGlow {
    0%,100% { opacity: 0.8; }
    50% { opacity: 1; }
}
.fund-inner {
    background: #0c0c1a;
    padding: 30px 50px;
    border-radius: 16px;
    text-align: center;
    min-width: 380px;
}
.fund-label {
    font-size: 18px;
    color: #b7935f;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.fund-amount {
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(90deg, #ffd700, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
@media (max-width: 480px) {
    .fund-inner { padding: 25px 30px; min-width: auto; }
    .fund-amount { font-size: 42px; }
}
