/* Global light/dark theme layer. Loaded after page styles. */
:root {
  color-scheme: light;
  --font-sans: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --type-xs: .78rem;
  --type-sm: .88rem;
  --type-base: 1rem;
  --type-md: 1.08rem;
  --type-lg: 1.18rem;
  --type-card-title: clamp(1.05rem, 1.45vw, 1.22rem);
  --type-section: clamp(1.65rem, 2.7vw, 2.25rem);
  --type-page: clamp(2rem, 4.2vw, 3.6rem);
  --type-hero: clamp(2.25rem, 5.2vw, 4.35rem);
  --leading-tight: 1.05;
  --leading-title: 1.12;
  --leading-body: 1.64;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  width: min(1080px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(16, 185, 129, .18);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(236, 253, 245, .92), rgba(255, 255, 255, .94), rgba(240, 249, 255, .9));
  box-shadow: 0 14px 36px rgba(15, 23, 42, .1);
  backdrop-filter: blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: .88rem;
  font-weight: 800;
}

body[data-section="academy"] .site-nav--academy,
body[data-section="general"] .site-nav--general {
  display: flex;
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-nav .nav-link:hover {
  background: rgba(16, 185, 129, .08);
  color: #065f46;
}

.site-nav__dropdown {
  position: relative;
}

.site-nav__dropdown.is-open > .nav-link {
  background: rgba(16, 185, 129, .1);
  color: #065f46;
}

.dropdown-menu {
  display: none;
}

.dropdown-menu.open,
.dropdown-menu.is-open {
  display: grid;
}

.nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 140;
  min-width: 270px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 56px rgba(15, 23, 42, .16);
  backdrop-filter: blur(14px);
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  font-size: .88rem;
  font-weight: 780;
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: rgba(16, 185, 129, .08);
  color: #065f46;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.site-menu-button,
.site-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.site-menu-button:hover,
.site-icon-link:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, .32);
  color: #065f46;
}

.site-menu-button {
  display: none;
}

.site-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: #0f172a;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand__mark {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  font-family: var(--font-display);
  color: #065f46;
  letter-spacing: 0;
}

.site-brand__mark-main {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: .82;
}

.site-brand__mark-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: .43rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .22em;
  text-indent: .22em;
}

.site-brand__divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(6, 95, 70, .35), transparent);
}

.site-brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: .58rem;
  line-height: 1.1;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #334155;
}

.site-footer {
  width: min(1180px, calc(100% - 24px));
  margin: 72px auto 18px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .84)),
    radial-gradient(760px 260px at 0% 0%, rgba(16, 185, 129, .1), transparent 58%);
  color: #334155;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
  overflow: hidden;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 48px;
  padding: 42px;
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 22px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #0f172a;
  text-decoration: none;
}

.site-footer__mark {
  display: grid;
  justify-items: center;
  font-family: var(--font-display);
  color: #065f46;
}

.site-footer__mark-main {
  display: block;
  font-size: 2.4rem;
  line-height: .82;
}

.site-footer__mark-sub {
  display: block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: .48rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .24em;
  text-indent: .24em;
}

.site-footer__divider {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, transparent, rgba(6, 95, 70, .34), transparent);
}

.site-footer__name {
  display: grid;
  gap: 3px;
  color: #334155;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .22em;
  line-height: 1.15;
  text-transform: uppercase;
}

.site-footer__brand p {
  max-width: 340px;
  margin: 0;
  color: #64748b;
  font-size: .98rem;
  line-height: 1.65;
}

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #334155;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer__contacts a:hover {
  border-color: rgba(6, 95, 70, .24);
  color: #065f46;
}

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

.site-footer__nav div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer__nav h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-footer__nav a {
  width: fit-content;
  color: #64748b;
  font-size: .92rem;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: #065f46;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 42px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  color: #64748b;
  font-size: .82rem;
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer__bottom a {
  color: inherit;
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: #065f46;
}

.mobile-nav-group {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 1rem;
  padding: .45rem;
  background: rgba(255, 255, 255, .6);
}

.mobile-nav-group summary {
  cursor: pointer;
  padding: .55rem .65rem;
  color: #0f172a;
  font-weight: 900;
  list-style: none;
}

.mobile-nav-group summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-group a {
  display: block;
  padding: .55rem .65rem;
  border-radius: .75rem;
  color: #334155;
  text-decoration: none;
}

.mobile-nav-group a:hover {
  background: rgba(16, 185, 129, .07);
  color: #065f46;
}

.mobile-menu__nav {
  padding: 16px;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(16, 185, 129, .16);
}

#mobile-menu [data-mobile-close] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(16, 185, 129, .24);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

@media (max-width: 767px) {
  .site-header {
    top: 8px;
    width: min(100% - 16px, 720px);
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .site-nav {
    display: none !important;
  }

  .site-icon-link {
    display: none;
  }

  .site-menu-button[data-mobile-toggle] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .site-brand {
    gap: 12px;
  }

  .site-brand__divider {
    height: 30px;
  }

  .site-brand__text {
    font-size: .52rem;
    letter-spacing: .18em;
  }

}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 30px;
  }

  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 30px;
  }

  .site-footer__bottom nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-footer {
    width: min(100% - 18px, 420px);
    margin-top: 52px;
    border-radius: 18px;
  }

  .site-footer__inner {
    padding: 24px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .site-footer__contacts {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__contacts a {
    justify-content: center;
  }

  .site-footer__name {
    letter-spacing: .18em;
  }
}

@media (max-width: 420px) {
  .site-brand__text {
    max-width: 112px;
    font-size: .5rem;
    letter-spacing: .14em;
  }
}

html[data-theme="dark"] .site-brand {
  color: #f7f1e8;
}

html[data-theme="dark"] .site-header {
  border-color: rgba(224, 194, 152, .22);
  background: linear-gradient(90deg, rgba(12, 12, 10, .92), rgba(18, 17, 14, .94), rgba(28, 24, 18, .9));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .site-nav .nav-link,
html[data-theme="dark"] .site-header [aria-haspopup="true"] {
  color: rgba(247, 241, 232, .82);
}

html[data-theme="dark"] .site-nav .nav-link:hover {
  background: rgba(240, 216, 184, .1);
  color: #f0d8b8;
}

html[data-theme="dark"] .nav-dropdown {
  border-color: rgba(224, 194, 152, .22);
  background: rgba(17, 16, 13, .98);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .36);
}

html[data-theme="dark"] .nav-dropdown a {
  color: rgba(247, 241, 232, .78);
}

html[data-theme="dark"] .nav-dropdown a:hover {
  background: rgba(240, 216, 184, .1);
  color: #f0d8b8;
}

html[data-theme="dark"] .site-nav__dropdown.is-open > .nav-link {
  background: rgba(240, 216, 184, .12);
  color: #f0d8b8;
}

html[data-theme="dark"] .site-menu-button,
html[data-theme="dark"] .site-icon-link,
html[data-theme="dark"] #mobile-menu [data-mobile-close] {
  border-color: rgba(224, 194, 152, .24);
  background: rgba(255, 246, 232, .06);
  color: #f0d8b8;
}

html[data-theme="dark"] .site-menu-button:hover,
html[data-theme="dark"] .site-icon-link:hover {
  border-color: rgba(240, 216, 184, .46);
  color: #fff6e8;
}

