/* ==================================================================
   UNITED ACADEMY — Public pages refresh
   Shared visual layer for the home, courses, and path pages.
   ================================================================== */

:root {
  --ua-public-max: 1200px;
  --ua-public-bg: #07111f;
  --ua-public-surface: rgba(15, 29, 48, .88);
  --ua-public-surface-solid: #0f1d30;
  --ua-public-border: rgba(148, 163, 184, .16);
  --ua-public-text: #e8eef7;
  --ua-public-muted: #9eacc0;
  --ua-public-primary: #14b8a6;
  --ua-public-primary-strong: #0f9f91;
  --ua-public-accent: #60a5fa;
  --ua-public-radius: 22px;
  --ua-public-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

html.theme-light {
  --ua-public-bg: #f5f8fc;
  --ua-public-surface: rgba(255, 255, 255, .94);
  --ua-public-surface-solid: #ffffff;
  --ua-public-border: rgba(15, 23, 42, .12);
  --ua-public-text: #102033;
  --ua-public-muted: #526176;
  --ua-public-primary: #0f9488;
  --ua-public-primary-strong: #0b7e74;
  --ua-public-accent: #2563eb;
  --ua-public-shadow: 0 22px 55px rgba(15, 23, 42, .09);
}

body[data-page="home"],
body[data-page="courses"],
body[data-page="path"],
body.public-page {
  background-color: var(--ua-public-bg);
  color: var(--ua-public-text);
}

body.public-page .holo-grid,
body.public-page .scanlines {
  opacity: .18;
}

body.public-page .main-header {
  min-height: 72px;
  padding: 10px max(20px, calc((100vw - var(--ua-public-max)) / 2));
  background: color-mix(in srgb, var(--ua-public-bg) 88%, transparent);
  border-bottom: 1px solid var(--ua-public-border);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body.public-page .logo-img {
  width: 48px;
  height: 48px;
}

body.public-page .navigation ul {
  gap: 3px;
}

body.public-page .navigation a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ua-public-muted);
  font-size: .9rem;
  font-weight: 700;
}

body.public-page .navigation a:hover,
body.public-page .navigation .nav-active {
  background: rgba(20, 184, 166, .09);
  border-color: rgba(20, 184, 166, .18);
  color: var(--ua-public-primary);
}

body.public-page .navigation .btn-get-started {
  background: var(--ua-public-primary);
  border-color: var(--ua-public-primary);
  color: #fff !important;
  box-shadow: none;
}

body.public-page .navigation .nav-logout {
  color: #f87171;
}

.public-main {
  position: relative;
  z-index: 1;
  padding-block: 28px 18px;
}

body.public-page .section-box {
  width: min(var(--ua-public-max), calc(100% - 40px));
  margin: 0 auto 28px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--ua-public-border);
  border-radius: var(--ua-public-radius);
  background: var(--ua-public-surface);
  box-shadow: none;
}

body.public-page .section-box.alt {
  border-radius: var(--ua-public-radius);
  background: color-mix(in srgb, var(--ua-public-surface-solid) 76%, transparent);
}

body.public-page .section-box::before {
  height: 1px;
  opacity: .38;
}

body.public-page .section-box::after {
  opacity: .2;
}

body.public-page h1,
body.public-page h2,
body.public-page h3,
body.public-page .step-title,
body.public-page .kpi-val,
body.public-page .partner-name {
  color: var(--ua-public-text);
}

body.public-page .section-subline,
body.public-page .step-text,
body.public-page .partner-desc,
body.public-page .faq-a {
  color: var(--ua-public-muted);
}

body.public-page .logic-card,
body.public-page .step-card,
body.public-page .partner-card,
body.public-page .privacy-card,
body.public-page .kpi-card,
body.public-page .plan-card,
body.public-page .mini-note,
body.public-page details.faq-item {
  border-color: var(--ua-public-border);
  background: var(--ua-public-surface-solid);
  box-shadow: none;
}

body.public-page .logic-card:hover,
body.public-page .step-card:hover,
body.public-page .partner-card:hover,
body.public-page .privacy-card:hover {
  border-color: rgba(20, 184, 166, .3);
  transform: translateY(-2px);
}

