/** Баннер с картинкой **/

#top-banner{
    background: #F7F7F7;
}

.top-banner-container{
    width: 100%;
    max-width: 85rem;
    margin: 0 auto;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;

    padding: 3rem 2.375rem 0;
    box-sizing: border-box;
}

@media(max-width: 1360px){
    .top-banner-container{
        padding: 2.5rem 1rem 0;
    }
}

@media(max-width: 1023px){
    #top-banner{
        align-items: center;
    }
}

.top-banner-image{
    width: 99%;
}

.top-banner-column{
    flex-basis: 45%;
    margin-right: 3rem;
}

.top-banner-column:last-child{
    margin-right: 0;
}

@media(max-width: 1023px){
    .top-banner-column{
        flex-basis: 45%;
        margin-right: 3rem;
    }
}

@media(max-width: 640px){
    .top-banner-column{
        flex-basis: 100%;
        margin-right: 0;
    }

    .top-banner-column:last-child{
        text-align: center;
    }
}

.top-banner-title{
    color: #BC2539;
    font-weight: 550;
    font-size: 2.75rem;
    line-height: 1.375;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;

    margin-bottom: 0;
}


.top-banner-subtitle{
    font-weight: 550;
    font-size: 1.75rem;
    line-height: 1.375;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;
    color: #666666;

    margin-top: 0.5rem;
}

.top-banner-description{
    font-weight: 550;
    font-size: 1.5rem;
    line-height: 1.375;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;
    color: #000000;
}

@media(max-width: 1023px){
    .top-banner-title{
        font-size: 1.75rem;
    }

    .top-banner-subtitle{
        font-size: 1.3rem;
    }

    .top-banner-description{
        font-size: 1rem;
    }
}

@media(max-width: 640px){
    .top-banner-container {
        gap: 2rem;
    }

    .top-banner-title{
        font-size: 1.5rem;
    }

    .top-banner-subtitle{
        font-size: 1.3rem;
    }

    .top-banner-description{
        font-size: 1.125rem;
    }
}

.top-banner-actions{
    margin-top: 4rem;
}

.top-banner-button{
    text-decoration: none;
    border: 1px solid #BC2539;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.375;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;
    color: #000000;
    cursor: pointer;
}

.top-banner-button:hover, .top-banner-button:active{
    background: #BC2539;
    color: #FFFFFF;
}

/** Сменяющиеся картинки **/
.top-banner-images {
    position: relative;
    width: 99%;
    aspect-ratio: 773 / 768;
}

/* Базовый стиль для всех трёх элементов */
.img-item {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: background-image 0.3s ease, opacity 0.3s ease;
}

.img-1 {
    left: 0;
    top: 14%;
    width: 45%;
    height: 50%;
    background-image: url("../images/top-banner/pic (6).png");
}
.img-1:hover, .img-1.img-item-hovered {
    background-image: url("../images/top-banner/pic (5).png");
}

.img-2 {
    right: 0;
    top: 0;
    width: 65%;
    height: 60%;
    background-image: url("../images/top-banner/pic (1).png");
}
.img-2:hover, .img-2.img-item-hovered {
    background-image: url("../images/top-banner/pic (3).png");
}

.img-3 {
    left: 27%;
    bottom: 5%;
    width: 47%;
    height: 45%;
    background-image: url("../images/top-banner/pic (4).png");
}
.img-3:hover, .img-3.img-item-hovered {
    background-image: url("../images/top-banner/pic (2).png");
}

/** Направления **/

#features{
    background: #F7F1F1;
}

