:root {
    --bg: #eef2f5;
    --ink: #1b2836;
    --muted: #5c6d7e;
    --line: #d3dde6;
    --accent: #2a5270;
    --blue: #397aa6;
    --blue-soft: #dceaf4;
    --white: #ffffff;
    --warn: #8d3d3d;
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

h1, h2, h3, .name {
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 .7rem; }
h2 { font-size: 1.35rem; margin: 0 0 .45rem; }
h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
h1:focus { outline: none; }

p { margin: 0 0 .9rem; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: white;
    padding: .45rem .7rem;
    z-index: 40;
    text-decoration: none;
}

.skip:focus { top: .5rem; }

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site > main { flex: 1; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
    padding: .4rem clamp(1rem, 3vw, 2rem);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.site-header > a:last-child { margin-left: auto; text-decoration: none; }

.nav {
    display: flex;
    align-items: center;
    gap: .2rem 1.25rem;
    margin-left: auto;
}

.nav a, .text-button {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.nav a.active { color: var(--ink); }

.who { color: var(--muted); font-size: .92rem; }
.site-header form { margin: 0; }

.menu-button {
    display: none;
    margin-left: auto;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: .35rem .65rem;
    font: inherit;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: .65rem 1rem;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.button:hover { background: #1e3f58; border-color: #1e3f58; color: white; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { background: var(--white); color: var(--ink); }
.button.small { padding: .35rem .65rem; font-size: .92rem; }
.button.light { background: var(--white); color: var(--accent); border-color: var(--white); }
.button:disabled { opacity: .55; cursor: not-allowed; }

.page {
    width: min(920px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3.2rem 0 4rem;
}

.kicker {
    margin: 0 0 .6rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lede { max-width: 38rem; color: var(--muted); font-size: 1.08rem; }

.feature-sheet.home-feature { width: 100%; margin: 0; }
.home-content h1 { max-width: 16ch; }

.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.pair article, .quiet, .profile {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.15rem 1.2rem 1.2rem;
}

.pair article { border-top: 3px solid var(--blue); }

.pair p:last-child, .quiet li p, .profile p:last-child { margin: 0; }

.quiet { margin-top: 1rem; }
.quiet h2 { margin-bottom: .8rem; }
.quiet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.quiet li {
    position: relative;
    padding-left: 1rem;
}
.quiet li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .52rem;
    width: .38rem;
    height: .38rem;
    background: var(--blue);
}
.quiet li strong { display: block; font-weight: 600; }
.quiet li span { color: var(--muted); }

.profile { margin-top: 1rem; }
.profile .role { margin: 0; color: var(--muted); }

.site-footer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 2rem) 1.3rem;
    border-top: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
    font-size: .9rem;
}

.site-footer img { height: 32px; width: auto; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: .12rem; }
.site-footer .tax { color: var(--ink); font-weight: 600; }

.sheet {
    width: min(880px, calc(100% - 2rem));
    margin: 2rem auto 3rem;
}

.sheet.narrow { width: min(460px, calc(100% - 2rem)); }
.feature-sheet {
    width: min(920px, calc(100% - 2rem));
    height: 20rem;
    box-sizing: border-box;
    margin: 3.2rem auto 4rem;
    display: grid;
    grid-template-columns: 56% 44%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
}
.feature-content {
    align-self: center;
    padding: 2.4rem;
}
.tech-graphic {
    position: relative;
    isolation: isolate;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background-color: var(--blue-soft);
    background-image:
        linear-gradient(rgba(42, 82, 112, .13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 82, 112, .13) 1px, transparent 1px);
    background-size: 28px 28px;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.tech-graphic::before {
    content: "";
    position: absolute;
    left: 62%;
    top: 50%;
    width: 10rem;
    aspect-ratio: 1;
    border: 1.4rem solid rgba(42, 82, 112, .26);
    border-radius: 50%;
    box-shadow:
        0 0 0 1px var(--blue),
        0 0 0 2.5rem rgba(57, 122, 166, .12);
    transform: translate(-50%, -50%);
}
.tech-graphic::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(145deg, transparent 0 57%, rgba(255, 255, 255, .42) 57%);
}
.sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: .8rem;
}

.back {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--muted);
    text-decoration: none;
}

.meta-line { color: var(--muted); font-size: .92rem; }

.field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .9rem;
}

.field > span, .people th {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input, .field textarea, .field select, .people select {
    font: inherit;
    color: inherit;
    background: var(--white);
    border: 1px solid var(--line);
    padding: .65rem .75rem;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus, .field textarea:focus, .field select:focus, .people select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.check { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.hint { color: var(--muted); font-size: .9rem; }

.note {
    border-left: 3px solid var(--accent);
    background: white;
    padding: .7rem .9rem;
    margin: 0 0 1rem;
}

.note.warn { border-color: var(--warn); color: var(--warn); }

.validation-errors, .validation-message { color: var(--warn); }
.validation-errors { list-style: none; padding: 0; margin: 0 0 .8rem; }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 1rem; }
.filters button {
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    font: inherit;
    padding: .32rem .65rem;
    cursor: pointer;
}
.filters button.on { background: var(--ink); color: white; border-color: var(--ink); }

.ticket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ticket-list a {
    display: block;
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--white);
    padding: .85rem .95rem;
}
.ticket-list a:hover { border-color: var(--accent); }
.ticket-top { display: flex; justify-content: space-between; gap: .6rem; margin-bottom: .25rem; }
.ticket-list strong { display: block; font-weight: 600; }
.ticket-list p { margin: .2rem 0 0; color: var(--muted); }
.id { color: var(--muted); }

.pill {
    display: inline-flex;
    padding: .1rem .45rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}
.pill.wait { color: var(--warn); }
.pill.reply { color: var(--accent); }
.pill.done { color: var(--muted); }

.bubble {
    border: 1px solid var(--line);
    background: var(--white);
    padding: .9rem 1rem;
    margin: .7rem 0;
    max-width: 42rem;
}
.bubble .meta {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.bubble p:last-child { margin: 0; white-space: pre-wrap; }
.bubble.staff { margin-left: 1.5rem; background: #e7eef4; border-color: #c5d4e2; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }

.panel {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 1rem 1.1rem 1.15rem;
    margin: 1rem 0 1.4rem;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.table-wrap { overflow-x: auto; }
.people { width: 100%; border-collapse: collapse; }
.people th, .people td {
    text-align: left;
    padding: .7rem .4rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.people select { min-width: 9rem; }
.project-picks { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.project-picks .check { margin: 0; }
.project-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.project-list li { border: 1px solid var(--line); background: var(--bg); padding: .2rem .55rem; }

.login-screen {
    width: min(460px, calc(100% - 2rem));
    margin: 3rem auto 4rem;
}

.contact .legal { color: var(--muted); }
.facts { margin: 1.4rem 0 0; }
.facts div { border-top: 1px solid var(--line); padding: .85rem 0; }
.facts dt {
    margin-bottom: .2rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.facts dd { margin: 0; font-size: 1.15rem; font-weight: 500; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.facts .tax { font-weight: 600; }

.feature-sheet .contact { padding-block: .75rem; }
.feature-sheet .contact h1 { font-size: 2rem; }
.feature-sheet .contact .legal { margin-bottom: .4rem; }
.feature-sheet .contact .facts { margin-top: .5rem; }
.feature-sheet .contact .facts div { padding: .3rem 0; }
.feature-sheet .contact .facts dd { font-size: 1rem; }

.access-content { padding-block: .75rem; }
.access-content .kicker { margin-bottom: .25rem; }
.access-content h1 { font-size: 2rem; margin-bottom: .25rem; }
.access-content > p:not(.kicker):not(.note) { margin-bottom: .4rem; }
.access-content .field { gap: .1rem; margin-bottom: .35rem; }
.access-content .field input { padding: .4rem .65rem; }
.access-content .button { padding: .5rem .9rem; }
.access-content .note { padding: .4rem .65rem; margin-bottom: .35rem; font-size: .9rem; }

#szolgaltatasok, #rolunk, #hibajegy { scroll-margin-top: 4.5rem; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .menu-button { display: inline-flex; }
    .feature-sheet { height: auto; grid-template-columns: 1fr; }
    .feature-content { padding: 1.4rem; }
    .tech-graphic {
        height: 12rem;
        min-height: 12rem;
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    }
    .tech-graphic::before { left: 55%; width: 7rem; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: .8rem 1rem 1rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        z-index: 30;
    }
    .nav.open { display: flex; }
    .pair, .split, .sheet-head { grid-template-columns: 1fr; }
    .sheet-head { flex-direction: column; align-items: flex-start; }
    .bubble.staff { margin-left: 0; }
}

#blazor-error-ui {
    background: #fff4e8;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}