html.theme-light body.public-page .privacy-card h3,
html.theme-light body.public-page .privacy-card p,
html.theme-light body.public-page .logic-card h3,
html.theme-light body.public-page .logic-card p,
html.theme-light body.public-page .kpi-title,
html.theme-light body.public-page .kpi-sub,
html.theme-light body.public-page .plan-badge,
html.theme-light body.public-page .plan-meta,
html.theme-light body.public-page details.faq-item summary,
html.theme-light body.public-page .mini-note,
html.theme-light body.public-page .calc-chip {
  color: #334155 !important;
}

html.theme-light body.public-page .levels-table th {
  background: #e8eef6;
  color: #172033;
}

html.theme-light body.public-page .levels-table td {
  background: #fff;
  color: #334155;
}

body.public-page .ua-theme-float {
  display: none;
}

body[data-page="contact"] .section-box:first-of-type {
  padding-top: 48px !important;
}

body[data-page="contact"] .section-box:first-of-type > .content-wrapper {
  display: flex;
  flex-direction: column;
}

body[data-page="contact"] .section-box:first-of-type .section-sub-title {
  order: 1;
}

body[data-page="contact"] .section-box:first-of-type h1 {
  order: 2;
}

body[data-page="contact"] .section-box:first-of-type h1 + .section-subline {
  order: 3;
}

body[data-page="contact"] .section-box:first-of-type .cta-box:not(.contact-note) {
  order: 4;
  margin-top: 28px !important;
}

body[data-page="contact"] .section-box:first-of-type .contact-actions {
  order: 5;
  margin-top: 34px !important;
}

body[data-page="contact"] .section-box:first-of-type .contact-note {
  order: 6;
}

body[data-page="contact"] .course-search {
  width: 100%;
  color: var(--ua-public-text);
  border-color: var(--ua-public-border);
}

html.theme-light body[data-page="contact"] label {
  color: #334155 !important;
}

html.theme-light body[data-page="contact"] .course-search {
  background: #fff !important;
  color: #172033;
}

html.theme-light body[data-page="contact"] .contact-note .btn-secondary-cta {
  background: #eef3f8 !important;
  color: #172033;
}

body[data-page="login"] .section-box,
body[data-page="register"] .section-box {
  min-height: calc(100vh - 160px) !important;
  padding-top: 48px !important;
}

body[data-page="login"] .auth-card,
body[data-page="register"] .auth-card {
  border: 1px solid var(--ua-public-border);
  background: var(--ua-public-surface-solid);
  box-shadow: var(--ua-public-shadow);
}

html.theme-light body[data-page="login"] .auth-card,
html.theme-light body[data-page="register"] .auth-card {
  color: #172033;
}

html.theme-light body[data-page="login"] .field label,
html.theme-light body[data-page="register"] .field label,
html.theme-light body[data-page="register"] .ua-label,
html.theme-light body[data-page="register"] .checkbox-group {
  color: #334155 !important;
}

html.theme-light body[data-page="register"] .auth-card > h3 {
  color: #172033 !important;
  border-bottom-color: rgba(15, 23, 42, .12) !important;
}

html.theme-light body[data-page="register"] .ua-hint,
html.theme-light body[data-page="register"] .ua-optional {
  color: #64748b;
}

html.theme-light body[data-page="login"] .field input,
html.theme-light body[data-page="register"] .field input,
html.theme-light body[data-page="register"] .field select {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .14);
  color: #172033;
}

body[data-page="home"] .holo-grid,
body[data-page="courses"] .holo-grid,
body[data-page="path"] .holo-grid,
body[data-page="home"] .scanlines,
body[data-page="courses"] .scanlines,
body[data-page="path"] .scanlines {
  opacity: .22;
}

body[data-page="home"] .main-header,
body[data-page="courses"] .main-header,
body[data-page="path"] .main-header {
  min-height: 72px;
  padding: 10px max(20px, calc((100vw - var(--ua-public-max)) / 2));
  background: color-mix(in srgb, var(--ua-public-bg) 88%, transparent);
  border-bottom: 1px solid var(--ua-public-border);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body[data-page="home"] .logo-img,
body[data-page="courses"] .logo-img,
body[data-page="path"] .logo-img {
  width: 48px;
  height: 48px;
}

body[data-page="home"] .navigation ul,
body[data-page="courses"] .navigation ul,
body[data-page="path"] .navigation ul {
  gap: 3px;
}

body[data-page="home"] .navigation a,
body[data-page="courses"] .navigation a,
body[data-page="path"] .navigation a,
body[data-page="home"] .nav-dropdown-toggle {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ua-public-muted);
  font-size: .9rem;
  font-weight: 700;
}

