:root {
  --navy: #2D2E65;
  --navy-900: #1B1C40;
  --teal: #4CBAB5;
  --teal-700: #2F8F8A;
  --ink: #1D1F2B;
  --muted: #5B6072;
  --line: #E2E5EC;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --radius: 6px;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
h1, h2, h3 { font-family: Jost, Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
section { padding: 88px 0; }
.eyebrow { font-family: Jost, sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--teal-700); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: .95rem; }
.btn-primary { background: var(--teal); color: var(--navy-900); }
.btn-primary:hover { background: #63CBC6; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* Képhely: a végleges képek helye, kóddal (lásd docs/04-kepkereses.md) */
.ph { position: relative; background: linear-gradient(135deg, #3A3C78, #23244F); color: rgba(255,255,255,.75); display: flex; align-items: flex-end; padding: 16px; font-size: .8rem; border-radius: var(--radius); overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px); }
.ph span { position: relative; background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 4px; }

/* Fejléc */
header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav img { height: 46px; display: block; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav ul a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .9; }
.nav ul a:hover { opacity: 1; color: var(--teal); }
.nav .tel { color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }

/* Hero */
.hero { background-color: var(--navy-900); background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; padding: 140px 0 80px; border-radius: 0; }
.hero.ph { align-items: center; padding: 140px 0 80px; font-size: inherit; }
.hero .ph-label { position: absolute; z-index: 2; right: 16px; max-width: calc(100% - 32px); bottom: 20px; font-size: .78rem; background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 4px; color: rgba(255,255,255,.75); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,28,64,.95) 0%, rgba(27,28,64,.85) 42%, rgba(27,28,64,.25) 72%, rgba(27,28,64,.1) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { color: #fff; max-width: 620px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { font-size: 1.2rem; max-width: 520px; color: rgba(255,255,255,.85); margin-bottom: 2em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Számok */
.stats { background: var(--navy); color: #fff; padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: Jost, sans-serif; font-size: 2.1rem; font-weight: 600; color: var(--teal); line-height: 1.1; }
.stat small { color: rgba(255,255,255,.8); font-size: .9rem; }

/* Mikor hívjon */
.when { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.when div { border-top: 3px solid var(--teal); padding-top: 18px; }
.when b { font-family: Jost, sans-serif; color: var(--teal-700); font-size: .95rem; }
.when p { color: var(--muted); font-size: .97rem; }

/* Szolgáltatások */
.services { background: var(--bg-alt); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(45,46,101,.12); }
.card .ph { aspect-ratio: 4/3; border-radius: 0; }
.card img.shot { display: block; width: 100%; max-width: 100%; aspect-ratio: 4/3; object-fit: cover; }
img.shot-tall { display: block; width: 100%; max-width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
img.shot-wide { display: block; width: 100%; max-width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.card .body { padding: 22px 24px 26px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.card li { margin-bottom: 4px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-700); background: rgba(76,186,181,.14); padding: 3px 8px; border-radius: 3px; margin-bottom: 10px; }

/* Biztonság */
.safety { background: var(--navy-900); color: #fff; }
.safety h2 { color: #fff; }
.safety .lead { color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--navy-900); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks b { display: block; color: #fff; }
.checks span { color: rgba(255,255,255,.7); font-size: .95rem; }
.safety .ph { aspect-ratio: 4/5; }

/* Folyamat */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; counter-reset: s; }
.step { padding: 0 24px 0 0; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: Jost, sans-serif; font-weight: 600; font-size: 2.6rem; color: var(--teal); display: block; line-height: 1; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Partnermodell */
.partner { background: var(--bg-alt); }
table { width: 100%; border-collapse: collapse; margin-top: 36px; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-family: Jost, sans-serif; font-weight: 500; }
td:first-child { font-weight: 600; color: var(--navy); width: 24%; }

/* Állandó csapat */
.resident .ph { aspect-ratio: 16/10; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 24px 0 30px; padding: 0; list-style: none; }
.facts li { border-left: 3px solid var(--teal); padding-left: 12px; font-size: .95rem; color: var(--muted); }
.facts b { color: var(--ink); display: block; }

/* Kapcsolat */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.75); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .full { grid-column: 1 / -1; }
label { font-size: .82rem; color: rgba(255,255,255,.75); display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: .95rem; }
select option { color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: rgba(255,255,255,.75); margin: 0; }
.consent input { width: auto; margin-top: 3px; flex: none; }
.consent a { color: var(--teal); }
.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--teal); }
.form-status.hiba { color: #FFB8AD; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; }
button.btn:disabled { opacity: .6; cursor: progress; }
.direct { display: grid; gap: 22px; align-content: start; }
.direct b { display: block; font-family: Jost, sans-serif; font-size: 1.5rem; color: var(--teal); font-weight: 600; }
.direct a { color: #fff; text-decoration: none; }
.direct small { color: rgba(255,255,255,.65); }

footer { background: var(--navy-900); color: rgba(255,255,255,.6); font-size: .85rem; padding: 36px 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer img { height: 34px; }

@media (max-width: 960px) {
  .nav ul { display: none; }
  .stats .wrap, .when, .steps { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { row-gap: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  section { padding: 64px 0; }
  .nav .tel { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(27,28,64,.8) 0%, rgba(27,28,64,.88) 100%); }
  .stats .wrap, .when, .steps, .grid3, form, .facts { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 16px; }
  .stat:first-child { border-top: 0; }
  table:not(.cal), table:not(.cal) thead, table:not(.cal) tbody, table:not(.cal) tr, table:not(.cal) td, table:not(.cal) th { display: block; }
  table:not(.cal) thead { display: none; }
  table:not(.cal) td:first-child { width: auto; padding-bottom: 4px; border-bottom: 0; font-size: 1.02rem; }
  table:not(.cal) td { padding: 8px 16px; }
  table:not(.cal) td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 2px; }
  table:not(.cal) tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}
