/* --- 1. ТВОЇ КАСТОМНІ СТИЛІ КАРТОК --- */
.symptoms .service__link {
    background: var(--service-bg-img) lightgray 50% / cover no-repeat !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 0 25px -3px #00000026;
    height: 180px !important;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.symptoms .service__link:hover {
    transform: scale(1.05);
}

/* Плашки з текстом */
.service__badge {
    background: rgba(14, 129, 223, 0.5) !important; 
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 10px 10px;
    backdrop-filter: blur(5px);
    padding: 5px 10px;
}

.service__badge .service__title {
    color: #fff !important;
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Фонові зображення */
.symptoms .services__item.symptom--1 .service__link { --service-bg-img: url('assets/images/bolit-pod-lopatkoy/инфографика.png'); }
.symptoms .services__item.symptom--2 .service__link { --service-bg-img: url('assets/images/bill-v-spiny.png'); background-position: top !important; background-size: 100% 80% !important; }
.symptoms .services__item.symptom--3 .service__link { --service-bg-img: url('assets/images/ustal-1.webp'); }
.symptoms .services__item.symptom--4 .service__link { --service-bg-img: url('assets/images/всд 3.jpg'); background-position: top !important; background-size: 100% 80% !important; }
.symptoms .services__item.symptom--5 .service__link { --service-bg-img: url('assets/images/bessonnitsa/бессонница 1.png'); }

/* --- 2. КОНТЕЙНЕР БЛОКУ --- */
.symptoms-main {
    position: relative;
    width: 100%;
}

/* --- 3. МОБІЛКА (Слайдер ПРАЦЮЄ ЯК В ПРАЙСІ) --- */
@media (max-width: 1279px) {
    .symptoms-main {
        overflow: hidden !important;
        padding-bottom: 50px !important;
    }
    
    .symptoms-main .services__list {
        display: flex !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    /* Слайд на весь екран. Ми просто центруємо те, що всередині нього */
    .symptoms-main .swiper-slide {
        display: flex !important;
        justify-content: center !important;
    }

    /* Сама картка */
    .symptoms-main .service__link {
        width: 180px !important;
        height: 180px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Пагінація */
    .symptoms-pagination-new.swiper-pagination {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%);
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .symptoms-pagination-new .swiper-pagination-bullet {
        width: 12px !important;
        height: 12px !important;
        background-color: #e5810d !important;
        opacity: 0.4;
        margin: 0 5px !important;
    }

    .symptoms-pagination-new .swiper-pagination-bullet-active {
        opacity: 1 !important;
        background-color: #0e81df !important;
    }
} /* <--- ОСЬ ЦЯ ДУЖКА БУЛА ПРОПУЩЕНА, ТЕПЕР ВОНА ТУТ */

/* --- 4. ДЕСКТОП (Слайдер ЗНИЩЕНО, 5 в ряд) --- */
@media (min-width: 1280px) {
    .symptoms-main {
        padding-bottom: 20px !important;
        overflow: visible !important; /* Щоб краї не зрізались */
    }

    /* Оскільки JS вбив Swiper, це тепер просто звичайний flex-список */
    .symptoms-main .services__list {
        display: flex !important;
        justify-content: center !important;
        gap: 16px !important; /* Відступ між картками */
        flex-wrap: nowrap !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        transform: none !important; /* Знімаємо залишки зсуву, якщо є */
    }

    /* 5 карток в ряд */
    .symptoms-main .services__item {
        /* (100% ширини - 4 відступи по 16px) / 5 карток */
        width: calc((100% - 16px * 4) / 5) !important; 
        max-width: 180px !important; /* Тримаємо твій ліміт */
        height: 180px !important;
        margin: 0 !important;
        flex-shrink: 1 !important; /* Дозволяє карткам ідеально влізти і не зрізатися */
    }

    /* Магія квадрата */
    .symptoms-main .service__link {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important; /* Робить висоту рівною ширині */
        max-height: 180px !important;
    }

    /* Ховаємо крапки */
    .symptoms-pagination-new {
        display: none !important;
    }
}

.link--primary {
    color: var(--color--white, #fff);
    background-color: var(--color--accent-primary, #0e81df); /* Синій колір */
    box-shadow: 0 0 15px #0000001a;
    border-radius: 10px;
    gap: 8px;
    min-height: 50px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
    
    /* Щоб текст був по центру і працював відступ: */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* На всякий випадок додамо центрування тексту і для помаранчевої кнопки, 
   якщо вона раптом не має display: flex */
.about__link.link--secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/*Головна сторінка Aboute*/
/* Обгортка для фото (сірий фон-картка) */
.about__img-wrap {
    background-color: #f2f3f5;
    /* ЗБІЛЬШИЛИ ВІДСТУП: Було 16px, стало 24px. 
       Це додасть більше "повітря" навколо фото */
    padding: 24px; 
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* ФІКС РОЗМІРУ: */
    width: 100%; /* На мобілці займе всю ширину */
    max-width: 400px; /* Але на десктопі не буде ширшим за оригінальний розмір фото */
    box-sizing: border-box; /* Важливо! Щоб відступи були всередині цього розміру, а не роздували його */
    margin: 0 auto;
}

/* Сама фотографія Зої */
.about__img-wrap .about__img {
    border-radius: 8px;
    display: block;
    width: 100%; /* Картинка займе весь доступний простір всередині збільшених відступів */
    height: auto;
}

/* Текст з синім акцентом */
.about__img-wrap .about__img-caption {
    margin: 20px 0 0 0; /* Трохи збільшив відступ до тексту для балансу */
    font-size: 16px;
    font-weight: 600;
    color: var(--color--accent-primary, #0e81df);
    text-align: center;
    line-height: 1.2;
}

.articles-link.section {
    padding-top: 20px;
    padding-bottom: 40px;
}

.articles-link__box {
    display: flex;
    justify-content: center;
    width: 100%;
}

.articles-link__pill {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Оптимальна ширина для читання */
    min-height: 60px;
    background-color: var(--color--accent-primary, #0e81df); /* Твій фірмовий синій */
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(14, 129, 223, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.articles-link__pill:hover {
    background-color: #0b6cbd; /* Трохи темніший при наведенні */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 129, 223, 0.3);
}

/* Адаптив під мобілку */
@media (max-width: 767px) {
    .articles-link__pill {
        font-size: 16px;
        padding: 12px 20px;
        border-radius: 10px;
    }
}

/* Стиль для "посилань" всередині карток цін */
.price-card-link {
    text-decoration: none !important; /* Прибираємо підкреслення за замовчуванням */
    cursor: pointer; /* Курсор-рука */
    transition: all 0.3s ease; /* Плавна анімація */
    display: block; /* Щоб можна було вирівняти по центру */
    text-align: center; /* Вирівнювання по центру */
    position: relative;
    z-index: 10; /* Щоб клікалося поверх основної картки */
}

/* Стиль при наведенні */
.price-card-link:hover {
    text-decoration: underline !important; /* Додаємо підкреслення при ховері */
    opacity: 0.8; /* Легкий ефект напівпрозорості для інтерактивності */
}