:root {
  --page: #eef3f8;
  --panel: #ffffff;
  --text: #12213a;
  --muted: #65738a;
  --line: #d9e5f1;
  --blue: #16b8ee;
  --blue-2: #2365de;
  --dark: #11294d;
  --green: #15915f;
  --amber: #9a6900;
  --soft-blue: #eef9ff;
  --soft-green: #edf9f3;
  --soft-amber: #fff7e6;
  --shadow: 0 18px 44px rgba(20, 43, 78, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(22, 184, 238, .14), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(35, 101, 222, .12), transparent 32%),
    var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, a { font: inherit; }
img { max-width: 100%; }

.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 14px 28px rgba(22, 184, 238, .25);
}

.brand strong, .brand small { display: block; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 13px; }

.top-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--dark);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.top-links a:hover {
  border-color: #bfeaff;
  background: var(--soft-blue);
}

.mobile-menu-toggle,
.mobile-menu-panel {
  display: none;
}

.mobile-menu-toggle {
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-toggle strong {
  margin-left: 4px;
  font-size: 13px;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  width: min(260px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(20, 43, 78, .16);
  backdrop-filter: blur(12px);
}

.mobile-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--dark);
  font-weight: 900;
}

.mobile-menu-panel a:hover {
  background: var(--soft-blue);
}

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.hero-copy,
.hero-media,
.stats-row > div,
.focus-panel,
.topic-shell,
.module-card,
.topic-card,
.seo-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, #18336a 0%, #2365de 58%, #10b9ee 100%);
  overflow: hidden;
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -90px;
  bottom: -90px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, .11);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.14; }
h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.25; }
p { color: var(--muted); line-height: 1.62; }
.hero-copy p { position: relative; max-width: 640px; margin-bottom: 0; color: rgba(255,255,255,.88); font-size: 17px; }

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.topic-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 900;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #188ff2, #13bced);
  box-shadow: 0 14px 28px rgba(18, 142, 230, .24);
}

.ghost-btn {
  color: #14315c;
  background: #fff;
}

.hero-media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #102543;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 59, 0) 50%, rgba(7, 27, 59, .52) 100%);
  pointer-events: none;
}

.media-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(7, 29, 62, .72);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px);
}
.media-note strong { font-size: 18px; }
.media-note span { color: rgba(255,255,255,.78); font-weight: 700; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stats-row > div {
  min-height: 96px;
  padding: 16px;
  box-shadow: none;
}
.stats-row strong { display: block; font-size: 30px; line-height: 1; }
.stats-row span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; font-weight: 800; }

.focus-panel {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  margin-bottom: 16px;
}

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

.focus-grid article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}
.focus-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.focus-grid strong { display: block; margin-bottom: 6px; font-size: 17px; }
.focus-grid p { margin-bottom: 0; font-size: 14px; }

.topic-shell { padding: 20px; }

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-title p { max-width: 680px; margin-bottom: 0; }

.filter-controls {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f9fd;
  white-space: nowrap;
}
.filter-controls button {
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}
.filter-controls button.active,
.filter-controls button:hover {
  color: var(--blue-2);
  background: #fff;
  box-shadow: 0 8px 18px rgba(20,43,78,.08);
}

