* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "OpenSans";
    src: url("../fonts/OpenSans-VariableFont_wdth,wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}
body {
    min-height: 100vh;
    font-family: "OpenSans", Verdana, Arial, sans-serif;
    background: url("../img/bg.png") no-repeat center center / cover;
	background-attachment: fixed;
}
.container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 18px 0;
    background: rgba(255, 248, 235, 0.7);
    backdrop-filter: blur(8px);
}
.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 42px;
}
.navigation a {
    color: #493020;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.2s;
}
.navigation a:hover {
    color: #b47738;
}
.languages {
    display: flex;
    gap: 10px;
    margin-left: 30px;
}
.languages select {
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #493020;
    background: transparent;
    border: none;
    cursor: pointer;
    outline-offset: 4px;
}
.bakery {
    padding: 70px 0;
    background: #fff8ed;
    text-align: center;
}

.bakery h2 {
    margin-bottom: 35px;
    font-size: 32px;
    font-weight: 600;
    color: #493020;
}

.bakery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.bakery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.bakery-item h3 {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #493020;
}
.price {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}
.hero {
    min-height: 100vh;
}


@media (max-width: 767px) {
	 body {
        background-image: url("../img/bg_mob.png");
    }
    .container {
        width: calc(100% - 30px);
    }
	.site-header {
        padding: 14px 0;
    }
    .navigation {
        flex-wrap: nowrap;
        gap: 14px;
    }
    .navigation a {
        font-size: 16px;
    }
     .languages {
        margin-left: 0;
    }
    .languages select {
        font-size: 12px;
    }
	 .bakery {
        padding: 45px 0;
    }

    .bakery h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .bakery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }
    .bakery-item h3 {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* Section switching — original grids remain unchanged */
[hidden] { display: none !important; }
main > section.bakery { min-height: 100vh; padding-top: 110px; }
#back-home {
    position: fixed; right: 22px; bottom: 22px; z-index: 101;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: #493020; color: #fff8ed; font-size: 28px;
    cursor: pointer; box-shadow: 0 3px 12px #0003;
}
#back-home:hover { background: #b47738; }
@media (max-width: 767px) {
    main > section.bakery { padding-top: 90px; }
    #back-home { right: 14px; bottom: 14px; }
}

