/* =======================================================
   1. АРХИТЕКТУРА И ПРЕМИУМ-ТИПОГРАФИКА ДЛЯ DARK THEME
   ======================================================= */
body.luxury-dark-theme {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #0f1115 !important; /* Цвет глубокого карельского гранита Габбро */
    color: #e2e8f0; /* Контрастный мягкий светлый текст для удобного чтения */
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Монументальный классический стиль для заголовков */
.luxury-dark-theme h1, 
.luxury-dark-theme h2, 
.luxury-dark-theme h3 {
    font-family: Georgia, serif;
    color: #ffffff !important;
    font-weight: 400;
    margin: 0;
}

/* Благородный золотой цвет для важных акцентов */
.gold-text {
    color: #c5a059 !important;
    font-style: italic;
}

/* =======================================================
   2. УЛЬТРА-МИНИМАЛИСТИЧНЫЙ ХЭДЕР — ПОЛНОСТЬЮ СКРЫТ
   ======================================================= */
header, header.monolith-nav {
    display: none !important; /* Наглухо выключаем старую верхнюю шапку хэдера */
}

/* Элементы старой мобильной плашки (глушатся на десктопе) */
.brand-logo {
    display: flex !important;
    align-items: center;
}

.brand-logo img {
    height: 80px !important;
    width: auto !important;
    transition: height 0.3s ease;
}
/* =======================================================
   3. МОНУМЕНТАЛЬНЫЙ ГЛАВНЫЙ ЭКРАН (MONOLITH HERO)
   ======================================================= */
.monolith-hero {
    position: relative;
    height: auto !important;
    min-height: 550px;
    background: #0f1115; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 20px 20px !important; 
    box-sizing: border-box;
    overflow: hidden;
}

/* ЦЕНТРАЛЬНЫЙ ЛОГОТИП ФАВОР */
.hero-main-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 10px auto !important; 
    width: 100% !important;
    max-width: 320px !important;
    background: none !important; 
    padding: 0 !important;
}

.hero-main-logo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(1.15) drop-shadow(0 4px 15px rgba(0,0,0,0.6)) !important;
    mix-blend-mode: normal !important;
}

/* КОНТАКТНАЯ ГРУППА ПО ЦЕНТРУ БАННЕРА НА ДЕСКТОПЕ (БЕЗ ПРИЛИПАНИЯ ПРИ СКРОЛЛЕ) */
.hero-desktop-contacts {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    gap: 15px !important;
    margin-top: 30px; 
    position: relative !important; /* На ПК элемент полностью статичен */
    z-index: 10 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.hero-phone-num {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 22px !important; 
    letter-spacing: 1px !important;
    display: inline-block !important;
    transition: color 0.3s ease;
}

.hero-phone-num:hover {
    color: #c5a059 !important;
}

.monolith-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none !important;
    z-index: 1;
}

.monolith-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    animation: monolithFadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-stone-tag {
    display: inline-block;
    color: #c5a059;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.monolith-hero h1 {
    font-size: 56px;
    line-height: 1.15;
    color: #ffffff !important;
    margin: 0 0 25px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.monolith-hero p {
    font-size: 17px;
    color: #a0aec0 !important;
    max-width: 720px;
    margin: 0 auto 45px auto;
    line-height: 1.8;
    font-weight: 300;
}

.monolith-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
}


/* =======================================================
   4. СТИЛИ ЛЮКСОВЫХ КНОПОК
   ======================================================= */
.btn-luxury-gold, .btn-luxury-outline {
    padding: 18px 45px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 0px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    box-sizing: border-box;
    display: inline-block;
}

.btn-luxury-gold {
    background: #c5a059;
    color: #0f1115 !important;
    border: 1px solid #c5a059;
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
}

.btn-luxury-gold:hover {
    background: transparent;
    color: #c5a059 !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.25);
}

@keyframes monolithFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =======================================================
   5. ЭКСКЛЮЗИВНОЕ МОНОЛИТНОЕ ПОРТФОЛИО
   ======================================================= */
.monolith-portfolio {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 40px 60px 40px !important;
    box-sizing: border-box;
}

