html {
    box-sizing: border-box;
}
*,
*::after,
*::before {
    box-sizing: inherit;
}
:root {
    --dark-blue: #050e2c;
    --blue: #0b1b68;
    --light-blue: #70a9ff;
    --snowy: #f1f8fb;
    --cold-white: #f5f7fa;
    --warm-white: #ececec;
}
body {
    font-family: "Inter", sans-serif;
    margin: 0;
    font-style: normal;
    font-weight: 400;
    background: var(--cold-white);
    color: var(--dark-blue);
}
.container {
    max-width: 1204px;
    width: 100%;
    margin: 0 auto;
}
.wrapper-content{
    overflow: hidden;
    width: 100%;;
}

.button {
    border-radius: 20px;
    padding: 10px 12px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: fit-content;
    transition: all 0.3s ease-in-out;
}
.button--white {
    background: var(--cold-white);
    color: var(--dark-blue);
}
.button--white:hover{
    background: var(--dark-blue);
    color: var(--cold-white);
}
.button--blue {
    background: var(--blue);
    color: var(--cold-white);
}
.button--blue:hover{
    background: var(--light-blue);
}
.button--light-blue{
    background: var(--light-blue);
    color: var(--cold-white);
}
.button--light-blue:hover{
    background: var(--blue);
}
.button--transparent{
    border: 1px solid var(--blue);
}
.button--transparent:hover{
    color: var(--light-blue);
    border: 1px solid var(--light-blue);
    
}
.button--transparent:hover path{
    stroke: var(--light-blue);
}
.no-animation:hover{
    pointer-events: none;
}

.block-title {
    margin: 0;
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.04em;
}
section {
    margin-top: 100px;
}
.link--animation a{
    transition: all 0.3s ease-in-out;
}
.link--animation a:hover {
    color: var(--light-blue);
}

/* Header */

.header {
    max-width: 1204px;
    width: 100%;
    margin-top: 16px;
    background: var(--dark-blue);
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    justify-self: center;
    z-index: 2;
}
.header__logo a {
    text-decoration: none;
    color: var(--cold-white);
    font-weight: 500;
}
.header__list {
    list-style-type: none;
    display: flex;
    gap: 16px;
    margin: 0;
}
.header__item a {
    font-size: 14px;
    text-decoration: none;
    color: var(--cold-white);
    
}
.header__icons {
    display: flex;
    gap: 8px;
}
.header__icons button {
    background: none;
    border: none;
    padding: 0;
}
.header__search path,.header__account path {
    transition: all 0.3s ease-in-out;
}
.header__search:hover .full--stroke{
    stroke: var(--light-blue)
}
.header__search:hover .full--fill,
.header__account:hover path {
    fill: var(--light-blue)
}

/* Banner */

