.block-white-container {
    background-color: #ffffff;
    padding: 40px 0;
}


/* Сетка для текста и фото — фиксированные 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;
    }
}


.cat-health-container {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}

.cat-health-left {
    flex: 1;
    background-color: var(--color-white);
    border: 2px solid var(--color-grey);
    border-radius: 12px;
    padding: 25px;
}

.cat-health-left h2 {
    margin-top: 0;
    color: #8b4513;
    font-size: 24px;
    border-bottom: 2px solid var(--color-grey);
    padding-bottom: 10px;
}

.cat-health-list {
    padding-left: 20px;
    margin: 0;
}

.cat-health-list li {
    margin-bottom: 15px;
    line-height: 1.5;
}

.cat-health-list li strong {
    color: #c0392b;
}

.cat-health-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border: 2px solid var(--color-grey);
    border-radius: 12px;
    min-height: 300px;
}

.cat-health-right img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .cat-health-container {
        flex-direction: column;
    }
}


.diseases-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.disease-block {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.disease-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.disease-block h3 {
    margin-top: 0;
    font-size: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.disease-block ul {
    padding-left: 20px;
    margin: 0 0 15px 0;
}

.disease-block li {
    margin-bottom: 6px;
    color: #34495e;
    line-height: 1.4;
}

.disease-block p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.warning {
    color: #c0392b;
    font-weight: 600;
}

.note {
    color: #7f8c8d;
    font-style: italic;
}

/* Адаптивность: на планшетах по 2 блока, на мобильных — по 1 */
@media (max-width: 900px) {
    .disease-block {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .disease-block {
        flex-basis: 100%;
    }
}

.doctors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    width: 320px;
    background-color: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.doctor-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #f4f6f8;
}

.doctor-spec {
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: #e3f2fd;
    color: #1565c0;
    border-bottom: 1px solid #bbdefb;
}

.doctor-desc {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doctor-desc h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #2c3e50;
}

.doctor-desc p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

.doctor-link {
    display: block;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    border-top: 1px solid #e1e5e9;
    transition: background-color 0.2s ease;
}

.doctor-card:hover .doctor-link {
    background-color: #f8fbfd;
}

/* Адаптивность */
@media (max-width: 768px) {
    .doctor-card {
        width: 100%;
        max-width: 400px;
    }
}


.bim-reasons {
    font-family: Arial, sans-serif;
    padding: 30px 0;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.bim-reasons h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 22px;
}

.reasons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.reason-item {
    flex: 1 1 220px;
    max-width: 260px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.reason-icon {
    margin-bottom: 15px;
    color: #3498db;
}

.reason-item h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #34495e;
}

.reason-item p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .reason-item {
        flex-basis: 100%;
        max-width: 100%;
    }
}


/* --- ОБЕРТКА СЕКЦИИ --- */
.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;
    }
}
