:root {
    --bg: #F6FAFF;
    --header: #000;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: "Rubik", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: #21272A;
    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;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    padding: 1rem 0;
    width: 100%;
    position: relative;
    z-index: 999;
    background-color: #F6FAFF;
}

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: 1;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    height: 4.5625rem;
}

.logo img {
    width: auto;
    height: 100%;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.mobile-nav-item,
.header-menu-button {
    display: none;
}

.header-button a {
    display: block;
    border: 1px solid #A7ACC099;
    background-color: #fff;
    border-radius: 2.5rem;
    padding: 0.75rem 1.6875rem;
    color: #000;
    transition: opacity .3s;
}

.header-button a:hover {
    opacity: .7;
}

#hero {
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.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;
}

.hero-content {
    padding: 15.25rem 0 27.625rem;
}

.hero-text {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 6.25rem;
}

.hero-text h1 {
    font-weight: 500;
    font-size: 5.625rem;
    line-height: 6.125rem;
    color: var(--header);
    margin: 0;
    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-weight: 500;
    font-size: 2.5rem;
    line-height: 3rem;
    color: #fff;
    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: #2F71A4;
    color: #F6FAFF;
    padding: 1rem 1.5rem;
    border-radius: 7.25rem;
    border: 1px solid #F6FAFF99;
    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 h2 {
    margin: 0;
    font-weight: 500;
    font-size: 2.625rem;
    line-height: 3.125rem;
    color: var(--header);
    transform: translateX(-3rem);
    opacity: 0.1;
    transition: transform .3s, opacity .3s;
    transition-delay: .3s;
}

section .inView h2 {
    transform: translateX(0);
    opacity: 1;
}

section h3 {
    font-weight: 400;
    font-size: 2.625rem;
    line-height: 3.125rem;
    color: var(--header);
    margin: 0 0 2rem;
}

section p {
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12.6875rem 0 10.75rem;
}

.about-content-text {
    color: #565966;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
}

.about-content-text p {
    font-weight: 500;
    margin-bottom: 2rem;
}

.benefits-content {
    margin: 4.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.benefits-content-item {
    padding: 0 1rem;
    position: relative;
    border-left: 1px solid #CACDD966;
    color: #565966;
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 2.25rem;
}

.note-content {
    display: flex;
    gap: 1rem;
    margin-bottom: 18.75rem;
}

.note-content img {
    border-radius: 1.25rem;
}

.note-img {
    width: 58%;
    flex-shrink: 0;
}

.note-text {
    font-weight: 400;
    font-size: 2rem;
    line-height: 2.5rem;
    color: #565966;
}

.note-text img {
    width: 100%;
    height: auto;
}

.note-text ul {
    margin: 1.5rem 0 0;
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
}

.note-text ul li {
    margin: 0;
}

.note-v2 .note-img {
    width: calc(50% - .5rem);
}

.note-v2 .note-text img {
    margin-bottom: 1.5rem;
}

.records-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

#records {
    margin-bottom: 18.75rem;
}

.record {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    border: 1px solid #A7ACC0;
    min-height: 24.375rem;
}

.record h4 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    color: var(--header);
    margin: 0;
}

.record p {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #565966;
    margin: 0;
}

#services {
    margin-bottom: 18.75rem;
    padding: 8rem 0;
    background-color: #5374B1;
    color: #fff;
}

#services h2,
#services h3 {
    color: #fff;
}

#services h2 {
    font-weight: 500;
    font-size: 3.875rem;
    line-height: 4.375rem;
}

.services-subtitle {
    margin: 2.625rem 0 5.75rem;
}

.service {
    margin-bottom: 3.875rem;
}

.service p {
    font-size: 1.5rem;
    line-height: 2rem;
}

.service:last-child {
    margin-bottom: 0;
}

.subtitle {
    margin: 42px 0 0;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #565966;
}

#geography {
    margin-bottom: 18.75rem;
}

.geography-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 6.25rem 0 10.75rem;
}

.geography-content-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #5374B1;
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    min-height: 15.3125rem;
}

.geography-content-item h4 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    color: #fff;
    margin: 0;
}

.geography-content-item p {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;

}

#advantages {
    margin-bottom: 18.75rem;
}

#advantages .benefits-content-item {
    font-size: 1.5rem;
    line-height: 2rem;

}

.benefits-content-item h4 {
    font-weight: 400;
    font-size: 2.625rem;
    line-height: 3.125rem;
    color: #000000;
    margin: 0 0 2rem;
}

#contacts {
    position: relative;
    z-index: 1;
}

#contacts::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 64rem;
    height: 64rem;
    background-image: url(./img/circle.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#contacts h2 {
    font-weight: 500;
    font-size: 3.875rem;
    line-height: 4.375rem;
}

.contact-text {
    font-weight: 400;
    font-size: 2rem;
    line-height: 2.5rem;
    margin: 2.625rem 0 4.875rem;
}

.contact-content-item {
    margin-bottom: 2.75rem;
}

.contact-content-item h3 {
    font-size: 2rem;
    line-height: 2.5rem;
}

.contact-content-item p {
    color: #DB0C0C;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 0%;
    margin: 1.25rem 0 0;
}

.contact-content-item a {
    color: var(--header);
}

.contact-content-item a:hover {
    text-decoration: underline;
}

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;
    }
}

@media (max-width: 1280px) {

    .geography-content,
    .records-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .record {
        min-height: 5rem;
        gap: 2rem;
    }

    .benefits-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0;
    }
}

@media (max-width: 1080px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 820px) {

    .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: 80vh;
    }

    .mobile-nav-item {
        display: block;
    }

    .hero-content {
        padding: 10rem 0;
    }

    .hero-text {
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .note-content {
        flex-direction: column;
    }

    .note-img {
        width: 100% !important;
    }

    .geography-content,
    .records-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom,
    .footer-top{
        flex-direction: column;
        gap: 1rem;
    }
}


@media (max-width: 560px) {

    #header-menu {
        min-width: 45vw;
    }

    footer {
        text-align: center;
    }

    footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 460px) {}

@media (max-width: 420px) {
    .header-button {
        display: none;
    }
}