/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* ЦВЕТОВАЯ ПАЛИТРА */
    --navy-deep: #020b1c; 
    --gold: #C5A059;      
    --white: #ffffff;     
    --white-soft: #e2e8f0; 
    --steel: #94a3b8;
    --text-dark: #0a1f40;
    
    /* Шрифты */
    --font-head: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
    
    --easing: cubic-bezier(0.2, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--navy-deep);
    color: var(--white-soft);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 15px 0;
    background: rgba(2, 11, 28, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; width: auto; object-fit: contain; transition: 0.3s; }

@media (max-width: 900px) {
    .logo img { height: 45px; }
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { 
    font-size: 13px; color: var(--white); text-transform: uppercase; 
    letter-spacing: 1px; font-weight: 500; 
}
.nav-links a:hover { color: var(--gold); }

/* КНОПКИ */
.btn-gold {
    padding: 12px 30px; border: 1px solid var(--gold); color: var(--gold);
    text-transform: uppercase; font-size: 11px; letter-spacing: 2px;
    background: transparent; transition: 0.4s; cursor: pointer; display: inline-block;
}
.btn-gold:hover { background: var(--gold); color: var(--navy-deep); }

/* ЯЗЫК (БАЗОВЫЙ) */
.lang-btn {
    background: none; border: none; cursor: pointer; color: var(--white);
    font-weight: bold; margin-left: 20px; transition: 0.3s;
    display: flex; align-items: center;
}
.lang-btn:hover { color: var(--gold); }
.globe-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.lang-label { font-size: 11px; text-transform: uppercase; margin-left: 5px; font-weight: 600; font-family: sans-serif; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-silk {
    position: relative; min-height: 100vh; width: 100%;
    background-color: var(--navy-deep);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.8; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle, transparent 20%, var(--navy-deep) 90%); z-index: 2; pointer-events: none; }

.hero-content-silk { text-align: center; z-index: 10; padding-top: 80px; position: relative; }
.top-label { color: var(--gold); font-size: 10px; letter-spacing: 6px; margin-bottom: 20px; font-family: sans-serif; text-transform: uppercase; }
.hero-title-silk { 
    font-family: var(--font-head); font-size: clamp(50px, 8vw, 90px); 
    line-height: 1; margin-bottom: 30px; color: var(--white);
}
.text-gold { color: var(--gold); font-style: italic; }
.separator-line { width: 60px; height: 2px; background: var(--gold); margin: 0 auto 30px; }
.hero-desc-silk { font-size: 18px; color: var(--white); margin-bottom: 50px; line-height: 1.6; font-family: sans-serif; }

/* Анимации появления Hero */
.block-reveal { display: block; animation: fadeInUp 1s forwards; opacity: 0; transform: translateY(20px); }
.block-reveal:nth-child(2) { animation-delay: 0.2s; } .block-reveal:nth-child(3) { animation-delay: 0.4s; }
.fade-in { animation: fadeIn 1.5s forwards; opacity: 0; }
.delay-2 { animation-delay: 0.6s; } .delay-3 { animation-delay: 0.8s; } .delay-4 { animation-delay: 1s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* Декор: Фигуры на фоне (Десктоп) */
.geo-shapes-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.lux-cross { position: absolute; width: 20px; height: 20px; z-index: 1; pointer-events: none; }
.lux-cross::before, .lux-cross::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--gold); transform: translate(-50%, -50%); }
.lux-cross::before { width: 100%; height: 1px; } .lux-cross::after { height: 100%; width: 1px; }
.spin-slow { animation: spin 40s linear infinite; } .spin-reverse { animation: spinRev 30s linear infinite; } .spin-normal { animation: spin 20s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } } @keyframes spinRev { 100% { transform: rotate(-360deg); } }

/* =========================================
   4. COMMON SECTION STYLES
   ========================================= */
.section { padding: 100px 0; background-color: var(--navy-deep); position: relative; border-top: 1px solid rgba(255,255,255,0.05); }

