/*
Theme Name: Melina Imperium
Version: 4.0 (The Monolith Edition)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --gold: #C5A059;
    --dark: #050505;
    --border: rgba(197, 160, 89, 0.2);
    --white: #ffffff;
    --gray: #888888;
}

/* 1. BASE RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
#wpadminbar { display: none !important; }
html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.gold-text { color: var(--gold); }
.italic { font-style: italic; }

/* 2. THE IMPERIUM BUTTON */
.btn-wrap { display: inline-block; position: relative; cursor: pointer; }
.btn-imperium {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 20px 45px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    overflow: hidden;
    background: transparent;
    transition: 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.btn-imperium::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.7, 0, 0.3, 1), height 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 0;
}
.btn-imperium span { position: relative; z-index: 1; transition: 0.4s; }
.btn-imperium:hover { border-color: var(--gold); }
.btn-imperium:hover::before { width: 450px; height: 450px; }
.btn-imperium:hover span { color: #000; }

/* 3. BLOCK 1: MONOLITH (THE HERO) */
.block-monolith {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.monolith-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    display: block;
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 0.9;
    letter-spacing: -2px;
}

.m-right { padding-left: 20px; border-left: 1px solid var(--border); }

.big-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Декоративные координаты */
.hero-coords {
    position: absolute;
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--gold);
    opacity: 0.3;
    bottom: 50px;
}
.side-left { left: 5%; transform: rotate(-90deg); transform-origin: left; }

/* 4. BLOCK 2: DNA */
.block-dna {
    padding: 180px 0;
    border-top: 1px solid var(--border);
    background: #080808;
}

.block-dna h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 100px;
    max-width: 1100px;
}

.dna-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.dna-item { border-top: 1px solid var(--border); padding-top: 40px; }
.dna-item .num { color: var(--gold); font-size: 10px; letter-spacing: 3px; display: block; margin-bottom: 20px; }
.dna-item p { font-size: 1.1rem; color: var(--gray); }

/* 5. BLOCK 3: MISSION */
.block-mission {
    padding: 200px 0;
    text-align: center;
    background: radial-gradient(circle at bottom, #111 0%, var(--dark) 100%);
}

.mission-wrapper { max-width: 900px; margin: 0 auto; }
.mission-wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 60px;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .monolith-grid { grid-template-columns: 1fr; gap: 40px; }
    .m-right { border-left: none; padding-left: 0; }
    .dna-grid { grid-template-columns: 1fr; }
}








/* MEGA FOOTER */
.mega-footer {
    padding: 150px 0 60px;
    background: #000;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.footer-bg-text {
    position: absolute;
    bottom: -50px; left: 0;
    font-size: 22vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    line-height: 0.8;
    z-index: 0;
    pointer-events: none;
}

.footer-cta {
    text-align: center;
    margin-bottom: 150px;
    position: relative;
    z-index: 1;
}

.footer-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin: 30px 0 50px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

.label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 25px;
}

.f-text { color: var(--gray); font-size: 14px; line-height: 1.6; }

.f-nav { list-style: none; }
.f-nav li { margin-bottom: 12px; }
.f-nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: 0.3s;
    font-size: 14px;
}
.f-nav a:hover { opacity: 1; color: var(--gold); }

.status-item { display: flex; align-items: flex-start; gap: 15px; }
.dot {
    width: 8px; height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-top: 6px;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 2s infinite;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}
.legal-links a:hover { color: var(--white); }




/* FOOTER MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .mega-footer {
        padding: 80px 0 40px; /* Уменьшаем гигантские отступы */
    }

    .footer-bg-text {
        font-size: 30vw; /* Делаем фоновую надпись чуть заметнее */
        bottom: -20px;
    }

    .footer-cta {
        margin-bottom: 80px;
    }

    .footer-cta-title {
        font-size: 2.2rem; /* Уменьшаем заголовок, чтобы не переносился криво */
        margin: 20px 0 40px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr; /* В одну колонку */
        gap: 40px;
        text-align: center; /* Центрируем контент для баланса */
        margin-bottom: 60px;
    }

    .status-item {
        justify-content: center; /* Центрируем статус рынка */
    }

    .footer-bottom {
        flex-direction: column; /* Копирайт и ссылки друг под другом */
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .legal-links a {
        margin-left: 0;
    }
}







