
/* --- ОБЕРТКА СЕКЦИИ --- */
.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;
    }
}

/* Основной контейнер блока */
.vet-block {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 40px; /* Расстояние между текстом и фото */

    margin: 50px 0 auto; /* Центрируем блок на странице */
    background-color: var(--color-white);
    align-items: center;
}

/* Стили текста */
.text-content h1 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.text-content .subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 25px;
}

.text-content .main-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Стили для изображения */
.photo-column {
    overflow: hidden;
    border-radius: 8px;
}

.photo-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-column img:hover {
    transform: scale(1.05);
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 768px) {
    .vet-block {
        grid-template-columns: 1fr; /* На смартфонах — одна колонка */
        text-align: center;
        margin: 30px 15px;
        gap: 25px;
        padding: 30px 20px;
    }

    .text-content h1 {
        font-size: 1.8rem;
    }

    .text-content .subtitle {
        font-size: 1rem;
    }

    .photo-column {
        order: -1; /* Показываем картинку над текстом */
    }
}


/* --- ОБЕРТКА СЕКЦИИ --- */
.allergy-symptoms {
    padding: 50px 0;
    background-color: #fef7f7; /* Нежно-розовый/персиковый фон для акцента на проблеме */
}



/* Заголовок H2 */
.allergy-symptoms h2 {
    text-align: center;
    font-size: 2.4rem;

    margin-bottom: 15px;
    font-weight: 600;
}

/* Вводный текст */
.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* СПИСОК СИМПТОМОВ */
.symptom-list {
    list-style: none; /* Убираем стандартные точки браузера */
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Адаптивная сетка */
    gap: 20px;
}

/* Элемент списка */
.symptom-list li {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: flex-start;
}

.symptom-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Иконка слева */
.icon {
    font-size: 2rem;
    margin-right: 15px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

/* Текстовая часть */
.text strong {
    display: block;
    font-size: 1.1rem;
    color: #1e3a8a;
    margin-bottom: 5px;
    font-weight: 500;
}

.text p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 600px) {
    .allergy-symptoms h2 {
        font-size: 2rem;
    }

    .symptom-list {
        grid-template-columns: 1fr; /* На смартфонах — строго одна колонка */
    }

    .symptom-list li {
        padding: 18px 20px;
    }
}


/* --- ОБЕРТКА СЕКЦИИ --- */
.directions-section {

}

.container {

}

.directions-section h2 {
    text-align: center;
    font-size: 2.4rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 600;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- СЕТКА КАРТОЧЕК (ГЛАВНОЕ ИЗМЕНЕНИЕ) --- */
.grid-directions {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две колонки */
    gap: 30px;

    /* Описываем макет сеткой областей */
    grid-template-areas:
        "card1 card2"
        "card3 card4"
        "card5 card5"; /* Пятый блок занимает обе колонки внизу */
}

/* Привязываем блоки к областям по классам */
.direction-card.parasitic { grid-area: card1; }
.direction-card.allergic   { grid-area: card2; }
.direction-card.infectious { grid-area: card3; }
.direction-card.endocrine  { grid-area: card4; }
.direction-card.claws      { grid-area: card5; }

/* ЦВЕТНАЯ ПОЛОСА СЛЕВА (внешняя обертка article) */
.direction-card {
    border-left: 6px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
}

/* БЕЛАЯ ВНУТРЕННЯЯ ЧАСТЬ карточки */
.card-inner {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Чтобы тени и отступы были одинаковыми */
}

/* Эффект при наведении */
.card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ЦВЕТА ЛЕВЫХ ПОЛОС ДЛЯ КАЖДОЙ ГРУППЫ */
.parasitic { border-left-color: #dc2626; }       /* Красный */
.allergic { border-left-color: #ea580c; }        /* Оранжевый */
.infectious { border-left-color: #d97706; }      /* Янтарный */
.endocrine { border-left-color: #ca8a04; }       /* Желтый */
.claws { border-left-color: #059669; }           /* Зеленый */

/* ТЕКСТ ВНУТРИ КАРТОЧКИ */
.direction-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e3a8a;
    line-height: 1.3;
}

/* СПИСОК ЗАБОЛЕВАНИЙ */
.direction-card ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    flex-grow: 1; /* Занимает свободное место, выравнивая высоту */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* Равномерно распределяем пункты по высоте */
}

.direction-card li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

/* Галочка-маркер */
.direction-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: #059665;
    font-weight: bold;
}

.direction-card li:last-child {
    margin-bottom: 0;
}

/* --- АДАПТИВНОСТЬ (МОБИЛЬНЫЕ) --- */
@media (max-width: 768px) {
    .grid-directions {
        /* На смартфонах сетка перестраивается в одну колонку */
        grid-template-columns: 1fr;
        grid-template-areas:
            "card1"
            "card2"
            "card3"
            "card4"
            "card5"; /* Пятый блок встает последним во всю ширину экрана */
        gap: 20px;
    }

    .card-inner {
        padding: 20px 25px;
    }

    .directions-section h2 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }
}


/* --- ОБЕРТКА СЕКЦИИ --- */
.diagnostics-section {

}


/* Заголовок H2 */
.diagnostics-section h2 {
    text-align: center;
    font-size: 2.4rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 600;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- СЕТКА ДИАГНОСТИКИ (3 в ряд) --- */
.grid-diagnostics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Адаптивные колонки */
    gap: 30px;
}

/* СТИЛИ КАРТОЧКИ */
.diag-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: flex-start;
    height: 100%;
}

.diag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Иконка слева */
.icon-holder {
    width: 50px;
    height: 50px;
    background-color: #eff6ff; /* Голубоватый круг */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
    font-size: 1.5rem;
}

/* Текстовая часть */
.text-block {
    flex-grow: 1;
}

.text-block h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #1e3a8a;
    line-height: 1.3;
}