.module-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.module-nav a {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.module-nav a:hover { border-color: #9fe5ff; background: var(--soft-blue); }
.module-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 0 0 5px rgba(22,184,238,.12);
}
.module-code {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.module-nav strong { display: block; margin-bottom: 4px; }
.module-nav small { color: var(--muted); font-size: 13px; font-weight: 800; }

.module-board { display: grid; gap: 14px; }
.module-card { padding: 18px; box-shadow: none; }
.module-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.module-card-head h3 { margin-bottom: 6px; font-size: 22px; }
.module-card-head p { margin: 0; max-width: 820px; font-size: 14px; }
.module-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #2041b7;
  background: #eef6ff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.status.ready, .status.active { color: var(--green); background: var(--soft-green); }
.status.planned { color: var(--amber); background: var(--soft-amber); }
.status.locked { color: #5d6878; background: #edf1f6; }

.topic-list {
  display: grid;
  gap: 8px;
}

.topic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 12px;
  border-radius: 14px;
  box-shadow: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.topic-card:hover {
  transform: translateY(-2px);
  border-color: #aee9ff;
  box-shadow: 0 16px 34px rgba(20, 43, 78, .08);
}
.topic-main { min-width: 0; }
.topic-card h3 { min-height: 0; margin-bottom: 5px; font-size: 17px; }
.topic-card p { margin-bottom: 0; font-size: 14px; line-height: 1.45; }
.topic-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.topic-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #234061;
  background: #edf6ff;
  font-size: 12px;
  font-weight: 900;
}
.topic-action {
  min-height: 40px;
  width: auto;
  margin-top: 0;
  padding: 10px 13px;
  white-space: nowrap;
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, #188ff2, #13bced);
}
.topic-action.is-disabled {
  color: #7b8797;
  border-color: var(--line);
  background: #f2f5f8;
  cursor: not-allowed;
}

.seo-note {
  margin-top: 16px;
  padding: 20px;
  box-shadow: none;
}
.seo-note h2 { margin-bottom: 8px; font-size: 22px; }
.seo-note p { max-width: 900px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--blue-2);
  background: #fff;
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero,
  .focus-panel { grid-template-columns: 1fr; }
  .hero-copy,
  .hero-media { min-height: 320px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-nav,
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card { grid-template-columns: 1fr; align-items: start; }
  .topic-side { grid-template-columns: 1fr; }
  .topic-action { width: 100%; }
}

@media (max-width: 680px) {
  .site-bar {
    position: sticky;
    display: flex;
    padding: 10px 12px;
  }
  .top-links {
    display: none;
  }
  .mobile-menu-toggle { display: inline-flex; }
  .mobile-menu-panel.is-open { display: block; }
  .page {
    width: calc(100% - 18px);
    margin-top: 10px;
  }
  .hero { gap: 10px; }
  .hero-copy {
    min-height: auto;
    padding: 22px;
    border-radius: 16px;
  }
  .hero-copy p { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-media { min-height: 260px; border-radius: 16px; }
  .media-note {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: -10px 10px 10px;
  }
  .stats-row,
  .module-nav,
  .focus-grid { grid-template-columns: 1fr; }
  .stats-row > div { min-height: 82px; }
  .focus-panel,
  .topic-shell,
  .module-card,
  .seo-note { padding: 14px; border-radius: 16px; }
  .section-title,
  .module-card-head { display: grid; }
  .filter-controls {
    overflow-x: auto;
    width: 100%;
  }
  .topic-card {
    min-height: auto;
    padding: 12px;
  }
  .topic-card h3 { min-height: 0; }
}

/* Access and unified lesson navigation */
.lesson-switcher {
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lesson-switcher a,
.lesson-switcher span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line, #d9e5f1);
  border-radius: 10px;
  background: #fff;
  color: var(--dark, #11294d);
  font-weight: 900;
  font-size: 14px;
}
.lesson-switcher span { color: var(--muted, #65738a); background: #f8fbff; }
.locked-topic { position: relative; opacity: .86; }
.locked-topic::after {
  content: "Aktivlik";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #17335b;
  background: #e8f3ff;
  border: 1px solid #cfe2f5;
  font-size: 12px;
  font-weight: 900;
}
.director-access-gate {
  width: min(980px, calc(100% - 28px));
  margin: 22px auto 44px;
}
.gate-card {
  border: 1px solid #cfe2f5;
  border-radius: 18px;
  padding: clamp(20px, 4vw, 38px);
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
  box-shadow: 0 18px 44px rgba(20, 43, 78, .10);
}
.gate-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #1c5db5;
  background: #e8f3ff;
  font-weight: 900;
  font-size: 13px;
}
.gate-card h1 { max-width: 760px; margin-bottom: 10px; font-size: clamp(26px, 4vw, 42px); }
.gate-card p { max-width: 720px; color: var(--muted, #65738a); }
.gate-price {
  display: inline-grid;
  gap: 3px;
  margin: 10px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #11294d;
  background: #fff;
  border: 1px solid #d9e5f1;
}
.gate-price strong { font-size: 24px; }
.gate-price span { color: #65738a; font-weight: 800; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gate-status { margin-top: 12px; color: #65738a; font-weight: 800; }
@media (max-width: 720px) {
  .lesson-switcher { display: grid; grid-template-columns: 1fr; }
  .lesson-switcher a, .lesson-switcher span { width: 100%; justify-content: flex-start; }
  .gate-actions .primary-btn, .gate-actions .ghost-btn { width: 100%; }
}
