:root {
    --bg: #FFFFFF;
    --header-bg: #FFFFFF;
    --logo-height: 3.125rem;
    --h1-font: 'Inter';
    --h1-weight: 500;
    --h1-size: 5.625rem;
    --h1-height: 6.125rem;
    --h2-font: 'Inter';
    --h2-weight: 300;
    --h2-color: #000;
    --h2-size: 1.5rem;
    --h2-height: 2rem;
    --menu-font: 'Inter';
    --menu-weight: 400;
    --menu-color: #000;
    --menu-size: 1rem;
    --menu-height: 1rem;
    --button-color: #000;
    --button-bg: #FFFFFF;
    --button-border: 1px solid #D0D8DB;
    --button-radius: 0;
    --text-color: #000;
    --text-weight: 400;
    --text-size: 1.5rem;
    --text-height: 2rem;
    --section-margin: 0 0 18.75rem;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

#site {
    position: relative;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    font-weight: var(--text-weight);
    font-size: var(--text-size);
    line-height: var(--text-height);
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

header {
    padding: 1.25rem 0;
    width: 100%;
    position: relative;
    z-index: 999;
    background-color: var(--header-bg);
}

main .wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s, transform .5s;
    transition-delay: .2s;
}

main .wrapper.inView {
    transform: translateY(0);
    opacity: 1;
}

.wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    z-index: 2;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    height: var(--logo-height);
}

.logo img {
    width: auto;
    height: 100%;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    font-family: var(--menu-font);
    font-weight: var(--menu-weight);
    font-size: var(--menu-size);
    line-height: var(--menu-height);
    color: var(--menu-color);
}

nav a:hover {
    text-decoration: underline;
}

.mobile-nav-item,
.header-menu-button {
    display: none;
}

.header-button a {
    display: block;
    border: var(--button-border);
    background-color: var(--button-bg);
    border-radius: var(--button-radius);
    padding: 0.75rem 1.6875rem;
    color: #000;
    transition: opacity .3s;
    font-size: 1rem;
    line-height: 100%;
}

.header-button a:hover {
    opacity: .7;
}

#hero {
    position: relative;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 11.25rem 0 11.25rem 13.125rem;
}

.hero-text {
    padding-bottom: 5.625rem;
    text-align: left;
}

.hero-text h1 {
    font-family: var(--h1-font);
    font-weight: 500;
    font-size: 5.625rem;
    line-height: 6.125rem;
    color: var(--header);
    margin: 0 0 4.25rem;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .4s, opacity .4s;
    transition-delay: .3s;
}

.inView .hero-text h1 {
    transform: translateX(0);
    opacity: 1;
}

.hero-description {
    font-family: var(--h1-font);
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 3rem;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    transition-delay: .6s;
}

.inView .hero-description {
    transform: translateX(0);
    opacity: 1;
}

.hero-more {
    display: flex;
}

.hero-more a {
    font-weight: 500;
    font-size: 1.3125rem;
    line-height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #EAF7FA;
    color: var(--button-color);
    padding: 1rem 1.5rem;
    border: var(--button-border);
    transition: opacity .7s;
}

.inView .hero-more {
    transform: translateY(0);
    opacity: 1;
}

.hero-more a:hover {
    opacity: .7;
}

.hero-drop {
    position: absolute;
    top: calc(100% + 3rem);
    right: 5rem;
    width: 42px;
    height: 60px;
    z-index: 1;
}

.hero-drop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

section {
    margin: var(--section-margin);
}

section h2 {
    margin: 0 0 5rem;
    font-family: var(--h2-font);
    font-weight: var(--h2-weight);
    font-size: var(--h2-size);
    line-height: var(--h2-height);
    color: var(--h2-color);
    transform: translateX(-3rem);
    opacity: 0.1;
    transition: transform .3s, opacity .3s;
    transition-delay: .3s;
    border-bottom: 1px solid #00000033;
}

section .inView h2 {
    transform: translateX(0);
    opacity: 1;
}

