:root {
    --gold: #c8a96a;
    --gold-dark: #b89658;
    --gold-light: #eadfc9;
    --cream: #f4eddf;
    --paper: #ffffff;
    --ink: #2e2a24;
    --muted: #6d6253;
    --line: rgba(200,169,106,.35);
    --danger: #a83d38;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
}

.guest-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(200,169,106,.10) 0, transparent 240px),
        radial-gradient(circle at 80% 60%, rgba(200,169,106,.08) 0, transparent 260px),
        var(--cream);
}

/* A régi Help teljes oldalas, ismétlődő pillangóháttere. */
.guest-page::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='130' viewBox='0 0 180 130' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c8a96a' stroke-width='1.2' opacity='.22'%3E%3Cpath d='M90 65 C68 28 28 28 32 65 C36 102 70 88 90 65Z'/%3E%3Cpath d='M90 65 C112 28 152 28 148 65 C144 102 110 88 90 65Z'/%3E%3Cpath d='M90 65 C72 92 55 118 84 112 C98 109 96 82 90 65Z'/%3E%3Cpath d='M90 65 C108 92 125 118 96 112 C82 109 84 82 90 65Z'/%3E%3Cpath d='M90 48 L90 92'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 300px 220px;
    background-repeat: repeat;
}

.guest-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px max(18px, calc((100vw - 1100px) / 2));
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.no-language .guest-topbar { display: none; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}
.brand-mark {
    width: 42px;
    height: 42px;
    position: relative;
    display: grid;
    place-items: center;
    transform: rotate(45deg);
}
.brand-mark::before { content: ""; position: absolute; inset: 12px; border: 3px solid #fff; border-radius: 6px; }
.brand-mark i { position: absolute; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.9); border-radius: 7px 2px 7px 2px; }
.brand-mark i:nth-child(1) { top: 1px; left: 1px; }
.brand-mark i:nth-child(2) { top: 1px; right: 1px; }
.brand-mark i:nth-child(3) { bottom: 1px; left: 1px; }
.brand-mark i:nth-child(4) { right: 1px; bottom: 1px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: Georgia, serif; font-size: 21px; letter-spacing: .06em; }
.brand-text small { margin-top: 6px; color: #fff7e7; font-size: 8px; letter-spacing: .31em; }

.point-pill,
.language-switch,
.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #4d402c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.point-pill b { color: var(--gold-dark); font-size: 16px; }
.language-switch:hover,
.back:hover { background: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.12); }

.guest-shell {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 50px;
}
.no-language .guest-shell {
    min-height: calc(100vh - 54px);
    display: grid;
    align-items: center;
    padding-top: 28px;
}

