:root {
  --ink: #06110d;
  --surface: #0c1814;
  --line: #1a2a24;
  --line-2: #33463e;
  --field: #5d7469;
  --text: #f3efe6;
  --muted: #a9b8b0;
  --sage: #9fd8c0;
  --sage-ink: #04120d;
  --gold: #c9ad78;
  --brass: #b79b68;
  --stone: #ece8df;
  --stone-line: #d5cfc1;
  --stone-ink: #10221b;
  --stone-muted: #3f4f47;
  --stone-label: #6b5729;
  --err: #ff9a8f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sage); }
a:hover { color: #c9ebdc; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #7d8f86; }
input, select, textarea { color-scheme: dark; }
.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; }
.noscript { padding: 24px; }

.shell { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--ink); }
@media (min-width: 560px) {
  body { background: #030907; }
  .shell { min-height: calc(100dvh - 48px); margin: 24px auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
}

/* kezdőképernyő */
.hero { position: relative; height: 336px; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,17,13,.6) 0%, rgba(6,17,13,0) 36%, rgba(6,17,13,.25) 60%, var(--ink) 100%); }
.brand { position: absolute; left: 20px; top: 24px; z-index: 1; display: flex; align-items: center; gap: 12px; direction: ltr; }
.brand-word { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: 9px; line-height: 1; }
.brand-sub { font-size: 8.5px; font-weight: 500; letter-spacing: 2.4px; margin-top: 4px; }
.hero-text { position: absolute; inset-inline: 20px; bottom: 16px; z-index: 1; }
.eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
html[dir="rtl"] .eyebrow, html[lang="zh"] .eyebrow, html[lang="ja"] .eyebrow, html[lang="ko"] .eyebrow { letter-spacing: 1px; }
h1 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.06; font-size: 36px; }
.hero h1 { font-size: 42px; }
html[dir="rtl"] h1, html[lang="zh"] h1, html[lang="ja"] h1, html[lang="ko"] h1 { font-family: var(--sans); font-weight: 600; font-size: 30px; line-height: 1.25; }
html[dir="rtl"] .hero h1, html[lang="zh"] .hero h1, html[lang="ja"] .hero h1, html[lang="ko"] .hero h1 { font-size: 32px; }

.lang-btn { position: absolute; right: 14px; top: 16px; z-index: 2; height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: rgba(6,17,13,.6); border: 1px solid rgba(243,239,230,.5); border-radius: 3px; font-size: 13px; font-weight: 600; letter-spacing: 1px; cursor: pointer; }