html[data-theme="dark"] #mobile-menu [data-mobile-panel] {
  border-color: rgba(224, 194, 152, .22);
  background: rgba(17, 16, 13, .98);
  color: #f7f1e8;
}

html[data-theme="dark"] .mobile-menu__head {
  border-bottom-color: rgba(224, 194, 152, .18);
}

html[data-theme="dark"] .site-brand__mark {
  color: #f0d8b8;
}

html[data-theme="dark"] .site-brand__divider {
  background: linear-gradient(180deg, transparent, rgba(224, 194, 152, .44), transparent);
}

html[data-theme="dark"] .site-brand__text {
  color: rgba(247, 241, 232, .78);
}

html[data-theme="dark"] .mobile-nav-group {
  background: rgba(255, 246, 232, .06);
  border-color: rgba(224, 194, 152, .26);
  color: #f0d8b8;
}

html[data-theme="dark"] .site-footer {
  border-color: rgba(224, 194, 152, .18);
  background:
    linear-gradient(135deg, rgba(12, 12, 10, .94), rgba(22, 20, 16, .9)),
    radial-gradient(760px 260px at 0% 0%, rgba(224, 194, 152, .13), transparent 58%);
  color: rgba(247, 241, 232, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .site-footer__logo,
html[data-theme="dark"] .site-footer__nav h2 {
  color: #fff6e8;
}

html[data-theme="dark"] .site-footer__mark {
  color: #f0d8b8;
}

html[data-theme="dark"] .site-footer__divider {
  background: linear-gradient(180deg, transparent, rgba(224, 194, 152, .42), transparent);
}

html[data-theme="dark"] .site-footer__name,
html[data-theme="dark"] .site-footer__contacts a:hover,
html[data-theme="dark"] .site-footer__nav a:hover,
html[data-theme="dark"] .site-footer__bottom a:hover {
  color: #f0d8b8;
}

html[data-theme="dark"] .site-footer__brand p,
html[data-theme="dark"] .site-footer__nav a,
html[data-theme="dark"] .site-footer__bottom {
  color: rgba(247, 241, 232, .66);
}

html[data-theme="dark"] .site-footer__contacts a {
  border-color: rgba(224, 194, 152, .2);
  background: rgba(255, 246, 232, .06);
  color: rgba(247, 241, 232, .74);
}

html[data-theme="dark"] .site-footer__bottom {
  border-top-color: rgba(224, 194, 152, .14);
}

html[data-theme="dark"] .mobile-nav-group a:hover {
  color: #f0d8b8;
}

html[data-theme="dark"] .mobile-nav-group summary,
html[data-theme="dark"] .mobile-nav-group a {
  color: #f7f1e8;
}

html[data-theme="dark"] .mobile-nav-group a:hover {
  background: rgba(255, 246, 232, .06);
}

@media (max-width: 560px) {
  .site-brand {
    gap: 11px;
  }

  .site-brand__text {
    font-size: .52rem;
    letter-spacing: .18em;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.25rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .72);
  color: #0f172a;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(2, 6, 23, .08);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, .32);
}

.theme-toggle i {
  font-size: .9rem;
}

.theme-toggle--icon {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  flex: 0 0 auto;
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(224, 194, 152, .28);
  background: rgba(255, 246, 232, .06);
  color: #f7f1e8;
  box-shadow: none;
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(240, 216, 184, .46);
}

html[data-theme="dark"] body:not(.academy-page) {
  color: #f7f1e8 !important;
  background:
    radial-gradient(780px 460px at 8% -4%, rgba(240, 216, 184, .12), transparent 62%),
    radial-gradient(760px 420px at 96% 2%, rgba(217, 184, 146, .08), transparent 58%),
    linear-gradient(115deg, rgba(217, 184, 146, .07), transparent 34%),
    linear-gradient(180deg, #080806 0%, #11100d 48%, #070706 100%) !important;
}

html[data-theme="dark"] body:not(.academy-page) .site-bg {
  background:
    radial-gradient(780px 460px at 8% -4%, rgba(240, 216, 184, .12), transparent 62%),
    radial-gradient(760px 420px at 96% 2%, rgba(217, 184, 146, .08), transparent 58%),
    linear-gradient(115deg, rgba(217, 184, 146, .07), transparent 34%),
    linear-gradient(180deg, #080806 0%, #11100d 48%, #070706 100%) !important;
}

html[data-theme="dark"] body:not(.academy-page) header {
  background: rgba(7, 7, 6, .78) !important;
  color: #f7f1e8 !important;
  border-color: rgba(224, 194, 152, .18) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="dark"] body:not(.academy-page) footer:not(.site-footer) {
  background:
    linear-gradient(180deg, rgba(17, 16, 13, .92), rgba(7, 7, 6, .98)) !important;
  color: #f7f1e8 !important;
  border-color: rgba(224, 194, 152, .18) !important;
}

html[data-theme="dark"] body:not(.academy-page) .bg-white,
html[data-theme="dark"] body:not(.academy-page) .bg-slate-50,
html[data-theme="dark"] body:not(.academy-page) .bg-gray-50,
html[data-theme="dark"] body:not(.academy-page) .bg-neutral-50,
html[data-theme="dark"] body:not(.academy-page) .card,
html[data-theme="dark"] body:not(.academy-page) .card-soft,
html[data-theme="dark"] body:not(.academy-page) details,
html[data-theme="dark"] body:not(.academy-page) article {
  background:
    linear-gradient(180deg, rgba(255, 246, 232, .055), rgba(255, 246, 232, .025)),
    rgba(10, 10, 9, .82) !important;
  color: #f7f1e8 !important;
  border-color: rgba(224, 194, 152, .22) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] body:not(.academy-page) .text-slate-900,
html[data-theme="dark"] body:not(.academy-page) .text-gray-900,
html[data-theme="dark"] body:not(.academy-page) .text-neutral-900,
html[data-theme="dark"] body:not(.academy-page) .text-slate-800,
html[data-theme="dark"] body:not(.academy-page) .text-gray-800,
html[data-theme="dark"] body:not(.academy-page) .text-neutral-800,
html[data-theme="dark"] body:not(.academy-page) h1,
html[data-theme="dark"] body:not(.academy-page) h2,
html[data-theme="dark"] body:not(.academy-page) h3 {
  color: #f7f1e8 !important;
}

html[data-theme="dark"] body:not(.academy-page) .text-slate-700,
html[data-theme="dark"] body:not(.academy-page) .text-gray-700,
html[data-theme="dark"] body:not(.academy-page) .text-neutral-700,
html[data-theme="dark"] body:not(.academy-page) .text-slate-600,
html[data-theme="dark"] body:not(.academy-page) .text-gray-600,
html[data-theme="dark"] body:not(.academy-page) .text-neutral-600 {
  color: rgba(247, 241, 232, .72) !important;
}

html[data-theme="dark"] body:not(.academy-page) .border-slate-200,
html[data-theme="dark"] body:not(.academy-page) .border-gray-200,
html[data-theme="dark"] body:not(.academy-page) .border-neutral-200,
html[data-theme="dark"] body:not(.academy-page) .border-emerald-100,
html[data-theme="dark"] body:not(.academy-page) .border-emerald-200,
html[data-theme="dark"] body:not(.academy-page) .border-emerald-300,
html[data-theme="dark"] body:not(.academy-page) .border-emerald-600,
html[data-theme="dark"] body:not(.academy-page) .border-sky-100,
html[data-theme="dark"] body:not(.academy-page) .border-sky-200,
html[data-theme="dark"] body:not(.academy-page) .border-sky-600,
html[data-theme="dark"] body:not(.academy-page) .border-amber-200,
html[data-theme="dark"] body:not(.academy-page) .border-amber-300 {
  border-color: rgba(224, 194, 152, .22) !important;
}

html[data-theme="dark"] body:not(.academy-page) .dropdown-menu,
html[data-theme="dark"] body:not(.academy-page) [data-mobile-panel] {
  background: rgba(17, 16, 13, .97) !important;
  color: #f7f1e8 !important;
  border-color: rgba(224, 194, 152, .24) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .46) !important;
}

html[data-theme="dark"] body:not(.academy-page) .nav-link::after {
  background: #d9b892;
}

html[data-theme="dark"] body:not(.academy-page) .nav-link:hover,
html[data-theme="dark"] body:not(.academy-page) .dropdown-menu a:hover,
html[data-theme="dark"] body:not(.academy-page) [data-mobile-panel] a:hover,
html[data-theme="dark"] body:not(.academy-page) .hover\:text-emerald-600:hover,
html[data-theme="dark"] body:not(.academy-page) .hover\:text-emerald-700:hover,
html[data-theme="dark"] body:not(.academy-page) .hover\:text-sky-600:hover,
html[data-theme="dark"] body:not(.academy-page) .hover\:text-sky-700:hover {
  color: #f0d8b8 !important;
  background: rgba(255, 246, 232, .055) !important;
}

html[data-theme="light"] body.academy-page {
  color: #0f172a;
  background:
    radial-gradient(900px 520px at 6% -6%, rgba(16, 185, 129, .12), transparent 60%),
    radial-gradient(820px 480px at 96% 6%, rgba(56, 189, 248, .12), transparent 58%),
    #fbfdfc;
}

html[data-theme="light"] body.academy-page .academy-topbar,
html[data-theme="light"] body.academy-page .academy-panel,
html[data-theme="light"] body.academy-page .academy-hero__aside,
html[data-theme="light"] body.academy-page .academy-proof__item,
html[data-theme="light"] body.academy-page .academy-about__main,
html[data-theme="light"] body.academy-page .academy-about__side {
  background: rgba(255, 255, 255, .82);
  color: #0f172a;
  border-color: rgba(15, 23, 42, .1);
}

html[data-theme="light"] body.academy-page .academy-title,
html[data-theme="light"] body.academy-page .academy-section-title,
html[data-theme="light"] body.academy-page .academy-row__title,
html[data-theme="light"] body.academy-page .academy-about h2,
html[data-theme="light"] body.academy-page .academy-brand,
html[data-theme="light"] body.academy-page .academy-footer__title {
  color: #0f172a;
}

html[data-theme="light"] body.academy-page .academy-row__text,
html[data-theme="light"] body.academy-page .academy-panel__note,
html[data-theme="light"] body.academy-page .academy-about__text,
html[data-theme="light"] body.academy-page .academy-proof__item p,
html[data-theme="light"] body.academy-page .academy-hero__lead {
  color: #475569;
}

html[data-theme="light"] body.academy-page .academy-row {
  color: #0f172a;
}

html[data-theme="light"] body.academy-page .academy-row:hover {
  background: rgba(16, 185, 129, .06);
}

/* Contrast hardening: page-wide palettes, not only body background. */
html[data-theme="dark"] body:not(.academy-page) section[class*="bg-gradient"],
html[data-theme="dark"] body:not(.academy-page) div[class*="bg-gradient"],
html[data-theme="dark"] body:not(.academy-page) .bg-gradient-to-r,
html[data-theme="dark"] body:not(.academy-page) .bg-gradient-to-br,
html[data-theme="dark"] body:not(.academy-page) .bg-gradient-to-b {
  background:
    linear-gradient(115deg, rgba(240, 216, 184, .09), transparent 42%),
    linear-gradient(180deg, rgba(8, 8, 6, .98) 0%, rgba(17, 16, 13, .96) 100%) !important;
  color: #f7f1e8 !important;
}

html[data-theme="dark"] body:not(.academy-page) .bg-emerald-50,
html[data-theme="dark"] body:not(.academy-page) .bg-emerald-100,
html[data-theme="dark"] body:not(.academy-page) .bg-teal-50,
html[data-theme="dark"] body:not(.academy-page) .bg-sky-50,
html[data-theme="dark"] body:not(.academy-page) .bg-sky-100,
html[data-theme="dark"] body:not(.academy-page) .bg-cyan-50,
html[data-theme="dark"] body:not(.academy-page) .bg-amber-50,
html[data-theme="dark"] body:not(.academy-page) .bg-amber-100,
html[data-theme="dark"] body:not(.academy-page) .bg-purple-100,
html[data-theme="dark"] body:not(.academy-page) .bg-gray-100,
html[data-theme="dark"] body:not(.academy-page) .bg-neutral-100,
html[data-theme="dark"] body:not(.academy-page) .bg-slate-100,
html[data-theme="dark"] body:not(.academy-page) .bg-white\/80,
html[data-theme="dark"] body:not(.academy-page) .bg-white\/90,
html[data-theme="dark"] body:not(.academy-page) .bg-white\/70,
html[data-theme="dark"] body:not(.academy-page) .bg-emerald-50\/70 {
  background-color: rgba(255, 246, 232, .07) !important;
  color: #f7f1e8 !important;
  border-color: rgba(224, 194, 152, .22) !important;
}

html[data-theme="dark"] body:not(.academy-page) .bg-emerald-500,
html[data-theme="dark"] body:not(.academy-page) .bg-emerald-600,
html[data-theme="dark"] body:not(.academy-page) .bg-emerald-700,
html[data-theme="dark"] body:not(.academy-page) .bg-sky-500,
html[data-theme="dark"] body:not(.academy-page) .bg-sky-600,
html[data-theme="dark"] body:not(.academy-page) .bg-sky-700,
html[data-theme="dark"] body:not(.academy-page) .hover\:bg-emerald-50:hover,
html[data-theme="dark"] body:not(.academy-page) .hover\:bg-emerald-700:hover {
  color: #17120d !important;
  background: linear-gradient(135deg, #fff6e8 0%, #f0d8b8 42%, #c99f70 100%) !important;
  border-color: rgba(240, 216, 184, .72) !important;
}

html[data-theme="dark"] body:not(.academy-page) .text-white {
  color: #fffaf2 !important;
}

html[data-theme="dark"] body:not(.academy-page) .text-emerald-600,
html[data-theme="dark"] body:not(.academy-page) .text-emerald-700,
html[data-theme="dark"] body:not(.academy-page) .text-emerald-800,
html[data-theme="dark"] body:not(.academy-page) .text-sky-600,
html[data-theme="dark"] body:not(.academy-page) .text-sky-700,
html[data-theme="dark"] body:not(.academy-page) .text-sky-800,
html[data-theme="dark"] body:not(.academy-page) .text-amber-600,
html[data-theme="dark"] body:not(.academy-page) .text-amber-700,
html[data-theme="dark"] body:not(.academy-page) .text-amber-800,
html[data-theme="dark"] body:not(.academy-page) .text-amber-900 {
  color: #f0d8b8 !important;
}

html[data-theme="dark"] body:not(.academy-page) .text-gray-500,
html[data-theme="dark"] body:not(.academy-page) .text-slate-500,
html[data-theme="dark"] body:not(.academy-page) .text-neutral-500,
html[data-theme="dark"] body:not(.academy-page) .text-xs.text-gray-500,
html[data-theme="dark"] body:not(.academy-page) .text-xs.text-slate-500 {
  color: rgba(247, 241, 232, .54) !important;
}

html[data-theme="dark"] body:not(.academy-page) a:not(.btn-primary):not(.btn-buy):not(.btn-circle),
html[data-theme="dark"] body:not(.academy-page) button:not(.btn-primary):not(.btn-buy):not(.btn-circle) {
  color: inherit;
}

html[data-theme="dark"] body:not(.academy-page) a.text-emerald-700,
html[data-theme="dark"] body:not(.academy-page) a.text-sky-700,
html[data-theme="dark"] body:not(.academy-page) a.text-emerald-600,
html[data-theme="dark"] body:not(.academy-page) a.text-sky-600,
html[data-theme="dark"] body:not(.academy-page) .chip,
html[data-theme="dark"] body:not(.academy-page) .inline-flex[class*="border"] {
  color: #f0d8b8 !important;
  background: rgba(255, 246, 232, .06) !important;
  border-color: rgba(224, 194, 152, .28) !important;
}

html[data-theme="dark"] body:not(.academy-page) .chip.is-active,
html[data-theme="dark"] body:not(.academy-page) .btn-primary,
html[data-theme="dark"] body:not(.academy-page) .btn-buy,
html[data-theme="dark"] body:not(.academy-page) .btn-buy--featured {
  color: #17120d !important;
  background: linear-gradient(135deg, #fff6e8 0%, #f0d8b8 42%, #c99f70 100%) !important;
  border-color: rgba(240, 216, 184, .72) !important;
  box-shadow: 0 16px 38px rgba(217, 184, 146, .18) !important;
}

html[data-theme="dark"] body:not(.academy-page) .btn-buy:not(.btn-buy--featured) {
  color: #f7f1e8 !important;
  background: rgba(17, 16, 13, .88) !important;
  border-color: rgba(224, 194, 152, .34) !important;
}

html[data-theme="dark"] body:not(.academy-page) input,
html[data-theme="dark"] body:not(.academy-page) textarea,
html[data-theme="dark"] body:not(.academy-page) select,
html[data-theme="dark"] body:not(.academy-page) summary {
  color: #f7f1e8 !important;
  background: rgba(10, 10, 9, .84) !important;
  border-color: rgba(224, 194, 152, .22) !important;
}

html[data-theme="dark"] body:not(.academy-page) input::placeholder,
html[data-theme="dark"] body:not(.academy-page) textarea::placeholder {
  color: rgba(247, 241, 232, .46) !important;
}

html[data-theme="dark"] body:not(.academy-page) .shadow,
html[data-theme="dark"] body:not(.academy-page) .shadow-lg,
html[data-theme="dark"] body:not(.academy-page) .shadow-xl,
html[data-theme="dark"] body:not(.academy-page) .shadow-2xl {
  box-shadow: 0 22px 54px rgba(0, 0, 0, .42) !important;
}

html[data-theme="dark"] body:not(.academy-page) .ring-emerald-100,
html[data-theme="dark"] body:not(.academy-page) .ring-sky-100,
html[data-theme="dark"] body:not(.academy-page) .ring-amber-100 {
  --tw-ring-color: rgba(224, 194, 152, .22) !important;
}

html[data-theme="dark"] body:not(.academy-page) .gradient-border {
  background:
    linear-gradient(135deg, rgba(240, 216, 184, .42), rgba(217, 184, 146, .12), rgba(255, 246, 232, .08)) !important;
}

html[data-theme="dark"] body:not(.academy-page) .border-t-emerald-300,
html[data-theme="dark"] body:not(.academy-page) .border-t-sky-300,
html[data-theme="dark"] body:not(.academy-page) .border-t-amber-300 {
  border-top-color: rgba(240, 216, 184, .58) !important;
}

html[data-theme="dark"] body:not(.academy-page) .sticky,
html[data-theme="dark"] body:not(.academy-page) .fixed {
  border-color: rgba(224, 194, 152, .22);
}

html[data-theme="dark"] body:not(.academy-page) img,
html[data-theme="dark"] body:not(.academy-page) video {
  color: transparent;
}

/* Challenge custom components need explicit dark colors. */
html[data-theme="dark"] body:not(.academy-page) .sticky-cta .bar > div,
html[data-theme="dark"] body:not(.academy-page) #toTop {
  background:
    linear-gradient(180deg, rgba(255, 246, 232, .06), rgba(255, 246, 232, .025)),
    rgba(10, 10, 9, .86) !important;
  color: #f7f1e8 !important;
  border-color: rgba(224, 194, 152, .24) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .38) !important;
}

html[data-theme="dark"] body:not(.academy-page) .sticky-cta p:first-child {
  color: #f7f1e8 !important;
}

html[data-theme="dark"] body:not(.academy-page) .sticky-cta .text-gray-500 {
  color: rgba(247, 241, 232, .68) !important;
}

html[data-theme="dark"] body:not(.academy-page) h1 .text-gray-500,
html[data-theme="dark"] body:not(.academy-page) h1 .text-slate-500,
html[data-theme="dark"] body:not(.academy-page) h1 .text-neutral-500 {
  color: rgba(240, 216, 184, .78) !important;
}

html[data-theme="dark"] body:not(.academy-page) .sticky-cta {
  background: linear-gradient(180deg, transparent, rgba(7, 7, 6, .92) 34%, rgba(7, 7, 6, .98)) !important;
}

html[data-theme="dark"] body:not(.academy-page) #toTop {
  color: #f0d8b8 !important;
}

/* Academy page light theme: convert every dark academy surface/text token. */
html[data-theme="light"] body.academy-page .academy-hero::before {
  background:
    linear-gradient(115deg, rgba(16, 185, 129, .08), transparent 42%),
    linear-gradient(90deg, rgba(251, 253, 252, .98) 0%, rgba(251, 253, 252, .9) 58%, rgba(251, 253, 252, .72) 100%);
  opacity: .96;
}

html[data-theme="light"] body.academy-page .academy-hero::after {
  opacity: .08;
}

html[data-theme="light"] body.academy-page .academy-hero__brand-bg {
  color: rgba(6, 95, 70, .1);
}

html[data-theme="light"] body.academy-page .academy-hero__linefield {
  border-color: rgba(6, 95, 70, .08);
  background:
    linear-gradient(90deg, rgba(6, 95, 70, .1) 1px, transparent 1px),
    linear-gradient(rgba(6, 95, 70, .075) 1px, transparent 1px);
}

html[data-theme="light"] body.academy-page .academy-brand__mark,
html[data-theme="light"] body.academy-page .academy-title span,
html[data-theme="light"] body.academy-page .academy-section-title span,
html[data-theme="light"] body.academy-page .academy-row__label,
html[data-theme="light"] body.academy-page .academy-hero__aside-label,
html[data-theme="light"] body.academy-page .academy-about__eyebrow,
html[data-theme="light"] body.academy-page .academy-footer a,
html[data-theme="light"] body.academy-page .academy-icon-link,
html[data-theme="light"] body.academy-page .academy-metric strong,
html[data-theme="light"] body.academy-page .academy-hero__program span {
  color: #065f46;
}

html[data-theme="light"] body.academy-page .academy-nav a,
html[data-theme="light"] body.academy-page .academy-brand__text,
html[data-theme="light"] body.academy-page .academy-kicker,
html[data-theme="light"] body.academy-page .academy-subline,
html[data-theme="light"] body.academy-page .academy-about__list li,
html[data-theme="light"] body.academy-page .academy-footer__text,
html[data-theme="light"] body.academy-page .academy-hero__program,
html[data-theme="light"] body.academy-page .academy-metric span,
html[data-theme="light"] body.academy-page .academy-hero__aside-title {
  color: #334155;
}

html[data-theme="light"] body.academy-page .academy-row__value,
html[data-theme="light"] body.academy-page .academy-hero__program strong,
html[data-theme="light"] body.academy-page .academy-proof__item h3 {
  color: #0f172a;
}

html[data-theme="light"] body.academy-page .academy-kicker,
html[data-theme="light"] body.academy-page .academy-subline span,
html[data-theme="light"] body.academy-page .academy-row__button,
html[data-theme="light"] body.academy-page .academy-hero__program,
html[data-theme="light"] body.academy-page .academy-footer__links a,
html[data-theme="light"] body.academy-page .academy-icon-link {
  background: rgba(255, 255, 255, .74);
  border-color: rgba(15, 23, 42, .12);
}

html[data-theme="light"] body.academy-page .academy-row__icon {
  color: #065f46;
  background:
    radial-gradient(circle at 30% 15%, rgba(16, 185, 129, .16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(236, 253, 245, .72));
  border-color: rgba(16, 185, 129, .18);
}

html[data-theme="light"] body.academy-page .academy-row__price {
  border-color: rgba(15, 23, 42, .12);
}

html[data-theme="light"] body.academy-page .academy-row--featured {
  background: linear-gradient(90deg, rgba(16, 185, 129, .08), rgba(255, 255, 255, .7));
}

html[data-theme="light"] body.academy-page .academy-banner {
  background: linear-gradient(90deg, #d1fae5, #f8fafc 48%, #e0f2fe);
  color: #0f172a;
}

html[data-theme="light"] body.academy-page .academy-banner__title,
html[data-theme="light"] body.academy-page .academy-banner__text,
html[data-theme="light"] body.academy-page .academy-banner__end,
html[data-theme="light"] body.academy-page .academy-banner__end strong,
html[data-theme="light"] body.academy-page .academy-banner__end span {
  color: #0f172a;
}

html[data-theme="light"] body.academy-page .academy-banner__seal {
  background: #ffffff;
  color: #065f46;
  border-color: rgba(16, 185, 129, .22);
}

html[data-theme="light"] body.academy-page .academy-btn:not(.academy-btn--gold) {
  color: #0f172a;
  border-color: rgba(15, 23, 42, .14);
  background: rgba(255, 255, 255, .72);
}

html[data-theme="light"] body.academy-page .academy-btn--gold,
html[data-theme="light"] body.academy-page .academy-row:hover .academy-row__button {
  color: #062016;
  background: linear-gradient(135deg, #a7f3d0, #10b981);
}


.hero-deco {
  position: absolute;
  inset: -10% -20% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(16, 185, 129, .35) 0%, rgba(59, 130, 246, .28) 38%, rgba(241, 245, 249, 0) 70%);
  filter: blur(60px);
  opacity: .25;
  pointer-events: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: .75rem;
  color: #64748b;
  font-size: .875rem;
}

.trust-row i {
  opacity: .9;
}

.video-shell {
  position: relative;
  padding: 2px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, .35), rgba(59, 130, 246, .35));
  box-shadow: 0 18px 45px rgba(2, 6, 23, .18);
}

.video-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, .12);
  border-radius: .9rem;
  background: #000;
}

