.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;
    }
}



.vet-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.vet-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.vet-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}
.vet-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.vet-card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.vet-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    color: #1e293b;
    line-height: 1.3;
}
.vet-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.5;
}
.vet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .vet-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .vet-grid-row {
        grid-template-columns: 1fr;
    }
}


.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;
    }
}




.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%;
    }
}



/* Контейнеру с блоками задаем сетку */
.diseases-container.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки равной ширины */
    gap: 20px; /* Расстояние между блоками */
}

.disease-block {
  background-color: var(--color-white);
  padding: 20px;
  border-radius: 20px;
}

/*
   Если у .disease-block уже есть свои стили (например, padding, border, background),
   они сохранятся. Grid управляет только положением блоков,
   а не их внутренним наполнением.
*/

/* Опционально: адаптив для мобильных устройств (схлопывание в одну колонку) */
@media (max-width: 992px) {
    .diseases-container.grid-4 {
        grid-template-columns: repeat(2, 1fr); /* На планшетах 2 в ряд */
    }
}

@media (max-width: 600px) {
    .diseases-container.grid-4 {
        grid-template-columns: 1fr; /* На смартфонах 1 в ряд */
    }
}



.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.doctor-card {
    display: block;
    background: var(--color-white, #fff);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.doctor-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.doctor-desc h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
}

.doctor-desc p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
}

.doctor-link {
    display: inline-block;
    font-weight: 600;
    color: #0073aa; /* Цвет ссылок WordPress по умолчанию */
    text-decoration: none;
}

.doctor-link::after {
    content: " →";
}



/* --- ОБЕРТКА СЕКЦИИ --- */
.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;
    }
}
