:root {
    --dark_grey: #19191B;
    --blue: #6c93bd;
    --dark_blue: #4a6887;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e7e9ed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== HEADER ===== */
.header {
    padding-block: 0px;
}

.header_container {
    max-width: 1300px;
    margin-inline: auto;
    padding: 0 15px;
}

.header_nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ===== LOGO ===== */
.header_img {
    width: 14%;
    max-width: 110px;
    height: auto;
    display: block;
}

/* ===== NAVIGATION ===== */
.header_list {
    display: flex;
    gap: 180px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header_list-link {
    font-size: 25px;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
    letter-spacing: -0.47px;
}

.header_list-link:hover {
    color: var(--dark_blue);
}

.header_list-link.active {
    color: var(--dark_blue);
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 1024px) {
    .header_list {
        gap: 35px;
    }
    .header_list-link {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    .header_container {
        padding: 0 15px;
    }
    .header_nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    .header_img {
        width: 25%;
        max-width: 100px;
        flex-shrink: 0;
    }
    .header_list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-end;
        transform: none;
        width: auto;
    }
    .header_list-link {
        font-size: 14px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }
    .header_container {
        padding: 0 10px;
    }
    .header_nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }
    .header_img {
        width: 30%;
        max-width: 80px;
    }
    .header_list {
        gap: 10px;
        justify-content: flex-end;
        transform: none;
    }
    .header_list-link {
        font-size: 12px;
        letter-spacing: -0.2px;
    }
}

/* ===== ГЕРОЙ ===== */
.hero {
    background-image: url('images/банер\ на\ билборд\ снизу.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 80px 0 40px 0;
    text-align: center;
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 15px;
}

.hero-overlay-image {
    position: relative;
    z-index: 3;
    display: block;
    margin: 0 auto 20px auto;
    width: 70%;
    max-width: 300px;
}

.hero-overlay-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(108, 147, 189, 0.3));
    opacity: 0.85;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
    flex-direction: column;
    align-items: center;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    width: 90%;
    max-width: 350px;
}

.hero-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.hero-feature-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hero-feature-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== БЛОК "ЕСЛИ УМЕР БЛИЗКИЙ" ===== */
.steps-section {
    padding: 70px 0;
    background-color: #e7e9ed;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    color: var(--dark_blue);
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.step-card {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    border-left: 5px solid var(--blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: var(--blue);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark_grey);
    margin: 0;
}

.step-card h3 .step-phone {
    color: var(--dark_blue);
    font-weight: 700;
}

.step-card > p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 0 60px;
}

.step-contacts {
    margin: 12px 0 0 60px;
    padding-top: 12px;
    border-top: 1px solid #e8ecf2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.step-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.step-phone-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark_blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.step-phone-link:hover {
    color: var(--blue);
}

/* ===== БЛОК "О КОМПАНИИ" ===== */
.about-section {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 80px 0;
    background-color: #e7e9ed;
}

.about-section .container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.about-section .section-title {
    text-align: center;
    font-size: 44px;
    font-weight: 300;
    color: var(--dark_blue);
    margin-bottom: 60px;
}

.about-section .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
}

.about-section .about-text {
    background-color: #ffffff;
    padding: 55px 60px;
    border-radius: 20px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
}

.about-section .about-text p {
    font-size: 20px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 22px;
}

.about-section .about-text .about-intro {
    font-size: 20px;
    color: var(--dark_grey, #19191B);
    font-weight: 500;
}

.about-section .about-text strong {
    color: var(--dark_blue, #4a6887);
    font-weight: 700;
}

.about-section .about-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 30px 0;
}

.about-section .about-list li {
    padding: 12px 0 12px 45px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%236c93bd" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') left center no-repeat;
    background-size: 24px;
    border-bottom: 1px solid #f0f2f5;
    color: #555;
    font-size: 19px;
    line-height: 1.6;
}

.about-section .about-list li:last-child {
    border-bottom: none;
}

.about-section .about-btn {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--blue, #6c93bd);
    color: #fff;
    padding: 16px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
}

.about-section .about-btn:hover {
    background-color: var(--dark_blue, #4a6887);
    transform: scale(1.03);
}

.about-section .about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    min-height: 500px;
    background-color: #d9e2ec;
}

.about-section .about-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

/* ===== БЛОК "УСЛУГИ" (ИСПРАВЛЕН) ===== */
.services-section {
    padding: 80px 0;
    background-color: #e7e9ed;
    display: flex;
    justify-content: center;
    width: 100%;
}

.services-section .container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.services-section .section-title {
    text-align: center;
    font-size: 44px;
    font-weight: 300;
    color: var(--dark_blue);
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.service-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.12);
}

