@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

:root{
    --MAIN-RED: #BF2330;
    --SEC-RED: #9B1B25;
    --WHITE: #FFF;
    --GREY: #343434;
}

*{
    font-family: 'Rubik', sans-serif;
    box-sizing: border-box;
    margin:0;
    padding: 0;
    position: relative;
}
html{
    padding-bottom: 100px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body{
    background-color: #1E1E1E;
}

h1,h2,h3,h4,h5  ,p,span,a,ul{
    color: #FFF;
}
ul{
    padding-inline-start: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    list-style-position: inside;
}
ul li:not(:first-child){
    margin-top: 4px;
}
p,span,a{
    font-size: 18px;
}
img{
    max-width: 100%;
}
#inputResult{
    color: white;
}
h1{
    font-size: 48px;
}
h2{
    font-size: 36px;
    font-weight: 500;
    line-height: 120%;
}
h3, h3 > a{
    font-size: 28px;
    text-decoration: none;
    font-weight: 500;
}
h3 > a:hover{
    text-decoration: underline;
}
h4{
    font-weight: 500;
}
section,footer, header, .breadCrumbs{
    padding-inline: 24px;
    overflow: hidden;
}
header > div, section > *:not(a, video), footer > div, div.breadCrumbs > div{
    max-width: 1300px;
    width: 100%;
    margin-inline: auto;
}

div.breadCrumbs > div > p, div.breadCrumbs > div > p > *{
    font-size: 14px;
    color: #9e9e9e;
}

header{
    position: sticky;
    top: 0;
    width: 100%;
    padding-top: 18px;
    padding-bottom: 18px;
    display: flex;
    gap: 12px;
    z-index: 11;
    background-color: rgb(30,30,30);
    box-shadow: 0 0 4px rgba(30,30,30,.05);
}
header > div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#logo_contacts > a > img, #logo_contacts > img{
    width: 100px;
    transform: translateX(3px);
}
#logo_contacts > a:hover > img{
    opacity: .8;
    transition: opacity .1s ease-in;
    -webkit-transition: opacity .1s ease-in;
    -moz-transition: opacity .1s ease-in;
    -o-transition: opacity.1s ease-in;
}
section#hero{
    min-height: 50svh;
    width: 100vw;
    overflow: hidden;
    display: grid;
    margin-top: 4vh;
}
#hero h1{
    font-size: 2rem;
    max-width: 45%;
}
#hero p{
    font-size: .9rem;
    opacity: .8;
    max-width: 50%;
}
section#hero h1, section#hero p{
    /*text-align: center;*/
}
#hero-container{
    padding: 24px;
    border-radius: 24px;
    background-color: #2f2f2f;
    width: 100%;
    display: flex;
    min-height: 400px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}
#hero img{
    position: absolute;
    width: 40%;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}
#heroVideo, #mobileHeroVideo{
    position: absolute;
    width: 100vw;
    height: 100svh;
    z-index: -1;
    right:0;
    object-fit: cover;
    object-position: right;
}
#mobileHeroVideo{
    display: none;
}
#heroBlock{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}
#heroBlock > p {
    max-width: 45ch;
}
#heroBlock button{
    margin-top: 2rem;
}
main{
    width: 100%;
    overflow: hidden;
    padding-bottom: 150px;
}
main > section:not(:first-child){
    margin-top: 100px;
}

main > section > h2, footer > h2{
    text-align: left;
    font-style: normal;
    letter-spacing: 1px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--WHITE);
    margin-inline: auto;
    max-width: 1300px;
    width: 100%;
}

.noListType{
    list-style: none;
    padding-inline-start: 0;
}
.noListType > li{
    display: flex;
    flex-direction: column;
    gap:18px;
}
#aboutUsList{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 50px;
}
#aboutUsList > li > *{
    display: block;
}

#aboutUsList > li > span{
    color: #A11D28;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    border-bottom: 1px solid #343434;
    padding-bottom: 18px;
}

#aboutUsList > li > h3{
    font-style: normal;
    line-height: normal;
}
#aboutUsList > li > p{
    color: #808080;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 25.2px */
}

