@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Oswald:wght@200..700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body{
    scroll-behavior: smooth;
}

.wrapper{
    background: #1A1A1A;
}

/*global styles*/

.bottom-line{
    border-bottom: 1px solid white;
}

.title{
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 50px;
    font-weight: 600;
    letter-spacing: 5px;
    line-height: 55px;
}

.subtitle{
    color: white;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;

    width: 600px;
}

.text{
    color: white;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px;
    font-weight: 200;
    letter-spacing: 2px;
}

.left{
    text-align: left;
    margin: 100px 0 0 90px;
}

.subtitle-left{
    margin: 25px 0 0 90px;
}

.right{
    text-align: right;
    margin: 100px 0 0 0;
}

/*header styles*/

header{
    width: 100%;
    height: 100px;

    background: transparent;

    position: absolute;
    top: 0;
}

header .container{
    height: 100%;
    margin: 0 90px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img{
    width: 160px;
}

.navigation-list{
    display: flex;
    gap: 74px;

    list-style: none;
}
.navigation-link{
    position: relative;
    text-decoration: none;

    color: white;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;

    border-bottom: none;
}

.menu, .header-buttons{
    display: flex;
    align-items: center;
    gap: 70px;
}

.lang-switch, .guide{
    border: none;
    background: transparent;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    color: white;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;

    cursor: pointer;

    position: relative;
}

.lang-switch:hover .lang-first-icon{
    animation: breathe 2.4s ease-in-out infinite;
}

.guide:hover .guide-first-icon{
    animation: breathe 2.4s ease-in-out infinite;
}

.lang-switch:hover .sub-menu-list{
    display: block;
}

.sub-menu-list{
    display: none;
    list-style: none;

    padding: 20px 0 0 0;
    width: 200px;

    position: absolute;
    top: 20px;
    left: -40%;
}

.sub-menu-item{
    border: 1px solid white;
    background: #1A1A1A;
    margin: 10px;
}

.sub-menu-item:hover{
    color: #EA183B;
}

/*menu animations*/
.navigation-link:hover:before{
    transform: scaleX(1);
    transition: transform .25s;
}

.navigation-link:before{
    content: '';
    width: 100%;
    height: 1px;
    background-color: white;
    position: absolute;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform .25s;
}

/*offer block styles*/

.offer-block{
    width: 100%;
    height: 100vh;

    background: radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 66%, rgba(0, 0, 0, 0.9) 100%),
    url("../img/banner-bg.webp") center/cover no-repeat;

    display: flex;
    align-items: center;
}

.offer-content{
    margin: 0 90px;
    margin-top: 100px;

    display: flex;
    flex-direction: column;
    gap: 26px;
}

.offer-title{
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 72px;
    font-weight: 600;
    letter-spacing: 7px;
    line-height: 77px;
}

.offer-subtitle{
    color: white;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;

    width: 720px;
}

.accent{
    color: #EA183B;
}

.offer-button-container{
    position: relative;
    width: 350px;
    height: 90px;
    padding: 5px;

    --snake: 360deg;

    border: 2px solid transparent;

    border-image: conic-gradient(
            from 256deg,
            #EA183B 0deg var(--snake),
            transparent var(--snake) 360deg
    ) 1;

    transition: --snake 700ms ease;
}


.offer-button{
    isolation: isolate;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    background: #EA183B;

    text-decoration: none;
    color: white;

    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 3px;

    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.offer-messengers{
    display: flex;
    gap: 15px;
}

/*messengers animation*/

@keyframes breathe{
    0%, 100% { transform: translateY(0)}
    50%      { transform: translateY(-3px)}
}

.offer-messengers li{
    list-style: none;
}

.offer-messengers li:hover{
    animation: breathe 2.4s ease-in-out infinite;
}

/*button animation*/

@property --snake {
    syntax: "<angle>";
    inherits: false;
    initial-value: 360deg;
}

.offer-button-container:hover{
    --snake: 0deg;
}

.offer-button:hover{
    box-shadow: inset 0 0 5px 5px rgba(0, 0, 0, 0.2);
}

.offer-button:active{
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 8px 18px rgba(234, 24, 59, 0.25);
}

/*features block styles*/

.features-block{
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100vh;

    background: radial-gradient(
            circle at 50% 50%,
            rgba(234, 24, 59, 0.65) 0%,
            rgba(234, 24, 59, 0) 50%
    );

    overflow: hidden;
}

.features-text{
    position: absolute;
    top: 0;
    left: 0;
}

.features-container{
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: 3.2fr 1fr;
    gap: 20px;
    align-items: center;

    position: relative;
}

.features-image-container{
    width: 100%;
    height: 100%;

    margin-top: 150px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.first-container{
    position: absolute;
    height: 100%;
    bottom: 12vh;
    left: 12vw;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.second-container{
    position: absolute;
    height: 100%;
    top: 35vh;
    left: 7vw;

    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.third-container{
    position: absolute;
    height: 100%;
    bottom: 7vh;
    left: 25vw;

    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-label{
    text-align: center;
    opacity: 0;
    transform: scale(0);
}

.feature-label.labelAppear{
    animation: scaleAppearance 1s forwards;
    animation-delay: 0.5s;
}

.feature-label.labelDisappear{
    animation: scaleDisappear 1s forwards;
}

.feature-circle{
    width: 16px;
    height: 16px;

    border-radius: 50%;
    border: 1px solid #EA183B;
    background-color: #1A1A1A;

    opacity: 0;
    transform: scale(0);
}

.feature-circle.circleAppear{
    animation: scaleAppearance 1s forwards;
    animation-delay: 0.5s;
}

.feature-circle.circleDisappear{
    animation: scaleDisappear 1s forwards;
}

.feature-vertical-line-container{
    height: 225px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.third-container .feature-vertical-line-container{
    height: 400px;
}

.feature-vertical-line{
    width: 1px;
    height: 100%;
    background: #EA183B;

    transform: scaleY(0);
    transform-origin: bottom;
}

.second-container .feature-vertical-line{
    transform-origin: top;
}

.feature-vertical-line.is-visible{
    animation: lineIn 0.5s forwards;
}

.feature-vertical-line.is-hidden{
    animation: lineOut 0.5s forwards;
}

.features-img{
    width: 55vw;
    height: auto;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.features-img img{
    width: 100%;
    height: 100%;

    object-fit: contain;

    z-index: 2;
}

.features-blocks{
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
}

.feature-block{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;

    overflow: hidden;
    opacity: 0;
}

.feature-block.blockAppear{
    animation: translateAppearance 1.2s forwards;
    animation-delay: 0.8s;
}

.feature-block.blockDisappear{
    animation: translateDisappearance 1s forwards;
}

.feature-icon{
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: hidden;
}

.feature-info{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-info-line{
    height: 1px;
    width: 145px;
    background: rgba(255,255,255,0.7);
}

.feature-info-text{
    width: 290px;
}

/*feature block animations*/

@keyframes scaleAppearance {
   0%{
       opacity: 0;
       transform: scale(0);
   }
   50%{
       opacity: 1;
       transform: scale(1.1);
   }
   100%{
       opacity: 1;
       transform: scale(1);
   }
}

@keyframes scaleDisappearance {
    0%{
        opacity: 1;
        transform: scale(1);
    }
    50%{
        opacity: 1;
        transform: scale(1.1);
    }
    100%{
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes lineIn{
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes lineOut{
    from { transform: scaleY(1); }
    to   { transform: scaleY(0); }
}

@keyframes translateAppearance{
    from { transform: translateX(30%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes translateDisappearance{
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to   {
        transform: translateX(30%);
        opacity: 0;
    }
}
