:root {
    --bg: #f4f7fb;
    --paper: #fff;
    --ink: #10243a;
    --muted: #64778b;
    --line: #dce5ef;
    --navy: #071727;
    --blue: #2588f5;
    --cyan: #51d6e8;
    --green: #1767d4;
    --green-2: #2588f5;
    --sand: #eaf4ff;
    --warn: #8a3b24;
    --shadow: 0 18px 50px rgba(11, 36, 61, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: #fff;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

a { color: var(--green-2); }

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

h1 { font-size: clamp(2.3rem, 4vw, 3.2rem); margin: 0.15em 0 0.35em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.45em; }
h3 { font-size: 1.15rem; margin: 0.15em 0 0.35em; }

p { margin: 0 0 0.8em; }

.bar {
    width: min(1180px, calc(100% - 2.75rem));
    margin-inline: auto;
}

main { flex: 1; }
main.page { width: min(1180px, calc(100% - 2.75rem)); margin: 2.2rem auto 3rem; }
main.is-home { width: 100%; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 23, 39, 0.94);
    color: #fff;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.6rem;
    gap: 1.2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.brand-name { display: block; line-height: 1.1; letter-spacing: 0.02em; }
.brand-tag { display: block; color: #a7bdd0; font-size: 11px; font-weight: 500; margin-top: 2px; letter-spacing: 0.04em; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-btn, .menu-btn {
    border: 1px solid #3a5065;
    color: #fff;
    background: transparent;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.menu-btn { display: none; }
.nav-actions .btn {
    color: #fff;
    background: linear-gradient(135deg, #2588f5, #1767d4);
    border-radius: 12px;
    padding: 0.72rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px #2588f533;
}

.brand-logo {
    display: block;
    height: 52px;
    width: auto;
}

.foot .brand-logo { height: 40px; }

.nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav a, .nav button {
    color: #d3deea;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
}

.nav a:hover, .nav button:hover { color: #fff; }
.nav a.is-on { color: #fff; box-shadow: inset 0 -1px 0 currentColor; }

.nav .btn, .hero-actions .btn, .block a {
    text-decoration: none;
}

.nav .btn, .hero-actions .btn {
    color: #fff;
    background: linear-gradient(135deg, #2588f5, #1767d4);
    border-radius: 12px;
    padding: 0.72rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 24px #2588f533;
}

.nav .btn:hover, .hero-actions .btn:hover { color: #fff; }

.btn-line {
    background: transparent !important;
    border: 1px solid #526b81;
    box-shadow: none !important;
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    padding: 4.6rem 0 5rem;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 18%, #1a5b87 0, transparent 32%),
        radial-gradient(circle at 6% 92%, #123c63 0, transparent 34%);
    opacity: 0.55;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 3.2rem;
}

.hero .eyebrow { color: var(--cyan); }

.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 4.6vw, 3.8rem);
    letter-spacing: -0.055em;
    line-height: 1.05;
    margin: 0 0 1rem;
}

.hero h1 span { color: #4ba5ff; }

.hero-copy {
    max-width: 34rem;
    color: #c5d3e0;
    font-size: 1.02rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    margin-top: 1.7rem;
    color: #c2d3e2;
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-points span { display: flex; align-items: center; gap: 0.5rem; }

.hero-points i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 5px #51d6e81c;
}

.dashboard-wrap { padding: 0.6rem 0 0.4rem 0.6rem; }

.dashboard {
    overflow: hidden;
    border: 1px solid #4d667d;
    border-radius: 18px;
    background: #f7faff;
    color: #172b40;
    box-shadow: 0 30px 70px #0006;
    transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
}

.dash-top {
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: #fff;
    border-bottom: 1px solid #e1e8f0;
    font-size: 0.82rem;
}

.dash-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; }

.mini-mark {
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 0.4rem;
    background: var(--blue);
    color: #fff;
    font-size: 0.72rem;
}

.dash-user { color: #75879a; }

.dash-body {
    display: grid;
    grid-template-columns: 132px 1fr;
    min-height: 22rem;
}

.dash-side {
    background: #0d2238;
    color: #a9bfd3;
    padding: 0.9rem 0.55rem;
    font-size: 0.78rem;
}

.side-item { padding: 0.5rem 0.6rem; margin-bottom: 0.25rem; border-radius: 7px; }
.side-item.is-on { background: #1d4770; color: #fff; }

.dash-main { padding: 1.05rem 1.1rem 1.2rem; }

.dash-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.dash-heading strong { font-size: 0.98rem; }

.period {
    background: #edf3fa;
    border-radius: 7px;
    padding: 0.28rem 0.5rem;
    font-size: 0.75rem;
    color: #62758a;
}

.day {
    list-style: none;
    margin: 0;
    padding: 0;
}

.day li {
    display: grid;
    grid-template-columns: 3.1rem 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.62rem 0;
    border-top: 1px solid #e6eef6;
    font-size: 0.92rem;
}

.day time {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
}

.day b { display: block; font-weight: 600; }
.day small { color: var(--muted); font-size: 0.86rem; }

.day em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-2);
    background: var(--sand);
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
}

.works {
    background: var(--bg);
    padding: 4.4rem 0 4.8rem;
}

.works .section-head {
    margin-bottom: 0.85rem;
}

.works h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}

.blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.block {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.block { padding-bottom: 1.05rem; }
.block .tag, .block h3, .block p, .block a { margin-left: 1.15rem; margin-right: 1.15rem; }
.block .tag { margin-top: 1rem; }

.mini { background: #eef4fa; padding: 0.85rem 0.85rem 0; }
.mini-bar {
    height: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0 0.45rem;
    background: #f9fbfd;
    border: 1px solid #dce5ef;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}
.mini-bar i { width: 0.32rem; height: 0.32rem; border-radius: 50%; background: #c6d3df; }
.mini-body {
    display: grid;
    grid-template-columns: 28px 1fr;
    min-height: 4.6rem;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 0 0 8px 8px;
}
.mini-body:before { content: ""; background: #102a43; }
.mini-body span { display: none; }

.block h3 {
    margin: 0.15em 0 0.35em;
    font-size: 1.45rem;
}

.block p:last-child {
    margin-bottom: 0;
}

.block p:not(.tag) {
    color: var(--muted);
    font-size: 0.98rem;
}

.block a {
    margin-top: auto;
    padding-top: 0.85rem;
    color: var(--green);
    font-size: 0.92rem;
    text-decoration: none;
}

.block a:hover {
    color: var(--green-2);
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.intro {
    max-width: 40rem;
    padding: 1.2rem 0 0.4rem;
}

.intro h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); }

.team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 2rem;
}

.team:has(> :only-child) {
    grid-template-columns: minmax(280px, 42rem);
}

.person {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
}

.person-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 0 0 16px;
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.person-role {
    margin: 0;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.person h2 { margin: 0.2rem 0 0.6rem; font-size: 1.6rem; }

.person p:last-child { margin: 0; color: var(--muted); }

.card h2, .card h3 {
    font-size: 1.45rem;
    margin: 0.2em 0 0.4em;
}

.project-group {
    margin: 2rem 0 0.8rem;
    font-size: 1.15rem;
}

.eyebrow {
    margin: 0;
    color: var(--green-2);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead {
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.18rem;
}

.hero-actions, .filters {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2588f5, #1767d4);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button:hover { background: var(--green-2); }

.button.ghost {
    background: transparent;
    color: var(--warn);
    border: 1px solid #e4cfc6;
}

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

.about, .contact, #projektek, .panel {
    margin: 1.5rem 0 2.5rem;
}

.about {
    max-width: 42rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.facts li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.facts strong { display: block; }
.facts span { color: var(--muted); font-size: 0.95rem; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head p, .muted { color: var(--muted); }

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.25rem 1.3rem 1.15rem;
    box-shadow: var(--shadow);
}

.tag {
    margin: 0;
    color: var(--green-2);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card ul {
    margin: 0.4rem 0 0.8rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.card li {
    background: var(--sand);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.86rem;
}

.contact {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    background: var(--green);
    color: #f6f1e6;
    border-radius: 28px;
    padding: 1.8rem;
}

.contact a { color: #f6f1e6; }
.contact h2 { color: #fff; }
.contact .button { background: #f6f1e6; color: var(--green); }
.contact .button:hover { background: #fff; }

form { display: grid; gap: 0.75rem; }

label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
}

label span { color: var(--muted); font-weight: 400; }

input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font: inherit;
}

textarea { resize: vertical; }

.contact input, .contact textarea { border-color: transparent; }

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.2rem 0 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.privacy-check input {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0.28rem;
}

.notice {
    background: #e7f2ec;
    color: var(--green);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.notice.warn, .field-error { color: var(--warn); }
.field-error { margin: -0.3rem 0 0; font-size: 0.9rem; }
.contact .notice.warn { background: #fff4ef; }

.flash {
    width: min(1180px, calc(100% - 2.75rem));
    margin: 1rem auto 0;
    background: #e7f2ec;
    color: var(--green);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.panel h1 { font-size: clamp(2rem, 4vw, 3rem); }

.narrow { max-width: 560px; }

.filters a {
    text-decoration: none;
    color: var(--ink);
    border-bottom: 2px solid transparent;
    padding-bottom: 0.15rem;
}

.filters a.is-on { border-color: var(--green); }

.list { display: grid; gap: 0.6rem; }

.row {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr auto;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.row strong, .row em { display: block; font-style: normal; }
.row em, .preview, time, .meta { color: var(--muted); font-size: 0.92rem; }
.row.is-new { border-color: #b7d2c8; box-shadow: inset 3px 0 0 var(--green-2); }

.letter {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    white-space: normal;
    margin-bottom: 1rem;
}

.empty { color: var(--muted); }

.foot {
    width: 100%;
    background: #04101c;
    color: #b2c3d3;
    font-size: 0.85rem;
    padding: 0;
}

.foot .bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 0;
}

.foot-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.foot-links a { color: inherit; text-decoration: none; }
.foot-links a:hover { color: #fff; }

.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal ul { margin: 0 0 1em; padding-left: 1.15rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1em; }
.legal th, .legal td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 0.6rem 0.45rem 0.6rem 0; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 1rem; }
.legal-list { margin: 0 0 1.2rem; }
.legal-list div { display: grid; grid-template-columns: minmax(11rem, 16rem) 1fr; gap: 0.35rem 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.legal-list dt { color: var(--muted); }
.legal-list dd { margin: 0; }

@media (max-width: 980px) {
    .hero-grid, .blocks { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .dashboard { transform: none; }
}

@media (max-width: 1100px) {
    .topbar .bar { position: relative; }
    .menu-btn { display: inline-flex; }
    .topbar #navLinks {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #071727;
        padding: 18px 22px 24px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid #294157;
    }
    .topbar #navLinks.open { display: flex; }
    .topbar #navLinks a { padding: 8px 0; }
    .nav-actions .btn { display: none; }
}

@media (max-width: 800px) {
    .contact, .cards, .row, .blocks { grid-template-columns: 1fr; }
    .dash-body { grid-template-columns: 1fr; }
    .dash-side { display: none; }
    .topbar .bar { min-height: 4rem; }
    .brand-logo { height: 44px; }
    .row time { justify-self: start; }
    .section-head, .foot .bar { align-items: start; flex-direction: column; }
    .legal-list div { grid-template-columns: 1fr; gap: 0.1rem; }
}
