/* =========================================================================
   Távrendszergazda IT — v1 statikus landing
   Tiszta, reszponzív, magyar. Nincs külső függőség (self-contained CSS).
   ========================================================================= */

:root {
  color-scheme: light dark; /* UA form controls + scrollbars follow the scheme */
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-dark: #0f1b2d;
  --ink: #16202e;
  --ink-soft: #51606f;
  --line: #e3e8f0;
  --brand: #1f6feb;
  --brand-dark: #1452b8;
  --brand-soft: #e8f0fe;
  --accent: #14b8a6;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, .9);
  --audience-border: #d6e4fd;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 46, .06), 0 2px 8px rgba(16, 32, 46, .05);
  --shadow-md: 0 8px 28px rgba(16, 32, 46, .12);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: 13px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav .nav-cta {
  color: #fff; background: var(--brand); padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--brand-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, var(--brand-soft), transparent),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 76px 24px 84px;
}
.hero-copy h1 { font-size: clamp(28px, 4.4vw, 46px); }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; }
.hero-points li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}

.hero-visual { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; }
/* Composed status panel: one coherent 'live monitoring' visual instead of
   three floating chips lost in whitespace. Decorative (aria-hidden). */
.hero-panel {
  width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 18px 20px 12px;
  transform: rotate(-1.2deg);
}
.hero-panel-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 12px;
}
.hero-spark { display: block; width: 100%; height: 64px; margin-bottom: 6px; }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark-fill { fill: color-mix(in srgb, var(--brand) 10%, transparent); stroke: none; }
.hero-panel-rows { list-style: none; margin: 0; padding: 0; }
.hero-panel-rows li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 2px; font-size: 14.5px; font-weight: 600;
  border-top: 1px solid var(--line);
}
.hero-panel-rows strong { color: var(--accent); }
.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 16px 18px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.hero-card strong { color: var(--accent); }
.hero-chip-float { position: absolute; right: -14px; bottom: -18px; transform: rotate(1.5deg); }
.dot-live { background: var(--accent); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
  50% { box-shadow: 0 0 0 8px rgba(20, 184, 166, .07); }
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.dot-ok { background: var(--accent); box-shadow: 0 0 0 4px rgba(20, 184, 166, .18); }
.dot-ai { background: var(--brand); box-shadow: 0 0 0 4px rgba(31, 111, 235, .16); }

/* ---- Service sections ---- */
.service { padding: 78px 0; }
.service-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-head { max-width: 720px; }
.service-head.center { margin: 0 auto; text-align: center; }
.service-head h2 { font-size: clamp(24px, 3vw, 34px); }
.service-head p { font-size: 17px; color: var(--ink-soft); }

.feature-grid {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.feature-grid li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; box-shadow: var(--shadow-sm);
}
.service-alt .feature-grid li { background: var(--surface); }
.feature-grid h3 { font-size: 17px; }
.feature-grid p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ---- Why ---- */
.why { padding: 80px 0; }
.why-grid {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
/* The főoldal 'Miért mi' list has 4 items: 2x2 reads intentional, a 3+1 orphan
   row does not. The 3-card reference section opts back into 3 columns --
   desktop only, so the ID selector cannot out-specify the mobile breakpoints. */
@media (min-width: 901px) { #gyakorlat .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-grid li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease; }
.why-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-grid h3 { font-size: 17px; }
.why-grid h3::before { content: ""; display: block; width: 34px; height: 3px; background: var(--brand); border-radius: 3px; margin-bottom: 12px; }
.why-grid p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ---- Contact ---- */
.contact { padding: 80px 0; background: var(--bg-dark); color: #e7edf6; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: -160px; top: -120px; width: 520px; height: 520px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(31, 111, 235, .16) 0%, transparent 65%);
}
.contact > .container { position: relative; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact .eyebrow { color: #7fb0ff; }
.contact h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.contact-copy p { color: #b6c4d6; font-size: 17px; }
.contact-meta { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-meta li { display: flex; align-items: center; gap: 12px; color: #cdd9e8; }
.contact-meta a { color: #cdd9e8; }
.contact-meta a:hover { color: #fff; }
.contact-meta .ic { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); border-radius: 8px; }

.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--surface); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.consent input { margin-top: 3px; }
.form-note { margin: 14px 0 0; font-size: 14px; min-height: 1.2em; }
.form-note.ok { color: #0a8f6e; font-weight: 600; }
.form-note.err { color: #c0392b; font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: #0b1422; color: #9fb0c4; padding: 56px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand .brand-name { color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand .brand-mark { color: var(--brand); }
.footer-brand p { margin-top: 12px; max-width: 32ch; font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols .footer-title { color: #fff; font-size: 14px; font-weight: 700;
  line-height: 1.2; letter-spacing: -.01em; margin: 0 0 12px; }
/* Screen-reader-only text: keeps the heading outline intact for assistive
   tech without any visual footprint. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-cols a { display: block; color: #9fb0c4; font-size: 14.5px; margin-bottom: 8px; }
.footer-cols a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px;
}
.footer-bottom a { color: #9fb0c4; }

/* =========================================================================
   v2 — többoldalas: aktív nav, tízer-kártyák, lap-fejléc, CTA-sáv, Rólam
   ========================================================================= */
.main-nav a.active { color: var(--ink); }
.main-nav a.active:not(.nav-cta) { position: relative; }
.main-nav a.active:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--brand);
}
.main-nav .nav-cta.active { background: var(--brand-dark); }

.btn-lg { padding: 15px 28px; font-size: 16px; }

/* Tízer-kártyák (Főoldal) */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.teaser-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease;
}
.teaser-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.teaser-ic {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--brand); background: var(--brand-soft); border-radius: 12px; margin-bottom: 16px;
}
.teaser-ic svg { display: block; }
.teaser-card h3 { font-size: 19px; }
.teaser-card p { color: var(--ink-soft); }
.teaser-link { font-weight: 600; }

/* Lap-fejléc (aloldalak) */
.page-hero {
  background:
    radial-gradient(900px 320px at 85% -20%, var(--brand-soft), transparent),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); max-width: 18ch; }
.page-hero p { font-size: 18px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 0; }

/* CTA-sáv */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, #1a5fd0 55%, var(--brand-dark) 100%); color: #fff; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 24px;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 4px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #eef3ff; }

/* Kapcsolat lap: adjon levegőt a fejléc és lábléc között */
.contact-page { min-height: 60vh; }
.contact-page h1 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }

/* Rólam */
.about { padding: 72px 0; }
.about-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.about-photo-ph {
  aspect-ratio: 4 / 5; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 14px; font-weight: 600;
}
.about-photo img {
  width: 100%; max-width: 300px; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; box-shadow: var(--shadow-md);
  border: 5px solid var(--surface); outline: 1px solid var(--line); display: block;
}
.about-body h2 { font-size: 21px; margin-top: 24px; }
.about-body h2:first-child { margin-top: 0; }
.about-body p { color: var(--ink-soft); }
.about-points { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 8px; }
.about-points li { position: relative; padding-left: 24px; color: var(--ink); font-weight: 500; }
.about-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.bio-skills { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 12px; }
.bio-skills li { position: relative; padding-left: 20px; color: var(--ink-soft); }
.bio-skills li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.bio-skills strong { color: var(--ink); }

/* Szolgáltatás-lap: "Mit tartalmaz" címke + "Kinek szól" kiemelt blokk */
.block-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 34px 0 14px; }
.audience { margin-top: 26px; padding: 22px 24px; background: var(--brand-soft); border: 1px solid var(--audience-border); border-radius: var(--radius); }
.service-alt .audience { background: var(--surface); border-color: var(--line); }
.audience h3 { font-size: 16px; margin-bottom: 6px; }
.audience p { margin: 0; color: var(--ink-soft); }

/* === v3 — IT-fókusz: 4-tízer, szolgáltatás-lista, FAQ, jogi lapok === */
.teaser-grid-3 { grid-template-columns: repeat(3, 1fr); }
.teaser-grid-4 { grid-template-columns: repeat(4, 1fr); }
.center-link { text-align: center; margin-top: 26px; }

/* Szolgáltatás-lista (Szolgáltatások lap) */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .14s ease, box-shadow .14s ease; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-card h3 { font-size: 17px; margin-bottom: 8px; }
.svc-card p { color: var(--ink-soft); margin: 0 0 8px; font-size: 15px; }
.svc-good { color: var(--ink) !important; font-size: 13.5px !important; padding-top: 8px; border-top: 1px solid var(--line); }
.svc-good::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.svc-price { margin: 0 !important; margin-top: auto !important; color: var(--ink) !important; font-size: 14px !important; padding-top: 12px; border-top: 1px solid var(--line); }
.svc-price-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.svc-price strong { color: var(--brand); font-weight: 700; }
.svc-positioning { margin: 32px auto 0; max-width: 760px; text-align: center; font-size: 17px; font-weight: 600; color: var(--ink); }
.svc-disclaimer { margin: 20px auto 0; max-width: 760px; text-align: center; font-size: 13px; color: var(--ink-soft); }

/* FAQ (GYIK lap) */
.faq-wrap { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 22px; color: var(--brand); line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); }

/* Jogi lapok (Impresszum, Adatvédelmi) */
.legal { max-width: 760px; }
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
.legal-list dt { font-weight: 600; color: var(--ink-soft); }
.legal-list dd { margin: 0; color: var(--ink); }
.legal-block { margin-bottom: 18px; }
.legal-block h2 { font-size: 17px; margin-bottom: 4px; }
.legal-block p { color: var(--ink-soft); margin: 0; }
.legal-note { margin-top: 24px; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink-soft); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .teaser-grid, .teaser-grid-3, .teaser-grid-4, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 320px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px 64px; }
  .hero-sub { max-width: none; }
  .hero-visual { min-height: 220px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 0; box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 24px; }
  .main-nav .nav-cta { margin: 8px 24px; text-align: center; }
  /* In the stacked mobile menu the desktop underline indicator looks out of
     place; mark the active item with a soft background + accent bar instead. */
  .main-nav a.active:not(.nav-cta)::after { display: none; }
  .main-nav a.active:not(.nav-cta) { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
  .nav-toggle { display: flex; }
  .feature-grid, .why-grid, .teaser-grid, .teaser-grid-3, .teaser-grid-4, .svc-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .service, .why, .contact { padding: 56px 0; }
}

/* Skip-link: hidden until keyboard focus (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* AI service card accent (7th pillar) */
.svc-card-ai { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-sm); }
.svc-card-ai h3::after { content: " ✦"; color: var(--accent); }


/* === Dark mode (#7, Levente-approved): pure token override -- the layout and
   the always-dark sections (footer, contact band, CTA) are untouched. === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1624;
    --bg-soft: #131e30;
    --bg-dark: #0a1220;
    --ink: #e6ecf5;
    --ink-soft: #9db0c5;
    --line: #263449;
    --brand: #5c9bff;
    --brand-dark: #82b3ff;
    --brand-soft: #16294a;
    --surface: #16233a;
    --header-bg: rgba(14, 22, 36, .92);
    --audience-border: #1e355c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .5);
  }
}


/* === Design pass (Levente 'teljes feldobás'): interaction + focus + rhythm === */
.feature-grid li { transition: transform .14s ease, box-shadow .14s ease; }
.feature-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.faq-item { transition: box-shadow .14s ease; }
.faq-item:hover { box-shadow: var(--shadow-md); }

/* Consistent, brand-colored keyboard focus everywhere (a11y + polish). */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Brand-tinted text selection. */
::selection { background: var(--brand); color: #fff; }

/* Anchor targets land with breathing room below the sticky header. */
[id] { scroll-margin-top: 84px; }

/* Hero: subtle radial brand glow anchors the floating status chips. */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -140px; top: -60px;
  width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 14%, transparent) 0%, transparent 65%);
}
.hero .container { position: relative; }

