/* Основной контейнер блока */
.block-white-container {
    background-color: #ffffff;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Сетка для текста и фото — фиксированные 50% на 50% */
.vet-block {
    display: flex;
    align-items: stretch; /* Растягиваем дочерние элементы на всю высоту контейнера */
    gap: 40px;
    justify-content: space-between;
}

/* Каждый блок занимает ровно половину ширины минус отступ (gap) */
.vet-block > * {
    flex: 1 1 0; /* grow shrink basis. 0 в основе заставляет их делиться поровну */
    min-width: 0; /* Защита от переполнения длинным заголовком или текстом */
}

/* Стили конкретно для текстовой части (если нужен отдельный контроль) */
.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем контент по вертикали внутри своей половины */
}

/* Адаптивность: на мобильных устройствах колонки встают друг под друга */
@media (max-width: 768px) {
    .vet-block {
        flex-direction: column-reverse; /* Сначала ставим текст, чтобы кнопка была выше */
    }

    /* Возвращаем полную ширину блокам на мобильных */
    .vet-block > * {
        flex-basis: 100%;
    }

    .text-start.block-link.mt-5 {
        text-align: center;
    }
}
/* Основной контейнер */
.oral-block {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

/* Заголовок H2 */
.oral-block h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
    font-weight: 700;
}

/* Сетка признаков — строго 3 колонки на десктопе */
.oral-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ровно три равные колонки */
    gap: 25px;
}

/* Элемент признака */
.oral-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Эффект при наведении для привлечения внимания к проблеме */
.oral-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

/* Рамка для иконки */
.icon-frame {
    width: 60px;
    height: 60px;
    background-color: #fff3cd; /* Мягкий желтый цвет, ассоциирующийся с предупреждением */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: background-color 0.3s ease;
}

/* Изменение фона рамки при наведении */
.oral-item:hover .icon-frame {
    background-color: #ffeaa7;
}

/* Иконка */
.oral-icon {
    width: 28px;
    height: 28px;
    color: #d4a017; /* Темно-оранжевый цвет иконок */
    object-fit: contain;
}

/* Название признака */
.oral-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 10px;
    line-height: 1.4;
    font-weight: 600;
}

/* Описание признака */
.oral-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* --- АДАПТИВНОСТЬ --- */

/* Планшеты и узкие экраны ноутбуков: 2 блока в строке */
@media (max-width: 900px) and (min-width: 769px) {
    .oral-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Чтобы карточки не были слишком широкими при больших паддингах контейнера */
    .oral-block {
        padding: 30px 20px;
    }
}

/* Мобильные устройства: 1 блок в строке */
@media (max-width: 768px) {
    .oral-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }

    .oral-block {
        padding: 25px 15px;
    }

    .oral-block h2 {
        font-size: 1.6rem;
    }

    .oral-item {
        padding: 20px 15px;
    }

    .icon-frame {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .oral-icon {
        width: 26px;
        height: 26px;
    }

    .oral-title {
        font-size: 1.1rem;
    }

    .oral-desc {
        font-size: 0.9rem;
    }
}


/* Основной контейнер */
.diseases-block {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

/* Заголовок H2 */
.diseases-block h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
    font-weight: 700;
}

/* Список заболеваний */
.diseases-list {
    list-style-type: none; /* Убираем стандартные буллиты */
    padding: 0;
    margin: 0;
}

/* Элемент списка */
.disease-item {
    display: flex;
    align-items: flex-start; /* Выравниваем по верхнему краю иконки */
    gap: 20px;
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

/* Разделитель между элементами не нужен, так как есть тень и отступ
   Но если нужно отделить их линией:
*/
.disease-item:not(:last-child) {
    border-bottom: 1px dashed #cbd5e1;
}

/* Эффект при наведении */
.disease-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

/* Рамка для иконки */
.icon-frame {
    width: 50px;
    height: 50px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Запрещаем иконке сжиматься */
    transition: background-color 0.3s ease;
}

/* Изменение фона рамки при наведении */
.disease-item:hover .icon-frame {
    background-color: #bbdefb;
}

/* Иконка */
.disease-icon {
    width: 24px;
    height: 24px;
    color: #1565c0;
    object-fit: contain;
}

/* Текстовая часть внутри пункта списка */
.disease-content {
    flex-grow: 1;
    min-width: 0; /* Защита от переполнения заголовком */
}

/* Название заболевания */
.disease-title {
    font-size: 1.15rem;
    color: #2c3e50;
    margin: 0 0 6px;
    line-height: 1.4;
    font-weight: 600;
}

/* Описание заболевания */
.disease-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 576px) {
    .diseases-block {
        padding: 25px 15px;
    }

    .diseases-block h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .disease-item {
        padding: 15px 20px;
        gap: 15px;
    }

    .icon-frame {
        width: 45px;
        height: 45px;
    }

    .disease-icon {
        width: 22px;
        height: 22px;
    }

    .disease-title {
        font-size: 1.1rem;
    }

    .disease-desc {
        font-size: 0.9rem;
    }
}


