@import "global.css";

/* reset default styles */

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

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol,
li {
    list-style: none;
}

img {
    vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    font-size: inherit;
}

html,
body {

    line-height: 1;
}

body {
    font-family: var(--font-family-main);
    font-size: 16px;
    color: var(--color-primary-white);
    background-color: var(--color-dark-gray);
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/*-------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background-color: #4a4b49;
}

::-webkit-scrollbar-thumb {
    background-color: #787e7e;
}

/*-------------------*/
.main {
    position: relative;
    background: var(--background-color-light-gray);
    padding: 3%;
    width: 100%;
    height: 765px;
    color: var(--color-dark-gray);
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.wrapper {
    overflow: hidden;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0;
}

.header {
    background-color: var(--background-color-orange);
    padding: 0;
    height: 100px;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;

}

.header__logo img {
    width: 240px;
    height: 100px;
}

.menu-toggle {
    display: none;
}

.header__nav {
    margin-right: 20px;
}

.nav__list {
    display: flex;
    justify-content: flex-start;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav__item {
    margin-right: 20px;
}

.nav__item:last-child {
    margin-right: 0;
}

.nav__link {
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    color: var(--color-dark-black);
    font-weight: bold;
}

.nav__link:hover {
    opacity: 0.7;
}

.menu__button {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.menu__icon {
    display: block;
    cursor: pointer;
    position: relative;
    height: 20px;
    width: 32px;
}

.menu__icon span {
    display: block;
    height: 2px;
    background-color: #000;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.menu__icon span:nth-child(1) {
    width: 100%;
    top: 0;
}

.menu__icon span:nth-child(2) {
    width: 80%;
    top: 10px;
}

.menu__icon span:nth-child(3) {
    width: 65%;
    top: 20px;
}

.menu-toggle:checked + .menu__button .menu__icon span:nth-child(1) {
    width: 100%;
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle:checked + .menu__button .menu__icon span:nth-child(3) {
    width: 100%;
    transform: translateY(-10px) rotate(-45deg);
}

.menu-toggle:checked + .menu__button .menu__icon span:nth-child(2) {
    opacity: 0;
}


/*---------------------------*/

.main__content {
    display: flex;
    justify-content: space-between;
    padding-top: 0.2%;
}

.main__content.wrapper {
    display: flex;
    margin-top: 40px;
    gap: 20px;

}

.main__content_wrapper {
    display: flex;
    gap: 100px;
    align-items: center;
    flex-direction: row;
}

.main__text {
    width: 65%;

}

.main__text h1 {
    font-size: var(--h1-size);
    margin-bottom: 60px;
    color: var(--color-dark-gray);
    font-weight: var(--font-semibold);
    max-width: 875px;
}

.heading__accent {
    font-size: var(--h1-size-secondary);
    color: var(--color-dark-gray);
}

.heading2__accent {
    font-size: var(--h2-size);
    color: var(--color-dark-gray);
    margin-bottom: 6%;
    margin-top: -2%;
    
}

.qr__wrapper {
    display: flex;
    gap: 20px;
}

.main__qr {
    padding: 0 19px 10px !important;
    border-radius: 30px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.12);
}

.main__head {
    position: relative;
    top: 6px;
    color: black;
    font-size: var(--big-text);
    text-align: center;
    padding: 5px;
}

.link__social {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.link__href {
    display: flex;
    gap: 10px;
    padding: 19px 44px 16px 20px;
    width: 234px;
    cursor: pointer;

    border-radius: 20px;
    border: 1px;
    background: black;
    transition: background-color 0.4s, border-color 0.4s;
}

.link__href__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--color-primary-white);
}

.link__href__text .caption {
    text-transform: uppercase;
    font-size: var(--small-text);
    font-weight: var(--font-bold);
}

.link__href__text .medium {
    font-size: var(--bigger-text);
    font-weight: var(--font-semibold);
}

.main__qr {
    background: #FFFFFF;
    border-radius: 30px;
    width: fit-content;
    padding: 10px;
}

.main__image {
    width: 35%;
    position: relative;
    overflow: hidden;
    right: 0;
    object-fit: cover;
    margin-top: 60px;
    max-height: 820px;
    min-height: 620px;
    z-index: 5;
}

.main__image img {
    width: 110%;
    object-fit: cover;
}


/*----------------------------------------------*/

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 35px;
}

.error-message:last-child {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 48px;
}

@media (hover: hover) and (pointer: fine) {
    .link__href:hover {
        opacity: 0.8;
        transition: opacity 0.4s;
    }
}


/* ----------------------- */



@media (max-width: 1250px) {
    .main {
        height: 100%;
    }

    .main__content_wrapper {
        margin-top: 0;
    }

    .main__content {
        align-items: center;
    }
}

@media (max-width: 1150px) {
    .main__content_wrapper {
        gap: 20px;
    }

    .main__text h1,
    .main__text .heading__accent {
        font-size: var(--h1-size);
    }

    .main__image {
        min-height: auto
    }
}

@media (max-width: 1024px) {
    .nav__list {
        list-style: none;
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 0;
    }

    .main__text .heading__accent {
        font-size: var(--h1-size-secondary);
    }

    .main__text .heading2__accent {
        font-size: var(--h2-size-adaptive);
    }


    .nav__item {
        margin-right: 10px;
        font-size: 12px;
    }

    .main__image {
        width: 45%;
        position: relative;
        min-height: auto;
    }

    .main__image img {
        position: relative;
        overflow: hidden;
        object-fit: cover;
    }

    .main__content.wrapper {
        margin-top: 0;
        align-items: center;
        gap: 5px;
    }

    .main__text {
        width: 100%;
        align-items: start;
    }

    .main__text h1,
    .main__text .heading__accent {
        font-size: var(--h1-size-adaptive);
        text-align: start;
    }

    .main__text h1 {
        margin-bottom: 20px;
        gap: 10px;
    }


    .main__image {
        width: 55%;
    }

    .main__content_wrapper {
        flex-direction: column;
    }

    .link__social {
        flex-direction: row;
    }

}


@media (max-width: 768px) {
    .header {
        padding: 0;
        height: 80px;
    }

    .main__text h1,
    .main__text .heading__accent {
        font-size: var(--h1-size-adaptive);
        text-align: start;
    }

    .main__text .heading2__accent {
        font-size: var(--h3-size);
        text-align: start;
    }

    .header__logo img {
        width: 192px;
        height: 80px;
    }

    .menu__icon {
        display: block;
        cursor: pointer;
        position: relative;
        height: 24px;
        width: 40px;
        margin-right: 10px;
    }

    .header__nav {
        background-color: var(--background-color-orange);
        display: none;
        width: 100%;
    }

    .nav__list {
        width: 100%;
        gap: 15px;
        flex-wrap: wrap;
        padding: 20px 20px 40px;
    }

    .nav__item {
        width: 100%;
        border: 1px solid black;
        padding: 10px;
        margin-right: 0;
        text-align: center;
    }

    .menu__button {
        display: block;
    }

    .menu-toggle:checked ~ .header__nav {
        display: block;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .main__text {
        width: 100%;
        margin-top: 10px;
        align-items: start;
    }

    .main__text h1,
    .main__text .heading__accent {
        font-size: var(--h1-size-adaptive);
        text-align: start;
    }

    .main__text h1 {
        margin-bottom: 30px;
    }

    .link__social {
        width: 80%;
        margin: 20px 0 20px 0;
        gap: 10px;
    }

    .link__social .link__href {
        width: 75%;
        justify-content: center;
    }

    .main__qr {
        margin: 20px 0 20px 0;
        width: 50%;
        height: 10%;
    }

    .main__content_wrapper {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: start;
        align-items: start;
    }

    .qr__wrapper {
        display: none;
        gap: 5px;
        margin-bottom: 10px;
    }

    .main__image {
        position: absolute;
    }

    .main__image img {
        position: relative;
        overflow: hidden;
        object-fit: cover;
        z-index: 1;
    }

    .main__content {
        flex-direction: column;
        padding-top: 40px;
    }



    .link__social {
        flex-direction: column;
        width: 70%;
    }
}

@media (max-width: 630px) {
    .footer__content {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .main {
        padding-bottom: 0;
    }

    .main__image {
        position: static;
    }

    .link__social {
        width: 100%;
    }

    .link__social .link__href {
        width: 100%;
    }

    .main__image {
        margin-top: 0;
        width: 100%;
        max-height: 600px;
    }

    .main__image img {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .main__image {
        max-height: 560px;
    }
}

@media (max-width: 475px) {
    .main__image {
        max-height: 510px;
    }
    .main__text .heading2__accent {
        font-size: var(--h3-size);
        text-align: start;
    }
}

@media (max-width: 425px) {
    .main__text {
        flex-direction: row;
        margin-top: 10px;
        align-items: start;
    }

    .main__text h1,
    .main__text .heading__accent {
        font-size: var(--h1-size-adaptive);
        text-align: start;
    }

    .main__text .heading2__accent {
        font-size: var(--h3-size);
        text-align: start;
    }

    .main__text h1 {
        margin-bottom: 30px;
    }

    .link__social {
        width: 100%;
        height: 60%;
        margin: 20px 0 20px 0;
        gap: 10px;
    }

    .link__social .link__href {
        justify-content: center;
    }

    .qr__wrapper {
        display: none;
        gap: 5px;
        margin-bottom: 10px;
    }

    .main__content {
        flex-direction: column;
        padding-top: 40px;
    }

    .main__image {
        max-height: 450px;
    }
}

@media (max-width: 414px) {
    .main__text h1,
    .main__text .heading__accent {
        font-size: var(--h3-size-adaptive);
        text-align: start;
    }

    .main__text h1 {
        margin-bottom: 20px;
    }

    .link__social {
        margin: 5px 0 5px 0;
        gap: 5px;
    }

    .qr__wrapper {
        display: none;
    }

    .footer__contacts {
        flex: 3;
        text-align: left;
        margin-bottom: 5px;
    }
    .main__image {
        max-height: 410px;
    }
}

@media (max-width: 375px) {
    .main__text h1,
    .main__text .heading__accent {
        font-size: var(--h3-size-adaptive);
        text-align: start;
    }

    .main__text h1 {
        margin-bottom: 20px;
    }

    .qr__wrapper {
        display: none;
    }

   

    .main__image {
        max-height: 380px;
    }
}

@media (max-width: 360px) {
    .main__text h1 {
        margin-bottom: 15px;
    }

    .link__social {
        margin: 5px 0 5px 0;
        gap: 5px;
    }


}