.features-container{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    padding: 2rem 1rem;
    max-width: 85rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media(max-width: 1360px){
    .features-container{
        justify-content: center;
    }
}

.feature-item{
    margin: 1.375rem;
    padding: 1.8rem;
    text-align: center;
    background: #FFFFFF;
    border-radius: 2rem;

    -webkit-box-shadow: 7px 7px 5px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 7px 7px 5px rgba(0, 0, 0, 0.3);
    box-shadow: 7px 7px 5px rgba(0, 0, 0, 0.3);

    flex-basis: 30%;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 30%;
    position: relative;
    display: flex;
    flex-direction: column;
}

@media(max-width: 1400px){
    .feature-item{
        flex-basis: 29%;
        width: 29%;
    }
}

@media(max-width: 1023px){
    .feature-item{
        flex-basis: 48%;
        width: 48%;
    }
}

@media(max-width: 640px){
    .feature-item{
        flex-basis: 100%;
        width: 100%;
    }
}

.feature-title-container{
    display: flex;
    flex: 1;
    flex-wrap: wrap;
}

.feature-title{
    font-weight: 500;
    font-size: 1.175rem;
    line-height: 1.375;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;
    color: #000000;
    width: 100%;
    margin-bottom: 0;
}

.feature-link, .feature-link:active, .feature-link:visited{
    text-decoration: none;
    color: #000000;
}

.feature-image{
    height: 4rem;
}

/** Эффект при наведении **/

.feature-item:hover .feature-link{
    color: #FFFFFF;
}

.feature-item:hover{
    background: #BC2539;
}

.feature-image#egais{
    background: url("../images/features/egais.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(1):hover .feature-image#egais{
    background: url("../images/features/egais-hover.svg") no-repeat top center;
    background-size: contain;
}

.feature-image#markirovka{
    background: url("../images/features/markirovka.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(2):hover .feature-image#markirovka{
    background: url("../images/features/markirovka-hover.svg") no-repeat top center;
    background-size: contain;
}

.feature-image#ecp{
    background: url("../images/features/ecp.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(3):hover .feature-image#ecp{
    background: url("../images/features/ecp-hover.svg") no-repeat top center;
    background-size: contain;
}

.feature-image#otchetnost{
    background: url("../images/features/otchetnost.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(4):hover .feature-image#otchetnost{
    background: url("../images/features/otchetnost-hover.svg") no-repeat top center;
    background-size: contain;
}

.feature-image#security{
    background: url("../images/features/security.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(5):hover .feature-image#security{
    background: url("../images/features/security-hover.svg") no-repeat top center;
    background-size: contain;
}

.feature-image#integration{
    background: url("../images/features/integration.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(6):hover .feature-image#integration{
    background: url("../images/features/integration-hover.svg") no-repeat top center;
    background-size: contain;
}

.feature-image#development{
    background: url("../images/features/development.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(7):hover .feature-image#development{
    background: url("../images/features/development-hover.svg") no-repeat top center;
    background-size: contain;
}

.feature-image#cooperation{
    background: url("../images/features/cooperation.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(8):hover .feature-image#cooperation{
    background: url("../images/features/cooperation-hover.svg") no-repeat top center;
    background-size: contain;
}

.feature-image#science{
    background: url("../images/features/science.svg") no-repeat top center;
    background-size: contain;
    margin: 0 auto;
    width: 4rem;
}
.feature-item:nth-child(9):hover .feature-image#science{
    background: url("../images/features/science-hover.svg") no-repeat top center;
    background-size: contain;
}

/** Параллакс **/

