/*root*/
:root {
    --color1: #dab7b5;
    --color2: #c38e8a;
    --color3: #8d453f;
    --color4: #f2e5e4;
    --color5: #f6d2ba;
}

html,
body {
    overflow-x: hidden;
    color: var(--color3);
    background-color: var(--color4);
    scroll-behavior: smooth;
}

/*input*/

.input {
    background-color: #00000014;
    border-radius: 5px;
    width: 100%;
    height: 60 px;
    border: none;
}

.input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}

/*card*/

.card {
    background-color: var(--color5);
    width: 150px;
    height: 150px;

    border-radius: 15px;
    border: 10px solid var(--color4);
}

/*HEADER*/

header {
    background-color: var(--color1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    padding-left: 1vw;
    padding-right: 1vw;

    position: relative;
}

header a {
    text-decoration: none;
    color: var(--color3);
}

header>.left>div {
    margin-top: 0.5rem;
}


header>.left>div>h3 {
    line-height: 0.5;
}

header>.bars {
    display: none;
    position: absolute;
    width: 44px;
    height: 44px;
    background-color: var(--color1);
    border: 10px solid var(--color1);
    border-radius: 40%;

    padding-top: 4px;
    right: 7px;
    top: 5em;

    cursor: pointer;
}

header>.bars>input {
    display: none;
}

header>.bars> {
    align-self: center;
}

header>.left {
    display: grid;
    grid-auto-flow: column;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
}

header>.left>div>p {
    font-style: italic;
}

header>.left>div {
    width: fit-content;
}

header>.left>.logo {
    height: auto;
    width: 200px;
}

header>.right {
    align-self: center;
    display: grid;
    gap: 18px;
    grid-auto-flow: column;
}


/*main page*/

.main-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 7px;
    grid-auto-rows: auto;
    justify-items: center;
}

.main-page>img {
    grid-column: 1/-1;
    width: 100%;
    height: auto;
    display: block;
}

.main-page>.info {
    display: flex;
    justify-content: flex-end;
    margin-right: 3%;
    margin-top: 3%;

    margin-top: 67px;
}

.main-page>.news {
    color: var(--color4);
    height: 100%;
    width: 100%;
}

.main-page>.news > div > * {
    color: var(--color4);
}

.main-page>.news>div {
    background-color: var(--color3);
    border-color: var(--color3);

    height: 100%;
    width: 100%;
}

.main-page>.text {
    padding: 67px;
}

/*to top page*/

#to_top-page {
    position: fixed;
    width: 44px;
    height: 44px;

    background-color: var(--color1);
    border: 10px solid var(--color1);
    border-radius: 100%;

    right: 25px;
    bottom: 3em;

    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -1px 7px 10px rgba(0, 0, 0, 0.5);
    ;
}


/*----mobile----*/



@media (max-width:932px) {


    /*header*/

    header {
        justify-content: center;
    }

    header>.bars {
        display: flex;
        justify-content: center;
    }

    header>.right {
        background-color: var(--color1);
        display: grid;
        align-content: start;
        position: absolute;
        left: 100%;
        top: 100%;
        height: calc(100vh - 100%);
        text-wrap: nowrap;
        gap: 12px !important;
        grid-auto-flow: row;
        transition: 1s;
        padding-left: 12px;
        padding-top: 5rem;
        padding-right: 12px;
    }



    header:has(.bars > input:checked) .right {


        transform: translateX(-100%);
    }



    .main-page {

        grid-template-columns: repeat(1, 1fr) !important;
    }


}
