:root {
    --color-green: #234b32;
    --color-green-dark: #173b28;
    --color-green-light: #eef3ec;
    --color-sage: #d7e2d3;
    --color-ink: #17252e;
    --color-muted: #5d6570;
    --color-border: #d6e0d5;
    --color-paper: #faf9f6;
    --page-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; scrollbar-gutter: stable; }
body {
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
    margin: 0;
    color: var(--color-ink);
    background: #fff;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.utility-bar, .site-header, .site-footer { flex-shrink: 0; }
#tartalom { display: flex; flex-direction: column; flex: 1 0 auto; min-height: clamp(320px, 50vh, 640px); }
#tartalom > * { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-green); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid #ad812d;
    outline-offset: 5px;
    border-radius: 3px;
}
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.page-container { width: min(var(--page-width), calc(100% - 96px)); margin-inline: auto; }
.skip-link {
    position: fixed; left: 20px; top: 12px; z-index: 100;
    padding: 12px 18px; background: #fff; color: var(--color-green); transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.utility-bar { background: var(--color-green); color: #fff; }
.utility-navigation { display: flex; justify-content: space-between; align-items: center; min-height: 54px; gap: 20px; }
.utility-link { font-size: 13px; padding: 8px 0; white-space: nowrap; }
.utility-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.utility-login {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid #ffffff9c; border-radius: 5px; padding: 6px 15px;
}
.utility-login .icon { width: 16px; height: 16px; }
.site-header {
    position: sticky; top: 0; z-index: 30; background: #fff;
    border-bottom: 1px solid #e9ede8;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 110px; gap: 30px; }
.brand { flex: 0 0 auto; }
.brand img { display: block; width: 250px; height: auto; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.main-navigation > .menu-list { display: flex; align-items: center; gap: 24px; }
.menu-item { position: relative; }
.menu-entry { display: flex; align-items: center; }
.menu-label { display: flex; align-items: center; padding: 14px 0; font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; background: none; color: inherit; padding: 12px 7px; cursor: pointer;
}
.submenu-toggle.menu-label { padding-left: 0; }
.chevron { width: 14px; height: 14px; transition: transform 180ms ease; }
.submenu-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.submenu {
    position: absolute; top: calc(100% + 8px); right: 0; width: 330px;
    padding: 12px; border: 1px solid var(--color-border); border-radius: 10px;
    background: #fff; box-shadow: 0 16px 40px #173b281a;
    max-height: calc(100dvh - 150px); overflow-y: auto;
}
.submenu .menu-label { white-space: normal; padding: 11px 12px; flex: 1; font-size: 14px; }
.submenu .menu-entry:hover { background: var(--color-green-light); border-radius: 5px; }
.submenu .submenu {
    position: static; width: auto; padding: 0 0 0 12px; margin: 0 8px 8px;
    box-shadow: none; border: 0; border-left: 2px solid var(--color-sage); border-radius: 0; max-height: none;
}
.submenu .submenu .menu-label { font-size: 13px; }
.navigation-toggle, .mobile-utility { display: none; }
@media (min-width: 1200px) {
    .submenu .submenu {
        position: fixed; top: var(--submenu-top, 8px); left: var(--submenu-left, 8px); right: auto;
        width: 330px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px);
        margin: 0; padding: 12px; border: 1px solid var(--color-border); border-radius: 10px;
        box-shadow: 0 16px 40px #173b281a; z-index: 1;
    }
    .submenu .submenu-toggle .chevron { transform: rotate(-90deg); }
    .submenu .submenu-opens-left > .menu-entry > .submenu-toggle .chevron { transform: rotate(90deg); }
    .submenu .menu-item:has(> .submenu:not([hidden]))::after {
        content: ""; position: absolute; top: 0; left: 100%; width: 12px; height: 100%;
    }
    .submenu .menu-item.submenu-opens-left:has(> .submenu:not([hidden]))::after { left: auto; right: 100%; }

    /* Az egér az almenü feletti résen áthaladva is a menüponton marad. */
    .main-navigation > .menu-list > .menu-item:has(> .submenu:not([hidden]))::after,
    .utility-navigation > .menu-list > .menu-item:has(> .submenu:not([hidden]))::after {
        content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 8px;
    }
}

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 16px;
    min-height: 54px; padding: 13px 29px; border: 1px solid var(--color-green); border-radius: 7px;
    font-size: 16px; font-weight: 600; line-height: 1.25;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--color-green); color: #fff; }
.button-primary:hover { background: var(--color-green-dark); color: #fff; }
.button-outline { background: transparent; color: var(--color-green); }
.button-outline:hover { background: var(--color-green-light); color: var(--color-green-dark); }
.button .icon { width: 21px; height: 21px; }
.icon-circle {
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 66px; height: 66px; border-radius: 50%; color: var(--color-green); background: #eaf0e7;
}
.icon-circle .icon { width: 32px; height: 32px; }
.site-footer {
    position: relative; overflow: hidden; padding: 49px 0 29px;
    background: linear-gradient(110deg, #204830, #244c31); color: #fff;
}
.site-footer > .page-container { position: relative; z-index: 1; }
.site-footer a:not(.footer-social-link), .site-footer .footer-menu-label.popup-trigger { transition: color 180ms ease; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.footer-brand { position: relative; display: inline-block; width: 250px; max-width: 100%; padding-top: 8px; }
.footer-brand img { display: block; width: 100%; height: auto; }
.footer-brand-mark { clip-path: inset(0 69% 0 0); }
.footer-brand-wordmark { position: absolute; top: 8px; left: 0; filter: brightness(0) invert(1); clip-path: inset(0 0 0 31%); }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.footer-social-link { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; border: 1px solid #ffffff4d; border-radius: 50%; background: #ffffff0d; transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.footer-social-link .menu-selected-icon { width: 22px; height: 22px; }
.site-footer .footer-social-link[href]:hover { background: #ffffff21; border-color: #ffffffa6; text-decoration: none; }
.footer-column { min-width: 0; padding-left: 28px; border-left: 1px solid #ffffff35; font-size: 13px; }
.footer-column h2 { font-size: 15px; font-weight: 650; margin: 5px 0 17px; color: #fff; }
.footer-menu-list { display: grid; gap: 11px; list-style: none; margin: 0; padding: 0; }
.footer-menu-list .footer-menu-list { margin: 11px 0 0 12px; padding-left: 12px; border-left: 1px solid #ffffff35; }
.footer-menu-label { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.footer-menu-label > span { min-width: 0; overflow-wrap: anywhere; }
.footer-column .menu-selected-icon { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; }
.site-footer a:hover, .site-footer .footer-menu-label.popup-trigger:hover { color: #dce5d7; text-decoration: none; }
.copyright { margin: 46px 0 0; color: #e3eadd; font-size: 12px; }
.footer-leaf { position: absolute; right: 15px; bottom: -32px; width: 180px; height: 250px; fill: #8fa279; stroke: #8fa279; opacity: .1; }

@media (max-width: 1399px) {
    .brand img { width: 242px; }
    .main-navigation > .menu-list { gap: 18px; }
    .menu-label { font-size: 13px; }
    .footer-grid { gap: 20px; }
    .footer-column { padding-left: 20px; }
}
@media (max-width: 1199px) {
    .page-container { width: calc(100% - 64px); }
    .utility-bar { display: none; }
    .header-inner { min-height: 88px; }
    .brand img { width: 240px; }
    .navigation-toggle { display: flex; flex-shrink: 0; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; gap: 13px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-green); background: #fff; }
    .hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
    .hamburger i { display: block; height: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
    .navigation-toggle[aria-expanded="true"] .hamburger i:first-child { transform: translateY(7px) rotate(45deg); }
    .navigation-toggle[aria-expanded="true"] .hamburger i:nth-child(2) { opacity: 0; }
    .navigation-toggle[aria-expanded="true"] .hamburger i:last-child { transform: translateY(-7px) rotate(-45deg); }
    .main-navigation {
        display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 88px);
        overflow-y: auto; background: #fff; padding: 18px 32px 28px; border-bottom: 1px solid var(--color-border); box-shadow: 0 16px 25px #173b2812;
    }
    .main-navigation.is-open { display: block; }
    .main-navigation > .menu-list { display: block; }
    .main-navigation > .menu-list > .menu-item { border-bottom: 1px solid #e8eee5; }
    .menu-label { flex: 1; font-size: 16px; white-space: normal; padding: 15px 0; }
    .submenu-toggle { min-width: 44px; min-height: 44px; }
    .submenu-toggle.menu-label { justify-content: space-between; }
    .submenu { position: static; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--color-sage); border-radius: 0; margin: 0 0 12px 8px; padding: 0 0 0 12px; max-height: none; }
    .mobile-utility { display: grid; gap: 2px; padding-top: 20px; }
    .mobile-menu-heading { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 7px; }
    .mobile-utility a { font-size: 14px; padding: 10px 0; color: var(--color-green); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
    .footer-column { border: none; padding-left: 0; }
}
@media (max-width: 575px) {
    .page-container { width: calc(100% - 40px); }
    .header-inner { min-height: 78px; gap: 15px; }
    .brand img { width: 200px; }
    .navigation-toggle { padding: 10px; }
    .navigation-toggle > span:first-child { display: none; }
    .main-navigation { max-height: calc(100dvh - 78px); padding-inline: 20px; }
    .site-footer { padding-top: 38px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-column h2 { margin-bottom: 12px; }
    .footer-column { font-size: 14px; }
    .copyright { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}


.utility-bar { position: relative; z-index: 40; }
.utility-navigation > .menu-list { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; width: 100%; }
.utility-navigation > .menu-list > .menu-item > .menu-entry { color: #fff; }
.utility-navigation > .menu-list > .menu-item > .menu-entry > .menu-label { font-size: 13px; font-weight: 400; padding-block: 12px; color: #fff; }
.utility-navigation .submenu { color: var(--color-ink); text-align: left; z-index: 41; }
.utility-navigation > .menu-list > .menu-item:first-child > .submenu { left: 0; right: auto; }
.utility-navigation .submenu-toggle { color: inherit; }
.mobile-utility .submenu { margin-top: 0; }
.mobile-utility .menu-label { color: var(--color-green); }
.mobile-utility > .menu-list > .menu-item > .menu-entry > .menu-label { font-size: 14px; }

.popup-trigger {
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.site-popup {
    position: fixed;
    inset: 1rem;
    width: min(760px, calc(100% - 2rem));
    max-width: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    color: var(--ink, #183b26);
    background: #fff;
    border: 1px solid #d7e3d9;
    border-radius: 12px;
    box-shadow: 0 18px 70px rgb(0 0 0 / 25%);
}

.site-popup[open] { display: flex; flex-direction: column; }
.site-popup::backdrop { background: rgb(0 0 0 / 45%); }
.site-popup[data-position~="top"] { margin-top: 0; }
.site-popup[data-position~="bottom"] { margin-bottom: 0; }
.site-popup[data-position~="right"] { margin-right: 0; }
.site-popup[data-position~="left"] { margin-left: 0; }
.site-popup-header { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-shrink: 0; padding: .5rem .5rem .5rem 1.25rem; }
.site-popup-title { min-width: 0; margin: 0 auto 0 0; font-size: 1.25rem; line-height: 1.35; overflow-wrap: anywhere; }
.site-popup-close { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: #eef5f0; color: #234b32; line-height: 1; }
.site-popup-close:focus-visible { outline: 3px solid #234b32; outline-offset: 2px; }
.site-popup-content { min-height: 0; padding: 0 1.25rem 1.25rem; overflow: auto; overscroll-behavior: contain; }
.site-popup-content video { display: block; max-width: 100%; height: auto; }

body.site-popup-open { overflow: hidden; }

.header-inner { position: relative; gap: 20px; }
.header-search { position: relative; flex: 1 1 220px; min-width: 180px; max-width: 260px; }
.header-search-toggle { display: none; }
.header-search-form { position: relative; display: flex; align-items: center; min-height: 46px; border: 1px solid var(--color-border); border-radius: 24px; background: #f6f8f5; transition: border-color 180ms ease, box-shadow 180ms ease; }
.header-search-form:focus-within { border-color: #78967b; box-shadow: 0 0 0 3px #234b3210; background: #fff; }
.header-search-form:has(input:focus-visible) { outline: 3px solid #ad812d; outline-offset: 3px; }
.header-search-icon { position: absolute; left: 14px; width: 19px; height: 19px; color: var(--color-green); pointer-events: none; }
.header-search-form input { width: 100%; min-width: 0; border: 0; outline: none; padding: 12px 38px 12px 41px; border-radius: inherit; background: transparent; color: var(--color-ink); font: inherit; font-size: 13px; }
.header-search-form input::placeholder { color: #677368; opacity: 1; }
.header-search-form input::-webkit-search-cancel-button { display: none; }
.header-search-clear { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-muted); line-height: 1; cursor: pointer; }
.header-search-clear .icon { width: 18px; height: 18px; }
.header-search-clear:hover { background: var(--color-green-light); color: var(--color-green); }
.header-search-results { position: absolute; top: calc(100% + 10px); left: 0; width: max(100%, 360px); padding: 8px; max-height: min(440px, calc(100dvh - 220px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--color-border); border-radius: 13px; background: #fff; box-shadow: 0 18px 45px #173b2826; z-index: 32; }
.header-search-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--color-border); color: var(--color-green); font-size: 14px; font-weight: 600; }
.header-search-all:hover { background: var(--color-green-light); border-radius: 7px; }
.header-search-group-title { margin: 8px 0 2px; padding: 8px 12px; border-radius: 5px; background: var(--color-green-light); color: var(--color-green-dark); font-size: 13px; font-weight: 600; line-height: 1.4; }
.search-result { display: block; min-width: 0; padding: 12px; border-radius: 7px; overflow-wrap: anywhere; }
.search-result:hover { background: var(--color-green-light); }
.search-result-title { display: block; color: var(--color-green-dark); font-size: 14px; font-weight: 600; line-height: 1.4; }
.search-result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; font-size: 12px; color: var(--color-muted); }
.header-search-empty { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--color-muted); }
.main-navigation { flex: 0 0 auto; }
@media (max-width: 1399px) {
    .header-search { position: static; flex: 0 0 44px; min-width: 0; max-width: none; }
    .header-search-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: 50%; background: #f6f8f5; color: var(--color-green); cursor: pointer; }
    .header-search-toggle[aria-expanded="true"] { background: var(--color-green-light); border-color: #78967b; }
    .header-search-form { display: none; position: absolute; left: 0; right: 0; bottom: 16px; }
    .header-search.is-open .header-search-form { display: flex; }
    .header-inner:has(.header-search.is-open) { padding-top: 16px; padding-bottom: 76px; }
    .header-search-form input { font-size: 16px; }
    .header-search-results { width: 100%; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-search { margin-right: auto; }
}
@media (max-width: 1199px) {
    .header-inner { gap: 12px; }
    .brand { flex: 0 1 240px; min-width: 0; margin-right: auto; }
    .brand img { max-width: 100%; }
    .main-navigation { flex: none; }
}
