/* Slavia Training Programme, guest pages (home, register, pass).

   Emerald is the ground, Electric Green is used only for the one next action,
   everything a guest reads sits on a white card. No web font, no framework,
   nothing in the critical path but this file. Phone first: 390px is the
   design width, and the layout widens only where there is room. */

:root {
  --brand: #0E3A2F;
  --brand-mid: #1B7A5A;
  --brand-deep: #06140F;
  --accent: #78F9AD;
  --on-accent: #06140F;

  --paper: #FFFFFF;
  --page: #F3F6F4;
  --ink: #0C0F0E;
  --ink-soft: #55605B;
  --ink-faint: #85908B;
  --line: #DFE6E2;
  --line-soft: #EDF2EF;
  --bad: #B42318;

  --r-sm: 10px;
  --r: 16px;
  --maxw: 560px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(6,20,15,.05), 0 10px 30px rgba(6,20,15,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- masthead ---------- */
.mast {
  background: var(--brand);
  color: #fff;
  padding: 22px 16px 26px;
  text-align: center;
}
.mast img { display: block; margin: 0 auto; width: min(260px, 70vw); height: auto; }
.mast .when { margin: 12px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }

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

h1 { font-size: clamp(26px, 7vw, 34px); line-height: 1.12; letter-spacing: -.02em; margin: 4px 0 10px; font-weight: 700; }
h2 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; font-weight: 650; }
p { margin: 0 0 14px; }
.soft { color: var(--ink-soft); }
.small { font-size: 14px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 18px;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
}

/* ---------- form ---------- */
.field { margin: 0 0 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 650; margin: 0 0 6px; }
.field .help { font-size: 13px; color: var(--ink-faint); margin: 6px 0 0; }
.field .error, .error { color: var(--bad); font-size: 13px; font-weight: 600; margin: 6px 0 0; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="search"], select, textarea {
  width: 100%;
  display: block;
  font: inherit;
  font-size: 16px;            /* 16px or iOS zooms the page on focus */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14,58,47,.15);
}
.field.invalid input, .field.invalid select { border-color: var(--bad); }

/* ---------- buttons ---------- */
.btn {
  display: block; width: 100%;
  font: inherit; font-size: 16.5px; font-weight: 700;
  text-align: center; text-decoration: none;
  padding: 15px 18px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand); color: #fff;
  cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn + .btn { margin-top: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .btn + .btn { margin-top: 0; }
.status { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; min-height: 20px; }

/* ---------- selfie ---------- */
.selfie { display: flex; gap: 14px; align-items: center; }
.shot {
  flex: none; width: 96px; height: 96px; border-radius: 14px;
  border: 1px dashed var(--line); background: var(--page);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .ph { font-size: 12px; color: var(--ink-faint); text-align: center; padding: 0 8px; line-height: 1.35; }
.selfie .actions { flex: 1; min-width: 0; }
.selfie .btn { font-size: 15px; padding: 12px 14px; }
.linkbtn {
  background: none; border: 0; padding: 8px 0 0; margin: 0;
  color: var(--brand-mid); font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: underline; cursor: pointer;
}

/* ---------- home ---------- */
.hero { background: var(--brand); color: #fff; padding: 36px 16px 40px; text-align: center; }
.hero img { width: min(340px, 84vw); height: auto; display: block; margin: 0 auto 18px; }
.hero .meta { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); margin: 0 0 24px; }
.hero .btn { max-width: 360px; margin: 0 auto; }
.hero .btn + .btn { margin-top: 10px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.steps li span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- pass ---------- */
.pass { padding: 0; overflow: hidden; }
.pass .head { background: var(--brand); color: #fff; padding: 18px 18px 16px; }
.pass .head img { width: 150px; height: auto; display: block; margin: 0 0 10px; }
.pass .head .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.pass .head .v { font-size: 21px; font-weight: 700; margin-top: 2px; }
.pass .qr { padding: 22px 18px 6px; text-align: center; }
.pass .qr .box { width: 220px; height: 220px; margin: 0 auto; padding: 10px; background: #fff; }
.pass .qr .box img, .pass .qr .box canvas { width: 100% !important; height: 100% !important; display: block; }
.pass .qr p { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.rows { padding: 6px 18px 18px; }
.rows .r { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows .r .k { color: var(--ink-soft); }
.rows .r .v { font-weight: 650; text-align: right; }

.foot { text-align: center; font-size: 12.5px; color: var(--ink-faint); padding: 8px 16px 28px; }

@media (min-width: 720px) {
  .wrap { padding-top: 34px; }
  .card { padding: 28px 26px; }
}
