:root {
    --gradient: linear-gradient(0deg, #BCCFD4 0%, #EDF3F8 100%);
    --gradient-reverse: linear-gradient(0deg, #EDF3F8 0%, #BCCFD4 100%);
    --bg: #F6F8F5;
    --text-alt: #161513;
    --header: #161513;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: 'Bai Jamjuree', 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: 1rem 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: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
    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;
}

section .wrapper {
    padding-top: 6.25rem;
}

section.hero .wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.mobile-nav-item,
.header-menu-button {
    display: none;
}

.header-button {
    padding: 2px;
    background-image: linear-gradient(133.17deg, #787878 8.62%, #E94D35 22.65%, rgba(210, 110, 103, 0.51) 39.74%);
}

.header-button a {
    display: block;
    background-color: #fff;
    padding: 0.5rem 1.5rem;
    color: #000;
    transition: opacity .3s;
}

.header-button a:hover {
    opacity: .7;
}

.hero-image {
    position: absolute;
    top: 6.25rem;
    right: 0;
    z-index: -1;
    transform: translateY(-5rem);
    opacity: 0.1;
    transition: transform .8s, opacity .8s;
    transition-delay: .3s;
}

.inView .hero-image {
    transform: translateX(0);
    opacity: 1;
}

.hero-content {
    width: 50%;
    padding: 9.375rem 0 6.875rem;
}

.hero-content h1 {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 3.5rem;
    line-height: 4rem;
    color: var(--header);
    margin: 0 0 1.25rem;
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .4s, opacity .4s;
    transition-delay: .3s;
}

.inView .hero-content h1 {
    transform: translateX(0);
    opacity: 1;
}

.hero-description {
    font-weight: 400;
    font-size: 2.25rem;
    line-height: 2.75rem;
    color: var(--text-alt);
    transform: translateX(-5rem);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    transition-delay: .6s;
}

.inView .hero-description {
    transform: translateX(0);
    opacity: 1;
}

.hero-crisp {
    display: flex;
    align-items: center;
    gap: 1.875rem;
    padding: 4.375rem 0 5.625rem;
    font-size: 1.4375rem;
    line-height: 2rem;
}

.hero-more-wrapper {
    display: flex;
}

.hero-more {
    background-image: linear-gradient(133.17deg, #E94D35 8.62%, #D26E67 22.65%, rgba(255, 255, 255, 0.46) 39.74%), linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
    padding: 2px;
    transform: translateY(5rem);
    opacity: 0;
    transition: transform .5s, opacity .3s;
    transition-delay: .8s;
}

.hero-more a {
    display: block;
    background-color: #000000;
    color: #fff;
    padding: 0.875rem 2.8125rem;
    transition: opacity .7s;
}

.inView .hero-more {
    transform: translateY(0);
    opacity: 1;
}

.hero-more a:hover {
    opacity: .7;
}

section h2 {
    margin: 0;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.75rem;
    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-content {
    display: flex;
    gap: 2.5rem;
    padding: 5.25rem 0 11.125rem;
}

.about-content-wrapper {
    background-color: #fff;
    border-radius: 8px;
}

.about-content-head {
    font-size: 3.375rem;
    line-height: 3.875rem;
    font-weight: 500;
    width: 23.3125rem;
    flex-shrink: 0
}

.about-content-text strong {
    display: block;
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    letter-spacing: 0.04rem;
    margin-bottom: 2.5rem;
}

.about-content-text p {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}

.philosophy-content {
    margin: 3.75rem 0 7.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px #000000 solid;
}

.philosophy-content-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
    font-weight: 400;
    font-size: 2.625rem;
    line-height: 3.125rem;
    text-align: center;
}

.philosophy-content-item.philosophy-content-item-active {
    background-color: #000;
    color: #fff;
}

.products-content {
    padding: 5.625rem 0 7.5rem;
}

.products-content-item {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.products-content-item-img {
    width: 33.6rem;
    flex-shrink: 0;
    height: auto;
    filter: grayscale(100%);
    transition: filter .3s;
}

.products-content-item:nth-child(even) .products-content-item-img {
    order: 1;
}

.products-content-item-img:hover {
    filter: grayscale(0);
}

.products-content-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-content-item-text h3 {
    padding: 0.625rem;
    background-color: #D26E67;
    color: #fff;
    font-weight: 400;
    font-size: 2rem;
    line-height: 2rem;
    letter-spacing: 0.09rem;
    text-transform: uppercase;
}

.products-content-item-text p {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 0.09rem;
    margin: 2.5rem 0 0;
}

.advantages-content {
    position: relative;
    margin: 5.625rem 0 7.5rem;
}

.advantages-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -20.5rem;
    right: 0;
    width: 41rem;
    height: 43.75rem;
    background-image: url(./img/advantages.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.advantages-content-item {
    position: relative;
    z-index: 1;
    border: 1px solid #000000;
    background-color: var(--bg);
    padding: 2.5rem 5rem;
    margin-bottom: 3.75rem;
}

.advantages-content-item h3 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
    letter-spacing: 0.04rem;
    margin-bottom: 1.75rem;
}

.advantages-content-item p {
    margin: 0;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 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.5rem;
    line-height: 4rem;
    letter-spacing: 0.09rem;
}

.contact-text {
    padding-top: 2.5rem;
}

.contact-text p {
    margin: 2.5rem 0 0;
    font-weight: 400;
    font-size: 2rem;
    line-height: 2.5rem;
}

.contact-text strong {
    font-weight: 700;
}

.contact-content {
    padding-top: 3.75rem;
    padding-bottom: 7.5rem;
}

.contact-content-item {
    margin-bottom: 3.125rem;
}

.contact-content-item h3 {
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;

}

.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 {
    color: var(--header);
}

.contact-content-item a:hover {
    text-decoration: underline;
}

.footer {
    padding: 3rem 0 3.9375rem;
}

.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: 1320px) {
    .hero-content {
        width: 100%;
    }

    .hero-image img {
        opacity: .4;
    }

    .products-content-item-img {
        width: 40%;
    }

    .products-content-item-text p {
        font-size: 1.2rem;
        line-height: 1.5rem;
        margin: 1.25rem 0 0;
    }

    .advantages-content-item {
        padding: 1.5rem 2rem;
    }

    #contacts::before {
        right: -20rem;
    }
}

@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;
    }

    .contact-text p,
    .advantages-content-item h3 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .advantages-content-item p {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .philosophy-content {
        display: block;
    }
}

@media (max-width: 770px) {
    .products-content-item-img {
        width: 100%;
        height: 20rem;
        order: 0 !important;
    }

    .products-content-item {
        flex-direction: column;
    }
}

@media (max-width: 720px) {

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

}

@media (max-width: 620px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .hero-crisp {
        gap: 1rem;
        padding: 3rem 0 4rem;
        font-size: 1rem;
        line-height: 1rem;
    }

    section .wrapper {
        padding-top: 2rem;
    }

    .products-content,
    .about-content {
        padding: 2rem 0 4rem;
    }

    .about-content-head {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .about-content-text strong {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .about-content-text p {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    .advantages-content,
    .philosophy-content {
        margin: 2rem 0 4rem;
    }

    .advantages-content::before {
        top: -12rem;
        right: -2rem;
        width: 28rem;
        height: 33rem;
        background-size: contain;
    }

    .advantages-content-item {
        margin-bottom: 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) {
    html {
        font-size: 14px;
    }

    .hero-content {
        padding: 6rem 0 2rem;
    }
}

@media (max-width: 420px) {
    .header-button {
        display: none;
    }
}