/* MOVTECH Foglaló · közös alap (a Movtech arculati kézikönyv tokenjei) */
:root {
  --ink: #1d1d1d;
  --ink-2: #2a2a2a;
  --red: #cd2026;
  --red-dark: #a81a1f;
  --red-tint: #fbeced;
  --navy: #13314f;
  --navy-600: #244a6e;
  --azur: #1565a8;
  --azur-tint: #e8f0f8;
  --paper: #ffffff;
  --bg: #f6f7f8;
  --g700: #444444;
  --g500: #6b6b6b;
  --g400: #8a8a8a;
  --g300: #b5b5b5;
  --line: #e4e6e8;
  --line-2: #eef0f2;
  --g100: #eff1f2;
  --ok: #1f7a4d;
  --ok-tint: #e7f4ec;
  --warn: #9a6200;
  --warn-tint: #fdf3e1;
  --r-card: 12px;
  --r-btn: 8px;
  --sans: "Montserrat", Arial, Helvetica, sans-serif;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 8px 24px -12px rgba(16, 24, 32, 0.12);
  --shadow-lg: 0 24px 60px -24px rgba(16, 24, 32, 0.28);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azur); outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipográfia */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); }
.eyebrow.muted { color: var(--g500); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.012em; }
.h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.12; }
.h2 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.lead { font-size: 16px; color: var(--g700); line-height: 1.65; }
.muted { color: var(--g500); }
.small { font-size: 13px; }
.xs { font-size: 12px; }

/* Gombok */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-btn);
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover { background: #000; border-color: #000; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: 0.55; cursor: not-allowed; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.danger { background: #fff; color: var(--red); border-color: #f0c9cb; }
.btn.danger:hover { border-color: var(--red); background: var(--red-tint); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm svg { width: 16px; height: 16px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--g300); cursor: pointer; }
.linkbtn:hover { text-decoration-color: var(--ink); }

/* Mezők */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--g500); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff;
  font: 500 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s; outline: none;
  -webkit-appearance: none; appearance: none;
}
@media (min-width: 900px) { .input, .select, .textarea { font-size: 15px; } }
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--g300); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 29, 29, 0.07); }
.input[aria-invalid="true"] { border-color: var(--red); }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1d1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--g700); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--g300); border-radius: 5px; background: #fff;
  display: grid; place-items: center; transition: all 0.15s;
}
.check .box svg { width: 14px; height: 14px; stroke: #fff; opacity: 0; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--azur); outline-offset: 2px; }

/* Kártya */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.pad { padding: 24px; }
@media (max-width: 600px) { .pad { padding: 18px; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

/* Címkék */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--g700); background: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.red { background: var(--red-tint); color: var(--red-dark); }
.pill.grey { background: var(--g100); color: var(--g500); }
.pill.azur { background: var(--azur-tint); color: var(--azur); }

/* Ikon */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Értesítés */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: tin 0.22s ease-out; }
.toast.err { background: var(--red-dark); }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.alert { padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; display: flex; gap: 10px; }
.alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.alert.info { background: var(--azur-tint); color: #0e4a7d; }
.alert.warn { background: var(--warn-tint); color: #6e4600; }
.alert.err { background: var(--red-tint); color: var(--red-dark); }
.alert.ok { background: var(--ok-tint); color: #145c38; }

/* Betöltés */
.skel { background: linear-gradient(90deg, var(--g100) 25%, #f7f8f9 37%, var(--g100) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: rot 0.7s linear infinite; }
.spin.dark { border-color: rgba(0,0,0,0.12); border-top-color: var(--ink); }
@keyframes rot { to { transform: rotate(360deg); } }

/* Modális ablak */
.modal-bg { position: fixed; inset: 0; background: rgba(17, 22, 28, 0.42); z-index: 900; display: grid; place-items: center; padding: 16px; animation: fin 0.15s ease-out; }
.modal { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: min 0.2s ease-out; }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal-b { padding: 18px 24px 24px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 22px; flex-wrap: wrap; }
.x { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.x:hover { border-color: var(--ink); }
@keyframes fin { from { opacity: 0; } }
@keyframes min { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
@media (max-width: 600px) {
  .modal-bg { place-items: end stretch; padding: 0; }
  .modal { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
}

/* Lábléc (nyilvános oldalak) */
.foot { padding: 32px 16px 40px; text-align: center; color: var(--g500); font-size: 12px; }
.foot a { color: var(--g500); text-decoration: none; margin: 0 8px; }
.foot a:hover { color: var(--ink); }
.foot .by { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--g400); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.foot .by img { height: 22px; width: auto; opacity: 0.9; }

.demo-band { background: var(--warn-tint); color: #6e4600; font-size: 12.5px; font-weight: 600; text-align: center; padding: 8px 16px; border-bottom: 1px solid #f3e2bf; }
