@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-VariableFont_wght.woff2') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
}

@font-face {
    font-family: 'Marck-Script';
    src: url('../fonts/MarckScript-Regular.woff2') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@keyframes fillLine {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

::target-text {
    color: inherit !important;
    background: transparent !important;
    text-decoration: none !important;
}

:root {
    --main-color: #a38e7b;
    --text-second-color: #65513e;
    --third-color: #523d30;
    --body-color: #efece8;
    --dropdowns-color: #ebdac3;
}

::-webkit-scrollbar {
    display: none;
}

* {
    padding: 0;
    margin: 0;
    font-size: 1em;
}


body {
    background-color: var(--body-color);
    font-family: 'Nunito', sans-serif;
    color: #fff;
    /* overflow-x: hidden; */
}

a {
    text-decoration: none;
    cursor: pointer;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    color: inherit;
}

/* затемнение страницы */
.main-container.main-container-after::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 5;
}

/* блок для бронирования(открывается на кнопку забронировать) */
.book-block {
    z-index: 1000;
    display: none;
    flex-direction: column;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #fff;
    width: auto;
    height: auto;
    border-radius: 10px;
    padding: 5px;
    padding-top: 0px;
    color: var(--third-color);

    .book-block-header {
        display: grid;
        grid-template-columns: 0.1fr 1fr 0.1fr;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.4em;
        text-align: center;
    }

    .book-block-header p {
        font-size: 2.3em;
        cursor: pointer;
    }

    .book-block-header h2 {
        font-size: 1.6em;
    }

    .book-block-grid {
        display: grid;
        grid-template-rows: 1fr 0.05fr 1fr 0.05fr 1fr;
        width: 100%;
        height: 100%;
    }

    .book-phone-number {
        width: 100%;
        text-align: center;
        font-size: 2.5em;
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .book-block-line p {
        color: var(--text-second-color);
        font-size: 1.4em;
        margin-left: 3em;
    }

    .book-block-line {
        padding: 0.5em;
    }

    .book-block-line:hover {
        transition-duration: 400ms;
        transition-timing-function: linear;
        transform: scale(1.03);
    }

    .book-block-line img {
        width: 3em;
    }

    .dull-line {
        background-color: rgba(80, 80, 80, 0.767);
        margin: auto;
        width: 90%;
        height: 100%;
    }
}

header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--main-color);
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
}

header .head-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    background-color: var(--body-color);
}

#logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Marck-Script';
    font-size: 3.9em;
    text-align: center;

    p {
        font-size: 0.6em;
        color: var(--third-color);
        margin-top: -0.3em;
    }
}

#logo h1 {
    color: var(--third-color);
}

#mobile-space {
    display: none;
}

#header-phone-number,
#prelogo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: var(--third-color);
    font-weight:600;


    p {
        margin-bottom: 0.3em;
    }
}

.flex-row {
    display: flex;
    align-items: center;
    flex-direction: row;
    text-align: start;
}

.flex-row img {
    width: 1.6em;
    margin-inline: 0.3em;
}

header .nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 1.4em;
    top: 0;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sticky {
    position: fixed;
    top: 0;
    width: auto;
    width: 100%;
}

.nav {
    background-color: var(--main-color);
}

.dropdown {
    position: relative;
    display: inline-block;
    flex-direction: row;
    justify-content: space-between;
    transition-duration: 200ms;
    transition-property: height;
    z-index: 5;
}

.nav-item {
    cursor: pointer;
    padding: 0.2em 2em;
}

.dropdown img {
    position: absolute;
    width: 1.2em;
    top: 20%;
    left: 65%;
    transition-duration: 400ms;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.1);
    min-width: 100%;
    top: calc(100%);
    z-index: 5;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    background-color: var(--main-color);
    border-radius: 0 0 5px 5px;
}

.dropdown-content a {
    width: 100%;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    animation-duration: 500ms;
    font-size: 0.9em;
}

.dropdown-content a:hover {
    transform: scale(1.04);

}

.dropdown-content .dull-line {
    background-color: #ffffff6b;
    width: 80%;
    height: 1px;
}

.animated-line {
    background-color: var(--text-second-color);
    height: 2.5px;
    margin-top: 1px;
}

.animate {
    animation: fillLine 1s forwards;
}

.decoration-line img {
    width: 2em;
}

.nav-items-container {
    position: relative;
}

.mobile-burger {
    display: none;
}

.btn-a {
    background-color: rgb(222, 133, 32);
    border-radius: 2px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#progress-line-mobile {
    display: none;
}