.section-title { font-family: var(--font-head); font-size: 42px; color: var(--white); margin-bottom: 40px; line-height: 1.1; }
.section-text { font-size: 16px; color: #b0b8c4; line-height: 1.7; }
.section-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.badge { display: inline-block; padding: 5px 10px; border: 1px solid var(--gold); color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }

.lux-separator { height: 60px; background-color: #ffffff; width: 100%; position: relative; z-index: 2; background-image: url('image/Group.png'); background-position: center; background-repeat: repeat-x; }

/* =========================================
   5. ABOUT SECTION (ZIG-ZAG STYLE)
   ========================================= */
.about-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 120px;
    position: relative;
}
.about-row.reverse { flex-direction: row-reverse; }

.about-content { width: 45%; }
.about-h3 { font-family: 'Cormorant Garamond', serif; font-size: 42px; color: #fff; line-height: 1.1; margin-bottom: 25px; }
.about-line { width: 70px; height: 2px; background-color: #C5A059; margin-bottom: 25px; }
.about-p { font-family: 'Manrope', sans-serif; font-size: 17px; color: #b0b8c4; line-height: 1.7; }

.about-image-wrapper {
    width: 50%; height: 400px; position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.about-image-wrapper:hover { transform: translateY(-10px); }
.about-img { width: 100%; height: 100%; object-fit: cover; }
.img-overlay-gold {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(2, 11, 28, 0.4), rgba(197, 160, 89, 0.1));
    pointer-events: none;
}

.img-shape-left { clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%); }
.img-shape-right { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%); }

/* =========================================
   6. VICTORIES (RESULTS)
   ========================================= */
.victories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 60px; }
.victory-item { text-align: center; }
.v-number { font-family: var(--font-head); font-size: 60px; color: var(--white); line-height: 1; margin-bottom: 10px; }
.v-symbol { color: var(--gold); font-size: 40px; vertical-align: super; }
.v-label { font-size: 12px; text-transform: uppercase; color: #b0b8c4; letter-spacing: 1px; line-height: 1.5; }
.v-line { width: 100%; height: 1px; background: rgba(255,255,255,0.1); margin-top: 20px; position: relative; }
.v-line::after { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--gold); transition: 1s ease; }
.victory-item:hover .v-line::after { width: 100%; }

/* =========================================
   7. NEWS & TEAM & EXPERTISE
   ========================================= */

/* Team Grid */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); 
    gap: 30px; 
    margin-top: 50px;
    justify-content: center;
}

/* Lawyer Card */
.lawyer-card {
    background: rgba(255,255,255,0.02);
    padding: 20px; 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s;
    max-width: 320px;
    margin: 0 auto;
}
.lawyer-card:hover { transform: translateY(-5px); border-color: var(--gold); background: rgba(255,255,255,0.05); }
.lawyer-photo { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    margin-bottom: 20px; 
    border-radius: 4px; 
    filter: none !important; 
    -webkit-filter: none !important;
    transition: 0.5s; 
}
.lawyer-card:hover .lawyer-photo { transform: scale(1.02); }
.lawyer-name { font-family: var(--font-head); font-size: 22px; color: var(--white); margin-bottom: 5px; }
.lawyer-role { font-size: 11px; text-transform: uppercase; color: var(--gold); letter-spacing: 1px; }

/* News Grid */
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
    justify-content: center; 
}

.news-card {
    background-color: #0a1426 !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
    transition: transform 0.4s ease !important;
}
.news-card:hover { transform: translateY(-10px) !important; }

.news-img-wrapper {
    height: 60% !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #000 !important;
}
.news-image-real {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 15% !important;
    display: block !important;
    transition: transform 0.6s ease;
}
.news-card:hover .news-image-real { transform: scale(1.05); }

.news-content-box {
    flex: 0 0 40%;
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background-color: #0a1426 !important;
}

