/* ─────────────────────────────────────────────────────────────
   Разработчик сайтов — секции страницы.
   Язык тот же, что в шапке и первом экране: белый фон, серая
   плашка #f2f2f4, синий #007aff, скругления 24, Inter.
   ───────────────────────────────────────────────────────────── */

/* ── Работодатели: два скриншота с текстом ── */
.employers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.employers__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px 34px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.employers__text {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 28px;
}

.employers__shot {
  margin-top: auto;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  box-shadow: 0 -2px 30px rgba(20, 20, 20, 0.08);
}

/* ── Крупная мысль курса с аватаром ── */
.relevance__wrap {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 34px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
}

.relevance__avatar img {
  width: 168px;
  border-radius: 50%;
}

.relevance__title {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.relevance__title span {
  color: var(--accent);
}

.relevance__desc {
  font-size: 16px;
  color: var(--muted);
}

.relevance__desc a,
.link-accent {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 122, 255, 0.3);
}

.relevance__desc a:hover,
.link-accent:hover {
  border-bottom-color: var(--accent);
}

/* ── Три сценария заработка ── */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.skills__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.skills__card--accent {
  /* среднюю карточку цветом не выделяем — общее правило по всем страницам,
     см. «ПРАВИЛА ОФОРМЛЕНИЯ» в CLAUDE-MEMORY.md */
  background: var(--surface);
  color: inherit;
}

.skills__name {
  font-size: 24px;
  margin-bottom: 8px;
}

.skills__income {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--accent);
  margin-bottom: 24px;
}

.skills__card--accent .skills__income {
  color: #ffffff;
}

.skills__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--muted);
}

.skills__card--accent .skills__list {
  color: rgba(255, 255, 255, 0.86);
}

.skills__list li {
  padding-left: 20px;
  position: relative;
}

.skills__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.skills__card--accent .skills__list li::before {
  background: var(--accent);
}

/* ── Инверсная плашка с мыслью ── */
.quote {
  padding: 0 0 84px;
}

.quote__box {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}

.quote__text {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.22;
  max-width: 24ch;
  position: relative;
  z-index: 1;
}

.quote__plus {
  position: absolute;
  right: -20px;
  bottom: -90px;
  font-size: 320px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.07);
  user-select: none;
  pointer-events: none;
}

/* ── Программа: аккордеон модулей ── */
.program__calendar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 50px;
  padding: 10px 18px 10px 12px;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 40px;
}

.program__calendar img {
  width: 22px;
}

.module {
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: 8px;
  overflow: hidden;
}

.module__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  padding: 28px 32px;
  cursor: pointer;
}

.module__title {
  font-size: clamp(20px, 2vw, 26px);
}

.module__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.module__count {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

/* плюс-минус у модулей и вопросов — один и тот же элемент */
.toggle {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  transition: background-color 0.25s;
}

.toggle::before,
.toggle::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.toggle::after {
  transform: rotate(90deg);
  transition: transform 0.3s var(--step), opacity 0.25s;
}

.is-open > .module__head .toggle,
.is-open > .faq__head .toggle {
  background: var(--accent);
}

.is-open > .module__head .toggle::before,
.is-open > .module__head .toggle::after,
.is-open > .faq__head .toggle::before,
.is-open > .faq__head .toggle::after {
  background: #ffffff;
}

.is-open > .module__head .toggle::after,
.is-open > .faq__head .toggle::after {
  transform: rotate(0deg);
  opacity: 0;
}

.module__body {
  display: none;
  padding: 0 32px 32px;
}

.module.is-open .module__body {
  display: block;
}

/* темы раздела: две колонки карточек */
.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.topic {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.topic__title {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.topic__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.topic__list li {
  padding-left: 16px;
  position: relative;
}

.topic__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* рассказ автора: длинный, поэтому под раскрывашкой */
.story {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  overflow: hidden;
}

.story__toggle {
  list-style: none;
  cursor: pointer;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.story__toggle::-webkit-details-marker {
  display: none;
}

.story__toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.3s var(--step);
}

.story[open] .story__toggle::after {
  transform: rotate(180deg);
}

.story__text {
  padding: 0 32px 30px;
  max-width: 76ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.story__text p {
  margin-bottom: 1em;
}

/* ── Как проходит обучение ── */
.format__item {
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 44px 48px;
  margin-bottom: 8px;
  overflow: hidden;
}

.format__item-title {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: 18px;
  max-width: 20ch;
}

.format__item-text {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 68ch;
}

.format__split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.format__tasks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 26px;
}

.format__task {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.format__task img {
  width: 40px;
  flex: 0 0 auto;
}

.format__task-title {
  font-size: 15px;
  margin-bottom: 2px;
}

.format__task-desc {
  font-size: 13.5px;
  color: var(--muted);
}

.format__video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.video-tile {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  text-align: left;
  min-height: 220px;
  font-family: inherit;
}

.video-tile img.video-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--step);
}

.video-tile:hover img.video-tile__bg {
  transform: scale(1.04);
}

/* затемнение поверх кадра: без него подпись теряется на светлом скриншоте */
.video-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.video-tile__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  height: 100%;
  min-height: 220px;
  padding: 24px;
  color: #ffffff;
}

.video-tile__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--step);
}

