/* Étterem-transzfer — marketing oldal.
   Szándékosan egyetlen, sötét megjelenés: esti/vacsorai szolgáltatás. */

:root {
  color-scheme: dark;

  --bg:        #14130f;
  --bg-2:      #1a1814;
  --surface:   #201d17;
  --surface-2: #272319;
  --line:      #35301f;
  --line-soft: rgba(245, 243, 238, .09);

  --ink:       #f5f3ee;
  --ink-2:     #cfc9bb;
  --muted:     #9d9789;

  --accent:    #e0a33c;
  --accent-2:  #f0bc63;
  --accent-ink:#1a1408;

  --good:      #6cc47a;
  --bad:       #ef8b78;

  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0; }

/* ---------- demo-figyelmeztetés ---------- */

.notice {
  background: #3a2a10;
  border-bottom: 1px solid #5a4318;
  color: #f2d9a8;
  font-size: 13.5px;
  padding: 9px 20px;
  text-align: center;
}

.notice b { color: var(--accent-2); }

/* ---------- fejléc ---------- */

header.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(20, 19, 15, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand svg { flex: none; }

nav.links { display: flex; gap: 22px; }

nav.links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}

nav.links a:hover { color: var(--accent); }

@media (max-width: 780px) { nav.links { display: none; } }

/* ---------- gombok ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .06s;
  font-family: inherit;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 30% 40% -10%;
  background: radial-gradient(closest-side, rgba(224, 163, 60, .16), transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  font-weight: 750;
  max-width: 16ch;
}

.hero .lead {
  margin: 20px 0 0;
  font-size: clamp(16.5px, 2.1vw, 19px);
  color: var(--ink-2);
  max-width: 54ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 14.5px;
}

.hero-points span { display: inline-flex; align-items: center; gap: 9px; }

.tick { color: var(--accent); flex: none; }

/* ---------- szekciók ---------- */

section { padding: 62px 0; }

section.alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.sec-head { max-width: 60ch; margin-bottom: 38px; }

.sec-head h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; }

.sec-head p { margin: 12px 0 0; color: var(--ink-2); font-size: 16.5px; }

/* ---------- kártyarács ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { font-size: 17.5px; font-weight: 650; margin-bottom: 9px; }

.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

.card .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 16px;
}

/* lépések */

.steps { counter-reset: step; }

.steps .card { position: relative; padding-top: 26px; }

.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

/* ---------- kalkulátor ---------- */

.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.calc-grid { display: grid; grid-template-columns: 1.15fr .85fr; }

@media (max-width: 880px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-form { padding: 28px; }

.calc-out {
  padding: 28px;
  background: var(--surface-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

@media (max-width: 880px) {
  .calc-out { border-left: none; border-top: 1px solid var(--line); }
}

.field { margin-bottom: 17px; position: relative; }

.field > label:not(.check) {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

input:focus, select:focus, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }

/* automatikus címkiegészítés */

.ac {
  position: absolute;
  z-index: 20;
  left: 0; right: 0;
  top: calc(100% + 4px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 232px;
  overflow-y: auto;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}

.ac:empty, .ac[hidden] { display: none; }

.ac button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.4;
}

.ac button:last-child { border-bottom: none; }
.ac button:hover, .ac button:focus { background: var(--surface); color: var(--ink); outline: none; }

.ac .hint { padding: 10px 13px; color: var(--muted); font-size: 13.5px; }

.picked {
  margin-top: 6px;
  font-size: 13px;
  color: var(--good);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.picked[hidden] { display: none; }

/* eredmény */

.result-empty { color: var(--muted); font-size: 14.5px; margin: auto 0; }

.price {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.price small { font-size: .42em; font-weight: 600; color: var(--ink-2); margin-left: 4px; }

.route-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.route-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }

.lines { border-top: 1px solid var(--line); padding-top: 14px; }

.lines div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
}

.lines div span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.lines div.disc span:last-child { color: var(--good); }

.disclaimer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.err {
  background: rgba(239, 139, 120, .1);
  border: 1px solid rgba(239, 139, 120, .35);
  color: var(--bad);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14px;
  margin: auto 0;
}

.spin {
  width: 17px; height: 17px;
  border: 2px solid rgba(26, 20, 8, .3);
  border-top-color: var(--accent-ink);
  border-radius: 999px;
  animation: sp .7s linear infinite;
}

@keyframes sp { to { transform: rotate(360deg); } }

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

/* ---------- flotta ---------- */

.fleet-cap {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- GYIK ---------- */

details {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 16px 20px;
  margin-bottom: 11px;
}

details[open] { border-color: var(--line); }

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

details[open] summary::after { content: "–"; }

details p { margin: 13px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- CTA sáv ---------- */

.cta-band {
  background: linear-gradient(120deg, #2a2110, var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px;
  text-align: center;
}

.cta-band h2 { font-size: clamp(23px, 3.2vw, 30px); font-weight: 700; }

.cta-band p { color: var(--ink-2); margin: 12px auto 26px; max-width: 48ch; }

.cta-band .hero-cta { justify-content: center; }

/* ---------- lábléc ---------- */

footer.site {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }

footer.site h4 {
  color: var(--ink);
  font-size: 14px;
  margin: 0 0 11px;
  font-weight: 650;
}

footer.site a { color: var(--ink-2); text-decoration: none; display: block; margin-bottom: 6px; }
footer.site a:hover { color: var(--accent); }

.todo {
  color: var(--accent);
  font-style: italic;
}

.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  font-size: 13px;
}

.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;
}

/* ---------- inline stílusok kiváltása ----------
   A CSP `style-src 'self'` tiltja az inline style attribútumot ÉS az
   element.style.x = ... írást is. Ezért minden korábbi inline stílus itt,
   osztályként él — így a CSP szigorú maradhat 'unsafe-inline' nélkül. */

.btn-block { width: 100%; }

.m0 { margin: 0; }

.foot-lead { margin: 0; max-width: 38ch; }

.result-cta { margin-top: 18px; }

/* Figyelmeztetés, ha a létszám nem fér el a legnagyobb járműben. */
.cap-warn {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--bad);
}

.cap-warn[hidden] { display: none; }
