/* =========================================================
   Autoškola Jednička – štýly
   Farby: espresso hnedá + karamelový akcent (vybraný variant 5), biela ako hlavná
   Písma: Bricolage Grotesque (nadpisy) + Manrope (text)
   ========================================================= */

:root {
  color-scheme: light;

  /* --- základ (tmavé sekcie, svetlé sekcie, text) --- */
  --ink: #2a1810;
  --ink-2: #3a2519;
  --ink-3: #4e3323;
  --footer: #1c100a;
  --paper: #f7f1ea;
  --white: #ffffff;
  --text: #2a1810;
  --muted: #7a655a;
  --line: #e9ddd2;

  /* --- akcent --- */
  --accent: #e9a23b;
  --accent-hover: #f2b155;
  --on-accent: #2a1810;
  --accent-text: #96590c;

  /* --- text na tmavom --- */
  --on-ink: #f7f1ea;
  --on-ink-muted: #c9b5a6;
  --on-ink-line: rgba(255, 255, 255, 0.12);
  --on-ink-soft: rgba(255, 255, 255, 0.06);

  /* --- oznam a bežiaci pás --- */
  --oznam-bg: #e9a23b;
  --oznam-fg: #2a1810;
  --oznam-stripe: #2a1810;
  --oznam-time-bg: #2a1810;
  --oznam-time-fg: #e9a23b;
  --ticker-bg: #e9a23b;
  --ticker-fg: #2a1810;

  /* --- odvodené --- */
  --accent-glow: color-mix(in srgb, var(--accent) 35%, transparent);
  --hero-glow: color-mix(in srgb, var(--accent) 22%, transparent);
  --outline-glow: color-mix(in srgb, var(--ink) 12%, transparent);
  --oznam-soft: color-mix(in srgb, var(--oznam-fg) 12%, transparent);

  --radius: 22px;
  --radius-s: 12px;
  --shadow: 0 18px 50px rgba(42, 24, 16, 0.14);

  --font-display: "Bricolage Grotesque", "Arial Black", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section--ink {
  background: var(--paper);
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 62ch;
}

.section--ink .section-head p {
  color: var(--muted);
}

.hl {
  color: var(--accent-text);
}

.hl-blue {
  color: var(--accent-text);
}

/* ---------- Tlačidlá ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--yellow {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn--yellow:hover {
  background: var(--accent-hover);
}

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

.oznam .btn--ink {
  background: var(--oznam-time-bg);
  color: var(--oznam-time-fg);
}

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

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

.btn--ghost:hover {
  border-color: var(--ink);
}

.cta-band .btn--ghost {
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.btn--sm {
  padding: 12px 18px;
  font-size: 0.9rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- OZNAM (najdôležitejšia časť stránky) ---------- */

.oznam {
  position: relative;
  background: var(--oznam-bg);
  color: var(--oznam-fg);
  overflow: hidden;
}

.oznam::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background: repeating-linear-gradient(
    135deg,
    var(--oznam-stripe) 0 22px,
    var(--oznam-bg) 22px 44px
  );
}

.oznam__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  align-items: center;
  padding-block: clamp(36px, 5vw, 60px) clamp(32px, 4.5vw, 52px);
}

.oznam__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.oznam__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  color: var(--oznam-fg);
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.8s infinite;
}

.oznam__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 6.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
  text-wrap: balance;
}

.oznam__title small {
  display: block;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35em;
  opacity: 0.85;
}

.oznam__date {
  white-space: nowrap;
}

.oznam__time {
  display: inline-block;
  background: var(--oznam-time-bg);
  color: var(--oznam-time-fg);
  padding: 0.05em 0.28em;
  border-radius: 0.18em;
  line-height: 1.05;
}

