/* Alapok: a jóváhagyott világos felületek, grafitszürke nyitókép és MUINFO-zöld. */
:root {
    color-scheme: light;
    --paper: #fbfcfa;
    --ink: #202a30;
    --muted: #4d575c;
    --dark: #1b2226;
    --green: #437608;
    --green-text: #325e08;
    --green-start: #4b7f0a;
    --green-end: #2e5804;
    --green-soft: #edf3e5;
    --button-green-start: #a8ef00;
    --button-green-mid: #90d900;
    --button-green-end: #83d000;
    --button-ink: #18250e;
    --line: #dde2df;
    font-family: "Source Sans 3", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: weight;
}

* {
    box-sizing: border-box;
}

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

/* Statikus, ismétlődő textúra a világos felületeken; nem igényel animációt. */
body {
    background-color: var(--paper);
    background-image: url('img/surface-texture.svg');
    background-size: 384px 384px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button {
    cursor: pointer;
}

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

h1,
h2,
h3 {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3.2vw, 40px);
}

h3 {
    margin: 0 0 12px;
    font-size: 25px;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 5px;
}

.container {
    width: min(100% - 96px, 1248px);
    margin-inline: auto;
}

.section {
    padding-block: 72px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--green-text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 20;
    padding: 12px 20px;
    background: white;
}

.skip-link:focus {
    top: 12px;
}

/* Fejléc és nyelvválasztó: minden hivatkozás valódi főoldali szakaszhoz vezet. */
/* Világos arculati háttér, finom zöld és hűvös szürke átmenettel. */
.site-header {
    background-color: #fdfdfc;
    background-image:
        url('img/surface-texture.svg'),
        linear-gradient(110deg, #fdfdfc 8%, #f0f7e4 39%, #fafcf7 67%, #edf3f5 100%);
    background-size: 384px 384px, auto;
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 92px;
}

.brand {
    flex: 0 0 auto;
}

/* Vektoros logó: tiszta élek, átlátszó háttér, színkeverési szűrő nélkül. */
.brand img {
    display: block;
    width: 90px;
    height: auto;
}

/* Rövid bemutatkozás tölti ki a logó és a navigáció közötti helyet. */
.header-intro {
    flex: 0 1 290px;
    min-width: 0;
    font-size: 16px;
    line-height: 1.45;
}

.header-intro strong,
.header-intro span {
    display: block;
}

.header-intro strong {
    color: var(--ink);
    font-weight: 700;
}

.header-intro span {
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 700px) {
    .header-intro {
        display: none;
    }
}
.main-navigation {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    margin-left: auto;
}

.main-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 700;
}

.main-navigation a:hover,
.site-footer a:hover {
    color: var(--green-text);
}

.main-navigation .partner-link {
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--ink);
    border-radius: 8px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
    text-decoration: none;
    color: var(--muted);
}

.language-switch a[aria-current="true"] {
    color: var(--green-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.menu-toggle {
    color: inherit;
    display: none;
}

/* Nyitóblokk: az eredeti térbeli embléma és a nagyméretű tipográfia dominál. */
.hero {
    background: var(--dark);
    color: var(--paper);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1440px;
    margin-inline: auto;
    min-height: 590px;
}

.hero-copy {
    padding: 70px 16px 70px max(48px, calc((100vw - 1248px) / 2));
    align-self: center;
    position: relative;
    z-index: 1;
}

.hero-author {
    color: #d5dcde;
    font-size: 16px;
    margin-bottom: 24px;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 5.25vw, 76px);
    line-height: 1.06;
    font-weight: 800;
    max-width: 620px;
}

.hero-description {
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.5;
    color: #e6eaeb;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 52px;
    padding: 12px 24px;
    border: 0;
    border-radius: 9px;
    background: var(--button-green-start);
    color: var(--button-ink);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
    transition: background-color 180ms, transform 180ms;
}

.button:hover {
    background: var(--button-green-mid);
    transform: translateY(-2px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--green-text);
    font-weight: 700;
    text-underline-offset: 5px;
}

.text-link-light {
    color: var(--paper);
}

.hero-art {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dark), transparent 22%);
    pointer-events: none;
}

/* Szolgáltatások: nyitott oszlopok, mobilon egymás alatti képes sorok. */
.section-intro {
    max-width: 790px;
    color: var(--muted);
    font-size: 19px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    margin-top: 38px;
}

.service-image {
    width: 200px;
    height: 150px;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: multiply;
    margin-bottom: 24px;
}

.service p {
    color: var(--muted);
    min-height: 54px;
    margin-bottom: 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 72px;
}

.tool-panel {
    padding: 30px 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.tool-panel h2 {
    font-size: 25px;
    margin-bottom: 12px;
}

.tool-panel > p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 18px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    font-size: 14px;
    color: var(--muted);
}

.availability span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

/* Bemutatkozás és kapcsolat: rövid, külön célt szolgáló záró szakaszok. */
.about-section {
    background-color: #eef1eb;
    background-image: url('img/surface-texture.svg');
    background-size: 384px 384px;
    border-block: 1px solid var(--line);
}

.about-grid,
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.about-role {
    max-width: 420px;
    color: var(--ink);
    font-weight: 600;
}

