:root {
  --szamos-green: #20B099;
  --szamos-green-dark: #167d6e;
  --ink: #17312d;
  --muted: #667d78;
  --paper: #f6f8f5;
  --card: #ffffff;
  --line: #dfe8e5;
  --gold: #c6a25a;
  --shadow: 0 18px 45px rgba(23,49,45,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.topbar {
  height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--szamos-green); color: white;
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 22px;
}
.brand-name { font-weight: 700; letter-spacing: .02em; }
.brand-name strong { color: var(--gold); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.pilot-badge { padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; border: 1px solid var(--line); border-radius: 999px; }
.profile-button { width: 38px; height: 38px; border-radius: 50%; border: 0; color: white; background: var(--ink); font-weight: 700; }

.view { display: none; }
.view.active { display: block; }

.hero {
  min-height: 620px;
  padding: 82px 7vw 70px;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr);
  align-items: center;
  gap: 7vw;
  background:
    radial-gradient(circle at 85% 15%, rgba(32,176,153,.14), transparent 26%),
    linear-gradient(180deg, #fbfcfa 0%, #f2f7f4 100%);
}
.eyebrow { color: var(--szamos-green-dark); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.hero h1, .course-header h1, .lesson-content h1 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 14px 0 20px;
  line-height: 1.03;
}
.hero h1 { font-size: clamp(52px, 6vw, 88px); }
.hero h1 span { color: var(--szamos-green); }
.hero-copy > p { max-width: 650px; font-size: 19px; line-height: 1.7; color: var(--muted); margin-bottom: 30px; }
.primary-button {
  border: 0; border-radius: 12px; padding: 15px 20px;
  background: var(--ink); color: white; font-weight: 700;
  display: inline-flex; align-items: center; gap: 14px;
  box-shadow: 0 10px 24px rgba(23,49,45,.15);
}
.primary-button:hover { transform: translateY(-1px); }
.primary-button.compact { padding: 11px 14px; font-size: 14px; }
.primary-button:disabled,
.text-button:disabled {
  opacity: .48;
  box-shadow: none;
  transform: none;
}
.primary-button:disabled:hover { transform: none; }

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.hotel-icon {
  width: 70px; height: 70px; border-radius: 20px;
  background: var(--szamos-green); color: white;
  display: grid; place-items: center;
  font-family: "Playfair Display", serif; font-size: 36px; font-weight: 700;
  margin-bottom: 28px;
}
.card-kicker { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.hero-panel h2 { margin: 8px 0 6px; font-family: "Playfair Display", serif; font-size: 36px; }
.hero-panel p { color: var(--muted); }
.progress-block { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.progress-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.progress-track, .mini-progress { width: 100%; height: 9px; border-radius: 99px; background: #e7efec; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--szamos-green); border-radius: inherit; transition: width .35s ease; }
.progress-block small { display: block; margin-top: 8px; color: var(--muted); }

.content-section { max-width: 1180px; margin: 0 auto; padding: 70px 24px 90px; }
.section-heading h2 { font-family: "Playfair Display", serif; font-size: 38px; margin: 9px 0 28px; }
.course-card { display: grid; grid-template-columns: 12px 1fr; background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.course-card-accent { background: var(--szamos-green); }
.course-card-body { padding: 32px; }
.course-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.course-card h3 { margin: 18px 0 8px; font-family: "Playfair Display", serif; font-size: 30px; }
.course-card p { color: var(--muted); line-height: 1.65; }
.course-card-footer { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-top: 28px; }
.text-button { border: 0; background: transparent; color: var(--szamos-green-dark); font-weight: 700; }

.page-shell, .lesson-shell { max-width: 1180px; margin: 0 auto; padding: 48px 24px 90px; }
.back-button { border: 0; background: transparent; padding: 0; color: var(--muted); font-weight: 600; margin-bottom: 36px; }
.course-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.course-header h1 { font-size: 52px; margin-bottom: 8px; }
.course-header p { color: var(--muted); margin: 0; }
.course-stat { text-align: right; }
.course-stat strong { display: block; font-size: 36px; color: var(--szamos-green); }
.course-stat span { color: var(--muted); font-size: 13px; }
.module-list { display: grid; gap: 18px; margin-top: 34px; }
.module-card { display: grid; grid-template-columns: 92px 1fr; gap: 24px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.module-card.locked { opacity: .64; }
.module-number { font-family: "Playfair Display", serif; font-size: 48px; color: var(--szamos-green); }
.module-status { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--szamos-green-dark); }
.module-card h2 { margin: 8px 0; font-family: "Playfair Display", serif; }
.module-card p { color: var(--muted); line-height: 1.6; }
.module-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.lock { font-weight: 700; }

.lesson-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 52px; align-items: start; }
.lesson-sidebar { position: sticky; top: 110px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.lesson-sidebar h2 { font-family: "Playfair Display", serif; font-size: 26px; margin: 10px 0 24px; }
.lesson-nav { display: grid; gap: 8px; }
.lesson-nav-item { text-align: left; border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: var(--muted); }
.lesson-nav-item.active { background: rgba(32,176,153,.1); color: var(--szamos-green-dark); font-weight: 700; }
.lesson-content { background: white; border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px,5vw,56px); box-shadow: var(--shadow); min-height: 600px; }
.lesson-section { display: none; }
.lesson-section.active { display: block; }
.lesson-label { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .12em; }
.lesson-content h1 { font-size: clamp(38px,5vw,58px); }
.lead { font-size: 19px; color: var(--muted); line-height: 1.75; }
.lesson-content > .lesson-section > p:not(.lead) { line-height: 1.75; color: #405953; }
.fact-card { display: flex; gap: 18px; padding: 22px; margin: 30px 0; border-radius: 15px; background: #eff8f5; border: 1px solid #d6eee8; }
.fact-icon { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--szamos-green); color: white; font-weight: 700; }
.fact-card p { margin: 4px 0 0; color: var(--muted); }
.lesson-next { margin-top: 24px; }
.timeline { display: grid; gap: 18px; margin: 30px 0; }
.timeline-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.timeline-item > span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--szamos-green); color: white; font-weight: 700; }
.timeline-item strong { font-size: 18px; }
.timeline-item p { margin: 5px 0 0; color: var(--muted); line-height: 1.6; }
.quiz-form { display: grid; gap: 20px; margin-top: 30px; }
.quiz-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 12px; }
.quiz-form legend { font-weight: 700; padding: 0 6px; }
.quiz-form label { display: flex; align-items: flex-start; gap: 10px; color: #405953; }
.quiz-result { margin-top: 22px; padding: 20px; border-radius: 14px; background: #eff8f5; border: 1px solid #d6eee8; font-weight: 700; }

.footer { padding: 28px 5vw; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: white; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-panel { max-width: 620px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
  .course-header { align-items: flex-start; }
}

@media (max-width: 620px) {
  .topbar { padding: 0 18px; }
  .brand-name { font-size: 14px; }
  .pilot-badge { display: none; }
  .hero { padding: 44px 20px 54px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 17px; }
  .hero-panel { padding: 24px; }
  .content-section, .page-shell, .lesson-shell { padding-left: 18px; padding-right: 18px; }
  .course-card-footer { grid-template-columns: 1fr; }
  .course-header { display: grid; }
  .course-stat { text-align: left; }
  .course-header h1 { font-size: 40px; }
  .module-card { grid-template-columns: 1fr; }
  .module-number { font-size: 36px; }
  .module-footer { align-items: flex-start; flex-direction: column; }
  .footer { flex-direction: column; }
}