:root {
    --font-family: "TildaSans";
    --font-body: 400 2rem/3.1rem var(--font-family);
    --font-heading: 600 4.2rem/5rem var(--font-family);
    --font-header: 400 2.4rem/1.2 var(--font-family);
    --font-label: 400 2.6rem/1.2 var(--font-family);
    --color-black: #000;
    --color-white: #fff;
    --color-red: #e33924;
    --container-padding-offset: 40px;
    --section-offset: 10.5rem;
    --h1-offset: 4.4rem;
    --h3-offset: 2.4rem;
    --header-height: 23.1rem;
}

html {
    font-size: 10px;
}

body {
    font: var(--font-body);
    background-color: var(--color-white);
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.app__wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

.app__heading {
    font: var(--font-heading);
    margin-bottom: var(--h1-offset);
}

.app__subheading {
    font: 400 2.6rem/1.2 var(--font-family);
}

.app__link:before {
    content: attr(data-link-name) " ";
}

.app__link:hover {
    color: var(--color-red);
}

.app__link:hover::before {
    color: var(--color-black);
}

.main {
    flex-grow: 1;
    margin-top: var(--header-height);
}

.container {
    --width: 1210px;
    --container-width: calc(var(--width) + var(--container-padding-offset) * 2);

    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-offset);
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-white);

}

.header__container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6.4rem;
}

.header__container-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6.4rem;
}

.header__links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header__nav {
    --font-header-weight: 600;
}

.header__burger {
    display: none;
    position: relative;
    width: 3.2rem;
    height: 3.2rem;
    cursor: pointer;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.header__burger-open {
    background-image: url("../images/burger.svg");
}

span.header__burger-close {
    display: none;
    background-image: url("../images/close.svg");
}

.header__burger-handler {
    display: none;
}

.header__burger-handler:checked + .header__container .nav {
    opacity: 1;
    visibility: visible;
}

.header__burger-handler:checked + .header__container .header__burger-open {
    display: none;
}

.header__burger-handler:checked + .header__container .header__burger-close {
    display: block;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 5.3rem;
}

.nav__link {
    font: var(--font-header);
    font-weight: 600;
}

.header__link {
    font: var(--font-header);
}

.logo {
    width: 25.8rem;
    height: auto;
    object-fit: contain;
}

.intro {
    position: relative;
    width: 100%;
    padding-bottom: 24.7%;
    margin-bottom: var(--section-offset);
}

.intro__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about {
    margin-bottom: var(--section-offset);
}

.about__container {
    --width: 1004px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about__container::before,
.about__container::after {
    display: block;
    width: 19.5rem;
    height: 3rem;
    background-image: url("../images/vawe.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: "";
}

.about__container::before {
    margin-bottom: 5.3rem;
}

.about__container::after {
    margin-top: 5.3rem;
}


.about__text {
    text-align: center;
    margin-bottom: 2rem;
}

.about__text:last-of-type {
    margin-bottom: 0;
}

.advantages {
    margin-bottom: 17.5rem;
}

.advantages__container {
    --width: 1255px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantages__sub-text {
    text-align: center;
    margin-bottom: 12.5rem;
}

.advantages__list {
    --icon-width: 9rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6.2rem 12.5rem;
    align-self: flex-start;
}

.advantages__item {
    position: relative;
    padding-right: calc(var(--icon-width) + 4.4rem);
}

.advantages__icon {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--icon-width);
    height: var(--icon-width);
    object-fit: contain;
}

.advantages__label {
    font: var(--font-label);
    color: var(--color-red);
    margin-bottom: 2.4rem;
}

.footer {
    position: relative;
    z-index: 1;
    height: 84.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/footer_banner.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 70%);
    content: "";
}

.footer__container {
    --width: 77.8rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6.6rem 0;
    background-color: var(--color-white);
}


@media screen and (max-width: 1536px) {
    html {
        font-size: 8px;
    }
}

@media screen and (max-width: 1200px) {
    html {
        font-size: 7px;
    }
}

@media screen and (max-width: 990px) {
    :root {
        --header-height: 13.1rem;
    }

    .header__links {
        display: none;
    }

    .intro {
        padding-bottom: 34.7%;
    }

    .nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        z-index: 109;
        width: 100%;
        background-color: var(--color-white);
        display: flex;
        padding: 3rem 0;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
    }

    .header__burger {
        display: block;
    }

    .advantages__list {
        display: block;
    }

    .advantages__item {
        margin-bottom: 4.2rem;
    }

    .advantages__item:last-child {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --container-padding-offset: 16px;
        --header-height: 7.1rem;
        --section-offset: 7rem;
        --font-heading: 600 3.2rem/1.2 var(--font-family);
        --font-body: 400 1.8rem/1.2 var(--font-family);
        --h1-offset: 2.4rem;
        --font-header: var(--font-body);
    }

    html {
        font-size: 10px;
    }

    .logo {
        width: 10.8rem;
    }

    .header__burger {
        width: 2.4rem;
        height: 2.4rem;
    }

    .header__burger span {
        object-fit: contain;
    }

    .app__subheading {
        font: var(--font-body);
    }

    .about__container::before,
    .about__container::after {
        width: 7.5rem;
        height: 1rem;
    }

    .advantages__sub-text {
        margin-bottom: 3.2rem;
    }

    .about__container::before {
        margin-bottom: 2.3rem;
    }

    .about__container::after {
        margin-top: 2.3rem;
    }

    .advantages__item {
        padding-right: 0;
    }

    .advantages__icon {
        position: static;
        margin-bottom: 1.8rem;
    }

    .advantages__list {
        --icon-width: 4rem;
    }

    .advantages__label {
        margin-bottom: 1.6rem;
    }

    .intro {
        padding-bottom: 47.7%;
    }

    .footer {
        height: 68rem;
        padding: 0 var(--container-padding-offset);
    }

    .footer__container {
        padding: var(--container-padding-offset);
        text-align: center;
    }

    .footer__heading {
        margin-bottom: 1.8rem;
    }

    .nav__list {
        gap: 1.6rem;
    }
}
