/* JA Czech e-learning landing — shared */
:root {
  --ink: #1a2f3d;
  --ink-soft: #3d5566;
  --navy: #2e5b7e;
  --teal-deep: #134b5e;
  --teal: #1cb0b8;
  --teal-mid: #5ba4b2;
  --mist: #c6ecf0;
  --ice: #e8f6f8;
  --sky: #b8e2e8;
  --footer: #33475b;
  --white: #ffffff;
  --cream: #f4fbfc;
  --line: rgba(19, 75, 94, 0.12);
  --shadow: 0 18px 50px rgba(19, 75, 94, 0.12);
  --radius: 4px;
  --font: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  width: min(220px, 52vw);
}

.logo img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.header-link {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s;
}

.header-link:hover {
  color: var(--white);
  border-color: var(--mist);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(100vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(28, 176, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(46, 91, 126, 0.5), transparent 50%),
    linear-gradient(145deg, #0d3a4a 0%, #134b5e 38%, #1a6a7a 72%, #2e5b7e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='104' viewBox='0 0 120 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0L120 104H0z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
  animation: drift 40s linear infinite;
  pointer-events: none;
}

/* JA geometric doves — replace former spinning shape */
.hero-birds {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-birds .bird {
  position: absolute;
  width: min(42vw, 380px);
  height: auto;
  display: block;
  will-change: transform, opacity;
}

.hero-birds .bird-1 {
  right: 8%;
  top: 6%;
  width: min(36vw, 340px);
  animation:
    bird-float 7s var(--ease) infinite,
    bird-pulse 3.8s ease-in-out infinite;
}

.hero-birds .bird-2 {
  right: 54%;
  top: 24%;
  width: min(18vw, 160px);
  animation:
    bird-float-alt 9s var(--ease) infinite 1.2s,
    bird-pulse-soft 4.4s ease-in-out infinite 0.6s;
}

.hero-birds .bird-3 {
  right: 14%;
  bottom: 10%;
  top: auto;
  width: min(14vw, 120px);
  animation:
    bird-float 8s var(--ease) infinite 2.4s,
    bird-pulse-softer 5s ease-in-out infinite 1.1s;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 120px 104px; }
}

@keyframes bird-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg) scale(1);
  }
  50% {
    transform: translate(-12px, -18px) rotate(2deg) scale(1.03);
  }
}

@keyframes bird-float-alt {
  0%,
  100% {
    transform: translate(0, 0) rotate(3deg) scale(1);
  }
  50% {
    transform: translate(10px, -14px) rotate(-2deg) scale(1.04);
  }
}

@keyframes bird-pulse {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 0.42;
  }
}

@keyframes bird-pulse-soft {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.26;
  }
}

@keyframes bird-pulse-softer {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.18;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 8.5rem 0 4.5rem;
  max-width: 38rem;
}

.hero-brand {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 1.1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.22s forwards;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.34s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.46s forwards;
}

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

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 1.15rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

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

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(28, 176, 184, 0.35);
}

.btn-primary:hover {
  background: #18c4cd;
  box-shadow: 0 14px 34px rgba(28, 176, 184, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--teal-deep);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ——— Sections ——— */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ——— Why ——— */
.why {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}

@media (min-width: 901px) {
  .why-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .why-grid .why-item {
    grid-column: span 2;
  }

  .why-grid .why-item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .why-grid .why-item:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.why-item {
  padding: 0.25rem 0;
}

.why-item .mark {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  background: var(--ice);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.75rem;
}

.why-item h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.why-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Packages ——— */
.packages {
  background:
    linear-gradient(180deg, var(--ice) 0%, var(--cream) 40%, var(--white) 100%);
}

.package-grid {
  display: grid;
  gap: 1.25rem;
}

.package-grid.ss {
  grid-template-columns: repeat(2, 1fr);
}

.package-grid.zs {
  grid-template-columns: repeat(2, 1fr);
}

.package-grid.vs {
  grid-template-columns: repeat(2, 1fr);
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.75rem 1.65rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  box-shadow: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  text-decoration: none;
  color: inherit;
}

.package:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
  border-left-color: var(--navy);
}

.package.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem 2rem;
  background:
    linear-gradient(120deg, rgba(198, 236, 240, 0.55), rgba(255, 255, 255, 0.95) 45%),
    var(--white);
  border-left-width: 5px;
  border-left-color: var(--navy);
  padding: 2rem;
}

.package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.package-count {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--mist);
  padding: 0.28rem 0.65rem;
}

.package h3 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

.package > p,
.package-body > p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.course-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.course-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.course-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.course-list .more {
  color: var(--ink-soft);
  font-style: italic;
}

.course-list li.course-group {
  padding-left: 0;
  margin-top: 0.85rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.course-list li.course-group::before {
  display: none;
}

.course-list li.course-group:first-child {
  margin-top: 0;
}

.course-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.paid-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-top: 0.12rem;
  color: var(--navy);
}

.paid-badge svg {
  width: 14px;
  height: 14px;
  display: block;
}

.paid-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.paid-legend a {
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.paid-legend a:hover {
  color: var(--teal-deep);
}

.paid-legend svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--navy);
}

.info-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.info-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hero .info-note {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 1.15rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.58s forwards;
}