.video-tile:hover .video-tile__play {
  transform: scale(1.08);
}

.video-tile__play img {
  width: 15px;
}

.video-tile__label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 24ch;
}

.video-tile__note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.diploms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.diplom {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--step);
}

.diplom:hover {
  transform: translateY(-3px);
}

.diplom__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffffff;
}

.diplom__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diplom__title {
  font-size: 20px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.diplom__title::after {
  content: "→";
  color: var(--accent);
  font-size: 20px;
  transition: transform 0.25s var(--step);
}

.diplom:hover .diplom__title::after {
  transform: translateX(4px);
}

/* ── Синяя полоса с призывом ── */
.cta-band {
  padding: 0 0 84px;
}

.cta-band__box {
  background: linear-gradient(135deg, #0f3c8f 0%, #1a63d6 58%, #2f86f5 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.cta-band__title {
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 18px;
}

.cta-band__text {
  font-size: 16.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 28px;
}

/* ── Что будет после курса ── */
.result__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.result__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 280px;
}

/* иллюстрации маленькие по природе (около 200×230), не растягиваем */
.result__card img {
  width: auto;
  max-height: 200px;
  margin: auto auto 0 0;
}

.result__text {
  font-size: 17px;
  line-height: 1.4;
  color: var(--muted);
}

.result__text strong {
  color: var(--ink);
  font-weight: 600;
}

.certificate {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin-top: 8px;
}

.certificate__title {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 16px;
}

.certificate__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Почему учиться легко ── */
.advantage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin-bottom: 8px;
}

.advantage:nth-child(even) .advantage__media {
  order: -1;
}

.advantage__title {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 16px;
}