#cases > div{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#cases:not(.main-cases) > div > div:first-child{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
}
div#loader{
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.caseExample{
    min-height: 500px;
    padding: 40px 36px;
    background: #282828;
    box-shadow: 0px 4px 7.5px 0px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.fullWidthCase{
    grid-column: 1 / 3;
}

.caseExample > h3{
    z-index: 2;
}
.caseExample > h3 > a{
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 38.4px */
}
.caseExample > p{
    line-height: 120%;
    max-width: 32ch;
    z-index: 2;
}
.caseVideoBG{
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.caseVideoBG:after{
    background-color: rgba(52,52,52,.4);
    position: absolute;
    z-index: 1;
    content: '';
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0);
    transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
}
.caseVideoBG > video{
    object-fit: cover;
}
.caseVideoBG > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.caseExample:hover > .caseVideoBG:after{
    backdrop-filter: blur(2px);
}

#casesHeader{
    margin-bottom: 36px;
    max-width: 11ch;
}
#casesHeader, #casesHeader > span{
    font-size: 72px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 100.8px */
    background: radial-gradient(50% 50% at 50% 50%, #FFF 0%, #E4E4E4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#casesHeader > span{
    background: #BF2330;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.more-cases{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-direction: column;
    transition: .3s ease-in-out;
    box-shadow: 0px 4px 7.5px 0px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    text-decoration: none;
    padding: 24px;
}
.more-cases:hover{
    background-color: #444444;
}
.more-cases img{
    width:100%;
    max-width: 100px;
}

/*
Services styles
*/

#servicesList{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 12px;
}
#servicesList li{
    padding: 16px;
    border-radius: 12px;
    background: rgb(44,44,44);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}
#servicesList h4{
    font-weight: normal;
    font-size: 1.1rem;
}
#servicesList h3{
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 32.4px */
    letter-spacing: 0.54px;
    font-size: 1.4rem;
}
#servicesList p{
    margin-bottom: 4px;
    line-height: 140%;
    font-size: 1rem;
    opacity: .8;
}
.service-cta{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
    width: 100%;
}
.service-cta button{
    justify-self: end;
    white-space: nowrap;
}
#reviews > a{
    margin-inline: auto;
    display: block;
    width: fit-content;
    margin-top: 24px;
}
#reviewsList{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
#reviewsList > li{
    display: grid;
    grid-template-columns: 30px auto;
    grid-template-areas:
            "COMMA TEXT"
            "COMMA UINFO";
    grid-column-gap: 12px;
    grid-row-gap: 24px;
    border-radius: 12px;
    background: radial-gradient(220.4% 257.04% at 137.83% -29.51%, rgba(255, 255, 255, 0.20) 0%, rgba(249, 249, 249, 0.20) 0%, rgba(242, 242, 242, 0.19) 0%, rgba(231, 231, 231, 0.18) 0%, rgba(0, 0, 0, 0.00) 100%);
    padding: 24px;
}
#reviewsList > li > img{
    grid-area: COMMA;
    width:100%;
}
#reviewsList > li > p{
    grid-area: TEXT;
    line-height: 140%;
    color: #D9D9D9;
}
#reviewsList > li > div{
    grid-area: UINFO;
    display: grid;
    grid-template-columns: 50px auto;
    column-gap: 12px;
    grid-template-areas: "IMG UNAME" "IMG CNAME";
}
#reviewsList > li > div > *{
    color: #D9D9D9;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 25.2px */
    grid-area: UNAME;

}
#reviewsList > li > div > img{
    grid-area: IMG;
    width: 100%;
}
#reviewsList > li > div > p{
    grid-area: CNAME;
}

#integrationsList{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    justify-items: center;
    gap: 4px;
}
#integrationsList > li > img{
    max-height: 30px;
    width: 100px;
    object-fit: contain;
}