.media-object-center {
  object-position: center 50%;
}

.media-filter-soft {
  filter: contrast(1.05) saturate(1.05);
}

#heroVideoPlay {
  display: grid;
  place-items: center;
}

#heroVideoPlay .play-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

#heroVideoPlay:hover .play-pill {
  background: rgba(0, 0, 0, .7);
}

#gc-skeleton {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(6px);
}

#gc-skeleton[hidden] {
  display: none;
}

#gc-skeleton .box {
  min-width: 280px;
  max-width: 92vw;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .98));
  box-shadow: 0 30px 70px rgba(2, 6, 23, .25);
  text-align: center;
}

#gc-skeleton .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#gc-skeleton .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0f172a;
  opacity: .25;
  animation: gc-pulse 1s infinite ease-in-out;
}

#gc-skeleton .dot:nth-child(2) {
  animation-delay: .15s;
}

#gc-skeleton .dot:nth-child(3) {
  animation-delay: .3s;
}

@keyframes gc-pulse {
  0%,
  100% {
    opacity: .25;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

#gc-skeleton .t {
  margin-top: 10px;
  color: #111827;
  font-weight: 600;
}

#gc-skeleton .s {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

#gc-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(4px);
}

#gc-modal[aria-hidden="false"] {
  display: flex;
}

