:root {
  --paper: #f4f2ed;
  --paper-deep: #e9e8e2;
  --ink: #18232c;
  --muted: #667078;
  --navy: #172a3a;
  --navy-soft: #223b4c;
  --line: rgba(24, 35, 44, 0.16);
  --bright: #f4d85b;
  --blue: #a7d7ff;
  --orange: #ffb47d;
  --green: #bbdfc8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", sans-serif;
}

/* O-5 product page */
.course-page {
  --course-blue: #64afdc;
  --course-blue-soft: #dbf1ff;
  --course-mint: #d4fff7;
  display: grid;
  gap: 24px;
  min-width: 0;
}

.course-page--english {
  --course-blue: #f2c85b;
  --course-blue-soft: #fff0b5;
  --course-mint: #e4f3d8;
}

.course-page--law {
  --course-blue: #64afdc;
  --course-blue-soft: #d9efff;
  --course-mint: #d9f4ff;
}

.course-page--history {
  --course-blue: #b9a4ec;
  --course-blue-soft: #e9e0ff;
  --course-mint: #d8f3ee;
}

.course-breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
  margin: 0 4px 2px;
  min-width: 0;
}

.course-breadcrumbs a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 180ms ease;
}

.course-breadcrumbs a:hover {
  text-decoration-color: currentColor;
}

.course-hero {
  background: var(--navy);
  border-radius: 32px;
  color: #f9f7ef;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  min-height: 670px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.course-hero::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  height: 310px;
  opacity: 0.55;
  position: absolute;
  right: -70px;
  top: -90px;
  transform: rotate(11deg);
  width: 480px;
}

.course-hero__copy {
  align-self: center;
  min-width: 0;
  padding: 72px 40px 68px 76px;
  position: relative;
  z-index: 1;
}

.course-hero h1 {
  font-size: clamp(56px, 6.6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.86;
  margin: 0;
  max-width: 670px;
  min-width: 0;
}

.course-hero h1 span,
.course-hero h1 em {
  display: block;
}

.course-hero h1 em {
  color: var(--course-blue-soft);
  font-size: clamp(46px, 5vw, 72px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  hyphens: auto;
  letter-spacing: -0.065em;
  overflow-wrap: break-word;
}

.course-hero__promise {
  color: var(--course-blue);
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 30px 0 0;
  max-width: 520px;
}

.course-hero__lead {
  color: rgba(249, 247, 239, 0.76);
  font-size: 16px;
  line-height: 1.58;
  margin: 24px 0 0;
  max-width: 560px;
}

.course-hero__actions,
.course-schedule__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  min-width: 0;
}

.course-link {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: rgba(24, 35, 44, 0.28);
  text-underline-offset: 5px;
}

.course-link--light {
  color: #f9f7ef;
  text-decoration-color: rgba(249, 247, 239, 0.38);
}

.course-link span,
.course-price__button span {
  display: inline-block;
  transition: transform 180ms ease;
}

.course-link:hover span,
.course-price__button:hover span {
  transform: translate(3px, -3px);
}

.course-hero__meta {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 42px 0 0;
}

.course-hero__meta div {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 0;
  padding-top: 13px;
}

.course-hero__meta dt {
  color: rgba(249, 247, 239, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-hero__meta dd {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.course-hero__visual {
  align-self: center;
  margin: 58px 58px 58px 18px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.course-hero__visual::before {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  inset: -45px -32px;
  position: absolute;
  transform: rotate(-8deg);
}

.course-hero__visual img {
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  position: relative;
  transform: rotate(2.5deg);
  width: 100%;
}

.course-hero__visual--english img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.course-hero__visual--law img {
  aspect-ratio: 1;
  object-fit: cover;
}

.course-hero__visual--history img {
  aspect-ratio: 1;
  object-fit: contain;
}

.course-hero__visual figcaption {
  background: var(--course-blue-soft);
  border-radius: 999px;
  bottom: 24px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  left: -18px;
  letter-spacing: 0.04em;
  max-width: calc(100% - 12px);
  padding: 11px 16px;
  position: absolute;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.course-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  min-width: 0;
  padding: 70px 76px;
}

.course-section__heading {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.65fr);
  margin-bottom: 42px;
  min-width: 0;
}

.course-section__heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -2px;
}

.course-section__heading h2,
.course-final h2 {
  font-size: clamp(48px, 5.7vw, 82px);
  letter-spacing: -0.075em;
  line-height: 0.92;
  margin: 0;
  min-width: 0;
}

.course-section__heading > p:last-child:not(.course-pricing__deadline),
.course-section__heading > div + p:not(.course-pricing__deadline),
.course-schedule__copy > p:not(.eyebrow),
.course-final p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
  margin: 0;
  max-width: 520px;
}

.course-section__heading--compact {
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.5fr);
}

.course-route__grid,
.course-compare-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-stage {
  border-radius: 24px;
  min-height: 370px;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.course-stage--autumn {
  background: var(--course-blue-soft);
}

.course-stage--winter {
  background: var(--navy);
  color: #f9f7ef;
}

.course-stage::after {
  border: 1px solid currentColor;
  border-radius: 50%;
  bottom: -140px;
  content: "";
  height: 310px;
  opacity: 0.12;
  position: absolute;
  right: -80px;
  width: 310px;
}

.course-stage__index {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  opacity: 0.75;
  width: 38px;
}

.course-stage__period {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin: 52px 0 0;
  opacity: 0.68;
  text-transform: uppercase;
}

.course-stage h3 {
  font-size: clamp(34px, 3.3vw, 49px);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 12px 0 0;
  max-width: 520px;
}

.course-stage > p:last-child {
  font-size: 15px;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 520px;
  opacity: 0.78;
  position: relative;
  z-index: 1;
}

.course-composition {
  background: var(--paper-deep);
}

.course-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.course-fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 178px;
  min-width: 0;
  padding: 24px;
}

.course-fact dt {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(54px, 5vw, 72px);
  font-style: italic;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.course-fact dd {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  hyphens: auto;
  line-height: 1.35;
  margin: 24px 0 0;
  overflow-wrap: break-word;
}

.course-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.course-disciplines span {
  background: var(--navy);
  border-radius: 999px;
  color: #f9f7ef;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 16px;
}

.course-compare-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 34px;
}

.course-compare-card--pro {
  background: var(--course-blue-soft);
  border-color: rgba(100, 175, 220, 0.45);
}

.course-compare-card__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin: 0;
  text-transform: uppercase;
}