.monolith-portfolio .monolith-row:last-child {
    margin-bottom: 0px !important;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-subtitle {
    display: block;
    color: #c5a059;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 38px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: #c5a059;
    margin: 20px auto 0 auto;
}

.monolith-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 140px;
    width: 100%;
    box-sizing: border-box;
}

.monolith-media {
    flex: 1 1 55%;
    position: relative;
    z-index: 1;
}

.monolith-img-border {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(197, 160, 89, 0.3);
    z-index: -1;
}

.layout-right .monolith-img-border {
    left: -25px;
}

.monolith-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.monolith-text-side {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.monolith-num {
    font-family: Georgia, serif;
    font-size: 60px;
    color: rgba(197, 160, 89, 0.15);
    line-height: 1;
    margin-bottom: 10px;
}

.monolith-subtitle {
    color: #c5a059;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.monolith-text-side h2 {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 25px;
}

.monolith-text-side p {
    color: #a0aec0;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 40px;
    text-align: justify;
}

.monolith-meta-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    gap: 15px;
}

.monolith-action-link {
    color: #c5a059 !important;
    text-decoration: none;
    border: 1px solid #c5a059;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block !important;
    background: transparent;
}

.monolith-action-link:hover {
    background: #c5a059 !important;
    color: #0f1115 !important;
}

/* ИЗНАЧАЛЬНО ПРЯЧЕМ КАРТОЧКИ: Сдвинуты на 60px вниз и прозрачны */
.monolith-row.animate-hidden {
    opacity: 0 !important;
    transform: translateY(60px) !important;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: opacity, transform;
}

