/* === RESET === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BASE === */

html {
    font-size: 16px;
}
body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;

    font-family: Arial, sans-serif;
    background: #efeae3;
    color: black;
    line-height: 1.5;
}

/* Убираем стили списков */
ul {
    list-style: none;
}

/* Убираем подчеркивание ссылок */
a {
    text-decoration: none;
    color: inherit;
}

/* Картинки не ломают верстку */
img {
    max-width: 100%;
    display: block;
}
.simple-page .site-header {
    display: none;
}
/* === PAGE LAYOUT === */


/* шапка */
header, footer {
    position: relative;
    display: flex;
    flex-direction: row;
}
.site-header .header-photo {
    /* временно для визуала */
    z-index: 1;
    position: relative;
    width: 100%;
    height: auto;
}
.site-header a {
    z-index: 2;
    position: absolute;
    top: 20px;
    left: 20px;
}


.site-header .site-title {
    position: absolute;
    top: 50%;
    left: 5%;
    z-index: 2;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    opacity: 0.7;
}
/* основной контент */
.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 20px;
}
.top-section {
    position: relative;
    grid-column: 1 / 4;
    grid-row: 1;
    margin: 0;
}
.top-section nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 3px;
    padding-right: 10px;
    padding-left: 10px;
    border: 3px solid #604e4e;
    border-radius: 2px;
}
.top-section nav a {
    padding: 2px;
    color: #604e4e;
    font-weight: bold;
    border: 1px solid #604e4e;
    border-radius: 10px;
}
.top-section nav a:hover {
    color: #8f1010;
    border: 1px solid #8f1010;
    border-radius: 10px;
}
.left-section {
    position: relative;
    grid-column: 1;
    grid-row: 2;
}
.left-section nav {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    top: 30px;
}
.left-section > nav ul li {
    padding: 5px;
    margin-left: 5px;
    text-align: center;
    border: 2px solid #604e4e;
    border-radius: 10px;
    background: #eee6e6;
    color: #333;
    width: 100%;
}
.left-section nav ul li a:hover {
    color: #8f1010;
}
.center-section {
    position: relative;
    grid-column: 2;
    grid-row: 2;
}
.center-section h2 {
    text-align: center;
    font-style: italic;
    margin-top: 0;
}
.center-section img{
    border-radius: 10px;
    padding: 0;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}
.center-section p {
    text-align: justify;
    font-style: normal;
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 4px;
}
.center-section p:last-of-type {
    margin-top: 10px;
    margin-bottom: 10px;
    font-style: italic;
    font-weight: bold;
}

/* === TEXT PAGE CONTENT === */

.policy-content h3 {
    margin-top: 14px;
    margin-bottom: 6px;
    color: #604e4e;
}

.text-list {
    list-style: disc;
    margin-left: 24px;
    margin-bottom: 10px;
}

.text-list li {
    margin-bottom: 4px;
}
 section.interesting {
    grid-column: 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    margin: 25px 10px 40px 10px;
}
.interesting article {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #333;
    width: 100%;
}
.interesting article img {
    border-radius: 10px;
    padding: 0;
    width: 100%;
    height: auto;
}

/* FOOTER */
.footer-main {
    position: relative;
    padding: 20px;
    background: #222;
    justify-content: space-between;
    color: #fff;
}
.footer-main nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: inherit;
}

.copyright {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}
.footer-photo {
    display: flex;
    border-radius: 10px;
    gap: 10px;
    margin: 5px 0  5px 0;

}
.footer-photo img {
    flex: 1;
    min-width: 0;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}
.footer-credit {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
}

.footer-credit:hover {
    color: #cccccc;
}

/* === SOCIAL ICONS === */