body[data-page="home"] .navigation a:hover,
body[data-page="courses"] .navigation a:hover,
body[data-page="path"] .navigation a:hover,
body[data-page="home"] .nav-dropdown-toggle:hover,
body[data-page="home"] .navigation .nav-active,
body[data-page="courses"] .navigation .nav-active,
body[data-page="path"] .navigation .nav-active {
  background: rgba(20, 184, 166, .09);
  border-color: rgba(20, 184, 166, .18);
  color: var(--ua-public-primary);
}

body[data-page="home"] .navigation .btn-get-started,
body[data-page="courses"] .navigation .btn-get-started,
body[data-page="path"] .navigation .btn-get-started {
  background: var(--ua-public-primary);
  border-color: var(--ua-public-primary);
  color: #fff !important;
  box-shadow: none;
}

.public-theme-toggle,
body[data-page="home"] .focus-toggle,
body[data-page="courses"] .focus-toggle,
body[data-page="path"] .focus-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ua-public-border);
  border-radius: 12px;
  background: var(--ua-public-surface);
  color: var(--ua-public-muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.public-theme-toggle:hover,
body[data-page="home"] .focus-toggle:hover,
body[data-page="courses"] .focus-toggle:hover,
body[data-page="path"] .focus-toggle:hover {
  border-color: rgba(20, 184, 166, .38);
  color: var(--ua-public-primary);
  transform: translateY(-1px);
}

body.public-page .hamburger,
body[data-page="home"] .hamburger,
body[data-page="courses"] .hamburger,
body[data-page="path"] .hamburger {
  border-color: var(--ua-public-border);
  background: var(--ua-public-surface);
  color: var(--ua-public-text);
}

body[data-page="home"] .ua-theme-float,
body[data-page="courses"] .ua-theme-float,
body[data-page="path"] .ua-theme-float {
  display: none;
}

body[data-page="home"] .crypto-bar {
  min-height: 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--ua-public-border);
  background: #091523;
}

