:root {
  --ink: #3c5668;
  --orange: #ff4e25;
  --navy: #0e3447;
  --slate: #546f81;
  --soft: #f5f5f5;
}

body { background: #fff; color: var(--ink); overflow-x: hidden; }

.wrap_narrow { max-width: 960px; }

/* Размеры как у классов Tilda: t-title_xs 42, t-descr_xl 26, t-name_md 22, t-descr_sm 20 и т. д. (заголовки 700) */
.h2 {
  margin-bottom: 30px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.23;
  color: var(--ink);
}
.h2_center { text-align: center; }

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  padding: 0 48px;
  border-radius: 60px;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-orange:hover { background: #e63e17; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 78, 37, .35); }
.btn-orange_sm { min-height: 64px; padding: 0 36px; font-size: 18px; }

/* Первый экран */
/* overflow: «кибер»-слой выступает вправо от фото; без обрезки на телефоне страница уезжает вбок */
.hero { padding: 30px 0 0; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  min-height: 0;
}
.hero__text { position: relative; z-index: 2; padding: 20px 0 80px; }
.hero__title {
  width: 660px; /* шире колонки: как на Tilda, строка «…за 4 недели» помещается целиком */
  max-width: none;
  margin-bottom: 34px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.hero__title span { color: var(--orange); }
.hero__lead { max-width: 462px; margin-bottom: 44px; font-size: 24px; font-weight: 500; line-height: 1.15; }
/* Рамка ровно по размеру фото: «кибер»-слой позиционируется в процентах от неё,
   поэтому совпадает при любой ширине экрана (на Tilda: смещение 331×−30 при фото 624×680) */
.hero__media { position: relative; align-self: end; width: 624px; max-width: none; margin-left: -60px; }
.hero__photo { width: 100%; }
.hero__photo-2 {
  position: absolute;
  top: -4.41%;
  left: 53.04%;
  width: 77.72%;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.hero_repeat { padding-top: 100px; }

/* Три карточки */
.cards { padding: 50px 0 60px; }
.cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 335px;
  padding: 46px 50px 30px 60px;
  border-radius: 50px;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}
.card img { width: 260px; max-width: 100%; align-self: center; }
.card_orange { background: var(--orange); }
.card_dark { background: var(--navy); }
.card_slate { background: var(--slate); }

/* Доступы */
.access { padding: 90px 0; }
.access__box {
  max-width: 1080px;
  margin: 0 auto;
  padding: 70px 70px;
  border-radius: 50px;
  background: var(--soft);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.17;
}
.access__box em { font-style: normal; color: var(--orange); }

/* После курса */
.after { padding: 30px 0 120px; }
.after__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.after__text .h2 { font-size: 46px; }
.after__text p { margin-bottom: 20px; font-size: 26px; line-height: 1.5; }
.after__text .btn-orange { margin-top: 20px; }
.after__cards { display: grid; gap: 24px; }
.note {
  padding: 40px 30px;
  border-radius: 50px;
  background: var(--soft);
}
/* Иконка в серо-синем круге, как в блоке t1206 */
.note__icon {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--slate);
  overflow: hidden;
}
.note__icon img { width: 100%; height: 100%; object-fit: cover; }
.note h3 { margin-bottom: 12px; font-size: 22px; font-weight: 500; line-height: 1.35; }
.note p { font-size: 20px; line-height: 1.55; color: var(--slate); }

/* Для кого */
.for { padding: 105px 0; background: var(--soft); }
.for .h2 { margin-bottom: 60px; }
.for__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.for__item img { width: 120px; margin: 0 auto 24px; }
.for__item h3 { margin: 12px 0 25px; font-size: 32px; font-weight: 700; line-height: 1.17; }
.for__item p { font-size: 18px; line-height: 1.55; }

/* Галерея во всю ширину, как на главной */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .15s linear, box-shadow .15s linear;
}
/* Как на главной: плитка увеличивается с тенью, крайние растут внутрь */
@media (hover: hover) and (min-width: 961px) {
  .gallery img:hover {
    position: relative;
    z-index: 2;
    transform: scale(1.04);
    box-shadow: 0 2px 20px 2px rgba(0, 0, 0, .45);
  }
  .gallery img:nth-child(4n+1) { transform-origin: left; }
  .gallery img:nth-child(4n+4) { transform-origin: right; }
  .gallery img:nth-child(4n+1):hover,
  .gallery img:nth-child(4n+4):hover { transform: scale(1.02); }
}
.gallery img:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

/* Даже если */
.fit { padding: 105px 0 150px; }
.fit .h2 { margin-bottom: 60px; }
.fit__list { counter-reset: fit; display: grid; gap: 40px; }
.fit__list li {
  counter-increment: fit;
  position: relative;
  padding-left: 90px;
  min-height: 56px;
}
.fit__list li::before {
  content: counter(fit);
  position: absolute;
  left: 0;
  top: -6px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
}
.fit__list b { display: block; margin-bottom: 6px; font-size: 22px; line-height: 1.35; color: var(--slate); }
.fit__list span { font-size: 20px; line-height: 1.55; }

/* Программа */
.program { padding: 90px 0 105px; background: #eee; }
.program .h2 { margin-bottom: 12px; }
.program__sub { margin-bottom: 50px; text-align: center; font-size: 26px; line-height: 1.5; }
.program__acc {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 30px;
  border-radius: 50px;
  background: #fff;
}
.program__acc summary {
  position: relative;
  padding: 30px 40px 30px 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--slate);
  cursor: pointer;
  list-style: none;
}
.program__acc summary::-webkit-details-marker { display: none; }
.program__acc summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 44px;
  font-weight: 250;
  line-height: 1;
  transition: transform .2s ease;
}
.program__acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.program__acc ul { display: grid; gap: 14px; padding-bottom: 20px; font-size: 18px; line-height: 1.5; }
.program__acc li { position: relative; padding-left: 22px; }
.program__acc li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.program__note { padding-bottom: 34px; font-size: 18px; font-weight: 600; color: var(--orange); }