.language-card { width: 100%; text-align: center; }
.hero { padding: 4px 0 26px; }
.hero.compact {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 5px 0 25px;
}
.text-logo {
    margin-bottom: 10px;
    color: #3c3328;
    font: 700 30px Georgia, serif;
}
.eyebrow {
    margin: 0 0 8px;
    color: #806534;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
h1 {
    margin: 0;
    color: #3c3328;
    font: 700 clamp(32px, 5vw, 44px) / 1.1 Georgia, "Times New Roman", serif;
}
.hero p:not(.eyebrow),
.lead {
    max-width: 690px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
.language-hero p { margin-inline: auto !important; }

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
}
.language-option {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 15px 10px;
    border: 1px solid rgba(200,169,106,.45);
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    backdrop-filter: blur(8px);
    transition: .25s ease;
}
.language-option:hover,
.language-option:focus-visible {
    outline: none;
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    background: #fff;
}
.language-flag {
    display: block;
    font: 42px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}
.language-option strong { font-size: 16px; }
.language-option small { color: var(--muted); font-size: 11px; }
.language-note { margin: 22px 0 0; color: #7b7164; font-size: 13px; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.menu-card {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid rgba(200,169,106,.35);
    border-radius: 18px;
    background: rgba(255,255,255,.86);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.09);
    backdrop-filter: blur(8px);
    transition: .25s ease;
}
.menu-card > span { display: block; margin-bottom: 9px; font: 34px/1 "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.menu-card strong { font-size: 15px; line-height: 1.3; }
.menu-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.menu-card:hover,
.menu-card:focus-visible {
    outline: none;
    transform: translateY(-5px);
    border-color: var(--gold);
    background: #fff;
}

.urgent {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.urgent a {
    min-height: 76px;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-content: center;
    gap: 4px 9px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.urgent b { grid-row: 1 / span 2; align-self: center; font-size: 25px; }
.urgent strong { font-size: 14px; }
.urgent span { font-size: 10px; line-height: 1.35; opacity: .92; }
.urgent a:hover { filter: brightness(1.05); transform: translateY(-2px); }

.chat-panel {
    margin-top: 20px;
    padding: 20px;
    border-top: 4px solid var(--gold);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
}
.chat-panel h2 { margin: 0; color: #3c3328; font: 700 25px Georgia, serif; }
.chat-panel h2 span { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.chat-intro { margin: 7px 0 14px; color: var(--muted); font-size: 13px; }
.chat-messages {
    height: 300px;
    overflow: auto;
    padding: 15px;
    border-radius: 14px;
    background: #fafafa;
}
.msg {
    max-width: 86%;
    margin: 9px 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.msg.bot { border-radius: 14px 14px 14px 5px; background: #efe6d4; color: var(--ink); }
.msg.user { margin-left: auto; border-radius: 14px 14px 5px 14px; background: var(--gold); color: #fff; }
.msg.loading { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.chat-form { display: flex; gap: 10px; margin-top: 14px; }
.chat-form input {
    min-width: 0;
    flex: 1;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    outline: none;
}
.chat-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,106,.16); }
.chat-form button,
.video-link,
.danger-call {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.chat-form button:disabled { cursor: wait; opacity: .65; }
.chat-error-text { margin: 10px 0 0; color: var(--danger); font-size: 12px; }

.detail {
    width: min(830px, 100%);
    margin: 0 auto;
    padding: 28px 34px 36px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
    backdrop-filter: blur(8px);
}
.detail .back { border-color: var(--line); }
.detail-icon { margin: 22px 0 13px; font: 44px/1 "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.detail article {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(200,169,106,.25);
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    color: #4f473c;
    font-size: 16px;
    line-height: 1.72;
}
.content-media {
    width: 100%;
    margin: 22px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #1c1c1c;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.content-media img,
.content-media video { display: block; width: 100%; max-height: 620px; object-fit: contain; }
.content-image { background: #fff; }
.video-embed { position: relative; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.danger-call { margin-top: 18px; background: var(--danger); }

footer {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 0 20px 25px;
    color: #7b7164;
    text-align: center;
}
footer span { color: #4d402c; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
footer small { font-size: 10px; }

[dir="rtl"] .brand { text-align: right; }
[dir="rtl"] .msg.user { margin-right: auto; margin-left: 0; }

@media (max-width: 1024px) {
    .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .guest-topbar { min-height: 68px; padding: 11px 12px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-mark::before { inset: 10px; }
    .brand-mark i { width: 12px; height: 12px; }
    .brand-text strong { font-size: 17px; }
    .brand-text small { margin-top: 5px; font-size: 7px; }
    .point-pill { max-width: 44%; padding: 7px 9px; font-size: 10px; line-height: 1.2; }
    .guest-shell { width: calc(100% - 20px); padding: 17px 0 34px; }
    .language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .language-option { min-height: 104px; padding: 13px 8px; }
    .language-flag { font-size: 36px; }
    .hero.compact { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 18px; }
    h1 { font-size: 32px; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .menu-card { min-height: 116px; padding: 12px 9px; border-radius: 15px; }
    .menu-card > span { margin-bottom: 7px; font-size: 29px; }
    .menu-card strong { font-size: 13px; }
    .menu-card small { font-size: 9px; }
    .urgent { grid-template-columns: 1fr; gap: 9px; }
    .chat-panel { padding: 14px; border-radius: 18px; }
    .chat-messages { height: 310px; padding: 11px; }
    .chat-form { flex-direction: column; }
    .chat-form button { min-height: 44px; }
    .detail { padding: 18px 14px 25px; border-radius: 18px; }
    .detail article { padding: 15px; font-size: 15px; }
}
