:root {
    --wood-dark: #3b2415;
    --wood: #8a552e;
    --wood-light: #c68b52;
    --cream: #f7f1e8;
    --white-wall: #fffdf8;
    --stone: #ded2c1;
    --text: #2b2119;
    --muted: #7c6b5b;
    --green: #4f6f45;
    --danger: #b84535;
    --shadow: 0 24px 70px rgba(59, 36, 21, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        linear-gradient(180deg, #fffdf8 0%, #f6efe4 55%, #efe1cf 100%);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 248, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(138, 85, 46, 0.13);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 22px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, var(--wood), var(--wood-light));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 14px 28px rgba(138, 85, 46, 0.28);
}

.logo-area strong {
    display: block;
    font-size: 21px;
}

.logo-area span {
    color: var(--muted);
    font-size: 13px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.main-nav a {
    padding: 11px 13px;
    border-radius: 999px;
    font-weight: 800;
    color: #4c3a2d;
    font-size: 14px;
}

.main-nav a:hover {
    background: #efe0cd;
    color: var(--wood-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.small-user {
    background: #efe0cd;
    color: var(--wood-dark);
    border-radius: 999px;
    padding: 10px 13px;
    font-weight: 800;
    font-size: 13px;
}

.mobile-nav-toggle {
    display: none;
    border: 0;
    background: var(--wood-dark);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn.large {
    padding: 15px 24px;
    font-size: 16px;
}

.btn.full {
    width: 100%;
}

.btn-wood {
    background: linear-gradient(135deg, var(--wood), var(--wood-light));
    color: white;
    box-shadow: 0 16px 32px rgba(138, 85, 46, 0.24);
}

.btn-wood:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(138, 85, 46, 0.32);
}

.btn-white {
    background: white;
    color: var(--wood-dark);
    border: 1px solid #eadbc8;
}

.btn-glass {
    background: rgba(255,255,255,0.16);
    color: white;
    border: 1px solid rgba(255,255,255,0.34);
}

.btn-outline-dark {
    background: transparent;
    color: var(--wood-dark);
    border: 1px solid rgba(59, 36, 21, 0.25);
}

.hero-modern {
    min-height: 760px;
    position: relative;
    background:
        linear-gradient(115deg, rgba(34, 22, 14, 0.88), rgba(59, 36, 21, 0.42)),
        url('../img/stodola-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

.hero-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(198, 139, 82, 0.28), transparent 28%),
        linear-gradient(180deg, transparent 55%, rgba(43, 33, 25, 0.72));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 760px;
    padding: 110px 22px 80px;
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 44px;
}

.label {
    margin: 0 0 13px;
    color: var(--wood-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 13px;
    font-weight: 900;
}

.hero-text h1 {
    margin: 0;
    font-size: clamp(58px, 9vw, 112px);
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.hero-text h2 {
    max-width: 780px;
    margin: 22px 0 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
}

.hero-text p {
    max-width: 680px;
    color: #f4e7d7;
    font-size: 18px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,241,232,0.92));
    color: var(--text);
    border-radius: 34px;
    padding: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.45);
}

.hero-card .card-label {
    display: inline-flex;
    background: #efe0cd;
    color: var(--wood-dark);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.hero-card h3 {
    font-size: 28px;
    line-height: 1.2;
    margin: 18px 0 10px;
}

.hero-card p {
    color: var(--muted);
    line-height: 1.65;
}

main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
}

.quick-info {
    margin-top: -70px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-card {
    background: rgba(255,253,248,0.96);
    border: 1px solid rgba(138, 85, 46, 0.12);
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.quick-card strong {
    display: block;
    font-size: 19px;
    margin-bottom: 7px;
}

.quick-card span {
    color: var(--muted);
    line-height: 1.45;
}

.section {
    padding: 86px 0;
}

.section-title {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-title.light {
    color: white;
}

.section-title h2,
.catering-text h2,
.contact-info h2 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-title p,
.catering-text p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 17px;
}

.section-title.light p {
    color: #eadbc8;
}

.menu-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    align-items: start;
}

.menu-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 16px;
}

.meniny-box,
.order-info-box {
    background: white;
    border: 1px solid rgba(138, 85, 46, 0.13);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.meniny-box span {
    color: var(--muted);
    font-weight: 800;
}

.meniny-box strong {
    display: block;
    font-size: 26px;
    line-height: 1.18;
    margin-top: 8px;
}

.order-info-box h3 {
    margin: 0 0 8px;
    font-size: 23px;
}

.order-info-box p {
    color: var(--muted);
    line-height: 1.65;
}

.menu-main {
    background: rgba(255,253,248,0.9);
    border: 1px solid rgba(138, 85, 46, 0.13);
    border-radius: 34px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.modern-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 22px;
}

.day-btn {
    min-width: 118px;
    border: 0;
    background: #efe0cd;
    color: var(--wood-dark);
    border-radius: 22px;
    padding: 15px 16px;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: left;
}

.day-btn span {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #80654e;
}

.day-btn strong {
    display: block;
    font-size: 22px;
    margin-top: 3px;
}

.day-btn.active,
.day-btn:hover {
    background: linear-gradient(135deg, var(--wood), var(--wood-light));
    color: white;
    transform: translateY(-2px);
}

.day-btn.active span,
.day-btn:hover span {
    color: #f9e9d3;
}

.loading,
.empty-state {
    background:
        linear-gradient(135deg, #fffaf2, #f1e2cf);
    color: var(--muted);
    text-align: center;
    padding: 42px 20px;
    border-radius: 26px;
    border: 1px dashed rgba(138, 85, 46, 0.24);
}

.empty-state h3 {
    margin-top: 0;
    color: var(--text);
}

.menu-group {
    margin-bottom: 34px;
}

.menu-group:last-child {
    margin-bottom: 0;
}

.menu-group-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e7d7c3;
    padding-bottom: 12px;
}

.menu-group-title h3 {
    margin: 0;
    font-size: 30px;
}

.menu-group-title span {
    color: var(--muted);
    font-weight: 800;
}

.meal-list {
    display: grid;
    gap: 12px;
}

.meal-row {
    background: white;
    border: 1px solid #eadbc8;
    border-radius: 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: center;
    transition: 0.2s ease;
}

.meal-row.has-order {
    grid-template-columns: 56px 1fr auto;
}

.meal-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(59, 36, 21, 0.1);
}

.meal-order-number {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, var(--wood-dark), var(--wood));
    color: white;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
}

.meal-info h4 {
    margin: 0 0 8px;
    font-size: 21px;
}

.meal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meal-meta span {
    background: #f4eadb;
    color: #725b45;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

.order-btn {
    border: 0;
    background:
        linear-gradient(135deg, var(--green), #74956a);
    color: white;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
}

.order-btn.ordered {
    background: var(--wood-dark);
}

.news-section {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
    padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
    background:
        linear-gradient(120deg, rgba(43, 33, 25, 0.95), rgba(59, 36, 21, 0.86)),
        url('../img/drevo-bg.jpg');
    background-size: cover;
    background-position: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.news-card {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 30px;
    padding: 28px;
    color: white;
    backdrop-filter: blur(10px);
}

.news-card span {
    display: inline-flex;
    background: rgba(198, 139, 82, 0.24);
    color: #ffd9aa;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.news-card h3 {
    font-size: 27px;
    margin: 18px 0 10px;
}

.news-card p {
    color: #eadbc8;
    line-height: 1.7;
}

.catering-section {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 28px;
    align-items: center;
}

.catering-text {
    background: white;
    border: 1px solid rgba(138, 85, 46, 0.13);
    border-radius: 36px;
    padding: clamp(28px, 5vw, 54px);
    box-shadow: var(--shadow);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.service-list div {
    background: #f4eadb;
    border-radius: 22px;
    padding: 18px;
}

.service-list strong,
.service-list span {
    display: block;
}

.service-list span {
    color: var(--muted);
    margin-top: 5px;
}

.catering-panel {
    min-height: 460px;
    border-radius: 36px;
    padding: 32px;
    color: white;
    background:
        linear-gradient(160deg, rgba(59,36,21,0.82), rgba(138,85,46,0.72)),
        url('../img/catering.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.catering-panel h3 {
    font-size: 34px;
    margin: 0 0 18px;
}

.catering-panel ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #fff1df;
    font-weight: 800;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: 250px;
    gap: 16px;
}

.gallery-item {
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #cdb89d;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(43,33,25,0.78));
}

.gallery-item span {
    position: absolute;
    z-index: 2;
    left: 22px;
    bottom: 20px;
    color: white;
    font-weight: 900;
    font-size: 22px;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-note {
    margin-top: 14px;
    color: var(--muted);
    text-align: center;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
}

.contact-info {
    background: white;
    border: 1px solid rgba(138, 85, 46, 0.13);
    border-radius: 36px;
    padding: 38px;
    box-shadow: var(--shadow);
}

.contact-list {
    display: grid;
    gap: 15px;
    margin-top: 28px;
}

.contact-list div {
    padding-bottom: 15px;
    border-bottom: 1px solid #eadbc8;
}

.contact-list strong,
.contact-list span {
    display: block;
}

.contact-list span {
    color: var(--muted);
    margin-top: 5px;
}

.map-box {
    min-height: 500px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(138, 85, 46, 0.13);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer {
    background: var(--wood-dark);
    color: #eadbc8;
    margin-top: 60px;
    padding: 30px 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer strong,
.footer span {
    display: block;
}

.footer strong {
    color: white;
}

.footer p {
    margin: 0;
}

.toast-message {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(80px);
    background: var(--wood-dark);
    color: white;
    padding: 14px 20px;
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 9999;
    font-weight: 900;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-message.success {
    background: var(--green);
}

.toast-message.error {
    background: var(--danger);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(120deg, rgba(59, 36, 21, 0.88), rgba(43, 33, 25, 0.88)),
        url('../img/stodola-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.login-box {
    width: min(440px, 100%);
    background: rgba(255,253,248,0.96);
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.32);
}

.login-box h1 {
    margin-bottom: 8px;
}

.login-box p {
    color: var(--muted);
    line-height: 1.6;
}

.login-box label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 900;
}

.login-box input {
    width: 100%;
    border: 1px solid #dfcbae;
    border-radius: 16px;
    padding: 14px;
    font-size: 16px;
}

.login-box form button {
    margin-top: 22px;
}

.back-link {
    color: var(--wood);
    font-weight: 900;
}

.alert {
    padding: 13px 15px;
    border-radius: 16px;
    margin: 18px 0;
    font-weight: 800;
}

.alert.error {
    background: #f8d9d5;
    color: #8d251c;
}

.simple-header {
    background: var(--white-wall);
    border-bottom: 1px solid #eadbc8;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orders-page {
    max-width: 1040px;
    margin: 40px auto;
    background: white;
    border-radius: 34px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.orders-list {
    display: grid;
    gap: 14px;
}

.order-card {
    background: #fffaf2;
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid #efdfc9;
}

.order-card strong,
.order-card span {
    display: block;
}

.order-card span,
.order-card p {
    color: var(--muted);
}

.status {
    background: #efe0cd;
    color: var(--wood-dark);
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 900;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: auto auto;
    }

    .mobile-nav-toggle {
        display: block;
        justify-self: end;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: start;
        flex-wrap: wrap;
        background: white;
        border-radius: 22px;
        padding: 12px;
    }

    .main-nav.open {
        display: flex;
    }

    .header-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .hero-inner,
    .menu-layout,
    .catering-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .menu-side {
        position: static;
    }

    .quick-info,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .hero-inner {
        min-height: auto;
        padding-top: 80px;
    }

    .hero-modern {
        min-height: auto;
    }

    .hero-buttons,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-info,
    .news-grid,
    .service-list,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .meal-row,
    .meal-row.has-order,
    .order-card {
        grid-template-columns: 1fr;
    }

    .meal-order-number {
        width: 46px;
        height: 46px;
    }

    .meal-action .order-btn {
        width: 100%;
    }

    .section {
        padding: 58px 0;
    }

    .footer {
        display: grid;
    }
}