/* ===== КАРТИНКА В КАРТОЧКЕ ===== */
.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #d9e2ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark_grey);
    padding: 20px 20px 5px 20px;
    margin: 0;
    line-height: 1.3;
}

.service-desc {
    font-size: 16px;
    color: #777;
    padding: 0 20px 20px 20px;
    margin: 0;
    line-height: 1.5;
}

/* ===== БЛОК "КОНТАКТЫ" ===== */
.contacts-section {
    padding: 80px 0;
    background-color: #e7e9ed;
    display: flex;
    justify-content: center;
    width: 100%;
}

.contacts-section .container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.contacts-section .section-title {
    text-align: center;
    font-size: 44px;
    font-weight: 300;
    color: var(--dark_grey, #19191B);
    margin-bottom: 60px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.contact-card {
    background-color: #ffffff;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--blue, #6c93bd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: background-color 0.3s ease;
}

.contact-card:hover .contact-icon {
    background-color: var(--dark_blue, #4a6887);
}

.contact-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.contact-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark_grey, #19191B);
    margin-bottom: 15px;
}

.contact-text {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.contact-text strong {
    color: var(--dark_grey, #19191B);
    font-weight: 600;
}

.contact-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark_blue, #4a6887);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: var(--blue, #6c93bd);
}

.contact-map {
    grid-column: 1 / -1;
    padding: 40px 35px 30px 35px;
}

.contact-map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

.contact-map-address {
    margin-top: 15px;
    margin-bottom: 0;
}

.contact-map-link {
    font-size: 20px;
    font-weight: 500;
    color: var(--blue, #6c93bd);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-map-link:hover {
    color: var(--dark_blue, #4a6887);
    text-decoration: underline;
}

/* ========================================================
   ===== ВСЕ МЕДИА-ЗАПРОСЫ (АДАПТИВНОСТЬ) =====
   ======================================================== */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .service-image {
        height: 200px;
    }

    .about-section .about-text {
        padding: 40px 35px;
    }
    .about-section .about-text p {
        font-size: 18px;
    }
    .about-section .about-list li {
        font-size: 17px;
        padding: 10px 0 10px 40px;
    }
    .about-section .about-btn {
        font-size: 18px;
        padding: 16px 35px;
    }
}

@media (max-width: 1024px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .contact-map {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .about-section .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-section .about-image,
    .about-section .about-image img {
        min-height: 350px;
    }
    .about-section .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    /* ===== HERO ===== */
    .hero {
        padding: 30px 0 20px 0;
        background-attachment: scroll;
    }
    .hero-overlay-image {
        max-width: 180px;
        margin: 0 auto 15px auto;
    }
    .hero-features {
        margin-top: 15px;
        gap: 10px;
    }
    .hero-feature-item {
        width: 95%;
        max-width: 300px;
        padding: 8px 12px;
        gap: 12px;
    }
    .hero-feature-icon {
        width: 38px;
        height: 38px;
    }
    .hero-feature-icon img {
        width: 20px;
        height: 20px;
    }
    .hero-feature-text {
        font-size: 12px;
        line-height: 1.2;
    }

    /* ===== ШАГИ ===== */
    .steps-section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .step-card {
        padding: 20px 20px;
    }
    .step-header {
        gap: 15px;
    }
    .step-number {
        min-width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .step-card h3 {
        font-size: 16px;
    }
    .step-card > p {
        margin-left: 0;
    }
    .step-contacts {
        margin-left: 0;
    }
    .step-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .step-phone-link {
        font-size: 16px;
    }

    /* ===== О КОМПАНИИ ===== */
    .about-section {
        padding: 50px 0;
    }
    .about-section .container {
        padding: 0 20px;
    }
    .about-section .section-title {
        font-size: 30px;
        margin-bottom: 30px;
    }
    .about-section .about-text {
        padding: 25px 20px;
    }
    .about-section .about-text p {
        font-size: 17px;
    }
    .about-section .about-text .about-intro {
        font-size: 20px;
    }
    .about-section .about-list li {
        font-size: 16px;
        padding: 10px 0 10px 35px;
        background-size: 20px;
    }
    .about-section .about-btn {
        font-size: 16px;
        padding: 14px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .about-section .about-image,
    .about-section .about-image img {
        min-height: 280px;
    }

    /* ===== УСЛУГИ (ИСПРАВЛЕНЫ) ===== */
    .services-section {
        padding: 50px 0;
    }
    .services-section .container {
        padding: 0 20px;
    }
    .services-section .section-title {
        font-size: 30px;
        margin-bottom: 30px;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .service-image {
        height: 160px;
        width: 100%;
    }
    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .service-title {
        font-size: 16px;
        padding: 12px 12px 5px 12px;
    }
    .service-desc {
        font-size: 13px;
        padding: 0 12px 15px 12px;
    }

    /* ===== КОНТАКТЫ ===== */
    .contacts-section {
        padding: 50px 0;
    }
    .contacts-section .container {
        padding: 0 20px;
    }
    .contacts-section .section-title {
        font-size: 30px;
        margin-bottom: 30px;
    }
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .contact-card {
        padding: 30px 20px;
    }
    .contact-map {
        grid-column: 1 / -1;
        padding: 25px 20px;
    }
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    .contact-icon img {
        width: 30px;
        height: 30px;
    }
    .contact-title {
        font-size: 19px;
    }
    .contact-text {
        font-size: 15px;
    }
    .contact-phone {
        font-size: 17px;
    }
    .contact-map-wrapper iframe {
        height: 220px;
    }
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ ===== */
@media (max-width: 480px) {
    /* ===== HERO ===== */
    .hero {
        padding: 20px 0 15px 0;
    }
    .hero-overlay-image {
        max-width: 130px;
        margin: 0 auto 10px auto;
    }
    .hero-feature-item {
        width: 98%;
        max-width: 280px;
        padding: 6px 10px;
        gap: 10px;
    }
    .hero-feature-icon {
        width: 32px;
        height: 32px;
    }
    .hero-feature-icon img {
        width: 18px;
        height: 18px;
    }
    .hero-feature-text {
        font-size: 11px;
        line-height: 1.2;
    }

    /* ===== ОБЩЕЕ ===== */
    .section-title {
        font-size: 24px;
    }

    /* ===== ШАГИ ===== */
    .step-card {
        padding: 16px 16px;
    }
    .step-number {
        min-width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .step-card h3 {
        font-size: 15px;
    }
    .step-card > p {
        font-size: 14px;
    }
    .step-phone-link {
        font-size: 15px;
    }

    /* ===== О КОМПАНИИ ===== */
    .about-section .section-title {
        font-size: 26px;
    }
    .about-section .about-text {
        padding: 20px 15px;
    }
    .about-section .about-text p {
        font-size: 16px;
    }
    .about-section .about-text .about-intro {
        font-size: 18px;
    }
    .about-section .about-list li {
        font-size: 15px;
        padding: 8px 0 8px 30px;
        background-size: 18px;
    }
    .about-section .about-btn {
        font-size: 15px;
        padding: 12px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .about-section .about-image,
    .about-section .about-image img {
        min-height: 220px;
    }

    /* ===== УСЛУГИ (ИСПРАВЛЕНЫ) ===== */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-image {
        height: 200px;
        width: 100%;
    }
    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .service-title {
        font-size: 18px;
        padding: 15px 15px 5px 15px;
    }
    .service-desc {
        font-size: 14px;
        padding: 0 15px 15px 15px;
    }

    /* ===== КОНТАКТЫ ===== */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-card {
        padding: 25px 20px;
    }
    .contact-map {
        grid-column: 1;
        padding: 20px 15px;
    }
    .contact-icon {
        width: 55px;
        height: 55px;
    }
    .contact-icon img {
        width: 28px;
        height: 28px;
    }
    .contact-title {
        font-size: 18px;
    }
    .contact-text {
        font-size: 15px;
    }
    .contact-phone {
        font-size: 17px;
    }
    .contact-map-wrapper iframe {
        height: 200px;
    }
    .contact-map-link {
        font-size: 14px;
    }
}