/* =================================================================
   IOAS — Apple/SpaceX style design system
   Light theme, sans-serif, full-bleed sekcie, generous whitespace.
   ================================================================= */

:root {
  /* Backgrounds */
  --bg:            #ffffff;
  --bg-alt:        #f5f5f7;        /* Apple section gray */
  --bg-elevated:   #ffffff;
  --bg-overlay:    rgba(255,255,255,0.85);
  --bg-dark:       #1d1d1f;        /* dark sections */

  /* Text */
  --text:          #1d1d1f;        /* near-black */
  --text-on-dark:  #f5f5f7;
  --text-muted:    #6e6e73;
  --text-dim:      #86868b;

  /* Borders */
  --border:        #d2d2d7;
  --border-soft:   #e8e8ed;

  /* Accent */
  --accent:        #0071e3;        /* Apple blue */
  --accent-hover:  #0077ed;
  --accent-deep:   #005bb5;
  --accent-glow:   rgba(0,113,227,0.15);

  /* States */
  --success: #34c759;
  --warning: #ff9500;
  --error:   #ff3b30;

  /* Shadows (subtle) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.08);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 980px;

  /* Fonts — Apple uses SF Pro; closest free = Inter */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1440px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-feature-settings: 'cv11', 'ss01', 'ss03';   /* Inter alts pro look */
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .18s; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--text); color: #fff; }

.container          { max-width: var(--container);        margin: 0 auto; padding: 0 22px; }
.container--narrow  { max-width: var(--container-narrow); margin: 0 auto; padding: 0 22px; }
.container--wide    { max-width: var(--container-wide);   margin: 0 auto; padding: 0 22px; }

/* =================================================================
   TYPOGRAPHY HELPERS
   ================================================================= */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 22px;
  height: 56px;
}
.nav__brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 600; color: var(--text);
}
.nav__brand:hover { color: var(--text); }
.nav__brand-mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text); color: #fff; border-radius: 50%;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0;
}
.nav__brand-text { font-size: 0.95rem; line-height: 1.2; }
.nav__brand-text strong { font-weight: 600; letter-spacing: -0.01em; }
.nav__brand-text small { display: block; font-size: 0.72rem; color: var(--text-dim); font-weight: 400; }
.nav__links {
  display: flex; gap: 2rem; flex: 1; justify-content: center;
}
.nav__links a {
  color: var(--text); font-size: 0.86rem; font-weight: 400;
  position: relative; padding: 0.4rem 0;
  opacity: 0.8;
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; color: var(--text); }

/* Dropdown / submenu */
.nav__group { position: relative; }
.nav__group-trigger {
  color: var(--text); font-size: 0.86rem; font-weight: 400;
  position: relative; padding: 0.4rem 0;
  opacity: 0.8;
  display: inline-flex; align-items: center; gap: 0.25rem;
  cursor: pointer;
}
.nav__group:hover .nav__group-trigger,
.nav__group-trigger.is-active { opacity: 1; }
.nav__caret { font-size: 0.65rem; opacity: 0.6; transition: transform 0.15s; }
.nav__group:hover .nav__caret { transform: rotate(180deg); }

