
/* Header Section */
.page-header {
    padding: 40px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.section-title-services {
    text-align:center;
    color: #284139;
    font-size: 40px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 24px;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Services Section */
.services {
    padding: 40px 0;
    background-color: #ffffff;
}

.services-grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card-services {
    
    width: 100%; /* Змінити з fit-content на 100% */
    max-width: 100%; /* Додати обмеження по ширині */
    box-sizing: border-box; /* Враховувати padding у ширину */
    overflow: hidden; /* Запобігає виходу вмісту */
    
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display:flex;
    flex-direction: row;
}

.service-card-services:hover {
    transform: translateY(-10px);
}

.service-image-services {
    width: 300px;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.5rem;
    font-weight: bold;
    object-fit: cover;
}

.service-content-services {
    padding: 25px;
}

.service-content-services h3 {
    color: #284139;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content-services p {
    color: #555;
    line-height: 1.6;
}

/* Offers Section */
.offers {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.offer-card {

    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-image {
    width: 100%;
    max-height: 300px;

    object-fit: cover; /* Запобігає розтягуванню */
    display: block;
}

.offer-content {
    padding: 25px;
}

.offer-content h3 {
    color: #284139;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.offer-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}
/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: #284139;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}


.btn:hover {
    background-color: #e6b449;
}


@media (max-width: 500px) {
    .service-card-services {
        flex-direction: column;
        width: 100vw; /* Ширина по viewport */
        margin-left: -20px; /* Компенсація можливих відступів батька */
        margin-right: -20px; /* Компенсація можливих відступів батька */
        border-radius: 0; /* Якщо потрібно прибрати закруглення */
    }
    
    .offer-image{
        width:auto;
    }
    
    .offer-card{
        flex-direction: column;
        width: 100vw; /* Ширина по viewport */
        margin-left: -20px; /* Компенсація можливих відступів батька */
        margin-right: -20px; /* Компенсація можливих відступів батька */
        border-radius: 0; /* Якщо потрібно прибрати закруглення */
    }
}
