:root {
    --bg: #DFE6DD;
    --header: #000;
}

* {
    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;
    color: #161513;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

#site {
    position: relative;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    padding: 1.75rem 0;
    width: 100%;
    position: relative;
    z-index: 999;
}

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;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    color: #000;
    text-decoration: none;
}

.logo img {
    max-height: 45px;
}

section.hero .wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.mobile-nav-item,
.header-menu-button {
    display: none;
}

.header-button a {
    display: block;
    background-color: transparent;
    border: 1px solid #556B5D80;
    padding: 0.625rem 1.5rem;
    color: #556B5D;
    transition: opacity .3s;
    border-radius: 1.5rem;
}

.header-button a:hover {
    opacity: .7;
}

.hero {
    padding-top: 6.875rem;
    padding-bottom: 6.875rem;
}

.hero-title {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1rem;
    letter-spacing: 5%;
    text-transform: uppercase;
    color: #505152;
    margin-bottom: 1rem;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    transition-delay: .2s;
}

.inView .hero-title {
    transform: translateX(0);
    opacity: 1;
}

.hero-description {
    font-weight: 600;
    font-size: 3.875rem;
    line-height: 100%;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    transition-delay: .6s;
    margin-bottom: 2rem;
}

.inView .hero-description {
    transform: translateX(0);
    opacity: 1;
}

.hero-sub {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 2rem;
    margin-bottom: 4rem;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    transition-delay: .8s;
}

.inView .hero-sub {
    transform: translateX(0);
    opacity: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    transform: translateY(-5rem);
    opacity: 0.1;
    transition: transform .8s, opacity .8s;
    transition-delay: .3s;
    width: 72%;
    height: 100%;
}

.inView .hero-image {
    transform: translateX(0);
    opacity: 1;
}

.hero-content {
    width: 50%;
    padding: 0;
}

.hero-content h1 {
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.hero-more {
    display: flex;
    justify-content: start;
    transform: translateY(5rem);
    opacity: 0;
    transition: transform .5s, opacity .3s;
    transition-delay: .8s;
}

.hero-more a {
    background-color: #556B5D;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 1.5rem;
    transition: opacity .7s;
}

.inView .hero-more {
    transform: translateY(0);
    opacity: 1;
}

.hero-more a:hover {
    opacity: .7;
}

section h2 {
    font-weight: 600;
    font-size: 3.125rem;
    line-height: 3.625rem;
    margin: 0;
    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: 600;
    font-size: 2.25rem;
    line-height: 2.625rem;
    color: var(--header);
    margin: 0 0 1.875rem;
    color: var(--header);
}

section p {
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
    color: var(--header);
}

#about {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
}

.about-head {
    width: 50%;
    margin-bottom: 5.5rem;
}

.about-head-text {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
}

.about-content {
    display: flex;
    gap: 5.625rem;
    padding: 0;
}

.about-content-text {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
}

.about-content-img {
    width: 39.75rem;
    flex-shrink: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.about-content-img-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.about-content-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mission {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
}

.mission-content {
    margin-top: 5.5rem;
}

#advantages {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
}

.advantages-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5.5rem 0.5rem;
    margin-top: 5.5rem;
}

.advantages-content img {
    width: auto;
    height: 8.25rem;
    margin-bottom: 1.5rem;
}

.advantages-content-item h3 {
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 2.25rem;
    margin: 0;
}

.advantages-content-item p {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
}

#services {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
}

.services-content-item {
    display: flex;
    gap: 5.625rem;
    margin-bottom: 7.5rem;
}

.services-content-item-img {
    width: 44.6875rem;
    flex-shrink: 0;
    height: auto;
    border-radius: 1.5rem;
    overflow: hidden;
}

.services-content-item:nth-child(even) .services-content-item-img {
    order: 1;
}

.services-content-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-content-item-text {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
}

.services-content-item-text h3 {
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 3.5rem;
    margin-bottom: 1rem;
}

.services-content-item-text p {
    margin-bottom: 1rem;
}

#why {
    padding-bottom: 7.5rem;
}

#why .advantages-content {
    gap: 5.5rem 4rem;
}

.subtitle {
    padding-bottom: 88px;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
}

#work {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
}

.work-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem 0.5rem;
}

.work-content-item {
    background-color: #F4F7F4;
    box-shadow: 0px 32px 24px -12px #3A3A3A0F;
    padding: 2rem;
    border-radius: 1.5rem;
}

.work-content-item:nth-child(-n+3) {
    grid-column: span 2;
}

.work-content-item:nth-child(4),
.work-content-item:nth-child(5) {
    grid-column: span 3;
}

.work-content-item-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: Inter;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 2rem;
}

.work-content-item-text {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 2rem;
}

#contacts {
    padding-top: 7.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding-top: 5.5rem;
    padding-bottom: 7.5rem;
}

.contact-content-item h3 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
}

.contact-content-item a {
    color: #E03631;
}

.contact-content-item a:hover {
    text-decoration: underline;
}

.contact-img {
    width: 100%;
    height: 23.0625rem;
    border-radius: 1.5rem;
    overflow: hidden;
}

.contact-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

footer {
    padding: 3.125rem 0;
}

.footer-logo img {
    max-height: 45px;
}

.footer-top {
    margin-bottom: 2.4375rem
}

.footer-bottom {
    padding: 3.25rem 0 0;
    border-top: 1px #363636 solid;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
}

.footer-bottom nav {
    align-self: center;
}

.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: 1460px) {
    .wrapper {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 1320px) {
    .hero-content {
        width: 100%;
    }

    .hero-image img {
        opacity: .4;
    }

    .services-content-item-img {
        width: 40%;
    }

    .about-content {
        flex-direction: column;
    }

    .about-content-img {
        width: 100%;
        height: 24.5rem;
    }

    .contact-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .contact-content-item {
        text-align: center;
    }

    .contact-content-item br {
        display: none;
    }
}

@media (max-width: 980px) {
    .advantages-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-content-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-head {
        width: 100%;
    }

    .services-content-item {
        gap: 1rem;
    }

    .work-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {

    html {
        font-size: 14px;
    }

    .header-menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        border: 0;
        padding: 0;
        background: none;
    }

    .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;
    }

    #about,
    #mission,
    #advantages,
    #services,
    #why,
    #work,
    .hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-image {
        width: 100%;
        height: auto;
        top: auto;
        bottom: 0;
    }

    .about-head {
        margin-bottom: 2rem;
    }

    .advantages-content,
    .mission-content {
        margin-top: 2rem;
    }

    .subtitle {
        padding-bottom: 2rem;
    }
}

@media (max-width: 770px) {}

@media (max-width: 720px) {}

@media (max-width: 620px) {

    .services-content-item {
        flex-direction: column;
    }

    .services-content-item:last-child {
        margin-bottom: 0;
    }

    .services-content-item-img {
        order: 0 !important;
        width: 100%;
        height: 24rem;
    }

}

@media (max-width: 560px) {
    .contact-content{
        grid-template-columns: 1fr;
    }
    .footer-bottom nav{
        flex-wrap: wrap;
    }
}

@media (max-width: 460px) {
    .hero-description {
        font-size: 2.8rem;
    }

    section h2 {
        font-size: 2.8rem;
        line-height: 3rem;
    }

    .about-content-text {
        font-size: 1rem;
        line-height: 1.2rem;
    }
}

@media (max-width: 420px) {
    .header-button {
        display: none;
    }

    .advantages-content {
        grid-template-columns: 1fr;
    }
}