.svc { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 10px 20px; background: none; border: 0; border-top: 1px solid var(--line); text-align: start; cursor: pointer; }
.svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc:hover { background: rgba(159,216,192,.05); }
.svc img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.svc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.svc-name { font-size: 17px; font-weight: 600; }
.svc-desc { font-size: 13px; color: var(--muted); }
.svc-price { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.svc-amount { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1; white-space: nowrap; }
.svc-unit { font-size: 11px; color: var(--muted); white-space: nowrap; }
.foot0 { margin: 0; padding: 16px 20px 28px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* lépések */
.flow { display: flex; flex-direction: column; min-height: inherit; height: 100dvh; }
@media (min-width: 560px) { .flow { height: calc(100dvh - 50px); } }
.topbar { flex-shrink: 0; padding: 8px 12px 0; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.icon-btn { width: 66px; height: 44px; display: flex; align-items: center; background: none; border: 0; cursor: pointer; padding: 0 10px; }
.icon-btn.end { justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 1px; }
html[dir="rtl"] .icon-btn svg.chev { transform: scaleX(-1); }
.progress { display: flex; align-items: center; gap: 10px; margin: 4px 8px 0; }
.progress-track { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.progress-bar { height: 2px; background: var(--sage); border-radius: 2px; transition: width .25s ease; }
.progress-label { font-size: 12px; color: var(--muted); }
.body { flex: 1; overflow-y: auto; padding: 26px 20px 24px; }
.footer { flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink); }
.foot-price { min-width: 104px; display: flex; flex-direction: column; gap: 3px; }
.foot-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.foot-amount { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1; white-space: nowrap; }
.primary { flex: 1; min-height: 54px; padding: 8px 12px; background: var(--sage); color: var(--sage-ink); border: 0; border-radius: 3px; font-size: 16px; font-weight: 600; cursor: pointer; }
.primary[disabled] { opacity: .6; cursor: default; }

label.l, .l { display: block; margin: 22px 0 8px; font-size: 13px; color: var(--muted); }
.mt0 { margin-top: 0 !important; }
.field { width: 100%; height: 56px; padding: 0 16px; background: var(--surface); border: 1px solid var(--field); border-radius: 3px; font-size: 17px; }
select.field { padding: 0 12px; }
textarea.field { height: auto; padding: 14px 16px; line-height: 1.5; resize: none; }
.field[aria-invalid="true"] { border-color: var(--err); }
.err { margin: 8px 0 0; font-size: 13px; color: var(--err); }
.hint { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt24 { margin-top: 24px; }
.seg { min-height: 52px; padding: 6px 8px; background: transparent; border: 1px solid var(--field); border-radius: 3px; font-size: 16px; line-height: 1.2; cursor: pointer; }
.seg[aria-pressed="true"] { background: rgba(159,216,192,.14); border-color: var(--sage); font-weight: 600; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 14px; font-size: 15px; line-height: 1.35; cursor: pointer; }
.check input { flex-shrink: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--sage); }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: 118px; flex-shrink: 0; }
.phone-row input { flex: 1; min-width: 0; direction: ltr; }
html[dir="rtl"] .phone-row input { text-align: right; }

.stepper { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px; background: var(--surface); border: 1px solid var(--field); border-radius: 3px; }
.stepper.big { height: 76px; padding: 0 12px; }
.stepper button { width: 44px; height: 44px; padding: 0; background: none; border: 0; font-size: 22px; cursor: pointer; }
.stepper.big button { width: 48px; height: 48px; border: 1px solid var(--field); border-radius: 3px; font-size: 24px; }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { font-size: 20px; font-weight: 600; }
.stepper.big output { font-family: var(--serif); font-size: 36px; }

.car { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 10px; padding: 8px 14px 8px 8px; background: var(--stone); color: var(--stone-ink); border: 2px solid var(--stone); border-radius: 6px; text-align: start; cursor: pointer; }
html[dir="rtl"] .car { padding: 8px 8px 8px 14px; }
.car[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.car img { width: 150px; height: 97px; object-fit: cover; flex-shrink: 0; border-radius: 3px; }
.car-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.car-name { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1; }
.car-cap { display: flex; gap: 12px; font-size: 13px; color: var(--stone-muted); direction: ltr; }
html[dir="rtl"] .car-cap { justify-content: flex-end; }
.car-cap span { display: inline-flex; align-items: center; gap: 4px; }
.car-price { font-size: 15px; font-weight: 600; }
.car-mark { position: absolute; top: 8px; inset-inline-end: 8px; width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center; justify-content: center; background: var(--stone-ink); }
.car[aria-pressed="true"] .car-mark { display: flex; }
.notice { margin: 0; padding: 16px; border: 1px solid var(--gold); border-radius: 3px; font-size: 15px; line-height: 1.5; }

.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 24px -20px 0; padding: 2px 20px 6px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 66px; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 3px; cursor: pointer; }
.day[aria-pressed="true"] { background: rgba(159,216,192,.14); border: 2px solid var(--sage); }
.day small { font-size: 12px; color: var(--muted); }
.day strong { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.day span { font-size: 11px; color: var(--muted); }
.link-btn { min-height: 44px; margin-top: 4px; padding: 0; background: none; border: 0; color: var(--sage); font-size: 14px; text-decoration: underline; cursor: pointer; }
input[type="time"].field { height: 64px; font-size: 22px; }

/* összegző kártya (a szóróanyag világos kártyájának mintájára) */
.card { margin-top: 22px; padding: 7px; background: var(--stone); border-radius: 6px; color: var(--stone-ink); }
.card-inner { padding: 16px 16px 12px; border: 1px solid var(--brass); border-radius: 3px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.card-title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--stone-line); }
.row-k { flex-shrink: 0; padding-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--stone-label); }
.row-v { font-size: 14px; line-height: 1.4; text-align: end; overflow-wrap: anywhere; }
.row.total { align-items: baseline; padding-top: 12px; border-top-color: var(--brass); }
.row.total .row-v { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.small { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.lead { margin: 16px 0 0; font-size: 14px; line-height: 1.5; }
.form-err { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--err); border-radius: 3px; font-size: 14px; line-height: 1.5; }

/* elküldve */
.done-hero { position: relative; height: 290px; }
.done-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.done-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,17,13,.35) 0%, rgba(6,17,13,.1) 40%, var(--ink) 100%); }
.done-hero .hero-text { bottom: 12px; }
.done-body { padding: 20px 20px 28px; }
.tl { display: flex; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--field); flex-shrink: 0; }
.tl-dot.gold { border-color: var(--gold); }
.tl-dot.on { width: 22px; height: 22px; border: 0; background: var(--sage); display: flex; align-items: center; justify-content: center; }
.tl-line { flex: 1; width: 1px; background: var(--field); }
.tl-text { padding-bottom: 18px; }
.tl-text p { margin: 0; }
.tl-text .t { font-size: 16px; font-weight: 600; }
.tl-text .s { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.ref-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--brass); border-radius: 3px; }
.ref-id { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--stone-label); }
.ref-route { margin: 4px 0 0; font-size: 14px; line-height: 1.35; }
.badge { flex-shrink: 0; padding: 6px 10px; border: 1px solid var(--stone-label); border-radius: 3px; font-size: 12px; font-weight: 600; color: var(--stone-label); }
.ghost { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 16px; padding: 0 10px; border: 1px solid var(--sage); border-radius: 3px; color: var(--text); font-size: 15px; text-align: center; text-decoration: none; }
.ghost:hover { color: var(--text); background: rgba(159,216,192,.08); }
.text-btn { display: block; width: 100%; min-height: 44px; margin-top: 4px; background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }

/* nyelvválasztó */
.sheet-bg { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(3,9,7,.74); }
.sheet { width: 100%; max-width: 480px; margin: 0 auto; max-height: 85dvh; overflow-y: auto; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 14px 14px 0 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.lang-opt { min-height: 48px; padding: 0 14px; background: transparent; border: 1px solid var(--line-2); border-radius: 3px; font-size: 16px; text-align: start; cursor: pointer; }
.lang-opt[aria-current="true"] { background: rgba(159,216,192,.14); border-color: var(--sage); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
