/* ---------- Alap változók ---------- */
:root {
    --bg: #faf6f0;
    --bg-elevated: #ffffff;
    --bg-warm: #f3ece0;
    --text: #2c2620;
    --text-muted: #6b5d50;
    --line: #e6dccb;
    --wood-dark: #3d2817;
    --wood-mid: #6b4a2b;
    --wood-light: #c8a87a;
    --accent: #b85c38;
    --accent-dark: #8a3f23;
    --shadow-sm: 0 1px 3px rgba(61, 40, 23, 0.08);
    --shadow-md: 0 6px 24px rgba(61, 40, 23, 0.10);
    --shadow-lg: 0 20px 50px rgba(61, 40, 23, 0.18);
    --radius: 6px;
    --radius-lg: 14px;
    --serif: 'Cormorant Garamond', 'Georgia', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--wood-dark);
    margin: 0 0 .6em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--wood-dark);
}
.brand img { height: 48px; width: auto; }
.brand-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
.brand-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.main-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--wood-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.active {
    background: var(--bg-warm);
    color: var(--accent-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--wood-dark);
}
.nav-toggle svg { display: block; width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 9vw, 110px) 0;
    background-color: var(--wood-dark);
    background-image:
        linear-gradient(135deg, rgba(61, 40, 23, 0.78), rgba(107, 74, 43, 0.62)),
        url("../images/termek/konyhabutor/img-015.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
}
.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
    pointer-events: none;
}
.hero-bg-layer.hero-bg-active { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 40, 23, 0.78), rgba(107, 74, 43, 0.62));
    z-index: 1;
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
    .hero-bg-layer { transition: none; }
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 0.4em;
}
.hero p {
    max-width: 680px;
    margin: 0 auto 1.8em;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: rgba(255, 255, 255, 0.92);
}
.hero-meta {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.btn {
    display: inline-block;
    padding: 13px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: var(--shadow-sm);
}
.btn:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Page header ---------- */
.page-header {
    padding: 70px 0 30px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 6px; }
.page-header .crumb {
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ---------- Sections ---------- */
section { padding: 60px 0; }
section.narrow .container { max-width: 820px; }

.section-title {
    text-align: center;
    margin-bottom: 36px;
}
.section-title .eyebrow {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-title h2 { margin: 0; }

/* ---------- Feature grid (homepage) ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-elevated);
    padding: 32px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feature-card .icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--accent);
}
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ---------- Categories (homepage) ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.category-card:hover img { transform: scale(1.06); }
.category-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(61, 40, 23, 0.85) 100%);
}
.category-card .label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 24px;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 1;
    color: #fff;
}

/* ---------- Article / prose ---------- */
.prose {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.02rem;
}
.prose h2, .prose h3 {
    margin-top: 2em;
}
.prose p, .prose ul { margin-bottom: 1.1em; }
.prose ul { padding-left: 1.2em; }
.prose hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.5em 0;
}

.sign {
    margin-top: 36px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    text-align: right;
    font-family: var(--serif);
    font-style: italic;
    color: var(--text-muted);
}
.sign strong { color: var(--wood-dark); display: block; font-size: 1.15rem; font-style: normal; }

/* ---------- Gallery groups ---------- */
.gallery-group { margin-bottom: 60px; }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group .title {
    text-align: center;
    margin-bottom: 24px;
}
.gallery-group .title h2 { margin: 0; }
.gallery-group .title .underline {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 14px auto 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.gallery a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    background: var(--bg-warm);
    cursor: pointer;
    flex: 0 1 240px;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery a:hover img { transform: scale(1.05); }

.gallery.is-collapsed > a:nth-child(n+9) { display: none; }

.gallery-actions {
    text-align: center;
    margin-top: 22px;
}
.gallery-actions .toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--wood-dark);
    border: 1px solid var(--line);
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background .15s, color .15s, border-color .15s;
}
.gallery-actions .toggle:hover {
    background: var(--bg-warm);
    color: var(--accent-dark);
    border-color: var(--wood-light);
}
.gallery-actions .toggle svg {
    width: 16px; height: 16px;
    transition: transform .25s ease;
}
.gallery-actions .toggle.is-open svg { transform: rotate(180deg); }
.gallery-actions .toggle .label-collapse,
.gallery-actions .toggle.is-open .label-expand { display: none; }
.gallery-actions .toggle.is-open .label-collapse { display: inline; }

/* ---------- Catalog cards (alapanyagok) ---------- */
.catalog-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin: 28px 0;
}
.catalog-grid .catalog-card { flex: 0 1 260px; }
.catalog-card {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--wood-dark);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--accent-dark);
}
.catalog-card .thumb {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-warm);
}
.catalog-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.catalog-card .meta {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.catalog-card .meta span { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

.material-block {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 32px;
}
.material-block:last-child { margin-bottom: 0; }
.material-block .head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.material-block h3 { margin: 0 0 4px; }
.material-block p { color: var(--text-muted); margin: 8px 0 18px; }

/* ---------- Catalog viewer ---------- */
.viewer {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    height: calc(100vh - 110px);
    min-height: 540px;
    max-height: 1100px;
}
.viewer .sidebar {
    height: 100%;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    padding-right: 14px;
}
.viewer .sidebar ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: pages;
}
.viewer .sidebar li {
    counter-increment: pages;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: background .15s, color .15s;
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.viewer .sidebar li::before {
    content: counter(pages, decimal-leading-zero);
    color: var(--wood-light);
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
}
.viewer .sidebar li:hover { background: var(--bg-warm); color: var(--wood-dark); }
.viewer .sidebar li.active {
    background: var(--wood-dark);
    color: #fff;
}
.viewer .sidebar li.active::before { color: var(--wood-light); }
.viewer .stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    min-height: 0;
    min-width: 0;
}
.viewer .stage .img-wrap {
    flex: 1 1 auto;
    width: 100%;
    background: var(--bg-warm);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}
.viewer .stage .img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}
.viewer .controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
}
.viewer .controls button {
    background: var(--bg-warm);
    border: 1px solid var(--line);
    color: var(--wood-dark);
    padding: 9px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: background .15s;
}
.viewer .controls button:hover { background: var(--wood-dark); color: #fff; }
.viewer .controls .page-info {
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0 10px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: stretch;
}
.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-card h3 { margin-top: 0; }
.contact-card .row {
    display: flex;
    gap: 14px;
    margin: 14px 0;
    align-items: flex-start;
}
.contact-card .row .icon {
    width: 22px; height: 22px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}
.contact-card .row .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.contact-card .row .value { color: var(--wood-dark); font-weight: 500; }
.contact-card .row .value a { color: var(--wood-dark); }
.contact-card .row .value a:hover { color: var(--accent); }

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.hours-table td {
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}
.hours-table td:first-child { color: var(--text-muted); }
.hours-table td:last-child { text-align: right; color: var(--wood-dark); font-weight: 500; }
.hours-table tr:last-child td { border-bottom: 0; }

.map-frame {
    width: 100%;
    height: 460px;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ---------- Pályázat ---------- */
.palyazat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 820px;
    margin: 0 auto;
}
.palyazat-card .top {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.palyazat-card .top img { width: 96px; height: auto; }
.palyazat-card .top h2 { margin: 0; }
.palyazat-card .lead { color: var(--text-muted); font-style: italic; margin-bottom: 24px; }
.palyazat-card dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 14px 24px;
    margin: 0;
}
.palyazat-card dt { font-weight: 600; color: var(--wood-dark); }
.palyazat-card dd { margin: 0; color: var(--text); }

/* ---------- Sticky pályázat link ---------- */
.szechenyi-sticky {
    position: fixed;
    top: 77px;
    right: 0;
    z-index: 90;
    display: block;
    line-height: 0;
    transition: opacity .2s;
}
.szechenyi-sticky img { height: 110px; width: auto; display: block; }
.szechenyi-sticky:hover { opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 80px;
    background: var(--wood-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 50px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 30px;
}
.footer-grid h4 {
    color: #fff;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer-grid p, .footer-grid li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.93rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 6px; }
.footer-grid ul a { color: rgba(255, 255, 255, 0.78); }
.footer-grid ul a:hover { color: var(--wood-light); }
.footer-brand p { margin-top: 14px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .counter { color: rgba(255, 255, 255, 0.68); }
.footer-bottom .counter strong { color: var(--wood-light); font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 6, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.lightbox .close,
.lightbox .lb-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.lightbox .close:hover,
.lightbox .lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox .close { top: 24px; right: 24px; }
.lightbox .lb-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .caption {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px;
    border-radius: 999px;
    max-width: 80%;
    text-align: center;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- PDF viewer ---------- */
.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pdf-toolbar .pdf-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.btn.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}
.btn.ghost.btn-sm {
    color: var(--wood-dark);
    border-color: var(--line);
}
.btn.ghost.btn-sm:hover {
    background: var(--bg-warm);
    color: var(--accent-dark);
}
.pdf-frame-wrap {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pdf-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 240px);
    min-height: 600px;
    border: 0;
    background: var(--bg-warm);
}

/* ---------- Konyhatervező ---------- */
.elements-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .viewer { grid-template-columns: 1fr; height: auto; max-height: none; }
    .viewer .sidebar { height: auto; max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 14px; }
    .viewer .stage .img-wrap { aspect-ratio: 3/4; flex: 0 0 auto; }
    .palyazat-card dl { grid-template-columns: 1fr; gap: 4px; }
    .palyazat-card dt { margin-top: 12px; }
    .szechenyi-sticky { top: 77px; right: 0; }
    .szechenyi-sticky img { height: 78px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    /* Disable backdrop-filter on mobile so .main-nav (position:fixed) anchors to the viewport, not the header */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg);
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: var(--bg);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform .25s ease;
        padding: 80px 18px 24px;
        overflow-y: auto;
        z-index: 110;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 14px 18px; }
    .brand-text strong { font-size: 1.15rem; }
    .brand-text span { font-size: 0.7rem; }
    .brand img { height: 40px; }
    .szechenyi-sticky { top: 69px; }
    .szechenyi-sticky img { height: 64px; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 44px 0; }
    .page-header { padding: 50px 0 24px; }
    .palyazat-card { padding: 24px; }
    .material-block { padding: 24px; }
}

/* ---------- Body scroll lock when menu open ---------- */
body.no-scroll { overflow: hidden; }
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 6, 0.45);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }
