/* == SERVICES.CSS == */

/* HEADER БЛОК */
.services-header {
    background: #eaf4fe;
    width: 96vw;
    min-width: 320px;
    min-height: 260px;
    margin: 0 auto 54px;
    padding: 80px 36px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 40px #3270a312, 0 1.5px 6px #1341800a;
}
.services-header h1 {
    color: #133740;
    font-size: 2.7em;
    font-weight: 800;
    margin: 0 0 22px;
    letter-spacing: 0.01em;
}
.services-header p {
    color: #133740;
    font-size: 1.29em;
    font-weight: 500;
    max-width: 1280px;
    margin: 0 auto;
}

/* СЕТКА КАРТОЧЕК */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 62px;
    justify-content: center;
    max-width: 1340px;
    margin: 38px auto 95px;
    padding: 0 20px;
}

/* КАРТОЧКА */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 315px;
    height: 315px;
    background: none;
    border-radius: 22px;
    box-shadow: 0 8px 36px #13418010, 0 2px 9px #13418014;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.17s, transform 0.18s;
}
.service-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    z-index: 1;
    transition: filter 0.21s, opacity 0.19s;
    pointer-events: none;
}
.service-card:hover {
    box-shadow: 0 16px 60px #13418019, 0 4px 14px #13418017;
    transform: translateY(-3.5px) scale(1.017);
}
.service-card:hover .service-bg {
    filter: brightness(1.10) saturate(1.13);
}

/* КОНТЕНТ КАРТОЧКИ */
.service-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(255,255,255,0.85);
    border-radius: 0 0 22px 22px;
    padding: 26px 30px 20px;
    box-sizing: border-box;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.service-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 7px;
}
.service-icon svg {
    width: 100%;
    height: 100%;
}
.service-card-content h2 {
    font-size: 1.23em;
    color: #133740;
    font-weight: 700;
    margin: 0 0 8px;
}
.service-card-content p {
    font-size: 1.07em;
    color: #133740;
    margin: 0;
}

/* FOOTER (повторяется из common.css) */

/* АДАПТИВ */
@media (max-width: 1050px) {
    .services-header { padding: 34px 2vw 19px; min-height: 150px; }
    .services-header h1 { font-size: 1.9em; }
    .services-header p { font-size: 1em; }
    .services-grid { gap: 26px 13px; }
    .service-card { min-height: 210px; height: 210px; }
    .service-card-content { padding: 13px 9px 11px; }
    .service-bg { border-radius: 19px; }
}
@media (max-width: 700px) {
    .services-header {
        padding: 45px 2vw 24px !important;
        min-height: 120px !important;
        margin-bottom: 23px !important;
    }
    .services-header h1 { font-size: 1.13em !important; }
    .services-header p { font-size: 0.92em !important; }
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 0 3vw;
        margin-bottom: 48px;
    }
    .service-card {
        min-height: 168px;
        height: auto;
        max-width: 98vw;
        margin: 0 auto 10px;
        border-radius: 19px;
    }
    .service-bg { border-radius: 19px; }
    .service-card-content {
        border-radius: 0 0 19px 19px;
        padding: 12px 11px 14px;
        min-height: 60px;
    }
    .service-card-content h2 { font-size: 1em; margin-bottom: 6px; }
    .service-icon { width: 24px; height: 24px; }
    .service-card-content p { font-size: 0.97em; }
}
@media (max-width: 500px) {
    .service-card-content h2 { font-size: 0.93em; }
    .service-card-content p { font-size: 0.89em; }
    .service-card-content { padding: 7px 4px 8px; min-height: 38px; }
}
@media (max-width: 900px) {
    .services-header {
        padding-top: 88px !important;
    }
}
@media (max-width: 700px) {
    .services-header {
        padding-top: 78px !important;
    }
}
