/* ===== Общие настройки ===== */
.procedures {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

/* ===== Ссылка-обертка карточки (сама кликабельна) ===== */
.procedure--card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 320px;
    outline: none;
}

/* ===== Карточка ===== */
.procedure--card {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

/* ===== Анимация при наведении ===== */
.procedure--card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

/* ===== Фокус-стили (доступность) ===== */
.procedure--card:focus-visible,
.procedure--card-link:focus-visible {
    outline: 3px solid #80C216;
    outline-offset: 2px;
}

/* ===== Шапка: картинка + заголовок ===== */
.procedure--card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fafafa;
}

.procedure--card-header img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 6px;
}

.procedure--title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    color: #333;
}

/* ===== Контент (описание) ===== */
.procedure--content {
    padding: 0 1rem;
}

.procedure--description {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0.75rem 0 1rem;
    color: #555;
    font-family: 'Montserrat', sans-serif;
}

/* ===== Кнопка ===== */
.procedure--button-wrapper {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    justify-content: center;
}

.procedure--button {
    text-decoration: none;
    background-color: #80C216;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.procedure--button:hover {
    background-color: #6ba611;
    transform: translateY(-1px);
}

/* ===== Заглушка для отсутствующей картинки ===== */
.procedure--placeholder {
    width: 60px;
    height: 60px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border-radius: 6px;
    color: #aaa;
}

/* ===== Сообщение, если процедур нет ===== */
.procedure--no-results {
    font-style: italic;
    color: #666;
    padding: 2rem;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .procedures {
        flex-direction: column;
        align-items: center;
    }

    .procedure--card {
        max-width: 100%;
    }

    .procedure--card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .procedure--card-header img {
        width: 70px;
        height: 70px;
    }

    .procedure--title {
        font-size: 1.1rem;
    }

    .procedure--description {
        font-size: 0.9rem;
    }
}