/* ================= ОБНУЛЕНИЕ И БАЗА ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --gold-gradient: linear-gradient(135deg, #f3e0b5 0%, #b89155 50%, #8a6529 100%);
    --gold: #b89155;
    --gold-light: #e6cb9a;
    --dark-bg: #0d0d0d;
    --card-bg: #141414;
    --light-section: #f5f2eb;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Скрываем мобильный логотип в десктопной версии по умолчанию */
.mobile-logo {
    display: none !important;
}

/* ================= ХЕДЕР (ДВУХСТРОЧНЫЙ ДЕСКТОП) ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 145, 85, 0.15);
    z-index: 1000;
    padding: 16px 0 12px 0;
}

.header-grid-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img-file {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.logo-sub {
    display: block !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #aaaaaa;
}

.logo-main {
    display: block !important;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.0;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 35px;
}

.work-time {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #ffffff;
    line-height: 1.3;
}

.time-img-file {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.work-time span {
    color: #aaaaaa;
}

.phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.phones a {
    color: #b89155;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    line-height: 1.2;
}

.phones a::before {
    content: "📞";
    font-size: 12px;
    color: #b89155;
}

.phones a:hover {
    color: #ffffff;
}

.header-bottom-row {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.menu {
    display: flex;
    gap: 28px;
    padding-left: 58px; 
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 400;
    transition: 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.menu a:hover, .menu a.active {
    color: var(--gold-light);
}

.menu a.active::after, .menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #b89155;
}

.burger {
    display: none;
    font-size: 28px;
    color: var(--gold);
    cursor: pointer;
    position: relative;
    z-index: 1001;
    user-select: none;
    padding: 5px;
}

/* ================= ГЛАВНЫЙ ЭКРАН (HERO) ================= */
.hero {
    padding: 160px 0 20px 0;
    background-color: #0a0a0a;
    background-image: none; 
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-wrapper {
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto;
    display: flex;
    justify-content: flex-start; 
    position: relative;
    z-index: 10;
    
    background-image: url('assets/hero-car.png');
    background-repeat: no-repeat;
    background-position: right center; 
    background-size: contain; 
    
    min-height: 500px; 
}

.hero-left {
    max-width: 520px;
    width: 100%;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px; 
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
}

.gold-text {
    font-family: 'Cinzel', serif; 
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline; 
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-mobile-car {
    display: none !important;
}

.hero-features {
    list-style: none;
    margin-bottom: 35px;
}

.hero-features li {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.check-mark {
    color: #000000;
    background: var(--gold-gradient);
    font-size: 11px;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(184, 145, 85, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000000;
    box-shadow: 0 4px 15px rgba(184, 145, 85, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 145, 85, 0.5);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(184, 145, 85, 0.15);
    transform: translateY(-2px);
    color: var(--gold-light);
}

/* ================= СЕКЦИИ И ЗАГОЛОВКИ ================= */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    position: relative;
    text-transform: uppercase;
}

.section-title::before {
    content: '';
    height: 1px;
    flex-grow: 1;
    max-width: 250px;
    background: linear-gradient(to left, #b89155, rgba(184, 145, 85, 0));
    box-shadow: 0 0 4px rgba(184, 145, 85, 0.4);
    position: relative;
}

.section-title::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    max-width: 250px;
    background: linear-gradient(to right, #b89155, rgba(184, 145, 85, 0));
    box-shadow: 0 0 4px rgba(184, 145, 85, 0.4);
    position: relative;
}

.dark-text {
    color: #111111;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= УСЛУГИ ================= */
.services {
    padding: 10px 0 50px 0; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(184, 145, 85, 0.15);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(184, 145, 85, 0.15);
    transform: translateY(-5px);
}

.srv-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card h3 {
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    font-size: 12px;
    color: #999999;
}

/* ================= ИЗГОТАВЛИВАЕМ (СВЕТЛЫЙ ФОН) ================= */
.manufacture {
    padding: 50px 0;
    background: var(--light-section);
}

.manufacture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mfg-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 25px;
}

.mfg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(184, 145, 85, 0.2);
}

.mfg-card img {
    width: auto;
    height: 180px;
    object-fit: contain;
    margin-bottom: 25px;
}

.mfg-info h3 {
    font-family: 'Cinzel', serif;
    color: #111111;
    font-size: 20px;
    margin-bottom: 12px;
}

.mfg-info p {
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
}

/* ================= КАК МЫ РАБОТАЕМ ================= */
.steps {
    padding: 50px 0;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #0d0d0d;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    box-shadow: 0 0 15px rgba(184, 145, 85, 0.2);
}

.step-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: white;
}

.step-item p {
    font-size: 13px;
    color: #a0a0a0;
}

/* ================= НАШИ ПРЕИМУЩЕСТВА ================= */
.advantages {
    padding: 50px 0; 
    background: #0f0f0f;
    border-top: 1px solid rgba(184, 145, 85, 0.1);
    border-bottom: 1px solid rgba(184, 145, 85, 0.1);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; 
}

.adv-card {
    background: var(--card-bg);
    border: 1px solid rgba(184, 145, 85, 0.15);
    padding: 35px 25px; 
    text-align: center;
    border-radius: 6px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.adv-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(184, 145, 85, 0.05);
}

.adv-icon {
    font-size: 32px; 
    margin-bottom: 20px;
    line-height: 1;
}

.adv-card h3 {
    font-size: 16px; 
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: var(--gold-light); 
    margin-bottom: 12px;
}

.adv-card p {
    font-size: 13px;
    line-height: 1.5;
    color: #aaaaaa; 
}

/* ================= ПОДВАЛ И КАРТА ================= */
.footer {
    background: #050505;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(184, 145, 85, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-block {
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 13px;
    color: #888888;
}

.footer-info h3, .footer-map-block h3 {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
}

.footer-status {
    font-size: 13px;
    color: #a0a0a0;
    margin-top: 15px;
}

.map-container {
    border: 1px solid rgba(184, 145, 85, 0.3);
    border-radius: 6px;
    overflow: hidden;
    height: 160px;
    width: 100%;
}

.map-container ymaps {
    width: 100% !important;
    height: 100% !important;
}

.footer-bottom {
    border-top: 1px solid #141414;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666666;
}

.scroll-top-btn {
    background: var(--gold-gradient);
    color: black;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

/* АНИМАЦИОННЫЕ ВЫЕЗЖАЮЩИЕ СТИЛИ ДЛЯ МОБИЛЬНОГО МЕНЮ */
.mobile-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(184, 145, 85, 0.3);
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    z-index: 999;
}

.mobile-menu-wrapper.open {
    padding: 20px 0;
    max-height: 400px;
    opacity: 1;
}

.mobile-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: 0.3s;
    text-transform: uppercase;
}

.mobile-navigation a:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   ================= СТРОГИЙ МОБИЛЬНЫЙ МЕДИА-ЗАПРОС (1024px) =================
   ========================================================================== */
@media (max-width: 1024px) {
    /* 1. ШАПКА НА МОБИЛЬНОМ */
    .header {
        padding: 10px 0;
        background: #0a0a0a;
    }

    .header-grid-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Полностью скрываем десктопные строки и старый десктопный логотип внутри них */
    .header-top-row, 
    .header-bottom-row,
    .header-right-group,
    .menu,
    .work-time,
    .phones,
    .desktop-logo {
        display: none !important;
    }

    /* Принудительно показываем и выравниваем вынесенный мобильный логотип */
    .mobile-logo {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Насильно настраиваем двухстрочные мобильные шрифты */
    .mobile-logo .logo-text {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    /* Мелкая строчка "Ритуальный салон" */
    .mobile-logo .logo-sub {
        display: block !important;
        font-size: 8px !important; 
        letter-spacing: 1px !important;
        text-transform: none !important; 
        color: #aaaaaa !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }

    /* Золотое слово "ВЕЧНОСТЬ" */
    .mobile-logo .logo-main {
        display: block !important;
        font-size: 18px !important; 
        letter-spacing: 2px !important;
        line-height: 1.0 !important;
    }

    /* Размеры круглой иконки в мобильной шапке */
    header img.logo-img-file, 
    .mobile-logo img {
        width: 36px !important; 
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        display: block !important;
        object-fit: contain !important;
    }

    .burger {
        display: block !important;
        font-size: 26px !important;
        color: #ffffff;
        cursor: pointer;
    }

    /* 2. ПЕРВЫЙ ЭКРАН (HERO) НА МОБИЛЬНОМ */
    .hero {
        padding: 80px 0 0 0 !important; 
        min-height: auto !important; 
        display: block !important;
        background-image: none !important; 
        background-color: #0a0a0a !important;
    }

    .hero-wrapper {
        flex-direction: column !important;
        text-align: left !important;
        width: 90%;
        background-image: none !important; 
    }

    .hero-left {
        max-width: 100% !important;
    }

    .hero-title {
        font-size: 20px !important; 
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        text-align: left !important;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 0 !important; 
        text-align: left !important;
        color: #aaaaaa !important;
        position: relative !important;
        z-index: 10 !important; 
    }

    img.hero-mobile-car,
    .hero-left img.hero-mobile-car {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        content: url('assets/hero-car-m.png') !important; 
        margin: -15px 0 20px 0 !important; 
        position: relative !important;
        z-index: 1 !important;
    }

    .hero-features {
        margin-top: -30px !important; 
        margin-bottom: 25px !important;
        padding-left: 0 !important;
        text-align: left !important;
        position: relative !important;
        z-index: 5 !important;
    }

    .hero-features li {
        justify-content: flex-start !important; 
        text-align: left !important;
        font-size: 13px !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* 3. КОРРЕКЦИЯ ДРУГИХ СЕКЦИЙ НА МОБИЛЬНОМ */
    .services {
        padding: 25px 0 !important; 
    }

    .section-title {
        font-size: 20px !important; 
        letter-spacing: 2px !important;
        margin-bottom: 25px !important;
        gap: 15px !important;
    }

    .map-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .map-container script,
    .map-container iframe,
    .map-container ymaps,
    .map-container p,
    .map-container div {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 4. СКРЫТИЕ БРЕНДИНГА В ФУТЕРЕ (СТРОГО НА МОБИЛЬНЫХ) */
    .footer-brand {
        display: none !important;
    }

    /* Перестроение остальных сеток */
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .manufacture-grid { grid-template-columns: 1fr; gap: 20px; }
    .timeline { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    
    .footer-grid { 
        grid-template-columns: 1fr !important; 
        gap: 25px !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

@media (max-width: 600px) {
    .advantages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
}