:root {
  --navy: #14213d;
  --blue: #1f5faf;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --text: #1c2430;
  --muted: #5b6675;
  --line: #dde3eb;
  --max: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0e1729;
    --blue: #6aa3ea;
    --bg: #121a26;
    --bg-alt: #182231;
    --text: #e6ebf2;
    --muted: #a3afbf;
    --line: #2a3648;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 100; }

/* Fejléc */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .7rem; color: var(--text); font: inherit; cursor: pointer; }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav li a { display: block; padding: .7rem 0; }
}

/* Nyelvváltó */
.lang { display: flex; align-items: center; gap: .45rem; margin-left: 2rem; font-size: .9rem; font-weight: 600; }
.lang a { color: var(--muted); text-decoration: none; padding: .2rem .15rem; }
.lang a:hover { color: var(--blue); }
.lang a[aria-current="true"] { color: var(--blue); }
.lang span { color: var(--line); }
@media (max-width: 760px) {
  .lang { margin-left: auto; margin-right: .9rem; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; padding: clamp(4rem, 12vw, 8rem) 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: .3em; }
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: #c9d4e5; margin: 0; }

/* Szekciók */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.intro p { color: var(--muted); max-width: 60ch; }
.intro img { border-radius: 8px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.service img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 1rem; }
.service ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.service li { padding: .25rem 0; border-top: 1px solid var(--line); }
.service li:first-child { border-top: 0; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.ref-card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 33, 61, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20, 33, 61, .14); }
.ref-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--blue); }
.ref-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.ref-kicker { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .35rem; }
.ref-body h3 { margin-bottom: 1rem; }
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref-list li { padding: .7rem 0; border-top: 1px solid var(--line); }
.ref-list strong { display: block; font-weight: 600; }
.ref-list span { display: block; color: var(--muted); font-size: .93rem; margin-top: .1rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: .92rem; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .ref-card, .ref-card:hover { transition: none; transform: none; } }

:root { --c1: #1f5faf; --c2: #5b9bd5; --c3: #14213d; --c4: #9fb3c8; }
@media (prefers-color-scheme: dark) {
  :root { --c1: #6aa3ea; --c2: #2f6cb8; --c3: #c9d8ec; --c4: #56677e; }
}
.pie-wrap { display: flex; align-items: center; gap: clamp(2rem, 6vw, 4rem); flex-wrap: wrap; }
.pie {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--c1) 0 25%,
    var(--c2) 25% 50%,
    var(--c3) 50% 80%,
    var(--c4) 80% 100%
  );
}
.pie-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; min-width: 260px; }
.pie-legend li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.pie-legend strong { margin-left: auto; padding-left: 1.5rem; font-weight: 600; }
.swatch { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.swatch.c1 { background: var(--c1); }
.swatch.c2 { background: var(--c2); }
.swatch.c3 { background: var(--c3); }
.swatch.c4 { background: var(--c4); }

.cta { background: var(--navy); color: #fff; text-align: center; }
.cta p { color: #c9d4e5; }
.btn { display: inline-block; background: var(--blue); color: #fff; padding: .85rem 1.8rem; border-radius: 6px; text-decoration: none; font-weight: 600; margin-top: .5rem; }
@media (prefers-color-scheme: dark) { .btn { color: #0e1729; } }
.btn:hover { filter: brightness(1.1); }

/* Kapcsolat */
.page-title { background: var(--navy); color: #fff; padding: 3.5rem 0; }
.page-title h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: .9rem 2.5rem; margin: 0; max-width: 640px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) {
  .contact-list { grid-template-columns: 1fr; gap: .2rem; }
  .contact-list dd { margin-bottom: 1rem; }
}

/* Lábléc */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }

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