/* Автор и кнопка */
.author-section { padding: 105px 0 45px; }
.author-section .author { grid-template-columns: 360px 1fr; }
.author-section .author__photo { border-radius: 50px; aspect-ratio: auto; height: 100%; }
.author-section .author__card {
  justify-content: flex-start;
  padding: 90px 60px 60px;
  border-radius: 50px;
  background: #eee;
  color: var(--ink);
}
.author__role { margin-top: 40px; font-size: 28px; font-weight: 700; line-height: 1.23; }
.author-section .author__nick { margin-top: 10px; color: var(--orange); }
.author-section .author__line { width: 50px; margin: 28px 0 36px; }
.author-section .author__text { font-size: 18px; line-height: 1.55; color: var(--slate); }
.author-section .author__text p + p { margin-top: 26px; }

/* Большая кнопка под автором (t191) */
.cta { padding: 0 20px 90px; text-align: center; }
.cta .btn-orange { min-height: 100px; padding: 0 90px; border-radius: 90px; font-size: 30px; font-weight: 600; }

/* Адаптив */
@media (max-width: 1200px) {
  .h2 { font-size: 38px; }
  .access__box, .after__text .h2 { font-size: 40px; }
  .cta .btn-orange { padding: 0 50px; font-size: 26px; }
  .author__role { font-size: 26px; }
  .after__text p, .program__sub, .program__acc summary { font-size: 24px; }
  .note h3, .fit__list b { font-size: 20px; }
  .note p, .fit__list span { font-size: 18px; }
  .for__item h3 { font-size: 30px; }
  .for__item p, .program__acc ul, .program__note { font-size: 16px; }
}

@media (max-width: 1100px) {
  .hero__media { width: 100%; margin-left: 0; }
  .card { padding: 36px 32px 26px; }
}

@media (max-width: 960px) {
  .hero__inner, .hero_repeat .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 20px 0 40px; }
  .hero__title { width: auto; max-width: 660px; }
  .author-section .author { grid-template-columns: 1fr; }
  .author-section .author__photo { height: auto; aspect-ratio: 1 / 1; }
  .hero__media { width: 100%; max-width: 520px; margin: 0 auto; }
  .cards__grid, .for__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .after__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .access__box { padding: 44px 36px; font-size: 26px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 30px; }
  .hero__title { font-size: 30px; }
  .hero__lead { font-size: 19px; }
  .btn-orange { min-height: 72px; padding: 0 28px; font-size: 18px; width: 100%; }
  .h2, .after__text .h2 { font-size: 30px; }
  .after__text p, .program__sub, .program__acc summary { font-size: 22px; line-height: 1.4; }
  .note h3, .fit__list b { font-size: 18px; }
  .note p, .fit__list span { font-size: 16px; line-height: 1.45; }
  .for__item h3 { font-size: 26px; }
  .for__item p, .program__acc ul, .program__note { font-size: 14px; line-height: 1.45; }
  .cta .btn-orange { min-height: 76px; padding: 0 24px; font-size: 19px; }
  .author-section .author__card { padding: 36px 24px; border-radius: 34px; }
  .author-section .author__photo { border-radius: 34px; }
  .author__role { margin-top: 20px; font-size: 22px; }
  .card { min-height: 0; border-radius: 34px; }
  .access { padding: 50px 0; }
  .access__box { padding: 32px 24px; border-radius: 30px; font-size: 21px; }
  .after { padding-bottom: 70px; }
  .note { padding: 26px 24px; }
  .for, .fit, .program, .author-section { padding-top: 70px; padding-bottom: 70px; }
  .fit__list li { padding-left: 70px; }
  .fit__list li::before { width: 46px; height: 46px; font-size: 18px; }
  .program__acc { padding: 0 22px; }
  .program__acc summary { font-size: 20px; }
}
