/* Обертка */
.services-wrapper {
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

/* Обертка контента (Левая и Правая части) */
.services-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
}


/* Левая часть */
.services-left {
    flex-shrink: 0;
    width: 650px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.services-title {
    color: #292A2A;
    font-size: 40px;
    font-weight: 600;
    margin: 0; /* Убираем отступы, так как левая колонка сама их задает */
    margin-bottom: 0;
    max-width: 370px;	
}

/* Баннер */
.services-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    
    /* Фиксированная высота из задания */
    height: 270px; 
    width: 100%;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Можно настроить center top/bottom если нужно двигать картинку внутри */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);
}

.banner-icon-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-icon-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.banner-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: #fff;
}

.banner-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
}

.banner-subtitle {
    font-size: 14px;
    font-weight: 500;
}

/* Правая часть: Список */
.services-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    width: 100%;
}

/* Карточка услуги (Состояние по умолчанию - Серое) */
.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #F3F4F5;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    flex: 1;
    min-height: 100px; /* Минимальная высота для баланса */
}

.si-icon {
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: #00B1BA;
}

.si-info {
    flex: 1;
}

.si-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #292A2A;
    margin-bottom: 8px;
}

.si-desc {
    font-size: 14px;
    font-weight: 500;
    color: #878D91;
}

/* Кнопка стрелка (Состояние по умолчанию) */
.si-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(0, 177, 186, 0.20);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00B1BA;
    transition: background 0.3s, border 0.3s, color 0.3s;
}

/* --- ЛОГИКА АКТИВНОСТИ (без JS) --- */

/* 1. Активный элемент по умолчанию (Первый) */
.service-item.active {
    background: #00B1BA;
}

.service-item.active .si-title,
.service-item.active .si-desc {
    color: #fff;
}

.service-item.active .si-icon {
    color: #fff;
}

.service-item.active .si-arrow {
    background: #fff;
    border: none;
    color: #00B1BA;
}

/* 2. Логика при наведении на список */
.services-list:hover .service-item.active {
    background: #F3F4F5; /* Сброс цвета */
}
.services-list:hover .service-item.active .si-title { color: #292A2A; }
.services-list:hover .service-item.active .si-desc { color: #878D91; }
.services-list:hover .service-item.active .si-icon { color: #00B1BA; }
.services-list:hover .service-item.active .si-arrow {
    background: transparent;
    border: 1px solid rgba(0, 177, 186, 0.20);
    color: #00B1BA;
}

/* 3. Стили для элемента, на который навели */
.service-item:hover {
    background: #00B1BA !important;
}

.service-item:hover .si-title,
.service-item:hover .si-desc {
    color: #fff !important;
}

.service-item:hover .si-icon {
    color: #fff !important;
}

.service-item:hover .si-arrow {
    background: #fff !important;
    border: none !important;
    color: #00B1BA !important;
}