section p {
    margin: 0 0 2rem;
}

section p:last-of-type {
    margin: 0;
}

section p strong {
    font-weight: 500;
    font-size: 2rem;
}

#about {
    position: relative;
}

.about-img {
    margin-top: 5.125rem;
    overflow: hidden;
    width: 100%;
    height: 30.3125rem;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8.75rem;
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 2.25rem;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4375rem;
    margin-top: 5.125rem;
}

.about-card {
    background-color: #E5EEF5;
    padding: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.625rem;
}

.about-card:nth-child(2) {
    grid-column: span 2;
}

.about-card h3 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 3rem;
    margin: 0 0 6.375rem;
}

.why-wrapper {
    display: grid;
    grid-template-columns: 22rem auto;
    gap: 8.875rem;
    align-items: start;
}

.why-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 1.5rem;
}

.why-item h3{
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    margin: 1.625rem 0 0;
}

.services-header {
    display: grid;
    grid-template-columns: 22rem auto;
    gap: 8.875rem;
    margin-bottom:  5.125rem;
    align-items: start;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.services-card {
    position: relative;
    padding: 4.75rem;
    background-color: #E5EEF5;
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    text-align: center;
}

.services-card img {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3.375rem;
    height: auto;
}

.services-card h3 {
    padding-right: 3.75rem;
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 6rem;
}

.services-img {
    margin-top: 5.125rem;
    overflow: hidden;
    width: 100%;
    height: 38.25rem;
}

.services-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefits-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 1.5rem;
}

.benefits-content-item img {
    margin-bottom: 1.5rem;
}

.benefits-content-item h4 {
    color: var(--h2-color);
    font-size: 2rem;
    line-height: 2.5rem;
    margin: 0 0 .5rem;
}

.products-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.25rem 1.25rem;
    margin-top: 5.125rem;
}

.products-item {
    font-weight: 400;
    font-size: 2rem;
    line-height: 2.5rem;
    text-align: left;
}

.products-item:first-child {
    grid-column: 1 / 3;
}

.products-item .products-img img {
    width: 100%;
}

.products-item .products-img {
    margin-bottom: 1.25rem;
}

.ceo-img {
    width: 100%;
    flex-shrink: 0;
    height: 26.625rem;
}

.ceo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-img {
    margin-top: 2.625rem;
}

.faq-img img {
    border-radius: 1.5rem;
}

.faq-content {
    background-color: #E5EEF5;
    padding: 2.5rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 3.75rem 5rem;
    background-color: #EEF6FB;  
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 3.125rem;
    letter-spacing: 0.04rem;
    margin: 0 0 1.75rem;
}

.terms-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.625rem 1.25rem;
}

.terms-item {
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    text-align: left;
}

.terms-item-img img {
    margin-bottom: 1.5rem;
}

.terms-item:first-child {
    grid-column: 1 / 4;
}

#contacts {
    position: relative;
    z-index: 1;
    margin-bottom: 9.375rem;
}

#contacts h2 {
    font-weight: 500;
    font-size: 3.5rem;
    line-height: 4rem;
    border-bottom: none;
}

.contacts-img {
    position: absolute;
    top: -7rem;
    right: 0;
    width: auto;
    height: 100%;
    z-index: -1;
}

.contact-text {
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 2.25rem;
    margin: 0 0 5.125rem;
}

.contact-content-item {
    margin-bottom: 2.75rem;
}

.contact-content-item h3 {
    color: #202023;
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    margin: 0 0 1.25rem;
}

.contact-content-item span {
    display: block;
    margin: 0 0 1.125rem;
}

.contact-content-item p {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 0%;
    margin: 1.25rem 0 0;
}

.contact-content-item a {
    text-decoration: underline;
    transition: color .3s;
    color: var(--header);
}

.contact-content-item a:hover {
    color: #DB0C0C;
}

footer {
    padding: 3rem 0 3.9375rem;
}

.footer-logo {
    height: 3.5625rem;
}

.footer-logo img {
    width: auto;
    height: 100%;
}