/* Скрипт докрутил скроллом до блока -> включается плавный выезд */
.monolith-row.animate-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Благородная задержка для плавного поочередного выплывания */
.monolith-portfolio .monolith-row:nth-child(1).animate-show { transition-delay: 0.1s !important; }
.monolith-portfolio .monolith-row:nth-child(2).animate-show { transition-delay: 0.2s !important; }
.monolith-portfolio .monolith-row:nth-child(3).animate-show { transition-delay: 0.3s !important; }
/* =======================================================
   6. ИСПРАВЛЕННЫЕ ИНПУТЫ И МОДАЛЬНОЕ ОКНО
   ======================================================= */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 17, 21, 0.85); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 100000 !important; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(8px);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-window { 
    background: #161a22; 
    padding: 30px 25px !important; 
    border-radius: 14px; 
    max-width: 520px; 
    width: 90%; 
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5); 
    position: relative; 
    transform: translateY(-30px); 
    transition: all 0.3s ease; 
    border-top: 4px solid #c5a059; 
    color: #ffffff;
    box-sizing: border-box !important;
}
.modal-overlay.active .modal-window { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 28px; cursor: pointer; color: rgba(255, 255, 255, 0.4); }
.modal-close:hover { color: #c5a059; }
.modal-window h3 { margin: 0 0 10px 0; font-size: 22px; color: #ffffff !important; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-window p { margin: 0 0 25px 0; font-size: 13.5px; color: #a0aec0; line-height: 1.5; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: #c5a059; text-transform: uppercase; letter-spacing: 0.5px; }

/* ИСПРАВЛЕНИЕ: Паддинги инпутов больше никогда не сломают правый край */
.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    background: #0f1115; 
    color: #ffffff; 
    box-sizing: border-box !important; 
}
.form-group input:focus, .form-group textarea:focus { border-color: #c5a059; outline: none; box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15); }
.privacy-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; margin-bottom: 20px; }
.privacy-group input[type="checkbox"] { margin-top: 3px; cursor: pointer; width: 16px; height: 16px; }
.privacy-group label { font-size: 13px; color: #a0aec0; line-height: 1.4; }
.privacy-group label a { color: #c5a059; text-decoration: underline; }
.input-error { border-color: #ff4d4d !important; background-color: #221215 !important; }
.input-error::placeholder { color: #ff4d4d !important; font-weight: 600; }
/* =======================================================
   7. МОНУМЕНТАЛЬНЫЙ ФУТЕР SITE FOOTER
   ======================================================= */
.site-footer { background: #1a1f26 !important; color: rgba(255, 255, 255, 0.7) !important; padding: 25px 20px; text-align: center !important; width: 100%; box-sizing: border-box; border-top: 3px solid #c5a059; }
.site-footer .hero-main-logo {
    max-width: 150px !important; 
    margin: 0 auto 0 auto !important; 
    padding: 0 !important;
}
.site-footer .hero-main-logo img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}
.footer-centered-container { max-width: 800px; margin: 0 auto; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 4px !important;  }
.footer-centered-container .footer-row {
    margin: 0 !important;
    padding: 0 !important;
}
.footer-slogan { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 16px; color: #ffffff; }
.footer-phone { color: #ffffff !important; text-decoration: none; font-weight: 700; font-size: 19px; }
.footer-copy { font-size: 13px; opacity: 0.5; color: rgba(255, 255, 255, 0.5) !important; }

/* =======================================================
   8. КНОПКА НАВЕРХ (SCROLL TOP)
   ======================================================= */
.scroll-top-btn { position: fixed; bottom: 25px; right: 25px; z-index: 99; background-color: #c5a059; color: #0f1115; width: 46px; height: 46px; border: none; font-size: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
/* =======================================================
   9. АДАПТИВНАЯ МОБИЛЬНАЯ ВЕРСИЯ (ПОЛНОСТЬЮ ИСПРАВЛЕННАЯ)
   ======================================================= */
@media screen and (max-width: 768px) {
    html, body {
        scroll-behavior: smooth !important;
        scroll-padding-top: 0 !important;
        overflow-x: visible !important;
        width: 100% !important;
    }
    
    body.luxury-dark-theme, body.header-scrolled { padding-top: 0px !important; }
    header, header.monolith-nav { display: none !important; }

    /* Начальное положение контактов на мобилке (внутри баннера) */
    .hero-desktop-contacts { 
        display: flex !important; 
        flex-direction: column !important;
        align-items: center !important; 
        gap: 10px !important; 
        width: 100% !important; 
        box-sizing: border-box !important;
        position: relative !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 25px !important;
        border-bottom: none !important;
        box-shadow: none !important;
        transition: none !important;
    }

    /* ИДЕАЛЬНОЕ МОБИЛЬНОЕ ЗАЛИПАНИЕ (ЭКРАН УШЕЛ ВВЕРХ -> ПЛАШКА ЗАФИКСИРОВАЛАСЬ) */
    .hero-desktop-contacts.fixed-mode {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        margin-top: 0 !important;
        background: #0f1115 !important; 
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(197, 160, 89, 0.2) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        z-index: 99999 !important;
        width: 100% !important;
    }

    .hero-phone-num { 
        font-size: 18px !important; 
        color: #ffffff !important; 
        font-weight: 700 !important; 
        text-decoration: none !important; 
        display: block !important; 
        line-height: 1 !important;
        text-align: center !important;
    }

    /* Исправление кнопки: теперь она компактная и аккуратная по центру */
    .btn-luxury-gold { 
        width: auto !important;
        min-width: 200px !important;
        box-sizing: border-box !important; 
        text-align: center !important; 
        padding: 11px 25px !important; 
        font-size: 11px !important;
        letter-spacing: 1px !important;
        display: inline-block !important;
    }

    .monolith-actions { display: contents !important; }

    .monolith-hero { 
        padding: 15px 15px 40px 15px !important; 
        height: auto !important; 
    }
    
    .hero-main-logo { 
        max-width: 220px !important; 
        margin-bottom: 5px !important; 
        background: none !important; 
        padding: 0 !important; 
    }
    
    .hero-main-logo img { filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(1.15) !important; mix-blend-mode: normal !important; }

    .monolith-hero h1 { font-size: 25px !important; margin-bottom: 12px !important; line-height: 1.3 !important; }
    .monolith-hero p { font-size: 14px !important; margin-bottom: 25px !important; line-height: 1.6 !important; }

    .container { padding: 25px 15px !important; }
    .monolith-portfolio { padding: 25px 15px !important; }
    .section-header h2 { font-size: 20px !important; margin-bottom: 25px !important; }
    
    /* РОКИРОВКА ЭЛЕМЕНТОВ СТРОКИ ПОРТФОЛИО */
    .monolith-row { 
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 60px !important; 
        gap: 0px !important; 
    }
    
    .monolith-row.layout-left, 
    .monolith-row.layout-right { 
        flex-direction: column !important; 
    }
    
    /* Разрушаем текстовую обертку на мобильных */
    .monolith-text-side {
        display: contents !important;
    }
    
    /* Задаем очередность элементов */
    .monolith-num { order: 1 !important; font-size: 36px !important; text-align: center !important; margin-bottom: 5px !important; display: block !important; }
    .monolith-subtitle { order: 2 !important; text-align: center !important; width: 100%; display: block !important; }
    .monolith-text-side h2 { order: 3 !important; font-size: 22px !important; text-align: center !important; margin-bottom: 12px !important; width: 100%; display: block !important; }
    .monolith-text-side p { order: 4 !important; text-align: center !important; font-size: 14px !important; margin-bottom: 25px !important; width: 100%; display: block !important; }
    
    /* КАРТИНКА НА СВОЕМ МЕСТЕ (ПО ЦЕНТРУ) */
    .monolith-row .monolith-media {
        order: 5 !important;
        width: 100% !important;
        margin: 15px 0 25px 0 !important;
    }
    .monolith-media img { 
        height: auto !important; 
        width: 100% !important; 
        object-fit: cover !important; 
        display: block !important;
    }
    .monolith-img-border { display: none !important; } 
    
    /* БЛОК ЦЕНЫ И КНОПКА НА САМОМ НИЖНЕМ ЭТАЖЕ */
    .monolith-row .monolith-meta-row { 
        order: 6 !important;
        display: flex !important;
        justify-content: center !important; 
        flex-direction: column !important; 
        gap: 12px !important; 
        width: 100% !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 20px !important;
        margin-top: 10px !important;
    }
    .monolith-action-link { width: 100% !important; box-sizing: border-box !important; text-align: center !important; }

    /* Поведение при анимации скролла на мобильных */
    .monolith-row.animate-hidden {
        opacity: 0 !important;
        transform: translateY(40px) !important;
        transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1), 
                    transform 1.0s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }
    
    .monolith-row.animate-show {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .monolith-portfolio .monolith-row:nth-child(1).animate-show,
    .monolith-portfolio .monolith-row:nth-child(2).animate-show,
    .monolith-portfolio .monolith-row:nth-child(3).animate-show { 
        transition-delay: 0s !important; 
    }

    /* Форма обратной связи */
    .modal-window, #modal .modal-window { 
        width: 95% !important; 
        max-width: 420px !important; 
        padding: 20px 20px !important; 
        border-radius: 14px !important; 
        background: #15181f !important; 
        border-top: 6px solid #c5a059 !important;
        max-height: calc(100vh - 30px) !important;
        overflow-y: auto;
        box-sizing: border-box !important;
    }
    .modal-window h3 { font-size: 18px !important; margin-bottom: 5px !important; }
    .modal-window p { margin-bottom: 15px !important; font-size: 12px !important; }
    .form-group { margin-bottom: 12px !important; }
    .form-group label { font-size: 11px !important; margin-bottom: 4px !important; }
    
    .form-group input, .form-group textarea { 
        padding: 10px 12px !important; 
        font-size: 13px !important; 
        border-radius: 6px !important; 
        box-sizing: border-box !important;
    }
    .privacy-group { margin-top: 10px !important; margin-bottom: 15px !important; }
    
    .site-footer { padding: 30px 15px !important; text-align: center !important; }
    .footer-centered-container { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 10px !important; }
    .footer-slogan { font-size: 14px !important; } .footer-phone { font-size: 16px !important; } .footer-copy { font-size: 12px !important; } .footer-container { display: none !important; }
    .input-error { border-color: #ff4d4d !important; background-color: rgba(255, 77, 77, 0.05) !important; }
    .input-error::placeholder { color: #ff4d4d !important; opacity: 1 !important; }
    #privacy-label { font-size: 12px !important; line-height: 1.4 !important; }
}