body[data-page="home"] .hero-section {
  width: min(var(--ua-public-max), calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 0 64px;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: clamp(36px, 6vw, 76px);
}

body[data-page="home"] .hero-content {
  text-align: right;
}

body[data-page="home"] .urgency-badge {
  width: fit-content;
  margin: 0 0 20px;
  padding: 8px 13px;
  border: 1px solid rgba(20, 184, 166, .24);
  background: rgba(20, 184, 166, .08);
  color: #7ee2d7;
  box-shadow: none;
  animation: none;
}

html.theme-light body[data-page="home"] .urgency-badge {
  color: #0b756c;
}

body[data-page="home"] .urgency-badge > i {
  color: var(--ua-public-primary);
}

body[data-page="home"] .hero-title-reveal {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  background: linear-gradient(135deg, #f8fafc 8%, #c7d9ea 58%, #73d5cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
  text-shadow: none;
}

html.theme-light body[data-page="home"] .hero-title-reveal {
  background: linear-gradient(135deg, #0f172a 10%, #164e63 62%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page="home"] .hero-description {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--ua-public-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.95;
}

body[data-page="home"] .hero-cta-row {
  justify-content: flex-start;
  margin-top: 30px;
  gap: 12px;
}

body[data-page="home"] .btn-primary-cta,
body[data-page="path"] .path-btn-primary {
  min-height: 50px;
  border-radius: 13px;
  background: var(--ua-public-primary);
  border: 1px solid var(--ua-public-primary);
  box-shadow: 0 12px 30px rgba(20, 184, 166, .18);
}

body[data-page="home"] .btn-primary-cta:hover,
body[data-page="path"] .path-btn-primary:hover {
  background: var(--ua-public-primary-strong);
  transform: translateY(-2px);
}

body[data-page="home"] .btn-secondary-cta {
  min-height: 50px;
  border-radius: 13px;
  border: 1px solid var(--ua-public-border);
  background: var(--ua-public-surface);
  color: var(--ua-public-text);
  box-shadow: none;
}

body[data-page="home"] .trust-badges-row {
  justify-content: flex-start;
  gap: 10px 18px;
  margin-top: 26px;
}

body[data-page="home"] .trust-badge {
  color: var(--ua-public-muted);
  font-size: .82rem;
}

body[data-page="home"] .hero-image {
  position: relative;
  display: grid;
  place-items: center;
}

body[data-page="home"] .hero-main-image {
  width: min(100%, 540px);
  border: 1px solid var(--ua-public-border);
  border-radius: 28px;
  box-shadow: var(--ua-public-shadow);
  filter: saturate(.88) contrast(1.02);
}

body[data-page="home"] .social-proof-strip {
  width: min(var(--ua-public-max), calc(100% - 40px));
  margin: 0 auto 46px;
  border: 1px solid var(--ua-public-border);
  border-radius: var(--ua-public-radius);
  background: var(--ua-public-surface);
  box-shadow: none;
}

body[data-page="home"] .section-box {
  width: min(var(--ua-public-max), calc(100% - 40px));
  margin: 34px auto;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--ua-public-border);
  border-radius: var(--ua-public-radius);
  background: var(--ua-public-surface);
  box-shadow: none;
}

body[data-page="home"] .section-box.alt {
  margin-inline: auto;
  border-radius: var(--ua-public-radius);
  background: color-mix(in srgb, var(--ua-public-surface-solid) 76%, transparent);
}

body[data-page="home"] .section-box::before {
  height: 1px;
  opacity: .4;
}

body[data-page="home"] .section-box::after {
  opacity: .25;
}

body[data-page="courses"] .paths-hero,
body[data-page="path"] .path-hero-wrap {
  border-bottom: 1px solid var(--ua-public-border);
}

body[data-page="courses"] .paths-hero-inner,
body[data-page="path"] .path-hero-inner,
body[data-page="path"] .path-body {
  width: min(var(--ua-public-max), calc(100% - 40px));
  max-width: var(--ua-public-max);
  margin-inline: auto;
}

body[data-page="courses"] .paths-hero-title,
body[data-page="path"] .path-hero-title {
  letter-spacing: -.025em;
  filter: none;
  text-shadow: none;
}

body[data-page="courses"] .paths-hero-sub,
body[data-page="path"] .path-hero-desc {
  color: var(--ua-public-muted);
}

body[data-page="courses"] .path-card,
body[data-page="courses"] .course-card,
body[data-page="path"] .timeline-card,
body[data-page="path"] .path-outcomes-section {
  border-color: var(--ua-public-border);
  background: var(--ua-public-surface);
  box-shadow: none;
}

body[data-page="courses"] .path-card:hover,
body[data-page="courses"] .course-card:hover,
body[data-page="path"] .timeline-card:hover {
  border-color: rgba(20, 184, 166, .32);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

html.theme-light body[data-page="courses"] .paths-hero-title,
html.theme-light body[data-page="path"] .path-hero-title,
html.theme-light body[data-page="path"] .path-hero-stat strong,
html.theme-light body[data-page="path"] .path-course-count {
  color: #102033;
  -webkit-text-fill-color: initial;
}

html.theme-light body[data-page="courses"] .view-toggle {
  background: #e8eef6;
  border-color: rgba(15, 23, 42, .1);
  box-shadow: none;
}

html.theme-light body[data-page="courses"] .vtoggle-btn:not(.active) {
  color: #445268;
}

html.theme-light body[data-page="courses"] .path-card,
html.theme-light body[data-page="courses"] .course-card,
html.theme-light body[data-page="path"] .timeline-card,
html.theme-light body[data-page="path"] .path-outcomes-section {
  background: #fff;
  color: #102033;
}

@media (max-width: 1100px) {
  body[data-page="home"] .navigation a,
  body[data-page="courses"] .navigation a,
  body[data-page="path"] .navigation a,
  body[data-page="home"] .nav-dropdown-toggle {
    padding-inline: 8px;
    font-size: .82rem;
  }

  body[data-page="home"] .hero-section {
    grid-template-columns: 1fr 380px;
    gap: 34px;
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .main-header,
  body[data-page="courses"] .main-header,
  body[data-page="path"] .main-header {
    padding-inline: 16px;
  }

  body.public-page .main-header {
    padding-inline: 16px;
  }

  body[data-page="home"] .navigation,
  body[data-page="courses"] .navigation,
  body[data-page="path"] .navigation {
    background: var(--ua-public-surface-solid);
    border-color: var(--ua-public-border);
  }

  body.public-page .navigation {
    background: var(--ua-public-surface-solid);
    border-color: var(--ua-public-border);
  }

  body[data-page="home"] .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 48px;
  }

  body[data-page="home"] .hero-content {
    max-width: 760px;
  }

  body[data-page="home"] .hero-image {
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  body[data-page="home"] .crypto-bar {
    display: none;
  }

  body[data-page="home"] .main-header,
  body[data-page="courses"] .main-header,
  body[data-page="path"] .main-header {
    min-height: 64px;
  }

  body.public-page .main-header {
    min-height: 64px;
  }

  body[data-page="home"] .logo-img,
  body[data-page="courses"] .logo-img,
  body[data-page="path"] .logo-img {
    width: 42px;
    height: 42px;
  }

  body.public-page .logo-img {
    width: 42px;
    height: 42px;
  }

  body.public-page .logo strong {
    display: none;
  }

  .public-theme-toggle,
  body[data-page="home"] .focus-toggle,
  body[data-page="courses"] .focus-toggle,
  body[data-page="path"] .focus-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  body.public-page .focus-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  body[data-page="home"] .hero-section,
  body[data-page="home"] .social-proof-strip,
  body[data-page="home"] .section-box,
  body[data-page="courses"] .paths-hero-inner,
  body[data-page="path"] .path-hero-inner,
  body[data-page="path"] .path-body {
    width: min(100% - 28px, var(--ua-public-max));
  }

  body.public-page .section-box {
    width: min(100% - 28px, var(--ua-public-max));
    margin-bottom: 18px;
    padding: 26px 18px;
  }

  .public-main {
    padding-top: 18px;
  }

  body[data-page="login"] .section-box,
  body[data-page="register"] .section-box {
    padding-top: 30px !important;
  }

  body[data-page="home"] .hero-section {
    padding-block: 38px 42px;
  }

  body[data-page="home"] .hero-title-reveal {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.25;
  }

  body[data-page="home"] .hero-description {
    margin-top: 18px;
    font-size: .96rem;
    line-height: 1.85;
  }

  body[data-page="home"] .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .btn-primary-cta,
  body[data-page="home"] .btn-secondary-cta {
    width: 100%;
    justify-content: center;
  }

  body[data-page="home"] .trust-badges-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="home"] .hero-main-image {
    border-radius: 20px;
  }

  body[data-page="home"] .hero-image,
  body[data-page="home"] .ai-hint-bubble,
  body[data-page="courses"] .ai-hint-bubble,
  body[data-page="path"] .ai-hint-bubble {
    display: none !important;
  }

  body[data-page="home"] .section-box {
    margin-block: 22px;
    padding: 26px 18px;
  }

  body[data-page="courses"] .paths-grid,
  body[data-page="courses"] .course-grid-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] *,
  body[data-page="courses"] *,
  body[data-page="path"] * {
    scroll-behavior: auto !important;
  }
}

/* ==================================================================
   Public refresh — batch 2: shorter home and public course details
   ================================================================== */

body[data-page="home"] .section-box[hidden] + .section-sep {
  display: none;
}

body[data-page="home"] .proof-item strong {
  color: var(--ua-public-text);
}

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 2px 0 12px;
  color: var(--ua-public-muted, #94a3b8);
  font-size: .78rem;
  font-weight: 700;
}

.course-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.course-card-meta i {
  color: var(--ua-public-primary, #14b8a6);
}

.course-bottom .course-btn {
  text-decoration: none;
}

body[data-page="course-detail"] .public-main {
  width: min(var(--ua-public-max), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 72px;
}

.course-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 20px;
  color: var(--ua-public-muted);
  font-size: .85rem;
  font-weight: 700;
}

.course-breadcrumb a {
  color: var(--ua-public-muted);
  text-decoration: none;
}

.course-breadcrumb a:hover {
  color: var(--ua-public-primary);
}

.course-breadcrumb i {
  font-size: .65rem;
  opacity: .65;
}

.course-breadcrumb span {
  max-width: 46ch;
  overflow: hidden;
  color: var(--ua-public-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr);
  overflow: hidden;
  border: 1px solid var(--ua-public-border);
  border-radius: 28px;
  background: var(--ua-public-surface);
  box-shadow: var(--ua-public-shadow);
}

.course-detail-cover {
  position: relative;
  min-height: 470px;
  background: #06101d;
}

.course-detail-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(3, 10, 20, .62));
  content: "";
  pointer-events: none;
}

.course-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.course-detail-category {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(6, 16, 29, .78);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.course-detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 54px);
}

