/* === ОБЩИЕ СБРОСЫ И ШРИФТЫ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f7fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* === КНОПКИ === */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: #0056b3;
    color: #fff;
}
.btn-primary:hover {
    background: #003d80;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,86,179,0.3);
}
.btn-outline {
    border: 2px solid #0056b3;
    color: #0056b3;
    background: transparent;
}
.btn-outline:hover {
    background: #0056b3;
    color: #fff;
}

/* === ШАПКА САЙТА === */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo img {
    height: 40px;
}
.main-nav ul {
    display: flex;
    gap: 25px;
}
.main-nav ul li a {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    transition: color 0.2s;
}
.main-nav ul li a:hover {
    color: #0056b3;
}
.header-phone a {
    font-weight: 700;
    color: #0056b3;
    font-size: 18px;
    white-space: nowrap;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/* === ОСНОВНОЙ КОНТЕЙНЕР СТРАНИЦ === */
.page-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* === ГЕРОЙ-БЛОК === */
.hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0 100px;
    color: #fff;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero .subtitle {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
}
.hero .btn {
    margin: 10px;
}

/* === СЕКЦИИ === */
section {
    padding: 80px 0;
}
section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a1a1a;
}

/* === КАРТОЧКИ УСЛУГ (исправлено, чтобы не наплывали) === */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.service-cards .card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.card img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
}
.card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: #1e293b;
}
.card p {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 14px;
}
.card a {
    color: #0056b3;
    font-weight: 600;
}

/* === ПРЕИМУЩЕСТВА === */
.advantages {
    background: #fff;
}
.adv-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.adv-item {
    text-align: center;
    padding: 20px;
}
.adv-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.adv-item h3 {
    margin-bottom: 10px;
    color: #0056b3;
}
.adv-item p {
    color: #555;
}

/* === ОБЪЕКТЫ === */
.object-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.object-card {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.object-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.object-card h3, .object-card p {
    position: relative;
    z-index: 2;
}
.object-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
}
.object-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* === ЭТАПЫ === */
.stages {
    background: #fff;
}
.stage-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.stage {
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    flex: 1 1 200px;
    max-width: 240px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.stage .step {
    background: #0056b3;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-weight: 700;
    font-size: 18px;
}
.stage h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* === ГАРАНТИИ === */
.guarantees {
    background: #f0f4ff;
}
.guarantees ul {
    max-width: 600px;
    margin: 20px auto 0;
    font-size: 17px;
}
.guarantees li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}
.guarantees li::before {
    content: "✔";
    color: #0056b3;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* === ФОРМА ЗАЯВКИ === */
.lead-form-block {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 60px auto;
}
.lead-form-block h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}
.lead-form-block input,
.lead-form-block select,
.lead-form-block textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}
.lead-form-block button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
}

/* === ПОДВАЛ === */
.site-footer {
    background: #1e293b;
    color: #ccc;
    padding: 40px 0;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-contacts p {
    margin-bottom: 8px;
}
.footer-cta .btn {
    background: #fff;
    color: #0056b3;
    font-weight: 700;
}

/* === СЕТКА КЕЙСОВ === */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.case-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.case-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.case-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.case-card h3 {
    font-size: 18px;
    margin: 12px;
}
.case-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0 12px 12px;
}

/* === КАРТА === */
#cases-map {
    z-index: 1;
}

/* ========== АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ ========== */
@media (max-width: 768px) {
    /* Шапка */
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 99;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .header-phone {
        margin-left: auto;
        margin-right: 15px;
    }

    /* Герой */
    .hero {
        padding: 80px 0 60px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero .subtitle {
        font-size: 16px;
    }

    /* Секции */
    section {
        padding: 50px 0;
    }
    section h2 {
        font-size: 24px;
    }

    /* Карточки услуг и преимущества */
    .service-cards,
    .adv-list {
        grid-template-columns: 1fr;
    }
    .service-cards .card {
        max-width: 100%;
    }

    /* Объекты */
    .object-types {
        grid-template-columns: 1fr;
    }

    /* Этапы */
    .stage-list {
        flex-direction: column;
        align-items: center;
    }
    .stage {
        max-width: 100%;
        width: 100%;
    }

    /* Общий контейнер */
    .page-content {
        margin: 20px auto;
        padding: 0 15px;
    }

    /* Кнопки */
    .btn {
        padding: 10px 18px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    .hero .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    .lead-form-block {
        padding: 25px 15px;
    }
}