.banner {
    margin-top: 0;
    min-height: 660px;
    background: linear-gradient(360deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 25%),
        url(../assets/images/banner-img.png);
    background-repeat: no-repeat;
    background-size: cover;
}
.banner-wrapper {
    padding-top: 536px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.banner__title {
    margin: 0;
    font-weight: 500;
    font-size: 40px;
    line-height: 105%;
    letter-spacing: 0.04px;
    color: var(--cold-white);
    max-width: 592px;
}
.banner__btn {
    min-width: 286px;
}

.banner__btn i {
    height: 14px;
}
/* About */
.about__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 64px;
}
.about__desc {
    margin: 0;
    font-size: 20px;
    line-height: 120%;
    max-width: 592px;
}
.about__desc span {
    color: var(--light-blue);
}
.about__content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.about__content:nth-child(3) {
    margin-top: 40px;
    flex-direction: row-reverse;
}
.text__title {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.text__list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.text__el {
    font-size: 16px;
    line-height: 125%;
    position: relative;
    padding: 0 0 16px 40px;
}
.text__el::before {
    content: "";
    width: 18px;
    height: 14px;
    position: absolute;
    left: 0;
    top: 7px;
    background-image: url("../assets/images/arrow.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.text__el:last-child {
    padding-bottom: 0;
}
.text__sublist{
    margin-top: 16px;
    transition: max-height 0.3s linear;
}
.text__sublist.close{
    max-height: 0;
    visibility: hidden;
    opacity: 0;
}
.text__sublist.open{
    max-height: 332px;
    visibility: visible;
    opacity: 1;
}

.about_img img {
    border-radius: 20px;
}
.about__btn {
    min-width: 262px;
    justify-self: end;
    margin-top: 18px;
}

/* Services */
.services__cards {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.services__item {
    text-decoration: none;
    position: relative;
    display: block;
    max-width: 388px;
}
.services__img img{
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0px 0px 10px rgba(0,0,0,0.5);
}
.services__img:hover img{
    width: 388px;
    height: 227px;
    overflow: hidden;
    transform: scale(1.1);
}

.item--mask {
    width: 388px;
    height: 227px;
    mask-image: url("../assets/images/mask-serv.svg");
    mask-repeat: no-repeat;
    mask-size: auto 100%;
    mask-position: center;
    border-radius: 20px;
    background-repeat: no-repeat;
}
.services__content {
    padding: 0 20px;
    width: 100%;
    position: absolute;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
}
.card__title {
    color: var(--cold-white);
}
/* Methods */
.methods__lists {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.methods__item {
    padding: 10px;
    border-bottom: 0.5px solid var(--light-blue);
    padding: 0px 10px 16px;
    min-height: 206px;
}
.item__number {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 24px;
}
.item__title {
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 12px;
}
.item__text {
    font-size: 14px;
    line-height: 114%;
}
.methods__btn {
    align-self: flex-end;
}
/* Research */
.research__wrapper{
    margin-top: 40px;
    display: flex;
    gap: 20px;
}
.research_img img{
    border-radius: 20px;
}
.research__cases {
    display: flex;
    position: relative;
    width: 100%;
}
.case--blue{
    background: var(--blue);
    color: var(--cold-white);
    width: 100%;
}
.case--white{
    background: var(--snowy);
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    max-width: 90px;
    transition: max-width 0.3s ease-in-out, 
    visibility 0.4s 0.5s ease-in-out,
    opacity 0.4s 0.5s ease-in-out;
}
.research__case{
    border: 1px solid var(--dark-blue);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    max-height: 285px;
    gap: 24px;
}

.case--white.active{
    max-width: 502px;
}
.case--white.active .case__content{
    visibility: visible;
    opacity: 1;
    font-size: 14px;
    transition: visibility 0.4s 0.3s ease-in-out,
    opacity 0.4s 0.3s ease-in-out;
}
.case--white .case__content{
    visibility: hidden;
    opacity: 0;
    font-size: 0;
}
.case__header {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.04em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    gap: 12px;
    cursor: pointer;
}
.case--blue .case__header p{
    border-left: 0.50px solid var(--cold-white);
}
.case__header p{
    border-left: 0.50px solid var(--dark-blue);
    padding-left: 10px;
    margin: 0;
}
.active .case__btn {
    content: "";
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.case__btn {
    content: "";
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border: none;
    padding: 10px;
}
.case--white .case__btn{
    background-image: url("../assets/images/plus-dark.svg");
}
.active.case--white .case__btn{
    background: none, url("../assets/images/minus-dark.svg");
}
.case--blue .case__btn{
    background: none, url("../assets/images/plus-white.svg");
}
.active.case--blue .case__btn{
    background: none, url("../assets/images/minus-white.svg");
}
.case__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 388px;
}
.case__title {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.04em;
}
.case__text {
    font-size: 14px;
    line-height: 114%;
    margin: 0;
}
.research__btn {
    min-width: 286px;
    align-self: end;
}
.mySwiper{
    width: 100%;
}

/* News */
.news__wrapper{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}
.news__list {
    margin-top: 40px;
    display: grid;
    gap: 35px;
}
.new__item {
    display: flex;
    gap: 40px;
}
.new__img img {
    border-radius: 20px;
}
.new__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.new__data {
    font-weight: 500;
    font-size: 14px;
    color: var(--light-blue);
}
.new__title {
    margin-top: 16px;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.04em;
}
.new__btn{
    text-decoration: none;
    color: var(--blue);
    font-size: 16px;
    max-width: 266px;
}
.news__button {
    align-self: end;
    text-decoration: none;
}


/* Footer */
.footer {
    margin-top: 100px;
    background: var(--dark-blue);
    padding: 20px;
    color: var(--cold-white);
}
.footer__wrapper {
    display: grid;
    gap: 108px;
    grid-template-columns: 3fr 1fr 0.9fr;
}
.footer__section a,
.footer__down a {
    text-decoration: none;
    color: var(--cold-white);
    display: block;
    transition: all 0.3s ease-in-out;
}
.footer__section a:hover,
.footer__down a:hover{
    color: var(--light-blue);
}
.footer__logo {
    font-weight: 500;
    font-size: 20px;
}
.footer__button {
    margin-top: 20px;
    max-width: 286px;
    width: 100%;
    background: var(--cold-white);
    color: var(--dark-blue);
}
.footer__button:hover{
    background: var(--light-blue);
    color: var(--cold-white);
}
.footer__button path{
    transition: all 0.3s ease-in-out;
}
.footer__button:hover path{
    stroke: var(--cold-white)
}
.footer__list {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__item a {
    font-size: 14px;
}
.section--contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer__social {
    display: flex;
    gap: 8px;
}
.footer__tg:hover path,
.footer_whatsapp:hover path{
    fill: var(--light-blue);  
}
.footer__vk:hover circle,
.footer__vk:hover path{
    stroke: var(--light-blue);  
}

.footer__down {
    margin-top: 64px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.footer__down p {
    margin: 0;
}


@media screen and (max-width: 1280px) {
    .container{
        max-width: 1280px;
        padding: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .research__wrapper{
        flex-wrap: wrap;
    }
    .about__content{
        flex-direction: column !important;
    }
    .news__wrapper{
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 720px) {
    .about_img{
        max-width: 100%;
    }
    .about_img img{
        width: 100%;
        height: 100%;
    }
    .methods__lists{
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-wrapper{
        flex-direction: column;
    }
    .footer__wrapper{
        grid-template-columns: 3fr 1fr;
    }
    .new__item{
        flex-wrap: wrap;
    }
}
@media screen and (max-width: 480px) {
    .item--mask{
        max-width: 340px;
        width: 100%;
    }
    .header__list{
        flex-wrap: wrap;
    }
    .services__img img{
        width: 100%;
        height: 100%;
    }
    .services__item{
        max-width: 340px;
    }

    .methods__lists{
        grid-template-columns: 1fr;
    }
    .footer__wrapper{
        grid-template-columns: 1fr;
    }
    .research_img{
        display: none;
    }
}


@media screen and (max-width: 360px) {
    .container{
        max-width: 360px;
        padding: 10px;
    }
    .case__header{
        display: none;
    }
    .case__title{
        font-size: 15px;
    }
    .case--white{
        position: inherit; 
    }
    .case--white .case__content {
        visibility: inherit !important;
        opacity: inherit !important;
    }
    .block-title{
        font-size: 24px;
        letter-spacing: -0.02em;
    }
    .research__btn{
        margin-top: 40px;
        width: 100%;
        min-width: inherit;
    }
    .research__wrapper{
        margin-top: 30px;
        display: block;
    }
    .swiper-container {
        width: 100%;
        height: 100%;
    }
    .swiper-slide{
        width: 100% !important;
        max-width: 281px !important;
        min-height: 330px;
        display: grid !important;
    }
    .swiper-slide{
        margin-right: 10px;
    }
    .swiper-slide:last-child{
        margin-right: 0 !important;
    }
    .swiper-pagination{
        position: inherit !important;
        bottom: inherit !important;
    }
    .swiper-pagination-bullet{
        background: var(--dark-blue) !important;
        opacity: 0.5 !important;
    }
    .swiper-pagination-bullet-active{
        opacity: 1 !important;
    }
    .case__content{
        min-height: 100% !important;
        height: 100%;
        max-width: inherit;
        align-items: stretch;
    }


}