#gc-modal .inner {
  position: relative;
  width: min(900px, 92vw);
  height: min(85vh, 800px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 6, 23, .35);
}

#gc-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#gc-modal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  font-weight: 700;
  cursor: pointer;
}

body.gc-modal-open {
  overflow: hidden;
}

body[data-section="general"] > main.box {
  max-width: 520px;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(224, 194, 152, .28);
  border-radius: 18px;
  background: rgba(255, 246, 232, .06);
  text-align: center;
}

body[data-section="general"]:has(> main.box) {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  color: #f7f1e8;
  background: #070706;
  font-family: var(--font-sans);
}

body[data-section="general"] > main.box a {
  color: #f0d8b8;
  font-weight: 700;
}

body[data-section="general"]:has(> .wrap) {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #f8fafc;
  font-family: var(--font-sans);
}

body[data-section="general"] > .wrap {
  max-width: 720px;
  padding: 24px;
  text-align: center;
}

body[data-section="general"] > .wrap h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

body[data-section="general"] > .wrap p {
  margin: 8px 0;
  color: #334155;
}

body[data-section="general"] > .wrap .btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid #059669;
  border-radius: 10px;
  color: #065f46;
  background: #fff;
  text-decoration: none;
}

body[data-section="general"] > .wrap .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

