/* Písmo Inter (SIL Open Font License 1.1, pozri /assets/fonts/OFL.txt), hosťované lokálne. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* 1 px predlohy (rámec 1440×900). Rozmery sa podľa okna plynule zmenšia alebo zväčšia (max. 1,5×). */
  --px: clamp(0.25px, min(0.069444vw, 0.111111vh), 1.5px);
  --pad: max(20px, calc(48 * var(--px)));
  --gap: max(14px, calc(28 * var(--px)));

  --bg: #f3f6fd;
  --surface: #ffffff;
  --text: #0f1f4d;
  --muted: #475569;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #e1e9fd;
  --primary-ink: #1d3fa8;
  --brand-bg: #ddf3e4;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --bad: #b91c1c;
  --bad-bg: #fde2e2;
  --radius: 20px;
  --shadow-soft: 0 2px 8px rgba(15, 31, 77, 0.10);
  --shadow-primary: 0 6px 18px rgba(29, 78, 216, 0.30);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@supports (height: 1dvh) {
  :root { --px: clamp(0.25px, min(0.069444vw, 0.111111dvh), 1.5px); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

:focus-visible {
  outline: 3px solid #0f1f4d;
  outline-offset: 3px;
}

/* Rámec aplikácie: rovnaký okraj zo všetkých strán, hlavička hore, obsah pod ňou. */
.app {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  height: 100vh;
  height: 100dvh;
  padding: var(--pad);
  background: var(--bg);
  transition: background-color 0.2s ease;
}
.app-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

/* Hlavička: logo + názov firmy vľavo, názov školenia vpravo. */
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: max(64px, calc(96 * var(--px)));
  padding: 0 max(20px, calc(44 * var(--px))) 0 max(12px, calc(20 * var(--px)));
  background: var(--brand-bg);
  border-radius: max(16px, calc(24 * var(--px)));
  color: #0a0a0a;
  transition: background-color 0.2s ease;
}
.brand__company { display: flex; align-items: center; gap: max(10px, calc(18 * var(--px))); min-width: 0; }
.brand__logo {
  flex: 0 0 auto;
  width: max(40px, calc(56 * var(--px)));
  height: max(40px, calc(56 * var(--px)));
  border-radius: max(10px, calc(16 * var(--px)));
  background: #fff;
  object-fit: contain;
  padding: max(4px, calc(6 * var(--px)));
}
.brand__logo[hidden] + .brand__name { margin-left: max(6px, calc(16 * var(--px))); }
.brand__name {
  font-size: max(1.125rem, calc(28 * var(--px)));
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.brand__course {
  margin: 0;
  font-size: max(1rem, calc(26 * var(--px)));
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
}

.view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.view--center { align-items: center; justify-content: center; padding: 1.5rem 0; }

.link-btn {
  background: none;
  border: 0;
  padding: 0.5rem 0.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--primary-dark); }

/* Tlačidlá: tvar pilulky, bez orámovania. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: max(48px, calc(52 * var(--px)));
  padding: 0.6rem max(20px, calc(28 * var(--px)));
  font: inherit;
  font-size: max(1rem, calc(17 * var(--px)));
  font-weight: 600;
  line-height: 1.2;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { flex: 0 0 auto; }
.btn--next { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn--next:hover { background: var(--primary-dark); }
.btn--back { background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }
.btn--back:hover:not(:disabled) { background: #eaf0fc; }
.btn:disabled { opacity: 0.4; cursor: default; }

.muted { color: var(--muted); }
.notice { padding: 1rem; background: #fff3cd; border-radius: var(--radius); }

.simple-card {
  max-width: 34rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.75rem;
  text-align: center;
}
.simple-card h1 { font-size: 1.6rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0.5rem 0; }
.simple-card p { margin: 0.5rem 0 0; font-size: 1.2rem; color: var(--muted); }
.simple-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}

/* Mobil: menší okraj, hlavička poskladaná pod seba. */
@media (max-width: 640px) {
  :root { --pad: 20px; --gap: 14px; }
  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 0;
    padding: 10px 16px;
  }
  .brand__logo { width: 36px; height: 36px; border-radius: 10px; }
  .brand__name { font-size: 1.05rem; }
  .brand__course { font-size: 0.9rem; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
