/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Nunito+Sans&family=Roboto+Flex:opsz,wdth,wght@8..144,100,100;8..144,100,200;8..144,100,300;8..144,100,500;8..144,100,600;8..144,100,700;8..144,100,800;8..144,100,900;8..144,100,1000;8..144,151,400;8..144,151,800&display=swap'); */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
            color: inherit;
}

html {
    overscroll-behavior: none;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Flex', sans-serif;
    color: #000;
    height: 100vh;
    overscroll-behavior: none;
    font-stretch: 151%;
    
}
body.lock {
    overflow: hidden;
}
ul {
    padding: 0;
    margin: 0;
}

ul li {
    list-style-type: none;
    font-family: inherit;
    color: inherit;
}

input,
button {
    outline: none;
    font-family: 'Roboto Flex', sans-serif;
}

button {
    cursor: pointer;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    font-family: inherit;
    color: inherit;
}
a {
    text-decoration: none;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader__text {
    color: #17171738;
    text-align: center;
    font-size: 60px;
    font-weight: 400;
    position: relative;
    transition: 1s ease;
}
.preloader__text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #171717;
    overflow: hidden;
    width: 0%;
    transition: 2s ease;
}
.preloader__text.active::before {
    width: 100%;
}



main {
    max-width: 1920px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.container {
    max-width: 1446px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.header {
    padding-top: 127px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: .3s;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    opacity: 0;
    background: linear-gradient(180deg, #FFF 69.89%, rgba(255, 255, 255, 0.00) 100%);
    z-index: -1;
}
.header.fix {
   position: fixed;
   padding-top: 42px;
}
.header.fix::before {
    opacity: 1;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.scrolltop, .header__tel {
    opacity: 0;
    transition: .3s;
    width: 40px;
    display: block;
}
.scrolltop img, .header__tel img {
    width: 100%;
    height: auto;
}
.header.fix .scrolltop, .header.fix .header__tel {
    opacity: 1;
}
.scrolltop:hover, .header__tel:hover {
    transform: scale(1.2);
}


.banner {
    padding-top: 356px;
}
.logo {
    display: block;
    width: 480px;
    margin-left: auto;
    margin-right: auto;
    transition: .3s;
}
.header.fix .logo {
    width: 324px;
}
.logo img {
    width: 100%;
}
.banner-box {
    border-radius: 30px;
    position: relative;
    padding-top: 138px;
    padding-left: 123px;
    padding-right: 120px;
    padding-bottom: 100px;
    overflow: hidden;
    z-index: 1;
    color: #fff;
}

.abs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.banner__title {
    font-size: 100px;
    font-weight: 800;
    line-height: 100%;
    letter-spacing: -2px;
    text-transform: uppercase;
    max-width: 880px;
}
.banner__title span {
    transform: translateY(30px);
    display: block;
}
.banner__title.active span {
    transform: translateY(0);
}
.banner__title.active span:first-child {
    transition: .5s ease-in-out;
}
.banner__title.active span:nth-child(2) {
    transition: 1s ease-in-out;
}
.banner__title.active span:last-child {
    transition: 1.5s ease-in-out;
}
.banner__subtitle {
    margin-top: 9px;
    font-size: 50px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -1px;
    max-width: 675px;
    transform: translateY(30px);
}
.banner__title.active .banner__subtitle {
    transform: translateY(0);
    transition: 1.5s ease-in-out;
}
.banner__text {
    font-size: 26px;
    font-weight: 300;
    line-height: 130%;
    margin-top: 37px;
    max-width: 880px;
    font-family: 'Nunito Sans', sans-serif;
}
.work-top {
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 150px;
}
.work-top.work-box {
    border-radius: 0;
    display: block;
    z-index: -1;
}

.teory {
    padding-top: 263px;
    padding-bottom: 218px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.teory__title {
    color: #121212;
    font-size: 90px;
    font-style: normal;
    font-weight: 100;
    line-height: 100%;
    letter-spacing: -1.8px;
    text-transform: uppercase;
}
.teory__title span {
    display: block;
    font-weight: 600;
}
.teory-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-end;
    gap: 70px;
}
.teory__text {
    font-size: 26px;
    font-weight: 300;
    line-height: 130%;
    color: #121212;
}
.work {
    /* padding-top: 215px; */
}
.work__title {
    color: #121212;
    font-size: 24px;
    font-weight: 400;
    line-height: 140%;
    text-transform: uppercase;
    opacity: 0.5;
}
.work__subtitle {
    font-size: 90px;
    font-weight: 100;
    line-height: 100%;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: -1.8px;
    color: #000;
}
.work__subtitle b {
    display: block;
    font-weight: 600;
}
.work-block {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 151px;
}
.work-box {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 700px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 95px 91px 83px;
    z-index: 1;
}

.work-case {
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 100px;
}


.work-box__title {
    font-size: 60px;
    font-weight: 400;
    line-height: 100%;
    position: relative;
    letter-spacing: -1.2px;
    color: #000;
}
.work-box__num {
    color: #121212;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}
.work-box__text {
    color: #121212;
    margin-top: 20px;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    max-width: 818px;
}
.cases {
    padding-top: 208px;
    padding-bottom: 179px;
}
.cases-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 48px;
    margin-top: 6px;
}
.cases-box img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}
.cases-box__title {
    font-size: 50px;
    font-weight: 400;
    line-height: 100%;
    margin-top: 30px;
    margin-bottom: 19px;
    max-width: 575px;
    margin-left: auto;
}
.cases-box__text {
    font-size: 22px;
    font-weight: 300;
    line-height: 140%;
    opacity: 0.6000000238418579;
    max-width: 575px;
    margin-left: auto;
}
.cases-block {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 120px;
}
.cases-l {
    margin-top: 94px;
}

.footer {
    background: #121212;
    padding-top: 221px;
    padding-bottom: 80px;
    color: #fff;
}
.footer__text {
    max-width: 767px;
    font-size: 35px;
    font-weight: 400;
    line-height: 110%;
    margin-bottom: 79px;
}
.footer__link {
    font-size: 94px;
    font-weight: 600;
    line-height: 80%;
    position: relative;
    font-stretch: 151%;
}
.footer__link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 7px;
    width: 20.5%;
    background: #fff;
}
.footer__link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    height: 7px;
    width: 71%;
    background: #fff;
}
.footer-row {
    display: flex;
    align-items: center;
    gap: 58px;
    margin-top: 88px;
}
.footer-box {
    font-size: 50px;
    font-weight: 400;
    line-height: 90%;
}
.footer-bottom {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-top: 166px;
}
.footer-bottom li {
    color: #FFF;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.footer-bottom li span, .footer-bottom li a {
    opacity: 0.3;
}
.footer-bottom li a {
    transition: .3s;
}
.footer-bottom li a:hover {
    opacity: 1;
}



@media(max-width: 1500px) {
    .container {
        max-width: 1200px;
    }
    .footer__link {
        font-size: 70px;
    }
}
@media(max-width: 1250px) {
    .container {
        max-width: 960px;
    }

    .banner__title {
        font-size: 70px;
    }
    .banner__subtitle {
        font-size: 30px;
    }
    .banner__text {
        font-size: 18px;
    }
    .teory {
        padding-top: 150px;
        padding-bottom: 150px;
    }
    .teory__title, .work__subtitle {
        font-size: 65px;
        margin-top: 6px;
    }
    .teory__text {
        font-size: 18px;
    }
    .work-box {
        height: 475px;
        padding: 70px;
    }
    .work-box__title {
        font-size: 45px;
    }
    .work-box__text {
        font-size: 16px;
    }

    
}



@media(max-width: 980px) {
    .container {
        max-width: 100%;
        padding-left: 19px;
        padding-right: 19px;
    }
    .header {
        padding-top: 40px;
    }
    .header::before {
        height: 200%;
    }
    .banner {
        padding-top: 121px;
    }
    .logo {
        width: 200px;
    }
    .header.fix .logo {
        width: 147px;
    }
    .banner-box {
        padding: 29px 17px 26px 24px;
        border-radius: 30px;
    }
    .banner__title {
        font-size: 30px;
    }
    .banner__subtitle {
        margin-top: 5px;
        font-size: 24px;
        line-height: 110%;
        letter-spacing: -0.48px;
    }
    .banner__text {
        margin-top: 194px;
        font-size: 14px;
        max-width: 100%;
    }
    .teory {
        padding-top: 122px;
        padding-bottom: 103px;
        min-height: 0;
    }
    .teory__title {
        font-size: 27px;
    }
    .teory__text {
        font-size: 14px;
        max-width: 100%;
    }
    .teory-row {
        gap: 20px;
        justify-content: space-between;
    }
    .work__title {
        font-size: 10px;
    }
    .work__subtitle {
        text-transform: uppercase;
        font-size: 27px;
        margin-top: 10px;
        letter-spacing: -0.54px;
    }
    .work-block {
        grid-gap: 20px;
        margin-top: 30px;
    }
    /* .work-case {
        min-height: 0;
    } */
    
    .work-box {
        height: auto;
        border-radius: 20px;
        min-height: 500px;
        padding: 32px 27px;
        padding-top: 60px;
    }
    .work-box__title {
        font-size: 20px;
        position: static;
    }
    .work-box__text {
        margin-top: 10px;
        font-size: 14px;
    }
    .cases {
        padding-top: 65px;
        padding-bottom: 88px;
    }

    .cases-box__title {
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
        max-width: 100%;
    }
    .cases-box__text {
        font-size: 14px;
        max-width: 100%;
    }
    .footer {
        min-height: 0;
        padding-top: 53px;
        padding-bottom: 51px;
    }
    .footer__text {
        max-width: 100%;
        margin-bottom: 27px;
        font-size: 14px;
    }
    .footer__link {
        font-size: 20px;
    }
    .footer__link::before, .footer__link::after {
        bottom: -3px;
        height: 1px;
    }
    .footer-row {
        margin-top: 31px;
        gap: 20px;
    }
    .footer-box {
        font-size: 20px;
        
    }
    .work-box__num {
        top: 30px;
        left: 28px;
        font-size: 14px;
        transform: none;
    }
}

@media(max-width: 580px) {
    .work-block {
        color: #fff;
        margin-top: 0;
    }
    .teory-row {
        grid-template-columns: 1fr;
        margin-top: 9px;
    }
    .cases-row {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    .teory__text {
        max-width: 100%;
    }
    .cases {
        padding-top: 0;
    }
    .cases-l {
        margin-top: 0;
    }
    
    .cases-box {
        min-height: 500px;
        border-radius: 20px;
        padding: 32px 27px;
        padding-top: 60px;
        position: relative;
        z-index: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        color: #000;
    }
    .cases-box img {
        border-radius: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        object-fit: cover;
        z-index: -1;
    }
    .cases-box__title {
        margin-top: 0;
    }
    
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .preloader__text {
        font-size: 20px;
    }
    .footer-bottom {
        margin-top: 62px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .footer-bottom li:last-child {
        order: -1;
        width: 100%;
    }
    .footer-bottom li {
        font-size: 14px;
        font-weight: 300;
    }
    .abs {
        left: unset;
        right: -90px;
        height: 100%;
        width: auto;
    }

}