body[data-section="general"] > .wrap .chip {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #0f172a;
  background: #fff;
  text-decoration: none;
}

body[data-section="general"] > .wrap code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e2e8f0;
}

.map-frame {
  border: 0;
}

.gc-widget-mount {
  min-height: 60vh;
  display: block;
  padding: 0;
}

.gc-payment-loader {
  padding: 24px;
  font-weight: 600;
  text-align: center;
}

.abt-clamp-toggle {
  margin-top: .5rem;
  border: 0;
  color: #065f46;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

.abt-floating-contacts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}

.abt-floating-contacts.is-hidden {
  opacity: 0;
  transform: translateY(6px);
}

#abt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

#abt-modal.is-open {
  display: block;
}

.abt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .55);
  backdrop-filter: blur(2px);
}

.abt-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(100% - 2rem);
  max-width: 960px;
  margin: 4rem auto;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(2, 6, 23, .35);
}

.abt-modal__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: .5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.abt-modal__close {
  border: 0;
  color: #0f172a;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.abt-modal__body {
  max-height: 75vh;
  overflow: auto;
  padding: 0;
}

.gc-widget-frame {
  width: 100%;
  height: 80vh;
  border: 0;
}

.story-media {
  cursor: pointer;
}


/* Unified typography system */
html {
  font-family: var(--font-sans);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--type-base);
  line-height: var(--leading-body);
  letter-spacing: 0;
}