.nav__submenu {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 200px;
  background: var(--bg, #fff);
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 6px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 50;
}
.nav__group:hover .nav__submenu,
.nav__group:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__submenu a {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.86rem;
  color: var(--text);
  opacity: 1;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.nav__submenu a:hover,
.nav__submenu a.is-active {
  background: var(--bg-soft, #f3f4f6);
  color: var(--accent, #1d4ed8);
}

/* Expertise tags na riaditeľovej stránke */
.expertise-tags {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.expertise-tags li {
  background: var(--bg-soft, #f3f4f6);
  border: 1px solid var(--border-soft, #e5e7eb);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.nav__cta { display: flex; gap: 0.8rem; align-items: center; }
.nav__lang {
  display: flex; gap: 0.7rem; align-items: center;
  font-size: 0.78rem; letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--text-dim);
  border-right: 1px solid var(--border-soft);
  padding-right: 0.9rem;
}
.nav__lang a {
  color: var(--text-dim); opacity: 0.7;
  text-transform: uppercase;
  transition: opacity .15s, color .15s;
}
.nav__lang a:hover { opacity: 1; color: var(--text); }
.nav__lang a.is-active { color: var(--text); opacity: 1; font-weight: 600; }
.nav__burger {
  display: none;
  background: transparent; border: 0;
  color: var(--text); padding: 0.4rem 0.5rem;
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}

/* =================================================================
   BUTTONS — Apple style (pill, soft)
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 400;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s, box-shadow .2s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 0.5rem 1.05rem; font-size: 0.84rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.btn--accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn--dark {
  background: var(--text); color: #fff; border-color: var(--text);
}
.btn--dark:hover { background: #000; border-color: #000; color: #fff; }

.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--text);
}
.btn--ghost:hover { background: var(--text); color: #fff; }

.btn--ghost-light {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost-light:hover { background: #fff; color: var(--text); }

.btn--link {
  background: transparent; color: var(--accent); border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn--link:hover { color: var(--accent-hover); background: transparent; }

/* =================================================================
   HERO (homepage rotator) — full-bleed, plný viewport
   ================================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
  transform: scale(1.05);
}
.hero__bg.is-active { opacity: 1; transform: scale(1); transition: opacity 1s ease, transform 8s ease-out; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
  padding: 8rem 22px 6rem;
  width: 100%;
  text-align: center;
}
.hero__slide { display: none; }
.hero__slide.is-active { display: block; animation: heroIn .9s cubic-bezier(.2,.8,.2,1); }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  font-weight: 600; line-height: 1.05;
  margin: 0 0 1.4rem;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero__title em { font-style: normal; color: #fff; }   /* nepoužívame em farbu */
.hero__sub {
  font-family: var(--font-sans); font-style: normal;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  margin: 0 auto 2.2rem; max-width: 640px;
  line-height: 1.45;
}
.hero__cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
}
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 2.5rem; z-index: 3;
  display: flex; gap: 0.55rem; justify-content: center;
}
.hero__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0; padding: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.hero__dots button:hover { transform: scale(1.3); }
.hero__dots button.is-active { background: #fff; }

/* Scroll-down indikátor */
.hero::after {
  content: ''; position: absolute; left: 50%; bottom: 1rem;
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.6));
  transform: translateX(-50%);
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0%,100% { opacity: 0; transform: translate(-50%, -10px); }
  50%     { opacity: 1; transform: translate(-50%,   0px); }
}

/* =================================================================
   SECTION
   ================================================================= */
.section { padding: 7rem 0; }
.section--alt    { background: var(--bg-alt); }
.section--dark   { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark .section__title { color: #fff; }
.section--dark .section__lead  { color: rgba(245,245,247,0.8); }

.section__head {
  max-width: 820px; margin: 0 auto 4rem; text-align: center;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 600; margin: 0.5rem 0 1rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}
.section__lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.5;
}

/* =================================================================
   ARTICLE GRID + CARDS — minimalistické, žiadne rámčeky
   ================================================================= */
.grid { display: grid; gap: 2.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card__link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card__link:hover { color: inherit; }
.card__image {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: var(--bg-alt);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card__image { transform: scale(1.02); }
.card__body { padding: 1.4rem 0 0; flex: 1; display: flex; flex-direction: column; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.32rem; line-height: 1.25; font-weight: 600;
  color: var(--text); margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.card__meta {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-dim);
  margin-top: auto; padding-top: 0.6rem;
}
.card__cat {
  color: var(--accent);
  font-weight: 500;
}

/* =================================================================
   ARTICLE (single) — full-bleed hero, generous body
   ================================================================= */
.article-hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: #fff;
}
.article-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.78) 100%);
}
.article-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--container-narrow); margin: 0 auto;
  padding: 6rem 22px 4rem; width: 100%;
}
.article-hero__cats {
  display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.article-hero__cat {
  color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.02em;
}
.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 600; line-height: 1.08;
  margin: 0 0 1.4rem;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 720px;
}
.article-hero__meta { color: rgba(255,255,255,0.8); font-size: 0.92rem; }

.article-body {
  max-width: var(--container-narrow); margin: 0 auto;
  padding: 5rem 22px 6rem;
  font-size: 1.18rem; line-height: 1.62;
  color: var(--text);
}
.article-body > p:first-of-type {
  font-size: 1.36rem; color: var(--text);
  font-weight: 400; line-height: 1.5;
  letter-spacing: -0.012em;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.85rem; font-weight: 600;
  margin: 3.5rem 0 1.1rem; line-height: 1.2;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 600;
  margin: 2.2rem 0 0.7rem;
  letter-spacing: -0.015em;
}
.article-body p { margin: 0 0 1.4rem; }
.article-body ul, .article-body ol { margin: 0 0 1.6rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote {
  margin: 2.5rem 0; padding: 1rem 0 1rem 1.6rem;
  border-left: 3px solid var(--text);
  background: transparent;
  font-family: var(--font-display); font-style: normal;
  font-size: 1.4rem; line-height: 1.4; color: var(--text);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.article-body hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 3rem 0;
}
.article-body img {
  border-radius: var(--r-md);
  margin: 2rem 0;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.8rem 0;
  font-size: 0.98rem;
}
.article-body th, .article-body td {
  padding: 0.9rem 1.1rem; text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.article-body th { font-weight: 600; }

.article-footer {
  max-width: var(--container-narrow); margin: 0 auto 5rem;
  padding: 2.2rem 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.92rem; color: var(--text-muted);
}

/* CTA na konci článku — Apple-style banner s tmavým pozadím */
.article-cta {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 5rem 22px;
  margin: 0 0 3rem;
}
.article-cta__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}
.article-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 0.6rem;
}
.article-cta__text {
  font-size: 1.1rem;
  color: rgba(245,245,247,0.85);
  margin: 0 0 1.8rem;
}
.article-cta .btn--dark {
  background: #fff; color: var(--text); border-color: #fff;
}
.article-cta .btn--dark:hover {
  background: var(--bg-alt); color: var(--text); border-color: var(--bg-alt);
}

/* =================================================================
   PAGE (statická stránka) — full-bleed hero podobne ako article
   ================================================================= */
.page-hero {
  padding: 7rem 0 5rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
  background: var(--bg);
}
.page-hero .eyebrow { display: inline-block; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 600; margin: 0.4rem 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.page-hero__lead {
  max-width: 680px; margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}
.page-body {
  max-width: var(--container-narrow); margin: 0 auto;
  padding: 4rem 22px 6rem;
  font-size: 1.1rem; line-height: 1.62;
}
.page-body > p:first-of-type {
  font-size: 1.3rem; line-height: 1.5;
  color: var(--text); margin-bottom: 2rem;
  letter-spacing: -0.012em;
}
.page-body h2, .page-body h3 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
}
.page-body h2 { font-size: 1.85rem; margin: 3rem 0 1rem; line-height: 1.15; }
.page-body h3 { font-size: 1.3rem; margin: 2rem 0 0.6rem; line-height: 1.2; }
.page-body strong { font-weight: 600; }
.page-body table {
  width: 100%; border-collapse: collapse; margin: 1.8rem 0;
}
.page-body th, .page-body td {
  padding: 0.9rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.page-body th { font-weight: 600; background: var(--bg-alt); }
.page-body blockquote {
  margin: 2rem 0; padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--text);
  font-style: normal; color: var(--text-muted);
  font-size: 1.1rem;
}

/* =================================================================
   FORMS — Apple style (rounded inputs, soft borders)
   ================================================================= */
.ioas-form {
  margin: 2rem 0; max-width: 640px;
}
.ioas-form .form-row { margin-bottom: 1.2rem; position: relative; }
.ioas-form label {
  display: block; font-size: 0.86rem; font-weight: 500;
  color: var(--text); margin-bottom: 0.5rem;
}
.ioas-form input[type="text"],
.ioas-form input[type="email"],
.ioas-form input[type="tel"],
.ioas-form select,
.ioas-form textarea {
  width: 100%; padding: 0.85rem 1rem;
  font: inherit; font-size: 0.98rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ioas-form textarea { resize: vertical; min-height: 130px; }
.ioas-form input:focus, .ioas-form select:focus, .ioas-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.ioas-form .form-row--checkbox label {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.88rem; font-weight: 400; color: var(--text-muted);
  cursor: pointer;
}
.ioas-form .form-row--checkbox input[type="checkbox"] {
  margin-top: 0.2rem; width: 16px; height: 16px;
  accent-color: var(--accent); cursor: pointer; flex: 0 0 auto;
}
.ioas-form .form-note {
  font-size: 0.82rem; color: var(--text-dim); margin: 0.6rem 0 0;
}
.ioas-form--inline {
  display: flex; gap: 0.6rem; max-width: 480px;
}
.ioas-form--inline input[type="email"] { flex: 1; }
.ioas-form--inline button { white-space: nowrap; }

#form-status {
  margin: 1.2rem 0; padding: 0.95rem 1.1rem; border-radius: var(--r-sm);
  font-size: 0.95rem; display: none;
}
#form-status.is-success { display: block; background: rgba(52,199,89,.10);  color: #1a7c3e; border: 1px solid rgba(52,199,89,.3); }
#form-status.is-error   { display: block; background: rgba(255,59,48,.08);  color: #b32a22; border: 1px solid rgba(255,59,48,.3); }
#form-status.is-loading { display: block; background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* =================================================================
   FOOTER — Apple style: malé sivé linky na sivom pozadí
   ================================================================= */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer__grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  margin-bottom: 3rem;
  max-width: var(--container);
  margin-left: auto; margin-right: auto; padding: 0 22px;
}
.footer__col h4 {
  color: var(--text); font-size: 0.86rem; font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a { color: var(--text-muted); }
.footer__col a:hover { color: var(--text); text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem; max-width: var(--container);
  margin: 0 auto; padding-left: 22px; padding-right: 22px;
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-dim);
}

