@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=M+PLUS+Rounded+1c:wght@500;700&display=swap');

:root{
    --dark-color: #0A1045;
    --light-color: #0079E8;
    --bg-color: #F0EFF4;
    --main-color: #ffffff;
    --footer-color: #25272D;

    --page-width: 1505px;
    --max-padding: calc((100vw - var(--page-width)) / 2);
}
::-webkit-scrollbar{
    width: 0;
}
html{
    scroll-behavior: smooth;
    background: var(--bg-color);
    color: var(--dark-color);

    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
section{
    box-sizing: border-box;
    width: calc(100vw - (var(--max-padding)*2));
    padding: 40px 20px;
}
p:not(.hd){
    font-family: 'Inter', sans-serif;
}


.carousel{
    position: absolute;
    top: 0;
    left: 0;
}
.swiper{
    position: relative;
    height: auto;
    background: var(--dark-color);
    width: 100vw;
    min-height: 750px;
    height: 100vh;
    max-height: 100vw;
}
.swiper .swiper-wrapper img{
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}
.swiper .over{
    width: 100%;
    height: 100%;
    background: radial-gradient(82.32% 286.04% at 82.32% 32.04%, rgba(10, 16, 69, 0) 0%, rgba(10, 16, 69, 0.6) 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */, linear-gradient(90deg, rgba(10, 16, 69, 0.5) 49.62%, rgba(10, 16, 69, 0) 100%), linear-gradient(180deg, #0A1045 0.4%, rgba(10, 16, 69, 0.8) 14%, rgba(10, 16, 69, 0) 25%);
    position: absolute;
    top: 0;
    z-index: 2;
    pointer-events: none;
}
.main .separator{
    position: absolute;
    z-index: 5;
    bottom: -2px;
    left: 0px;
    width: 100vw;
}

.main{
    color: var(--main-color);
    min-height: 750px;
    height: 100vh;
    max-height: 100vw;
}
header{
    position: relative;
    z-index: 2;
    
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.logo{
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 26px;
}
header nav{
    display: flex;
    gap: 20px;
    font-family: "Inter", sans-serif;
}
header .contacts{
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 24px;
}
.links{
    display: flex;
    flex-direction: column;
    align-items: end;
}
.links .tel{
    font-size: 16px;
}
.links .mail{
    font-size: 16px;
}

.main .headers{
    width: fit-content;
    margin-top: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 200px;
}
h1{
    z-index: 2;
    font-size: 46px;
    line-height: 120%;
}
.main .headers svg{
    z-index: 1;
    position: absolute;
    top: 58px;
    left: -15px;
    animation: khv 1s ease-in-out forwards;
    animation-delay: 1s;
    transform: translateX(calc(-1 * var(--max-padding) - 500px));
}
@keyframes khv {
    0%{
        transform: translateX(calc(-1 * var(--max-padding) - 500px));
    }
    100%{
        transform: translateX(0px);
    }
}

h3{
    z-index: 2;
    font-size: 26px;
    width: 500px;
}
.info{
    position: relative;
    display: flex;
    align-items: start;
    gap: 80px;
}
.info .block{
    width: 1050px;
    background-color: #ffffff;
    border-radius: 20px;

    display: flex;
    justify-content: space-between;
    padding: 30px;
}
.info h4{
    text-align: end;
    font-size: 24px;
    font-weight: 700;
}

.links{
    width: fit-content;
}

.details{
    height: fit-content;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
}
.details p{
    font-family: "Inter", sans-serif;
    font-size: 16px;
}
.details p.h{
    position: relative;
    z-index: 2;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    background-color: var(--main-color);
}
.details .inner{
    height: auto;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.5s ease;
}
.details.active .inner{
    max-height: 1000px;
    transform: translateY(0);
    margin-top: 0;
    opacity: 1;
}
.details a{
    color: var(--light-color);
}
.details .inner p{
    line-height: 120%;
    padding: 10px 15px;
}
.details .inner strong{
    font-weight: 700;
}
.details p.h{
    padding: 10px;
    border-bottom: 1px solid var(--dark-color);
}
.details.active{
    border: 1px solid var(--light-color);
    border-radius: 10px;
}
.details.active p.h{
    color: var(--main-color);
    background-color: var(--light-color);
    border-bottom: 1px solid transparent;
}
.info h2{
    position: absolute;
    top: 365px;
    left: 1000px;
    font-weight: 700;
    font-size: 36px;
}


.infos{
    margin-top: 20px;
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}
.infos .infoses{
    display: flex;
    flex-wrap: wrap;
    width: var(--page-width);
    gap: 20px;
    justify-content: space-between;
    align-items: start;
}
.infos h5{
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    color: var(--light-color);
}
.infos .p{
    background-color: var(--main-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 360px;
}
.infos .p p:not(.hd){
    width: 100%;
    font-size: 16px;
}
.infos p.hd{
    width: 100%;
    text-align: center;
    font-size: 22px;
    color: var(--dark-color);
    font-weight: 600;
}
.infos img{
    border-radius: 10px;
    width: 300px;
}


.about{
    display: flex;
    border: 2px solid var(--light-color);
    border-radius: 20px;
    padding: 0;
    margin: 40px 20px;
    overflow: hidden;
}
.about img{
    width: 50%;
    object-fit: cover;
}
.about .text{
    width: 50%;
    padding: 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
}
.about .f{
    display: flex;
    align-items: center;
    gap: 10px;
}
.about h3{
    font-weight: 700;
    font-size: 36px;
    line-height: 120%;
}
.about i{
    color: var(--light-color);
}

.footer{
    padding: 50px 20px 0px 20px;
}
footer{
    width: 100vw;
    padding: 100px var(--max-padding);
    margin-left: calc(-1* var(--max-padding));
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: var(--footer-color);
    color: var(--main-color);
}
footer .text{
    display: flex;
    flex-direction: column;
    gap: 30px;
}
footer .icons{
    display: flex;
    gap: 20px;
}
footer p.t{
    line-height: 20px;
    font-weight: 400 !important;
    font-family: "Inter", sans-serif;
}
footer .links{
    align-items: start;
    gap: 10px;
}
.links .tel, .links .mail{
    font-size: 22px;
}
footer p.t a{
    color: var(--light-color);
}
.footer img.separator{
    width: 100vw;
    margin-left: calc(-1 * var(--max-padding));
}

body.popup__open{
    overflow: hidden;
}
body.popup__open .popup{
    display: flex;
}
.popup{
    display: none;
    margin-top: 0;
    position: fixed;
    left: 0;
    z-index: 5;
    background: rgb(255, 255, 255, 0.8);
    width: 100vw;
    height: 100vh;
}
.popup .p{
    position: relative;
    width: 400px !important;
    margin: auto;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    font-size: 18px;
}
.popup p.hd{
    font-size: 24px;
    text-align: start;
}
.popup .p p:not(.hd){
    font-size: 18px;
}
.infos .p a{
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    text-decoration-line: underline;
    color: var(--dark-color);
}
.popup .closeBtn{
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 8px;
}




@media (max-width: 1500px){
    :root{
        --page-width: 1250px;
    }
    header .logo{
        gap: 15px;
        font-size: 20px;
    }
    header nav{
        font-size: 16px;
    }
    header .contacts{
        gap: 20px;
        font-size: 20px;
    }
    .main .headers{
        gap: 150px;;
        margin-top: 100px;
    }
    .infos .p{
        width: 295px;
        padding: 20px;
    }
    .infos img{
        width: 255px;
    }
    .details p.h{
        font-size: 16px;
    }
    .info h4{
        font-size: 20px;
    }
    .info h2{
        font-size: 32px;
        left: 800px;
        top: 360px;
    }
    .infos .p svg{
        width: 50px;
    }
    .infos .p .h{
        font-size: 22px;
    }
}

@media (max-width: 1250px){
    :root{
        --page-width: 900px;
    }
    header .logo{
        gap: 10px;
        font-size: 14px;
    }
    header .logo img{
        width: 50px;
        height: 75px;
    }
    header nav{
        font-size: 12px;
        gap: 10px;
    }
    header .contacts{
        gap: 20px;
        font-size: 12px;
    }
    header .contacts .tel{
        font-size: 12px;
    }
    header .contacts .mail{
        font-size: 14px;
    }
    header .contacts svg{
        width: 30px;
    }
    .swiper .swiper-wrapper img{
        object-position: -300px;
    }
    h3{
        font-size: 22px;
    }
    .infos .infoses{
        width: 860px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    .infos .p:nth-child(4){
        display: none;
    }
    .info .block{
        margin-top: 100px;
        width: 100%;
    }
    .info img{
        width: 180px;
        position: absolute;
        top: 455px;
        right: 35px;
    }
    .info h2{
        position: absolute;
        top: 70px;
        left: 20px;
        font-size: 24px;
    }
    .info h2 br{display: none;}

    .infos .p{
        padding: 20px;
        gap: 5px;
        width: 265px;
    }
    .infos .p img{
        width: 225px;
    }
    .infos .p svg{
        width: 40px;
    }
    .infos .p .h{
        gap: 5px;
        font-size: 18px;
    }
    .infos .p p:not(.hd){
        font-size: 14px;
    }
    .about img{
        width: 40%;
    }
    .about .text{
        width: 60%;
        padding: 40px
    }
}
@media (max-width: 910px) {
    :root{
        --page-width: 300px;
    }
    .logo p{
        font-size: 18px;
    }
    header{
        flex-wrap: wrap;
        justify-content: start;
    }
    header .contacts{
        width: 100%;
        justify-content: space-between;
    }
    header .contacts .links{
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    header .contacts .wa{
        position: absolute;
        right: 0;
        top: 15px;
    }
    header nav{
        display: none;
    }
    header .logo{
        min-width: 300px;
    }
    h1{
        font-size: 32px;
        text-align: center;
    }
    .main .headers{
        width: 100%;
    }
    section{
        padding: 40px 0;
    }
    .swiper img{
        object-position: center;
    }
    h3{
        text-align: center;
        width: 100%;
    }
    .main .headers svg{
        width: 227px;
        top: 72px;
        left: 22px;
    }
    .swiper .over{
        background: radial-gradient(107.38% 19.29% at 50% 73.79%, rgba(10, 16, 69, 0.6) 0%, rgba(10, 16, 69, 0) 100%), linear-gradient(90deg, rgba(10, 16, 69, 0.5) 49.62%, rgba(10, 16, 69, 0) 100%), linear-gradient(180deg, #0A1045 0.4%, rgba(10, 16, 69, 0.8) 14%, rgba(10, 16, 69, 0) 25%);
    }
    .infos{
        gap: 20px;
    }
    .infos h5{
        font-size: 28px;
    }
    .infos .infoses{
        gap: 10px;
        width: 300px;
    }
    .infos p.hd{
        font-size: 22px;
    }
    .infos img{
        width: 125px;
    }
    .infos .p:nth-child(4){
        display: flex;
    }
    .infos .p{
        width: 145px;
        padding: 10px;
        gap: 20px;
    }
    .infos .p:has(> p.hd){
        width: 300px;
    }
    .infos .p img{
        width: 125px;
    }
    .info h2{
        left: 0;
        width: 300px;
    }
    .info .block{
        margin-top: 280px;
        box-sizing: border-box;
    }
    .details p{
        font-size: 14px;
    }
    .info h2{
        font-size: 22px;
        top: 50px;
        line-height: 120%;
    }
    .info img{
        width: 150px;
        top: 130px;
        right: 0;
    }
    .info .block{
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
        padding: 50px 0;
    }
    .info h4{
        text-align: center;
        font-size: 26px;
    }
    
    .about{
        flex-direction: column;
        margin: 40px 0;
    }
    .about img{
        width: 100%;
    }
    .about .text{
        width: 100%;
        padding: 30px;
    }
    .about h3{
        font-size: 28px;
    }
    .about .f p{
        width: 100%;
        font-size: 14px;
    }
    footer{
        flex-direction: column;
        gap: 50px;
        padding-bottom: 50px;
    }
    footer iframe{
        width: 300px;
        height: 300px;
    }
    .footer{
        padding: 50px 0 0 0;
    }
    .popup .p {
        width: 300px !important;
    }
    .popup .p a{
        font-size: 22px;
    }
}