.parallax {
    height: 22rem;
    background: url("../images/parallax.jpg?v=1") no-repeat fixed center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
@media(max-width: 640px){
    .parallax {
        height: 22rem;
        background: url("../images/parallax-mobile.jpg") no-repeat fixed center center;
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
}
.parallax .mask {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: 2;
}

/** Новости **/
#news{
    background: #F7F1F1;
    overflow-x: hidden;
}

.news-container{
    max-width: 85rem;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2.375rem 3rem;
    box-sizing: border-box;
}

@media(max-width: 1360px){
    .news-container{
        padding: 2rem 1rem 3rem;
    }
}

@media(max-width: 640px){
    .news-container{
        padding: 2rem 1rem 0;
    }
}

.news-item-container{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

@media(max-width: 640px){
    .news-item-container{
        display: none;
    }
}

.news-item-container__mobile{
    display: none;
}

@media(max-width: 640px){
    .news-item-container__mobile{
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 2rem;
    }
}

.news-item{
    flex-basis: 45%;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 45%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-divider{
    width: 1px;
    background: #BC2539;
    margin: 0 2rem;
}

@media(max-width: 1023px){
    .news-item{
        flex-basis: 100%;
    }

    .news-divider{
        width: 100%;
        height: 1px;
        background: #BC2539;
        margin: 2rem 0;
    }
}

.news-item-container__mobile .news-item{
    display: none;
}

.news-item__title-container{
    display: flex;
    flex-wrap: wrap;
}

.news-title{
    font-weight: 550;
    font-size: 1rem;
    line-height: 1.375;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;
}

.news-link, .news-link:active, .news-link:visited{
    text-decoration: none;
    color: #000000;
}

.news-link:hover{
    color: #BC2539;
}

.news-item__date{
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.5;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;
    color: #000000;
    margin: 0;
}

.news-item__title{
    font-weight: 550;
    font-size: 1rem;
    line-height: 1.375;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;
}

.news-item__link, .news-item__link:hover, .news-item__link:active, .news-item__link:visited{
    text-decoration: none;
    color: #000000;
}

.news-item__link:hover{
    color: #BC2539;
}

.news-item__description{
    font-size: 1rem;
    line-height: 1.5;
    font-family: "Montserrat",Helvetica,Arial,sans-serif;
    color: #000000;
    margin: 0;
}

/** Стрелочки новостей **/
.news-directions{
    text-align: right;
    margin: -1.75rem 0 0;
    position: relative;
    z-index: 9999;
}

.news-directions__item{
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: inline-block;
}

.news-directions__left{
    background: url("../images/directions/direction-left.svg") no-repeat center center;
    background-size: cover;
}

.news-directions__left:hover{
    background: url("../images/directions/direction-left-hover.svg?v=1") no-repeat center center;
    background-size: cover;
}

.news-directions__left.news-directions__disabled:hover{
    background: url("../images/directions/direction-left.svg") no-repeat center center;
    background-size: cover;
}

.news-directions__right{
    background: url("../images/directions/direction-right.svg") no-repeat center center;
    background-size: cover;
}

.news-directions__right:hover{
    background: url("../images/directions/direction-right-hover.svg?v=1") no-repeat center center;
    background-size: cover;
}

.news-directions__right.news-directions__disabled:hover{
    background: url("../images/directions/direction-right.svg") no-repeat center center;
    background-size: cover;
}

.news-directions__space{
    display: inline-block;
    width: 0.5rem;
}

@media(max-width: 1023px){
    .news-directions{
        text-align: center;
    }
}

@media(max-width: 640px){
    .news-directions{
        display: none;
    }
}

.news-footer-points{
    text-align: center;
    width: 100%;
    margin: 2rem 0 0;
}

.news-footer-points__item{
    cursor: pointer;
    width: 14px;
    height: 14px;
    margin-right: 0.5rem;
    display: inline-block;
    background: url("../images/directions/point.svg") no-repeat center center;
    background-size: contain;
}

.news-footer-points__item-active{
    background: url("../images/directions/point-active.svg") no-repeat center center;
    background-size: contain;
}

.news-footer-points__item:last-child{
    margin-right: 0;
}

/* popups */

.overlay *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
    line-height: 1.4;
}

.btn {
    border: 2px solid #BC2539;
    max-width: 192px;
    width: 100%;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    border-radius: 8px;
    transition: .4s;
    padding: 16px 0;
    cursor: pointer;
}

.btn:hover {
    background-color: #BC2539;
    color: white;
}

.custom-radio {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 48px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 500;
    user-select: none;
}

.custom-radio input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio .checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 36px;
    width: 36px;
    background-color: #eee;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.3s ease;
}

.option label{
    margin-bottom: 24px;
}

.custom-radio input:checked~.checkmark {
    background-color: #BC2539;
    /* Красный фон */
    border-color: #BC2539;
}

.custom-radio .checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.custom-radio input:checked~.checkmark::after {
    display: block;
}

.custom-radio .checkmark::after {
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
}


.overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 32px 4%;
    display: none;
    justify-content: center;
    align-items: start;
    /* важно: чтобы box смещался вверх и позволял скролл */
    backdrop-filter: blur(24px);
    overflow-y: auto;
    /* здесь скроллим overlay */
}

