html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Основной фон страницы */
body {
  margin: 0;
  background: radial-gradient(circle at 16% 6%, rgba(237, 92, 24, 0.2), transparent 26%), radial-gradient(circle at 84% 14%, rgba(245, 155, 39, 0.12), transparent 24%), linear-gradient(180deg, #3e1409 0%, #260806 38%, #1c0505 70%, #130405 100%);
  background-color: #130405;
}

.js_reg_auth {
  display: none !important;
}


/* Шапка сайта */
.site-header-wrap {
  position: sticky;
  z-index: 1000;
  top: 0;
}

.site-header {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  height: 88px;
  padding: 0 56px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header__nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.site-header__nav-button {
  position: relative;
  min-width: 118px;
  padding: 3px 20px 0;
  border: 0;
  color: #8b8989;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.site-header__nav-button:hover,
.site-header__nav-button:focus-visible {
  color: #34256d;
  background: #fafafa;
  outline: none;
}

.site-header__nav-button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: #577598;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-header__nav-button:hover::after,
.site-header__nav-button:focus-visible::after {
  transform: scaleX(1);
}

.site-header__login {
  align-self: center;
  width: 114px;
  height: 39px;
  margin-left: 26px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #252525;
  font-size: 14px;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.site-header__login:hover,
.site-header__login:focus-visible {
  background: #3b3b3b;
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .site-header {
    height: 68px;
    padding: 0 12px;
  }

  .site-header__nav {
    width: 100%;
    justify-content: flex-end;
  }

  .site-header__nav-button {
    min-width: 0;
    padding-inline: clamp(7px, 2.6vw, 16px);
    font-size: clamp(10px, 2.8vw, 13px);
  }

  .site-header__login {
    width: clamp(70px, 20vw, 96px);
    height: 35px;
    margin-left: 8px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .site-header {
    height: 60px;
    padding-inline: 5px;
  }

  .site-header__nav-button {
    padding-inline: 6px;
    font-size: 10px;
  }

  .site-header__login {
    width: 67px;
    height: 32px;
    margin-left: 4px;
    font-size: 11px;
  }
}

/* Первый экран */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(54px, 7vw, 100px);
  padding: clamp(34px, 4vw, 64px) 0 clamp(28px, 3vw, 44px);
  font-family: Arial, Helvetica, sans-serif;
}

.hero-section {
  padding-bottom: 0;
}

.hero__row {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
}

.hero__row::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(36vw, 120px);
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translate(-50%, -50%);
}

.hero__row > * {
  position: relative;
  z-index: 1;
}

.hero__row--kagocel {
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
}

.hero__row--kagocel::before {
  left: 90%;
  top: 0%;
  background-image: url("assets/v-bg-1.png");
  animation: hero-float-kagocel 24s ease-in-out infinite;
}

.hero__row--elmucin {
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
}

.hero__row--elmucin::before {
  left: 11%;
  top: 8%;
  background-image: url("assets/v-bg-2.png");
  animation: hero-float-elmucin 29s ease-in-out -11s infinite;
}

@keyframes hero-float-kagocel {
  0%,
  100% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(0deg);
  }

  9% {
    transform: translate(-50%, -50%) translate3d(-8px, 13px, 0) rotate(-1deg) scale(1.015);
  }

  17% {
    transform: translate(-50%, -50%) translate3d(17px, 6px, 0) rotate(2deg) scale(0.995);
  }

  18% {
    transform: translate(-50%, -50%) translate3d(13px, 10px, 0) rotate(1deg) scale(1.005);
  }

  19% {
    transform: translate(-50%, -50%) translate3d(19px, 7px, 0) rotate(3deg) scale(0.99);
  }

  20% {
    transform: translate(-50%, -50%) translate3d(16px, 4px, 0) rotate(2deg) scale(1);
  }

  21% {
    transform: translate(-50%, -50%) translate3d(20px, 8px, 0) rotate(3deg) scale(0.995);
  }

  31% {
    transform: translate(-50%, -50%) translate3d(11px, -18px, 0) rotate(1deg) scale(1.02);
  }

  41% {
    transform: translate(-50%, -50%) translate3d(-17px, -7px, 0) rotate(-4deg) scale(1);
  }

  54% {
    transform: translate(-50%, -50%) translate3d(-4px, 22px, 0) rotate(2deg) scale(0.985);
  }

  61% {
    transform: translate(-50%, -50%) translate3d(20px, 1px, 0) rotate(3deg) scale(1.005);
  }

  62% {
    transform: translate(-50%, -50%) translate3d(25px, -4px, 0) rotate(5deg) scale(1.015);
  }

  63% {
    transform: translate(-50%, -50%) translate3d(24px, -2px, 0) rotate(4deg) scale(1.01);
  }

  64% {
    transform: translate(-50%, -50%) translate3d(20px, 2px, 0) rotate(3deg) scale(1);
  }

  65% {
    transform: translate(-50%, -50%) translate3d(25px, 0, 0) rotate(4deg) scale(1.01);
  }

  76% {
    transform: translate(-50%, -50%) translate3d(-13px, -23px, 0) rotate(-2deg) scale(1.02);
  }

  88% {
    transform: translate(-50%, -50%) translate3d(17px, 16px, 0) rotate(3deg) scale(0.99);
  }

  95% {
    transform: translate(-50%, -50%) translate3d(-5px, 6px, 0) rotate(-1deg) scale(1.005);
  }
}

@keyframes hero-float-elmucin {
  0%,
  100% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(0deg);
  }

  8% {
    transform: translate(-50%, -50%) translate3d(12px, -6px, 0) rotate(2deg) scale(0.99);
  }

  17% {
    transform: translate(-50%, -50%) translate3d(-15px, -17px, 0) rotate(-3deg) scale(1.015);
  }

  28% {
    transform: translate(-50%, -50%) translate3d(-23px, 9px, 0) rotate(-1deg) scale(1.025);
  }

  36% {
    transform: translate(-50%, -50%) translate3d(4px, 16px, 0) rotate(3deg) scale(0.99);
  }

  37% {
    transform: translate(-50%, -50%) translate3d(10px, 20px, 0) rotate(5deg) scale(0.98);
  }

  38% {
    transform: translate(-50%, -50%) translate3d(6px, 15px, 0) rotate(3deg) scale(0.99);
  }

  39% {
    transform: translate(-50%, -50%) translate3d(8px, 18px, 0) rotate(4deg) scale(0.985);
  }

  40% {
    transform: translate(-50%, -50%) translate3d(12px, 16px, 0) rotate(3deg) scale(0.995);
  }

  51% {
    transform: translate(-50%, -50%) translate3d(22px, -12px, 0) rotate(1deg) scale(1.01);
  }

  62% {
    transform: translate(-50%, -50%) translate3d(-9px, 3px, 0) rotate(-4deg) scale(1.02);
  }

  71% {
    transform: translate(-50%, -50%) translate3d(13px, 21px, 0) rotate(2deg) scale(0.995);
  }

  72% {
    transform: translate(-50%, -50%) translate3d(18px, 25px, 0) rotate(4deg) scale(0.985);
  }

  73% {
    transform: translate(-50%, -50%) translate3d(14px, 20px, 0) rotate(2deg) scale(1);
  }

  74% {
    transform: translate(-50%, -50%) translate3d(16px, 24px, 0) rotate(3deg) scale(0.99);
  }

  75% {
    transform: translate(-50%, -50%) translate3d(12px, 22px, 0) rotate(2deg) scale(0.995);
  }

  86% {
    transform: translate(-50%, -50%) translate3d(-20px, -3px, 0) rotate(-2deg) scale(1.015);
  }

  94% {
    transform: translate(-50%, -50%) translate3d(7px, -11px, 0) rotate(1deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__row--kagocel::before,
  .hero__row--elmucin::before {
    animation: none;
  }
}

.hero__pack {
  display: grid;
  place-items: center;
  width: 100%;
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.hero__pack:hover,
.hero__pack:focus-within {
  filter: brightness(1.12) drop-shadow(0 10px 15px rgba(255, 72, 0, 0.2));
  transform: translateY(-6px) scale(1.015);
}

.hero__pack img {
  display: block;
  width: min(100%, 550px);
  height: auto;
}

.hero__info {
  min-width: 0;
  padding: clamp(24px, 3.2vw, 46px);
  border: 1px solid rgba(255, 128, 72, 0.28);
  border-radius: clamp(20px, 2.2vw, 32px);
  color: #fff8f4;
  background: linear-gradient(145deg, rgba(105, 35, 22, 0.9), rgba(48, 12, 10, 0.94));
  box-shadow:
    0 24px 70px rgba(25, 2, 2, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__info sup {
  position: relative;
  top: -0.8em;
  font-size: 52%;
  line-height: 0;
  color: #ffb07a;
  font-weight: 700;
  vertical-align: baseline;
}

.hero__info--kagocel h2 {
  margin: 0 0 clamp(26px, 3vw, 42px);
  font-size: clamp(22px, 2.25vw, 34px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero__info :is(h2, strong) > span {
  color: #ff493d;
}

.hero__benefits {
  display: grid;
  gap: clamp(20px, 2.5vw, 34px);
}

.hero__benefit {
  position: relative;
  padding-left: clamp(18px, 2vw, 28px);
}

.hero__benefit::before {
  position: absolute;
  top: 0.15em;
  bottom: 0.1em;
  left: 0;
  width: 5px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(180deg, #ff6b3d, #e9272d);
  box-shadow: 0 0 18px rgba(255, 73, 61, 0.3);
}

.hero__benefit strong {
  display: block;
  font-size: clamp(21px, 2.25vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero__benefit p {
  margin: 5px 0 0;
  color: rgba(255, 248, 244, 0.82);
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.12;
  font-weight: 300;
}

.hero__kagocel-footer {
  margin: clamp(28px, 3vw, 44px) 0 0;
  font-size: clamp(22px, 2.25vw, 20px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__kagocel-footer sup {
  top: -1.05em;
  left: 1px;
  font-size: 42.5%;
}

.hero__info--elmucin h2 {
  margin: 0 0 clamp(26px, 3vw, 42px);
  color: #fff8f4;
  font-size: clamp(22px, 2.25vw, 34px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero__inline-logo {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: 0.9em;
  object-fit: contain;
  vertical-align: -0.2em;
}

.hero__info :is(h2, strong) > .hero__product-name {
  display: inline-block;
  color: inherit;
  white-space: nowrap;
}

.hero__product-name .hero__product-letter {
  color: #ff493d;
}

.hero__info .hero__product-mark {
  top: -1.6em;
  margin-left: 0.04em;
  color: inherit;
  font-size: 35%;
}

.hero__inline-logo--elmucin {
  height: 1.0em;
  vertical-align: -0.05em;
}

.hero__benefits--elmucin .hero__benefit strong {
  font-size: clamp(20px, 2.1vw, 31px);
}

.hero__benefits--elmucin .hero__benefit p {
  font-size: clamp(14px, 1.45vw, 18px);
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .hero__row,
  .hero__row--kagocel,
  .hero__row--elmucin {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__pack img {
    width: min(80vw, 540px);
  }

  .hero__info--kagocel {
    order: 2;
  }

  .hero__pack--kagocel {
    order: 1;
  }
}

@media (max-width: 576px) {
  .progress-panel__auth > .header__link {
    display: none;
  }

  .hero {
    gap: 54px;
    padding-top: 24px;
  }

  .hero__info {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .hero__info--kagocel h2 {
    font-size: 21px;
  }

  .hero__benefit strong {
    font-size: 20px;
  }

  .hero__benefit p {
    font-size: 14px;
  }

  .hero__kagocel-footer {
    font-size: 14px;
  }

  .hero__kagocel-footer sup {
    font-size: 52%;
  }

  .hero__info--elmucin h2 {
    font-size: 20px;
  }
}

/* Пациенты */
.patient-section {
  --patient-orange: #ff3b00;
  position: relative;
  min-height: 880px;
  overflow: hidden;
  color: #fff;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

.patient-section-wrap {
  width: 100%;
}

.lower-sections-gradient {
  --lower-gradient-height: clamp(2200px, 230vw, 3400px);
  width: 100%;
  overflow: hidden;
  overflow: clip;
  background:
    linear-gradient(180deg, #38100b 0%, rgba(56, 16, 11, 0.94) 3%, transparent 11%), radial-gradient(circle at 18% 12%, rgba(237, 92, 24, 0.18), transparent 25%), radial-gradient(circle at 82% 34%, rgba(245, 155, 39, 0.11), transparent 27%),
    radial-gradient(circle at 24% 70%, rgba(188, 38, 18, 0.13), transparent 30%), linear-gradient(180deg, #38100b 0%, #46110c 27%, #3b0e0a 54%, #40100b 78%, #2d0b09 100%);
  background-color: #2d0b09;
  background-repeat: no-repeat;
  background-size: 100% var(--lower-gradient-height);
}

.patient-section__container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 12px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.patient-section__title {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.1;
}

.patient-section__content {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(410px, 0.83fr);
  align-items: end;
  gap: 50px;
  margin-top: 72px;
}

.patient-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 620px;
}

.patient-visual__stage {
  position: relative;
  width: min(108%, 590px);
  margin-left: -50px;
}

.patient-visual__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.patient-visual__image--combined {
  object-fit: contain;
  object-position: center bottom;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.patient-visual__image--loading {
  opacity: 0;
  transform: translateY(8px);
}

.patient-case {
  position: relative;
  z-index: 1;
  width: 400px;
  height: 692px;
  margin-left: 25px;
}

.patient-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 330px 1fr;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(100, 71, 68, 0.75);
  clip-path: polygon(87px 0, calc(100% - 48px) 0, calc(100% - 48px) 280px, 100% 330px, 100% 89%, 81% 100%, 0 100%, 0 89px);
  filter: drop-shadow(0 0 22px rgba(255, 65, 0, 0.16));
}

.patient-card::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  content: "";
  pointer-events: none;
  background: var(--patient-orange);
  clip-path: polygon(
    86px 0,
    calc(100% - 48px) 0,
    calc(100% - 48px) 280px,
    100% 330px,
    100% 89%,
    81% 100%,
    0 100%,
    0 88px,
    86px 0,
    88px 2px,
    2px 90px,
    2px calc(100% - 2px),
    calc(81% - 1px) calc(100% - 2px),
    calc(100% - 2px) calc(89% - 1px),
    calc(100% - 2px) 331px,
    calc(100% - 50px) 281px,
    calc(100% - 50px) 2px,
    88px 2px
  );
}

.patient-card__top {
  position: relative;
  padding: 27px 30px 17px;
  border-bottom: 2px solid var(--patient-orange);
  background: rgba(76, 48, 46, 0.33);
}

.patient-card__top::before,
.patient-card__details::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 60%);
}

.patient-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.patient-card__details {
  position: relative;
  padding: 16px 26px 22px 31px;
  perspective: 1000px;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.patient-card--switching .patient-card__name,
.patient-card--switching .patient-card__details {
  opacity: 0;
  transform: translateY(8px);
}

.patient-card__details-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.68s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
}

.patient-card__details--therapy .patient-card__details-inner {
  transform: rotateY(180deg);
}

.patient-card__details--resetting .patient-card__details-inner {
  transition: none;
}

.patient-card__panel {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.patient-card__panel--case {
  position: relative;
  z-index: 1;
}

.patient-card__panel--therapy {
  position: absolute;
  z-index: 2;
  inset: 0;
  transform: rotateY(180deg);
}

.patient-card__details::after {
  position: absolute;
  top: 28px;
  bottom: 33px;
  left: 16px;
  width: 2px;
  content: "";
  background: var(--patient-orange);
}

.patient-card__description {
  margin: 0;
  font-size: 13.4px;
  line-height: 1.66;
}

.patient-card__text--multiline {
  white-space: pre-line;
}

.patient-card__therapy ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.patient-card__therapy li {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.35;
}

.patient-card__therapy li::before {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  background: #d8d8d8;
  content: "";
}

.patient-card__therapy li > span {
  min-width: 0;
}

.patient-tabs {
  position: absolute;
  z-index: 1;
  top: 183px;
  left: -63px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.patient-tabs__item {
  display: grid;
  place-items: center;
  width: 45px;
  height: 105px;
  padding: 0;
  border: 0;
  color: #fff;
  background: #5a3a37;
  clip-path: polygon(49% 0, 100% 0, 100% 89%, 75% 100%, 0 100%, 0 20%);
  font-family: "Courier New", monospace;
  font-size: 30px;
  line-height: 1;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.patient-tabs__item:not(:disabled):hover,
.patient-tabs__item:not(:disabled):focus-visible {
  background: #7b3c33;
  outline: none;
  transform: translateX(-3px);
}

.patient-tabs__item--active {
  width: 65px;
  background: var(--patient-orange);
  cursor: default;
}

.patient-case__spine {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: 2px;
  width: 37px;
  height: 310px;
  background: repeating-linear-gradient(45deg, #eee 0 14px, #5e3632 14px 28px);
  clip-path: polygon(0 0, 100% 11%, 100% 100%, 0 90%);
}

.patient-case__accent {
  position: absolute;
  z-index: 6;
  right: -2px;
  bottom: -4px;
  width: 55px;
  height: 55px;
  padding: 0;
  border: 0;
  background: var(--patient-orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  cursor: pointer;
  animation: patient-accent-pulse 1.8s ease-in-out infinite;
  transform-origin: right bottom;
  transition: transform 0.18s ease;
}

.patient-case__accent svg {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(71, 10, 0, 0.55));
  pointer-events: none;
}

.patient-case__accent:hover,
.patient-case__accent:focus-visible {
  outline: none;
  transform: scale(1.09);
}

.patient-case__accent:focus-visible {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.patient-case__accent--clicked {
  animation: patient-accent-click 0.26s ease-out both;
}

@keyframes patient-accent-pulse {
  0%,
  100% {
    background-color: var(--patient-orange);
    filter: brightness(1) drop-shadow(0 0 2px rgba(255, 59, 0, 0.35));
    transform: scale(1);
  }

  50% {
    background-color: #ff6538;
    filter: brightness(1.18) drop-shadow(0 0 16px rgba(255, 93, 35, 1));
    transform: scale(1.12);
  }
}

@keyframes patient-accent-click {
  0% {
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 93, 35, 0.75));
    transform: scale(1);
  }

  48% {
    filter: brightness(0.94) drop-shadow(0 0 5px rgba(255, 59, 0, 0.5));
    transform: scale(0.93);
  }

  100% {
    filter: brightness(1) drop-shadow(0 0 2px rgba(255, 59, 0, 0.35));
    transform: scale(1);
  }
}

/* Слайдер фактов */
.facts-section {
  --facts-orange: #ff970f;
  min-height: 0;
  overflow: hidden;
  padding-top: clamp(36px, 4vw, 60px);
  padding-bottom: clamp(36px, 4vw, 60px);
  color: #fff;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

.facts-section__title {
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-size: clamp(32px, 3.35vw, 48px);
  font-weight: 700;
  line-height: 1.1;
}

.facts-slider {
  position: relative;
  height: 390px;
  margin-top: 20px;
}

.facts-slider__track {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.facts-card {
  position: absolute;
  top: 84px;
  left: 50%;
  width: 310px;
  height: 248px;
  padding: 10px;
  border: 5px solid var(--facts-orange);
  background: rgba(85, 68, 66, 0.97);
  box-shadow: 0 9px 17px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  transition:
    transform 0.48s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
}

.facts-card::before {
  position: absolute;
  z-index: -1;
  top: -31px;
  right: -5px;
  width: 110px;
  height: 30px;
  content: "";
  background: linear-gradient(105deg, #e94700, #ff7900);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

.facts-card::after {
  position: absolute;
  z-index: -1;
  top: -31px;
  right: 98px;
  width: 32px;
  height: 17px;
  content: "";
  background: #766b6a;
  transform: skewX(-45deg);
}

.facts-card__content {
  height: 100%;
  padding: 0 9px 8px 17px;
  border-left: 2px solid var(--facts-orange);
}

.facts-card h3 {
  margin: 0 0 13px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
}

.facts-card p {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.27;
}

.facts-card--long p {
  font-size: 14px;
}

.facts-card sup {
  position: relative;
  top: -0.5em;
  font-size: 55%;
  line-height: 0;
  vertical-align: baseline;
}

.facts-card sup.sup-after-caps {
  top: -0.83em;
}

.facts-card sup.sup-red {
  color: #ff3232;
}
.sup-red {
  color: #ff3232;
}
.facts-card[data-position="0"] {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  filter: none;
}

.facts-card[data-position="-1"] {
  z-index: 4;
  opacity: 0.88;
  transform: translate(calc(-50% - 260px), -7px) scale(0.86);
  filter: brightness(0.9);
}

.facts-card[data-position="1"] {
  z-index: 4;
  opacity: 0.88;
  transform: translate(calc(-50% + 260px), -7px) scale(0.86);
  filter: brightness(0.9);
}

.facts-card[data-position="-2"] {
  z-index: 3;
  opacity: 0.42;
  transform: translate(calc(-50% - 445px), -15px) scale(0.72);
  filter: brightness(0.68);
}

.facts-card[data-position="2"] {
  z-index: 3;
  opacity: 0.42;
  transform: translate(calc(-50% + 445px), -15px) scale(0.72);
  filter: brightness(0.68);
}

.facts-slider__arrow {
  position: absolute;
  z-index: 10;
  top: 150px;
  width: 84px;
  height: 119px;
  padding: 0;
  border: 0;
  background: transparent;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.facts-card[data-position="hidden-left"] {
  transform: translate(calc(-50% - 570px), -18px) scale(0.64);
  filter: brightness(0.6);
}

.facts-card[data-position="hidden-right"] {
  transform: translate(calc(-50% + 570px), -18px) scale(0.64);
  filter: brightness(0.6);
}

.facts-slider__arrow:hover,
.facts-slider__arrow:focus-visible {
  filter: brightness(1.25);
  outline: none;
  transform: scale(1.04);
}

.facts-slider__arrow:active {
  transform: scale(0.97);
}

.facts-slider__arrow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.facts-slider__arrow--prev {
  left: 35px;
}

.facts-slider__arrow--next {
  right: 35px;
}

@media (max-width: 991.98px) {
  .patient-section {
    min-height: auto;
  }

  .patient-section__content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 46px;
    margin-top: 48px;
  }

  .patient-visual {
    width: 100%;
    min-height: 550px;
  }

  .patient-visual__stage {
    width: min(78vw, 500px);
    margin-inline: auto;
  }

  .patient-case {
    margin-left: 45px;
    margin-bottom: 36px;
  }
}

@media screen and (min-width: 1540px) {
  .container {
    max-width: 1440px;
  }
}

@media (max-width: 576px) {
  .patient-section__container {
    padding-inline: 15px;
    padding-top: 30px;
  }

  .patient-section__content {
    gap: 34px;
    margin-top: 34px;
  }

  .patient-visual {
    min-height: 480px;
  }

  .patient-visual__stage {
    width: min(95vw, 440px);
  }

  .patient-case {
    width: 100%;
    max-width: 464px;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0 auto 36px;
    padding-right: 14px;
    padding-left: 50px;
  }

  .patient-card {
    grid-template-rows: 310px auto;
    height: auto;
    min-height: 740px;
  }

  .patient-card__top {
    padding-inline: 24px;
  }

  .patient-card__details {
    padding-right: 18px;
  }

  .patient-card__description {
    font-size: 12px;
    line-height: 1.55;
  }

  .patient-card__therapy li {
    font-size: 12px;
  }

  .patient-card__therapy ul {
    gap: 13px;
  }

  .patient-tabs {
    left: 1px;
  }

  .patient-tabs__item {
    width: 40px;
    height: 90px;
    font-size: 25px;
  }

  .patient-tabs__item--active {
    width: 51px;
  }

  .patient-case__spine {
    display: block;
    right: 16px;
  }

  .patient-case__accent {
    right: 12px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .patient-case__accent {
    animation: none;
  }

  .patient-card__details-inner {
    transition: none;
  }
}

/* Обновлённый блок пациентов */
.patient-section--redesign {
  --patient-orange: #ff4b12;
  min-height: 0;
  padding: clamp(32px, 3vw, 60px) 0 clamp(44px, 4vw, 72px);
  overflow: hidden;
  color: #f8f4f2;
  background:
    radial-gradient(circle at 50% 55%, rgba(111, 31, 12, 0.2), transparent 42%),
    linear-gradient(
      180deg,
      rgba(9, 7, 7, 0) 0%,
      rgba(9, 7, 7, 0.8) 12%,
      rgba(12, 8, 8, 0.96) 28%,
      rgba(12, 8, 8, 0.96) 72%,
      rgba(8, 6, 6, 0.76) 88%,
      rgba(8, 6, 6, 0) 100%
    );
  font-family: "Inter", Arial, sans-serif;
}

.patient-section--redesign .patient-section__container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1440px);
  max-width: 1440px;
  padding: 0;
}

.patient-section--redesign .patient-section__title {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.14);
}

.patient-section--redesign .patient-tabs {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(28px, 3vw, 42px) 34px 0;
}

.patient-section--redesign .patient-tabs__item {
  position: relative;
  display: grid;
  width: 100%;
  height: 88px;
  grid-template-columns: auto minmax(0, 1fr) 70px;
  align-items: center;
  gap: 16px;
  padding: 7px 7px 7px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 237, 0.26);
  border-radius: 11px;
  clip-path: none;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(145deg, rgba(46, 31, 29, 0.82), rgba(21, 15, 15, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.patient-section--redesign .patient-tabs__item strong {
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1;
  font-weight: 650;
}

.patient-section--redesign .patient-tabs__item span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.patient-section--redesign .patient-tabs__item b,
.patient-section--redesign .patient-tabs__item small {
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-section--redesign .patient-tabs__item img {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  filter: saturate(0.72) brightness(0.72);
  object-fit: cover;
  object-position: center top;
  transition: filter 0.22s ease;
}

.patient-section--redesign .patient-tabs__item:not(:disabled):hover,
.patient-section--redesign .patient-tabs__item:not(:disabled):focus-visible {
  border-color: rgba(255, 93, 33, 0.74);
  outline: none;
  background: linear-gradient(145deg, rgba(68, 31, 23, 0.92), rgba(27, 16, 15, 0.94));
  box-shadow: 0 8px 26px rgba(255, 63, 8, 0.14);
  transform: translateY(-3px);
}

.patient-section--redesign .patient-tabs__item--active {
  width: 100%;
  color: #fff;
  border-color: #ff5a1f;
  background: linear-gradient(145deg, rgba(77, 32, 21, 0.96), rgba(34, 18, 16, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 79, 18, 0.25),
    0 0 28px rgba(255, 67, 10, 0.34),
    inset 0 0 18px rgba(255, 82, 20, 0.08);
  cursor: default;
}

.patient-section--redesign .patient-tabs__item--active img {
  filter: none;
}

.patient-section--redesign .patient-section__content {
  display: grid;
  grid-template-columns: minmax(420px, 0.83fr) minmax(0, 1.17fr);
  align-items: stretch;
  gap: 20px;
  min-height: 410px;
  margin-top: 26px;
}

.patient-section--redesign .patient-visual {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.5;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 237, 0.25);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 76, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 76, 18, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 55%, rgba(125, 35, 15, 0.22), rgba(17, 11, 10, 0.88) 67%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.35);
}

.patient-section--redesign .patient-visual__stage {
  width: 100%;
  height: 100%;
  margin: 0;
}

.patient-section--redesign .patient-visual__image {
  width: 100%;
  height: 100%;
  filter: saturate(1.18) contrast(1.05);
  object-fit: contain;
  object-position: center bottom;
}

.patient-section--redesign .patient-case {
  width: 100%;
  height: auto;
  min-height: 410px;
  margin: 0;
}

.patient-section--redesign .patient-card {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 410px;
  padding: 18px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 237, 0.25);
  border-radius: 22px;
  clip-path: none;
  color: #f8f4f2;
  background:
    radial-gradient(circle at 84% 16%, rgba(115, 46, 29, 0.17), transparent 31%),
    linear-gradient(145deg, rgba(40, 27, 25, 0.95), rgba(20, 15, 15, 0.96));
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.patient-section--redesign .patient-card::before,
.patient-section--redesign .patient-card__top::before,
.patient-section--redesign .patient-card__details::before,
.patient-section--redesign .patient-card__details::after {
  display: none;
}

.patient-section--redesign .patient-card__top {
  position: relative;
  min-height: 112px;
  padding: 8px 12px 0;
  border: 0;
  background: transparent;
}

.patient-section--redesign .patient-card__name {
  margin: 4px 0 0;
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.15;
}

.patient-card__view-tabs {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 20px 0 0;
  padding: 5px;
  border: 1px solid rgba(255, 244, 237, 0.18);
  border-radius: 12px;
  background: rgba(18, 12, 12, 0.72);
}

.patient-card__view-tab,
.patient-section--redesign .patient-case__accent {
  position: relative;
  right: auto;
  bottom: auto;
  display: grid;
  width: 100%;
  height: 48px;
  place-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  clip-path: none;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  cursor: pointer;
  animation: none;
  transform: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  text-transform: uppercase;
}

.patient-card__view-tab:not(.patient-card__view-tab--active):hover,
.patient-card__view-tab:not(.patient-card__view-tab--active):focus-visible,
.patient-section--redesign .patient-case__accent:not(.patient-card__view-tab--active):hover,
.patient-section--redesign .patient-case__accent:not(.patient-card__view-tab--active):focus-visible {
  color: #fff;
  outline: none;
  background: rgba(255, 75, 18, 0.1);
  filter: none;
  transform: none;
}

.patient-card__view-tab--active,
.patient-section--redesign .patient-case__accent.patient-card__view-tab--active {
  color: #fff;
  background: linear-gradient(135deg, #f03c09, #ff641c);
  box-shadow: 0 0 20px rgba(255, 73, 13, 0.34);
  filter: drop-shadow(0 0 8px rgba(255, 73, 13, 0.42));
}

.patient-card__view-tab[data-patient-panel="case"] {
  padding-right: 22px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}

.patient-card__view-tab[data-patient-panel="therapy"] {
  padding-left: 22px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%);
}

.patient-card__view-tab sup {
  position: relative;
  top: -0.7em;
  margin-left: 1px;
  font-size: 0.6em;
  line-height: 0;
  vertical-align: baseline;
}

.patient-section--redesign .patient-card__details {
  height: 215px;
  min-height: 215px;
  margin-top: 14px;
  padding: 0 6px;
  perspective: 1200px;
}

.patient-section--redesign .patient-card__details-inner {
  height: 100%;
}

.patient-section--redesign .patient-card__panel {
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-color: rgba(255, 86, 25, 0.55) transparent;
  scrollbar-width: thin;
}

.patient-section--redesign .patient-card__description {
  display: grid;
  align-content: start;
  gap: 18px;
  margin: 0;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.45;
}

.patient-section--redesign .patient-card__description-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.patient-section--redesign .patient-card__description-row p {
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.patient-section--redesign .patient-card__description-label {
  color: #ff5a20;
  font-size: 16px;
  font-weight: 500;
}

.patient-section--redesign .patient-card__description-row svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: none;
  stroke: #ff5a20;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.patient-section--redesign .patient-card__therapy ul {
  gap: 5px;
}

.patient-section--redesign .patient-card__therapy li {
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.45;
}

.patient-section--redesign .patient-card__therapy li::before {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: #ff5a20;
}

.patient-section--redesign .patient-case__spine,
.patient-section--redesign .patient-case__accent svg {
  display: none;
}

@media (max-width: 1180px) {
  .patient-section--redesign .patient-tabs {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-inline: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 4px 2px 14px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(255, 82, 20, 0.72) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
  }

  .patient-section--redesign .patient-tabs::-webkit-scrollbar {
    height: 6px;
  }

  .patient-section--redesign .patient-tabs::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  .patient-section--redesign .patient-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 82, 20, 0.72);
  }

  .patient-section--redesign .patient-tabs__item {
    min-width: calc((100% - 24px) / 2.5);
    flex: 0 0 calc((100% - 24px) / 2.5);
    scroll-snap-align: start;
  }

  .patient-section--redesign .patient-section__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .patient-section--redesign .patient-visual {
    width: min(100%, 500px);
    min-height: 0;
    margin-inline: auto;
  }

  .patient-section--redesign .patient-case {
    min-height: 410px;
  }

  .patient-section--redesign .patient-card {
    min-height: 410px;
  }
}

@media (max-width: 700px) {
  .patient-section--redesign {
    padding: 32px 0 44px;
  }

  .patient-section--redesign .patient-section__container {
    width: min(calc(100% - 24px), 1440px);
  }

  .patient-section--redesign .patient-section__title {
    font-size: clamp(29px, 9vw, 40px);
  }

  .patient-section--redesign .patient-tabs {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 26px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 4px 2px 14px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .patient-section--redesign .patient-tabs__item {
    min-width: calc((100% - 24px) / 2.5);
    flex: 0 0 calc((100% - 24px) / 2.5);
    scroll-snap-align: start;
  }

  .patient-section--redesign .patient-visual {
    width: min(100%, 440px);
    min-height: 0;
    border-radius: 18px;
  }

  .patient-section--redesign .patient-visual__stage {
    width: min(100%, 590px);
  }

  .patient-section--redesign .patient-card {
    min-height: 0;
    padding: 20px 18px 24px;
    border-radius: 18px;
  }

  .patient-section--redesign .patient-card__top {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 0;
  }

  .patient-section--redesign .patient-card__name {
    order: 1;
    margin-top: 0;
  }

  .patient-card__view-tabs {
    order: 2;
    width: 100%;
    margin-top: 20px;
  }

  .patient-card__view-tab,
  .patient-section--redesign .patient-case__accent {
    height: 44px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .patient-section--redesign .patient-card__details {
    height: 260px;
    min-height: 260px;
    margin-top: 22px;
    padding-inline: 0;
  }

  .patient-section--redesign .patient-card__description-label {
    font-size: 13px;
  }

  .patient-section--redesign .patient-card__description-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
  }

  .patient-section--redesign .patient-card__description-row svg {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .patient-section--redesign .patient-case {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .patient-section--redesign .patient-visual {
    min-height: 0;
  }

  .patient-section--redesign .patient-card__details {
    height: 300px;
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .patient-section--redesign .patient-tabs__item {
    height: 70px;
    grid-template-columns: auto 44px;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px 7px 13px;
  }

  .patient-section--redesign .patient-tabs__item span {
    display: none;
  }

  .patient-section--redesign .patient-tabs__item strong {
    font-size: 27px;
  }

  .patient-section--redesign .patient-tabs__item img {
    width: 44px;
    height: 54px;
  }
}

@media (max-width: 500px) {
  .patient-case__accent {
    right: 11px;
    bottom: -2px;
    width: 44px;
    height: 52px;
  }

  .patient-case__accent svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 450px) {
  .patient-case__accent {
    right: 11px;
    bottom: -2px;
    width: 44px;
    height: 65px;
  }
}

@media (max-width: 400px) {
  .patient-case__accent {
    right: 11px;
    bottom: -2px;
    width: 38px;
    height: 65px;
  }
}

@media (max-width: 420px) {
  .patient-card {
    min-height: 770px;
  }

  .patient-case {
    padding-right: 12px;
    padding-left: 45px;
  }

  .patient-tabs {
    left: 0;
  }

  .patient-case__accent {
    right: 10px;
  }

  .patient-case__spine {
    right: 14px;
  }
}

@media (max-width: 991.98px) {
  .facts-section {
    min-height: 0;
  }

  .facts-section__title {
    padding-top: 0;
  }

  .facts-slider {
    height: 360px;
    margin-top: 20px;
  }

  .facts-card {
    top: 76px;
    width: 280px;
    height: 225px;
  }

  .facts-card h3 {
    font-size: 31px;
  }

  .facts-card p {
    font-size: 17px;
  }
  .facts-card--long p {
    font-size: 14px;
  }

  .facts-card[data-position="-1"] {
    transform: translate(calc(-50% - 205px), 16px) scale(0.8);
  }

  .facts-card[data-position="1"] {
    transform: translate(calc(-50% + 205px), 16px) scale(0.8);
  }

  .facts-card[data-position="-2"] {
    opacity: 0;
    transform: translate(calc(-50% - 350px), 24px) scale(0.65);
  }

  .facts-card[data-position="2"] {
    opacity: 0;
    transform: translate(calc(-50% + 350px), 24px) scale(0.65);
  }

  .facts-card[data-position="hidden-left"] {
    transform: translate(calc(-50% - 420px), 24px) scale(0.6);
  }

  .facts-card[data-position="hidden-right"] {
    transform: translate(calc(-50% + 420px), 24px) scale(0.6);
  }

  .facts-slider__arrow {
    top: 113px;
    width: 74px;
    height: 105px;
  }

  .facts-slider__arrow--prev {
    left: 4px;
  }

  .facts-slider__arrow--next {
    right: 4px;
  }
}

@media (max-width: 576px) {
  .facts-section {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .facts-section__title {
    padding-inline: 12px;
    font-size: 28px;
  }

  .facts-slider {
    height: 320px;
  }

  .facts-card {
    top: 58px;
    width: min(270px, calc(100vw - 96px));
    height: 220px;
  }

  .facts-card h3 {
    font-size: 29px;
  }

  .facts-card p {
    font-size: 16px;
  }

  .facts-card--long p {
    font-size: 13px;
  }

  .facts-card[data-position="-1"],
  .facts-card[data-position="1"] {
    opacity: 0;
    pointer-events: none;
  }

  .facts-slider__arrow {
    top: 112px;
    width: 55px;
    height: 78px;
  }

  .facts-slider__arrow--prev {
    left: 0;
  }

  .facts-slider__arrow--next {
    right: 0;
  }
}

/* Подвал */
.site-footer {
  color: #fff;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

.site-footer__top {
  padding: 17px 0px 31px;
}

.site-footer__literature-toggle {
  width: auto;
  min-width: 250px;
}

.site-footer__literature-toggle:focus-visible {
  outline: 3px solid rgba(245, 155, 39, 0.55);
  outline-offset: 3px;
}

.site-footer__toggle-arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.site-footer__literature-toggle[aria-expanded="true"] .site-footer__toggle-arrow {
  transform: rotate(135deg) translate(-3px, -3px);
}

.site-footer__literature {
  height: 0;
  /*width: min(100%, 900px);*/
  overflow: hidden;
  opacity: 0;
  contain: layout paint;
  transition:
    height 0.35s cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 0.25s ease;
}

.site-footer__literature--open {
  opacity: 1;
}

.site-footer__literature-inner {
  overflow: hidden;
}

.site-footer__literature-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer__literature ol {
  margin: 6px 0 0;
  padding: 0 0 0 21px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer__literature li + li {
  margin-top: 8px;
}

.site-footer__advertisement {
  position: relative;
  padding: 18px clamp(220px, 22vw, 340px) 8px 46px;
  border-top: 1px solid rgba(226, 161, 25, 0.85);
  border-bottom: 1px solid rgba(226, 161, 25, 0.85);
  font-size: 13px;
}

.site-footer__advertisement-logo {
  position: absolute;
  right: 46px;
  bottom: 24px;
  display: block;
  width: clamp(150px, 16vw, 220px);
  height: auto;
}

.site-footer__advertisement p {
  margin: 0 0 20px;
}

.site-footer__contacts {
  display: grid;
  gap: 14px;
  padding: 4px 0 18px;
}

.site-footer__contacts h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.site-footer__contacts a {
  width: fit-content;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__contacts a:hover,
.site-footer__contacts a:focus-visible {
  color: #f59b27;
  outline: none;
}

.site-footer__phones {
  display: grid;
  gap: 5px;
}

.site-footer__contacts address {
  margin: 0;
  font-style: normal;
}

.site-footer__notice {
  margin: 0;
  padding: 34px 46px 32px;
  color: rgba(255, 255, 255, 0.35);
  font-size: clamp(17px, 2.1vw, 25px);
  font-weight: 400;
  line-height: 1.15;
}

@media (max-width: 576px) {
  .site-footer__top {
    padding: 16px 18px 24px;
  }

  .site-footer__literature-toggle {
    width: min(100%, 283px);
    padding-right: 28px;
    font-size: 13px;
  }

  .site-footer__toggle-arrow {
    width: 10px;
    height: 10px;
  }

  .site-footer__literature ol {
    font-size: 11px;
  }

  .site-footer__literature-note {
    font-size: 11px;
  }

  .site-footer__advertisement {
    padding: 17px 130px 3px 18px;
    font-size: 12px;
  }

  .site-footer__advertisement-logo {
    right: 18px;
    bottom: 18px;
    width: 100px;
  }

  .site-footer__notice {
    padding: 27px 18px;
    font-size: 16px;
  }
}

/* =========================================================
   Интерактивный маршрут клинических материалов
   ========================================================= */

.clinical-route {
  --bg: #150506;
  --bg-deep: #0e0304;
  --bg-warm: #2b0906;
  --panel: rgba(40, 12, 11, 0.76);
  --panel-strong: #24100f;
  --paper: #fffdfb;
  --paper-soft: #f7f1ed;
  --text: #fff9f6;
  --text-dark: #211719;
  --muted: #c9b6b3;
  --muted-dark: #76676a;
  --border: rgba(255, 231, 213, 0.15);
  --border-strong: rgba(255, 231, 213, 0.28);
  --accent: #f59b27;
  --accent-strong: #f06a27;
  --accent-soft: #fff0dc;
  --accent-ink: #6b2d0b;
  --success: #55c994;
  --success-soft: #e4f7ed;
  --locked: #846f70;
  --danger: #ff6c73;
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --container: 1540px;
  --content-container: 1440px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.clinical-route,
.clinical-route * {
  box-sizing: border-box;
}

.clinical-route :is(button, input, textarea, select) {
  font: inherit;
}

.clinical-route button {
  color: inherit;
  touch-action: manipulation;
}

.clinical-route :is(button, a):focus-visible {
  outline: 3px solid rgba(245, 155, 39, 0.7);
  outline-offset: 3px;
}

body.clinical-route-modal-open {
  overflow: hidden;
}

.clinical-route [hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 14px;
  left: 14px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  color: #171111;
  background: white;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.program-shell {
  overflow: clip;
}

.program {
  position: relative;
  z-index: 70;
  display: flow-root;
  min-height: 100vh;
  padding-top: 64px;
  overflow: clip;
  background: #3e1409;
  isolation: isolate;
}

.program::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: min(calc(100% - 40px), var(--container));
  height: min(100vh, 920px);
  min-height: 760px;
  content: "";
  pointer-events: none;
  background: #3e1409;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 3%, rgba(0, 0, 0, 0.2) 7.5%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.2) 92.5%, rgba(0, 0, 0, 0.72) 97%, #000 100%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 4%, transparent 10%, transparent 76%, rgba(0, 0, 0, 0.32) 84%, rgba(0, 0, 0, 0.72) 93%, #000 100%);
  -webkit-mask-composite: source-over;
  mask-image:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 3%, rgba(0, 0, 0, 0.2) 7.5%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.2) 92.5%, rgba(0, 0, 0, 0.72) 97%, #000 100%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 4%, transparent 10%, transparent 76%, rgba(0, 0, 0, 0.32) 84%, rgba(0, 0, 0, 0.72) 93%, #000 100%);
  mask-composite: add;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transform: translateX(-50%);
}

.program__background-video {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  display: block;
  width: min(calc(100% - 40px), var(--container));
  height: min(100vh, 920px);
  min-height: 760px;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.16) 1.5%, rgba(0, 0, 0, 0.58) 4%, rgba(0, 0, 0, 0.9) 7.5%, #000 12%, #000 88%, rgba(0, 0, 0, 0.9) 92.5%, rgba(0, 0, 0, 0.58) 96%, rgba(0, 0, 0, 0.16) 98.5%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 2%, rgba(0, 0, 0, 0.85) 5%, #000 8.5%, #000 82%, rgba(0, 0, 0, 0.85) 87%, rgba(0, 0, 0, 0.45) 93%, rgba(0, 0, 0, 0.12) 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.16) 1.5%, rgba(0, 0, 0, 0.58) 4%, rgba(0, 0, 0, 0.9) 7.5%, #000 12%, #000 88%, rgba(0, 0, 0, 0.9) 92.5%, rgba(0, 0, 0, 0.58) 96%, rgba(0, 0, 0, 0.16) 98.5%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 2%, rgba(0, 0, 0, 0.85) 5%, #000 8.5%, #000 82%, rgba(0, 0, 0, 0.85) 87%, rgba(0, 0, 0, 0.45) 93%, rgba(0, 0, 0, 0.12) 97%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transform: translateX(-50%);
}

.program__container {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--content-container));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.program--with-heading .program__container {
  padding-top: clamp(12px, 2vw, 24px);
}

.program__grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.06;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.ambient {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  opacity: 1;
  pointer-events: none;
  contain: strict;
}

.ambient--top {
  top: -190px;
  right: -150px;
  background: radial-gradient(circle, rgba(245, 155, 39, 0.18) 0, rgba(245, 155, 39, 0.07) 42%, transparent 72%);
}

.ambient--bottom {
  bottom: -230px;
  left: -130px;
  background: radial-gradient(circle, rgba(216, 60, 28, 0.17) 0, rgba(216, 60, 28, 0.06) 42%, transparent 72%);
}

.route-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 38px);
  min-height: 500px;
  padding: 22px 0 36px;
}

.route-hero__brand {
  width: min(59vw, 740px);
  margin: 18px 0 0;
  transform: translateX(-15px);
}

.route-hero__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.route-hero__copy {
  width: min(100%, 540px);
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(245, 155, 39, 0.22);
  border-radius: 24px;
  background: rgba(83, 34, 20, 0.78);
  box-shadow: 0 18px 38px rgba(7, 1, 1, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.route-hero__lead {
  max-width: 690px;
  margin: 0;
  color: white;
  font-size: 18px;
  line-height: 1.65;
}

.route-hero__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 30px;
}

.route-hero__actions .button {
  padding-inline: 14px;
  font-size: 14px;
  white-space: nowrap;
}

.project-overview {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 72px;
  overflow: hidden;
  border: 1px solid rgba(235, 121, 21, 0.76);
  border-radius: 26px;
  color: #fff8f3;
  background:
    radial-gradient(circle at 48% 12%, rgba(223, 91, 20, 0.13), transparent 32%),
    linear-gradient(120deg, rgba(67, 22, 13, 0.93), rgba(28, 10, 9, 0.95));
  box-shadow:
    0 18px 48px rgba(8, 1, 1, 0.28),
    inset 0 0 30px rgba(241, 106, 18, 0.05);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.project-overview__intro,
.project-overview__features {
  min-width: 0;
  padding: clamp(25px, 3.2vw, 29px);
}

.project-overview__intro {
  border-right: 1px solid rgba(235, 121, 21, 0.32);
}

.project-overview__intro h2 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.project-overview__subtitle {
  margin: 12px 0 0;
  color: #f08b2c;
  font-size: clamp(19px, 1.65vw, 25px);
  font-weight: 650;
  line-height: 1.25;
}

.project-overview__line {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  margin: clamp(26px, 3vw, 38px) 0 clamp(22px, 2.5vw, 32px);
  background: linear-gradient(90deg, rgba(255, 133, 42, 0.95), rgba(255, 133, 42, 0.05));
}

.project-overview__line::before {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 54px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 177, 91, 0.86);
  filter: blur(4px);
  transform: translateY(-50%);
}

.project-overview__text {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 248, 243, 0.86);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.55;
}

.project-overview__features h3 {
  margin: 0 0 18px;
  color: #f08b2c;
  font-size: clamp(22px, 1.9vw, 29px);
  font-weight: 700;
}

.project-overview__list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-overview__list li {
  display: grid;
  grid-template-columns: 68px 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.project-overview__number {
  display: grid;
  width: 68px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(244, 142, 42, 0.72);
  border-radius: 999px;
  color: #f49a36;
  background: rgba(67, 25, 14, 0.72);
  box-shadow: inset 0 0 14px rgba(244, 123, 24, 0.08);
  font-size: 18px;
  font-weight: 700;
}

.project-overview__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #ef8a28;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-overview__list p {
  margin: 0;
  color: rgba(255, 248, 243, 0.86);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.35;
}

@media (max-width: 860px) {
  .project-overview {
    grid-template-columns: 1fr;
    margin-bottom: 52px;
  }

  .project-overview__intro {
    border-right: 0;
    border-bottom: 1px solid rgba(235, 121, 21, 0.32);
  }
}

@media (max-width: 576px) {
  .project-overview {
    border-radius: 20px;
  }

  .project-overview__intro,
  .project-overview__features {
    padding: 24px 18px;
  }

  .project-overview__list {
    gap: 20px;
  }

  .project-overview__list li {
    grid-template-columns: 54px 38px minmax(0, 1fr);
    gap: 10px;
  }

  .project-overview__number {
    width: 54px;
    height: 40px;
    font-size: 15px;
  }

  .project-overview__icon {
    width: 36px;
    height: 36px;
  }

  .project-overview__list br {
    display: none;
  }
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 650;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.button svg,
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button--primary {
  color: #24150d;
  background: linear-gradient(135deg, #ffc15f, #f28a24);
  border-color: rgba(255, 214, 147, 0.45);
  box-shadow: 0 12px 28px rgba(239, 105, 24, 0.2);
}

.button--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffcc79, #f59b27);
}

.button--secondary {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.button--secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.link-button {
  padding: 0;
  border: 0;
  color: #d7c5c1;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(215, 197, 193, 0.34);
  text-underline-offset: 4px;
}

.link-button:hover {
  color: white;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(2deg);
}

.progress-panel {
  position: fixed;
  z-index: 80;
  top: 10px;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(calc(100% - 40px), var(--content-container));
  min-height: 54px;
  margin: 0;
  padding: 8px 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(66, 27, 25, 0.88);
  box-shadow: 0 4px 18px rgba(3, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  contain: layout paint;
  transform: translateX(-50%);
}

.progress-panel__head {
  display: flex;
  justify-content: flex-start;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.progress-panel__label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.progress-panel__head strong {
  font-size: 13px;
}

.progress-panel__percent {
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.progress-panel__auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  flex-wrap: nowrap;
}

.header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header__link svg {
  flex: 0 0 auto;
}

.header__link-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-panel__login {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 76px;
  min-height: 34px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 7px 20px rgba(245, 117, 39, 0.24);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.progress-panel__login:hover,
.progress-panel__login:focus-visible {
  filter: brightness(1.1);
  outline: none;
  transform: translateY(-1px);
}

.chapter-selector {
  position: relative;
  margin: 34px 0 64px;
}

.chapter-selector__heading {
  margin-bottom: 18px;
}

.chapter-selector__heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 620;
}

.route-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-step {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 206px;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 231, 213, 0.18);
  border-radius: 24px;
  color: var(--text);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018) 62%), rgba(40, 12, 11, 0.56);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font: inherit;
  text-align: left;
  cursor: pointer;
  contain: layout paint style;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.summary-step::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 82% 90%, rgba(245, 155, 39, 0.13), transparent 35%);
  opacity: 0.55;
  transition: opacity 0.22s ease;
}

.summary-step:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 155, 39, 0.56);
  background: linear-gradient(155deg, rgba(245, 155, 39, 0.1), rgba(255, 255, 255, 0.025) 62%), rgba(45, 13, 11, 0.72);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.summary-step:hover::before {
  opacity: 1;
}

.summary-step:focus-visible {
  outline: 3px solid rgba(245, 155, 39, 0.52);
  outline-offset: 4px;
}

.summary-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.summary-step__index {
  display: inline-flex;
  width: auto;
  height: 28px;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 196, 119, 0.32);
  border-radius: 999px;
  color: #ffd49d;
  background: rgba(245, 155, 39, 0.11);
}

.summary-step__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(0, 0, 0, 0.12);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.summary-step__status svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-step__label {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-step strong {
  display: block;
  max-width: 235px;
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.summary-step__meta {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.summary-step__action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 650;
}

.summary-step__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.summary-step__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-step:hover .summary-step__arrow {
  transform: translateX(3px);
  border-color: rgba(245, 155, 39, 0.48);
  color: var(--accent);
  background: rgba(245, 155, 39, 0.09);
}

.summary-step__bar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.055);
}

.summary-step__bar i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: transform 0.4s ease;
}

.summary-step.is-selected {
  border-color: rgba(245, 155, 39, 0.86);
  background: linear-gradient(145deg, rgba(245, 155, 39, 0.2), rgba(245, 155, 39, 0.055) 68%), rgba(47, 14, 10, 0.82);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(245, 155, 39, 0.14);
}

.summary-step.is-selected .summary-step__index {
  color: #281407;
  border-color: rgba(255, 219, 172, 0.78);
  background: linear-gradient(145deg, #ffc56f, var(--accent));
  box-shadow: 0 8px 20px rgba(245, 155, 39, 0.16);
}

.summary-step.is-selected .summary-step__status {
  color: #ffd9a7;
  border-color: rgba(245, 155, 39, 0.3);
  background: rgba(245, 155, 39, 0.1);
}

.summary-step.is-selected .summary-step__action {
  color: #ffe0b9;
}

.summary-step.is-selected .summary-step__arrow {
  color: #2b1508;
  border-color: var(--accent);
  background: var(--accent);
}

.summary-step.is-current:not(.is-selected) {
  border-color: rgba(245, 155, 39, 0.36);
}

.summary-step.is-current:not(.is-selected) .summary-step__status {
  color: #ffd49d;
  border-color: rgba(245, 155, 39, 0.24);
  background: rgba(245, 155, 39, 0.08);
}

.summary-step.is-current:not(.is-selected) .summary-step__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 155, 39, 0.1);
}

.summary-step.is-complete {
  border-color: rgba(85, 201, 148, 0.34);
}

.summary-step.is-complete .summary-step__index {
  color: #bff4dc;
  border-color: rgba(85, 201, 148, 0.28);
  background: rgba(85, 201, 148, 0.09);
}

.summary-step.is-complete .summary-step__status {
  color: #bff4dc;
  border-color: rgba(85, 201, 148, 0.24);
  background: rgba(85, 201, 148, 0.08);
}

.summary-step.is-complete .summary-step__bar i {
  background: var(--success);
}

.summary-step.is-complete.is-selected {
  border-color: rgba(245, 155, 39, 0.78);
}

.summary-step.is-complete.is-selected .summary-step__index {
  color: #281407;
  border-color: rgba(255, 219, 172, 0.78);
  background: linear-gradient(145deg, #ffc56f, var(--accent));
}

.route-section {
  position: relative;
  contain: layout style;
  isolation: isolate;
}

.route-section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -64px;
  left: 50%;
  width: 100vw;
  content: "";
  background:
    linear-gradient(180deg, #3e1409 0%, rgba(62, 20, 9, 0.92) 5%, transparent 16%), radial-gradient(circle at 16% 14%, rgba(237, 92, 24, 0.2), transparent 28%), radial-gradient(circle at 84% 20%, rgba(245, 155, 39, 0.12), transparent 26%),
    linear-gradient(180deg, #3e1409 0%, #48110c 38%, #42100b 70%, #38100b 100%);
  transform: translateX(-50%);
}

.section-heading {
  margin-bottom: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 620;
}

.route {
  position: relative;
}

.chapter {
  position: relative;
  padding: 8px 0 32px;
  animation: chapterIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chapter__header {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(100%, 530px);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 0 auto 42px;
  padding: 10px 16px 13px 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 21px;
  background: rgba(37, 11, 8, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.chapter__header::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 43px;
  background: linear-gradient(to bottom, rgba(245, 155, 39, 0.42), rgba(245, 155, 39, 0.16));
}

.chapter__number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 197, 121, 0.58);
  border-radius: 50%;
  color: #2d180c;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.chapter__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.chapter__copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter__copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter__status {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.chapter__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.055);
}

.chapter__progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: transform 0.4s ease;
}

.chapter__items {
  display: grid;
  gap: 0;
  contain: layout style;
}

@media (min-width: 1068px) {
  .chapter__items .route-item + .route-item {
    margin-top: -40px;
  }

  .chapter__items .route-item:not(:last-child)::before {
    height: calc(100% - 40px);
  }
}

.route-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
  align-items: center;
}

.route-item:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(245, 155, 39, 0.34), rgba(245, 155, 39, 0.14));
}

.route-item__node {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-self: center;
  place-items: center;
  border: 1px solid rgba(245, 155, 39, 0.26);
  border-radius: 50%;
  background: #250b08;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.26),
    inset 0 0 0 5px rgba(245, 155, 39, 0.035);
}

.route-item__node::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(245, 155, 39, 0.22);
  border-radius: inherit;
}

.route-item__node-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 205, 140, 0.74);
  border-radius: 50%;
  color: #2c180c;
  background: linear-gradient(145deg, #ffb84f, var(--accent));
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.11),
    0 6px 16px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 850;
}

.route-item__node-core svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-item.is-unlocked .route-item__node {
  box-shadow:
    0 0 0 5px rgba(245, 155, 39, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.26),
    inset 0 0 0 5px rgba(245, 155, 39, 0.035);
}

.route-item.is-complete .route-item__node {
  border-color: rgba(85, 201, 148, 0.3);
}

.route-item.is-complete .route-item__node::before {
  border-color: rgba(85, 201, 148, 0.26);
}

.route-item.is-complete .route-item__node-core {
  color: #083625;
  border-color: rgba(222, 255, 241, 0.7);
  background: var(--success);
}

.route-item.is-locked .route-item__node {
  border-color: rgba(255, 255, 255, 0.11);
  background: #251313;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.route-item.is-locked .route-item__node::before {
  border-color: rgba(255, 255, 255, 0.08);
}

.route-item.is-locked .route-item__node-core {
  color: #cbbab8;
  border-color: rgba(255, 255, 255, 0.13);
  background: #493332;
  box-shadow: none;
}

.route-item__connector {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 20px;
  height: 1px;
  background: rgba(245, 155, 39, 0.34);
}

.route-item__connector::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 155, 39, 0.08);
}

.route-item--left .route-item__connector {
  left: calc(50% - 52px);
  background: linear-gradient(90deg, rgba(245, 155, 39, 0.16), rgba(245, 155, 39, 0.42));
}

.route-item--left .route-item__connector::after {
  left: -2px;
}

.route-item--right .route-item__connector {
  left: calc(50% + 32px);
  background: linear-gradient(90deg, rgba(245, 155, 39, 0.42), rgba(245, 155, 39, 0.16));
}

.route-item--right .route-item__connector::after {
  right: -2px;
}

.route-item.is-locked .route-item__connector {
  opacity: 0.24;
}

.material-card {
  position: relative;
  display: grid;
  grid-row: 1;
  grid-template-columns: 148px minmax(0, 1fr);
  width: 100%;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  color: var(--text-dark);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  text-align: left;
  cursor: pointer;
  contain: layout style;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.24s ease;
}

.material-card.material-card--wide-visual {
  grid-template-columns: 210px minmax(0, 1fr);
}

.route-item--left .material-card {
  grid-column: 1;
}

.route-item--right .material-card {
  grid-column: 3;
}

.material-card:hover:not([aria-disabled="true"]) {
  transform: translateY(-4px);
  border-color: rgba(245, 155, 39, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.material-card:active:not([aria-disabled="true"]) {
  transform: translateY(-1px);
}

.material-card[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
}

.material-card__visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: radial-gradient(circle at 34% 35%, rgba(255, 255, 255, 0.18), transparent 18%), radial-gradient(circle at 54% 54%, rgba(255, 164, 68, 0.56), transparent 23%), linear-gradient(145deg, #40110e, #120607 72%);
}

.material-card__visual--with-image {
  background: radial-gradient(circle at 50% 42%, rgba(255, 140, 58, 0.26), transparent 52%), linear-gradient(145deg, #35100d, #120607 78%);
}

.material-card__visual--with-image::before,
.material-card__visual--with-image::after {
  display: none;
}

.material-card__visual-image {
  position: absolute;
  z-index: 1;
  inset: 8px 4px;
  width: calc(100% - 8px);
  height: calc(100% - 16px);
  object-fit: contain;
  object-position: center;
}

.material-card__visual-image:not(.material-card__visual-image--cover) {
  transform: scale(1.9);
  transform-origin: center;
}

.material-card__visual-image--cover {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-card--with-image,
.material-card--with-image h3,
.material-card--with-image .format-badge,
.material-card--with-image .material-card__speaker,
.material-card--with-image .material-card__duration,
.material-card--with-image .material-card__date,
.material-card--with-image .material-card__status {
  color: #000;
}

.material-card--dark-text,
.material-card--dark-text h3,
.material-card--dark-text .format-badge,
.material-card--dark-text .material-card__speaker,
.material-card--dark-text .material-card__duration,
.material-card--dark-text .material-card__date,
.material-card--dark-text .material-card__status {
  color: #000;
}

.material-card__visual::before,
.material-card__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 188, 102, 0.35);
}

.material-card__visual::before {
  width: 116px;
  height: 116px;
  left: 18px;
  top: 38px;
}

.material-card__visual::after {
  width: 68px;
  height: 68px;
  left: 42px;
  top: 62px;
  border-style: dashed;
}

.material-card__visual--audio {
  background: linear-gradient(155deg, #21100d, #56150d 55%, #140607);
}

.material-card__visual--infographic {
  background: linear-gradient(155deg, #1b0908, #64321a 56%, #140607);
}

.material-card__visual--infographic::before {
  border-radius: 22px;
  transform: rotate(45deg);
}

.material-card__visual--infographic::after {
  border-radius: 12px;
  transform: rotate(45deg);
  animation: none;
}

.material-card__type-icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: white;
  background: rgba(24, 6, 6, 0.82);
}

.material-card__type-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.material-card__code {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.09em;
  overflow-wrap: anywhere;
}

.material-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 25px 25px 22px;
}

.material-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.format-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.material-card__duration {
  color: var(--muted-dark);
  font-size: 13px;
  white-space: nowrap;
}

.material-card h3 {
  margin: 15px 0 10px;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.012em;
  font-weight: 680;
}

.material-card__speaker {
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.45;
}

.material-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.material-card__date {
  color: var(--muted-dark);
  font-size: 12px;
}

.material-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.material-card__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.route-item.is-complete .material-card__status-dot {
  background: var(--success);
}

.route-item.is-locked .material-card__status-dot {
  background: var(--locked);
}

.material-card__lock {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
  background: rgba(18, 8, 9, 0.72);
}

.material-card[aria-disabled="true"] .material-card__lock {
  display: flex;
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(18, 8, 9, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.lock-pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.chapter-pagination {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(260px, 1.4fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 26px 0 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.chapter-pagination__button {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.chapter-pagination__button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(245, 155, 39, 0.42);
  background: rgba(245, 155, 39, 0.07);
}

.chapter-pagination__button:disabled {
  color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
}

.chapter-pagination__button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chapter-pagination__button--next {
  justify-content: flex-end;
}

.chapter-pagination__current {
  display: grid;
  place-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(245, 155, 39, 0.24);
  border-radius: 16px;
  background: rgba(245, 155, 39, 0.055);
  text-align: center;
}

.chapter-pagination__current span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chapter-pagination__current strong {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.3;
}

.finish {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 44px;
  border: 1px solid rgba(85, 201, 148, 0.32);
  border-radius: var(--radius-xl);
  background: rgba(85, 201, 148, 0.08);
  text-align: center;
}

.finish__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #103d2e;
  background: var(--success);
}

.finish__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finish__overline {
  color: var(--success);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finish h2 {
  margin: 8px 0 12px;
  font-size: 36px;
  letter-spacing: -0.03em;
}

.finish p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
}

.finish__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.route-drawer {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 470px);
  visibility: hidden;
  opacity: 0;
  content-visibility: hidden;
  transition:
    visibility 0.25s ease,
    opacity 0.25s ease;
}

.route-drawer.is-open {
  visibility: visible;
  opacity: 1;
  content-visibility: visible;
}

.route-drawer__backdrop {
  grid-column: 1;
  border: 0;
  background: rgba(7, 2, 3, 0.82);
  cursor: default;
}

.route-drawer__panel {
  grid-column: 2;
  height: 100%;
  overflow-y: auto;
  padding: 28px 26px 34px;
  color: var(--text-dark);
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.25);
  contain: layout paint;
}

.route-drawer.is-open .route-drawer__panel {
  transform: translateX(0);
  will-change: transform;
}

.route-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.route-drawer__overline {
  color: #9f5523;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-drawer__header h2 {
  margin: 3px 0 0;
  font-size: 29px;
  letter-spacing: -0.03em;
}

.route-drawer .icon-button {
  color: var(--text-dark);
  border-color: rgba(34, 20, 20, 0.14);
  background: rgba(34, 20, 20, 0.04);
}

.route-drawer__intro {
  margin: 22px 0;
  color: var(--muted-dark);
}

.route-drawer__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-map-button {
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 20, 20, 0.1);
  border-radius: 14px;
  color: var(--text-dark);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.route-map-button:hover:not(:disabled),
.route-map-button.is-current {
  border-color: rgba(245, 155, 39, 0.45);
  background: #fff5e8;
}

.route-map-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.route-map-button__num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #301b0d;
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.route-map-button.is-complete .route-map-button__num {
  color: #0f3b2d;
  background: var(--success-soft);
}

.route-map-button__title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.route-map-button__status {
  color: var(--muted-dark);
  font-size: 12px;
}

.route-drawer__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(34, 20, 20, 0.1);
  color: var(--muted-dark);
  font-size: 11px;
}

.route-drawer__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--done {
  background: var(--success);
}

.legend-dot--current {
  background: var(--accent);
}

.legend-dot--locked {
  background: var(--locked);
}

.project-info-modal {
  position: fixed;
  z-index: 105;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  content-visibility: hidden;
  transition:
    visibility 0.25s ease,
    opacity 0.25s ease;
}

.project-info-modal.is-open {
  visibility: visible;
  opacity: 1;
  content-visibility: visible;
}

.project-info-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 3, 3, 0.8);
  cursor: default;
}

.project-info-modal__panel {
  position: relative;
  display: grid;
  width: min(100%, 720px);
  max-height: calc(100vh - 48px);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 210, 160, 0.25);
  border-radius: 24px;
  color: var(--text);
  background: rgba(72, 28, 21, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  contain: layout paint;
}

.project-info-modal.is-open .project-info-modal__panel {
  transform: translateY(0) scale(1);
}

.project-info-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.project-info-modal__header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.project-info-modal__body {
  overflow-y: auto;
  padding: 24px 30px 30px;
  color: rgba(255, 249, 246, 0.88);
  font-size: 17px;
  line-height: 1.65;
}

.project-info-modal__body p {
  margin: 0;
}

.project-info-modal__body p + p {
  margin-top: 18px;
}

@media (max-width: 620px) {
  .project-info-modal {
    padding: 11px;
  }

  .project-info-modal__panel {
    max-height: calc(100vh - 22px);
    border-radius: 18px;
  }

  .project-info-modal__header {
    padding: 17px 18px;
  }

  .project-info-modal__body {
    padding: 20px 18px 24px;
    font-size: 15px;
    line-height: 1.55;
  }
}

.viewer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  content-visibility: hidden;
  transition:
    visibility 0.25s ease,
    opacity 0.25s ease;
}

.viewer.is-open {
  visibility: visible;
  opacity: 1;
  content-visibility: visible;
}

.viewer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 2, 3, 0.9);
}

.viewer__panel {
  position: relative;
  display: grid;
  width: min(100%, 980px);
  max-height: calc(100vh - 48px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  color: var(--text-dark);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  contain: layout paint;
}

.viewer.is-open .viewer__panel {
  transform: translateY(0) scale(1);
  will-change: transform;
}

.viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(35, 20, 20, 0.09);
  background: rgba(255, 255, 255, 0.86);
}

.viewer__header .icon-button {
  color: var(--text-dark);
  border-color: rgba(34, 20, 20, 0.14);
  background: rgba(34, 20, 20, 0.04);
}

.viewer__progress {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  color: var(--muted-dark);
  font-size: 12px;
}

.viewer__progress-track {
  width: min(34vw, 260px);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee4df;
}

.viewer__progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  border-radius: inherit;
  background: var(--accent);
  transition: transform 0.35s ease;
}

.viewer__body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.viewer__article {
  padding: 34px 38px 36px;
}

.viewer__chapter {
  margin: 0 0 8px;
  color: #9d5b2c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.viewer__article h2 {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.media-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  color: white;
  background: radial-gradient(circle at 50% 42%, rgba(255, 160, 66, 0.32), transparent 28%), linear-gradient(145deg, #39100d, #120607 74%);
  contain: layout paint;
}

.media-stage--document {
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  contain: layout;
}

.infographic-document {
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #160707;
}

.infographic-document img {
  display: block;
  width: 100%;
  height: auto;
}

.media-stage__embed {
  position: absolute;
  inset: 0;
}

.media-stage__auth-required {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.media-stage__auth-link {
  width: min(100%, 360px);
  min-height: 50px;
  padding: 12px 20px;
  line-height: 1.35;
  text-align: center;
}

.media-stage__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-stage__label {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(9, 2, 3, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.media-stage__screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.media-stage__rings {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 173, 85, 0.26);
  border-radius: 50%;
}

.media-stage__rings::before,
.media-stage__rings::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(255, 173, 85, 0.32);
  border-radius: 50%;
}

.media-stage__rings::after {
  inset: 66px;
  border-style: solid;
}

.media-stage__play {
  position: relative;
  z-index: 2;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: white;
  background: rgba(18, 5, 5, 0.82);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.media-stage__play:hover {
  transform: scale(1.04);
  background: rgba(245, 155, 39, 0.25);
}

.media-stage__play svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.media-stage__play.is-playing svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.media-stage__controls {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.media-stage__time {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.media-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.media-progress__fill {
  width: 100%;
  height: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  border-radius: inherit;
  background: var(--accent);
  transition: transform 0.22s linear;
}

.podcast-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #160707;
}

.podcast-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(14, 4, 5, 0.22) 63%, rgba(14, 4, 5, 0.88) 100%);
  pointer-events: none;
}

.podcast-stage__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.podcast-stage__controls {
  position: absolute;
  z-index: 2;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 26px);
  left: clamp(14px, 3vw, 28px);
}

.podcast-stage__audio {
  display: block;
  width: 100%;
  min-height: 46px;
  accent-color: var(--accent);
}

.podcast-stage .media-stage__label {
  z-index: 2;
}

.audio-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 50px 30px 70px;
}

.audio-wave {
  display: flex;
  height: 90px;
  align-items: center;
  gap: 5px;
}

.audio-wave span {
  width: 5px;
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(to top, var(--accent-strong), #ffcf78);
  transform-origin: center;
  opacity: 0.72;
}

.audio-wave.is-playing span {
  animation: wave 0.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -70ms);
}

.infographic-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 292px;
  padding: 54px 22px 22px;
}

.info-step {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.info-step:hover,
.info-step.is-open {
  transform: translateY(-3px);
  border-color: rgba(245, 155, 39, 0.66);
  background: rgba(245, 155, 39, 0.1);
}

.info-step__number {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-step strong {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.4;
}

.info-step p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.45;
}

.info-step__check {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}

.info-step.is-open .info-step__check {
  color: #123b2c;
  border-color: transparent;
  background: var(--success);
}

.viewer-tabs {
  display: flex;
  gap: 4px;
  margin-top: 28px;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(35, 20, 20, 0.1);
}

.viewer-tabs[hidden] {
  display: none;
}

.viewer-tab {
  position: relative;
  padding: 11px 14px;
  border: 0;
  color: var(--muted-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}

.viewer-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.viewer-tab.is-active {
  color: var(--text-dark);
}

.viewer-tab.is-active::after {
  background: var(--accent);
}

.viewer-tabpanel {
  padding-top: 22px;
}

.viewer-tabpanel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.takeaways {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.takeaways li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
  border: 1px solid rgba(35, 20, 20, 0.09);
  border-radius: 14px;
  background: #fff;
}

.takeaways li span:first-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.takeaways li p {
  margin: 2px 0 0;
  color: #514649;
  font-size: 14px;
  line-height: 1.5;
}

.material-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.material-details div {
  padding: 14px 15px;
  border: 1px solid rgba(35, 20, 20, 0.09);
  border-radius: 14px;
  background: #fff;
}

.material-details dt {
  color: var(--muted-dark);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.material-details dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 650;
}

.completion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #eadfda;
  border-radius: 16px;
  background: var(--paper-soft);
}

.completion.is-ready {
  border-color: #bce8d3;
  background: var(--success-soft);
}

.completion__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #765d57;
  background: #ebe1dc;
}

.completion.is-ready .completion__icon {
  color: #0f4b36;
  background: rgba(85, 201, 148, 0.28);
}

.completion__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.completion__copy strong {
  display: block;
  font-size: 14px;
}

.completion__copy p {
  margin: 3px 0 0;
  color: var(--muted-dark);
  font-size: 12px;
}

.completion__value {
  min-width: 44px;
  color: #7c5e55;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.completion.is-ready .completion__value {
  color: #176845;
}

.viewer__footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid rgba(35, 20, 20, 0.09);
  background: rgba(255, 255, 255, 0.94);
}

.viewer__footer .button--secondary {
  color: var(--text-dark);
  border-color: rgba(35, 20, 20, 0.14);
  background: transparent;
}

.toast {
  position: fixed;
  z-index: 140;
  left: 50%;
  bottom: 26px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: white;
  background: rgba(20, 7, 8, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, 20px);
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  padding: 16px;
  color: white;
  background: #7a1e26;
  text-align: center;
}


.viewer-tabpanel h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.qu-title {
  font-weight: normal;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .material-card:hover:not([aria-disabled="true"]) .material-card__visual:not(.material-card__visual--infographic)::after,
  .material-card:focus-visible:not([aria-disabled="true"]) .material-card__visual:not(.material-card__visual--infographic)::after {
    animation: spin 8s linear infinite;
  }
}

@keyframes chapterIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wave {
  from {
    transform: scaleY(0.55);
    opacity: 0.55;
  }
  to {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

@media (max-width: 1067px) {
  .chapter__items {
    gap: 18px;
  }

  .route-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .route-item:not(:last-child)::before {
    left: 28px;
    height: calc(100% + 18px);
    transform: none;
  }

  .route-item__node {
    grid-column: 1;
    width: 54px;
    height: 54px;
  }

  .route-item__node-core {
    width: 38px;
    height: 38px;
  }

  .route-item--left .material-card,
  .route-item--right .material-card {
    grid-column: 2;
  }

  .route-item--left .route-item__connector,
  .route-item--right .route-item__connector {
    left: 52px;
    width: 16px;
    background: linear-gradient(90deg, rgba(245, 155, 39, 0.42), rgba(245, 155, 39, 0.15));
  }

  .route-item--left .route-item__connector::after,
  .route-item--right .route-item__connector::after {
    right: -2px;
    left: auto;
  }
}

@media (max-width: 1040px) {
  .route-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-step {
    min-height: 194px;
  }

  .chapter-pagination {
    grid-template-columns: minmax(130px, 1fr) minmax(220px, 1.2fr) minmax(130px, 1fr);
  }

  .material-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .material-card__body {
    padding: 20px;
  }

  .material-card h3 {
    font-size: 17px;
  }
}

@media (max-width: 820px) {
  .program__container {
    width: min(calc(100% - 28px), var(--container));
    padding-top: 42px;
  }

  .chapter__header {
    margin-left: 0;
  }

  .route-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .route-item:not(:last-child)::before {
    left: 28px;
    transform: none;
  }

  .route-item__node {
    grid-column: 1;
    width: 54px;
    height: 54px;
  }

  .route-item__node-core {
    width: 38px;
    height: 38px;
  }

  .route-item--left .material-card,
  .route-item--right .material-card {
    grid-column: 2;
  }

  .route-item--left .route-item__connector,
  .route-item--right .route-item__connector {
    left: 52px;
    width: 16px;
    background: linear-gradient(90deg, rgba(245, 155, 39, 0.42), rgba(245, 155, 39, 0.15));
  }

  .route-item--left .route-item__connector::after,
  .route-item--right .route-item__connector::after {
    right: -2px;
    left: auto;
  }

  .material-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .route-drawer {
    grid-template-columns: 1fr;
  }

  .route-drawer__backdrop {
    grid-column: 1;
    grid-row: 1;
  }

  .route-drawer__panel {
    grid-column: 1;
    grid-row: 1;
    width: min(92%, 470px);
    margin-left: auto;
  }

  .viewer {
    padding: 0;
  }

  .viewer__panel {
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .viewer__article {
    padding: 28px 22px 30px;
  }

  .viewer__footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 991.98px) {
  .route-hero__brand {
    width: 585px;
    flex-shrink: 0;
  }
}

@media (max-width: 620px) {
  .material-card__visual-image:not(.material-card__visual-image--cover) {
    transform: none;
  }

  .program::before,
  .program__background-video {
    width: calc(100% - 22px);
  }

  .program__background-video {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 3%, #000 6.5%, #000 93.5%, rgba(0, 0, 0, 0.72) 97%, transparent 100%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 3%, #000 6%, #000 88%, rgba(0, 0, 0, 0.7) 94%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 3%, #000 6.5%, #000 93.5%, rgba(0, 0, 0, 0.72) 97%, transparent 100%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 3%, #000 6%, #000 88%, rgba(0, 0, 0, 0.7) 94%, transparent 100%);
  }

  .program::before {
    -webkit-mask-image:
      linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.58) 3%, transparent 7%, transparent 93%, rgba(0, 0, 0, 0.58) 97%, #000 100%), linear-gradient(180deg, #000 0%, transparent 6%, transparent 86%, rgba(0, 0, 0, 0.55) 93%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.58) 3%, transparent 7%, transparent 93%, rgba(0, 0, 0, 0.58) 97%, #000 100%), linear-gradient(180deg, #000 0%, transparent 6%, transparent 86%, rgba(0, 0, 0, 0.55) 93%, #000 100%);
  }

  .program__container {
    width: min(calc(100% - 22px), var(--container));
    padding-bottom: 72px;
  }

  .route-section::before {
    bottom: -72px;
  }

  .route-hero {
    gap: 26px;
    min-height: 0;
  }

  .route-hero__brand {
    width: min(100%, 585px);
    margin-top: 8px;
    align-self: center;
    transform: none;
  }

  .route-hero__lead {
    font-size: 16px;
  }

  .route-hero__actions,
  .finish__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-hero__actions .button,
  .finish__actions .button {
    width: 100%;
  }

  .progress-panel {
    top: 8px;
    width: calc(100% - 22px);
    min-height: 52px;
    margin-top: 0;
    padding: 8px 14px 12px;
    border-radius: 12px;
  }

  .progress-panel__head {
    gap: 18px;
  }

  .progress-panel__login {
    min-width: 70px;
    min-height: 32px;
    padding: 7px 11px;
  }

  .chapter-selector {
    margin: 28px 0 50px;
  }

  .chapter-selector__heading {
    margin-bottom: 16px;
  }

  .route-summary {
    display: flex;
    gap: 12px;
    margin: 0 -2px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
  }

  .summary-step {
    min-width: min(84vw, 310px);
    min-height: 196px;
    scroll-snap-align: start;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .chapter {
    padding-top: 12px;
  }

  .chapter__header {
    max-width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 17px;
  }

  .chapter__copy strong {
    white-space: normal;
  }

  .chapter__status {
    display: none;
  }

  .route-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .route-item:not(:last-child)::before {
    left: 24px;
  }

  .route-item__node {
    width: 46px;
    height: 46px;
  }

  .route-item__node-core {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .route-item__node::before {
    inset: 4px;
  }

  .route-item--left .route-item__connector,
  .route-item--right .route-item__connector {
    left: 44px;
    width: 14px;
  }

  .chapter-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-pagination__current {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 66px;
  }

  .chapter-pagination__button {
    grid-row: 2;
    min-height: 54px;
  }

  .chapter-pagination__button--next {
    justify-content: flex-end;
  }

  .material-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .material-card.material-card--wide-visual {
    grid-template-columns: 1fr;
  }

  .material-card__visual {
    min-height: 145px;
  }

  .material-card__visual--with-image {
    min-height: 170px;
  }

  .material-card__visual::before {
    width: 96px;
    height: 96px;
    left: calc(50% - 48px);
    top: 17px;
  }

  .material-card__visual::after {
    width: 58px;
    height: 58px;
    left: calc(50% - 29px);
    top: 36px;
  }

  .material-card__code {
    display: none;
  }

  .material-card__body {
    min-height: 205px;
  }

  .material-card h3 {
    font-size: 18px;
  }

  .material-card__footer {
    align-items: center;
  }

  .finish {
    padding: 32px 20px;
  }

  .viewer__header {
    padding: 13px 14px;
  }

  .viewer__progress-track {
    width: 120px;
  }

  .viewer__article {
    padding: 24px 16px 26px;
  }

  .infographic-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .info-step {
    min-height: 142px;
  }

  .material-details {
    grid-template-columns: 1fr;
  }

  .completion {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .completion__value {
    grid-column: 2;
    text-align: left;
  }

  .viewer__footer {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 12px;
  }

  .viewer__footer .button {
    min-height: 48px;
    padding: 0 14px;
  }

  .viewer__footer .button--primary span {
    font-size: 13px;
  }

  .route-drawer__panel {
    width: 100%;
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