.course-detail-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-bottom: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(20, 184, 166, .2);
  border-radius: 999px;
  background: rgba(20, 184, 166, .08);
  color: var(--ua-public-primary);
  font-size: .78rem;
  font-weight: 900;
}

.course-detail-summary h1 {
  margin: 0;
  color: var(--ua-public-text);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.25;
}

.course-detail-provider {
  margin: 10px 0 0;
  color: var(--ua-public-primary);
  font-weight: 800;
}

.course-detail-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 20px 0;
  color: var(--ua-public-muted);
  font-size: .98rem;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.course-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.course-detail-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--ua-public-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ua-public-surface-solid) 78%, transparent);
  color: var(--ua-public-muted);
  font-size: .78rem;
  font-weight: 800;
}

.course-detail-facts i {
  color: var(--ua-public-accent);
}

.course-detail-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ua-public-border);
}

.course-detail-action > div {
  display: grid;
  gap: 2px;
}

.course-detail-action span {
  color: var(--ua-public-muted);
  font-size: .78rem;
  font-weight: 700;
}

.course-detail-action strong {
  color: var(--ua-public-text);
  font-size: 1.8rem;
  font-weight: 900;
}

.course-detail-action .btn-primary-cta {
  min-height: 48px;
  padding-inline: 22px;
  text-decoration: none;
}