#faq > ul{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
#faq li{
    border-radius: 12px;
    background: rgb(44,44,44);
    padding: 24px;
    gap:0;
}
.FAquestion{
    cursor: pointer;
}
.FAquestion > h3{
    font-size: 24px;
    display: grid;
    grid-template-columns: auto 30px;
    gap: 8px;
}
.FAquestion > h3:after{
    content: '+';
    font-size: 24px;
    font-weight: 500;
}
.FAquestion > p{
    transition: all 0.5s ease-in-out;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
}
.activeFAQ > p{
    display: flex;
    flex-direction: column;
    transition: all 1s;
    max-height: 3000px;
    margin-top: 18px;
    opacity: 1;
}
.activeFAQ > h3:after{
    content: '-';
}
#bottomCTA{
    overflow: visible;
}
#bottomForm > div{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
}
#bottomCTA > h2{
    text-align: left;
}

footer > div > div{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
footer > div > div > div > h3{
    border-bottom: 1px solid #808080;
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px; /* 116.667% */
    letter-spacing: 0.48px;
}
footer > div > div > div > p > a,footer > div > div > div > p{
    color: #D9D9D9;
}
footer p, footer a{
    margin-bottom: 1rem;
}

#popup{
    position: fixed;
    top:0;
    left: 0;
    cursor: pointer;
    width: 100%;
    height: 100vh;
    background-color: rgba(30,30,30,.5);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .5s ease-in;
    -webkit-transition: opacity .5s ease-in;
    -moz-transition: opacity .5s ease-in;
    -o-transition: opacity .5s ease-in;
}

#popupForm{
    position: fixed;
    width: calc(100vw - 24px);
    max-width: 480px;
    max-height: 100svh;
    overflow: auto;
    left: 50vw;
    bottom: 0;
    transform: translate(-50%, 100%);
    background-color: var(--GREY);
    padding: 24px;
    opacity: 0;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(30,30,30,.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    -moz-transition: all .5s ease-in;
    -o-transition: all .5s ease-in;
}
#popupForm .mainButton{
    margin-top: 8px;
}
#popupPhone, #popupName{
    padding-bottom: 18px;
}
.static{
    position: static;
    margin-bottom: 50px;
}
.opened{
    opacity: 1 !important;
    bottom: 100px !important;
    transform: translate(-50%, 0) !important;
}
.noScroll{
    overflow: hidden;
    padding-right: 17px;
}
.loader {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    position: static;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
    border-color: #FFF #FFF transparent transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 1px solid;
    border-color: transparent transparent var(--GREY) var(--GREY);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
}
.loader::before {
    width: 14px;
    height: 14px;
    border-color: #FFF #FFF transparent transparent;
    animation: rotation 1.5s linear infinite;
}

.socialList{
    display: flex;
    flex-direction: row;
    gap: 4px;
}
.socialList > a:hover > img{
    opacity: .8;
}
.socialList > a > img{
    width: 32px;
    transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
}
#servicesList > li > img{
    position: absolute;
    width: 50%;
    right: 0;
    max-width: 500px;
}
label.privacy{
    font-size: 1rem;
    display: block;
    color: var(--WHITE);
    margin-top: 1rem;
}
label.privacy a{
    text-decoration: underline;
    font-size: 1rem;
}
div.bottomAgreement{
    align-items: center;
}
div.bottomAgreement .mainButton{
    justify-self: end;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}


@keyframes rotate {
    100% { transform: rotate(360deg)}
}