.advantage__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.advantage__media img {
  margin: 0 auto;
  max-height: 300px;
  width: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.stats__item {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.stats__item:last-child {
  background: var(--accent);
}

.stats__number {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  flex: 0 0 auto;
}

.stats__label {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
}

/* ── Кейсы и отзывы ── */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.reviews__grid .video-tile {
  min-height: 300px;
}

.reviews__grid .video-tile__body {
  min-height: 300px;
}

/* ── Тарифы ── */
.pay__head {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 44px;
}

.pay__note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.pay__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
}

.tariff {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.tariff--accent {
  background: linear-gradient(135deg, #0f3c8f 0%, #1a63d6 58%, #2f86f5 100%);
  color: #ffffff;
}

.tariff__name {
  font-size: 26px;
  margin-bottom: 4px;
}

.tariff__desc {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.tariff--accent .tariff__desc {
  color: rgba(255, 255, 255, 0.78);
}

.tariff__price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tariff__old {
  font-size: 16px;
  color: var(--soft);
  text-decoration: line-through;
  margin: 0 0 4px;
}

.tariff--accent .tariff__old {
  color: rgba(255, 255, 255, 0.6);
}

.tariff__monthly {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 24px;
}

.tariff--accent .tariff__monthly {
  color: rgba(255, 255, 255, 0.8);
}

.tariff__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.tariff__deferred {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
}

.tariff--accent .tariff__deferred {
  color: #ffffff;
}

.tariff__list {
  list-style: none;
  margin: auto 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

.tariff--accent .tariff__list {
  border-top-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.88);
}

.tariff__list li {
  padding-left: 26px;
  position: relative;
}

.tariff__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.tariff--accent .tariff__list li::before {
  background-color: rgba(255, 255, 255, 0.28);
}

/* ── Вопросы ── */
.faq__item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq__head {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq__q {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.faq__body {
  display: none;
  padding: 0 32px 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 76ch;
}

.faq__item.is-open .faq__body {
  display: block;
}

.faq__body a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Подвал ── */
.footer {
  background: var(--surface);
  padding: 56px 0 40px;
  margin-top: 8px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.footer__label {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 14px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.footer__list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 14px;
  color: var(--soft);
}

.footer__social {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--step);
}

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

.footer__social img {
  width: 18px;
}

/* ── Модалки ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 16, 26, 0.55);
  backdrop-filter: blur(6px);
}

.modal-overlay.is-active {
  display: flex;
}

.modal {
  display: none;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.modal.is-active {
  display: block;
}

.modal--video {
  max-width: 900px;
  padding: 0;
  background: #000000;
  overflow: hidden;
  line-height: 0;
}

.modal--video iframe,
.modal--video img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  z-index: 3;
  font-size: 0;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__title {
  font-size: 24px;
  margin-bottom: 12px;
  padding-right: 40px;
}

.modal__price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--surface);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.modal__price span {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}

.modal__lead {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 22px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-form input[type="email"],
.modal-form input[type="text"],
.modal-form input[type="tel"] {
  border: 1px solid #e2e2e6;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.modal-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.14);
}

.modal-form button[type="submit"] {
  margin-top: 6px;
  border: 0;
  border-radius: 50px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 30px;
  cursor: pointer;
  transition: background-color 0.25s;
}

.modal-form button[type="submit"]:hover {
  background: var(--accent-dark);
}

.modal__legal {
  font-size: 13px;
  line-height: 1.45;
  color: var(--soft);
  margin-top: 16px;
}

.modal__legal a {
  color: var(--muted);
}

/* ── Адаптив ── */
@media (max-width: 1080px) {
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .employers__grid,
  .skills__grid,
  .result__grid,
  .pay__grid,
  .diploms,
  .stats {
    grid-template-columns: 1fr;
  }
  .relevance__wrap,
  .format__split,
  .cta-band__box,
  .certificate,
  .advantage,
  .pay__head,
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .advantage:nth-child(even) .advantage__media {
    order: 0;
  }
  .relevance__wrap {
    text-align: center;
    justify-items: center;
  }
  .topics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .quote,
  .cta-band {
    padding-bottom: 56px;
  }
  .relevance__wrap,
  .format__item,
  .cta-band__box,
  .certificate,
  .advantage,
  .quote__box {
    padding: 26px 22px;
    border-radius: 20px;
  }
  .module__head,
  .faq__head {
    padding: 22px;
  }
  .module__body {
    padding: 0 14px 18px;
  }
  .faq__body {
    padding: 0 22px 22px;
  }
  .format__tasks,
  .format__video-grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }
  .stats__item {
    padding: 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .modal {
    padding: 28px 22px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ── Три карточки: чему научишься, кому подойдёт ── */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.card3 {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.card3--accent {
  background: linear-gradient(135deg, #0f3c8f 0%, #1a63d6 58%, #2f86f5 100%);
  color: #ffffff;
}

.card3__title {
  font-size: 22px;
  margin-bottom: 12px;
}

.card3__text {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
}

.card3--accent .card3__text {
  color: rgba(255, 255, 255, 0.88);
}

/* ── Как проходит курс: пять шагов ── */
.steps {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: start;
}

.step:first-child {
  grid-column: 1 / -1;
}

.step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

.step__title {
  font-size: 20px;
  margin-bottom: 8px;
}

.step__text {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Механика кабинета ── */
.cabinet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cabinet__item {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet__item b {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.cabinet__item span {
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.cta-band__label {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .cards3,
  .steps,
  .cabinet {
    grid-template-columns: 1fr;
  }
  .step:first-child {
    grid-column: auto;
  }
}


/* ── Крупное утверждение вместо блока про работодателей ── */
.claim {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: end;
}

.claim__title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
}

.claim__text {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* кубок в полосе про главный приз */
.cta-band__cup svg {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(10, 30, 70, 0.35));
}

@media (max-width: 900px) {
  .claim {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
}


/* ── Главный приз: тёмная плашка с кубком, как на экспресс-курсе ── */
.prize {
  padding: 0 0 84px;
}

.prize__box {
  position: relative;
  background: radial-gradient(120% 140% at 12% 0%, #2a2418 0%, #131313 55%, #0d0d0d 100%);
  border-radius: var(--radius-lg);
  padding: 44px 52px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: 0 0 70px rgba(247, 196, 60, 0.16);
}

.prize__cup {
  font-size: 74px;
  line-height: 1;
  filter: drop-shadow(0 12px 26px rgba(247, 196, 60, 0.35));
}

.prize__title {
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 14px;
}

.prize__title span {
  color: #f5c542;
}

.prize__text {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 68ch;
}

.prize__btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  padding: 16px 30px;
  font-weight: 600;
  font-size: 16px;
  color: #1a1408;
  text-decoration: none;
  background: linear-gradient(135deg, #ffd45e 0%, #f0b93a 100%);
  box-shadow: 0 12px 34px rgba(240, 185, 58, 0.35);
  transition: transform 0.25s var(--step), box-shadow 0.25s;
  white-space: nowrap;
}

.prize__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(240, 185, 58, 0.45);
}

/* ── Демо кабинета ── */
.cabinet-demo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #14141a;
  box-shadow: 0 30px 70px rgba(15, 20, 40, 0.22);
}

.cabinet-demo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #1d1d25;
}

.cabinet-demo__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a46;
}

.cabinet-demo__bar span:first-child { background: #ff5f57; }
.cabinet-demo__bar span:nth-child(2) { background: #febc2e; }
.cabinet-demo__bar span:nth-child(3) { background: #28c840; }

.cabinet-demo__bar em {
  margin-left: 14px;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.cabinet-demo__frame {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
}

/* переключатели страниц кабинета */
.cabinet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cabinet-tab {
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border-radius: 50px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.cabinet-tab:hover {
  background: #e6e6ea;
}

.cabinet-tab.is-active {
  background: var(--accent);
  color: #ffffff;
}

.cabinet-demo__note {
  font-size: 14px;
  color: var(--soft);
  margin-top: 14px;
}

@media (max-width: 900px) {
  .prize__box {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 24px;
  }
  .cabinet-demo__frame {
    height: 520px;
  }
}


/* ── Бенто: механики курса ── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bento__item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__item--dark {
  background: var(--ink);
  color: #ffffff;
}

.bento__item--accent {
  background: linear-gradient(135deg, #0f3c8f 0%, #1a63d6 58%, #2f86f5 100%);
  color: #ffffff;
}

.bento__item--prize {
  background: radial-gradient(120% 140% at 12% 0%, #2a2418 0%, #131313 60%, #0d0d0d 100%);
  color: #ffffff;
}

.bento__cup {
  font-size: 38px;
  line-height: 1;
}

.bento__title {
  font-size: 22px;
  line-height: 1.15;
}

.bento__text {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.bento__item--dark .bento__text,
.bento__item--accent .bento__text,
.bento__item--prize .bento__text {
  color: rgba(255, 255, 255, 0.78);
}

.bento__item--prize .bento__title {
  color: #f5c542;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__item--wide {
    grid-column: auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   Тарифы, 06.09.2026: карточки выравниваем по рядам, иначе
   цена в первой съезжает вниз из-за двухстрочного заголовка.
   ───────────────────────────────────────────────────────────── */
@supports (grid-template-rows: subgrid) {
  .pay__grid {
    grid-template-rows: auto auto auto auto auto auto 1fr;
  }
  .tariff {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
  }
  /* список больше не прижимаем к низу — иначе его верх пляшет по карточкам */
  .tariff__list {
    margin-top: 0;
  }
}

/* пустой старой цены нет — держим ряд, чтобы карточки не разъезжались */
.tariff__old--empty {
  margin: 0 0 4px;
  height: 0;
}

/* чего в тарифе нет: серый крестик и зачёркнутый текст вместо «Без …» */
.tariff__list li.is-off {
  color: var(--soft);
  text-decoration: line-through;
  text-decoration-color: rgba(20, 20, 20, 0.32);
}

.tariff__list li.is-off::before {
  background: rgba(20, 20, 20, 0.09) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23989898' stroke-width='2' stroke-linecap='round' d='M3.6 3.6l4.8 4.8M8.4 3.6l-4.8 4.8'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ─────────────────────────────────────────────────────────────
   Кабинет в рамке, 06.09.2026: iframe рендерим в десктопные
   1440 px и ужимаем целиком. Раньше страница кабинета верстала
   себя под 1112 px и выглядела сплющенной.
   ───────────────────────────────────────────────────────────── */
.cabinet-demo__viewport {
  position: relative;
  overflow: hidden;
  height: 700px;
}

.cabinet-demo__frame {
  width: 1440px;
  height: 940px;
  border: 0;
  display: block;
  transform-origin: 0 0;
}

/* дырка под заголовком: до вкладок хватает короткого отступа */
#cabinet .section__lead {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .cabinet-demo__viewport {
    height: 460px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Шапка блока оплаты, 06.09.2026: вместо простыни справа —
   три коротких способа оплаты одной полосой под заголовком.
   ───────────────────────────────────────────────────────────── */
.pay__head {
  display: block;
  margin-bottom: 26px;
}

.pay__head .section__lead {
  margin-bottom: 0;
}

.pay__ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 30px;
  margin-bottom: 40px;
}

/* без подложки — иначе плашки читаются как ещё один ряд тарифов */
.pay-way {
  border-top: 1px solid rgba(20, 20, 20, 0.14);
  padding: 16px 24px 0 0;
}

.pay-way__label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.pay-way__text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pay__ways {
    grid-template-columns: 1fr;
  }
}

/* зачёркнутая старая цена в попапе — рядом с текущей, тем же ритмом,
   что и на карточке тарифа */
.modal__price s {
  color: var(--soft);
  text-decoration-thickness: 1px;
  margin-right: 2px;
}