.site-header,
.site-footer,
.site-nav,
.site-drawer,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

.site-brand__mark,
.site-footer__mark,
.academy-brand__mark,
.academy-banner__seal,
.academy-title,
.academy-section-title,
.programs-hero h1,
.design-hero h1,
.design-section__head h2,
.design-final h2 {
  font-family: var(--font-display) !important;
  letter-spacing: 0 !important;
}

.site-nav,
.site-nav .nav-link,
.nav-dropdown a,
.site-footer__nav a,
.site-footer__contacts a,
.site-footer__bottom,
.design-btn,
.btn-buy,
.academy-btn,
.program-card__link {
  font-size: var(--type-sm);
  line-height: 1.25;
}

.site-brand__mark-main,
.site-footer__mark-main {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: .84;
}

.site-brand__mark-sub,
.site-footer__mark-sub,
.site-brand__text,
.site-footer__name {
  font-size: .48rem;
  line-height: 1.08;
  letter-spacing: .2em !important;
}

.academy-title,
.programs-hero h1,
.design-hero h1 {
  font-size: var(--type-hero) !important;
  line-height: .96 !important;
  font-weight: 600 !important;
  text-wrap: balance;
}

body.academy-page .academy-title {
  max-width: 680px;
  font-size: clamp(1.95rem, 3.7vw, 3.05rem) !important;
  line-height: 1.03 !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

body.academy-page .academy-subline {
  max-width: 560px;
  font-size: var(--type-sm) !important;
}

body.academy-page .academy-hero__lead {
  max-width: 520px;
  font-size: .98rem !important;
  line-height: 1.58 !important;
}

body.academy-page .academy-hero__aside-title {
  font-size: .96rem !important;
  line-height: 1.34 !important;
}

body.academy-page .academy-hero__program {
  padding: 10px;
}

body.academy-page .academy-hero__program strong {
  font-size: .84rem !important;
}

body.academy-page .academy-hero__program em {
  font-size: .74rem !important;
}

body.academy-page .academy-panel__note,
body.academy-page .academy-row__text,
body.academy-page .academy-proof__item p,
body.academy-page .academy-about__text,
body.academy-page .academy-about__list {
  font-size: .92rem !important;
  line-height: 1.5 !important;
}

body.academy-page .academy-row__title,
body.academy-page .academy-proof__item h3,
body.academy-page .academy-about__text h2 {
  font-family: var(--font-sans);
  font-size: var(--type-card-title) !important;
  line-height: 1.22 !important;
}

.academy-section-title,
.programs-section__head h2,
.design-section__head h2,
.design-final h2 {
  font-size: var(--type-section) !important;
  line-height: var(--leading-title) !important;
  font-weight: 600 !important;
  text-wrap: balance;
}

.program-card h3,
.design-route-card h3,
.design-feature-card h3 {
  font-family: var(--font-sans);
  font-size: var(--type-card-title) !important;
  line-height: 1.22 !important;
  font-weight: 760;
  letter-spacing: 0;
}

.academy-subline,
.academy-about__list,
.programs-hero__copy > p:last-child,
.design-lead,
.design-section__head p,
.design-route-card p,
.design-feature-card p {
  font-size: var(--type-base);
  line-height: var(--leading-body);
}

.design-eyebrow,
.programs-eyebrow,
.academy-kicker,
.design-card-label,
.ph-badge,
.chip {
  font-family: var(--font-sans);
  font-size: var(--type-xs) !important;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .04em !important;
}

.site-footer__nav h2 {
  font-family: var(--font-sans) !important;
  font-size: .76rem !important;
  line-height: 1.2 !important;
  letter-spacing: .12em !important;
}

@media (max-width: 780px) {
  :root {
    --type-base: .98rem;
    --type-section: clamp(1.55rem, 7vw, 2rem);
    --type-page: clamp(1.95rem, 9vw, 2.8rem);
    --type-hero: clamp(2.05rem, 10vw, 3.1rem);
  }

  .academy-title,
  .programs-hero h1,
  .design-hero h1 {
    line-height: 1.02 !important;
  }
}

/* Modern visual consolidation layer */
:root {
  --ui-bg: #f7f4ee;
  --ui-bg-soft: #fbfaf7;
  --ui-surface: rgba(255, 255, 255, .86);
  --ui-surface-solid: #fffdf9;
  --ui-ink: #171512;
  --ui-muted: #69645c;
  --ui-soft: #8d867b;
  --ui-line: rgba(42, 36, 29, .12);
  --ui-line-strong: rgba(42, 36, 29, .2);
  --ui-accent: #b99063;
  --ui-accent-strong: #7a5836;
  --ui-radius: 8px;
  --ui-shadow: 0 10px 28px rgba(32, 26, 18, .07);
}

body:not(.academy-page) {
  color: var(--ui-ink);
  background:
    linear-gradient(180deg, var(--ui-bg-soft), var(--ui-bg) 46%, #f2eee7) !important;
}

.site-header {
  top: 10px;
  width: min(1120px, calc(100% - 28px));
  padding: 8px 12px;
  border-color: var(--ui-line);
  border-radius: 12px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 12px 32px rgba(32, 26, 18, .08);
}

.site-brand {
  gap: 12px;
}

.site-brand__mark,
.site-footer__mark {
  color: var(--ui-accent-strong);
}

.site-brand__divider,
.site-footer__divider {
  background: linear-gradient(180deg, transparent, rgba(122, 88, 54, .32), transparent);
}

.site-brand__text,
.site-footer__name {
  color: #3d3933;
}

.site-nav {
  gap: 2px;
  font-weight: 760;
}

.site-nav .nav-link,
.nav-dropdown a {
  min-height: 34px;
  border-radius: var(--ui-radius);
  color: #47423b;
}

.site-nav .nav-link:hover,
.site-nav__dropdown.is-open > .nav-link,
.nav-dropdown a:hover {
  color: var(--ui-accent-strong);
  background: rgba(185, 144, 99, .1);
}

.nav-dropdown {
  min-width: 250px;
  border-color: var(--ui-line);
  border-radius: 12px;
  background: rgba(255, 253, 249, .98);
  box-shadow: 0 18px 42px rgba(32, 26, 18, .12);
}

.site-icon-link,
.site-menu-button,
.theme-toggle {
  border-color: var(--ui-line);
  background: rgba(255, 253, 249, .72);
  color: #47423b;
  box-shadow: none;
}

.site-icon-link:hover,
.site-menu-button:hover,
.theme-toggle:hover {
  border-color: rgba(185, 144, 99, .32);
  color: var(--ui-accent-strong);
  background: rgba(185, 144, 99, .1);
}

.site-footer {
  border-color: var(--ui-line);
  border-radius: 12px;
  background: rgba(255, 253, 249, .88);
  box-shadow: 0 14px 36px rgba(32, 26, 18, .07);
}

.site-footer__inner {
  gap: 38px;
  padding: clamp(26px, 4vw, 38px);
}

.site-footer__brand p,
.site-footer__nav a,
.site-footer__bottom {
  color: var(--ui-muted);
}

.site-footer__nav h2 {
  color: var(--ui-ink);
}

.site-footer__contacts a {
  border-color: var(--ui-line);
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, .6);
  color: #47423b;
}

.site-footer__contacts a:hover,
.site-footer__nav a:hover,
.site-footer__bottom a:hover {
  color: var(--ui-accent-strong);
}

.site-footer__bottom {
  padding: 14px clamp(26px, 4vw, 38px);
  border-color: var(--ui-line);
}

body:not(.academy-page) section[class*="bg-gradient"],
body:not(.academy-page) div[class*="bg-gradient"],
body:not(.academy-page) .bg-gradient-to-br,
body:not(.academy-page) .bg-gradient-to-r,
body:not(.academy-page) .bg-gradient-to-b {
  background: var(--ui-bg-soft) !important;
}

body:not(.academy-page) .pointer-events-none[class*="blur"],
body:not(.academy-page) .hero-deco {
  display: none !important;
}

.gradient-border {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.card,
.card-soft,
body:not(.academy-page) article,
body:not(.academy-page) details,
body:not(.academy-page) .bg-white,
body:not(.academy-page) .bg-white\/70,
body:not(.academy-page) .bg-white\/80,
body:not(.academy-page) .bg-white\/90 {
  border-color: var(--ui-line) !important;
  border-radius: var(--ui-radius) !important;
  background: var(--ui-surface) !important;
  box-shadow: var(--ui-shadow) !important;
}

body:not(.academy-page) .rounded-2xl,
body:not(.academy-page) .rounded-xl,
body:not(.academy-page) .rounded-lg {
  border-radius: var(--ui-radius) !important;
}

body:not(.academy-page) .shadow,
body:not(.academy-page) .shadow-sm,
body:not(.academy-page) .shadow-md,
body:not(.academy-page) .shadow-lg,
body:not(.academy-page) .shadow-xl,
body:not(.academy-page) .shadow-2xl {
  box-shadow: var(--ui-shadow) !important;
}

.btn-primary,
.btn-buy,
.design-btn--primary,
body:not(.academy-page) a[class*="bg-emerald-600"],
body:not(.academy-page) button[class*="bg-emerald-600"] {
  min-height: 42px;
  border: 1px solid #171512 !important;
  border-radius: var(--ui-radius) !important;
  color: #fffaf3 !important;
  background: #171512 !important;
  box-shadow: 0 10px 24px rgba(23, 21, 18, .13) !important;
}

.btn-primary:hover,
.btn-buy:hover,
.design-btn--primary:hover,
body:not(.academy-page) a[class*="bg-emerald-600"]:hover,
body:not(.academy-page) button[class*="bg-emerald-600"]:hover {
  color: #fffaf3 !important;
  background: #2a241d !important;
  transform: translateY(-1px);
}

.design-btn--light,
.design-btn--ghost,
body:not(.academy-page) a[class*="border"],
body:not(.academy-page) button[class*="border"] {
  border-color: var(--ui-line-strong) !important;
}

body:not(.academy-page) a[class*="text-emerald"],
body:not(.academy-page) button[class*="text-emerald"],
body:not(.academy-page) .text-emerald-600,
body:not(.academy-page) .text-emerald-700,
body:not(.academy-page) .text-emerald-800,
body:not(.academy-page) .text-sky-600,
body:not(.academy-page) .text-sky-700 {
  color: var(--ui-accent-strong) !important;
}

body:not(.academy-page) .bg-emerald-50,
body:not(.academy-page) .bg-emerald-100,
body:not(.academy-page) .bg-sky-50,
body:not(.academy-page) .bg-sky-100,
body:not(.academy-page) .bg-teal-50,
body:not(.academy-page) .bg-amber-50,
body:not(.academy-page) .bg-neutral-100,
body:not(.academy-page) .bg-gray-100,
body:not(.academy-page) .bg-slate-100 {
  background: rgba(185, 144, 99, .08) !important;
}

.chip,
body:not(.academy-page) [class*="rounded-full"] {
  border-color: var(--ui-line) !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 249, .72) !important;
  color: var(--ui-accent-strong) !important;
  box-shadow: none !important;
}

body:not(.academy-page) main > section.max-w-5xl {
  max-width: 960px !important;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 34px;
  align-items: start;
  padding: clamp(24px, 4vw, 38px) !important;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft > i {
  grid-row: span 4;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(185, 144, 99, .2);
  border-radius: var(--ui-radius);
  background: rgba(185, 144, 99, .08);
  font-size: 1.2rem !important;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft h1 {
  margin-top: 0 !important;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft strong.text-3xl {
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  font-weight: 600;
  color: var(--ui-ink);
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft .mt-8.flex {
  grid-column: 1 / -1;
}


.academy-hero__aside,
.academy-panel,
.academy-proof__item,
.academy-about {
  border-radius: 12px;
}

.academy-hero__program,
.academy-row,
.academy-proof__item {
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.academy-row:hover,
.academy-hero__program:hover {
  transform: translateY(-1px);
}

html[data-theme="dark"] {
  --ui-bg: #080806;
  --ui-bg-soft: #11100d;
  --ui-surface: rgba(23, 21, 17, .9);
  --ui-surface-solid: #171512;
  --ui-ink: #fffaf3;
  --ui-muted: rgba(247, 241, 232, .7);
  --ui-soft: rgba(247, 241, 232, .54);
  --ui-line: rgba(224, 194, 152, .2);
  --ui-line-strong: rgba(224, 194, 152, .32);
  --ui-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .nav-dropdown {
  background: rgba(17, 16, 13, .9);
  border-color: var(--ui-line);
}

html[data-theme="dark"] .site-brand__text,
html[data-theme="dark"] .site-footer__name,
html[data-theme="dark"] .site-nav .nav-link,
html[data-theme="dark"] .nav-dropdown a,
html[data-theme="dark"] .site-footer__nav h2,
html[data-theme="dark"] .site-icon-link,
html[data-theme="dark"] .site-menu-button,
html[data-theme="dark"] .theme-toggle {
  color: #f7f1e8;
}

html[data-theme="dark"] .site-footer__brand p,
html[data-theme="dark"] .site-footer__nav a,
html[data-theme="dark"] .site-footer__bottom,
html[data-theme="dark"] body:not(.academy-page) p,
html[data-theme="dark"] body:not(.academy-page) li {
  color: var(--ui-muted);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .card-soft,
html[data-theme="dark"] body:not(.academy-page) article,
html[data-theme="dark"] body:not(.academy-page) details,
html[data-theme="dark"] body:not(.academy-page) .bg-white,
html[data-theme="dark"] body:not(.academy-page) .bg-white\/70,
html[data-theme="dark"] body:not(.academy-page) .bg-white\/80,
html[data-theme="dark"] body:not(.academy-page) .bg-white\/90 {
  color: var(--ui-ink) !important;
  background: var(--ui-surface) !important;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-buy,
html[data-theme="dark"] .design-btn--primary,
html[data-theme="dark"] body:not(.academy-page) a[class*="bg-emerald-600"],
html[data-theme="dark"] body:not(.academy-page) button[class*="bg-emerald-600"] {
  color: #17120d !important;
  border-color: rgba(240, 216, 184, .72) !important;
  background: #f0d8b8 !important;
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 18px, 1120px);
    border-radius: 10px;
  }

  .site-footer__inner,
  .site-footer__nav,
  body:not(.academy-page) main > section.max-w-5xl > .card-soft {
    grid-template-columns: 1fr;
  }

  body:not(.academy-page) main > section.max-w-5xl > .card-soft > i {
    grid-row: auto;
  }
}

/* Layout audit pass: spacing, sticky offsets, card flow */
html {
  scroll-padding-top: 150px;
}

[id] {
  scroll-margin-top: 150px;
}

.site-header {
  min-height: 56px;
}

body:not(.academy-page):not(.design-hub-page):not(.design-subpage) > section[class*="bg-gradient"] {
  width: min(1160px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: clamp(36px, 5vw, 58px) clamp(18px, 4vw, 34px) !important;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
}

body:not(.academy-page):not(.design-hub-page):not(.design-subpage) main {
  width: min(1160px, calc(100% - 28px));
  margin-inline: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body:not(.academy-page):not(.design-hub-page):not(.design-subpage) main > section {
  padding-top: clamp(38px, 5vw, 58px) !important;
  padding-bottom: clamp(38px, 5vw, 58px) !important;
}

body:not(.academy-page):not(.design-hub-page):not(.design-subpage) .max-w-7xl,
body:not(.academy-page):not(.design-hub-page):not(.design-subpage) .max-w-5xl,
body:not(.academy-page):not(.design-hub-page):not(.design-subpage) .max-w-4xl {
  max-width: 1160px !important;
}

body:not(.academy-page):not(.design-hub-page):not(.design-subpage) .grid {
  align-items: stretch;
}

body:not(.academy-page):not(.design-hub-page):not(.design-subpage) .card-soft,
body:not(.academy-page):not(.design-hub-page):not(.design-subpage) .card {
  height: 100%;
}

body:not(.academy-page):not(.design-hub-page):not(.design-subpage) h1 {
  max-width: 880px;
  text-wrap: balance;
}

body:not(.academy-page):not(.design-hub-page):not(.design-subpage) h2,
body:not(.academy-page):not(.design-hub-page):not(.design-subpage) h3 {
  text-wrap: balance;
}

body:not(.academy-page) .inline-flex {
  align-items: center;
  gap: .5rem;
}

body:not(.academy-page) a,
body:not(.academy-page) button {
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body:not(.academy-page) a:focus-visible,
body:not(.academy-page) button:focus-visible {
  outline: 2px solid rgba(185, 144, 99, .45);
  outline-offset: 3px;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft {
  grid-template-columns: 56px minmax(0, 1fr) minmax(150px, auto);
  gap: 12px 22px;
  align-items: start;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft > i {
  grid-column: 1;
  grid-row: 1 / span 3;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft > h1 {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0 !important;
  align-self: end;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft > h1 + p {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0 !important;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft > .mt-6.flex {
  grid-column: 2;
  grid-row: 3;
  margin-top: 8px !important;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft > p.mt-8 {
  grid-column: 3;
  grid-row: 1;
  margin-top: 0 !important;
  text-align: right;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft > strong.text-3xl {
  grid-column: 3;
  grid-row: 2 / span 2;
  align-self: start;
  justify-self: end;
  margin-top: 0;
  text-align: right;
  white-space: nowrap;
}

body:not(.academy-page) main > section.max-w-5xl > .card-soft > .mt-8.flex {
  grid-column: 1 / -1;
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px solid var(--ui-line);
}

body.academy-page .academy-hero {
  min-height: clamp(500px, 72vh, 650px);
}

body.academy-page .academy-hero__layout {
  gap: clamp(28px, 5vw, 50px);
}

body.academy-page .academy-row {
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 6px 16px;
  min-height: 0;
  padding: 18px;
}

body.academy-page .academy-row--featured {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

body.academy-page .academy-row__icon {
  width: 50px;
  height: 50px;
}

body.academy-page .academy-proof {
  gap: 12px;
}


@media (max-width: 900px) {
  html {
    scroll-padding-top: 128px;
  }

  [id] {
    scroll-margin-top: 128px;
  }

  body:not(.academy-page) main > section.max-w-5xl > .card-soft {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body:not(.academy-page) main > section.max-w-5xl > .card-soft > p.mt-8,
  body:not(.academy-page) main > section.max-w-5xl > .card-soft > strong.text-3xl {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  body:not(.academy-page) main > section.max-w-5xl > .card-soft > p.mt-8 {
    grid-row: 4;
    margin-top: 12px !important;
  }

  body:not(.academy-page) main > section.max-w-5xl > .card-soft > strong.text-3xl {
    grid-row: 5;
  }

  body.academy-page .academy-hero__layout {
    grid-template-columns: 1fr;
  }

  body.academy-page .academy-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  body.academy-page .academy-row--featured {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  body.academy-page .academy-row__price {
    border-left: 0;
    padding-left: 0;
  }

}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 108px;
  }

  [id] {
    scroll-margin-top: 108px;
  }

  .site-header {
    top: 8px;
    padding: 7px 10px;
  }

  .site-brand__divider,
  .site-brand__text {
    display: none;
  }

  body:not(.academy-page):not(.design-hub-page):not(.design-subpage) > section[class*="bg-gradient"],
  body:not(.academy-page):not(.design-hub-page):not(.design-subpage) main {
    width: min(100% - 18px, 1160px);
  }

  body:not(.academy-page) main > section.max-w-5xl > .card-soft {
    grid-template-columns: 1fr;
  }

  body:not(.academy-page) main > section.max-w-5xl > .card-soft > i,
  body:not(.academy-page) main > section.max-w-5xl > .card-soft > h1,
  body:not(.academy-page) main > section.max-w-5xl > .card-soft > h1 + p,
  body:not(.academy-page) main > section.max-w-5xl > .card-soft > .mt-6.flex,
  body:not(.academy-page) main > section.max-w-5xl > .card-soft > p.mt-8,
  body:not(.academy-page) main > section.max-w-5xl > .card-soft > strong.text-3xl,
  body:not(.academy-page) main > section.max-w-5xl > .card-soft > .mt-8.flex {
    grid-column: 1;
    grid-row: auto;
  }

}
