/* ===== МЕЛЛАН – ТЁМНАЯ ТЕМА ТОЛЬКО ДЛЯ ГЛАВНОЙ ===== */
body.home-dark {
    background: #070b14;
    color: #e9f0ff;
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

.home-dark .site-header {
    background: rgba(7,11,20,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148,180,255,0.1);
}

.home-dark .site-header .main-nav a {
    color: #8fa3c0;
}
.home-dark .site-header .main-nav a:hover {
    color: #38e1ff;
}

/* ---------- HERO ---------- */
.home-dark .hero {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(56,225,255,0.12), transparent 60%),
        linear-gradient(rgba(148,180,255,0.04) 1px, transparent 1px) 0 0/100% 44px,
        linear-gradient(90deg, rgba(148,180,255,0.04) 1px, transparent 1px) 0 0/44px 100%;
    padding: 110px 0 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.home-dark .hero::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 40px;
    width: 320px;
    height: 320px;
    background: url('/assets/uploads/hero-bg.png') no-repeat left top / contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.home-dark .hero::after {
    content: "";
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,225,255,0.15), transparent 70%);
    pointer-events: none;
}
.home-dark .hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    max-width: 1400px;
}
.home-dark .hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 620px;
}
.home-dark .hero h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.3px;
}
.home-dark .hero .subtitle-note {
    font-size: 18px;
    color: #8fa3c0;
    max-width: 520px;
    margin-top: 16px;
    line-height: 1.6;
}
.home-dark .hero-services-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: left;
}
.home-dark .hero-services-list li {
    font-size: 17px;
    color: #e9f0ff;
    margin-bottom: 6px;
}
.home-dark .hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.home-dark .hero .btn-primary {
    background: linear-gradient(120deg, #38e1ff, #4f8cff);
    color: #04101c;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(56,225,255,0.25);
}
.home-dark .hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(56,225,255,0.4);
}
.home-dark .hero .btn-outline {
    border: 1px solid rgba(148,180,255,0.2);
    color: #e9f0ff;
    border-radius: 12px;
    padding: 14px 24px;
}
.home-dark .hero-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.chip {
    background: rgba(56,225,255,.1);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: #38e1ff;
    white-space: nowrap;
}

/* Плавающие карточки */
.float-card {
    position: absolute;
    background: rgba(10,16,29,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148,180,255,0.25);
    border-radius: 20px;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 18px 44px rgba(0,0,0,0.5);
    animation: floaty 6s ease-in-out infinite;
    z-index: 3;
    padding: 16px;
}
.float-card-link {
    position: absolute;
    text-decoration: none;
    color: inherit;
    z-index: 3;
}
.float-card .fc-num {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #38e1ff;
    margin-bottom: 4px;
}
.float-card .fc-lbl {
    font-size: 13px;
    color: #8fa3c0;
    line-height: 1.3;
}
@keyframes floaty {
    50% { transform: translateY(-10px); }
}

/* ---------- СЕКЦИИ ---------- */
.home-dark section {
    padding: 80px 0;
}
.home-dark section h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    color: #fff;
    margin-bottom: 30px;
}

/* ---------- КАРТОЧКИ УСЛУГ ---------- */
.home-dark .service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.home-dark .card {
    background: linear-gradient(180deg, #0e1626, #0b1220);
    border: 1px solid rgba(148,180,255,0.1);
    border-radius: 18px;
    padding: 30px 28px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.home-dark .card:hover {
    transform: translateY(-6px);
    border-color: rgba(56,225,255,0.4);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.home-dark .card img {
    width: 100%;
    max-width: 180px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(56,225,255,0.4));
}
.home-dark .card h3 {
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
}
.home-dark .card p {
    color: #8fa3c0;
    font-size: 14.5px;
}
.detail-link {
    color: #38e1ff;
    font-weight: 700;
    font-size: 14px;
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.home-dark .advantages {
    background: #0a101d;
    border-block: 1px solid rgba(148,180,255,0.1);
}
.home-dark .adv-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.home-dark .adv-item h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    background: linear-gradient(120deg, #38e1ff, #4f8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.home-dark .adv-item p {
    color: #8fa3c0;
}

/* ---------- ТИПОВЫЕ ПРОЕКТЫ ---------- */
.home-dark .object-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}
.home-dark .object-card {
    height: 230px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    position: relative;
}
.home-dark .object-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(7,11,20,0.9));
}
.home-dark .object-card h3,
.home-dark .object-card p {
    position: relative;
    z-index: 2;
    margin: 0;
}
.home-dark .object-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    margin-bottom: 4px;
    color: #fff;
}
.home-dark .object-card p {
    color: #8fa3c0;
    font-size: 14px;
}