.text-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .grid-diagnostics {
        grid-template-columns: 1fr; /* На смартфонах — одна колонка */
    }

    .diagnostics-section h2 {
        font-size: 2rem;
    }

    .diag-card {
        padding: 20px 25px;
    }

    .icon-holder {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }

    .text-block h3 {
        font-size: 1.1rem;
    }
}

/* --- ОБЕРТКА СЕКЦИИ --- */
.treatment-methods {
    padding: 60px 0;
    background-color: #f8fafc; /* Светлый фон страницы */
}




/* Заголовок H2 */
.treatment-methods h2 {
    text-align: center;
    font-size: 2.4rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 600;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- ГЛАВНАЯ СЕТКА БЛОКА --- */
.grid-methods {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две равные колонки */
    gap: 40px; /* Расстояние между текстом и фото */
    align-items: start; /* Выравниваем по верхнему краю */
}

/* ЛЕВАЯ КОЛОНКА (Текст) */
.text-column {
    padding-right: 20px;
}

.method-list {
    list-style-type: none; /* Убираем стандартные точки браузера */
    padding-left: 0;
    margin: 0;
}

.method-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    padding-left: 30px;
    position: relative;
    margin-bottom: 20px;
}

/* Кастомный маркер-квадратик перед пунктом */
.method-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: #2563eb; /* Цвет маркера (синий) */
    border-radius: 2px;
}

/* Жирное выделение названия метода внутри строки */
.method-list strong {
    color: #1e3a8a;
    font-weight: 600;
}

/* ПРАВАЯ КОЛОНКА (Картинка) */
.image-column {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполнит блок без искажений */
    display: block;
    transition: transform 0.4s ease;
}

/* Эффект увеличения картинки при наведении */
.image-column img:hover {
    transform: scale(1.05);
}

/* --- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ --- */
@media (max-width: 768px) {
    .grid-methods {
        grid-template-columns: 1fr; /* Одна колонка */
        text-align: center;
        gap: 25px;
    }

    /* Порядок блоков: сначала картинка, потом текст (визуально привычнее) */
    .image-column {
        order: -1;
        margin-bottom: 0;
    }

    .text-column {
        padding-right: 0;
    }

    .treatment-methods h2 {
        font-size: 2rem;
    }

    .method-list li {
        font-size: 1rem;
        text-align: left; /* Возвращаем выравнивание текста по левому краю внутри мобайл-блока */
    }
}