.about-specialties {
    max-width: 390px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
}

/* A saját fénykép helye a név fölött; a keret csak tényleges kép esetén jelenik meg. */
.about-portrait {
    width: min(100%, 200px);
    aspect-ratio: 4 / 5;
    margin: 0 0 24px;
    overflow: hidden;
    border: 1px solid #c6d4b9;
    border-radius: 16px;
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-copy {
    color: var(--muted);
}

.about-copy p + p {
    margin-top: 18px;
}

.contact-section {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.contact-section h2 {
    max-width: 780px;
}

.contact-section > div > p:not(.eyebrow) {
    max-width: 690px;
    color: var(--muted);
}

.contact-actions {
    text-align: center;
}

.contact-address {
    margin-top: 14px;
    font-size: 14px;
}

.site-footer {
    background: var(--dark);
    color: #c9d1d4;
    padding-block: 34px;
    font-size: 14px;
}

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

.site-footer strong {
    color: white;
    font-size: 20px;
    letter-spacing: 0.06em;
}

.site-footer small {
    display: block;
    margin-top: 8px;
}

.site-footer nav {
    display: flex;
    gap: 24px;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-underline-offset: 5px;
}

.site-footer a:hover {
    color: #a1be7e;
}

/* Levélíró ablak: a felület a főoldal világos színeit követi. */
.contact-dialog {
    width: min(600px, calc(100% - 32px));
    max-height: calc(100svh - 32px);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    background: var(--paper);
    overflow-y: auto;
    box-shadow: 0 30px 100px #0005;
}

.contact-dialog::backdrop {
    background: #10171bba;
    backdrop-filter: blur(5px);
}

body:has(.contact-dialog[open]) {
    overflow: hidden;
}

.contact-dialog h2 {
    margin-bottom: 12px;
    padding-right: 24px;
}

.contact-dialog > p:not(.eyebrow) {
    color: var(--muted);
}

.contact-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    font-size: 25px;
}

.contact-dialog label {
    display: block;
    margin: 18px 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.contact-dialog input,
.contact-dialog textarea,
.contact-dialog select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #aeb8b0;
    border-radius: 7px;
    background: white;
    color: var(--ink);
    font-size: 16px;
}

.contact-dialog textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-note {
    margin-block: 18px;
    font-size: 12px;
    color: var(--muted);
}

.form-submit {
    width: 100%;
}

.contact-dialog button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-status {
    color: var(--green-text);
    margin-top: 16px;
}

.form-status:empty {
    display: none;
}

.contact-honey {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* A fejléc közepes szélességtől lenyitható, de a nyelvváltó mindig látható. */
@media (min-width: 1440px) {
    .hero-copy {
        padding-left: 96px;
    }
}

@media (max-width: 1120px) {
    .container {
        width: calc(100% - 48px);
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding-block: 10px;
    }

    .header-language {
        margin-left: auto;
    }

    .js-enabled .menu-toggle {
        display: inline-flex;
        gap: 10px;
        align-items: center;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: transparent;
        order: 2;
    }

    .main-navigation {
        width: 100%;
        order: 3;
        flex-wrap: wrap;
        margin: 0;
        padding-block: 10px;
    }

    .js-enabled .main-navigation:not(.is-open) {
        display: none;
    }

    .hero-copy {
        padding: 50px 20px 50px 24px;
    }

    .hero-inner {
        min-height: 540px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .service-grid {
        gap: 24px;
    }

    .footer-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    .container {
        width: calc(100% - 40px);
    }

    .section {
        padding-block: 42px;
    }

    .header-inner {
        min-height: 76px;
    }

    .brand img {
        width: 74px;
    }

    .language-switch {
        gap: 10px;
    }

    .main-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-navigation a {
        font-size: 16px;
        padding: 8px 0;
    }

    .main-navigation .partner-link {
        padding: 8px 14px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-copy {
        padding: 34px 20px 20px;
    }

    .hero-author {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 44px);
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-actions {
        margin-top: 24px;
        gap: 8px;
    }

    .hero-actions > a {
        width: 100%;
        justify-content: center;
    }

    .hero-art {
        height: 240px;
    }

    .hero-art img {
        object-position: center 55%;
    }

    .hero-art::after {
        background: linear-gradient(180deg, var(--dark), transparent 20%);
    }

    .section-intro {
        font-size: 16px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 20px;
    }

    .service {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        align-items: center;
        gap: 18px;
        padding-block: 24px;
        border-bottom: 1px solid var(--line);
    }

    .service-image {
        width: 100px;
        height: auto;
        margin: 0;
    }

    .service h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .service p {
        min-height: 0;
        font-size: 15px;
        margin-bottom: 4px;
    }

    .text-link {
        font-size: 15px;
    }

    .tools-grid,
    .about-grid,
    .contact-section,
    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tools-grid {
        padding-bottom: 42px;
    }

    .tool-panel {
        padding: 24px;
    }

    .tool-panel h2 {
        font-size: 23px;
    }

    .contact-actions .button {
        width: 100%;
    }

    .footer-inner,
    .site-footer nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .footer-inner {
        gap: 22px;
    }

    .contact-dialog {
        padding: 26px 20px;
    }

    .form-row {
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