.news-date {
    display: block !important;
    font-size: 11px !important;
    color: #C5A059 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}
.news-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.4rem !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.news-read-more {
    font-size: 12px !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    opacity: 0.7 !important;
}

/* Expertise Grid */
.expertise-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; margin-top: 50px;
}
.expertise-card {
    background: rgba(10, 31, 64, 0.4); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px; display: flex; flex-direction: column; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; overflow: hidden; backdrop-filter: blur(10px);
    min-height: 250px;
}
.expertise-card:hover {
    background: rgba(10, 31, 64, 0.9); border-color: var(--gold);
    transform: translateY(-7px); box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.exp-number { font-family: 'Outfit', sans-serif; font-size: 14px; color: var(--gold); font-weight: 600; margin-bottom: 20px; opacity: 0.7; display: block; }
.exp-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--white); margin-bottom: 10px; line-height: 1.2; transition: 0.3s; }
.exp-hidden-content { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease; transform: translateY(20px); }
.expertise-card:hover .exp-hidden-content { max-height: 300px; opacity: 1; transform: translateY(0); margin-top: 20px; }
.exp-desc { font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--white-soft); line-height: 1.6; margin-bottom: 20px; }
.exp-arrow { font-size: 12px; text-transform: uppercase; color: var(--gold); letter-spacing: 1px; font-weight: 600; }
.highlight-card { border-color: rgba(197, 160, 89, 0.3); background: linear-gradient(145deg, rgba(10,31,64,0.6), rgba(197,160,89,0.05)); }
.highlight-card:hover { border-color: var(--gold); }

/* =========================================
   8. FOOTER
   ========================================= */
.footer-minimal { background-color: #010612; padding: 60px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-cta { font-family: var(--font-head); font-size: 32px; color: var(--white); margin-bottom: 40px; }
.contact-links-wrapper { display: flex; justify-content: center; gap: 50px; margin-bottom: 50px; }
.contact-big-link { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; }
.c-label { font-size: 10px; text-transform: uppercase; color: var(--gold); letter-spacing: 1px; margin-bottom: 5px; }
.c-value { font-size: 22px; color: var(--white); font-family: var(--font-body); transition: 0.3s; }
.contact-big-link:hover .c-value { color: var(--gold); }
.c-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.1); }
.footer-bottom-minimal { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; font-size: 12px; color: var(--steel); }
.privacy-link { color: var(--steel); } .privacy-link:hover { color: var(--gold); }

/* =========================================
   9. MOBILE ADAPTIVE (BASE)
   ========================================= */
@media (max-width: 900px) {
    .hero-title-silk { font-size: 42px; }
    .about-row { flex-direction: column !important; gap: 30px; margin-bottom: 80px; }
    .about-image-wrapper { width: 100%; height: 250px; clip-path: none; border-radius: 6px; }
    .about-content { width: 100%; text-align: left; }
    .about-h3 { font-size: 32px; }
    .victories-grid { grid-template-columns: 1fr; }
    .expertise-grid { grid-template-columns: 1fr; }
    .exp-hidden-content { max-height: none; opacity: 1; transform: none; margin-top: 15px; }
    .contact-links-wrapper { flex-direction: column; align-items: center; gap: 30px; }
    .c-divider { display: none; }
    .footer-bottom-minimal { flex-direction: column; gap: 15px; align-items: center; }
}

/* =========================================
   10. ANIMATIONS
   ========================================= */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   11. SHAPES (DESKTOP)
   ========================================= */
.shape-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 1; }
.geo-cross { position: absolute; width: 20px; height: 20px; opacity: 0.6; }
.geo-cross::before, .geo-cross::after { content: ''; position: absolute; background-color: var(--gold); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.geo-cross::before { width: 100%; height: 1px; } 
.geo-cross::after { width: 1px; height: 100%; } 
.geo-circle { position: absolute; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 50%; }
.geo-line { position: absolute; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(197, 160, 89, 0.3), transparent); }
.anim-spin { animation: spin 40s linear infinite; }
.anim-float { animation: float-geo 10s ease-in-out infinite; }
@keyframes float-geo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* =========================================
   12. МОБИЛЬНОЕ МЕНЮ И ФИКСЫ (HAMBURGER & SHAPES)
   ========================================= */

/* Скрываем гамбургер и моб. анимацию на ПК */
.hamburger { display: none; cursor: pointer; }
.mobile-only-items { display: none; }
.mobile-hero-anim { display: none; }