/* Transparent product cards and centered sections */
main > section.bakery {
    background: transparent;
    min-height: 100vh;
    padding: 95px 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
main > section.bakery > .container { width: min(100% - 40px, 1200px); }
.bakery h2 { margin-bottom: 25px; text-shadow: 0 1px 3px rgba(255,248,235,.9); }
.bakery-item {
    padding: 12px 12px 18px;
    background: rgba(255,248,235,.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 3px;
    color: #493020;
}
.bakery-item img { border-radius: 3px; }
.item-divider { border: 0; border-top: 1px solid rgba(73,48,32,.25); margin: 12px 0; }
.item-description { font-size: 14px; line-height: 1.5; }
.contacts-container { display: flex; justify-content: center; }
.contacts-panel {
    width: min(100%, 600px);
    padding: 28px 32px;
    border-radius: 3px;
    background: rgba(255,248,235,.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #493020;
    text-align: left;
}
.contacts-panel h2 { text-align: center; }
.contacts-panel h3 { font-size: 17px; margin-bottom: 8px; }
.contacts-panel hr { border: 0; border-top: 1px solid rgba(73,48,32,.25); margin: 18px 0; }
.contact-group + .contact-group { margin-top: 18px; }
.contact-group p, .contact-group a, .hours-row { font-size: 16px; line-height: 1.6; }
.contacts-panel a { color: #493020; }
.hours-row { display: flex; justify-content: space-between; gap: 18px; }
.hours-row span:last-child { white-space: nowrap; }
@media (max-width: 767px) {
    main > section.bakery { padding: 85px 0 26px; }
    main > section.bakery > .container { width: calc(100% - 30px); }
    .bakery-item { padding: 8px 8px 12px; }
    .item-description { font-size: 12px; line-height: 1.4; }
    .item-divider { margin: 9px 0; }
    .contacts-panel { padding: 22px 18px; }
    .hours-row { font-size: 13px; gap: 8px; }
    .contact-group p, .contact-group a { font-size: 14px; }
}
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: rgba(255, 248, 235, 0.7);
    backdrop-filter: blur(8px);
    font-size: 12px;
    z-index: 100;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Headings: same translucent surface and width as the product grid */
main > section.bakery > .container > h2 {
    width: 100%;
    padding: 12px 15px;
    margin: 0 0 20px;
    background: rgba(255, 248, 235, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 3px;
    font-size: 26px;
    line-height: 1.3;
    text-align: center;
    text-shadow: none;
}
@media (max-width: 767px) {
    main > section.bakery > .container > h2 {
        font-size: 18px;
        padding: 10px 8px;
        margin-bottom: 15px;
    }
}

/* Close the current section; keep the original grids and return button. */
#bakery > .container, #drinks > .container, .contacts-panel { position: relative; }
.section-close { position:absolute; top:6px; right:6px; z-index:2; display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid #49302055; border-radius:50%; background:rgba(255,248,235,.92); color:#493020; font:400 28px/1 Arial,sans-serif; cursor:pointer; }
.section-close:hover { background:#493020; color:#fff8ed; }
.section-close:focus-visible { outline:2px solid #493020; outline-offset:3px; }
#bakery > .container > h2, #drinks > .container > h2 { padding-inline:52px; min-height:52px; }
.contacts-panel > h2 { padding-inline:36px; }
@media (max-width:767px) { .section-close { width:36px; height:36px; top:5px; right:5px; } #bakery > .container > h2, #drinks > .container > h2 { padding-inline:45px; min-height:46px; } }

/* Expanded navigation, original product grids unchanged */
.nav-items {display:flex;align-items:center;gap:32px;} .navigation {gap:24px;} .languages {margin-left:0;}
.navigation button {font:inherit;font-size:18px;font-weight:600;color:#493020;border:0;background:none;cursor:pointer;}
#hamburger {display:none;font-size:28px;line-height:1;} .menu-wrap {position:relative;}
#menu-list {position:absolute;top:calc(100% + 12px);left:0;min-width:220px;background:#fff8ed;box-shadow:0 4px 16px #0003;border-radius:3px;padding:6px;}
#menu-list a {display:block;padding:10px 12px;white-space:nowrap;font-size:16px;} #menu-list a:hover {background:#eadbc8;}
#admin-button {background:#805b38;color:#fff8ed;padding:8px 14px;border-radius:3px;}
main > section.bakery > .container {position:relative;} main > section.bakery > .container > h2 {padding-inline:52px;min-height:52px;}
.about-panel {display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;background:rgba(255,248,235,.7);backdrop-filter:blur(8px);padding:20px;color:#493020;text-align:left;border-radius:3px;}
.about-panel img {display:block;width:100%;height:auto;border-radius:3px;} #about-text {font-size:20px;line-height:1.7;} #about-signature {font-family:'Segoe Script','Comic Sans MS',cursive;font-style:italic;font-size:26px;margin-top:24px;text-align:right;}
@media(max-width:767px){.navigation {justify-content:space-between;} #hamburger {display:block;} .nav-items {display:none;position:absolute;top:100%;left:0;right:0;background:#fff8ed;max-height:calc(100dvh - 65px);overflow:auto;padding:14px 20px;align-items:stretch;gap:12px;} .nav-items.open {display:flex;flex-direction:column;} .nav-items > a,.menu-wrap > button {padding:8px 0;text-align:left;} #menu-list {position:static;box-shadow:none;padding-left:12px;} #menu-list a {white-space:normal;} .about-panel {grid-template-columns:1fr;gap:16px;padding:12px;} #about-text {font-size:16px;} #about-signature {font-size:22px;} main > section.bakery > .container > h2 {padding-inline:45px;min-height:46px;} main > section.bakery {padding-bottom:65px;}}
