@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --background: #171421;
  --surface: #201b2d;
  --surface-lifted: #282137;
  --text: #faf6f0;
  --muted: #c9c0d0;
  --accent: #c7b5ff;
  --gold: #f5dc8c;
  --gold-hover: #ffedae;
  --ink: #211a11;
  --line: #453b54;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  font-family: Manrope, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
p, ul, ol, dl, figure { margin: 0; }
p { color: var(--muted); }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.042em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.15rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, 1220px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #ffffff12; }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  aspect-ratio: 1;
  border: 1px solid #8a75bb;
  border-radius: 12px;
  background: #2b2240;
  color: #e6dbff;
  font-size: .88rem;
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: .99rem; font-weight: 800; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .8rem; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.site-nav a, .footer-inner > a:last-child {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover, .footer-inner > a:last-child:hover { color: var(--text); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 49px;
  padding: 11px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: var(--gold-hover); }
.button-outline { border-color: #635373; background: transparent; color: var(--text); }
.button-outline:hover { border-color: var(--accent); background: #302541; }
.header-action { min-height: 42px; }

.text-link {
  width: fit-content;
  color: var(--accent);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #9281b9;
  text-underline-offset: .26em;
}

.text-link:hover { color: #ede5ff; text-decoration-color: currentColor; }

.hero {
  padding-block: 36px 0;
  background: radial-gradient(ellipse at 68% 12%, #563d742d, transparent 64%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "copy portrait" "metrics portrait";
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 30px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(ellipse at 93% -8%, #69508744, transparent 59%), #1e192a;
}

.hero-copy { grid-area: copy; }

.eyebrow {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .065em;
}

.hero h1 {
  margin-block: 16px 21px;
  font-size: clamp(3rem, 6vw, 5.55rem);
  line-height: .99;
  letter-spacing: -.075em;
}

.hero h1 span { color: var(--accent); }
.hero-description { max-width: 29em; font-size: clamp(1.05rem, 1.65vw, 1.25rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 26px;
}

.hero-actions .text-link { font-size: .9rem; }
.hero-note { margin-top: 11px; font-size: .875rem; }

.hero-figure {
  position: relative;
  grid-area: portrait;
  align-self: stretch;
  display: grid;
  min-height: 492px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #ffffff30;
  border-radius: var(--radius);
  background: #3c3036;
}

.hero-figure img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
}

.hero-figure figcaption {
  position: relative;
  align-self: end;
  display: grid;
  gap: 2px;
  padding: 44px 23px 20px;
  color: white;
  background: linear-gradient(transparent, #14101de8 80%);
}

.hero-figure strong { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.2; }
.hero-figure figcaption span { font-size: .875rem; }

.hero-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: .88fr 1.17fr 1fr;
  gap: 12px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.hero-metrics > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 3px; }

.hero-metrics dt {
  max-width: 16ch;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

.hero-metrics dd {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.hero-metrics dd span { font-size: .5em; letter-spacing: -.015em; }

.section {
  padding-block: clamp(57px, 8.5vw, 116px);
  scroll-margin-top: 12px;
}

.section-head { margin-bottom: clamp(26px, 4vw, 42px); }
.section-head p { margin-top: 12px; font-size: clamp(1rem, 1.6vw, 1.125rem); }
#programs .section-head, #diagnostics .section-head { text-align: center; }

.section-head-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px 30px;
}

.section-head-action .button { flex-shrink: 0; }

.program-grid, .result-grid, .resource-grid, .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 2vw, 24px);
}

.program-card, .result-card, .resource-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(19px, 2.55vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.program-card:first-child { background: linear-gradient(140deg, #332645, var(--surface) 72%); }

.tag {
  align-self: start;
  margin-bottom: 15px;
  padding: 3px 10px;
  border: 1px solid #67547e;
  border-radius: 7px;
  background: #302540;
  color: #e0d4ff;
  font-size: .875rem;
  font-weight: 800;
}

.program-card > h3 + p, .resource-card > h3 + p { margin-top: 12px; }
.program-card > .button { align-self: start; margin-top: auto; }
.program-price { margin-block: -6px 21px; font-size: .9rem; }

.check-list {
  display: grid;
  gap: 9px;
  margin-block: 22px 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li { position: relative; padding-left: 21px; }

.check-list li::before {
  position: absolute;
  top: .58em;
  left: 1px;
  width: 9px;
  height: 5px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg);
}

.section-note { margin-top: 20px; font-size: .9rem; text-align: center; }

.section-tinted {
  background: radial-gradient(ellipse at 2% 25%, #44315e55, transparent 63%), #1d1828;
  border-block: 1px solid #ffffff13;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 7vw, 100px);
}

.about-photo {
  width: 100%;
  height: auto;
  max-height: 490px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-copy h2 { margin-block: 11px 18px; }
.about-copy > p:not(.eyebrow) { font-size: clamp(1rem, 1.6vw, 1.125rem); }

.steps {
  counter-reset: step;
  gap: clamp(18px, 4vw, 56px);
  padding: 0;
  margin-bottom: 34px;
  list-style: none;
}

.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 1px solid #5b486e;
}

.steps li::before {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--accent);
  background: #2f2540;
  content: counter(step);
  font-weight: 800;
}

.steps p { margin-top: 10px; }
#diagnostics .wrap > .button { display: flex; width: fit-content; margin-inline: auto; }

.section-results {
  border-block: 1px solid #ffffff13;
  background: radial-gradient(ellipse at 73% 80%, #392a4e7a, transparent 67%), #1d1828;
}

.result-card { background: #231d30; }

.result-card h3 {
  margin-block: 7px 14px;
  color: var(--accent);
  font-size: clamp(2.7rem, 5.6vw, 4.65rem);
  line-height: .95;
}

.result-card h3 span { color: #b6a5ca; font-size: .45em; letter-spacing: -.03em; }
.result-card > p:not(.tag), .resource-card > p:not(.tag) { margin-bottom: 20px; }
.result-card .text-link, .resource-card .text-link { margin-top: auto; font-size: .9rem; }

.resource-grid { gap: clamp(18px, 4vw, 48px); }

.resource-card {
  padding: 23px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.resource-card .tag { padding: 0; border: 0; background: none; color: var(--accent); }

.booking {
  padding-block: 0 clamp(56px, 8.5vw, 105px);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 85px);
  padding: clamp(24px, 5vw, 65px);
  border: 1px solid #6b5488;
  border-radius: 28px;
  background: radial-gradient(ellipse at 1% 75%, #51386b98, transparent 66%), #2b213a;
}

.booking-copy p {
  max-width: 27em;
  margin-block: 16px 19px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.booking-form {
  display: grid;
  gap: 9px;
  padding: clamp(17px, 2.6vw, 28px);
  border: 1px solid #625174;
  border-radius: 18px;
  background: #221b31;
}

.booking-form label { font-size: .9rem; font-weight: 750; }
.booking-form label span { color: var(--muted); font-weight: 500; }
.select-wrap { position: relative; margin-bottom: 5px; }

.select-wrap::after {
  position: absolute;
  top: calc(50% - 6px);
  right: 16px;
  width: 9px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.booking-form select {
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #685679;
  border-radius: 10px;
  background: #191523;
  color: var(--text);
}

.booking-form .button { margin-top: 5px; }
.booking-form p { margin-top: 4px; font-size: .875rem; line-height: 1.45; }

.site-footer { border-top: 1px solid #ffffff16; }
.footer-inner { min-height: 98px; }

@media (max-width: 1050px) {
  .hero-grid { column-gap: 28px; }
  .hero-figure { min-height: 435px; }
  .program-card > .button { width: 100%; }
}

@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; gap: 12px 20px; padding-block: 14px; }
  .site-nav {
    order: 2;
    justify-content: start;
    gap: 8px 24px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #ffffff13;
  }
  .site-nav a { padding-block: 4px; }
  .hero h1 { font-size: clamp(2.8rem, 7.3vw, 4.1rem); }
  .hero-grid { row-gap: 22px; }
  .hero-figure { min-height: 380px; }
  .program-grid, .result-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero { padding-top: 21px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "portrait" "metrics";
    grid-template-rows: auto;
    padding: clamp(16px, 5vw, 30px);
    border-radius: 23px;
  }
  .hero-figure { min-height: 0; aspect-ratio: 1 / 1.08; border-radius: 15px; }
  .hero-figure img { object-position: center 29%; }
  .hero-figure figcaption { padding: 35px 14px 14px; }
  .hero h1 { font-size: clamp(2.35rem, 10.1vw, 4.4rem); }
  .hero-actions { margin-top: 21px; }
  .hero-metrics { padding-top: 16px; }
  .section-head-action { align-items: start; flex-direction: column; }
  .program-grid, .result-grid, .resource-grid, .steps, .about-grid, .booking-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-copy { grid-row: 1; }
  .steps { gap: 22px; }
}

@media (max-width: 390px) {
  .header-inner { gap: 10px 7px; }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; border-radius: 9px; }
  .brand strong { font-size: .875rem; }
  .brand small { font-size: .72rem; }
  .header-action { padding-inline: 9px; font-size: .83rem; }
  .site-nav { justify-content: space-between; gap: 3px; }
  .site-nav a { font-size: .86rem; }
  .hero-metrics { gap: 6px; }
  .hero-metrics dt { font-size: .78rem; }
  .hero h1 { letter-spacing: -.064em; }
  .hero-actions .button { width: 100%; }
  .footer-inner { gap: 12px; }
  .footer-inner > a:last-child { font-size: .85rem; }
}

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