:root {
  --red: #ff0032;
  --red-hover: #e0002c;
  --purple: #626aac;
  --text: #2f2f37;
  --text-black: #000;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-panel: #e0e6ed;
  --line: #e0e6ed;
  --shadow: 0 4px 6px 2px rgba(0, 0, 0, 0.05);
  --radius: 24px;
  --radius-lg: 40px;
  --container: 1320px;
  --header-h: 96px;
  --font: "MTS Text", "Golos Text", "Segoe UI", sans-serif;
  --font-display: "MTS Wide", "MTS Text", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  font-weight: 500;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.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;
  text-transform: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

main:focus-visible {
  outline: none;
}

.btn:focus-visible,
.nav a:focus-visible,
.header__burger:focus-visible,
.accordion__trigger:focus-visible,
.footer a:focus-visible,
.check a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

@media (min-width: 1200px) {
  .container {
    width: min(100% - 120px, var(--container));
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 24px;
  border: 0;
  border-radius: 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--purple);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn--primary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px 6px;
  border: 1px solid var(--purple);
  border-radius: 100px;
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.section-head {
  max-width: 1132px;
  margin-bottom: 80px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.section-head--center .pill {
  margin: 0;
}

.section-head__cta {
  display: flex;
  justify-content: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text);
}

.section-head p {
  max-width: 860px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

.underline {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 7%;
  text-underline-offset: 18%;
  text-decoration-color: var(--purple);
  text-decoration-skip-ink: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

.header__actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header__cta {
  display: none;
  min-width: 0;
  padding: 12px 16px;
  font-size: 15px;
  white-space: nowrap;
}

.logo img {
  width: 48px;
  height: 48px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a:not(.btn) {
  font-family: var(--font);
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s ease;
}

.nav a:not(.btn):hover {
  color: var(--purple);
}

.nav__cta {
  min-width: 208px;
  padding: 16px 24px;
  flex-shrink: 0;
}

.nav__avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.nav__avatar:hover {
  background: var(--purple);
  color: #fff !important;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.header__burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header.is-open .header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .header__burger span:nth-child(2) {
  opacity: 0;
}

.header.is-open .header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 14px 0 80px;
  overflow: visible;
  background: #fff;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 593px) minmax(0, 648px);
  gap: 48px;
  align-items: stretch;
  justify-content: space-between;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 650px;
  gap: 40px;
}

.hero__eyebrow {
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 72px);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text);
}

.hero__title-visual {
  display: block;
}

.hero__title-visual > span {
  display: block;
}

.hero__title-accent {
  color: var(--purple);
}

.section-title-visual {
  display: inline;
}

.faq__title-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__lead {
  max-width: 593px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero__deadline {
  margin: 0;
  color: #7e7e8e;
  font-size: 14px;
  line-height: 1.4;
}

.hero__features {
  display: grid;
  gap: 16px;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.hero__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.hero__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.hero__media img {
  width: 100%;
  height: 650px;
  max-height: 650px;
  object-fit: cover;
  object-position: 55% center;
  border-radius: 40px;
}

/* Benefits */
.benefits {
  position: relative;
  padding: 80px 0;
  background: var(--bg-soft);
  border-radius: 60px 60px 0 0;
  overflow: clip;
  min-height: 1173px;
}

.benefits__stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 1320px);
  margin-inline: auto;
  z-index: 1;
  isolation: isolate;
}

.benefits__ribbons {
  position: absolute;
  top: -457px;
  left: 50%;
  width: 1440px;
  height: 1173px;
  margin-left: -720px;
  pointer-events: none;
  z-index: 1;
}

.benefits__ribbons--front {
  z-index: 4;
}

.benefits__ribbon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits__ribbon-flip {
  flex: none;
  transform: scaleY(-1);
}

.benefits__ribbon-flip--rot {
  transform: scaleY(-1) rotate(180deg);
}

.benefits__ribbon-frame {
  position: relative;
  overflow: hidden;
}

.benefits__ribbon-frame img {
  position: absolute;
  max-width: none;
  display: block;
}

.benefits__ribbon--a {
  bottom: 326px;
  left: calc(50% + 623.5px);
  width: 1461px;
  height: 672px;
  transform: translateX(-50%);
}

.benefits__ribbon--a .benefits__ribbon-frame {
  width: 1461px;
  height: 672px;
}

.benefits__ribbon--a img {
  height: 100%;
  width: 138.13%;
  left: -28.99%;
  top: 0;
}

.benefits__ribbon--b {
  bottom: -43px;
  left: -770px;
  width: 1378px;
  height: 830px;
  z-index: 2;
}

.benefits__ribbon--b .benefits__ribbon-frame {
  width: 1378px;
  height: 830px;
}

.benefits__ribbon--b img {
  height: 100%;
  width: 180.9%;
  left: -68.97%;
  top: 0;
}

/* Upper tip of the S-curve — only this piece sits above card 04 */
.benefits__ribbon--c {
  bottom: 642px;
  left: calc(50% + 724px);
  width: 472px;
  height: 356px;
  transform: translateX(-50%);
}

.benefits__ribbon--c .benefits__ribbon-frame {
  width: 472px;
  height: 356px;
}

.benefits__ribbon--c img {
  height: 188.76%;
  width: 427.55%;
  left: -215.79%;
  top: -88.76%;
}

.benefit-card,
.benefit-feature {
  position: relative;
  z-index: 2;
  border-radius: 40px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  height: 306px;
  min-height: 306px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.benefit-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 8px 14px 6px;
  border-radius: 100px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.benefit-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.benefit-card h3 {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.benefit-card p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

.benefit-feature {
  grid-column: span 3;
  background: var(--purple);
  color: #fff;
  padding: 40px;
  justify-content: space-between;
  gap: 24px;
}

.benefit-feature__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.benefit-feature h3 {
  max-width: 518px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.3;
}

.benefit-feature p {
  max-width: 573px;
  font-size: 18px;
  line-height: 1.5;
}

.benefit-feature__avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.benefit-feature__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 0;
}

.benefit-feature__badge > img:first-child {
  width: 84px;
  height: 84px;
}

.benefit-feature__icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 2px;
}

.benefit-feature__icons img {
  width: 32px;
  height: 32px;
}

.benefit-feature__icons img:last-child {
  width: 35px;
  margin-left: -10px;
}

/* Program */
.program {
  padding: 80px 0;
  background: var(--bg-soft);
  border-radius: 0 0 60px 60px;
}

.program__panel {
  display: grid;
  gap: 12px;
}

.program__dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
  min-height: 116px;
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
  background: var(--bg-panel);
  border-radius: 40px;
  padding: 24px 40px;
  box-shadow: var(--shadow);
}

.program__dates-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.program__dates-icon img {
  width: 42px;
  height: 42px;
}

.modules {
  display: grid;
  gap: 12px;
}

.module {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: stretch;
}

.module__num {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  border: 1px solid var(--purple);
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  background: transparent;
  padding: 8px 14px 6px;
}

.module__num--filled {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.module__card {
  display: grid;
  grid-template-columns: minmax(240px, 375px) 1fr;
  gap: 40px;
  align-items: center;
  min-height: 116px;
  background: #fff;
  border-radius: 40px;
  padding: 24px 40px;
  box-shadow: var(--shadow);
}

.module__card h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--purple);
}

