/* Страны на главной: app/themes/proxymo/views/page/tez/widgets/_countries.html.erb */

.countries_section {
    width: 100%;
    margin: 0;
    padding: 55px 0;
    background: #f8f8f8;
    box-sizing: border-box;
}

.countries_limit {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.countries_title {
    margin: 0;
    padding: 0;
    color: #222222;
    font-family: var(--site-font-family);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.countries_delimiter {
    width: 45px;
    height: 3px;
    margin: 18px 0 28px;
    border-radius: 2px;
    background: var(--quaternary-color);
}

.countries_grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px;
}

.countries_item[hidden] {
    display: none !important;
}

.countries_item {
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 33.333%;
    max-width: 33.333%;
    padding: 0 7px 14px;
    transition-property: opacity, transform, filter;
    transition-duration: 0.55s, 0.65s, 0.55s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.countries_item.countries_item_loading {
    filter: blur(12px);
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.96);
}

.countries_item.countries_item_loading.is_loaded {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.countries_card {
    position: relative;
    display: block;
    height: 224px;
    overflow: hidden;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    background: #d9dee5;
}

.countries_image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s ease-out;
}

.countries_card:hover .countries_image {
    transform: scale(1.03);
}

.countries_overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 43%,
        color-mix(in srgb, var(--primary-color) 92%, transparent) 100%
    );
    pointer-events: none;
}

.countries_content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

.countries_name {
    color: #ffffff;
    font-family: var(--site-font-family);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.countries_price {
    margin-top: 15px;
    color: #ffffff;
    font-family: var(--site-font-family);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    transition: margin-bottom 0.3s ease-out;
}

.countries_card:hover .countries_price {
    margin-bottom: 7px;
}

.countries_more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.countries_more_btn {
    min-height: 43px;
    padding: 0 24px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: transparent;
    color: var(--primary-color);
    font-family: var(--site-font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 41px;
    text-transform: uppercase;
    cursor: pointer;
}

.countries_more_btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

@media (max-width: 991px) {
    .countries_item {
        flex-basis: 50%;
        max-width: 50%;
    }

    .countries_card {
        height: 200px;
    }

    .countries_name {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .countries_section {
        padding: 36px 0;
    }

    .countries_title {
        font-size: 24px;
    }

    .countries_item {
        flex-basis: 100%;
        max-width: 100%;
    }

    .countries_card {
        height: 210px;
    }
}