/* =================================================================
   PRINT (drobnosť: tlač článkov bez zbytočností)
   ================================================================= */
@media print {
  .nav, .footer, .hero__dots, .nav__cta, .nav__lang, .nav__burger,
  #ioas-cookie-banner, #form-status { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-hero, .page-hero { min-height: 0; padding: 1rem 0; background: none !important; color: #000; }
  .article-hero::after, .hero__overlay { display: none; }
  .article-hero__title, .page-hero__title, .hero__title { color: #000; font-size: 22pt; }
  a { color: #000; text-decoration: underline; }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__bg.is-active { transform: none; }
  .hero::after { display: none; }
}

/* Tablet/responsive obrázky: lazy aspect-ratio fallback */
@media (max-width: 1200px) {
  :root {
    --container: 1024px;
    --container-wide: 1200px;
  }
}

/* =================================================================
   RESPONSIVE — TABLET (≤1024 px)
   ================================================================= */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
  .grid--2 { grid-template-columns: 1fr; }

  /* Hero — slightly tighter na tablete */
  .hero__inner { padding: 7rem 22px 6rem; }
  .hero__title { font-size: clamp(2rem, 5vw, 4rem); }
  .hero__sub { font-size: 1.1rem; }

  .section { padding: 5.5rem 0; }
  .section__head { margin-bottom: 3rem; }

  .article-hero { min-height: 60vh; }
  .article-hero__inner { padding: 5rem 22px 3.5rem; }
  .article-body { padding: 4rem 22px 5rem; font-size: 1.1rem; }
  .article-body > p:first-of-type { font-size: 1.25rem; }
  .article-body h2 { font-size: 1.65rem; margin: 3rem 0 1rem; }
  .article-body h3 { font-size: 1.2rem; }

  .page-hero { padding: 6rem 0 4rem; }
  .page-body { padding: 3.5rem 22px 5rem; font-size: 1.05rem; }
}

/* =================================================================
   RESPONSIVE — MOBILE (≤768 px)
   ================================================================= */
@media (max-width: 768px) {
  body { font-size: 16px; }

  /* NAV — burger menu */
  .nav__inner { height: 56px; gap: 0.8rem; padding: 0 18px; }
  .nav__brand-text { display: none; }
  .nav__links { display: none; }
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; font-size: 1.6rem;
  }
  .nav__cta-btn { display: none; }
  .nav__lang {
    border-right: 0; padding-right: 0; gap: 0.6rem;
    font-size: 0.82rem;
  }
  .nav__lang a { padding: 0.5rem 0.3rem; min-width: 32px; text-align: center; }

  /* Otvorené burger menu — full-screen overlay vs malý dropdown */
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0.8rem 22px env(safe-area-inset-bottom, 1rem);
    border-bottom: 1px solid var(--border-soft);
    gap: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
  .nav.is-open .nav__links a {
    padding: 1rem 0; border-bottom: 1px solid var(--border-soft);
    opacity: 1; font-size: 1rem; font-weight: 500;
    min-height: 44px; display: flex; align-items: center;
  }
  .nav.is-open .nav__links a:last-child { border-bottom: 0; }

  /* HERO — fit on one screen, stack CTA */
  .hero { min-height: 88vh; min-height: 88svh; }
  .hero__inner { padding: 4.5rem 22px 5rem; }
  .hero__title {
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1.1; margin-bottom: 1.1rem;
  }
  .hero__sub {
    font-size: 1.02rem; margin-bottom: 1.6rem;
  }
  .hero__cta { justify-content: center; }
  .hero__cta .btn { min-height: 48px; padding: 0.9rem 1.6rem; }
  .hero__dots { bottom: 1.2rem; gap: 0.75rem; }
  .hero__dots button {
    width: 10px; height: 10px;            /* väčší tap target */
  }
  .hero::after { height: 32px; bottom: 0.6rem; }

  /* SECTIONS */
  .section { padding: 4rem 0; }
  .section--alt { padding: 4rem 0; }
  .section__title { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
  .section__head { margin-bottom: 2.2rem; }

  /* ARTICLE HERO + BODY */
  .article-hero { min-height: 50vh; }
  .article-hero__inner { padding: 4rem 22px 2.5rem; }
  .article-hero__title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .article-body {
    padding: 3rem 22px 4rem;
    font-size: 1.05rem; line-height: 1.6;
  }
  .article-body > p:first-of-type { font-size: 1.18rem; }
  .article-body h2 { font-size: 1.5rem; margin: 2.5rem 0 0.9rem; }
  .article-body h3 { font-size: 1.18rem; }
  .article-body blockquote {
    font-size: 1.15rem; padding-left: 1.2rem; margin: 1.8rem 0;
  }
  .article-body img { margin: 1.5rem 0; }
  .article-body table {
    font-size: 0.92rem;
  }
  /* Tabuľky scrollovateľné horizontálne na malom displeji */
  .article-body, .page-body { overflow-x: hidden; }
  .article-body table, .page-body table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .article-body table th, .article-body table td,
  .page-body table th, .page-body table td {
    white-space: normal;        /* obsah buniek wrapne, len header je nowrap */
    min-width: 8rem;
  }

  /* PAGE */
  .page-hero { padding: 4rem 0 3rem; }
  .page-hero__title { font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.1; }
  .page-hero__lead { font-size: 1.05rem; }
  .page-body {
    padding: 2.5rem 22px 4rem;
    font-size: 1.02rem; line-height: 1.6;
  }
  .page-body > p:first-of-type { font-size: 1.15rem; }
  .page-body h2 { font-size: 1.45rem; margin: 2.4rem 0 0.8rem; }
  .page-body h3 { font-size: 1.16rem; }
  .page-body blockquote { font-size: 1.04rem; padding-left: 1.2rem; }

  .article-footer { padding: 1.6rem 22px; margin-bottom: 3rem; }
  .article-cta { padding: 3.5rem 22px; }
  .article-cta__title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .article-cta__text { font-size: 1rem; }

  /* CARDS */
  .grid { gap: 1.6rem; }
  .grid--3 { grid-template-columns: 1fr; }
  .card__image { aspect-ratio: 16/10; }
  .card__title { font-size: 1.18rem; }
  .card__body { padding: 1.1rem 0 0; }

  /* BUTTONS — touch-friendly */
  .btn { min-height: 44px; padding: 0.78rem 1.4rem; }
  .btn--sm { min-height: 36px; padding: 0.5rem 1.05rem; }

  /* FORMS — anti-iOS-zoom (input font-size ≥ 16px) */
  .ioas-form input[type="text"],
  .ioas-form input[type="email"],
  .ioas-form input[type="tel"],
  .ioas-form select,
  .ioas-form textarea {
    font-size: 16px;            /* Safari iOS nezoomne pri focus */
    padding: 0.95rem 1rem;
  }
  .ioas-form textarea { min-height: 120px; }
  .ioas-form .form-row--checkbox label { font-size: 0.92rem; line-height: 1.45; }
  .ioas-form .form-row--checkbox input[type="checkbox"] {
    width: 20px; height: 20px;          /* tap-friendly */
  }
  .ioas-form button[type="submit"] { width: 100%; }
  .ioas-form--inline { flex-direction: column; gap: 0.7rem; }
  .ioas-form--inline button { width: 100%; }

  /* FOOTER */
  .footer { padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; padding: 0 22px; }
  .footer__bottom { padding: 1.2rem 22px 0; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* =================================================================
   RESPONSIVE — SMALL MOBILE (≤480 px)
   ================================================================= */
@media (max-width: 480px) {
  .container, .container--narrow, .container--wide { padding: 0 18px; }

  .nav__brand-mark { width: 28px; height: 28px; font-size: 0.72rem; }
  .nav__lang { font-size: 0.78rem; gap: 0.45rem; }
  .nav__lang a { padding: 0.5rem 0.25rem; min-width: 28px; }

  .hero__inner { padding: 4rem 18px 5rem; }
  .hero__title { font-size: clamp(1.7rem, 9vw, 2.6rem); }
  .hero__sub { font-size: 0.98rem; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  .article-hero__inner { padding: 3.5rem 18px 2rem; }
  .article-body { padding: 2.5rem 18px 3.5rem; }
  .page-body { padding: 2rem 18px 3.5rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; padding: 0 18px; }
  .footer__bottom { padding-left: 18px; padding-right: 18px; }

  .grid { gap: 1.4rem; }

  /* Cookie banner — full width na mini telefónoch */
  #ioas-cookie-banner {
    left: 0.6rem !important; right: 0.6rem !important; bottom: 0.6rem !important;
    padding: 0.95rem 1rem !important; gap: 0.5rem !important;
    border-radius: 12px !important;
    flex-direction: column !important; align-items: stretch !important;
  }
  #ioas-cookie-banner button { width: 100% !important; }
}

/* ========================================================================
   Tesla-style fullscreen panels — pre stránku /projekty/
   ======================================================================== */
.tesla {
  /* Reset margins; body already padded by nav. We extend full-bleed. */
  margin: 0;
  padding: 0;
}

.tesla__panel {
  position: relative;
  min-height: calc(100vh - 70px);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 64px;
  overflow: hidden;
  scroll-snap-align: start;
}

.tesla__panel--center { align-items: center; }
.tesla__panel--top    { align-items: flex-start; padding-top: 96px; padding-bottom: 32px; }

/* Background gradients — alternating dark / light, evoking Tesla model showcase */
.tesla__panel--intro {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0, 113, 227, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0c 0%, #1d1d1f 100%);
  color: #f5f5f7;
}
.tesla__panel--cyber {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 200, 255, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #050810 0%, #0d1421 100%);
  color: #f5f5f7;
}
.tesla__panel--dfos {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 220, 100, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #f5f5f7 0%, #e8e8ec 100%);
  color: #1d1d1f;
}
.tesla__panel--ndt {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(140, 100, 255, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, #15131c 0%, #1d1d1f 100%);
  color: #f5f5f7;
}
.tesla__panel--mycelium {
  background:
    radial-gradient(circle at 50% 70%, rgba(110, 200, 130, 0.20) 0%, transparent 65%),
    linear-gradient(180deg, #fafaf8 0%, #ececec 100%);
  color: #1d1d1f;
}
.tesla__panel--soil {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(180, 130, 80, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #1a1614 0%, #2a221c 100%);
  color: #f5f5f7;
}
.tesla__panel--vr {
  background:
    radial-gradient(circle at 60% 40%, rgba(0, 200, 200, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #f5f5f7 0%, #e0e8ec 100%);
  color: #1d1d1f;
}
.tesla__panel--cta {
  background: linear-gradient(180deg, #0a0a0c 0%, #1d1d1f 100%);
  color: #f5f5f7;
}

.tesla__bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tesla__bg-decor svg { width: min(60vw, 700px); height: auto; }

.tesla__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.tesla__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.72;
}

.tesla__title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.tesla__panel--dark .tesla__title,
.tesla__panel--cyber .tesla__title,
.tesla__panel--ndt .tesla__title,
.tesla__panel--soil .tesla__title,
.tesla__panel--intro .tesla__title,
.tesla__panel--cta .tesla__title { color: #f5f5f7; }

.tesla__lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.86;
  font-weight: 400;
}

.tesla__cta {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.tesla__btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  min-width: 200px;
  text-align: center;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  border: 1.5px solid transparent;
}
.tesla__btn:hover { transform: translateY(-1px); }

.tesla__panel--intro .tesla__btn--primary,
.tesla__panel--cyber .tesla__btn--primary,
.tesla__panel--ndt .tesla__btn--primary,
.tesla__panel--soil .tesla__btn--primary,
.tesla__panel--cta .tesla__btn--primary {
  background: rgba(245, 245, 247, 0.95);
  color: #1d1d1f;
}
.tesla__panel--intro .tesla__btn--primary:hover,
.tesla__panel--cyber .tesla__btn--primary:hover,
.tesla__panel--ndt .tesla__btn--primary:hover,
.tesla__panel--soil .tesla__btn--primary:hover,
.tesla__panel--cta .tesla__btn--primary:hover { background: #fff; color: #1d1d1f; }

.tesla__panel--intro .tesla__btn--secondary,
.tesla__panel--cyber .tesla__btn--secondary,
.tesla__panel--ndt .tesla__btn--secondary,
.tesla__panel--soil .tesla__btn--secondary,
.tesla__panel--cta .tesla__btn--secondary {
  background: rgba(20, 20, 24, 0.55);
  color: #f5f5f7;
  border-color: rgba(245, 245, 247, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tesla__panel--intro .tesla__btn--secondary:hover,
.tesla__panel--cyber .tesla__btn--secondary:hover,
.tesla__panel--ndt .tesla__btn--secondary:hover,
.tesla__panel--soil .tesla__btn--secondary:hover,
.tesla__panel--cta .tesla__btn--secondary:hover { background: rgba(20, 20, 24, 0.78); }

.tesla__panel--dfos .tesla__btn--primary,
.tesla__panel--mycelium .tesla__btn--primary,
.tesla__panel--vr .tesla__btn--primary {
  background: #1d1d1f;
  color: #fff;
}
.tesla__panel--dfos .tesla__btn--primary:hover,
.tesla__panel--mycelium .tesla__btn--primary:hover,
.tesla__panel--vr .tesla__btn--primary:hover { background: #000; }

.tesla__panel--dfos .tesla__btn--secondary,
.tesla__panel--mycelium .tesla__btn--secondary,
.tesla__panel--vr .tesla__btn--secondary {
  background: rgba(255, 255, 255, 0.55);
  color: #1d1d1f;
  border-color: rgba(29, 29, 31, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tesla__panel--dfos .tesla__btn--secondary:hover,
.tesla__panel--mycelium .tesla__btn--secondary:hover,
.tesla__panel--vr .tesla__btn--secondary:hover { background: rgba(255, 255, 255, 0.85); border-color: #1d1d1f; }

.tesla__scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  z-index: 2;
  animation: tesla-bounce 2.4s ease-in-out infinite;
}
@keyframes tesla-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50%     { transform: translateX(-50%) translateY(6px); opacity: 0.95; }
}

@media (max-width: 720px) {
  .tesla__panel { padding-bottom: 48px; min-height: calc(100vh - 60px); }
  .tesla__btn { min-width: 160px; padding: 12px 24px; }
  .tesla__cta { flex-direction: column; width: 100%; max-width: 320px; gap: 10px; }
  .tesla__btn { width: 100%; }
}

/* =================================================================
   COURSES CATALOG — /vzdelavanie/
   ================================================================= */
.courses-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
}
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  scroll-margin-top: 90px;
}
.course-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-2px);
}
.course-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.course-card__price {
  font-size: 0.95rem; color: var(--text-muted);
  white-space: nowrap;
}
.course-card__price strong {
  color: var(--text); font-size: 1.25rem; font-weight: 600;
  margin-right: 0.15rem;
  letter-spacing: -0.02em;
}
.course-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.course-card__tagline {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.5;
}
.course-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin: 0 0 1.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
}
.course-card__meta > div { display: flex; flex-direction: column; gap: 1px; }
.course-card__meta dt {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.course-card__meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}
.course-card__more {
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
  font-size: 0.92rem;
}
.course-card__more summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
  list-style: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  user-select: none;
}
.course-card__more summary::-webkit-details-marker { display: none; }
.course-card__more summary::after {
  content: "›";
  display: inline-block;
  transition: transform .2s ease;
  font-size: 1.1em;
}
.course-card__more[open] summary::after { transform: rotate(90deg); }
.course-card__more h4 {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}
.course-card__more ul,
.course-card__more ol {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  line-height: 1.55;
}
.course-card__more li { margin-bottom: 0.25rem; }
.course-card__more p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.course-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.course-card__cta .btn { flex: 1 1 auto; }

/* Badge — kategórie */
.course-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.course-badge--cybersecurity { background: #e0ecf6; color: #1a4f7c; }
.course-badge--gdpr          { background: #def6e1; color: #1f6e3a; }
.course-badge--audit         { background: #fbe2dd; color: #9a3023; }
.course-badge--engineering   { background: #ebdcf2; color: #6a3582; }
.course-badge--signal        { background: #fdecd2; color: #b07210; }
.course-badge--ai            { background: #d8eafa; color: #15568a; }
.course-badge--botnet        { background: #f7c4be; color: #8a2519; }

/* Course modal */
.course-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.course-modal.is-open { display: flex; }
.course-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 20, 22, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  animation: courseFade .18s ease;
}
.course-modal__panel {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: courseRise .22s ease;
}
.course-modal__close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none;
  font-size: 1.7rem;
  line-height: 1; color: var(--text-muted);
  cursor: pointer; padding: 0.25rem 0.5rem;
  border-radius: 50%;
}
.course-modal__close:hover { background: var(--bg-alt); color: var(--text); }
.course-modal__eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.course-modal__panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-right: 2rem;
}
.course-modal__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
.course-modal__status {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}
.course-modal__status.is-success { color: var(--success); }
.course-modal__status.is-error   { color: var(--error); }
.course-modal__status.is-loading { color: var(--text-muted); }

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.form-row--split > div { margin-bottom: 0; }

@keyframes courseFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes courseRise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .courses-catalog { grid-template-columns: 1fr; gap: 1.1rem; }
  .course-card { padding: 1.4rem 1.3rem 1.2rem; }
  .course-card__title { font-size: 1.2rem; }
  .course-card__meta { grid-template-columns: 1fr; }
  .course-card__cta .btn { width: 100%; flex: 0 0 100%; }
  .course-modal__panel { padding: 1.5rem 1.25rem 1.1rem; }
  .form-row--split { grid-template-columns: 1fr; }
}