.module__card p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

.program__finale {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  text-align: center;
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
  background: var(--bg-panel);
  border-radius: 40px;
  padding: 24px 40px;
  box-shadow: var(--shadow);
}

.program__cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Experts */
.experts {
  padding: 80px 0;
  background: #fff;
  overflow: visible;
}

.experts__stage {
  --experts-gap: 24px;
  --experts-cols: 4;
  /* Figma Card: 312×460 */
  --expert-w: 312px;
  --expert-h: 460px;
  --expert-pad: 16px;
  --expert-photo-h: 284px;
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  overflow: visible;
}

.experts__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--experts-cols), minmax(0, 1fr));
  gap: var(--experts-gap);
  width: 100%;
  overflow: visible;
  align-items: start;
}

/* Red plates behind the grid (Figma 565:389 / 565:390) */
.experts__accent {
  position: absolute;
  z-index: 0;
  width: calc((100% - (var(--experts-cols) - 1) * var(--experts-gap)) / var(--experts-cols));
  max-width: var(--expert-w);
  height: 478px;
  background: var(--red);
  border-radius: 40px;
  pointer-events: none;
  transform-origin: center center;
}

/* Card 3 (row 1, col 3): rotate +4° — peeks top-left & bottom-right */
.experts__accent--tr {
  top: -10px;
  left: calc(2 * ((100% - (var(--experts-cols) - 1) * var(--experts-gap)) / var(--experts-cols) + var(--experts-gap)));
  transform: rotate(4deg);
}