/* АДАПТИВ (ТЕЛЕФОНЫ И ПЛАНШЕТЫ) */
@media (max-width: 900px) {
    
    /* --- 1. НАСТРОЙКА МЕНЮ --- */
    .hamburger { display: block; z-index: 2000; position: relative; }
    .hamburger div {
        width: 25px; height: 2px; background-color: var(--white);
        margin: 5px; transition: all 0.3s ease;
    }
    
    /* Скрываем десктопные кнопки */
    .desktop-actions { display: none !important; }
    /* Скрываем обычную навигацию */
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: 75%;
        background: rgba(2, 11, 28, 0.98);
        backdrop-filter: blur(20px);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        transform: translateX(100%); /* Уезжает вправо */
        transition: transform 0.5s ease-in;
        z-index: 1500; border-left: 1px solid var(--gold);
        padding: 0;
    }
    
    /* Класс для открытия меню */
    .nav-links.nav-active { transform: translateX(0%); }

    /* Ссылки внутри мобильного меню */
    .nav-links li { opacity: 0; margin: 20px 0; }
    .nav-links.nav-active li { opacity: 1; transition: opacity 0.5s ease 0.3s; }

    /* Кнопки внутри мобильного меню */
    .mobile-only-items { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 30px; }

    /* Анимация гамбургера в крестик */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background: var(--gold); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background: var(--gold); }


    /* --- 2. УБИРАЕМ СТАРЫЕ ГЕОМЕТРИЧЕСКИЕ ФИГУРЫ --- */
    .geo-shapes-container, .shape-layer {
        display: none !important; 
    }

    /* --- 3. НОВАЯ ФОНОВАЯ АНИМАЦИЯ (ПЛАВАЮЩИЕ ОРБИТЫ) --- */
    .mobile-hero-anim {
        display: block; /* Показываем только на мобильном */
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 1;
        overflow: hidden;
        pointer-events: none;
    }

    .mobile-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px); /* Сильное размытие для эффекта свечения */
        opacity: 0.4;
        animation: floatOrb 20s ease-in-out infinite alternate;
    }

    /* Золотая орбита сверху слева */
    .orb-1 {
        top: -10%; left: -20%;
        width: 300px; height: 300px;
        background: var(--gold);
    }

    /* Синяя орбита снизу справа (для глубины) */
    .orb-2 {
        bottom: -10%; right: -20%;
        width: 250px; height: 250px;
        background: #1a2f55; /* Чуть светлее фона */
        animation-duration: 25s;
        animation-delay: -5s;
    }

    @keyframes floatOrb {
        0% { transform: translate(0, 0) scale(1); }
        100% { transform: translate(40px, 40px) scale(1.1); }
    }

    /* --- 4. СТИЛЬ ДЛЯ НОВОЙ КНОПКИ ЯЗЫКА В МЕНЮ --- */
    .mobile-lang-styled {
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 10px 20px !important;
        border-radius: 30px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        margin-left: 0 !important; 
        width: auto !important;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    .mobile-lang-styled:hover, .mobile-lang-styled:active {
        border-color: var(--gold) !important;
        color: var(--gold) !important;
    }

    /* Заголовки на мобильном */
    .hero-title-silk { font-size: 36px !important; line-height: 1.2 !important; }
    .section-title { font-size: 32px !important; }
    
    /* Кнопка "Вся команда" встает под заголовок */
    .section-header-flex { flex-direction: column; align-items: flex-start; gap: 20px; }
}
.hero-silk {
    background: linear-gradient(rgba(2, 11, 28, 0.7), rgba(2, 11, 28, 0.8)), url('./image/Window.jpg') center/cover no-repeat !important;
}
/* 1. Ставим картинку на фон */
.hero-silk {
    background: linear-gradient(rgba(2, 11, 28, 0.7), rgba(2, 11, 28, 0.8)), url('image/Window.jpg') center/cover no-repeat !important;
}

/* 2. Прячем старые волны и затемнение, которые закрывают картинку */
#hero-canvas, 
.hero-overlay {
    display: none !important;
}