:root {
    --ink: #163432;
    --ink-soft: #506563;
    --brand: #1f5f5b;
    --brand-dark: #174b48;
    --brand-soft: #e9f3f1;
    --sand: #f5f0e7;
    --paper: #fffdf9;
    --line: #d9e1df;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(28, 61, 58, 0.10);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--brand);
}

.site-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 249, 0.96);
    border-bottom: 1px solid rgba(217, 225, 223, 0.9);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-logo {
    width: 48px;
    height: 48px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: var(--brand);
    font-size: 14px;
    letter-spacing: 0.06em;
}

.brand-text {
    font-size: 20px;
}

.menu,
.menu-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu > li {
    position: relative;
}

.menu a,
.menu-dropdown-toggle {
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 10px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.menu a:hover,
.menu-dropdown-toggle:hover,
.menu > li.active > a,
.menu > li.active > .menu-dropdown-toggle {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.menu-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.16s ease;
}

.menu-item-dropdown:hover > .menu-submenu,
.menu-item-dropdown:focus-within > .menu-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-submenu a {
    width: 100%;
    justify-content: flex-start;
}

.hero {
    padding: 86px 0 74px;
    background:
        radial-gradient(circle at 85% 15%, rgba(31, 95, 91, 0.18), transparent 32%),
        linear-gradient(135deg, #fffdf9 0%, #edf5f3 100%);
}

.hero-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 44px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.2;
}

.hero-lead,
.section-heading > p:last-child,
.split-grid > div > p:last-child {
    max-width: 760px;
    color: var(--ink-soft);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 750;
    text-decoration: none;
}

.button-primary {
    color: var(--white);
    background: var(--brand);
}

.button-secondary {
    color: var(--brand-dark);
    background: var(--white);
    border: 1px solid var(--line);
}

.hero-note,
.search-slot,
.contact-placeholder {
    padding: 28px;
    border: 1px solid rgba(31, 95, 91, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.hero-note strong {
    font-size: 21px;
}

.hero-note p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.section {
    padding: 78px 0;
}

.section-muted {
    background: #f7f8f6;
}

.section-accent {
    background: var(--brand);
    color: var(--white);
}

.section-accent .eyebrow,
.section-accent .split-grid > div > p:last-child {
    color: #cfe4df;
}

.section-heading {
    max-width: 830px;
    margin-bottom: 34px;
}

.search-slot {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    border-style: dashed;
    background: var(--white);
}

.search-slot strong,
.search-slot span {
    display: block;
}

.search-slot strong {
    margin-bottom: 8px;
    font-size: 24px;
}

.search-slot span {
    color: var(--ink-soft);
}

.card-grid {
    display: grid;
    gap: 20px;
}

.card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.tool-card,
.knowledge-card {
    min-height: 100%;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 28px rgba(35, 65, 62, 0.05);
}

.guide-card p,
.tool-card p,
.knowledge-card p {
    color: var(--ink-soft);
}

.guide-card a,
.knowledge-card a {
    font-weight: 750;
    text-decoration: none;
}

.card-number {
    display: block;
    margin-bottom: 26px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.status-pill,
.scope {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 750;
}

.scope {
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.check-list {
    display: grid;
    gap: 12px;
}

.check-list span {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.link-list a {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    text-decoration: none;
}

.link-list strong,
.link-list span {
    display: block;
}

.link-list span {
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 14px;
}

.section-contact {
    background: var(--sand);
}

.contact-placeholder {
    display: grid;
    place-items: center;
    min-height: 150px;
    box-shadow: none;
}

.site-footer {
    padding: 34px 0;
    color: #dbe7e4;
    background: #153d3a;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
}

.footer-inner p {
    max-width: 700px;
    margin: 8px 0 0;
    color: #bcd0cc;
    font-size: 14px;
}

.footer-copy {
    white-space: nowrap;
    color: #bcd0cc;
    font-size: 14px;
}

@media (max-width: 1020px) {
    .header-inner {
        align-items: flex-start;
        padding: 16px 0;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
    }

    .menu {
        width: max-content;
    }

    .hero-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .card-grid-four,
    .card-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .site-shell {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        padding: 58px 0 50px;
    }

    .section {
        padding: 58px 0;
    }

    .card-grid-four,
    .card-grid-three,
    .link-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-copy {
        white-space: normal;
    }
}

/* -------------------------------------------------------------------------
 * Útmutató-oldalak – közös, újrahasznosítható tartalmi elemek
 * ---------------------------------------------------------------------- */

.guide-hero {
    padding: 72px 0 62px;
    background:
        radial-gradient(circle at 90% 8%, rgba(31, 95, 91, 0.16), transparent 30%),
        linear-gradient(135deg, #fffdf9 0%, #eef6f4 100%);
    border-bottom: 1px solid var(--line);
}

.guide-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 48px;
    align-items: center;
}

.guide-hero h1 {
    max-width: 820px;
    font-size: clamp(40px, 5.5vw, 66px);
}

.scope-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.scope-tags span {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(31, 95, 91, 0.22);
    border-radius: 999px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.scope-panel {
    padding: 28px;
    border: 1px solid rgba(31, 95, 91, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.scope-panel strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

.scope-panel p {
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.scope-panel .scope-note {
    margin-bottom: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.guide-section-top {
    padding-top: 58px;
}

.guide-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
}

.guide-sidebar {
    position: relative;
}

.guide-toc {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 3px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(35, 65, 62, 0.05);
}

.guide-toc strong {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
}

.guide-toc a {
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.guide-toc a:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.guide-content {
    min-width: 0;
}

.article-section {
    padding: 8px 0 64px;
    margin-bottom: 58px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 105px;
}

.article-section-last {
    border-bottom: 0;
}

.article-section > p:not(.step-kicker) {
    max-width: 820px;
    color: var(--ink-soft);
    font-size: 17px;
}

.article-section h2 {
    max-width: 880px;
}

.step-kicker {
    margin-bottom: 9px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.article-grid {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.article-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.compare-card,
.term-card,
.callout {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.info-card h3,
.compare-card h3 {
    font-size: 19px;
}

.guide-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--ink-soft);
}

.guide-list li + li {
    margin-top: 7px;
}

.callout {
    margin-top: 22px;
    background: #f7faf9;
}

.callout strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 18px;
}

.callout p {
    margin: 0;
    color: var(--ink-soft);
}

.callout-important {
    border-color: rgba(31, 95, 91, 0.28);
    background: var(--brand-soft);
}

.callout-warning {
    border-color: #e3cba7;
    background: #fbf5e9;
}

.callout-neutral {
    margin-top: 0;
    background: #f7f8f6;
}

.term-card {
    display: grid;
    gap: 16px;
    background: var(--brand);
    color: var(--white);
}

.term-card > div + div {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.term-card strong,
.term-card span {
    display: block;
}

.term-card strong {
    font-size: 28px;
    line-height: 1;
}

.term-card span {
    margin-top: 5px;
    color: #d3e6e2;
    font-size: 13px;
    font-weight: 750;
}

.term-card p {
    margin: 9px 0 0;
    color: #eef7f5;
    font-size: 14px;
}

.source-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
}

.source-inline:hover {
    border-color: rgba(31, 95, 91, 0.5);
}

.source-inline span {
    color: var(--brand);
    font-weight: 750;
}

.source-inline-compact {
    flex: 1 1 300px;
    margin-top: 0;
}

.source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.compare-card {
    background: #f7f8f6;
}

.compare-card-strong {
    border-color: rgba(31, 95, 91, 0.28);
    background: var(--brand-soft);
}

.compare-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.feature-quote {
    margin: 26px 0;
    padding: 30px;
    border-radius: 18px;
    color: var(--white);
    background: var(--brand);
}

.feature-quote span,
.feature-quote strong {
    display: block;
}

.feature-quote span {
    margin-bottom: 8px;
    color: #cfe4df;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.feature-quote strong {
    max-width: 800px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
}

.feature-quote p {
    max-width: 780px;
    margin: 14px 0 0;
    color: #e6f2ef;
}

.document-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.document-checklist > div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.document-checklist > div > span {
    display: block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.document-checklist strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.document-checklist p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.handover-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.handover-list span {
    position: relative;
    padding: 14px 16px 14px 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink-soft);
}

.handover-list span::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 13px;
    color: var(--brand);
    font-weight: 900;
}

.official-source-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.official-source-list a {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
}

.official-source-list a:hover {
    border-color: rgba(31, 95, 91, 0.5);
}

.official-source-list strong,
.official-source-list span {
    display: block;
}

.official-source-list strong {
    margin: 5px 0 7px;
}

.official-source-list span:not(.official-source-org) {
    color: var(--ink-soft);
    font-size: 13px;
}

.official-source-org {
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.guide-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 8px;
    padding: 34px;
    border-radius: var(--radius);
    color: var(--white);
    background: #153d3a;
}

.guide-cta .eyebrow {
    color: #bcd7d2;
}

.guide-cta h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 3.5vw, 40px);
}

.guide-cta p:last-child {
    max-width: 720px;
    margin-bottom: 0;
    color: #cce0dc;
}

.guide-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.guide-cta .button-secondary {
    border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1020px) {
    .guide-hero-grid,
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-sidebar {
        display: none;
    }

    .guide-cta {
        grid-template-columns: 1fr;
    }

    .guide-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .guide-hero {
        padding: 50px 0 44px;
    }

    .article-grid-two,
    .compare-grid,
    .document-checklist,
    .handover-list,
    .official-source-list {
        grid-template-columns: 1fr;
    }

    .article-section {
        padding-bottom: 48px;
        margin-bottom: 42px;
    }

    .feature-quote,
    .guide-cta {
        padding: 24px;
    }

    .source-inline {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* -------------------------------------------------------------------------
 * Finanszírozás – speciális, de az útmutató-oldalakkal közös arculat
 * ---------------------------------------------------------------------- */

.finance-metric-grid,
.finance-rule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.finance-metric-card,
.finance-rule-grid > article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.finance-metric-card > span {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.finance-metric-card strong,
.finance-rule-grid strong {
    display: block;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 22px;
}

.finance-metric-card p,
.finance-rule-grid p {
    margin: 0;
    color: var(--ink-soft);
}

.finance-metric-card-strong {
    border-color: rgba(31, 95, 91, 0.35);
    background: var(--brand-soft);
}

.finance-rule-grid > article {
    background: #f7f8f6;
}

.finance-rule-grid strong {
    margin-top: 10px;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1.05;
}

.finance-rule-label {
    display: block;
    min-height: 34px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.finance-term-card {
    min-height: 100%;
}

.finance-process {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.finance-process li {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.finance-process strong {
    color: var(--ink);
}

.finance-process span {
    color: var(--ink-soft);
    font-size: 14px;
}

.guide-inline-action {
    margin-top: 18px;
}

.section-accent .hero-actions .button-secondary {
    border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
    .finance-metric-grid,
    .finance-rule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .finance-process {
        grid-template-columns: 1fr;
    }
}