/* Card 5 (row 2, col 1): rotate -4° — peeks top-right & bottom-left */
.experts__accent--bl {
  top: calc(var(--expert-h) + var(--experts-gap) - 14px);
  left: 0;
  transform: rotate(-4deg);
}

.expert-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--expert-w);
  justify-self: start;
  background: transparent;
  border: none;
  border-radius: 40px;
  padding: var(--expert-pad);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: var(--expert-h);
  height: auto;
  overflow: visible;
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

/* Card face */
.expert-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 40px;
  box-shadow: var(--shadow);
  pointer-events: none;
  transition: box-shadow 0.25s ease;
}

.expert-card > * {
  position: relative;
  z-index: 1;
}

.expert-card:hover {
  transform: translateY(-6px);
}

.expert-card:hover::after {
  box-shadow: 0 16px 36px rgba(40, 45, 80, 0.12);
}

/* Photo frame: Figma 280×284 inside 16px card padding */
.expert-card__photo {
  width: 100%;
  aspect-ratio: 280 / 284;
  height: auto;
  max-height: none;
  border-radius: 24px;
  overflow: hidden;
  background: #eceef4;
  flex: 0 0 auto;
}

.expert-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.expert-card__body {
  flex: 0 0 auto;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.expert-card h3 {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expert-card p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: var(--bg-soft);
  border-radius: 60px 60px 0 0;
}

.faq__panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 872px);
  gap: 80px;
  align-items: start;
  background: transparent;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.faq__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  min-height: 0;
  align-self: start;
}

.faq__intro .pill {
  margin: 0;
}

.faq__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.faq__title-line {
  display: block;
}

.faq__title-accent {
  display: inline-block;
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 7%;
  text-underline-offset: 18%;
  text-decoration-color: var(--purple);
  text-decoration-skip-ink: none;
}

.faq__intro p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  max-width: 306px;
  margin: 0;
}

.faq__intro .btn {
  margin-top: 61px;
}

.accordion {
  display: grid;
  gap: 20px;
}

.accordion__item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 40px;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-black);
}

.accordion__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-panel);
  border-radius: 16px;
  overflow: hidden;
}

.accordion__icon img {
  width: 24px;
  height: 24px;
  grid-area: 1 / 1;
}

.accordion__icon-up {
  display: none;
}

.accordion__item.is-open .accordion__icon-down {
  display: none;
}

.accordion__item.is-open .accordion__icon-up {
  display: block;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 24px;
  opacity: 0;
  transition:
    grid-template-rows 0.4s ease,
    opacity 0.3s ease,
    padding 0.35s ease;
}

.accordion__panel > .accordion__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 24px;
}

.accordion__item.is-open .accordion__trigger {
  padding-bottom: 12px;
}

.accordion__panel p {
  max-width: 760px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  white-space: pre-line;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 872px);
  gap: 40px;
  align-items: start;
}

.footer__partners h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 32px;
}

.partners {
  display: flex;
  align-items: center;
  gap: 40px;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.partner__logo {
  height: 51px;
  width: auto;
  object-fit: contain;
}

.partner__logo--mws {
  width: 91px;
}

.partner__logo--mag {
  width: 35px;
}

.partner__name {
  font-size: 18px;
  line-height: 1.1;
  color: var(--text);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 32px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 64px;
  row-gap: 16px;
  align-items: start;
}

.footer__nav a {
  font-size: 18px;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--purple);
}