.social-media {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.social-media .social-icon {
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
}

.social-media .social-icon:hover {
    color: #cccccc;
}


/* === CONTACTS PAGE === */

.contacts-page {
    padding-bottom: 20px;
}

.center-section .contacts-intro {
    text-align: center;
    margin: 10px 0 10px;
    font-size: 1.1rem;
    font-style: italic;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.contact-card {
    padding: 15px;
    border: 2px solid #604e4e;
    border-radius: 10px;
    background: #eee6e6;
    color: #333;
}

.contact-card h3 {
    margin-bottom: 8px;
    color: #604e4e;
}

.contact-card p,
.contact-card address {
    margin-bottom: 10px;
    font-style: normal;
}

.contact-button {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #604e4e;
    border-radius: 10px;
    background: #efeae3;
    color: #604e4e;
    font-weight: bold;
}

.contact-button:hover {
    color: #8f1010;
    border-color: #8f1010;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-section {
    margin-top: 25px;
}

.map-section h3 {
    margin-bottom: 10px;
    text-align: center;
    color: #604e4e;
}

.map-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid #604e4e;
    border-radius: 10px;
    overflow: hidden;
    background: #eee6e6;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
/* === RECIPES GALLERY === */

.recipe-gallery {
    margin-top: 25px;
}

.recipe-gallery h3 {
    margin-bottom: 12px;
    text-align: center;
    color: #604e4e;
}

.recipe-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.recipe-slides {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 5px 0 10px;
}

.recipe-slide {
    flex: 0 0 65%;
    scroll-snap-align: center;
    text-align: center;
}

.recipe-slide img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #604e4e;
}

.recipe-slide p {
    text-align: center;
    margin-top: 6px;
    font-weight: bold;
    color: #604e4e;
}

.carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #604e4e;
    border-radius: 50%;
    background: #eee6e6;
    color: #604e4e;
    font-size: 1.4rem;
    font-weight: bold;
}

.carousel-arrow:hover {
    color: #8f1010;
    border-color: #8f1010;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 15px;
}

.carousel-dots a {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #604e4e;
    opacity: 0.5;
}

.carousel-dots a:hover {
    opacity: 1;
    background: #8f1010;
}

/* === RECIPES LIGHTBOX === */

.recipe-lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.85);
}

.recipe-lightbox:target {
    display: flex;
}

.recipe-lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 3px solid #efeae3;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
}

.lightbox-arrow-left {
    left: 30px;
}

.lightbox-arrow-right {
    right: 30px;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    color: #cccccc;
}
.recipe-slides {
    scrollbar-width: none;
}

.recipe-slides::-webkit-scrollbar {
    display: none;
}
/* === DELIVERY, ORDER VOTE === */
.vote-box {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #8b6f5c;
    border-radius: 12px;
    background-color: #f5f1eb;
}

.vote-box h3 {
    margin-bottom: 15px;
}

.vote-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #8b6f5c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.vote-button:hover {
    background-color: #6f5747;
}
/* === HOURS === */
.hours-page.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 15px;
    padding: 15px;
    border: 2px solid #604e4e;
    border-radius: 10px;
    background: #eee6e6;
    color: #333;
}
/* text links */
.text-link {
    color: #604e4e;
    font-weight: bold;
    text-decoration: underline;
}

.text-link:hover {
    color: #8f1010;
}
/* === MEDIA QUERIES === */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .top-section,
    .left-section,
    .center-section,
    section.interesting {
        grid-column: 1;
        grid-row: auto;
    }
    .top-section nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .site-header .site-title {
        display: none;
    }
    .left-section nav {
        top: 0;
        padding: 10px;
    }

    .left-section nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .left-section > nav ul li {
        width: auto;
        margin-left: 0;
        padding: 5px 8px;
    }
    .left-section {
        margin-top: -10px;
    }

    .left-section nav ul {
        margin: 0;
        padding: 0;
    }

    .left-section > nav ul li {
        font-size: 0.9rem;
        padding: 4px 7px;
        border-radius: 8px;
    }

    .center-section h2 {
        margin-top: 10px;
        font-size: 1.9rem;
    }
    body {
        overflow-x: hidden;
    }
    .center-section img {
        max-height: 320px;
        object-fit: cover;
    }
    .footer-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .footer-main {
        width: 100%;
    }
    .footer-main p,
    .footer-main a {
        font-size: 0.95rem;
    }
    .footer-main {
        justify-content: center;
    }
    .footer-main {
        word-break: break-word;
    }
    .copyright {
        position: static;
        transform: none;
        margin-top: 10px;
    }

    .social-media {
        align-items: center;
        text-align: center;
    }

    .footer-main nav {
        padding: 0;
    }

    .footer-main {
        padding: 25px 10px;
    }
}