@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway/Raleway-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-text: #443333;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-accent: #ee6622;
  --color-accent-hover: #bf5010;
  --color-marker: #ffe566;
  --color-border: #e8e8e8;
  --color-dark: #221111;
  --color-neutral-500: #554444;
  --font-family: "Raleway", "Segoe UI", sans-serif;
  --container-max: 71.25rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --header-offset: 4.5rem;
  --leading-body: 1.6;
  --leading-compact: 1.55;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
button, input { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin: 0 auto;
}

.container--narrow { max-width: 40rem; }

.marker {
  background: linear-gradient(180deg, transparent 55%, var(--color-marker) 55%, var(--color-marker) 90%, transparent 90%);
}

.text-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(238, 102, 34, 0.45);
}

.section { padding: 4rem 0 5rem; }
.section--alt { background: var(--color-bg-alt); }
.section__lead {
  max-width: 42rem;
  margin: 1rem 0 1.5rem;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

h1 {
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--color-accent);
  letter-spacing: -0.03em;
}

h2 {
  margin: 2rem 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

h3 { font-size: 1.15rem; font-weight: 750; line-height: 1.3; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

.btn--primary { background: var(--color-accent); color: #fff; }
.btn--outline { background: transparent; color: var(--color-accent); }
.btn--small { padding: 0.45rem 0.85rem; font-size: 0.92rem; }

.btn--primary:hover,
.btn--outline:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.logo__img { height: 1.75rem; width: auto; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav a { font-weight: 650; color: var(--color-text-secondary); }
.nav a:hover { color: var(--color-accent); }
.header__cabinet { margin-left: 0.5rem; }

.burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0.45rem;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-weight: 700; }

.hero { padding: 2.5rem 0 1rem; background: #fff; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  gap: 2rem;
  align-items: end;
}
.hero__lead {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  max-width: 38rem;
}
.hero__sign { margin-top: 1rem; color: var(--color-text-secondary); }
.hero__photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
.tabs__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 750;
  font-size: 1.05rem;
  padding: 0.8rem 0.2rem;
  margin-right: 1.2rem;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.tabs__tab[aria-selected="true"] {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.role-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.role-switch__btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
.role-switch__btn[aria-pressed="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.task-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.task-tile,
.program-card,
.offer,
.recommend,
.lesson {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.task-tile {
  appearance: none;
  text-align: left;
  padding: 1.1rem 1rem 0.9rem;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: inherit;
}
.task-tile:hover,
.program-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.task-tile.is-selected { border-color: var(--color-accent); }
.task-tile__title { font-weight: 750; font-size: 1.05rem; line-height: 1.35; }
.task-tile__more { color: var(--color-accent); font-weight: 700; font-size: 0.92rem; }

.program-card,
.recommend,
.offer { padding: 1.15rem 1.15rem 1.2rem; }
.program-card__title { margin: 0.45rem 0; }
.program-card__title a:hover,
.recommend__title a:hover { color: var(--color-accent); }
.program-card__summary,
.recommend p,
.offer__note { color: var(--color-text-secondary); font-size: 0.98rem; line-height: var(--leading-compact); }
.program-card__summary { margin-bottom: 0.8rem; }
.program-card__action,
.recommend__action,
.offer__action { margin-top: 0.9rem; }

.format-badge {
  display: inline-block;
  margin: 0 0 0.35rem;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.price { margin: 0.35rem 0; }
.price__current {
  color: var(--color-accent);
  font-weight: 850;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.price__note { font-size: 1rem; font-weight: 650; color: var(--color-text); }
.price__meta,
.status-line,
.meta-line,
.origin { color: var(--color-text-secondary); font-size: 0.95rem; }
.status-line { font-weight: 700; color: var(--color-text); }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  border: 0;
  background: rgba(34, 17, 17, 0.4);
  cursor: pointer;
}

.drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  width: min(32rem, 100%);
  height: 100%;
  overflow: auto;
  background: #fff;
  border-left: 1px solid var(--color-border);
  padding: 1.25rem 1.25rem 2.5rem;
  transform: translateX(100%);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__bar { display: flex; justify-content: flex-end; }
.drawer__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-accent);
  font-weight: 750;
  cursor: pointer;
  padding: 0.2rem;
}
.drawer__analysis { margin: 0.8rem 0 1.2rem; }
.drawer__subtitle { margin-bottom: 0.8rem; }
.recommend + .recommend { margin-top: 0.8rem; }
.recommend__title { margin-bottom: 0.45rem; }
.lesson-point {
  margin-top: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.course-head { max-width: 46rem; margin-bottom: 1.5rem; }
.course-head .section__lead { margin-bottom: 0.4rem; }
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  align-items: start;
}
.course-copy { order: 1; }
.course-side { order: 2; display: flex; flex-direction: column; gap: 1rem; }
.person { margin: 0; }
.person img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
}
.person figcaption { margin-top: 0.7rem; color: var(--color-text-secondary); font-size: 0.95rem; }
.origin { margin-top: 0.8rem; }
.prose p + p { margin-top: 0.75rem; }
.outcome-list { padding-left: 1.1rem; }
.outcome-list li + li { margin-top: 0.35rem; }
.back-task { margin-bottom: 0.8rem; }
.program { display: flex; flex-direction: column; gap: 0.6rem; }
.lesson { padding: 0.2rem 0.9rem 0.2rem; scroll-margin-top: 6rem; }
.lesson.is-target { border-color: var(--color-accent); }
.lesson summary {
  cursor: pointer;
  font-weight: 750;
  padding: 0.75rem 0;
}
.lesson__result { color: var(--color-text-secondary); }
.lesson__points { margin: 0.4rem 0 0.8rem; padding-left: 1.1rem; }
.lesson__points li + li { margin-top: 0.25rem; }
.offer h3 { margin-bottom: 0.35rem; }

.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0 2rem;
}
.footer a { color: rgba(255, 255, 255, 0.82); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 0.2em; }
.footer a:hover { color: #ff8040; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.footer__logo { height: 2.5rem; width: auto; }
.footer__tagline { margin-top: 0.8rem; max-width: 22rem; }
.footer__heading { color: #fff; font-weight: 750; margin-bottom: 0.35rem; }
.footer__bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-neutral-500);
  font-size: 0.92rem;
}
.footer__bottom p + p { margin-top: 0.35rem; }
.footer__credit { color: rgba(255, 255, 255, 0.82); }
.noscript {
  margin: 0;
  padding: 0.8rem 1.25rem;
  background: var(--color-bg-alt);
}

@media (min-width: 961px) {
  .mobile-nav.is-open { display: none; }
  .course-side { position: sticky; top: 5.5rem; }
}

@media (max-width: 960px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner,
  .course-layout,
  .footer__grid { grid-template-columns: 1fr; }
  .course-side { order: 1; }
  .course-copy { order: 2; }
  .nav { display: none; }
  .burger { display: block; }
  .header__cabinet { margin-left: auto; }
}

@media (max-width: 640px) {
  .task-grid,
  .catalog-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 1.5rem; }
  .section { padding: 2.5rem 0 3rem; }
  .tabs { overflow-x: auto; }
  .btn { width: 100%; }
  .header__cabinet { width: auto; }
}
