/*ПЕРВАЯ СЕКЦИЯ*/
.hero {
    position: relative;
    background-color: #2c3e50;
    padding: 350px 0;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/пожарная машина .jpg");
    background-size: 120% auto;
    background-position: 80% center;
    filter: blur(8px);
    transform: scale(1.05);
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1800px;
    margin: 0 auto;
}
.hero-question {
    font-family: 'Dela Gothic One', cursive;
    white-space: nowrap;
    font-size: 50px;
    color: #ffffff;
}
.hero-experience {
    font-size: 22px;
    font-family: 'Arial Black';
    color: #ffffff;
}

/*ВТОРАЯ СЕКЦИЯ*/
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;   /* отступ между карточками и списками */
}

.services .container {
    padding: 0 10px;
}

.service-card {
    flex: 1;
    min-width: 280px;
    background: #FCC200;
    border-radius: 50px;
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;    /* центрируем заголовок */
}

/* Сетка для списков (такая же, три колонки) */
.services-lists {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.list-column {
    flex: 1;
    min-width: 280px;
    background: transparent; /* без фона, без рамки */
}

/* Стили списков (галочки остаются) */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services {
    padding: 70px 30px;
    min-height: 800px;
    background-color: #f8f9fa;
}

.services-title {
    text-align: center;
    font-family: 'Dela Gothic One', cursive;
    font-size: 48px;
    color: #000000;
    margin-bottom: 50px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-heading {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.two {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #000000;
}
.one {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.4;
    color: #000000;
    font-family: 'Dela Gothic One', cursive;
}

/*ТРЕТЬЯ СЕКЦИЯ*/ 
.container-contacts {
    padding: 80px 50px;
    background-color: #FCC200;
    border-top: 1px solid #e9ecef;
}

.contacts-title {
    text-align:left;
    font-family: 'Dela Gothic One', cursive;
    font-size: 60px;
    color: #e9ecef;
    margin-bottom: 30px;
     letter-spacing: 4px;
}

.contacts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: stretch;
}

.contacts-info {
    flex: 1;
    min-width: 280px;
    padding: 50px 80px;
}

.company-name-full {
    font-size: 30px;
    font-weight: 500;
    color: #e9ecef;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contacts-info p {
    margin-bottom: 15px;
    font-size: 30px;
    color: #e9ecef;
    line-height: 1.5;
}

.contacts-info a {
    color: #e9ecef;
    text-decoration: none;
    font-family: 'Dela Gothic One', cursive;
    transition: opacity 0.2s;
}

.contacts-info a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.contacts-map {
    flex: 1;
    min-width: 280px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contacts-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.contacts-map img:hover {
    transform: scale(1.02);
}


@media (max-width: 768px) {
    .hero-question { 
        font-size: 28px; 
        white-space: normal;   /* разрешить перенос на маленьких экранах */
        font-size: 24px;
    }
    .hero-experience { 
        font-size: 18px; 
    }
        .services {
        padding: 50px 20px;
    }
    .services-title {
        font-size: 28px;
    }
    .service-card {
        min-width: 100%;
    }
    .service-heading {
        font-size: 22px;
    }
}