/* Общие настройки секции */
.services-section {
    padding: 60px 0;
    font-family: 'Montserrat', sans-serif;
    background: transparent;
}

.section-title {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 1.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #E1C58D; /* Золотой акцент */
    margin: 12px auto 0;
}

/* Контейнер сетки (ПК версия) */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 в ряд для баланса */
    gap: 25px;
    padding: 0 15px;
}

/* Логика скрытия */
.extra-services-wrapper {
    display: contents; /* Позволяет карточкам быть частью основной сетки */
}
.extra-services-wrapper > .service-card {
    display: none;
    opacity: 0;
}
.extra-services-wrapper.is-open > .service-card {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Карточка услуги (ПК) */
.service-card {
    background: #0f0f0f;
    border: 2px solid #E1C58D; /* Жирная обводка 2px */
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(225, 197, 141, 0.3);
    transform: translateY(-5px);
}

.service-img-wrap {
    height: 180px;
    background: #000;
    overflow: hidden;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

.service-card:hover .service-img-wrap img {
    opacity: 1;
    transform: scale(1.05);
}

.service-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-info h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.service-label {
    color: #E1C58D;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Кнопка-ссылка снизу */
.services-footer {
    text-align: center;
    margin-top: 40px;
}

.toggle-trigger {
    display: inline-block;
    color: #E1C58D;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(225, 197, 141, 0.4);
    padding-bottom: 4px;
    transition: 0.3s;
}

.toggle-trigger:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* МОБИЛЬНАЯ ВЕРСИЯ (Горизонтальные плашки) */
@media (max-width: 767px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        flex-direction: row; /* Текст справа от фото */
        height: 100px;
        border-width: 2px;
    }

    .service-img-wrap {
        width: 110px;
        height: 100%;
        flex-shrink: 0;
    }

    .service-info {
        padding: 12px 15px;
        text-align: left;
        justify-content: center;
    }

    .service-info h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .service-label {
        font-size: 10px;
    }
}