.cta-band .info-note {
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 1.15rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.modal-actions [hidden] {
  display: none !important;
}

.modal-actions .btn {
  font-size: 0.86rem;
  padding: 0.8rem 1.15rem;
}

.package-cta {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.package-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: auto;
}

.package-actions .package-cta {
  margin-top: 0;
}

.package-actions .btn {
  font-size: 0.82rem;
  padding: 0.7rem 1.05rem;
}

.package .btn {
  align-self: flex-start;
}

.package:hover .package-cta {
  color: var(--teal-deep);
}

.package-cta svg {
  transition: transform 0.25s var(--ease);
}

.package:hover .package-cta svg {
  transform: translateX(4px);
}

/* ——— Steps ——— */
.steps {
  background: var(--white);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.25rem 1.35rem;
  background: var(--ice);
  border-top: 3px solid var(--teal);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.step p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ——— Contains / subjects ——— */
.contains {
  background:
    linear-gradient(180deg, var(--teal-deep), var(--navy));
  color: var(--white);
}

.contains .section-head h2,
.contains .section-head p {
  color: var(--white);
}

.contains .section-head p {
  opacity: 0.85;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}

.check-grid li {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 1rem;
}

.check-grid ul {
  margin: 0;
  padding: 0;
  display: contents;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  background: var(--teal);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.subjects {
  background: var(--ice);
}

.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subject-list li {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal-deep);
}

/* ——— FAQ ——— */
.faq {
  background: var(--white);
}

.faq-list {
  max-width: 720px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.15rem 2rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  font-size: 1.25rem;
  color: var(--teal);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  padding-right: 2rem;
}

/* ——— CTA band ——— */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(28, 176, 184, 0.3), transparent 55%),
    linear-gradient(120deg, var(--teal-deep), #1a5a6c 50%, var(--navy));
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}

.cta-band p {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  opacity: 0.9;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--mist);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer strong {
  color: var(--white);
  font-family: var(--font);
}

.site-footer a {
  color: var(--mist);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Modal for package detail ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(13, 42, 54, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  width: min(100%, 640px);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: var(--white);
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  transition: transform 0.35s var(--ease);
}

.modal.open .modal-panel {
  transform: translateY(0);
}

.modal-panel h3 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 1.5rem 0.75rem 0;
}

.modal-close {
  float: right;
  border: 0;
  background: var(--ice);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

.modal-panel .course-list {
  margin-bottom: 1.5rem;
}

body.modal-open {
  overflow: hidden;
}

/* ——— Page switcher ——— */
.level-switch {
  display: inline-flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
}

.level-switch a {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.68rem 1.125rem;
}

.level-switch a.active {
  background: var(--white);
  color: var(--teal-deep);
}

/* ——— Gate (entry) page ——— */
.gate-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gate-hero {
  position: relative;
  flex: 1;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  min-height: min(100vh, 860px);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(28, 176, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(46, 91, 126, 0.5), transparent 50%),
    linear-gradient(145deg, #0d3a4a 0%, #134b5e 38%, #1a6a7a 72%, #2e5b7e 100%);
}

.gate-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='104' viewBox='0 0 120 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0L120 104H0z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
  animation: drift 40s linear infinite;
  pointer-events: none;
}

.gate-inner {
  position: relative;
  z-index: 2;
  padding: 7.5rem 0 4rem;
  max-width: none;
  text-align: center;
}

.gate-inner .hero-brand,
.gate-inner h1,
.gate-inner .hero-lead {
  margin-inline: auto;
}

.gate-inner h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.22s forwards;
}

.gate-lead {
  max-width: 36rem;
}

.gate-hint {
  margin: 1.75rem auto 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.62s forwards;
}

.gate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2.75rem;
  text-align: left;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

.gate-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.65rem 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.gate-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(8, 40, 52, 0.28);
}

.gate-card-label {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.gate-card-title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.gate-card-desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  flex: 1;
}

.gate-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white);
}

.gate-footer {
  margin-top: auto;
}

/* ——— VŠ brief page ——— */
.hero-compact {
  min-height: min(72vh, 620px);
}

.vs-brief {
  background: var(--cream);
}

.vs-summary {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.vs-summary .hero-actions {
  opacity: 1;
  animation: none;
}

.vs-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .why-grid,
  .steps-row,
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package.featured {
    grid-template-columns: 1fr;
  }

  .gate-cards {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .why-grid,
  .steps-row,
  .check-grid,
  .package-grid.ss,
  .package-grid.zs,
  .package-grid.vs {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 7.5rem 0 3.5rem;
  }

  .hero-birds .bird-1 {
    right: 4%;
    top: 8%;
    width: 42vw;
  }

  .hero-birds .bird-2 {
    right: 58%;
    top: 30%;
    width: 24vw;
  }

  .hero-birds .bird-3 {
    right: 8%;
    bottom: 14%;
    top: auto;
    width: 18vw;
  }

  section {
    padding: 3.5rem 0;
  }

  .level-switch a {
    padding: 0.6rem 0.85rem;
    font-size: 1.05rem;
  }

  .gate-inner {
    padding: 6.5rem 0 3rem;
  }

  .gate-cards {
    margin-top: 2rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-birds .bird {
    opacity: 0.5;
    transform: none;
  }

  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero .info-note,
  .gate-inner h1,
  .gate-cards,
  .gate-hint {
    opacity: 1;
  }
}