.oznam__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-weight: 700;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.oznam__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.oznam__meta svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.oznam__side {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.oznam__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  background: var(--oznam-soft);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Navigácia ---------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

/* logo je čierne na priehľadnom SVG (img/logo.svg, vektorizované z PNG loga) */
.brand__logo {
  display: block;
  height: 42px;
  width: auto;
}

.footer__logo {
  display: block;
  height: 40px;
  width: auto;
  filter: invert(1);
  opacity: 0.92;
  margin-bottom: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.nav__links a {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.nav__links a:hover {
  background: var(--paper);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav__phone {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .nav__phone {
    display: none;
  }
}

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  place-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.nav__toggle:active {
  transform: scale(0.94);
}

/* hamburger: 3 čiarky, pri otvorení sa zbehnú do stredu a otočia do krížika */
.nav__burger {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.nav__burger i {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: top 0.2s ease 0.2s, transform 0.2s ease, opacity 0.15s ease, background-color 0.25s ease;
}

.nav__burger i:nth-child(1) {
  top: 0;
}

.nav__burger i:nth-child(2) {
  top: 7px;
}

.nav__burger i:nth-child(3) {
  top: 14px;
}

.nav.is-open .nav__toggle {
  background: var(--ink);
  border-color: var(--ink);
}

.nav.is-open .nav__burger i {
  background: var(--on-ink);
  transition: top 0.2s ease, transform 0.2s ease 0.2s, opacity 0.15s ease, background-color 0.25s ease;
}

.nav.is-open .nav__burger i:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nav.is-open .nav__burger i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav.is-open .nav__burger i:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--white);
  color: var(--text);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__one {
  position: absolute;
  right: -1vw;
  top: -3vw;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14rem, 24vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--outline-glow);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__in {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  margin-top: 18px;
}

.hero__side {
  display: grid;
  gap: 24px;
  padding-bottom: 6px;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__photo {
  position: relative;
  margin-top: clamp(32px, 4vw, 48px);
}

.hero__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__badge {
  position: absolute;
  right: 22px;
  top: 22px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 14px 20px;
  border-radius: 14px;
  transform: rotate(2deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.hero__badge small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 4px;
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 20px 44px;
  justify-content: start;
  width: fit-content;
  max-width: 100%;
  margin: -44px 0 0 clamp(16px, 3vw, 40px);
  padding: 22px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.hero__stats span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Bežiaci pás ---------- */

.ticker {
  background: var(--paper);
  color: var(--text);
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker__track ul {
  display: flex;
  align-items: center;
  gap: 0;
  padding-block: 12px;
}

.ticker__track li {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-inline: 22px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.ticker__track li::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Kurzy ---------- */

.courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.course {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Veľké obrysové písmeno skupiny v pravom dolnom rohu (z data-letter) */
.course[data-letter]::before {
  content: attr(data-letter);
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: -0.32em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--outline-glow);
  pointer-events: none;
}

.course--featured[data-letter]::before {
  font-size: 15rem;
}

.course:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.course__letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.course__letter small {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
  vertical-align: middle;
}

.course h3 {
  font-size: 1.2rem;
}

.course p {
  font-size: 0.95rem;
  color: var(--muted);
}

.course__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.course__price strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.course__price span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course--featured {
  grid-column: span 2;
  grid-template-columns: 1fr;
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--ink);
}

.course--featured .course__letter,
.course--featured h3 {
  color: var(--ink);
}

.course--featured .course__letter small,
.course--featured p,
.course--featured .course__price span {
  color: var(--muted);
}

.course--featured .course__price {
  border-top-color: var(--line);
}

.course--featured .course__price strong {
  color: var(--accent-text);
}

.course__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.course__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.courses-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Priebeh kurzu (cesta) ---------- */

.road {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-top: 54px;
}

.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 14px;
  border-radius: 7px;
  background: var(--ink);
}

.road::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 34px);
  animation: dash 1.4s linear infinite;
}

.stop {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.stop__num {
  position: absolute;
  top: -54px;
  left: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.stop__hours {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stop__hours svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.08em;
}

.stop__hours small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.stop h3 {
  font-size: 1.2rem;
}

.stop p {
  font-size: 0.95rem;
  color: var(--muted);
}

.road-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 30px;
  padding: 20px 24px;
  border-radius: var(--radius-s);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.road-sum strong {
  color: var(--text);
}

/* ---------- Prečo my ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why__item {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 12px;
  align-content: start;
}

.why__item:last-child {
  border-right: none;
}

.why__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.why__item h3 {
  font-size: 1.15rem;
}

.why__item p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Cenník ---------- */

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 26px 14px;
}

.price-card h3 {
  padding: 18px 0 10px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.price-row:first-of-type {
  border-top: 0;
}

.price-row span {
  font-weight: 600;
}

.price-row small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.price-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-row--hl strong {
  color: var(--accent-text);
}

.price-note {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Prihlásenie ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--muted);
}

.step .btn {
  justify-self: start;
  margin-top: 6px;
}

.pay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.pay__card {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.pay__card h3 {
  font-size: 1.2rem;
}

.pay__card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pay__rows {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.pay__rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.95rem;
}

.pay__rows li span {
  color: var(--muted);
}

.pay__rows li strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}

.downloads {
  display: grid;
  gap: 10px;
}

.downloads a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 700;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.downloads a:hover {
  border-color: var(--ink);
  transform: translateX(4px);
}

.downloads svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent-text);
}

.downloads small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Kontakt ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact__big {
  display: grid;
  gap: 18px;
}

.contact__phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.contact__phone:hover {
  color: var(--accent-text);
}

.contact__mail {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
  word-break: break-all;
}

.contact__hours {
  color: var(--muted);
  font-size: 0.98rem;
}

.contact__social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.contact__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
  transition: border-color 0.15s ease;
}

.contact__social a:hover {
  border-color: var(--ink);
}

.contact__social svg {
  width: 18px;
  height: 18px;
}

.contact__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: grid;
  gap: 18px;
}

.contact__card h3 {
  font-size: 1.25rem;
}

.contact__card .gmap {
  margin-bottom: 4px;
}

.contact__addr {
  font-size: 1.05rem;
  line-height: 1.5;
}

.contact__addr strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.mhd {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.mhd li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mhd b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding-inline: 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mhd b.tram {
  background: var(--ink);
  color: var(--on-ink);
}

/* ---------- Pätička ---------- */

.footer {
  background: var(--footer);
  color: var(--on-ink-muted);
  padding-block: clamp(48px, 6vw, 72px) 28px;
  font-size: 0.95rem;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.8fr;
  gap: clamp(28px, 4vw, 48px);
}

.footer__col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer__col p {
  line-height: 1.6;
}

.footer__col strong {
  color: var(--on-ink);
}

.footer__title {
  position: relative;
  font-size: 1.15rem;
  color: var(--on-ink);
  padding-bottom: 12px;
  margin-bottom: 2px;
}

.footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* Google mapa (iframe) – v pätičke aj na kontakte; náhrada s adresou je pod iframe pre prípad, že ho prehliadač zablokuje */
.gmap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.gmap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

.gmap__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}

.gmap__fallback svg {
  width: 30px;
  height: 40px;
}

.footer .gmap {
  border-color: var(--on-ink-line);
  background: var(--on-ink-soft);
}

.footer .gmap iframe {
  background: var(--ink-2);
}

.footer .gmap__fallback {
  color: var(--on-ink);
}

.footer__maplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--on-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__maplink svg {
  width: 16px;
  height: 16px;
}

.mhd--footer {
  border-top: 0;
  padding-top: 0;
  color: var(--on-ink-muted);
}

.footer__social {
  display: grid;
  gap: 8px;
}

.footer__social a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--on-ink-line);
  color: var(--on-ink);
  font-weight: 700;
  transition: border-color 0.15s ease;
}

