@font-face {
    font-family: "Involve Bold";
    src: url('../fonts/involve/fonts/OTF/Involve-Bold.otf');
}
@font-face {
    font-family: "Involve Regular";
    src: url('../fonts/involve/fonts/OTF/Involve-Regular.otf');
}

@font-face {
    font-family: "Oceanic Bold";
    src: url('../fonts/oceanic/TRIAL_Oceanic-Bold-BF6487cfe5cfe3d.otf');
}

@font-face {
    font-family: "Questrial";
    src: url('../fonts/Questrial-Regular.ttf');
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    padding: 0;
    margin: 0;
}

h1, h2, h3 {
    font-family: "Oceanic Bold";
}

h1 {
    color: #F4F4F4;
    font-size: 1.5em;
    margin: .4em;
}

h2 {
    color: #1E1E1E;
    font-size: 1.2em;
    margin-top: .5em;
    margin-bottom: .5em;
}

a {
    font-family: "Involve Regular";
    color: #DEDEDE;
    text-decoration: underline;
    transition-duration: .15s;
}
a:hover {
    text-decoration: none;
}

h3 {
    padding-left: 1em;
    font-size: .9em;
    margin-top: .2em;
    margin-bottom: .2em;
}

p, ol {
    font-family: 'Involve Regular';
    font-size: .6em;
    text-align: justify;
    color: #383530;
    padding-left: 1em;
    padding-right: 1em;
}

.block-logo {
    margin: .3em;
}
.block-logo:hover {
    opacity: .3;
    transition-duration: .15s;
}

.block-1, .block-2, .block-3, .block-6 {
    max-width: 24em;
    min-width: 360px;
    margin: 0 auto;
}

.block-0, footer {
    background-color: #292722;
    width: 100%;
    min-width: 390px;
    margin: 0 auto;
    padding-bottom: .1em;
}

.block-0 {
    border-end-end-radius: .8em;
    border-end-start-radius: .8em;
}
.block-0 div .btn-start {
    margin: .5em;
    display: flex;
    justify-content: center;
}
.block-0 p, .block-0 a {
    font-family: 'Involve Regular';
    color: #DEDEDE;
    transition-duration: .15s;
}
.block-0 ul a:hover, .block-0 a:active {
    opacity: .6;
}


/* БЛОК 1: ПРОБЛЕМА И РЕШЕНИЕ */
.block-1 {
    margin: 0 auto;
    margin-top: 1em;
    width: 80%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.block-1 div {
    text-align: center;
    margin: 0 auto;
    max-width: 10em;
    margin-top: 1em;
}
.block-1 div p {
    color: #383530;
    font-size: .5em;
}
.problem, .solution {
    border-radius: 1em;
}
.problem {
    background-color: #FFF8F8;
    border: #FFD3D3 solid .1em;
}
.solution {
    background-color: #F8FFFB;
    border: #D3FFE2 solid .1em;
}


/* БЛОК 2: ПРЕИМУЩЕСТВА */
.block-2 {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 1em;
    flex-wrap: wrap;
    width: 80%;
}

.listing-benefits {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}
.listing-benefits div {
    width: 10em;
    text-align: center;
    border: #1C1A19 solid 2px;
    border-radius: 1em;
    margin-bottom: .6em;
    min-height: 6em;
}
.listing-benefits p {
    color: #383530;
    font-size: .5em;
}
.listing-benefits img {
    width: 2em;
    height: 2em;
    margin: 0 auto;
    margin: 1.75em;
}
.head {
    margin: 0 auto;
    width: 100%;
    border: #1E1E1E solid 0.1em;
    border-radius: .8em;
    margin-top: .2em;
    margin-bottom: .6em;
}
.head h2 {
    margin: .2em;
    text-align: center;
}


/* БЛОК 3: НАЧАЛО ИСПОЛЬЗОВАНИЯ */
.block-3, .block-6 {
    margin: 0 auto;
    margin-top: 2em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 80%;
}
.block-3 img {
    max-width: 8em;
}
.how-use {
    width: 10em;
}
.how-use ol span {
    color: #1E1E1E;
}

.how-use ol li {
    font-size: 1.2em;
}
.how-use ol p {
    font-size: .9em;
    margin: 0;
    padding: 0;
}



/* БЛОК 6: ДОП. ИНФОРМАЦИЯ */
.block-6 .transparency, .painted-over {
    border: #292722 solid 2px;
    border-radius: .6em;
}
.transparency a {
    color: #292722;
}

.block-6 ul, .legal-information {
    font-family: "Involve Regular";
    font-size: .6em;
}
.block-6 ul li {
    margin-bottom: 1em;
}

.block-6 div {
    margin: 0 auto;
    padding: .2em;
    margin-bottom: 1em;
    margin-bottom: .5em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 90%;
}
.add-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    min-width: 8em;
}
.painted-over {
    background-color: #292722;
    color: #DEDEDE;
}
.painted-over a, .legal-information a {
    color: #DEDEDE;
}


