:root {
  --navy: #14303f;
  --navy-2: #1c4256;
  --blue: #23627a;
  --accent: #d9a93f;
  --accent-hover: #c8962c;
  --accent-ink: #1d1503;
  --bg: #ffffff;
  --bg-alt: #f3f5f6;
  --ink: #1a2328;
  --muted: #59666d;
  --line: #dde3e6;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 48, 63, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--blue); margin-bottom: .6em;
}
.intro { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.small { font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* Gombok */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .7em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-xl { padding: .7em 1.6em .7em 1.3em; font-size: 1.35rem; margin: .4em 0 1.2em; }
.btn-xl .ic { width: 1.4em; height: 1.4em; }
.btn-xl span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-xl small { font-size: .62em; font-weight: 600; opacity: .8; }
.btn-call { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(217, 169, 63, .35); }
.btn-call:hover { background: var(--accent-hover); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }

/* Fejléc */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-mark {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  background: var(--navy); color: #fff; border-radius: 9px; font: 700 .95rem/1 Georgia, "Times New Roman", serif; letter-spacing: -.02em;
}
.brand-mark i { color: var(--accent); font-style: italic; margin: 0 1px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.2rem; letter-spacing: -.01em; }
.brand-text small { font-size: .75rem; color: var(--muted); }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--blue); }
.header-call { padding: .55em 1.1em; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 100%);
  color: #fff; padding: 72px 0 40px;
}
.hero h1, .hero .eyebrow { color: #fff; }
.hero .eyebrow { color: var(--accent); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; opacity: .9; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.facts {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .15); border-radius: var(--radius); overflow: hidden;
}
.facts li { background: rgba(20, 48, 63, .55); padding: 18px 20px; display: flex; flex-direction: column; }
.facts b { font-size: 1.45rem; color: var(--accent); line-height: 1.1; }
.facts span { font-size: .9rem; opacity: .85; }

/* Folyamat */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 22px 20px 20px;
  border-top: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 0 var(--radius) var(--radius);
  display: flex; flex-direction: column; gap: 4px;
}
.steps li::before { content: "0" counter(s); font-weight: 800; color: var(--blue); font-size: .85rem; letter-spacing: .1em; }
.steps b { font-size: 1.15rem; color: var(--navy); }
.steps span { color: var(--muted); font-size: .95rem; }

/* Szolgáltatás kártyák */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 24px 24px 12px; display: flex; flex-direction: column; }
.card-ic { width: 34px; height: 34px; color: var(--blue); margin-bottom: 12px; }
.card > p { font-size: .97rem; color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 0 0 12px; border-top: 1px solid var(--line); }
.card li { font-size: .93rem; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--line); position: relative; }
.card li:last-child { border-bottom: 0; }
.card li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Ügyfélkörök */
.segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.segments article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.segments p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Sötét szakasz */

.section.dark { background: var(--navy); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--accent); }
.dark .intro { color: rgba(255, 255, 255, .8); }
.dark .steps li { background: rgba(255, 255, 255, .06); }
.dark .steps li::before { color: var(--accent); }
.dark .steps b { color: #fff; }
.dark .steps span { color: rgba(255, 255, 255, .78); }

/* Rólunk */
.ticks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks-list li { display: flex; gap: 12px; padding: 16px 18px; background: var(--bg-alt); border-radius: var(--radius); font-size: .96rem; }
.ticks-list .ic { color: var(--blue); margin-top: .2em; }
.ticks-list b { color: var(--navy); }

/* GYIK */
.narrow { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; color: var(--navy); font-size: 1.05rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-right: 36px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about { align-items: center; }

/* Kapcsolat */
.contact-line { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 10px 0; border-top: 1px solid var(--line); }
.contact-line .ic { color: var(--blue); width: 1.4em; height: 1.4em; }
.contact-line span { display: flex; flex-direction: column; line-height: 1.3; }
.contact-line small { color: var(--muted); font-size: .8rem; }
.contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-form h3 { margin: 0; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: .7em .85em; border: 1px solid #c9d2df; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: flex-start; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form-error { background: #fdecea; color: #8a1c13; border-radius: 8px; padding: .7em 1em; margin: 0; font-size: .93rem; }
.map { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--radius); margin-top: 48px; box-shadow: var(--shadow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Lábléc */
.site-footer { background: #0e2430; color: rgba(255, 255, 255, .85); padding: 32px 0; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .muted { color: rgba(255, 255, 255, .55); }
.site-footer p { margin: 0; }
.mobile-bar { display: none; }

/* Egyszerű aloldalak (köszönjük, 404) */
.plain { min-height: 60vh; display: flex; align-items: center; }
.plain .wrap { max-width: 680px; text-align: center; }
.plain .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 1100px) {
  .header-inner { gap: 12px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; order: 3;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .header-call { order: 2; }
}
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 32px; }
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards, .segments { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .header-call { font-size: 0; gap: 0; padding: .6em; }
  .header-call .ic { font-size: 17px; width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .wrap { padding: 0 16px; }
  .cards, .steps, .segments { grid-template-columns: 1fr; }
  .map { height: 300px; margin-top: 32px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .hero-actions .btn { width: 100%; }
  .btn-xl { width: 100%; justify-content: flex-start; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-bar .btn-ghost { color: var(--navy); }
}