.footer__social a:hover {
  border-color: var(--accent);
}

.footer__social svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--on-ink-line);
  font-size: 0.88rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

/* ---------- Animácie ---------- */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes dash {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 34px 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy > *,
.hero__side > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__copy > *:nth-child(2),
.hero__side > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero__side > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero__photo {
  animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__stats {
  animation: rise 0.8s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* objavovanie blokov pri scrollovaní – triedy pridáva js/main.js, bez JS sa nič neskrýva;
   „html .reveal“ má vyššiu prioritu než vlastné transition kariet (napr. .teaser__item v pages.css) */
html .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* číslice rovnako široké – počas „načítania“ čísla v úvode netrasú (šírku podrží main.js) */
.hero__stats strong {
  font-variant-numeric: tabular-nums;
}

@media print {
  html .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responzívnosť ---------- */

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

  .courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why__item:nth-child(2n) {
    border-right: none;
  }

  .why__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .road {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
    gap: 60px 22px;
  }

  .road::before,
  .road::after {
    display: none;
  }

  .stop {
    margin-top: 0;
    padding-top: 30px;
  }

  .stop__num {
    top: -22px;
  }
}

@media (max-width: 900px) {
  .nav__links,
  .nav__phone {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }

  .nav.is-open .nav__links {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav__links a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  /* otvorenie menu: panel sa vysunie, položky nabehnú postupne */
  .nav.is-open .nav__links {
    animation: menu-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .nav.is-open .nav__links > * {
    animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .nav.is-open .nav__links > :nth-child(2) {
    animation-delay: 0.05s;
  }

  .nav.is-open .nav__links > :nth-child(3) {
    animation-delay: 0.1s;
  }

  .nav.is-open .nav__links > :nth-child(4) {
    animation-delay: 0.15s;
  }

  .nav.is-open .nav__links > :nth-child(5) {
    animation-delay: 0.2s;
  }

  .nav.is-open .nav__links > :nth-child(6) {
    animation-delay: 0.25s;
  }

  .oznam__in {
    grid-template-columns: 1fr;
  }

  .oznam__side {
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
  }

  .hero__top {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__one {
    font-size: 14rem;
    top: -2rem;
    right: -2rem;
  }

  .hero__stats {
    width: auto;
    margin: 16px 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 20px;
  }

  .price-grid,
  .pay,
  .contact {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1rem;
  }

  .courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .course {
    padding: 20px 18px 18px;
  }

  .course--featured,
  .course--wide {
    grid-column: span 2;
  }

  .why,
  .road {
    grid-template-columns: 1fr;
  }

  .why__item {
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 24px 4px;
  }

  .why__item:first-child {
    border-top: none;
  }

  .road {
    gap: 40px;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero__badge {
    right: 10px;
    top: 10px;
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  .oznam__meta {
    font-size: 0.95rem;
  }

  .oznam__side {
    grid-auto-flow: row;
    align-items: start;
  }

  .brand__logo {
    height: 38px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .nav__cta .btn {
    display: none;
  }

  .brand__logo {
    height: 34px;
  }

  .courses {
    grid-template-columns: 1fr;
  }

  .course--featured,
  .course--wide {
    grid-column: auto;
  }

  .course--featured[data-letter]::before {
    font-size: 10rem;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}
