@font-face {
    font-family: "Zodiac";
    src: url(polices/OTF/Zodiak-Regular.otf);
}
html{
    scroll-behavior: smooth;
}
.jakarta{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
body{
    margin: 0;
    transition: ease 0.3s;
    color: #2F3238;
    font-family: "Plus Jakarta Sans", sans-serif;
}
.body--dark{
    background-color: #2F3238;
    color: white;
}
.h1--dark{
    color: #FFD159;
}
h1, h2, blockquote{
    font-family: "Zodiac";
}
blockquote{
    font-style: italic;
}
.changeMode{
    text-indent: 200%;
    white-space: nowrap;
    overflow: hidden;
    background-image: url(icons/sun.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    padding: 10px;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: ease 0.3s;
    @media (min-width: 1024px){
        border-radius: 50px;
        border: 2px solid black;
    }
}
.changeMode:hover{
    background-color: #61390130;
}
.header{
    background-color: #FFD159;
    padding-block: 16px;
    position: sticky;
    width: 100%;
    z-index: 10;
    top: 0;
}
.nav{
    display: flex;
    justify-content: space-between;
    margin-inline: 50px;
}
.nav__list{
    list-style: none;
    display: flex;
    gap: 84px;
    padding: 0;
}
.btns{
    display: flex;
    align-items: center;
}
.slider__img{
    max-width: 100%;
    height: auto;
    width: 313px;
    height: 183px;
    @media (min-width: 1024px){
        width: 740px;
        height: 435px;
    }
}
.slider__el{
    display: flex;
    justify-content: center;
}
.index{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    @media (min-width: 1024px){
        flex-direction: row;
        justify-content: space-around;
        margin-top: 76px;
    }
    h2{
        margin-top: 70px;
        margin-bottom: 0;
    }
}
.index__section{
    display: flex;
    flex-direction: column;
    align-items: center;
    @media (min-width: 1024px){
        align-items: flex-start;
    }
}
.index__para{
    max-width: 313px;
    @media (min-width: 1024px){
        max-width: 349px;
    }
}
.index__btn{
    color: #533F0A;
    background-color: #FFD159;
    padding: 17px 38px;
    border-radius: 50px;
    text-decoration: none;
    transition: ease 0.2s;
}
.index__btn:hover{
    background-color: #523a00;
    color: rgb(255, 255, 255);
}
.phrases{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    margin-inline: 40px;
    @media (min-width: 1024px){
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}
.phrases3{
    margin-bottom: 37px;
    @media (min-width: 1024px){
        margin-bottom: 74px;
    }
}
.phrases__img{
    width: 100%;
    height: 100%;
}
.footer{
    background-color: #FFD159;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer__list{
    list-style: none;
    padding: 0;
}
.footer__list li{
    padding: 20px;
    color: #2F3238;
}
.footer small{
    color: #2F3238;
    margin-bottom: 10px
}
.footer__btn{
    text-decoration: none;
    color: #2F3238;
}
.footer__btn:hover{
    color: #787878;
}
.section{
    display: flex;
    flex-direction: column;
    margin-inline: 40px;
    margin-bottom: 5px;
    @media (min-width: 1024px){
        flex-direction: row;
        align-items: flex-end;
        margin-inline: 78px;
        gap: 158px;
        margin-bottom: 90px;
    }
}
.phrases a:hover{
    border: 2px solid rgb(115, 115, 115);
}
blockquote{
    padding: 19px 42px 19px 42px;
    background-color: #2F3238;
    color: white;
    border-radius: 50px 10px 50px 10px;
    font-size: 20px;
    display: inline-block;
    @media (min-width: 1024px){
        width: 513px;
        padding: 29px 35px 29px 35px;
    }
}
.blockquote--dark{
    color: #2F3238;
    background-color: #FFD159;
}
h1{
    margin: 60px 0 6px 0;
    font-family: "Zodiac";
    @media (min-width: 1024px){
        font-size: 90px;
        white-space: nowrap;
    }
}
.section__para{
    font-size: 20px;
    @media (min-width: 1024px){
        width: 633px;
    }
}
#phrases1, #phrases2, #phrases3{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#phrases1 h2, #phrases2 h2, #phrases3 h2{
    font-size: 45px;
    margin-block: 12px 68px;
    @media (min-width: 1024px){
        font-size: 90px;
        margin-block: 129px 77px;
    }
}
.menu__el a{
    color: #2F3238;
    text-decoration: none;
    font-size: 16px;
    transition: ease 0.2s;
}
.menu__el a:hover{
    color: #787878;
}
@media (max-width: 600px){
    .menu__toggle{
        position: fixed;
        background-image: url(icons/burgermenu.svg);
        background-repeat: no-repeat;
        text-indent: 200%;
        white-space: nowrap;
        overflow: hidden;
        background-position: center;
        background-color: transparent;
        padding: 0;
        right: 50px;
        width: 24px;
        height: 24px;
        border: none;
        cursor: pointer;
        z-index: 20;
    }
    .menu__liste{
        position: fixed;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #FFD159;
        margin: 0;
        z-index: 10;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        gap: 10px;
    }
    .menu--open .menu__liste{
        transform: translateX(0);   
    }
}
@media (min-width: 600px){
    .menu__toggle{
        display: none;
    }
}