.course-detail-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 0;
  color: var(--ua-public-muted);
  font-size: .76rem;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
  gap: 24px;
  margin-top: 24px;
}

.course-detail-main,
.course-detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.course-info-card,
.course-support-card,
.public-state-card {
  border: 1px solid var(--ua-public-border);
  border-radius: var(--ua-public-radius);
  background: var(--ua-public-surface);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .11);
}

.course-info-card {
  padding: clamp(22px, 3vw, 32px);
}

.course-info-card h2,
.course-support-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--ua-public-text);
  font-size: 1.22rem;
  font-weight: 900;
}

.course-info-card h2 i {
  color: var(--ua-public-primary);
}

.course-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.course-info-head h2 {
  margin: 0;
}

.course-info-head > span {
  color: var(--ua-public-muted);
  font-size: .8rem;
  font-weight: 800;
}

.course-check-list,
.course-simple-list,
.public-curriculum-list {
  margin: 0;
}

.course-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 0;
  list-style: none;
}

.course-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ua-public-muted);
  line-height: 1.7;
}

.course-check-list i {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(20, 184, 166, .1);
  color: var(--ua-public-primary);
  font-size: .7rem;
  place-items: center;
}

.public-curriculum-list {
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.public-curriculum-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 9px 0;
  border-top: 1px solid var(--ua-public-border);
}

.public-curriculum-list li:first-child {
  border-top: 0;
}

.lesson-number {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(96, 165, 250, .1);
  color: var(--ua-public-accent);
  font-size: .78rem;
  font-weight: 900;
  place-items: center;
}

.lesson-title {
  color: var(--ua-public-text);
  font-size: .9rem;
  font-weight: 700;
}

.lesson-duration,
.lesson-lock {
  color: var(--ua-public-muted);
  font-size: .75rem;
}

.lesson-preview {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 184, 166, .1);
  color: var(--ua-public-primary);
  font-size: .68rem;
  font-weight: 900;
}

.course-facts-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.course-facts-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--ua-public-border);
}