.footer__to-top {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer__to-top:hover {
  color: var(--purple);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.18s;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content {
    min-height: 0;
    gap: 32px;
  }

  .hero__media img {
    height: auto;
    max-height: none;
    aspect-ratio: 1;
  }

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

  .benefit-feature {
    grid-column: span 2;
  }

  .program__dates {
    gap: 32px;
    flex-wrap: wrap;
  }

  .module__card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experts__accent {
    display: none;
  }

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

  .expert-card {
    max-width: none;
    height: auto;
    min-height: 0;
  }

  .expert-card__body {
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
  }

  .faq__panel {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 72px;
  }

  .header__burger {
    display: block;
  }

  .header__actions {
    display: flex;
    order: 2;
  }

  .header__cta {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    order: 3;
  }

  .header.is-open .nav {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta {
    display: none;
  }

  .nav__avatar {
    width: 48px;
    height: 48px;
    margin-top: 16px;
    align-self: flex-start;
  }

  .benefits,
  .program {
    border-radius: 32px;
  }

  .benefits {
    border-radius: 32px 32px 0 0;
  }

  .program {
    border-radius: 0 0 32px 32px;
  }

  .benefits__stage {
    grid-template-columns: 1fr;
  }

  .benefit-feature {
    grid-column: span 1;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 28px 24px;
  }

  .benefit-feature__top {
    flex-direction: column;
  }

  .benefits__ribbons {
    display: none;
  }

  .program__dates {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .module {
    grid-template-columns: 48px 1fr;
  }

  .module__card,
  .program__dates,
  .program__finale {
    border-radius: 24px;
    padding: 20px;
  }

  .expert-card {
    max-width: none;
  }

  .experts__grid {
    grid-template-columns: 1fr;
  }

  .faq {
    border-radius: 32px 32px 0 0;
    padding: 48px 0;
  }

  .faq__panel {
    gap: 40px;
  }

  .accordion__trigger {
    font-size: 16px;
  }

  .partners {
    gap: 24px;
  }

  .footer__links {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn,
  .expert-card {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Landing popups (success / already applied) */
.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(2px);
}

.landing-modal[hidden] {
  display: none !important;
}

.landing-modal__dialog {
  position: relative;
  width: min(100%, 890px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 64px 48px 48px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.landing-modal__dialog--compact {
  width: min(100%, 600px);
  gap: 28px;
  /* Extra top/side padding so the title never collides with the close control */
  padding: 80px 56px 40px;
}

.landing-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: #e0e6ed;
  color: #2f2f37;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.landing-modal__close:hover {
  background: #d3dae3;
}

.landing-modal__close:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.landing-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-inline: 8px;
  text-align: center;
  color: #2f2f37;
}

.landing-modal__dialog--compact .landing-modal__content {
  gap: 20px;
  max-width: 440px;
}

.landing-modal__content h2 {
  margin: 0;
  max-width: 700px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.landing-modal__dialog--compact .landing-modal__content h2 {
  max-width: 380px;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.landing-modal__content h2:focus {
  outline: none;
}

.landing-modal__content h2:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
  border-radius: 4px;
}

.landing-modal__content p,
.landing-modal__content #apply-success-desc {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.5;
}

.landing-modal__content #apply-success-desc {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.landing-modal__dialog--compact .landing-modal__content p {
  max-width: 400px;
  font-size: 16px;
  line-height: 1.55;
}

.landing-modal__content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-modal__hint {
  max-width: 520px !important;
  color: #626aac !important;
  font-size: 16px !important;
}

.landing-modal__cta {
  flex-shrink: 0;
  min-height: 52px;
  padding-inline: 28px 24px;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.landing-modal__dialog--compact .landing-modal__cta {
  width: auto;
  max-width: 100%;
}

@media (max-width: 720px) {
  .landing-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .landing-modal__dialog,
  .landing-modal__dialog--compact {
    width: 100%;
    gap: 24px;
    padding: 64px 24px 28px;
    border-radius: 28px 28px 20px 20px;
  }

  .landing-modal__close {
    top: 16px;
    right: 16px;
  }

  .landing-modal__dialog--compact .landing-modal__content {
    max-width: 100%;
  }

  .landing-modal__content h2,
  .landing-modal__dialog--compact .landing-modal__content h2 {
    font-size: 22px;
    max-width: 16ch;
  }

  .landing-modal__content p,
  .landing-modal__dialog--compact .landing-modal__content p {
    font-size: 16px;
  }

  .landing-modal__cta {
    width: 100%;
  }
}


/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  color: var(--text);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  max-width: 620px;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  align-items: center;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.cookie-banner__btn--more {
  background: #fff;
  color: var(--text);
  border: 2px solid #d4d4d4;
}

.cookie-banner__btn--accept {
  background: var(--red);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  background: var(--purple);
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1;
  }
}