/* Основной контейнер */
.diagnosis-block {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

/* Заголовок H2 секции */
.diagnosis-block h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
}

/* Подзаголовок-пояснение */
.diagnosis-subtitle {
    display: block;
    font-size: 1.1rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 35px;
    font-weight: 500;
}

/* Сетка из двух колонок */
@media (min-width: 901px) {
    .diagnosis-grid {
        display: flex;
        gap: 40px;
        align-items: start;
    }

    .diagnosis-text-side,
    .diagnosis-image-side {
        flex: 1;
    }
}

/* Левая текстовая часть */
.diagnosis-text-side {
    max-width: 100%;
}

/* Пошаговый пункт */
.step-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

/* Номер шага */
.step-item::before {
    content: attr(data-step); /* Берем номер из data-атрибута в HTML */
    position: absolute;
    left: 0;
    top: 8px;
    width: 32px;
    height: 32px;
    background-color: #1976d2; /* Акцентный синий */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Если не хочется использовать data-атрибуты, можно прописать номера вручную:
.step-item:nth-child(1)::before { content: '1'; }
.step-item:nth-child(2)::before { content: '2'; }
.step-item:nth-child(3)::before { content: '3'; }
*/

/* Заголовок шага */
.step-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 8px;
    line-height: 1.4;
    font-weight: 600;
}

/* Описание шага */
.step-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Правая картинка */
.diagnosis-image-side {
    overflow: hidden;
    border-radius: 10px;
    min-height: 400px;
    background-color: #f0f4f8; /* Фон-заполнитель на случай долгой загрузки */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Само изображение */
.diagnosis-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

/* Легкое увеличение картинки при наведении */
.diagnosis-image-side:hover .diagnosis-image {
    transform: scale(1.05);
}

/* Адаптивность: на мобильных устройствах блоки встают друг под друга */
@media (max-width: 900px) {
    .diagnosis-grid {
        display: block;
    }

    .diagnosis-text-side {
        margin-bottom: 30px;
    }

    .diagnosis-image-side {
        min-height: 300px;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .diagnosis-block {
        padding: 30px 20px;
    }

    .diagnosis-block h2 {
        font-size: 1.6rem;
    }

    .diagnosis-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .step-item {
        padding-left: 45px;
    }

    .step-item::before {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        top: 6px;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-desc {
        font-size: 0.9rem;
    }
}


/* Основной контейнер секции */
.treatment-stages {
    padding: 40px 0;
    background-color: #f8f9fa; /* Светлый фон секции */
}

/* Заголовок H2 */
.treatment-stages h2 {
    font-size: 2rem;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

/* Вводный текст */
.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Список этапов */
.stage-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Элемент списка */
.stage-list li {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: flex-start;
    border: 1px solid #e5e7eb;
}

/* Эффект при наведении */
.stage-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* Блок с иконкой */
.icon {
    font-size: 2.5rem;
    margin-right: 20px;
    flex-shrink: 0;
    line-height: 1;
}

/* Текстовая часть */
.treatment-stages .text {
    flex-grow: 1;
  --max-lines: 5; /* Количество строк в описании */
}

/* Жирный заголовок внутри пункта */
.text strong {
    display: block;
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Описание внутри пункта */
.text p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Адаптивность текста */
@media (max-width: 640px) {
    .treatment-stages h2 {
        font-size: 1.7rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .stage-list li {
        padding: 20px 15px;
    }

    .icon {
        font-size: 2.2rem;
        margin-right: 15px;
    }

    .text strong {
        font-size: 1rem;
    }

    .text p {
        font-size: 0.9rem;
    }
}


/* --- ОБЕРТКА СЕКЦИИ --- */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}


/* Заголовок H2 */
.faq-section h2 {
    text-align: center;
    font-size: 2.4rem;
    color: #1e3a8a;
    margin-bottom: 40px;
    font-weight: 600;
}

/* --- СТИЛИЗАЦИЯ ТЕГА DETAILS --- */
details {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}

details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Убираем стандартный черный треугольник справа в Webkit-браузерах */
details summary::-webkit-details-marker {
    display: none;
}
/* Для Firefox */
details > summary {
    list-style: none;
}

/* Область вопроса (заголовок аккордеона) */
summary {
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e3a8a;
    position: relative;
    outline: none;
}

/* Иконка плюса/минуса сбоку */
summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
    width: 30px;
    height: 30px;
    text-align: center;
    color: #64748b;
    transition: transform 0.3s ease;
}

/* Превращаем плюс в минус при открытии */
details[open] summary::after {
    content: '–';
    transform: translateY(-50%) rotate(0deg);
}

/* Текст ответа внутри */
details p {
    padding: 0 25px 25px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    border-top: 1px dashed #cbd5e1;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 640px) {
    .faq-section h2 {
        font-size: 1.8rem;
    }

    details summary {
        font-size: 1rem;
        padding: 18px 20px;
    }

    details p {
        padding-left: 20px;
        padding-right: 20px;
    }
}
