.seletecountry {
    width: 100%;
    height: 100vh;
    background: #000000c4;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.seletecountry a {
    text-decoration: none !important;
    color: #d3d3d3;
    display: block;
    width: 100%;
}

.seletecountry li {
    cursor: pointer;
}

.seletecountry__title {
    font-weight: 700;
    font-size: 42px;
}

.seletecountry__block {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: #f3f3f3;
    padding: 70px 40px;
    overflow-x: hidden;
    height: 80%;
}

.seletecountry__block-nav {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0;
}

.seletecountry__block-nav li {
    width: calc( ( 100% / 5) - 10px);
    text-align: center;
    padding: 10px 0;
    background: #e6e6e6;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 700;
}

.seletecountry__block-nav li a:hover {
    color: #000;
}

.seletecountry__block-nav li.active {
    background: #000000;
    color: #fff;
}

.seletecountry__block-nav li.active a {
    color: #fff;
}

.seletecountry__block-items {
    display: none;
}

.seletecountry__block-items.active {
    display: block;
}

.seletecountry__block-items:nth-of-type(3) .seletecountry__block-item:nth-of-type(2),
.seletecountry__block-items .max3 {
    justify-content: flex-start;
}

.seletecountry__block-items:nth-of-type(3) .seletecountry__block-item:nth-of-type(2) li,
.seletecountry__block-items .max3 li {
    margin-right: 15px;
}

a.seletecountry-close {
    position: absolute;
    top: 3%;
    right: 2%;
    border: 1px solid #c9dae2;
    padding: 5px 10px;
    color: #c9dae2;
}

.seletecountry__block-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: start;
    width: 100%;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0;
}

.seletecountry__block-item li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: calc( ( 100% / 3) - 10px);
    text-align: center;
    padding: 10px 0;
    margin-top: 10px;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    border-radius: 3px;
    -webkit-box-shadow: 2px 2px 2px #dfdfdf, -2px -2px 2px #fff;
    box-shadow: 2px 2px 2px #dfdfdf, -2px -2px 2px #fff;
    margin-right: 10px;
}

.seletecountry__block-item li:hover {
    -webkit-box-shadow: 2px 2px 2px #fff, -2px -2px 2px #dfdfdf;
    box-shadow: 2px 2px 2px #fff, -2px -2px 2px #dfdfdf;
}

.seletecountry__block-item li a {
    color: #000;
}

@media (max-width: 992px) {
    .seletecountry__block {
        width: 90%;
        padding: 40px 20px;
    }
    .seletecountry__block-nav {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-around;
    }
    .seletecountry__block-nav li {
        margin-top: 10px;
        width: calc( ( 100% / 2) - 5px);
    }
    .seletecountry__block-item {
        justify-content: center;
    }
    .seletecountry__block-items:nth-of-type(3) .seletecountry__block-item:nth-of-type(2),
    .seletecountry__block-items .max3 {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .seletecountry__block {
        width: 90%;
        padding: 40px 20px;
    }
    .seletecountry__block-nav li {
        width: 100%;
        margin-top: 10px;
    }
    .seletecountry__block-item li {
        width: 100%;
    }
}