

.section-title-left-availability { /* Заголовок выровнен по левому краю */
    font-size: 2.8em;
    color: #222;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: left;
    line-height: 1.2;
}
.highlight-green {
    color: var(--primary-color);
}


.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 4 колонки, адаптируется */
    gap: 20px; /* Расстояние между карточками */
}

.availability-card {
    background-color: #fff; /* Белый фон карточки */
    padding: 25px 20px; /* Внутренние отступы */
    border-radius: 8px; /* Скругление углов */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Легкая тень */
    display: flex;
    flex-direction: column; /* Название и ссылка друг под другом */
    justify-content: space-between; /* Ссылка прижимается к низу */
    min-height: 120px; /* Минимальная высота для выравнивания */
    text-align: left; /* Текст в карточке слева */
}

.availability-card h3 {
    font-size: 1.2em;
    font-weight: bold; /* Жирное название страны */
    color: #333;
    margin-top: 0;
    margin-bottom: 15px; /* Отступ до ссылки */
}

.details-link-availability {
    font-size: 0.9em;
    color: #ff8c69; /* Примерный оранжево-розовый цвет ссылки */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start; /* Ссылка выравнивается по левому краю */
}

.details-link-availability:hover {
    color: #ff7043; /* Цвет ссылки при наведении */
    /* text-decoration: underline; */ /* Можно добавить подчеркивание при наведении */
}

/* Адаптивность */
@media (max-width: 992px) {
    .section-title-left-availability {
        font-size: 2.5em;
    }
    .availability-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Может стать 3 колонки */
    }
}

@media (max-width: 768px) {
    .section-title-left-availability {
        font-size: 2.2em;
        text-align: center; /* Заголовок по центру на мобильных */
    }
    .availability-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 2 колонки */
    }
    .availability-card {
        text-align: center; /* Карточки по центру на мобильных */
    }
    .details-link-availability {
        align-self: center; /* Ссылка по центру */
    }
}

@media (max-width: 576px) {
    .availability-section {
        padding: 60px 0;
    }
    .section-title-left-availability {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .availability-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }
}


.section-header-availability-ru {
    text-align: left; /* Заголовок и текст по центру */
    margin-bottom: 30px;
}

.section-header-availability-ru h1 {
    font-size: 2.5em;
    color: #000;
    margin-top: 0;
    margin-bottom: 15px;
}

.intro-text-availability {
    font-size: 1em;
    color: #333;
    line-height: 1.7;
}

/* Стили для формы поиска (похожи на предыдущий пример, но с другими классами) */
.availability-search-form-ru {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.search-input-wrapper-ru {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrapper-ru .search-icon-ru {
    position: absolute;
    left: 15px;
    color: #adb5bd;
    font-size: 0.9em;
}
.search-input-wrapper-ru input[type="text"] {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #dee2e6; /* Немного другой цвет рамки */
    border-radius: 25px;
    font-size: 0.95em;
    outline: none;
    background-color: #fff; /* Белый фон поля */
    transition: border-color 0.3s ease;
}
.search-input-wrapper-ru input[type="text"]:focus {
    border-color: #f0a078;
}
.search-submit-button-ru {
    background-color: #f0a078;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.search-submit-button-ru:hover {
    background-color: #eb8f61;
    transform: translateY(-2px);
}

/* Стили для фильтров */
.federal-district-filters {
    display: flex;
    flex-wrap: wrap; /* Для переноса кнопок на маленьких экранах */
    justify-content: left; /* Центрируем кнопки */
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #adb5bd; /* Серая рамка */
    background-color: #c1ebd5; /* Белый фон неактивной кнопки */
    color: #333; /* Темный текст неактивной кнопки */
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.filter-btn:hover {
    border-color: #555;
    color: #000;
}
.filter-btn.active {
    background-color: var(--primary-color); /* Темный фон активной кнопки */
    color: #fff; /* Белый текст активной кнопки */
    border-color: var(--primary-color);
}


/* Стили для сетки регионов */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Адаптивная сетка, примерно 4 колонки */
    gap: 25px;
}

.region-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Очень легкая тень */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.region-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.region-card .federal-district-name {
    font-size: 0.75em;
    color: #888;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    min-height: 2.4em; /* Для выравнивания, если название округа в 2 строки */
}

.region-card h3 {
    font-size: 1.05em;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 8px;
    flex-grow: 1; /* Чтобы заголовок занимал место и кнопка была внизу */
    line-height: 1.3;
}

.details-link-region {
    font-size: 0.8em;
    color: #f0a078; /* Тот же цвет, что и у кнопки "Найти" */
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start; /* Ссылка слева */
    margin-top: auto; /* Прижимает ссылку к низу */
    transition: color 0.3s ease;
}
.details-link-region:hover {
    color: #eb8f61;
}

/* Адаптивность */
@media (max-width: 992px) {
    .regions-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Может стать 3 колонки */
    }
}
@media (max-width: 768px) {
    .section-header-availability-ru h1 {
        font-size: 2em;
    }
    .availability-search-form-ru {
        flex-direction: column;
        gap: 10px;
        max-width: 400px;
    }
    .search-submit-button-ru {
        width: 100%;
    }
    .federal-district-filters {
        justify-content: flex-start; /* Кнопки фильтров могут начинаться слева */
        overflow-x: auto; /* Если не помещаются, добавить горизонтальный скролл */
        padding-bottom: 10px; /* Место для скроллбара, если появится */
        -ms-overflow-style: none;  /* IE и Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .federal-district-filters::-webkit-scrollbar { /* Chrome, Safari, Opera */
        display: none;
    }

    .regions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Может стать 2 колонки */
    }
}
@media (max-width: 576px) {
    .regions-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }
}