footer {
    margin-top: 1em;
    overflow: hidden;
    background-color: #664c3c;

    img {
        width: 2.5em;
    }

    .footer-redirect-row {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .header-phone-social {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }



    #logo-footer {
        font-size: 2.5em;
        font-family: 'Marck-Script';
    }


    a:hover {
        color: white;
    }

    .white-line {
        height: 1px;
        background-color: white;
    }

    .footer-table-item li:hover {
        transform: translateY(-2px);
    }

    .social-footer {
        display: flex;
        width: 100%;
        text-align: center;
    }

    ul {
        list-style-type: none;
    }

    .footer-table {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-table-item ul .footer-category {
        font-size: 1.3em;
        margin-bottom: 0.5em;
        opacity: 1;

    }

    .footer-table-item ul .footer-category:hover {
        transform: none;
    }

    .footer-table-item {
        display: flex;
        /* justify-content: center; */
    }

    .footer-table-item li {
        margin: 0.5em;
        transition-duration: 0.3s;
        opacity: 0.8;
    }

    #author-footer-img {
        width: 1em;
    }
}

@media (max-width: 1200px) {
    body {
        font-size: 0.98em;
    }
}

@media (max-width: 1050px) {
    body {
        font-size: 0.95em;
    }
}

@media (max-width: 870px) {
    body {
        font-size: 0.93em;
    }
}


@media (max-width: 800px) {
    body {
        font-size: 0.77em;
    }

    header {
        position: sticky;
    }

    #header-phone-number,
    #prelogo {
        display: none;
    }

    #progress-line-mobile {
        display: block;
        width: 0%;
        height: 0.2em;
        background-color: var(--third-color);
    }


    #mobile-space {
        display: block;
    }

    .animated-line {
        height: 1px;
    }

    .head-container {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 8fr 1fr;
    }

    #logo {
        font-size: 2.1em;
    }

    header {
        flex-direction: column;
        opacity: 1;
        z-index: 3;
    }

    .dashed-line {
        display: none;
    }

    .decoration-line {
        display: none;
    }


    .btn {
        font-size: 0.8em;
    }

    .mobile-burger {
        display: block;
    }

    .burger {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .burger p {
        display: block;
        font-size: 2.0em;
        color: #523d30;
    }

    .nav-item {
        display: none;
    }

    .mobile-burger-dropdown-nav {
        display: flex;
        position: absolute;
        align-items: center;
        right: 0;
        left: 100%;
        top: 100%;
        flex-direction: column;
        justify-content: space-around;
        background-color: var(--dropdowns-color);
        overflow: hidden;
        transition: left 0.3s ease;
        font-size: 1.085em;
    }

    .mobile-dropdown-trigger,
    .mobile-dropdown-nottrigger {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 100%;
        height: 100%;
        padding: 0.6em;

        .btn-a {
            font-size: 1.1em;
        }
    }

    .mobile-burger-dropdown-nav .dull-line {
        height: 1px;
        background-color: #523d3063;
        width: 70%;
    }

    .burger-a {
        display: flex;
        align-items: center;
        text-align: center;
        color: var(--third-color);
        font-size: 1.2em;
    }


    .header-dropdown {
        display: none;
        flex-direction: column;
        color: var(--third-color);

        a span {
            margin-right: 3px;
        }

        a {
            margin: 2px 0;
        }
    }

    .footer-table {
        display: flex;
        flex-direction: column;
    }

    .book-block {
        font-size: 0.9em;
        width: 80%;
        height: auto;
        z-index: 5;
        flex-direction: column;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        background-color: #fff;
        border-radius: 10px;
        padding: 5px;
        color: var(--third-color);

        .book-block-header {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.4em;
            text-align: center;
        }

        .book-block-header p {
            font-size: 2.3em;
            cursor: pointer;
        }

        .book-block-header h2 {
            font-size: 1.6em;
        }

        .book-block-grid {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        .book-phone-number {
            width: 100%;
            text-align: center;
            font-size: 2.5em;
            margin-top: 1em;
            margin-bottom: 1em;
        }

        .book-block-line p {
            color: var(--text-second-color);
            font-size: 1.4em;
            margin-left: 3em;
        }

        .book-block-line {
            padding: 0.5em;
        }

        .book-block-line:hover {
            transition-duration: 400ms;
            transition-timing-function: linear;
            transform: scale(1.02);
        }

        .book-block-line img {
            width: 3em;
        }

        .dull-line {
            background-color: rgba(80, 80, 80, 0.767);
            margin: auto;
            height: 1px;
        }
    }

    footer {
        font-size: 1em;

        .footer-table {
            grid-template-columns: repeat(2, 1fr);
        }

        .footer-table-item {
            justify-content: center;
            text-align: center;
        }

        .footer-table-item:last-child {
            grid-column: 1 / -1;
        }
    }
}