/* ---------- ЭТАПЫ ---------- */
.home-dark .stages {
    background: #0a101d;
    border-block: 1px solid rgba(148,180,255,0.1);
}
.home-dark .stage-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.home-dark .stage {
    background: #0b1220;
    border: 1px solid rgba(148,180,255,0.1);
    border-radius: 18px;
    padding: 24px;
}
.home-dark .stage .step {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    background: linear-gradient(120deg, #38e1ff, #4f8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.home-dark .stage h3 {
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    margin-bottom: 6px;
}
.home-dark .stage p {
    color: #8fa3c0;
    font-size: 14px;
}

/* ---------- ГАРАНТИИ ---------- */
.home-dark .guarantees ul {
    color: #8fa3c0;
    font-size: 16px;
}

/* ---------- ФОРМА ---------- */
.home-dark .lead-form-block {
    background: linear-gradient(180deg, #0e1626, #0b1220);
    border: 1px solid rgba(148,180,255,0.15);
    border-radius: 22px;
    padding: 40px;
    max-width: 600px;
    margin: 80px auto;
}
.home-dark .lead-form-block input,
.home-dark .lead-form-block select,
.home-dark .lead-form-block textarea {
    background: #070b14;
    border: 1px solid rgba(148,180,255,0.15);
    color: #e9f0ff;
    border-radius: 12px;
    padding: 12px;
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- УВЕЛИЧЕНИЕ ЭЛЕМЕНТОВ НА ДЕСКТОПЕ (кроме заголовка hero) ---------- */
@media (min-width: 1025px) {
    .home-dark .card {
        padding: 36px 30px;
    }
    .home-dark .card img {
        max-width: 220px;
        height: 180px;
    }
    .home-dark .card h3 {
        font-size: 22px;
    }
    .home-dark .card p {
        font-size: 16px;
    }
    .home-dark .adv-item h3 {
        font-size: 42px;
    }
    .home-dark .adv-item p {
        font-size: 18px;
    }
    .home-dark .object-card {
        height: 280px;
    }
    .home-dark .object-card h3 {
        font-size: 24px;
    }
    .home-dark .object-card p {
        font-size: 16px;
    }
    .home-dark .stage .step {
        font-size: 40px;
    }
    .home-dark .stage h3 {
        font-size: 20px;
    }
    .home-dark .stage p {
        font-size: 16px;
    }
    .home-dark .guarantees ul {
        font-size: 20px;
    }
    .home-dark .lead-form-block {
        padding: 50px;
        max-width: 700px;
    }
}

/* ---------- АДАПТАЦИЯ ---------- */
@media (max-width: 1024px) {
    .home-dark .stage-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .home-dark .hero {
        overflow-x: hidden;
        padding: 100px 0 60px;
    }
    @media (max-width: 640px) {
    /* ... другие правила ... */

    /* Кнопки в hero – на всю ширину, друг под другом */
    .home-dark .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 16px;
    }
    .home-dark .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
}
    
    
    .home-dark .hero .container {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding: 0 16px;
        max-width: 100%;
    }
    .home-dark .hero-text,
    .home-dark .hero-visual {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .home-dark .hero h1 {
        font-size: 24px;
        overflow-wrap: break-word;
    }
    .home-dark .hero-services-list li {
        font-size: 15px;
        text-align: left;
    }
    .float-card,
    .float-card-link {
        position: static;
        margin: 10px 0;
        width: auto;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        background: rgba(10,16,29,0.9);
        border: 1px solid rgba(148,180,255,0.25);
        border-radius: 12px;
        padding: 10px 16px;
    }
    .float-card .fc-num {
        font-size: 18px;
        margin-right: 4px;
    }
    .float-card .fc-lbl {
        font-size: 12px;
    }
    .home-dark .stage-list { grid-template-columns: 1fr; }
}