.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;
    }
}



.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
}

.doctor-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none; /* Убирает подчеркивание у ссылки-карточки */
    color: inherit; /* Наследует цвет текста */
}

.doctor-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.doctor-spec {
    background-color: var(--color-orange);
    color: #fff;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.doctor-spec.double {
    font-size: 14px;
    line-height: 1.4;
    padding-top: 10px;
    padding-bottom: 10px;
}

.doctor-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: #f3f3f3;
}

.doctor-desc {
    padding: 16px;
    flex-grow: 1;
}

.doctor-desc h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.doctor-desc p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.doctor-link {
    display: block;
    text-align: center;
    padding: 14px 16px;
    background-color: #f7f7f7;
    color: #005cb9;
    text-decoration: none;
    font-weight: 500;
    border-top: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
    margin-top: auto; /* Прижимает кнопку к низу карточки */
}

.doctor-link:hover {
    background-color: #e9e9e9;
}


.animals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Адаптивность */
@media (max-width: 1199px) {
    .animals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .animals-grid {
        grid-template-columns: 1fr;
    }
}

.animal-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.animal-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.animal-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f0f8ff;
}

.animal-title {
    margin: 0;
    padding: 16px 12px 8px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.animal-desc {
    padding: 0 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    flex-grow: 1;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px;
}

.service-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.service-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #005cb9;
}

.service-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    flex-grow: 1;
}

/* Адаптивность */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


.urgent-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

/* Адаптивность: на мобильных экранах список будет сверху */
@media (max-width: 767px) {
    .urgent-block {
        grid-template-columns: 1fr;
    }
}

.urgent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.urgent-list h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #333;
}

.urgent-list ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.urgent-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.urgent-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 18px;
    color: #d32f2f;
}

.urgent-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}





/* --- ОБЕРТКА СЕКЦИИ --- */
.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;
    }
}