/* Nav hover: the same underline the active item already has, but animated in.
   Desktop only -- the mobile drawer marks the active item with a side bar. */
@media (min-width: 901px) {
  .main-nav a:not(.nav-cta) { position: relative; }
  .main-nav a:not(.nav-cta):not(.active)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
    background: var(--brand);
    transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
  }
  .main-nav a:not(.nav-cta):not(.active):hover::after { transform: scaleX(1); }
}

/* Respect reduced-motion preferences: kill the lifts and slides. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Service cards share the teaser icon badge, slightly tighter for card flow. */
.svc-ic { width: 42px; height: 42px; border-radius: 10px; margin-bottom: 12px; }

/* 7 cards in a 3-column grid leave a lone orphan in the last row; let a
   row-opening last card stretch full width as a natural closing band. */
@media (min-width: 901px) {
  .svc-grid .svc-card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}


/* Scroll-reveal: sections fade-up once as they enter the viewport. The class
   pair is added by JS only, so content is fully visible without JS; the
   global reduced-motion rule collapses the transition to imperceptible. */
.reveal-init { opacity: 0; transform: translateY(14px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }


/* Narrow viewports: the floating backup chip would land on the panel's last
   row -- flow it below the panel instead. */
@media (max-width: 640px) {
  .hero-visual { flex-direction: column; }
  .hero-chip-float { position: static; margin: 12px auto 0; transform: none; width: max-content; }
}

/* The real email address is long; let it wrap anywhere instead of pushing
   the layout wide on narrow screens (impresszum dd overflowed at 390px). */
dd, .footer-cols a, .contact-meta a { overflow-wrap: anywhere; }