.course-facts-list div:first-child {
  border-top: 0;
}

.course-facts-list dt {
  color: var(--ua-public-muted);
  font-size: .82rem;
}

.course-facts-list dd {
  margin: 0;
  color: var(--ua-public-text);
  font-size: .82rem;
  font-weight: 800;
  text-align: left;
}

.course-simple-list {
  padding-right: 18px;
  color: var(--ua-public-muted);
  line-height: 1.9;
}

.course-simple-list li::marker {
  color: var(--ua-public-primary);
}

.course-support-card {
  padding: 28px;
  text-align: center;
}

.course-support-card > i {
  margin-bottom: 14px;
  color: var(--ua-public-accent);
  font-size: 2rem;
}

.course-support-card h2 {
  justify-content: center;
  margin-bottom: 8px;
}

.course-support-card p {
  margin: 0 0 18px;
  color: var(--ua-public-muted);
  font-size: .86rem;
  line-height: 1.7;
}

.course-support-card a {
  color: var(--ua-public-primary);
  font-weight: 900;
}

.public-state-card {
  width: min(680px, 100%);
  margin: 56px auto;
  padding: 48px 28px;
  text-align: center;
}

.public-state-card > i {
  color: #f59e0b;
  font-size: 2.8rem;
}

.public-state-card h1 {
  margin: 16px 0 8px;
  color: var(--ua-public-text);
}

.public-state-card p {
  margin: 0 0 24px;
  color: var(--ua-public-muted);
}

.public-state-card .btn-primary-cta {
  display: inline-flex;
  text-decoration: none;
}

@media (max-width: 900px) {
  .course-detail-hero,
  .course-detail-grid {
    grid-template-columns: 1fr;
  }

  .course-detail-cover,
  .course-detail-cover img {
    min-height: 340px;
    max-height: 440px;
  }

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

@media (max-width: 620px) {
  body[data-page="course-detail"] .public-main {
    width: min(100% - 28px, var(--ua-public-max));
    padding-top: 18px;
    padding-bottom: 46px;
  }

  .course-breadcrumb span {
    max-width: 18ch;
  }

  .course-detail-hero {
    border-radius: 20px;
  }

  .course-detail-cover,
  .course-detail-cover img {
    min-height: 230px;
    max-height: 290px;
  }

  .course-detail-summary {
    padding: 24px 18px;
  }

  .course-detail-summary h1 {
    font-size: 1.8rem;
  }

  .course-detail-description {
    -webkit-line-clamp: 8;
  }

  .course-detail-action {
    align-items: stretch;
    flex-direction: column;
  }

  .course-detail-action .btn-primary-cta {
    justify-content: center;
    width: 100%;
  }

  .course-check-list,
  .course-detail-side {
    grid-template-columns: 1fr;
  }

  .course-info-card {
    padding: 22px 18px;
  }

  .public-curriculum-list li {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .lesson-duration {
    display: none;
  }
}

/* Public refresh — stage 4: informational and legal pages */
.info-hero {
  padding-top: 34px;
}

.info-hero .section-subline {
  max-width: 820px;
}

.info-grid,
.partner-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--ua-public-border);
  border-radius: var(--ua-public-radius-md);
  background: var(--ua-public-surface);
}

.info-card > i {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 12px;
  background: rgba(45, 212, 191, .12);
  color: var(--ua-public-accent);
  font-size: 1.05rem;
}

.info-card h3 {
  margin: 0 0 8px;
  color: var(--ua-public-text);
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  color: var(--ua-public-muted);
  line-height: 1.85;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  counter-reset: public-process;
}

.process-step {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--ua-public-border);
  border-radius: var(--ua-public-radius-md);
  background: var(--ua-public-surface);
  counter-increment: public-process;
}

.process-step::before {
  content: counter(public-process, decimal-leading-zero);
  position: absolute;
  direction: ltr;
  inset: 12px 14px auto auto;
  color: rgba(96, 165, 250, .18);
  font: 900 2.2rem/1 Inter, sans-serif;
}

.process-step i {
  margin-bottom: 22px;
  color: var(--ua-public-primary);
  font-size: 1.35rem;
}

.process-step h3 {
  margin: 0 0 8px;
  color: var(--ua-public-text);
  font-size: 1rem;
}