.footer-top,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-top {
    margin-bottom: 3rem;
}

.footer-bottom {
    padding: 3rem 0;
    border-top: 1px #DDE1E6 solid;
}

.footer-bottom a {
    color: var(--header);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

#to-top {
    position: fixed;
    right: 1rem;
    bottom: -50rem;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 2px solid #DDE1E6;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    opacity: .5;
    transition: all .3s;
    z-index: 999;
}

#to-top.show {
    bottom: 1rem;
}

#to-top:hover {
    opacity: 1;
}

#to-top svg {
    fill: var(--header);
    width: 80%;
}

@media (max-width: 1440px) {
    .wrapper {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .hero-content {
        padding: 8rem 0 10rem;
    }

    .about-card:first-child {
        grid-column: 1;
    }
}

@media (max-width: 1280px) {

    .header-menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        border: 0;
        padding: 0;
        border-radius: 0.5rem;
    }

    .header-menu-button span,
    .header-menu-button span:before,
    .header-menu-button span:after {
        display: block;
        width: 24px;
        height: 4px;
        border-radius: 2px;
        background: #000;
        transition: 0.3s;
    }

    .header-menu-button span {
        position: relative;
    }

    .header-menu-button span:before {
        content: "";
        position: absolute;
        bottom: 8px;
        left: 0;
    }

    .header-menu-button span:after {
        content: "";
        position: absolute;
        top: 8px;
        left: 0;
    }

    .header-menu-button.active span {
        background: transparent;
    }

    .header-menu-button.active span::before {
        bottom: 0;
        transform: rotate(45deg);
    }

    .header-menu-button.active span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    #header-menu {
        position: absolute;
        flex-direction: column;
        top: 100%;
        right: 1rem;
        opacity: 0;
        overflow: hidden;
        height: 0;
        width: auto;
        min-width: 30vw;
        z-index: 9;
        background-color: #fff;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
        padding: 1em;
        border-radius: .5rem;
        transition: opacity .6s, height .3s;
    }

    #header-menu.active {
        opacity: 1;
        height: 20rem;
    }

    section {
        margin-bottom: 8rem;
    }

    .mobile-nav-item {
        display: block;
    }

    .footer-bottom,
    .footer-top {
        flex-direction: column;
        gap: 1rem;
    }

    .benefits-content {
        grid-template-columns: 1fr 1fr;
    }

    .faq-wrapper {
        display: block;
    }

    .faq-img {
        display: none;
    }
    .faq-content {
        width: 100%;
    }

    .services-header,
    .why-wrapper,
    .about-content-wrapper{
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-cards{
        grid-template-columns: repeat(3, 1fr);
    }
    .about-card:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 1080px) {
    html {
        font-size: 14px;
    }

    .benefits-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-item {
        gap: 2rem;
        align-items: start;
    }

    footer {
        text-align: center;
    }

    footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .benefits-content-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-cards {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }

    .services-header {
        flex-direction: column;
    }

    .services-cards {
        grid-template-columns: 1fr 1fr;
    }

    .products-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .products-item:last-child {
        grid-column: 1;
    }

    .faq-content {
        padding: 1rem;
    }

    .faq-item {
        padding: 2rem;
    }

    .terms-content {
        grid-template-columns: 1fr;
    }

    .terms-item{
        grid-column: 1 !important;
    }

    .products-img,
    .terms-item-img {
        overflow: hidden;
        height: 14rem;
        margin-bottom: 1.5rem;
    }

    .products-img img,
    .terms-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    .products-item{
        grid-column: 1 !important;
    }
}

@media (max-width: 620px) {
    html {
        font-size: 10px;
    }

    #header-menu {
        min-width: 45vw;
    }

    .header-button {
        display: none;
    }

    .hero-content {
        padding: 4rem 0 4rem;
    }

    .hero-text h1 {
        font-size: 4.625rem;
        line-height: 5.125rem;
    }

    .services-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .header-button {
        display: none;
    }
}