/* HEADER BASE */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: background 0.5s, backdrop-filter 0.5s;
}

/* Эффект при скролле (блюр как в iOS, но круче) */
.header.scrolled {
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    padding: 15px 0;
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO AURA */
.logo { position: relative; z-index: 10; display: block; }
.logo img { height: 24px; width: auto; filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0)); transition: 0.5s; }
.logo:hover img { filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.5)); }

/* NAV LINKS */
.nav-list { display: flex; align-items: center; gap: 60px; list-style: none; }
.nav-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.nav-num {
    font-size: 9px;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
}

.nav-txt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    font-weight: 600;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Эффект появления текста снизу при ховере */
.nav-txt::before {
    content: attr(data-text);
    position: absolute;
    top: 100%; left: 0;
    color: var(--gold);
}

.nav-link:hover .nav-txt { transform: translateY(-100%); }

/* BURGER - Минимализм */
.burger-wrap { cursor: pointer; padding: 10px; }
.burger { width: 30px; height: 10px; position: relative; }
.burger span {
    position: absolute;
    height: 1px;
    background: var(--white);
    transition: 0.5s;
    right: 0;
}
.line-1 { width: 100%; top: 0; }
.line-2 { width: 60%; bottom: 0; }

.burger-wrap:hover .line-2 { width: 100%; }

/* MOBILE OVERLAY REWORK */
.mobile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #050505;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    clip-path: circle(0% at 95% 5%);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-overlay.active { clip-path: circle(150% at 95% 5%); }

/* Тот самый крестик */
.close-portal {
    position: absolute;
    top: 40px;
    right: 5%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cross-line {
    position: absolute;
    width: 30px;
    height: 1px;
    background: var(--gold);
    transition: 0.5s transform cubic-bezier(0.7, 0, 0.3, 1);
}

.line-left { transform: rotate(45deg); }
.line-right { transform: rotate(-45deg); }

.close-txt {
    position: absolute;
    bottom: -10px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    opacity: 0;
    transition: 0.4s;
}

.close-portal:hover .line-left { transform: rotate(135deg); }
.close-portal:hover .line-right { transform: rotate(45deg); }
.close-portal:hover .close-txt { opacity: 1; bottom: -5px; }

/* Навигация внутри меню */
.mobile-nav-wrapper { margin-bottom: 80px; }

.mobile-nav { list-style: none; }
.mobile-nav li { margin-bottom: 25px; overflow: hidden; }

.mobile-nav a {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4rem); /* Сделали меньше и изящнее */
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.5s;
}

.mobile-nav a .nav-num {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--gold);
    font-weight: 300;
}

.mobile-nav a:hover {
    color: var(--gold);
    transform: translateX(20px);
}

/* Футер внутри меню */
.mobile-footer-info {
    display: flex;
    gap: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
}

.mobile-footer-info p {
    font-size: 13px;
    color: var(--gray);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}






/* HEADER RESPONSIVE */
@media (max-width: 1024px) {
    /* Прячем десктопное меню, оставляем только лого и бургер */
    .nav-desktop {
        display: none; 
    }

    .header-container {
        justify-content: space-between;
    }

    .burger-wrap {
        display: block !important; /* Гарантируем видимость бургера */
    }

    .logo img {
        height: 50px; /* Чуть меньше лого на мобилке */
    }
}

/* Фикс для мобильного меню (текст) */
@media (max-width: 480px) {
    .mobile-nav a {
        font-size: 2.5rem; /* Еще чуть меньше, чтобы не ломало строки */
    }
    
    .mobile-footer-info {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
}








.logo img {
    height: 54px; /* Отрегулируй высоту под себя */
    width: auto;
    transition: filter 0.5s ease, transform 0.5s ease;
}

.logo:hover img {
    /* Золотистое свечение при наведении */
    filter: drop-shadow(0 0 15px rgba(197, 160, 89, 0.6));
    transform: scale(1.05);
}