.course-compare-card h3 {
  font-size: clamp(34px, 3.2vw, 48px);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 32px 0 0;
}

.course-compare-card ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 30px 0 28px;
  padding: 0;
}

.course-compare-card li {
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  padding: 14px 0 0 26px;
  position: relative;
}

.course-compare-card li::before {
  color: #2f8e74;
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.course-compare-card .course-link {
  margin-top: auto;
  width: fit-content;
}

.course-compare-card__note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: -8px 0 28px;
}

.course-pricing {
  background: var(--navy);
  color: #f9f7ef;
}

.course-section__heading--pricing {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}

.course-section__heading--pricing .eyebrow {
  grid-column: auto;
  margin-bottom: 22px;
}

.course-pricing__deadline {
  background: var(--bright);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  padding: 13px 18px;
  text-align: center;
}

.course-pricing__legend {
  display: none;
}

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

.course-price-period {
  background: #f9f7ef;
  border-radius: 22px;
  color: var(--ink);
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.course-price-period header {
  border-bottom: 1px solid var(--line);
  padding: 25px 26px 22px;
}

.course-price-period header p,
.course-price p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.course-price-period h3 {
  font-size: 28px;
  letter-spacing: -0.055em;
  margin: 8px 0 0;
}

.course-price {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  min-width: 0;
  padding: 24px 26px 26px;
}

.course-price--pro {
  background: var(--course-blue-soft);
  border-top: 1px solid var(--line);
}

.course-price strong {
  font-family: var(--serif);
  font-size: clamp(38px, 3.4vw, 52px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 1;
  margin-top: 24px;
  white-space: nowrap;
}

.course-price__button {
  align-items: center;
  background: var(--navy);
  border-radius: 999px;
  color: #f9f7ef;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  justify-content: space-between;
  margin-top: auto;
  min-height: 46px;
  padding: 12px 16px;
  width: 100%;
}

.course-price--pro .course-price__button {
  background: var(--ink);
}

.course-schedule {
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.course-schedule__copy {
  align-self: center;
  min-width: 0;
}

.course-schedule__copy h2 {
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.075em;
  line-height: 0.92;
  margin: 0 0 28px;
}

.course-schedule__milestones {
  counter-reset: none;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-schedule__milestones li {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 20px;
}

.course-schedule__milestones li > span {
  align-items: center;
  background: var(--course-blue-soft);
  border-radius: 50%;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.course-schedule__milestones strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.course-schedule__milestones p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.course-audience {
  align-items: center;
  background: var(--paper-deep);
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.68fr);
}

.course-audience__copy h2 {
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.07em;
  line-height: 0.94;
  margin: 28px 0 0;
}

.course-audience__copy > p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
  margin: 26px 0 0;
  max-width: 600px;
}

.course-audience__visual {
  margin: 0;
  min-width: 0;
}

.course-audience__visual img {
  border: 1px solid var(--line);
  border-radius: 24px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.course-teachers {
  background: var(--paper-deep);
}

.course-teachers__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-teacher-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  min-width: 0;
  padding: 28px;
}

.course-teacher-card > span {
  align-items: center;
  background: var(--course-blue-soft);
  border-radius: 50%;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.course-teacher-card h3 {
  font-size: clamp(26px, 2.7vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 34px 0 0;
}

.course-teacher-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 20px 0 0;
}

.course-faq__list {
  border-top: 1px solid var(--line);
}

.course-faq details {
  border-bottom: 1px solid var(--line);
}

.course-faq summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  gap: 20px;
  justify-content: space-between;
  letter-spacing: -0.035em;
  min-height: 76px;
  padding: 20px 4px;
}

.course-faq summary::after {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "+";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.course-faq details[open] summary::after {
  content: "−";
}

.course-faq summary:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: 4px;
}

.course-faq details p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
  padding: 0 64px 28px 4px;
}

.course-final {
  align-items: end;
  background: var(--navy);
  border-radius: 30px;
  color: #f9f7ef;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 68px 76px;
}

.course-final p:not(.eyebrow) {
  color: rgba(249, 247, 239, 0.68);
  margin-top: 24px;
}

.course-final .button {
  white-space: nowrap;
}

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

.course-included-list li {
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  min-width: 0;
  padding: 17px 0 17px 28px;
  position: relative;
}

.course-included-list li::before {
  color: #2f8e74;
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.course-special-payment {
  background: var(--paper-deep);
}

.course-special-payment__grid {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.course-special-payment__extension {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  padding: 22px 24px;
}

.course-special-payment__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-special-payment__links .button {
  min-height: 46px;
  white-space: nowrap;
}

.course-evidence-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.course-evidence-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
}

.course-evidence-card--visual {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
}

.course-evidence-card__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.course-evidence-card h3 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 28px 0 0;
}

.course-evidence-card > div > p:not(.course-evidence-card__label),
.course-evidence-card > p:not(.course-evidence-card__label) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 22px 0 0;
}

.course-evidence-card > .course-link {
  margin-top: auto;
  padding-top: 28px;
  width: fit-content;
}

.course-evidence-card figure {
  align-self: center;
  margin: 0;
  min-width: 0;
}

.course-evidence-card figure img {
  border: 6px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  transform: rotate(2deg);
  width: 100%;
}

.course-evidence-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 22px;
}