.process-step p {
  margin: 0;
  color: var(--ua-public-muted);
  font-size: .86rem;
  line-height: 1.8;
}

.info-disclosure {
  margin-top: 24px;
  border: 1px solid var(--ua-public-border);
  border-radius: var(--ua-public-radius-lg);
  background: var(--ua-public-surface);
}

.info-disclosure > summary {
  display: flex;
  min-height: 58px;
  padding: 16px 20px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--ua-public-text);
  font-weight: 900;
}

.info-disclosure > summary::marker {
  color: var(--ua-public-primary);
}

.info-disclosure-body {
  padding: 0 20px 20px;
}

.partners-grid {
  align-items: stretch;
}

.partner-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border-color: var(--ua-public-border);
  background: var(--ua-public-surface);
  box-shadow: none;
}

.partner-card .partner-desc {
  flex: 1;
  line-height: 1.8;
}

.partner-link {
  justify-content: center;
  min-height: 44px;
}

.public-empty-state {
  max-width: 680px;
  margin: 10px auto;
  padding: 42px 24px;
  border: 1px dashed var(--ua-public-border-strong);
  border-radius: var(--ua-public-radius-lg);
  background: var(--ua-public-surface);
  text-align: center;
}

.public-empty-state > i {
  color: var(--ua-public-primary);
  font-size: 2.4rem;
}

.public-empty-state h2 {
  margin: 14px 0 6px;
  color: var(--ua-public-text);
}

.public-empty-state p {
  margin: 0 0 18px;
  color: var(--ua-public-muted);
}

.document-meta {
  margin-top: 12px;
  color: var(--ua-public-muted);
  font-size: .84rem;
  font-weight: 700;
}

.document-meta-row {
  display: flex;
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.document-meta-row .document-meta {
  margin: 0;
}

.document-print {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 13px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ua-public-border);
  border-radius: 10px;
  background: var(--ua-public-surface);
  color: var(--ua-public-text);
  cursor: pointer;
  font: 800 .82rem/1.4 Cairo, sans-serif;
}

.document-print:hover {
  border-color: var(--ua-public-primary);
  color: var(--ua-public-primary);
}

.legal-reading-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  margin-top: 28px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  padding: 16px;
  border: 1px solid var(--ua-public-border);
  border-radius: var(--ua-public-radius-md);
  background: var(--ua-public-surface-solid);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ua-public-text);
}

.legal-toc a {
  display: block;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ua-public-muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: rgba(59, 130, 246, .1);
  color: var(--ua-public-primary);
}

.legal-reading-content {
  min-width: 0;
}

.privacy-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 0 !important;
}

.privacy-sections .privacy-card {
  scroll-margin-top: 100px;
  transform: none;
}

.privacy-sections .privacy-card:hover {
  transform: none;
}

.legal-body > h2,
.legal-footer-ack {
  scroll-margin-top: 100px;
}

.error-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, .15), transparent 36%), #07111f;
}

.error-panel {
  width: min(660px, 100%);
  padding: 44px 28px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 24px;
  background: rgba(15, 23, 42, .82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  text-align: center;
}

.error-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.error-code {
  margin: 14px 0 2px;
  color: #60a5fa;
  font: 900 clamp(4rem, 13vw, 7rem)/1 Inter, sans-serif;
}

.error-panel h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.error-panel p {
  margin: 12px auto 24px;
  color: #94a3b8;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .info-grid,
  .partner-benefits,
  .process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-reading-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }
}

@media (max-width: 560px) {
  .info-grid,
  .partner-benefits,
  .process-flow,
  .legal-toc div {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: 0;
  }

  .error-actions > * {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  body[data-page="privacy"] .main-header,
  body[data-page="privacy"] .main-footer,
  body[data-page="terms"] .main-header,
  body[data-page="terms"] .main-footer,
  .legal-toc,
  .legal-actions,
  .document-print,
  #neural-canvas,
  .holo-grid,
  .scanlines {
    display: none !important;
  }

  .legal-reading-layout {
    display: block;
  }

  .legal-doc,
  .privacy-card {
    color: #111827 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-page,
  body.public-page *,
  body.public-page *::before,
  body.public-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