@media screen and (max-width: 1100px){
    #casesHeader{
        max-width: unset;
    }
    #casesHeader, #casesHeader > span{
        font-size: 48px;
    }
    .caseExample{
        height: calc(100vw / 2 - 40px);
        min-height: 240px;
        padding: 22px 20px;
        gap: 8px;
        border-radius: 8px;
    }
    p{
        font-size: 16px;
    }
    h3{
        font-size: 28px;
    }
    #aboutUsList{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 900px){
    p,a{
        font-size: 15px;
    }
    h3{
        font-size: 24px;
    }
    #servicesList > li, #reviewsList > li{
        padding: 20px;
        min-height: unset;
        gap:12px;
    }
    #servicesList > li > p{
        margin-bottom: 12px;
    }
    #integrationsList{
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 750px){
    #hero h1, #hero p{
        max-width: 100%;
    }
    #hero-container{
        padding: 24px 0 0;
    }
    #hero-container *:not(img){
        margin-inline: 24px;
    }
    #hero img{
        position: static;
        transform: none;
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: top;
        margin-top: 1rem;
    }
    #servicesList > li > img{
        display: none;
    }
    #aboutUsList{
        grid-template-columns: 1fr;
    }
    #cases > div{
        grid-template-columns: 1fr;
    }
    .fullWidthCase{
        grid-column: unset;
    }
    #cases:not(.main-cases) > div > div:first-child{
        align-items: center;
    }
    #casesHeader{
        text-align: center;
    }
    #servicesList > li > p{
        max-width: 100%;
    }
    #reviewsList{
        grid-template-columns: 1fr;
    }
    #integrationsList{
        gap: 18px;
    }
    .FAquestion > h3, .FAquestion > h3:after{
        font-size: 18px;
        align-items: center;
    }
    #bottomForm > div{
        grid-template-columns: 1fr;
    }
    label.privacy, label.privacy a{
        font-size: .75rem;
    }
    div.bottomAgreement .mainButton{
        justify-self: stretch;
        margin-top: 2rem;
    }
    footer > div > div{
        grid-template-columns: 1fr;
        gap:30px;
    }

}

@media screen and (max-width: 500px){
    .noScroll{
        padding-right: 0;
    }
    header > div{
        justify-content: center;
    }
    section, footer, header{
        padding-inline: 12px;
    }
    #header_contact_us{
        display: none;
    }
    #heroVideo{
        display: none;
    }
    section#hero{
        align-items: flex-start;
    }
    #mobileHeroVideo{
        display: block;
    }
    h1, #hero h1{
        font-size: 1.5rem;
    }
    h2{
        font-size: 1.3rem;
    }
    h3{
        font-size: 1.2rem;
    }
    h4{
        font-size: 1.1rem;
    }
    h5{
        font-size: 1.05rem;
    }
    p,a, #aboutUsList > li > p{
        font-size: .9rem;
    }
    #reviewsList > li{
        grid-template-columns: 1fr;
        grid-template-areas: unset;
    }
    #reviewsList > li > img{
        display: none;
    }
    #reviewsList > li > *{
        grid-area: unset !important;
    }
    #bottomForm> button{
        width: 100%;
    }
    #popupForm{
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        top: unset;
        bottom: 0;
        transform: translateY(110%);
        background-color: var(--GREY);
    }
    .opened{
        transform: translate(0, 0) !important;
    }
    .breadCrumbs > div > p{
        text-align: center;
        margin-bottom: 50px;
    }
    .socialList{
        gap: 12px;
    }
    .socialList > a > img{
        width: 24px;
    }
}

/*
Анимации для главной кнопки
 */

@keyframes blinkingCircle {
    0%{
        box-shadow: 0 0 6px rgba(191, 35, 48, .3);
    }
    50%{
        box-shadow: 0 0 12px rgba(191, 35, 48, .8);
    }
    100%{
        box-shadow: 0 0 6px rgba(191, 35, 48, .3);
    }
}
@keyframes blinkingCircleYellow {
    0%{
        box-shadow: 0 0 6px rgba(179, 88, 0, 0.3);
    }
    50%{
        box-shadow: 0 0 12px rgba(179, 88, 0, 1);
    }
    100%{
        box-shadow: 0 0 6px rgba(179, 88, 0, .3);
    }
}
@keyframes blinkingCircleGreen {
    0%{
        box-shadow: 0 0 6px rgba(16, 125, 43, 0.3);
    }
    50%{
        box-shadow: 0 0 12px rgba(16, 125, 43, .6);
    }
    100%{
        box-shadow: 0 0 6px rgba(16, 125, 43, .3);
    }
}
@keyframes blinkingCircleWhite {
    0%{
        box-shadow: 0 0 6px rgba(251, 250, 248, 0.3);
    }
    50%{
        box-shadow: 0 0 12px rgba(251, 250, 248, .6);
    }
    100%{
        box-shadow: 0 0 6px rgba(251, 250, 248, .3);
    }
}