.course-video-links {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
}

.course-video-links .course-link {
  font-size: 12px;
  min-height: 32px;
}

@media (max-width: 1100px) {
  .course-hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  }

  .course-hero__copy {
    padding-left: 54px;
  }

  .course-hero__visual {
    margin-right: 38px;
  }

  .course-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .course-hero,
  .course-section__heading,
  .course-section__heading--compact,
  .course-section__heading--pricing,
  .course-schedule,
  .course-final {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-hero__copy {
    padding: 66px 54px 46px;
  }

  .course-hero__visual {
    margin: 0 auto 58px;
    max-width: 540px;
    padding: 0 32px;
    width: 100%;
  }

  .course-section__heading > p:last-child,
  .course-section__heading > div + p {
    max-width: 720px;
  }

  .course-pricing__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-price-period {
    grid-template-columns: minmax(180px, 0.7fr) repeat(2, minmax(0, 1fr));
  }

  .course-price-period header {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .course-price--pro {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .course-final {
    align-items: start;
  }

  .course-final .button {
    width: fit-content;
  }

  .course-special-payment__grid,
  .course-evidence-grid,
  .course-audience {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-audience__visual {
    margin-inline: auto;
    max-width: 620px;
  }
}

@media (max-width: 800px) {
  .course-price-period {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-price-period header {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .course-price--pro {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .course-page {
    gap: 16px;
  }

  .course-breadcrumbs {
    font-size: 11px;
    margin: 0 2px;
  }

  .course-hero,
  .course-section,
  .course-final {
    border-radius: 24px;
  }

  .course-hero__copy {
    padding: 48px clamp(22px, 7vw, 34px) 38px;
  }

  .course-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 0.9;
    max-width: 100%;
  }

  .course-hero h1.course-hero__title--society {
    font-size: clamp(28px, 8.2vw, 38px);
    letter-spacing: -0.055em;
  }

  .course-hero h1 em {
    font-size: clamp(31px, 9vw, 40px);
    overflow-wrap: break-word;
  }

  .course-hero__promise {
    font-size: clamp(22px, 7vw, 28px);
  }

  .course-hero__lead {
    font-size: 15px;
  }

  .course-hero__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-hero__visual {
    margin-bottom: 42px;
    max-width: 460px;
    padding: 0 26px;
  }

  .course-hero__visual img {
    transform: none;
  }

  .course-section,
  .course-final {
    padding: 46px clamp(22px, 7vw, 34px);
  }

  .course-section__heading h2,
  .course-final h2,
  .course-schedule__copy h2 {
    font-size: clamp(40px, 12vw, 56px);
    overflow-wrap: break-word;
  }

  .course-route__grid,
  .course-compare-grid,
  .course-teachers__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-audience {
    gap: 34px;
  }

  .course-audience__copy h2 {
    font-size: clamp(38px, 11vw, 52px);
    overflow-wrap: break-word;
  }

  .course-stage,
  .course-compare-card {
    min-height: 0;
    padding: 28px;
  }

  .course-included-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-evidence-card--visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-video-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-stage h3 {
    font-size: clamp(29px, 8.5vw, 40px);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .course-stage__period {
    margin-top: 42px;
  }

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

  .course-fact {
    min-height: 158px;
    padding: 20px;
  }

  .course-price {
    min-height: 205px;
  }

  .course-faq summary {
    font-size: 20px;
    line-height: 1.2;
    min-height: 68px;
  }

  .course-faq details p {
    padding-right: 4px;
  }

  .course-special-payment__links {
    align-items: stretch;
    flex-direction: column;
  }

  .course-special-payment__links .button {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 340px) {
  .course-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .course-hero__actions,
  .course-schedule__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .course-hero__actions .button,
  .course-schedule__actions .button,
  .course-hero__actions .course-link,
  .course-schedule__actions .course-link,
  .course-final .button {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .course-hero__visual figcaption {
    bottom: 16px;
    font-size: 9px;
    left: 12px;
  }

  .course-fact dt {
    font-size: 50px;
  }

  .course-fact dd {
    font-size: 12px;
  }

  .course-disciplines span {
    flex: 1 1 calc(50% - 9px);
    text-align: center;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: 4px;
}

::selection {
  background: var(--bright);
  color: var(--ink);
}

.site-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 36px;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  min-height: 94px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  gap: 10px;
}

.brand__mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--bright);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  letter-spacing: -0.08em;
  line-height: 1;
  padding-right: 2px;
  text-transform: lowercase;
  width: 32px;
}

.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.site-nav a,
.header-link {
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.site-nav a:hover,
.header-link:hover {
  color: var(--ink);
}

.header-link {
  color: var(--ink);
  font-weight: 700;
}

.mobile-nav {
  display: none;
}

.header-link span,
.text-link span,
.button span,
.contact-links span,
.contact-panel__site span,
.program-card__link span {
  display: inline-block;
  transition: transform 180ms ease;
}

.header-link:hover span,
.text-link:hover span,
.button:hover span,
.contact-links a:hover span,
.contact-panel__site:hover span,
.program-card__link:hover span {
  transform: translate(3px, -3px);
}

.hero {
  background: var(--navy);
  border-radius: 32px;
  color: #f9f7ef;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: 610px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  height: 280px;
  opacity: 0.6;
  position: absolute;
  right: -50px;
  top: -80px;
  transform: rotate(12deg);
  width: 450px;
}

.hero::after {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  bottom: -240px;
  content: "";
  height: 520px;
  position: absolute;
  right: 22%;
  width: 520px;
}

.hero__copy {
  align-self: center;
  max-width: 660px;
  min-width: 0;
  padding: 78px 40px 78px 76px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0.14em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(249, 247, 239, 0.66);
}

.eyebrow--dark {
  color: rgba(24, 35, 44, 0.68);
}

.eyebrow__dot {
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  width: 6px;
}

.hero h1 {
  font-size: clamp(64px, 8.6vw, 124px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.84;
  margin: 0;
  max-width: 690px;
}

.hero h1.hero__title--season {
  font-size: clamp(58px, 7.2vw, 100px);
  letter-spacing: -0.075em;
  line-height: 0.9;
}

h1 em,
h2 em {
  color: var(--bright);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.09em;
}

.hero__lead {
  color: rgba(249, 247, 239, 0.74);
  font-size: 17px;
  line-height: 1.55;
  margin: 38px 0 0;
  max-width: 460px;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
}

.button {
  align-items: center;
  border-radius: 100px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 18px;
  justify-content: center;
  padding: 16px 21px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--bright {
  background: var(--bright);
  color: var(--ink);
}

.button--bright:hover {
  background: #fff0a0;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
}

.text-link--light {
  color: rgba(249, 247, 239, 0.86);
}

.hero__visual {
  min-height: 610px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.hero__visual-topline {
  color: rgba(249, 247, 239, 0.5);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  left: 30px;
  letter-spacing: 0.12em;
  position: absolute;
  right: 38px;
  text-transform: uppercase;
  top: 34px;
}

.orbit {
  border: 1px solid rgba(249, 247, 239, 0.18);
  border-radius: 50%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-44%, -50%) rotate(-23deg);
}

.orbit--outer {
  height: 440px;
  width: 620px;
}

.orbit--inner {
  height: 280px;
  opacity: 0.65;
  transform: translate(-43%, -50%) rotate(41deg);
  width: 440px;
}

.hero-card {
  background: #f1eee4;
  border-radius: 22px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: absolute;
}

.hero-card--back {
  align-items: flex-start;
  background: var(--orange);
  height: 165px;
  justify-content: space-between;
  left: 50%;
  padding: 24px;
  top: 31%;
  transform: rotate(9deg) translateX(-12%);
  width: 245px;
}

.hero-card--back span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-card--back strong {
  align-self: flex-end;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  line-height: 0.7;
}

.hero-card--front {
  height: 284px;
  justify-content: center;
  left: 35%;
  padding: 29px;
  top: 34%;
  transform: rotate(-8deg);
  width: 270px;
  z-index: 1;
}

.hero-card__tiny,
.hero-card__caption {
  color: #667078;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card__tiny {
  left: 29px;
  position: absolute;
  top: 25px;
}

.hero-card--front strong {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero-card--front .hero-card__accent {
  color: #e77945;
}

.hero-card__line {
  background: var(--ink);
  height: 1px;
  margin: 23px 0 13px;
  width: 100%;
}

.hero__visual-label {
  color: rgba(249, 247, 239, 0.54);
  font-size: 11px;
  position: absolute;
}

.hero__visual-label--one {
  left: 12%;
  top: 33%;
}

.hero__visual-label--two {
  right: 10%;
  top: 56%;
}

.hero__visual-label--three {
  bottom: 16%;
  left: 25%;
}

.signal-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 0 21px;
}

.signal-row__item {
  display: grid;
  gap: 5px;
  grid-template-columns: auto 1fr;
}

.signal-row__item span:not(.signal-row__index) {
  color: var(--muted);
  font-size: 12px;
  grid-column: 2;
}

.signal-row__item strong {
  font-size: 14px;
}

.signal-row__index {
  color: var(--muted);
  font-size: 10px;
  grid-row: span 2;
  padding-right: 7px;
}

.section {
  padding: 128px 0;
}

.section-heading {
  align-items: flex-end;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(42px, 5.5vw, 76px);
  letter-spacing: -0.08em;
  line-height: 0.92;
  margin: 0;
}

.section-heading__note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 4px;
  max-width: 330px;
}

.section-heading > div {
  min-width: 0;
}

.program-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.program-card {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  overflow: hidden;
  padding: 25px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.program-card:hover {
  box-shadow: 0 18px 44px rgba(24, 35, 44, 0.08);
  transform: translateY(-5px);
}

.program-card--blue {
  --card-accent: var(--blue);
}

.program-card--orange {
  --card-accent: var(--orange);
}

.program-card--green {
  --card-accent: var(--green);
}

.program-card__topline {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.program-card__number {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.program-card__status {
  background: color-mix(in srgb, var(--card-accent) 70%, white);
  border-radius: 100px;
  font-size: 10px;
  padding: 7px 10px;
}

.program-card__body {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.program-card__label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

.program-card h3 {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.08em;
  line-height: 0.95;
  margin: 0;
}

.program-card__description {
  font-size: 14px;
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 290px;
}

.program-card__footer {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-top: 31px;
  position: relative;
  z-index: 1;
}

.program-card__link {
  font-size: 13px;
  font-weight: 700;
}

.program-card__link--disabled {
  color: var(--muted);
  font-weight: 400;
}

.program-card__orb {
  background: var(--card-accent);
  border-radius: 50%;
  bottom: -57px;
  height: 168px;
  position: absolute;
  right: -48px;
  width: 168px;
  z-index: -1;
}

.section--about {
  align-items: start;
  background: var(--paper-deep);
  border-radius: 32px;
  display: grid;
  gap: 11%;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding: 84px 76px;
}

.about-intro h2 {
  font-size: clamp(45px, 5.6vw, 78px);
}

.about-intro__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 36px 0 0;
  max-width: 350px;
}

.about-story {
  border-left: 3px solid var(--ink);
  margin-top: 38px;
  max-width: 390px;
  padding: 2px 0 2px 17px;
}

.about-story__label {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.about-story p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.principles-list {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.principle {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  padding: 26px 0;
}

.principle__mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--bright);
  display: flex;
  font-family: var(--serif);
  font-size: 16px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.principle h3 {
  font-size: 20px;
  letter-spacing: -0.04em;
  margin: 0;
}

.principle p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 9px 0 0;
  max-width: 420px;
}

.principle__arrow {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 22px;
}

.section--method {
  padding-bottom: 90px;
}

.section-heading--method {
  align-items: flex-start;
}

.steps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  border-top: 2px solid var(--ink);
  min-height: 230px;
  padding: 19px 0 0;
}

.step-card__number {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.step-card__rule {
  background: var(--bright);
  display: block;
  height: 5px;
  margin: 30px 0 28px;
  width: 42px;
}

.step-card:nth-child(2) .step-card__rule {
  background: var(--orange);
}

.step-card:nth-child(3) .step-card__rule {
  background: var(--blue);
}

.step-card h3 {
  font-size: 24px;
  letter-spacing: -0.06em;
  margin: 0;
}

.step-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 290px;
}

.method-note {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 15px;
  margin-top: 64px;
  padding-top: 19px;
}

.method-note__mark {
  color: #e77945;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
}

.method-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-width: 600px;
}

.contact-panel {
  background: var(--bright);
  border-radius: 32px;
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  padding: 68px 76px 76px;
}

.contact-panel h2 {
  font-size: clamp(55px, 7.4vw, 105px);
}

.contact-panel__details {
  align-self: end;
  max-width: 360px;
}

.contact-panel__details > p {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 28px;
}

.contact-links {
  border-top: 1px solid rgba(24, 35, 44, 0.24);
  display: grid;
}

.contact-links a {
  align-items: center;
  border-bottom: 1px solid rgba(24, 35, 44, 0.24);
  display: flex;
  font-size: 16px;
  justify-content: space-between;
  padding: 14px 0;
}

.contact-panel__site {
  display: inline-block;
  font-size: 12px;
  margin-top: 21px;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1.3fr 1fr;
  padding: 30px 0 6px;
}

.brand--footer {
  color: var(--ink);
}

.brand--footer .brand__mark {
  background: var(--bright);
  color: var(--ink);
}

.site-footer p {
  font-size: 12px;
  margin: 0;
  text-align: center;
}

.site-footer__year {
  font-size: 11px;
  justify-self: end;
}

@media (max-width: 980px) {
  .site-shell {
    padding: 0 20px 25px;
  }

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

  .site-nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    max-width: 700px;
    padding: 70px 55px 42px;
  }

  .hero__visual {
    min-height: 390px;
  }

  .hero-card--front {
    left: 39%;
    top: 14%;
  }

  .hero-card--back {
    left: 48%;
    top: 9%;
  }

  .orbit {
    top: 48%;
  }

  .section {
    padding: 95px 0;
  }

  .section--about {
    gap: 55px;
    padding: 65px 50px;
  }

  .contact-panel {
    gap: 50px;
    padding: 60px 50px 65px;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
    gap: 17px;
    padding: 17px 0;
  }

  .site-nav {
    display: none;
  }

  .header-link {
    font-size: 12px;
    margin-left: auto;
  }

  .hero {
    border-radius: 24px;
    min-height: 0;
  }

  .hero__copy {
    padding: 49px 26px 28px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-bottom: 23px;
  }

  .hero h1 {
    font-size: clamp(58px, 17vw, 94px);
  }

  .hero__lead {
    font-size: 15px;
    margin-top: 29px;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .button {
    font-size: 12px;
    padding: 14px 18px;
  }

  .hero__visual {
    min-height: 350px;
  }

  .hero__visual-topline {
    left: 23px;
    right: 23px;
    top: 22px;
  }

  .hero-card--front {
    height: 220px;
    left: 17%;
    padding: 23px;
    top: 17%;
    width: 210px;
  }

  .hero-card--back {
    height: 130px;
    left: 48%;
    padding: 20px;
    top: 13%;
    width: 190px;
  }

  .hero-card--back strong {
    font-size: 40px;
  }

  .hero-card__tiny {
    left: 23px;
    top: 20px;
  }

  .hero-card--front strong {
    font-size: 25px;
  }

  .hero-card__line {
    margin: 17px 0 10px;
  }

  .hero__visual-label--one {
    left: 7%;
    top: 30%;
  }

  .hero__visual-label--two {
    right: 6%;
    top: 61%;
  }

  .hero__visual-label--three {
    bottom: 11%;
    left: 21%;
  }

  .signal-row {
    gap: 16px;
    grid-template-columns: 1fr;
    padding: 20px 2px;
  }

  .signal-row__item {
    grid-template-columns: 38px 1fr;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
  }

  h2 {
    font-size: clamp(43px, 13vw, 68px);
  }

  .section-heading__note {
    font-size: 13px;
    max-width: 340px;
  }

  .program-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 330px;
  }

  .program-card h3 {
    font-size: 52px;
  }

  .section--about {
    border-radius: 24px;
    display: block;
    padding: 50px 26px 20px;
  }

  .about-intro__text {
    font-size: 14px;
    margin-top: 29px;
  }

  .about-story {
    margin-top: 31px;
  }

  .principles-list {
    margin-top: 45px;
  }

  .principle {
    gap: 15px;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 22px 0;
  }

  .principle__arrow {
    display: none;
  }

  .principle h3 {
    font-size: 18px;
  }

  .principle p {
    font-size: 13px;
  }

  .section--method {
    padding-bottom: 72px;
  }

  .step-card {
    min-height: 0;
    padding-bottom: 21px;
  }

  .step-card__rule {
    margin: 21px 0 18px;
  }

  .step-card h3 {
    font-size: 23px;
  }

  .method-note {
    margin-top: 37px;
  }

  .contact-panel {
    border-radius: 24px;
    display: block;
    padding: 50px 26px 54px;
  }

  .contact-panel h2 {
    font-size: clamp(58px, 17vw, 92px);
  }

  .contact-panel__details {
    margin-top: 47px;
  }

  .contact-panel__details > p {
    font-size: 15px;
  }

  .contact-links a {
    font-size: 15px;
  }

  .site-footer {
    align-items: flex-start;
    gap: 17px;
    grid-template-columns: 1fr auto;
    padding-top: 25px;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .site-footer__year {
    grid-column: 2;
    grid-row: 1;
    padding-top: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Multi-page school shell */

.button--dark {
  background: var(--ink);
  color: #fff;
}

.button--dark:hover {
  background: var(--navy-soft);
}

.section-link {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  margin-bottom: 7px;
}

.section-link span,
.direction-card__link span,
.product-card__link span,
.step-card a span,
.route-cta span {
  display: inline-block;
  transition: transform 180ms ease;
}

.section-link:hover span,
.direction-card__link:hover span,
.product-card__link:hover span,
.step-card a:hover span,
.route-cta:hover span {
  transform: translate(3px, -3px);
}

.direction-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.direction-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.direction-card {
  --card-accent: var(--blue);
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  overflow: hidden;
  padding: 27px;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.direction-card:hover,
.product-card:hover {
  box-shadow: 0 18px 44px rgba(24, 35, 44, 0.08);
  transform: translateY(-4px);
}

.direction-card--blue,
.product-card--blue {
  --card-accent: var(--blue);
}

.direction-card--orange,
.product-card--orange {
  --card-accent: var(--orange);
}

.direction-card--green,
.product-card--green {
  --card-accent: var(--green);
}

.direction-card--yellow,
.product-card--yellow {
  --card-accent: var(--bright);
}

.direction-card__topline,
.product-card__topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.direction-card__topline span:last-child,
.product-card__topline span:last-child {
  background: color-mix(in srgb, var(--card-accent) 58%, white);
  border-radius: 999px;
  color: var(--ink);
  letter-spacing: 0;
  padding: 7px 10px;
  text-transform: none;
}

.direction-card__body,
.product-card__body {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.direction-card h3 {
  font-size: clamp(38px, 5.2vw, 72px);
  letter-spacing: -0.08em;
  line-height: 0.92;
  margin: 0;
}

.direction-card--obshchestvoznanie h3 {
  font-size: clamp(32px, 4.2vw, 58px);
  letter-spacing: -0.07em;
}

.direction-card p,
.product-card__body > p:last-child {
  font-size: 14px;
  line-height: 1.55;
  margin: 20px 0 0;
  max-width: 430px;
}

.direction-card__link {
  font-size: 13px;
  font-weight: 700;
  margin-top: 27px;
  position: relative;
  width: fit-content;
  z-index: 1;
}

.direction-card__link--muted {
  color: var(--muted);
}

.direction-card__orb {
  background: var(--card-accent);
  border-radius: 50%;
  bottom: -92px;
  height: 210px;
  position: absolute;
  right: -64px;
  width: 210px;
}

.direction-grid--compact .direction-card {
  min-height: 300px;
}

.direction-grid--compact .direction-card h3 {
  font-size: clamp(34px, 4vw, 53px);
}

.direction-grid--compact .direction-card--obshchestvoznanie h3 {
  font-size: clamp(28px, 3vw, 38px);
}

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

.product-card {
  --card-accent: var(--blue);
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  overflow: hidden;
  padding: 25px;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.product-card::after {
  background: var(--card-accent);
  border-radius: 50%;
  bottom: -105px;
  content: "";
  height: 220px;
  position: absolute;
  right: -78px;
  width: 220px;
}

.product-card__label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.075em;
  line-height: 0.95;
  margin: 0;
}

.product-card__footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin-top: 31px;
  position: relative;
  z-index: 1;
}

.product-card__link {
  font-size: 13px;
  font-weight: 700;
}

.product-card__hub {
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: rgba(102, 112, 120, 0.35);
  text-underline-offset: 4px;
}

.single-product {
  max-width: 560px;
}

.page-hero {
  background: var(--navy);
  border-radius: 32px;
  color: #f9f7ef;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);
  min-height: 500px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.page-hero::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  height: 240px;
  opacity: 0.55;
  position: absolute;
  right: -30px;
  top: -70px;
  transform: rotate(12deg);
  width: 410px;
}

.page-hero__copy {
  align-self: center;
  max-width: 760px;
  min-width: 0;
  padding: 70px 40px 70px 76px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(55px, 7vw, 100px);
  letter-spacing: -0.085em;
  line-height: 0.9;
  margin: 0;
  max-width: 760px;
  min-width: 0;
  text-wrap: balance;
}

.page-hero__lead {
  color: rgba(249, 247, 239, 0.74);
  font-size: 17px;
  line-height: 1.55;
  margin: 31px 0 0;
  max-width: 570px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-hero__visual {
  --visual-accent: var(--blue);
  min-height: 500px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.page-hero__visual--orange {
  --visual-accent: var(--orange);
}

.page-hero__visual--green {
  --visual-accent: var(--green);
}

.page-hero__visual--yellow {
  --visual-accent: var(--bright);
}

.page-hero__visual::before,
.page-hero__visual::after {
  border: 1px solid rgba(249, 247, 239, 0.16);
  border-radius: 50%;
  content: "";
  left: 48%;
  position: absolute;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.page-hero__visual::before {
  height: 330px;
  width: 500px;
}

.page-hero__visual::after {
  height: 210px;
  transform: translate(-50%, -50%) rotate(35deg);
  width: 350px;
}

.page-hero__visual-topline {
  color: rgba(249, 247, 239, 0.5);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  left: 26px;
  letter-spacing: 0.1em;
  position: absolute;
  right: 34px;
  text-transform: uppercase;
  top: 31px;
}

.topic-card {
  border-radius: 20px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: 1;
}

.topic-card--front {
  background: #f1eee4;
  justify-content: center;
  left: 24%;
  min-height: 250px;
  padding: 28px;
  top: 25%;
  transform: rotate(-7deg);
  width: 260px;
}

.topic-card--front span {
  color: var(--muted);
  font-size: 10px;
  left: 28px;
  letter-spacing: 0.1em;
  position: absolute;
  text-transform: uppercase;
  top: 24px;
}

.topic-card--front strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.topic-card--front strong:nth-of-type(2) {
  color: #d66c3d;
}

.topic-card--back {
  align-items: flex-start;
  background: var(--visual-accent);
  font-size: 12px;
  font-weight: 700;
  height: 145px;
  justify-content: flex-end;
  left: 49%;
  padding: 22px;
  text-transform: uppercase;
  top: 24%;
  transform: rotate(10deg);
  width: 220px;
}

.breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 8px;
  letter-spacing: 0.04em;
  padding: 0 3px 18px;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.section--products-preview,
.section--catalog {
  border-top: 1px solid var(--line);
}

.section--explain,
.section--route {
  background: var(--paper-deep);
  border-radius: 32px;
  padding: 84px 76px;
}

.role-grid,
.route-flow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-grid article,
.route-flow article {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-height: 220px;
  padding: 25px;
}

.role-grid article > span,
.route-flow article > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.role-grid h3,
.route-flow h3 {
  font-size: 27px;
  letter-spacing: -0.055em;
  margin: 67px 0 0;
}

.role-grid p,
.route-flow p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 350px;
}

.route-cta {
  margin-top: 36px;
}

.empty-state {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 720px;
  padding: 42px;
}

.empty-state--wide {
  max-width: none;
  padding: 62px;
}

.empty-state__status {
  color: var(--muted);
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 19px !important;
  text-transform: uppercase;
}

.empty-state h2,
.empty-state h3 {
  font-size: clamp(35px, 4.6vw, 62px);
  letter-spacing: -0.07em;
  line-height: 0.98;
  margin: 0;
  max-width: 850px;
}

.empty-state > p:not(.empty-state__status) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 24px 0 29px;
  max-width: 620px;
}

.step-card a {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 18px;
}

.principle {
  grid-template-columns: 28px minmax(0, 1fr);
}

.site-footer {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  margin-top: 30px;
  padding: 38px 0 10px;
}

.site-footer__brand p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 17px 0 0;
  max-width: 240px;
  text-align: left;
}

.footer-nav {
  display: grid;
  gap: 12px;
}

.footer-nav a,
.footer-nav > span {
  color: var(--muted);
  font-size: 12px;
}

.footer-nav a:hover {
  color: var(--ink);
}

.site-footer__edition {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding-top: 10px;
  text-transform: uppercase;
}

.site-footer__legal {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  padding-top: 28px;
}

.site-footer__details h2 {
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.site-footer__details p,
.site-footer__details address {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.65;
  margin: 0;
  text-align: left;
}

.site-footer__details a,
.site-footer__legal-links a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer__legal-links {
  display: grid;
  gap: 11px;
}

.site-footer__legal-links a {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.site-footer__details a:hover,
.site-footer__legal-links a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .direction-grid--compact,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero__copy {
    padding: 68px 55px 40px;
  }

  .page-hero__visual {
    min-height: 340px;
  }

  .topic-card--front {
    left: 35%;
    top: 10%;
  }

  .topic-card--back {
    left: 51%;
    top: 8%;
  }

  .section--explain,
  .section--route {
    padding: 65px 50px;
  }

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

  .site-footer__edition {
    grid-column: 1 / -1;
  }

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

@media (max-width: 700px) {
  .site-shell {
    padding-left: clamp(12px, 4.65vw, 20px);
    padding-right: clamp(12px, 4.65vw, 20px);
  }

  .site-header {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 0 16px;
  }

  .site-nav,
  .header-link {
    display: none;
  }

  .mobile-nav {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .mobile-nav a {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    padding: 10px 14px;
    text-align: center;
  }

  .direction-grid,
  .direction-grid--compact,
  .product-grid,
  .role-grid,
  .route-flow {
    grid-template-columns: 1fr;
  }

  .direction-card,
  .direction-grid--compact .direction-card {
    min-height: 310px;
  }

  .direction-card h3,
  .direction-grid--compact .direction-card h3 {
    font-size: clamp(36px, 11vw, 49px);
  }

  .direction-card--obshchestvoznanie h3,
  .direction-grid--compact .direction-card--obshchestvoznanie h3 {
    font-size: clamp(30px, 8.2vw, 38px);
  }

  .product-card {
    min-height: 345px;
  }

  .page-hero {
    border-radius: 24px;
    min-height: 0;
  }

  .page-hero__copy {
    max-width: 100%;
    padding: clamp(42px, 12vw, 50px) clamp(20px, 6.5vw, 28px) 30px;
  }

  .page-hero h1 {
    font-size: clamp(36px, 11.5vw, 52px);
    hyphens: auto;
    letter-spacing: -0.075em;
    line-height: 0.94;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .page-hero h1.page-hero__title--compact {
    font-size: clamp(34px, 9vw, 42px);
    hyphens: none;
    overflow-wrap: normal;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 64px);
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero h1.hero__title--season {
    font-size: clamp(36px, 10.5vw, 50px);
    hyphens: none;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .page-hero__lead {
    font-size: 15px;
    margin-top: 26px;
    max-width: 100%;
  }

  .page-hero .hero__actions {
    min-width: 0;
    width: 100%;
  }

  .page-hero .button,
  .page-hero .text-link,
  .empty-state .button {
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
  }

  .page-hero__visual {
    min-height: 290px;
  }

  .topic-card--front {
    left: 8%;
    min-height: 205px;
    padding: 22px;
    top: 14%;
    transform: rotate(-5deg);
    width: min(72%, 215px);
  }

  .topic-card--back {
    height: 115px;
    left: 48%;
    top: 11%;
    transform: rotate(8deg);
    width: min(46%, 180px);
  }

  .topic-card--front strong {
    font-size: clamp(22px, 6.6vw, 25px);
  }

  .topic-card--front span {
    left: 22px;
    top: 20px;
  }

  .page-hero__visual-topline {
    left: 18px;
    right: 18px;
    top: 22px;
  }

  .section--explain,
  .section--route {
    border-radius: 24px;
    padding: 50px 26px;
  }

  .section-heading > div {
    max-width: 100%;
    width: 100%;
  }

  .section-heading h2 {
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .role-grid article,
  .route-flow article {
    min-height: 190px;
  }

  .role-grid h3,
  .route-flow h3 {
    margin-top: 45px;
  }

  .empty-state,
  .empty-state--wide {
    padding: 30px 25px;
  }

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

  .site-footer__brand,
  .site-footer__edition {
    grid-column: 1 / -1;
  }

  .site-footer__legal {
    gap: 22px;
    grid-template-columns: 1fr;
  }
}