/* ЗАКЛЮЧАЮЩИЙ БЛОК */
footer {
    border-start-end-radius: .8em;
    border-start-start-radius: .8em;
}
footer div {
    padding: .4em;
    display: flex;
    justify-content: center;
}
footer img {
    width: 10em;
}
hr {
    width: 80%;
    height: 2px;
    border: none;
    background-color: #545349;
}
.legal-information {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.took-part {
    display: flex;
    flex-direction: row;
    width: 80%;
    margin: 0 auto;
}
.took-part {
    color: #8B8679;
}

.by-author {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}
.by-author p, .by-author span {
    margin: 0;
    text-align: center;
}
.by-author p {
    font-family: "Questrial", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #E9E9E9;
    letter-spacing: .5em;
}
.by-author span {
    color: #8B8679;
}


header {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    background-color: #292722;
    position: fixed;
    top: 0;
}
header div img {
    width: 6em;
}
header div {
    margin: 0 auto;
    font-family: "Involve Regular";
    display: flex;
    flex-direction: row;
    height: fit-content;
}

.nav-links {
    padding: 5px 20px 5px 20px;
    justify-content: center;
}
.nav-links a {
    font-size: .5em;
    color: #CDCCB7;
    padding: 5px 20px 5px 20px;
    transition-duration: .15s;
}
.desktop-menu a {
    text-align: center;
    justify-content: center;
    text-decoration: none;
}

.block-about {
    margin: 0 auto;
    max-width: 22em;
}
.block-about h2 {
    color: #DEDEDE;
    padding-left: .5em;
}
.block-about a {
    font-size: .6em;
}

.btn-start, .btn-redirect {
    display: flex;
    justify-content: center;
    font-family: 'Involve Regular';
    background-color: #FFD33E;
    width: fit-content;
    height: fit-content;
    text-align: center;
    vertical-align: auto;
    border-radius: 0.4em;
    align-items: center;
    transition-duration: .15s;
}
.btn-start a, .btn-redirect a {
    color: #1C1A19;
    font-size: .6em;
    padding: .2em .6em .2em .6em;
    text-align: center;
    align-content: center;
    text-decoration: none;
}
.btn-start:hover, .btn-redirect:hover {
    opacity: 0.7;
}

.btn-redirect {
    font-size: 1.2em;
    align-items: center;
    margin: 0 auto;
    margin-top: 1.2em;
    margin-bottom: 2em;
}

.btn-more {
    background-color: #1E1E1E;
}

.promo-image {
    margin: 0 auto;
    text-align: center;
    min-width: 390px;
    max-width: 1200px;
    padding-top: 2em;
}
.promo-image img {
    width: 70%;
    max-width: 1200px;
    min-width: 390px;
    border-radius: .5em;
}

/*----------------------------------------------------------*/
/* Добавляем стили для бургер меню на мобильных устройствах */
.mobile-links {
    display: none;
}

/* ---------------------------- */
/* Стили для кнопки бургер-меню */
.burger-menu {
    display: none; /* Скрываем кнопку бургер-меню по умолчанию */
    cursor: pointer;
}

.line {
    width: 30px;
    height: 3px;
    background-color: #FFD33E;
    margin: 6px 0;
}

.burger-image {
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-right: 10px;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}


@media screen and (min-width: 1181px) {
    body {
        font-size: 48px;
        border-radius: 32px;
    }
    .burger-image {
        display: none;
    }
}


/* Медиа-запрос для мобильных устройств */
@media screen and (max-width: 1220px) {

    body {
        font-size: 32px;
    }

    .mobile-menu.active .nav-links.mobile-menu .mobile-links {
        padding-top: 20px;
    }

    .mobile-links {
        display: none;
        position: absolute;
        background-color: rgba(51, 47, 40, 0.8);
        width: 100%;
        height: 100%;
        min-height: 900px;
        right: 0;
        left: 0;
        top: 2.5rem;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .listing-benefits img {
        margin: 1em;
    }
    .listing-benefits div {
        min-height: 0;
    }

    .mobile-links img {
        width: 50%;
        max-width: 600px;
    }
    .mobile-links hr {
        background-color: #5cc623;
    }

    .mobile-links a {
        text-align: right;
        font-size: .8em;
        color: #d6cfcb;
        max-width: 600px;
        margin: 12px;
    }

    .nav-links.mobile-menu a {
        transform: scale(0);
        transition: transform 0.25s ease;
    }

    .mobile-menu.active a {
        transform: scale(1);
        opacity: 0;
        transition: opacity .25s ease;
    }


    .mobile-menu.active a {
        opacity: 1;
    }

    .burger-image {
        display: block;
    }

    .line {
        transition: transform 0.3s ease;
    }

    .nav-links.desktop-menu, .btn-start {
        display: none;
    }
    .nav-links.mobile-menu {
        display: flex;
    }

    /* Показываем кнопку бургер-меню на мобильных устройствах */
    .burger-menu {
        display: block;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        position: relative;
    }

    /* Показываем ссылки в бургер-меню на мобильных устройствах */
    .mobile-menu.active .mobile-links {
        display: flex;
        flex-direction: column;
        padding-top: 20px;
    }

    /* Анимация для выезжания бургер-меню */
    .nav-links.mobile-menu {
        transition-duration: .15s;
    }

    /* Показываем бургер-меню при активации */
    .mobile-menu.active .nav-links.mobile-menu {
        right: 0;
    }
    
    /* Переключаем стили линий для кнопки бургер-меню при открытии */
    .mobile-menu.active .line:nth-child(1) {
        transform: rotate(180deg);
    }
    .mobile-menu.active .line:nth-child(2) {
        transform: rotate(180deg);
    }
    .mobile-menu.active .line:nth-child(3) {
        transform: rotate(-180deg);
    }
}
