:root {
    --home-bg: #f6f8fb;
    --home-text: #18212f;
    --home-muted: #5f6c80;
    --home-line: #d9e1ed;
    --home-brand: #1f6fff;
}

#home {
    background: var(--home-bg);
    color: var(--home-text);
    font-family: Arial, sans-serif;
    padding-bottom: 40px;
}

.home_container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.home_hero,
.home_services,
.home_gallery,
.home_cta {
    padding: 28px 0;
}

.home_hero .home_container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.hero_text {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    padding: 28px;
}

.hero_text h1 {
    margin: 0 0 12px 0;
    font-size: 36px;
    line-height: 1.2;
}

.hero_text p {
    margin: 0 0 18px 0;
    color: var(--home-muted);
    line-height: 1.6;
}

.hero_actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn_primary,
.btn_secondary {
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
}

.btn_primary {
    background: var(--home-brand);
    color: #fff;
}

.btn_secondary {
    background: #e9eef8;
    color: var(--home-text);
}

.placeholder {
    border: 2px dashed #afbdd3;
    border-radius: 14px;
    min-height: 200px;
    background: linear-gradient(135deg, #f8faff, #eef3fb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 12px;
}

.placeholder .label {
    font-weight: 700;
    font-size: 18px;
    color: #31445f;
}

.placeholder .size {
    margin-top: 6px;
    color: #587094;
    font-size: 13px;
}

.hero_media {
    min-height: 360px;
}

.home_services h2,
.home_gallery h2 {
    margin: 0 0 14px 0;
    font-size: 26px;
}

.service_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.service_card {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    padding: 12px;
}

.card_media.small {
    min-height: 140px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.service_card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.service_card p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.5;
}

.gallery_grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.gallery_item {
    min-height: 250px;
}

.gallery_item.wide {
    min-height: 520px;
}

.cta_box {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.cta_box h2 {
    margin: 0 0 8px 0;
}

.cta_box p {
    margin: 0;
    color: var(--home-muted);
}

@media (max-width: 960px) {
    .home_hero .home_container {
        grid-template-columns: 1fr;
    }

    .service_grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery_grid {
        grid-template-columns: 1fr;
    }

    .gallery_item.wide,
    .gallery_item {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .hero_text h1 {
        font-size: 30px;
    }

    .service_grid {
        grid-template-columns: 1fr;
    }

    .cta_box {
        flex-direction: column;
        align-items: flex-start;
    }
}
