/* ============================================================
   TRAFIKHELP – trafikok informatikai és hardveres segítsége
   Design rendszer: tiszta, szerviz-jellegű, konverzióközpontú
   ============================================================ */

:root {
  --ink:        #0e1a2b;
  --navy:       #12233b;
  --navy-2:     #1b3350;
  --slate:      #41546e;
  --muted:      #5d6f86;
  --line:       #dde4ec;
  --bg:         #f5f7fa;
  --card:       #ffffff;
  --accent:     #e8621a;   /* jelzőnarancs – SOS / CTA */
  --accent-dk:  #c8500e;
  --accent-soft:#fdeee2;
  --ok:         #158a5c;
  --warn:       #b7791f;
  --bad:        #c0392b;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 10px 30px rgba(14, 26, 43, .08);
  --shadow-lg:  0 24px 60px rgba(14, 26, 43, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p.lead, .lead { font-size: 1.16rem; color: var(--slate); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section.tight { padding: 48px 0; }

.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }
.btn .ico { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14,26,43,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em;
  color: #fff; text-decoration: none !important;
}
.logo b { color: var(--accent); }
.logo-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.main-nav a {
  display: block; padding: 10px 13px; border-radius: 8px;
  color: #cdd8e5; font-weight: 600; font-size: .95rem;
  text-decoration: none !important;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(232,98,26,.22); }
.header-phone {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .98rem;
  text-decoration: none !important; white-space: nowrap;
}
.header-phone:hover { background: var(--accent-dk); }
.header-phone .ico { width: 17px; height: 17px; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(232,98,26,.20), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--navy) 55%, #1a3049 100%);
  color: #fff;
  padding: 84px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 90% at 50% 0%, #000 40%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: #b9c8da; max-width: 56ch; margin-top: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 9px; color: #cdd8e5; font-size: .95rem; margin: 0; }
.hero-points .ico { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }

/* ---------- Kártyarácsozások ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
a.card { display: block; color: inherit; text-decoration: none !important; }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h2, .card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card .card-ico {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .card-ico .ico { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .93rem; color: var(--accent); }
.card-link .ico { width: 15px; height: 15px; }

/* Problémakártyák – SOS lista */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prob-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-weight: 600; color: var(--ink);
  text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.prob-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.prob-card .ico { width: 26px; height: 26px; color: var(--accent); flex: 0 0 auto; }
.prob-card.unknown { background: var(--navy); color: #fff; border-color: var(--navy); }
.prob-card.unknown .ico { color: var(--accent); }

/* ---------- Lépések ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 2.2rem; font-weight: 900; color: var(--accent);
  opacity: .9; margin-bottom: 10px; letter-spacing: -.03em;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Banners / CTA sáv ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--navy) 0%, var(--ink) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 48px 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 26px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(232,98,26,.35), transparent 65%);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #b9c8da; max-width: 52ch; }
.cta-band .band-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  color: #7a3d10;
  font-size: .96rem;
}
.note.neutral { background: #eef3f9; border-color: var(--navy-2); color: var(--slate); }

/* ---------- Checklisták ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.checklist .ico { width: 20px; height: 20px; color: var(--ok); flex: 0 0 auto; margin-top: 3px; }
.checklist.x li .ico { color: var(--bad); }

/* ---------- Állapot-minősítés ---------- */
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.status-pill {
  border-radius: 12px; padding: 18px 20px; font-weight: 700;
  display: flex; flex-direction: column; gap: 4px;
}
.status-pill small { font-weight: 500; color: inherit; opacity: .8; }
.status-pill.ok   { background: #e6f5ee; color: var(--ok);   border: 1px solid #bfe6d3; }
.status-pill.warn { background: #fdf3e2; color: var(--warn); border: 1px solid #f0dCAc; }
.status-pill.bad  { background: #fdeceb; color: var(--bad);  border: 1px solid #f3c4be; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent);
  flex: 0 0 auto; transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq details[open] { border-color: var(--accent); }

/* ---------- Űrlapok ---------- */
.form-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .95rem; }
.field label small { font-weight: 500; color: var(--muted); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 9px;
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease;
}
.field :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,98,26,.14); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  position: relative;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 15px;
  font-weight: 600; font-size: .95rem; background: #fff;
  transition: border-color .12s ease, background .12s ease;
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hozzájárulás-doboz látható jelölőnégyzettel (pl. GDPR-checkbox) */
.consent span {
  display: block; position: relative; padding-left: 46px;
  font-weight: 500; line-height: 1.45;
}
.consent span small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.consent span::before {
  content: ""; position: absolute; left: 15px; top: 14px;
  width: 22px; height: 22px;
  border: 2px solid var(--line); border-radius: 6px; background: #fff;
  transition: background .12s ease, border-color .12s ease;
}
.consent input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.consent input:focus-visible + span::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent a { position: relative; z-index: 2; }  /* a láthatatlan input felett kattintható maradjon */
.field.has-error .consent span { border-color: var(--bad); }

.form-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.form-progress i { height: 5px; flex: 1; background: var(--line); border-radius: 3px; }
.form-progress i.done { background: var(--accent); }
.form-step { display: none; }
.form-step.active { display: block; }
.form-nav { display: flex; gap: 12px; margin-top: 24px; }
.form-nav .spacer { flex: 1; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .big-ico { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--ok); }
.form-error-msg { color: var(--bad); font-size: .9rem; margin-top: 6px; display: none; }
.field.has-error .form-error-msg { display: block; }
.field.has-error :is(input, select, textarea) { border-color: var(--bad); }

/* ---------- Kapcsolat / placeholder blokk ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { text-align: center; padding: 28px 20px; }
.contact-card .ico { width: 30px; height: 30px; color: var(--accent); margin: 0 auto 12px; display: block; }
.contact-card .big { font-size: 1.15rem; font-weight: 800; }
.contact-card .sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--ink); color: #9fb0c4; padding: 60px 0 100px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer .footer-title { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .02em; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #9fb0c4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: .92rem; max-width: 34ch; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px;
  font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px;
}

/* ---------- Sticky mobil CTA ---------- */
.mobile-sos {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14,26,43,.98); border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-sos .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: .95rem; }

/* ---------- Morzsa ---------- */
.crumbs { font-size: .87rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; display: flex; gap: 6px; align-items: center; }
.crumbs li:not(:last-child)::after { content: "›"; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Oldalfejléc (aloldalak) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--ink), var(--navy));
  color: #fff; padding: 56px 0 60px;
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: #b9c8da; margin-top: 14px; max-width: 62ch; }

/* ---------- Cikk / prozáblokk ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose p { margin-bottom: 1em; color: var(--slate); }
.prose ul, .prose ol { margin-bottom: 1em; color: var(--slate); }
.prose .note { margin: 1.4em 0; }

.article-meta { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.article-card time { color: var(--muted); font-size: .85rem; }

/* ---------- Táblázat ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--bg); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Egyebek ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: start; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tag-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .87rem; color: var(--slate); margin: 0; }
.muted { color: var(--muted); }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 18px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Reszponzív ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .prob-grid, .steps, .status-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .header-phone span.num { display: none; }
  .header-phone { padding: 10px 12px; }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 66px; }
  .grid-4, .grid-3, .grid-2, .prob-grid, .steps, .status-row, .choice-grid, .choice-grid.three, .field-row { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 59;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 10px 20px 20px; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .mobile-sos { display: flex; }
  .site-footer { padding-bottom: 130px; }
  body { padding-bottom: 0; }
  .cta-band { padding: 32px 24px; }
  .cta-band .band-actions { margin-left: 0; width: 100%; }
  .cta-band .band-actions .btn { flex: 1; justify-content: center; }
  .form-shell { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