.overlay .box {
    padding: 70px 140px;
    position: relative;
    max-width: 1212px;
    width: 100%;
    background: #F7F7F7;
    border-radius: 12px;
    box-shadow: 0px 4px 16px 4px #00000060;
    display: flex;
    flex-direction: column;
}


.overlay .box .container {
    width: 100%;
    box-sizing: border-box;
}

.overlay .fa-xmark {
    position: absolute;
    right: 36px;
    top: 36px;
    cursor: pointer;
}

.overlay .box h1 {
    text-align: center;
    font-size: 24px;
    line-height: 1.5;
}

.overlay .box h2 {
    text-align: center;
    font-size: 24px;
    line-height: 1.5;
}

.overlay form .input {
    height: 60px;
    padding: 12px;
    width: 100%;
    border: 1px solid #B3B3B3;
    margin-bottom: 11px;
    margin-top: 7px;
    font-size: 17px;
    border-radius: 8px;
    box-shadow: 0px 4px 16px 4px #00000020;
}

.label {
    font-size: 24px;
    font-weight: 500;
}

.radio-error-message {
    margin-top: 42px;
}

.option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px 32px;
}

.option input[type="checkbox"] {
    min-width: 36px;
    min-height: 36px;
}

.option input[type="radio"] {
    min-width: 36px;
    min-height: 36px;
}

.option label {
    font-size: 24px;
    font-weight: 500;
}

.extra__options {
    display: flex;
    gap: 12px
}

.other-input {
    flex-grow: 1;
    margin-left: 26px;
    margin-top: 5px;
    min-width: 150px;
    /* display: none; */
}

.other-input input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    width: 200px;
    font-size: 24px;
}

.other-input input::placeholder {
    font-size: 24px;
}

.overlay input.btn {
    padding: 12px;
    margin-top: 24px;
    height: auto;
}

.error-message {
    color: tomato;
    font-size: 14px;
    margin-top: 4px;
    display: block;
    min-height: 18px;
}

.overlay .fa-xmark {
    width: 20px;
}

/* responsives */
@media (max-width: 1700px) {
    .btn {
        font-size: 14px;
        max-width: 160px;
        height: 36px;
    }

    .other-input input::placeholder,
    .other-input input,
    .option label,
    .label,
    .overlay .box h2,
    .overlay .box h1 {
        font-size: 20px;
    }

    .option input[type="checkbox"] {
        min-width: 30px;
        min-height: 30px;

    }

    .option input[type="radio"] {
        min-width: 30px;
        min-height: 30px;

    }

    .overlay form .input {
        height: 52px;
    }

    .overlay .box {
        padding: 56px 12%;
        height: fit-content;
    }
}

@media (max-width: 676px) {
    .overlay .box {
        padding: 48px 24px;
    }

    .option .other-input {
        margin-left: 0;
    }

    .overlay .fa-xmark {
        width: 12px;
        right: 16px;
        top: 16px;
    }

    .overlay input.btn {
        margin: auto;
    }

    .extra__options {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .radio-error-message {
        margin-top: 0;
    }

    .option input[type="checkbox"] {
        width: 28px;
        height: 28px;
    }

    .option input[type="radio"] {
        width: 28px;
        height: 28px;
    }

    .option label{
        margin-bottom: 12px;
    }

    .custom-radio .checkmark {
        width: 28px;
        height: 28px;
    }

    .custom-radio .checkmark::after {
        top: 4px;
        left: 4px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
    }
}

@media (max-width: 450px) {
    .btn {
        font-size: 20px;
        max-width: 230px;
        height: 54px;
    }

    .option label {
        font-size: 16px;
    }

    .option {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 16px 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 340px) {
    .btn {
        font-size: 16px;
        max-width: 192px;
        height: 44px;
    }
}

