/* ===========================
   SERVICES SECTION - services.css
   =========================== */

.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* ===========================
   СІТКА ПОСЛУГ
   =========================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* ===========================
   КАРТКА ПОСЛУГИ
   =========================== */

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(145, 208, 114, 0.25);
}

/* ===========================
   ЗОБРАЖЕННЯ
   =========================== */

.service-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #91d072 0%, #2c3e50 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.service-placeholder-letter {
    font-size: 48px;
    line-height: 1;
}

/* ===========================
   ОВЕРЛЕЙ
   =========================== */

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(145, 208, 114, 0.85), rgba(44, 62, 80, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    font-size: 48px;
    font-weight: 300;
    transform: translateX(-20px);
    transition: transform 0.4s ease;
}

.service-card:hover .overlay-icon {
    transform: translateX(0);
}

/* ===========================
   КОНТЕНТ КАРТКИ
   =========================== */

.service-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.service-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.service-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

/* ===========================
   СПИСОК ОСОБЛИВОСТЕЙ
   =========================== */

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    margin-bottom: 20px;
}

.service-features li {
    padding: 10px 0;
    padding-left: 28px;
    color: #555;
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #91d072;
    font-weight: bold;
    font-size: 16px;
}

.service-features li:hover {
    padding-left: 32px;
    color: #2c3e50;
}

.service-features li a {
    color: inherit;
    text-decoration: none;
}

/* ===========================
   ПОСИЛАННЯ
   =========================== */

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #91d072;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.service-link:hover {
    gap: 12px;
    color: #7bc05a;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* ===========================
   АДАПТИВНІСТЬ
   =========================== */

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-content {
        padding: 25px 20px;
    }
}
