

/* Start:/local/components/porotherm/courses/templates/.default/style.css?179499085297096*/
/* =========================================================
   Образовательный центр Porotherm (porotherm:courses).
   Стиль — как /promo/: Inter, белые плитки на фоне страницы #f8f9fb, без обводок,
   скругление не больше 10 px, заголовки 500, кнопки прописными, акцент #bb0110.
   Прогресс и текущий урок — красный, пройденное — тёмный с галочкой.
   Классы ptc-* внутри текста урока — docs/courses-import (детальный текст инфоблока).
   ========================================================= */

.ptc {
  --ptc-text: #1e1d22;
  --ptc-body: #2d2d2d;
  --ptc-muted: #616776;
  --ptc-surface: #ffffff;
  --ptc-soft: #f2f3f6;
  --ptc-soft-hover: #e9ebf0;
  --ptc-line: #e6e8ec;
  --ptc-brand: #bb0110;
  --ptc-brand-hover: #9b000d;
  --ptc-brand-dark: #7d000b;
  --ptc-brand-soft: #fbeced;
  --ptc-ink: #1e1d22;
  --ptc-ok: #1d7f46;
  --ptc-ok-soft: #e6f4ec;
  --ptc-radius: 10px;
  --ptc-gap: 20px;
  --ptc-sticky-top: 96px;

  padding-block: 4px 72px;
  color: var(--ptc-text);
  font-size: 16px;
  line-height: 1.6;
}

/* H1 выводит шаблон сайта; видимый заголовок рисует компонент (баннер, карточка курса, урок) */
.intec-template .intec-template-title.intec-template-title {
  margin-bottom: 0;
}

.intec-template .intec-template-title.intec-template-title h1 {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* Сбросы без веса: правила блоков ниже их перекрывают */
:where(.ptc) :where(h1, h2, h3, p, figure, blockquote) {
  margin: 0;
}

:where(.ptc) :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Шаблон Intec задаёт тегам: h1–h6 { margin: 35px 0 25px }, p { margin-bottom: 20px },
   ul, ol { margin-bottom: 20px }, ul > li { padding-left: 1.43em; margin-bottom: 2px },
   blockquote { margin: 30px 0; padding } с полосой в ::before, hr { margin: 20px 0 }, a:hover { color: #23527c }.
   Сброс с весом (0,0,2–3) перебивает эти правила, но уступает любому классу компонента */
html body :where(.ptc) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, hr) {
  margin: 0;
}

html body :where(.ptc) :where(blockquote) {
  padding: 0;
}

html body :where(.ptc) :where(blockquote)::before {
  content: none;
}

html body :where(.ptc) :where(h1, h2, h3, h4, h5, h6) {
  line-height: 1.2;
}

/* a:hover шаблона весит (0,1,1) — здесь (0,1,3): выше него, ниже hover-правил компонента */
html body :where(.ptc) a:hover,
html body :where(.ptc) a:focus,
html body :where(.ptc) a:active {
  color: inherit;
}

html body :where(.ptc) :where(ul, ol) {
  margin: 0;
  padding: 0;
}

html body :where(.ptc) :where(ul, ol) > li {
  margin: 0;
  padding: 0;
  list-style: inherit;
}

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

.ptc a:focus-visible,
.ptc button:focus-visible,
.ptc summary:focus-visible,
.ptc input:focus-visible + .ptc-option__mark {
  outline: 2px solid var(--ptc-brand);
  outline-offset: 2px;
}

.ptc [hidden] {
  display: none !important;
}

/* Шаблон Intec ставит маркеры и нумерацию списков через li::before */
.ptc ul > li::before,
.ptc ol > li::before {
  content: none !important;
  display: none !important;
}

/* ---------- Значки (маски из wc-icons) ---------- */
.ptc-icon {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--ptc-mask) center / contain no-repeat;
  mask: var(--ptc-mask) center / contain no-repeat;
}

.ptc-icon--arrow { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Arrow/Arrow%20Right%201.svg"); }
.ptc-icon--back { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Arrow/Arrow%20Left%201.svg"); }
.ptc-icon--external { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Arrow/Arrow%20Top%20Right%201.svg"); }
.ptc-icon--clock { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Calendar/Clock.svg"); }
.ptc-icon--play { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Player/Play%20Circle.svg"); }
.ptc-icon--play-solid { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Player/Player%20-%20%20Play.svg"); }
.ptc-icon--book { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Files/File%20Document.svg"); }
.ptc-icon--gift { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/General/Gift.svg"); }
.ptc-icon--globe { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Navigation/Globe.svg"); }
.ptc-icon--cap { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/General/graduation-cap.svg"); }
.ptc-icon--check { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Interface/Check.svg"); }
.ptc-icon--trophy { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/General/Trophy.svg"); }
.ptc-icon--star { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/General/Star.svg"); }
.ptc-icon--lock { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/General/Lock.svg"); }
.ptc-icon--question { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Interface/Question%20Mark%20Circle.svg"); }
.ptc-icon--download { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Interface/Download.svg"); }
.ptc-icon--close { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/Menu/Close_MD.svg"); }
.ptc-icon--eye { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/General/Eye.svg"); }
.ptc-icon--layers { --ptc-mask: url("/local/lib/Warmcontour/wc-icons/General/Category%202.svg"); }

/* ---------- Кнопки (как на /promo/) ---------- */
.ptc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ptc-surface);
  color: var(--ptc-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ptc-button .ptc-icon {
  width: 16px;
  height: 16px;
}

.ptc .ptc-button--primary {
  border-color: var(--ptc-brand);
  background: var(--ptc-brand);
  color: #ffffff;
}

.ptc .ptc-button--primary:hover {
  border-color: var(--ptc-brand-hover);
  background: var(--ptc-brand-hover);
}

.ptc .ptc-button--outline {
  border-color: var(--ptc-brand);
  background: transparent;
  color: var(--ptc-text);
}

.ptc .ptc-button--outline:hover {
  background: var(--ptc-brand);
  color: #ffffff;
}

.ptc .ptc-button--light {
  background: #ffffff;
  color: var(--ptc-text);
}

.ptc .ptc-button--light:hover {
  background: var(--ptc-soft);
}

.ptc-button--large {
  min-height: 56px;
  padding: 0 32px;
}

/* ---------- Общие куски ---------- */
.ptc-section {
  margin-top: 64px;
}

.ptc-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 24px;
}

.ptc-section__title {
  color: var(--ptc-text);
  font-size: 42px;
  line-height: 1.2;
  font-weight: 500;
}

.ptc-section > .ptc-section__title {
  margin-bottom: 24px;
}

.ptc-section__title--small {
  font-size: 30px;
}

.ptc-section__text {
  color: var(--ptc-muted);
}

.ptc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ptc-soft);
  color: var(--ptc-text);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ptc-section__head .ptc-chip,
.ptc-lesson__chips .ptc-chip {
  background: var(--ptc-surface);
}

.ptc-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--ptc-ink);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.ptc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ptc-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--ptc-soft);
  color: var(--ptc-body);
  font-size: 13px;
  line-height: 1.3;
}

.ptc-lesson__intro .ptc-pills li {
  background: var(--ptc-surface);
}

.ptc-pills .ptc-icon {
  width: 15px;
  height: 15px;
  color: var(--ptc-muted);
}

.ptc-progress {
  display: grid;
  gap: 8px;
}

.ptc-progress--card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.ptc-progress__bar {
  position: relative;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ptc-soft);
}

.ptc-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--ptc-brand);
  transition: width 0.5s ease;
}

.ptc-progress__percent {
  min-width: 40px;
  color: var(--ptc-text);
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}

.ptc-progress:not(.is-started) .ptc-progress__percent {
  color: var(--ptc-muted);
}

/* Кольцо прогресса: --ptc-ring — проценты */
.ptc-ring {
  position: relative;
  flex: none;
  width: 148px;
  height: 148px;
}

.ptc-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ptc-ring circle {
  fill: none;
  stroke-width: 10;
}

.ptc-ring__track {
  stroke: var(--ptc-soft);
}

.ptc-ring__value {
  stroke: var(--ptc-brand);
  stroke-linecap: round;
  stroke-dasharray: calc(var(--ptc-ring, 0) * 1) 100;
  transition: stroke-dasharray 0.6s ease;
}

/* Без прогресса скругленный конец линии рисовал бы точку */
.ptc-panel--progress:not(.is-started) .ptc-ring__value,
.ptc-pill:not(.is-started) .ptc-ring__value,
.ptc-me:not(.is-started) .ptc-ring__value {
  stroke: transparent;
}

.ptc-ring__percent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ptc-text);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.ptc-ring--small {
  width: 112px;
  height: 112px;
}

.ptc-ring--small .ptc-ring__percent {
  font-size: 26px;
}

.ptc-ring--pill {
  width: 52px;
  height: 52px;
}

.ptc-ring--pill circle {
  stroke-width: 12;
}

.ptc-ring--pill .ptc-ring__percent {
  font-size: 13px;
}

/* ---------- Центр: баннер и «Ваш прогресс» ---------- */
.ptc-dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 32px;
}

.ptc-banner {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 260px;
  padding: 48px 400px 48px 56px;
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: linear-gradient(115deg, #c3061a 0%, var(--ptc-brand) 45%, var(--ptc-brand-dark) 100%);
  color: #ffffff;
}

/* Перевязка кладки — намёк на керамические блоки */
.ptc-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='64'%3E%3Cpath d='M0 .5H96M0 32.5H96M.5 0V32M48.5 32V64' stroke='%23fff' stroke-opacity='.12' fill='none'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  pointer-events: none;
}

.ptc-banner > * {
  position: relative;
}

.ptc-banner__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ptc-banner__title {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 500;
}

.ptc-banner__text {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.88;
}

.ptc-me {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 40px 32px 0 0;
  padding: 28px 26px 26px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  box-shadow: 0 16px 40px rgba(30, 29, 34, 0.1);
  text-align: center;
}

.ptc-me__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ptc-brand-soft);
  color: var(--ptc-brand);
}

.ptc-me__icon .ptc-icon {
  width: 22px;
  height: 22px;
}

.ptc-me__title {
  font-size: 18px;
  font-weight: 500;
}

.ptc-me__count {
  color: var(--ptc-text);
  font-weight: 500;
  line-height: 1.4;
}

.ptc-me:not(.is-started) .ptc-me__count {
  color: var(--ptc-muted);
  font-size: 14px;
  font-weight: 400;
}

.ptc-me__left {
  margin-top: -8px !important;
  color: var(--ptc-muted);
  font-size: 14px;
}

.ptc-me__button {
  width: 100%;
  margin-top: 4px;
}

.ptc-facts {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.ptc-fact {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-fact__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--ptc-brand-soft);
  color: var(--ptc-brand);
}

.ptc-fact__icon .ptc-icon {
  width: 20px;
  height: 20px;
}

.ptc-fact__title {
  font-weight: 500;
  line-height: 1.3;
}

.ptc-fact__text {
  color: var(--ptc-muted);
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- Моё обучение ---------- */
.ptc-my__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr));
  gap: 12px;
}

.ptc-resume {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 24px 16px 16px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-resume__image {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.ptc-resume__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ptc-resume__course {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
}

.ptc-resume__next {
  overflow: hidden;
  color: var(--ptc-muted);
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ptc-resume:hover .ptc-resume__course {
  color: var(--ptc-brand);
}

/* ---------- Карточки курсов ---------- */
.ptc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ptc-gap);
}

.ptc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ptc-soft);
}

.ptc-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ptc-card:hover .ptc-card__media img {
  transform: scale(1.03);
}

.ptc-card__audience {
  margin-bottom: -6px;
  color: var(--ptc-brand);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptc-card__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ptc-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ptc-card:hover .ptc-card__arrow {
  background: var(--ptc-brand);
  color: #ffffff;
}

.ptc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px 26px;
}

.ptc-card__title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
}

.ptc-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ptc-card:hover .ptc-card__title {
  color: var(--ptc-brand);
}

.ptc-card__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ptc-muted);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ptc-card .ptc-progress {
  margin-top: auto;
  padding-top: 6px;
}

.ptc-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ptc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ptc-brand);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ptc-card__cta .ptc-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.ptc-card:hover .ptc-card__cta .ptc-icon {
  transform: translateX(3px);
}

/* ---------- Сертификаты: миниатюры листов ---------- */
.ptc-certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--ptc-gap);
}

.ptc-cert {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 20px 16px 16px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-cert .ptc-cert__lock .ptc-icon {
  width: 34px;
  height: 34px;
  padding: 9px;
}

.ptc-cert__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--ptc-line);
}

.ptc-cert__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(248, 249, 251, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--ptc-text);
}

.ptc-cert__lock .ptc-icon {
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 29, 34, 0.12);
  -webkit-mask: none;
  mask: none;
  background-image: none;
}

.ptc-cert__lock .ptc-icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ptc-text);
  -webkit-mask: url("/local/lib/Warmcontour/wc-icons/General/Lock.svg") center / contain no-repeat;
  mask: url("/local/lib/Warmcontour/wc-icons/General/Lock.svg") center / contain no-repeat;
}

.is-earned .ptc-cert__lock {
  display: none;
}

.ptc-cert__info {
  display: grid;
  gap: 4px;
}

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

.ptc-cert__state {
  color: var(--ptc-muted);
  font-size: 13px;
}

.ptc-cert.is-earned .ptc-cert__state {
  color: var(--ptc-brand);
  font-weight: 500;
}

.ptc-cert__open,
.ptc-cert__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--ptc-radius);
  background: transparent;
  cursor: pointer;
}

.ptc-cert.is-earned:hover .ptc-cert__name,
.ptc-cert:not(.is-earned):hover .ptc-cert__name {
  color: var(--ptc-brand);
}

/* ---------- Лист сертификата А4 (размеры — доли ширины, cqw) ---------- */
/* Лист печатается и вне обёртки .ptc (его переносят в body), поэтому свой box-sizing */
.ptc-sheet,
.ptc-sheet *,
.ptc-sheet *::before,
.ptc-sheet *::after {
  box-sizing: border-box;
}

.ptc-sheet p {
  margin: 0;
}

.ptc-sheet {
  container-type: inline-size;
  width: 100%;
  color: #1e1d22;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.ptc-sheet__page {
  position: relative;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  padding: 7.5cqw 11cqw 0;
  background: #ffffff;
}

.ptc-sheet__logo {
  display: block;
  width: 24cqw;
  height: auto;
  color: #bb0110;
}

.ptc-sheet__title {
  margin-top: 10.5cqw !important;
  font-size: 10cqw;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ptc-sheet__subtitle {
  max-width: 62cqw;
  margin-top: 3.2cqw !important;
  font-size: 3.5cqw;
  line-height: 1.25;
  font-weight: 600;
}

.ptc-sheet__lead {
  margin-top: 8cqw !important;
  font-size: 2.3cqw;
  line-height: 1.35;
}

.ptc-sheet__name {
  min-height: 1.3em;
  margin-top: 3cqw !important;
  padding-bottom: 1.2cqw;
  border-bottom: 0.18cqw solid #1e1d22;
  font-size: 4.4cqw;
  line-height: 1.2;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ptc-sheet__name.is-empty {
  color: #b5b9c2;
  font-weight: 400;
}

.ptc-sheet__text {
  margin-top: 3.4cqw !important;
  font-size: 2.3cqw;
  line-height: 1.4;
}

.ptc-sheet__meta {
  position: absolute;
  top: 7.6cqw;
  right: 11cqw;
  display: grid;
  justify-items: end;
  gap: 0.6cqw;
  color: #616776;
  font-size: 1.6cqw;
  line-height: 1.3;
  text-align: right;
}

.ptc-sheet__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45.5%;
  object-fit: cover;
}

/* ---------- Сертификат в правой колонке курса и на финальной странице ---------- */
.ptc-certpanel {
  display: grid;
  gap: 14px;
}

.ptc-certpanel .ptc-cert__thumb {
  width: 100%;
  max-width: 168px;
  margin: 0 auto;
}

.ptc-certpanel__text {
  color: var(--ptc-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.ptc-certpanel.is-earned .ptc-certpanel__text {
  color: var(--ptc-text);
}

.ptc-certpanel--wide {
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.ptc-certpanel--wide .ptc-cert__thumb {
  margin: 0;
}

.ptc-certpanel__body {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.ptc-certpanel__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
}

.ptc-certpanel--wide .ptc-certpanel__text {
  text-align: left;
  font-size: 16px;
}

.ptc-certpanel--wide .ptc-progress {
  width: 100%;
}

/* ---------- Окно сертификата ---------- */
.ptc .ptc-certdialog,
.ptc-certdialog {
  width: min(960px, calc(100vw - 32px));
}

.ptc-certdialog__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  margin-top: 20px;
}

.ptc-certdialog__form {
  display: grid;
  align-content: start;
  gap: 20px;
}

.ptc-certdialog__preview .ptc-sheet {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--ptc-line), 0 16px 40px rgba(30, 29, 34, 0.12);
}

.ptc-certdialog__hint {
  color: var(--ptc-muted);
  font-size: 14px;
  line-height: 1.45;
}

.ptc-certdialog__error {
  color: var(--ptc-brand);
  font-weight: 500;
}

.ptc-field {
  display: grid;
  gap: 8px;
}

.ptc-field__label {
  padding: 0;
  color: var(--ptc-text);
  font-size: 14px;
  font-weight: 500;
}

.ptc-field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8f9fb;
  color: var(--ptc-text);
  font: inherit;
  font-size: 17px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ptc-field__input:hover {
  background: #f1f3f6;
}

.ptc-field__input:focus {
  border-color: var(--ptc-brand);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(187, 1, 16, 0.12);
}

.ptc-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.ptc-switch legend {
  width: 100%;
  margin-bottom: 8px;
}

.ptc-switch label {
  position: relative;
  cursor: pointer;
}

.ptc-switch input {
  position: absolute;
  opacity: 0;
}

.ptc-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--ptc-soft);
  font-size: 15px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ptc-switch input:checked + span {
  background: var(--ptc-ink);
  color: #ffffff;
}

.ptc-switch input:focus-visible + span {
  outline: 2px solid var(--ptc-brand);
  outline-offset: 2px;
}

/* Печать: только лист сертификата на А4 без полей */
.ptc-print {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body.ptc-printing > *:not(.ptc-print) {
    display: none !important;
  }

  body.ptc-printing {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.ptc-printing > .ptc-print {
    display: block !important;
    width: 210mm;
  }

  body.ptc-printing .ptc-print .ptc-sheet__page {
    width: 210mm;
    height: 297mm;
    aspect-ratio: auto;
  }
}

/* ---------- Как проходит обучение ---------- */
.ptc-how {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ptc-how__step {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 30px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-how__number {
  margin-bottom: 14px;
  color: var(--ptc-brand);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.ptc-how__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.ptc-how__text {
  color: var(--ptc-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Остались вопросы ---------- */
.ptc-help {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 24px;
  margin-top: 64px;
  padding: 30px 32px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-help__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ptc-brand-soft);
  color: var(--ptc-brand);
}

.ptc-help__icon .ptc-icon {
  width: 26px;
  height: 26px;
}

.ptc-help__title {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
}

.ptc-help__text p {
  color: var(--ptc-muted);
}

.ptc-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Страница курса ---------- */
.ptc-back,
.ptc-lesson__course {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: var(--ptc-muted);
  font-size: 15px;
  transition: color 0.15s ease;
}

.ptc-back:hover,
.ptc-lesson__course:hover {
  color: var(--ptc-brand);
}

.ptc-back .ptc-icon,
.ptc-lesson__course .ptc-icon {
  width: 16px;
  height: 16px;
}

.ptc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-hero__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 44px 44px;
}

.ptc-hero__title {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 500;
}

.ptc-hero__lead {
  max-width: 620px;
  color: var(--ptc-body);
  font-size: 20px;
  line-height: 1.45;
}

.ptc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ptc-hero__media {
  position: relative;
  min-height: 100%;
  background: var(--ptc-soft);
}

.ptc-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ptc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--ptc-muted);
  font-size: 16px;
  line-height: 1.4;
}

.ptc-stats li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ptc-stats .ptc-icon {
  color: var(--ptc-brand);
}

.ptc-course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 40px;
  margin-top: 56px;
}

.ptc-aside {
  position: sticky;
  top: var(--ptc-sticky-top);
  display: grid;
  gap: 12px;
}

.ptc-panel {
  padding: 30px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-panel__title {
  margin-bottom: 14px !important;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
}

.ptc-panel__label {
  color: var(--ptc-muted);
  font-size: 15px;
}

.ptc-panel--progress {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.ptc-panel--progress .ptc-panel__label {
  justify-self: start;
}

.ptc-panel--progress .ptc-progress__bar {
  width: 100%;
}

.ptc-panel__count {
  font-weight: 500;
}

.ptc-panel--progress:not(.is-started) .ptc-panel__count {
  color: var(--ptc-muted);
  font-weight: 400;
}

.ptc-panel__reset {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ptc-muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ptc-panel__reset:hover {
  color: var(--ptc-brand);
}

.ptc-about__text {
  color: var(--ptc-body);
  font-size: 15px;
  line-height: 1.6;
}

.ptc-about__text > * + * {
  margin-top: 10px;
}

.ptc-about__subtitle {
  margin: 22px 0 12px !important;
  font-size: 17px;
  font-weight: 500;
}

.ptc-checks {
  display: grid;
  gap: 10px;
}

.ptc-checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.ptc-checks__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ptc-brand-soft);
  color: var(--ptc-brand);
}

.ptc-checks__mark .ptc-icon {
  width: 14px;
  height: 14px;
}

.ptc-congrats {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  margin-bottom: 40px;
  padding: 28px 32px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-ink);
  color: #ffffff;
  scroll-margin-top: calc(var(--ptc-sticky-top) + 12px);
}

.ptc-congrats__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ptc-brand);
}

.ptc-congrats__icon .ptc-icon {
  width: 30px;
  height: 30px;
}

.ptc-congrats__title {
  margin-bottom: 6px !important;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
}

.ptc-congrats p {
  color: rgba(255, 255, 255, 0.8);
}

.ptc-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ptc-mini {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 22px 12px 12px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-mini__image {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.ptc-mini__body {
  display: grid;
  gap: 4px;
}

.ptc-mini__audience,
.ptc-mini__meta {
  color: var(--ptc-muted);
  font-size: 13px;
  line-height: 1.3;
}

.ptc-mini__title {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
}

.ptc-mini:hover .ptc-mini__title,
.ptc-mini:hover > .ptc-icon {
  color: var(--ptc-brand);
}

/* ---------- Программа курса: строки уроков ---------- */
.ptc-program__list {
  display: grid;
  gap: 8px;
}

.ptc-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px 144px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px 22px 14px 18px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  transition: background-color 0.15s ease;
}

.ptc-row:hover {
  background: #fcfcfd;
}

.ptc-row__state {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ptc-soft);
  color: var(--ptc-text);
  font-size: 16px;
  font-weight: 500;
}

.ptc-row__state .ptc-icon {
  width: 18px;
  height: 18px;
}

.ptc-row__number .ptc-icon {
  color: var(--ptc-brand);
}

.ptc-row__play,
.ptc-row__check {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
}

.ptc-row__play {
  background: var(--ptc-brand);
}

.ptc-row__play .ptc-icon {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.ptc-row__check {
  background: var(--ptc-ink);
}

.ptc-row.is-next .ptc-row__play,
.ptc-row.is-current:not(.is-done) .ptc-row__play {
  display: grid;
}

.ptc-row.is-done .ptc-row__check {
  display: grid;
}

.ptc-row__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ptc-soft);
}

.ptc-row__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ptc-row__thumb--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ptc-brand-soft) 0%, var(--ptc-soft) 100%);
}

.ptc-row__kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ptc-brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptc-row__kind .ptc-icon {
  width: 16px;
  height: 16px;
}

.ptc-row__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ptc-row__label {
  color: var(--ptc-muted);
  font-size: 13px;
  line-height: 1.3;
}

.ptc-row__done {
  color: var(--ptc-text);
  font-weight: 500;
}

.ptc-row__next {
  display: inline-flex;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--ptc-brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.ptc-row__title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

.ptc-row__title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--ptc-radius);
}

.ptc-row:hover .ptc-row__title {
  color: var(--ptc-brand);
}

.ptc-row__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ptc-muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ptc-row__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ptc-row__topics span {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--ptc-soft);
  color: var(--ptc-body);
  font-size: 12px;
  line-height: 1.35;
}

.ptc-row__meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--ptc-muted);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.ptc-row__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ptc-row__meta .ptc-icon {
  width: 15px;
  height: 15px;
}

.ptc-row.is-current {
  background: var(--ptc-brand-soft);
}

.ptc-program__list--compact .ptc-row {
  grid-template-columns: 36px 112px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 10px 18px 10px 14px;
}

.ptc-program__list--compact .ptc-row__state {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.ptc-program__list--compact .ptc-row__title {
  font-size: 16px;
}

/* ---------- Урок ---------- */
.ptc-lesson {
  max-width: 980px;
  margin: 0 auto;
}

.ptc-lesson__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 32px;
}

.ptc-lesson__heading {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.ptc-lesson__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.ptc-lesson__title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
}

.ptc-lesson__number {
  color: var(--ptc-brand);
}

.ptc-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  transition: background-color 0.15s ease;
}

.ptc-pill:hover {
  background: #fcfcfd;
}

.ptc-pill__text {
  display: grid;
  gap: 1px;
}

.ptc-pill__title {
  font-size: 15px;
  font-weight: 500;
}

.ptc-pill__count {
  color: var(--ptc-muted);
  font-size: 13px;
}

.ptc-featured {
  margin-top: 28px;
}

.ptc-lesson__intro {
  display: grid;
  gap: 16px;
  margin: 28px 0 40px;
}

.ptc-lesson__lead {
  color: var(--ptc-body);
  font-size: 19px;
  line-height: 1.55;
}

.ptc-toc {
  padding: 22px 26px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-toc__title {
  margin-bottom: 10px !important;
  color: var(--ptc-muted);
  font-size: 14px;
}

.ptc-toc__list {
  display: grid;
  gap: 6px;
  counter-reset: ptc-toc;
}

.ptc-toc__list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  counter-increment: ptc-toc;
}

.ptc-toc__list li::after {
  content: counter(ptc-toc);
  grid-row: 1;
  grid-column: 1;
  color: var(--ptc-brand);
  font-weight: 500;
}

.ptc-toc__list a {
  grid-column: 2;
  line-height: 1.45;
}

.ptc-toc__list a:hover {
  color: var(--ptc-brand);
}

/* ---------- Текст урока ---------- */
.ptc-body {
  color: var(--ptc-body);
  font-size: 17px;
  line-height: 1.7;
  counter-reset: ptc-topic;
}

.ptc-body > * + * {
  margin-top: 18px;
}

.ptc .ptc-body h2 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 56px;
  color: var(--ptc-text);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  scroll-margin-top: calc(var(--ptc-sticky-top) + 12px);
  counter-increment: ptc-topic;
}

.ptc .ptc-body h2::before {
  content: counter(ptc-topic);
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ptc-brand);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.ptc .ptc-body > h2:first-child {
  margin-top: 0;
}

.ptc .ptc-body h3 {
  margin-top: 32px;
  color: var(--ptc-text);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 500;
}

.ptc .ptc-body h2 + *,
.ptc .ptc-body h3 + * {
  margin-top: 14px;
}

.ptc-body a:not([class]) {
  color: var(--ptc-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ptc-body a:not([class]):hover {
  color: var(--ptc-brand-hover);
}

.ptc-body strong {
  color: var(--ptc-text);
  font-weight: 500;
}

.ptc .ptc-body > ul,
.ptc .ptc-body > ol:not([class]),
.ptc .ptc-body li > ul,
.ptc .ptc-body .ptc-note ul,
.ptc .ptc-body .ptc-faq ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  list-style: disc;
}

.ptc .ptc-body > ol:not([class]) {
  list-style: decimal;
}

.ptc-body li::marker {
  color: var(--ptc-brand);
}

.ptc .ptc-body .ptc-figure {
  margin-top: 28px;
}

.ptc-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-figure img[data-ptc-zoom] {
  cursor: zoom-in;
}

.ptc-figure figcaption {
  margin-top: 10px;
  color: var(--ptc-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.ptc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.ptc .ptc-body .ptc-gallery .ptc-figure {
  margin: 0;
}

.ptc-gallery .ptc-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Видео YouTube: до нажатия — обложка, без скрипта — ссылка */
.ptc a.ptc-video {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  color: var(--ptc-text);
  font-weight: 500;
}

.ptc .ptc-body .ptc-player {
  margin-top: 28px;
}

.ptc-player__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--ptc-radius);
  background: var(--ptc-ink);
}

.ptc-player__frame img,
.ptc-player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.ptc-player__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.5) 100%);
  cursor: pointer;
}

.ptc-player__button {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ptc-brand);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ptc-player__button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #ffffff;
}

.ptc-player__play:hover .ptc-player__button {
  transform: scale(1.06);
  background: var(--ptc-brand-hover);
}

.ptc-player__title {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.ptc-player--featured .ptc-player__button {
  width: 92px;
  height: 92px;
}

.ptc-player--featured .ptc-player__title {
  font-size: 20px;
}

.ptc-steps {
  display: grid;
  gap: 10px;
  counter-reset: ptc-step;
}

.ptc .ptc-body .ptc-steps > li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 24px 20px 76px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  counter-increment: ptc-step;
}

.ptc .ptc-body .ptc-steps > li::after {
  content: counter(ptc-step);
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ptc-brand-soft);
  color: var(--ptc-brand);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.ptc .ptc-body .ptc-steps h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.ptc .ptc-body .ptc-steps p {
  color: var(--ptc-muted);
  font-size: 16px;
  line-height: 1.6;
}

.ptc-note {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px 24px 22px 64px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-note::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 22px;
  width: 26px;
  height: 26px;
  background: var(--ptc-brand);
  -webkit-mask: url("/local/lib/Warmcontour/wc-icons/Interface/Information%20Circle.svg") center / contain no-repeat;
  mask: url("/local/lib/Warmcontour/wc-icons/Interface/Information%20Circle.svg") center / contain no-repeat;
}

.ptc-note p:first-child {
  color: var(--ptc-text);
}

.ptc .ptc-body .ptc-button {
  border-color: var(--ptc-brand);
  background: var(--ptc-brand);
  color: #ffffff;
}

.ptc .ptc-body .ptc-button:hover {
  background: var(--ptc-brand-hover);
}

.ptc .ptc-body .ptc-quote {
  position: relative;
  margin-top: 28px;
  padding: 26px 28px 24px 72px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-quote::before {
  content: "«";
  position: absolute;
  top: 10px;
  left: 24px;
  color: var(--ptc-brand);
  font-size: 56px;
  line-height: 1;
}

.ptc-quote p {
  color: var(--ptc-text);
  font-size: 18px;
  line-height: 1.6;
}

.ptc-quote p + p {
  margin-top: 10px;
}

.ptc-quote cite {
  display: block;
  margin-top: 14px;
  color: var(--ptc-muted);
  font-size: 15px;
  font-style: normal;
}

.ptc-faq {
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc .ptc-body .ptc-faq + .ptc-faq {
  margin-top: 8px;
}

.ptc-faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  color: var(--ptc-text);
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.ptc-faq summary::-webkit-details-marker {
  display: none;
}

.ptc-faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform 0.2s ease;
}

.ptc-faq[open] summary::after {
  transform: rotate(45deg);
}

.ptc-faq > div {
  display: grid;
  gap: 12px;
  padding: 0 22px 20px;
  font-size: 16px;
}

.ptc-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.ptc .ptc-body a.ptc-link {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
  padding-bottom: 16px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  color: var(--ptc-text);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.ptc-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ptc-soft);
}

.ptc-link span {
  padding: 0 16px;
}

.ptc .ptc-body a.ptc-link:hover {
  color: var(--ptc-brand);
}

/* ---------- Тест: по одному вопросу ---------- */
.ptc-quiz {
  margin-top: 56px;
}

.ptc-quiz__title,
.ptc-materials__title {
  margin-bottom: 18px !important;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
}

.ptc-quiz__card {
  display: grid;
  gap: 24px;
  padding: 32px 36px 36px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-quiz__top {
  display: grid;
  gap: 14px;
}

.ptc-quiz__answered {
  color: var(--ptc-text);
  font-size: 14px;
  font-weight: 500;
}

.ptc-quiz__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--ptc-steps, 10), minmax(0, 1fr));
  gap: 4px;
  padding-bottom: 14px;
}

.ptc-quiz__steps::before,
.ptc-quiz__steps::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
}

.ptc-quiz__steps::before {
  right: 0;
  background: var(--ptc-soft);
}

.ptc-quiz__steps::after {
  width: calc(var(--ptc-quiz-done, 0) * 100%);
  background: var(--ptc-brand);
  transition: width 0.4s ease;
}

.ptc-quiz__steps li {
  display: grid;
  justify-items: center;
}

.ptc-quiz__dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--ptc-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ptc-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ptc-quiz__dot:hover,
.ptc-quiz__dot.is-active {
  border-color: var(--ptc-text);
  color: var(--ptc-text);
}

.ptc-quiz__dot.is-active {
  font-weight: 500;
}

.ptc-quiz__dot.is-right {
  border-color: var(--ptc-ok);
  background: var(--ptc-ok);
  color: #ffffff;
}

.ptc-quiz__dot.is-wrong {
  border-color: var(--ptc-brand);
  background: var(--ptc-brand);
  color: #ffffff;
}

.ptc-quiz__dot.is-active.is-right,
.ptc-quiz__dot.is-active.is-wrong {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--ptc-text);
}

.ptc-question {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ptc-quiz__card:not(.is-stepper) .ptc-question + .ptc-question {
  padding-top: 24px;
  border-top: 1px solid var(--ptc-line);
}

.ptc-question__title {
  padding: 0;
  color: var(--ptc-text);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
}

.ptc-question__hint {
  color: var(--ptc-muted);
  font-size: 14px;
}

.ptc-question__options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ptc-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ptc-soft);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ptc-option:hover {
  background: var(--ptc-soft-hover);
}

.ptc-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ptc-option__mark {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid #a8adb7;
  border-radius: 50%;
  background: #ffffff;
}

.ptc-option input[type="checkbox"] + .ptc-option__mark {
  border-radius: 5px;
}

.ptc-option input:checked + .ptc-option__mark {
  border: 7px solid var(--ptc-text);
}

.ptc-option input[type="checkbox"]:checked + .ptc-option__mark {
  border: 0;
  background: var(--ptc-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.ptc-option:has(input:disabled) {
  cursor: default;
}

.ptc-option.is-right {
  background: var(--ptc-ok-soft);
  color: var(--ptc-ok);
}

.ptc-option.is-right input:checked + .ptc-option__mark {
  border-color: var(--ptc-ok);
}

.ptc-option.is-wrong {
  background: var(--ptc-brand-soft);
  color: var(--ptc-brand);
}

.ptc-option.is-wrong input:checked + .ptc-option__mark {
  border-color: var(--ptc-brand);
}

.ptc-quiz__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 20px;
}

.ptc-quiz__message {
  color: var(--ptc-brand);
  font-weight: 500;
}

.ptc-quiz__foot .ptc-button {
  min-width: 220px;
}

.ptc-quiz__result {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 12px 0;
  text-align: center;
}

.ptc-quiz__result .ptc-ring__percent {
  font-size: 28px;
}

.ptc-quiz__result-title {
  font-size: 24px;
  font-weight: 500;
}

.ptc-quiz__result-text {
  max-width: 520px;
  color: var(--ptc-muted);
}

.ptc-quiz__result.is-passed .ptc-ring__value {
  stroke: var(--ptc-ok);
}

.ptc-quiz__note {
  margin-bottom: 14px !important;
  color: var(--ptc-muted);
}

.ptc-quiz__self {
  display: grid;
  gap: 12px;
}

.ptc-quiz__self > li {
  padding: 20px 24px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-quiz__self ul {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-left: 20px;
  color: var(--ptc-muted);
  list-style: disc;
}

/* ---------- Материалы ---------- */
.ptc-materials {
  margin-top: 48px;
}

.ptc-materials__list {
  display: grid;
  gap: 8px;
}

.ptc-file {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-file__type {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 8px;
  background: var(--ptc-brand-soft);
  color: var(--ptc-brand);
  font-size: 13px;
  font-weight: 500;
}

.ptc-file__name {
  font-weight: 500;
  line-height: 1.35;
}

.ptc-file__size {
  color: var(--ptc-muted);
  font-size: 14px;
}

.ptc-file:hover {
  color: var(--ptc-brand);
}

/* ---------- Отметка, переход, программа под уроком ---------- */
.ptc-complete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ptc-line);
}

.ptc-complete__button {
  min-height: 56px;
  padding: 0 26px 0 16px;
  border-color: var(--ptc-brand);
}

.ptc-complete__box {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #a8adb7;
  border-radius: 50%;
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ptc-complete__box .ptc-icon {
  width: 14px;
  height: 14px;
}

.ptc .ptc-complete__button[aria-pressed="true"] {
  border-color: var(--ptc-ink);
  background: var(--ptc-ink);
  color: #ffffff;
}

.ptc .ptc-complete__button[aria-pressed="true"]:hover {
  background: #33323a;
}

.ptc-complete__button[aria-pressed="true"] .ptc-complete__box {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ptc-ink);
}

.ptc-complete__hint {
  color: var(--ptc-muted);
  font-size: 14px;
}

.ptc-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.ptc-pager__link {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 108px;
  padding: 20px 24px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-pager__link--next {
  grid-column: 2;
  text-align: right;
}

.ptc-pager__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ptc-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ptc-pager__link--next .ptc-pager__label {
  justify-content: flex-end;
  color: var(--ptc-brand);
}

.ptc-pager__label .ptc-icon {
  width: 16px;
  height: 16px;
}

.ptc-pager__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 500;
}

.ptc-pager__link:hover .ptc-pager__title {
  color: var(--ptc-brand);
}

.ptc-program--lesson {
  margin-top: 64px;
  scroll-margin-top: calc(var(--ptc-sticky-top) + 12px);
}

/* ---------- Окно формы и увеличение картинок ---------- */
.ptc-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 28px;
  border: 0;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  color: var(--ptc-text);
}

.ptc-dialog::backdrop {
  background: rgba(30, 29, 34, 0.5);
}

.ptc-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ptc-dialog__title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}

.ptc-dialog__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -6px -8px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ptc-muted);
  cursor: pointer;
}

.ptc-dialog__close:hover {
  background: var(--ptc-soft);
  color: var(--ptc-text);
}

.ptc-dialog__text {
  margin: 10px 0 18px !important;
  color: var(--ptc-muted);
}

.ptc-dialog__form {
  min-height: 160px;
}

.ptc-dialog__loading {
  color: var(--ptc-muted);
}

.ptc-zoom {
  max-width: 96vw;
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: var(--ptc-radius);
  background: transparent;
  cursor: zoom-out;
}

.ptc-zoom::backdrop {
  background: rgba(30, 29, 34, 0.85);
}

.ptc-zoom img {
  display: block;
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .ptc-banner {
    padding-right: 380px;
  }

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

  .ptc-course {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .ptc-row {
    grid-template-columns: 40px 120px minmax(0, 1fr) auto;
  }
}

@media (max-width: 1100px) {
  .ptc-dash {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-banner {
    padding: 40px 40px 72px;
  }

  .ptc-me {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    gap: 4px 20px;
    margin: -40px 24px 0;
    padding: 18px 22px;
    text-align: left;
  }

  .ptc-me__icon {
    display: none;
  }

  .ptc-me .ptc-ring {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 84px;
    height: 84px;
  }

  .ptc-me .ptc-ring__percent {
    font-size: 20px;
  }

  .ptc-me__title,
  .ptc-me__count,
  .ptc-me__left {
    grid-column: 2;
  }

  .ptc-me__left {
    margin-top: 0 !important;
  }

  .ptc-me__button {
    grid-column: 3;
    grid-row: 1 / span 3;
    width: auto;
    margin-top: 0;
  }

  .ptc-facts {
    grid-row: 3;
  }

  .ptc-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  }

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

  .ptc-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-hero__media {
    order: -1;
    aspect-ratio: 21 / 9;
    min-height: 0;
  }

  .ptc-course {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-aside {
    position: static;
    order: -1;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .ptc-help {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .ptc-help__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .ptc {
    padding-bottom: 48px;
    --ptc-gap: 12px;
  }

  .ptc-section {
    margin-top: 44px;
  }

  .ptc-section__title {
    font-size: 28px;
  }

  .ptc-section__title--small {
    font-size: 24px;
  }

  .ptc-banner {
    min-height: 0;
    padding: 28px 22px 64px;
  }

  .ptc-banner__title {
    font-size: 32px;
  }

  .ptc-banner__text {
    font-size: 15px;
  }

  .ptc-me {
    grid-template-columns: auto minmax(0, 1fr);
    margin: -40px 12px 0;
    padding: 16px;
  }

  .ptc-me .ptc-ring {
    width: 72px;
    height: 72px;
  }

  .ptc-me__button {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    margin-top: 8px;
  }

  .ptc-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ptc-fact {
    padding: 16px;
  }

  .ptc-cards,
  .ptc-mini-cards,
  .ptc-how {
    grid-template-columns: minmax(0, 1fr);
  }


  .ptc-resume {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 12px;
  }

  .ptc-resume__image {
    width: 72px;
    height: 72px;
  }

  .ptc-resume > .ptc-button {
    grid-column: 1 / -1;
  }

  .ptc-card__title {
    font-size: 22px;
  }

  .ptc-card__body {
    padding: 20px;
  }

  .ptc-hero__text {
    padding: 22px 20px 24px;
  }

  .ptc-hero__title {
    font-size: 32px;
  }

  .ptc-hero__media {
    aspect-ratio: 16 / 9;
  }

  .ptc-hero__lead {
    font-size: 17px;
  }

  .ptc-hero__actions .ptc-button {
    flex: 1 1 100%;
  }

  .ptc-course {
    margin-top: 40px;
  }

  .ptc-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-panel {
    padding: 22px 20px;
  }

  .ptc-congrats {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
  }

  .ptc-row,
  .ptc-program__list--compact .ptc-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 14px;
  }

  .ptc-row__thumb {
    display: none;
  }

  .ptc-row__meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-items: start;
    gap: 6px 14px;
  }

  .ptc-row__title {
    font-size: 16px;
  }

  .ptc-mini {
    grid-template-columns: 88px minmax(0, 1fr);
    padding-right: 14px;
  }

  .ptc-mini__image {
    width: 88px;
    height: 72px;
  }

  .ptc-mini > .ptc-icon {
    display: none;
  }

  .ptc-help {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
  }

  .ptc-help__actions .ptc-button {
    flex: 1 1 auto;
  }

  .ptc-lesson__head {
    flex-direction: column;
  }

  .ptc-lesson__title {
    font-size: 26px;
  }

  .ptc-pill {
    align-self: stretch;
  }

  .ptc-lesson__lead {
    font-size: 17px;
  }

  .ptc-body {
    font-size: 16px;
  }

  .ptc .ptc-body h2 {
    gap: 10px;
    margin-top: 40px;
    font-size: 23px;
  }

  .ptc .ptc-body h2::before {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .ptc .ptc-body h3 {
    font-size: 19px;
  }

  .ptc .ptc-body .ptc-steps > li {
    padding: 18px 18px 18px 64px;
  }

  .ptc .ptc-body .ptc-steps > li::after {
    left: 16px;
    width: 32px;
    height: 32px;
  }

  .ptc-note {
    padding: 18px 18px 18px 54px;
  }

  .ptc-note::before {
    top: 19px;
    left: 18px;
    width: 22px;
    height: 22px;
  }

  .ptc .ptc-body .ptc-quote {
    padding: 22px 20px 20px 52px;
  }

  .ptc-quote::before {
    left: 16px;
    font-size: 44px;
  }

  .ptc-quote p {
    font-size: 17px;
  }

  .ptc-gallery,
  .ptc-links {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ptc-gallery > *,
  .ptc-links > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .ptc-player__button,
  .ptc-player--featured .ptc-player__button {
    width: 60px;
    height: 60px;
  }

  .ptc-player--featured .ptc-player__title {
    font-size: 16px;
  }

  .ptc-quiz__card {
    padding: 22px 18px 24px;
  }

  .ptc-quiz__steps {
    display: flex;
    overflow-x: auto;
    padding-top: 2px;
    scrollbar-width: none;
  }

  .ptc-quiz__steps li {
    flex: none;
  }

  .ptc-quiz__dot {
    width: 32px;
    height: 32px;
  }

  .ptc-question__title {
    font-size: 19px;
  }

  .ptc-quiz__foot .ptc-button {
    width: 100%;
  }

  .ptc-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-pager__link--next {
    grid-column: auto;
    grid-row: 1;
  }

  .ptc-file {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .ptc-file__type {
    height: 44px;
  }

  .ptc-file__size {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptc *,
  .ptc *::before,
  .ptc *::after {
    transition: none !important;
  }
}

/* ---------- Блоки программы ---------- */
.ptc-module__box {
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-module__head {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 18px;
  padding: 16px 22px 16px 16px;
  list-style: none;
  cursor: pointer;
}

.ptc-module__head::-webkit-details-marker {
  display: none;
}

.ptc-module__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.ptc-module__ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ptc-module__ring circle {
  fill: none;
  stroke-width: 9;
}

.ptc-module__ring .ptc-ring__value {
  stroke-dasharray: calc(var(--ptc-ring, 0) * 1) 100;
}

.ptc-module:not(.is-started) .ptc-module__ring .ptc-ring__value {
  stroke: transparent;
}

.ptc-module__number {
  font-size: 17px;
  font-weight: 500;
}

.ptc-module__check {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--ptc-ink);
  color: #ffffff;
}

.ptc-module.is-done .ptc-module__check {
  display: grid;
}

.ptc-module__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ptc-module__label {
  color: var(--ptc-muted);
  font-size: 13px;
}

.ptc-module__name {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.ptc-module__count {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ptc-soft);
  font-size: 13px;
  font-weight: 500;
}

.ptc-module__toggle {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ptc-muted);
  border-bottom: 2px solid var(--ptc-muted);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}

.ptc-module__box[open] .ptc-module__toggle {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.ptc-module__head:hover .ptc-module__name {
  color: var(--ptc-brand);
}

.ptc-module__lessons {
  display: grid;
  gap: 2px;
  padding: 0 10px 10px;
}

.ptc .ptc-row--nested {
  padding-block: 10px;
  border-radius: 8px;
  background: transparent;
}

.ptc .ptc-row--nested:hover {
  background: #f8f9fb;
}

.ptc .ptc-row--nested.is-current {
  background: var(--ptc-brand-soft);
}

.ptc-row--nested .ptc-row__state {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.ptc-row--nested .ptc-row__title {
  font-size: 16px;
}

.ptc-program__list:not(.ptc-program__list--compact) .ptc-row--nested {
  grid-template-columns: 40px 128px minmax(0, 1fr) auto;
}

.ptc-row__number {
  font-variant-numeric: tabular-nums;
}

/* ---------- Переключатель уроков блока ---------- */
.ptc-steps-nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ptc-steps-nav__item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  padding: 10px 14px 10px 10px;
  border-radius: 8px;
  background: var(--ptc-surface);
  font-size: 14px;
  line-height: 1.3;
  transition: background-color 0.15s ease;
}

.ptc-steps-nav__item:hover {
  background: #fcfcfd;
}

.ptc-steps-nav__mark {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ptc-soft);
  font-size: 12px;
  font-weight: 500;
}

.ptc-steps-nav__check {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--ptc-ink);
  color: #ffffff;
}

.ptc-steps-nav__check .ptc-icon {
  width: 14px;
  height: 14px;
}

.ptc-steps-nav__item.is-done .ptc-steps-nav__check {
  display: grid;
}

.ptc-steps-nav__item.is-current {
  background: var(--ptc-ink);
  color: #ffffff;
}

.ptc-steps-nav__item.is-current .ptc-steps-nav__mark {
  background: var(--ptc-brand);
  color: #ffffff;
}

.ptc-steps-nav__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- Таблицы и картинки внутри шагов (из уроков Tilda) ---------- */
.ptc .ptc-body .ptc-table {
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  font-size: 15px;
  line-height: 1.45;
}

.ptc-body .ptc-table th,
.ptc-body .ptc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ptc-line);
  text-align: left;
  vertical-align: top;
}

.ptc-body .ptc-table thead th {
  background: var(--ptc-ink);
  color: #ffffff;
  font-weight: 500;
}

.ptc-body .ptc-table tbody tr:last-child td {
  border-bottom: 0;
}

.ptc-body .ptc-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.ptc .ptc-body .ptc-steps > li .ptc-figure,
.ptc .ptc-body .ptc-steps > li figure {
  margin-top: 12px;
}

.ptc-body sup {
  color: var(--ptc-brand);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .ptc-certdialog__body {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 767px) {
  .ptc-cert {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 16px 12px 12px;
  }

  .ptc-cert__name {
    font-size: 16px;
  }

  .ptc-certpanel--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-certpanel--wide .ptc-cert__thumb {
    max-width: 160px;
  }

  .ptc-certdialog__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-certdialog__preview {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }

  .ptc-module__head {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 12px;
    padding: 14px;
  }

  .ptc-module__ring {
    width: 40px;
    height: 40px;
  }

  .ptc-module__count {
    display: none;
  }

  .ptc-module__name {
    font-size: 17px;
  }

  .ptc .ptc-row--nested,
  .ptc-program__list:not(.ptc-program__list--compact) .ptc-row--nested {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .ptc-steps-nav__item {
    min-width: 200px;
  }

  .ptc-body .ptc-table {
    display: block;
    overflow-x: auto;
  }
}

/* ---------- Учётная запись: полоса вверху центра ---------- */
.ptc-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  margin-bottom: 20px;
}

.ptc-account__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto !important;
  color: var(--ptc-muted);
  font-size: 14px;
}

.ptc-account__hint .ptc-icon {
  color: var(--ptc-brand);
}

.ptc-account__actions {
  display: flex;
  gap: 8px;
}

.ptc-button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.ptc-account__user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.ptc-account__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ptc-brand);
  color: #ffffff;
  font-size: 15px;
}

.ptc-account__sync {
  color: var(--ptc-brand);
  font-size: 13px;
}

.ptc-account__logout {
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--ptc-surface);
  color: var(--ptc-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ptc-account__logout:hover {
  color: var(--ptc-brand);
}

/* ---------- Вход, регистрация, восстановление ---------- */
.ptc-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(620px, calc(100vh - 240px), 780px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-auth__panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 96px clamp(40px, 5vw, 80px) 64px;
  overflow: hidden;
  background: linear-gradient(150deg, #c3061a 0%, var(--ptc-brand) 45%, var(--ptc-brand-dark) 100%);
  color: #ffffff;
}

.ptc-auth__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='64'%3E%3Cpath d='M0 .5H96M0 32.5H96M.5 0V32M48.5 32V64' stroke='%23fff' stroke-opacity='.12' fill='none'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  pointer-events: none;
}

.ptc-auth__panel > * {
  position: relative;
}

.ptc-auth__panel > .ptc-auth__back {
  position: absolute;
  top: 36px;
  left: clamp(40px, 5vw, 80px);
}

.ptc-auth__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  opacity: 0.85;
}

.ptc-auth__back:hover {
  opacity: 1;
}

.ptc-auth__back .ptc-icon {
  width: 16px;
  height: 16px;
}

.ptc-auth__panel-title {
  max-width: 560px;
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.08;
  font-weight: 500;
}

.ptc-auth__benefits {
  display: grid;
  gap: 14px;
  margin-top: 16px !important;
}

.ptc-auth__benefits li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.45;
}

.ptc-auth__check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.ptc-auth__check .ptc-icon {
  width: 14px;
  height: 14px;
}

.ptc-auth__main {
  display: grid;
  align-content: center;
  padding: 56px clamp(32px, 5vw, 80px);
}

.ptc-auth__form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.ptc-auth__head {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.ptc-auth__title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 500;
}

.ptc-auth__text {
  color: var(--ptc-muted);
  line-height: 1.5;
}

.ptc-auth__submit {
  width: 100%;
  margin-top: 4px;
}

.ptc-auth__error {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ptc-brand-soft);
  color: var(--ptc-brand);
  font-size: 14px;
  font-weight: 500;
}

.ptc-auth__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.ptc-auth__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ptc-brand);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ptc-auth__link:disabled {
  color: var(--ptc-muted);
  text-decoration: none;
  cursor: default;
}

.ptc .ptc-auth__forgot {
  justify-self: end;
  margin-top: -8px;
  color: var(--ptc-brand);
}

.ptc-auth__switch {
  color: var(--ptc-muted);
  font-size: 15px;
  text-align: center;
}

.ptc .ptc-auth__switch a {
  color: var(--ptc-brand);
  font-weight: 500;
}

.ptc-field__password {
  position: relative;
  display: block;
}

.ptc-field__password .ptc-field__input {
  padding-right: 52px;
}

.ptc-field__eye {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ptc-muted);
  cursor: pointer;
}

.ptc-field__eye[aria-pressed="true"] {
  color: var(--ptc-brand);
}

.ptc-field__hint {
  color: var(--ptc-muted);
  font-size: 13px;
}

.ptc-field__error {
  color: var(--ptc-brand);
  font-size: 13px;
  font-weight: 500;
}

.ptc-field__input[aria-invalid="true"] {
  border-color: var(--ptc-brand);
  background: #ffffff;
}

.ptc-field__input--code {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-align: center;
}

.ptc-check {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.ptc-check input {
  position: absolute;
  opacity: 0;
}

.ptc-check__box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #a8adb7;
  border-radius: 5px;
  color: transparent;
}

.ptc-check__box .ptc-icon {
  width: 14px;
  height: 14px;
}

.ptc-check input:checked + .ptc-check__box {
  border-color: var(--ptc-ink);
  background: var(--ptc-ink);
  color: #ffffff;
}

.ptc-check input:focus-visible + .ptc-check__box {
  outline: 2px solid var(--ptc-brand);
  outline-offset: 2px;
}

.ptc .ptc-check__text a {
  color: var(--ptc-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Окно сертификата для гостя */
.ptc-certdialog__gate {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.ptc-certdialog__gate-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}

.ptc-certdialog__gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .ptc-auth {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .ptc-auth__panel {
    align-content: start;
    gap: 12px;
    padding: 24px 22px 28px;
  }

  .ptc-auth__panel > .ptc-auth__back {
    position: static;
    margin-bottom: 8px;
  }

  .ptc-auth__panel-title {
    font-size: 30px;
  }

  .ptc-auth__benefits {
    display: none;
  }

  .ptc-auth__main {
    padding: 28px 20px 32px;
  }

  .ptc-auth__title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .ptc-account {
    justify-content: space-between;
  }

  .ptc-account__hint {
    width: 100%;
  }

  .ptc-account__actions {
    flex: 1;
  }

  .ptc-account__actions .ptc-button {
    flex: 1;
  }
}

/* ---------- Программа карточками: блоки ---------- */
.ptc-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 20px;
}

.ptc-block {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ptc-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 29, 34, 0.08);
}

.ptc-block__media,
.ptc-lcard__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ptc-soft);
}

.ptc-block__media img,
.ptc-lcard__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ptc-block:hover .ptc-block__media img,
.ptc-lcard:hover .ptc-lcard__media img {
  transform: scale(1.04);
}

.ptc-block__media--empty,
.ptc-lcard__media--empty {
  background: linear-gradient(135deg, var(--ptc-brand-soft) 0%, var(--ptc-soft) 100%);
  color: var(--ptc-brand);
}

.ptc-block__media--empty .ptc-icon,
.ptc-lcard__media--empty .ptc-icon {
  width: 40px;
  height: 40px;
}

.ptc-block__done,
.ptc-lcard__done {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 6px;
  background: var(--ptc-ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.ptc-block__done {
  padding: 7px;
  border-radius: 50%;
  background: var(--ptc-brand);
}

.ptc-block__done .ptc-icon,
.ptc-lcard__done .ptc-icon {
  width: 14px;
  height: 14px;
}

.ptc-block.is-done .ptc-block__done,
.ptc-lcard.is-done .ptc-lcard__done {
  display: inline-flex;
}

.ptc-block__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.ptc-block__label {
  color: var(--ptc-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ptc-block--test .ptc-block__label,
.ptc-block--final .ptc-block__label {
  color: var(--ptc-brand);
}

.ptc-block__title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.ptc-block__link::after,
.ptc-lcard__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ptc-block:hover .ptc-block__title,
.ptc-lcard:hover .ptc-lcard__title {
  color: var(--ptc-brand);
}

.ptc-block__meta {
  color: var(--ptc-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ptc-block__progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.ptc-block__count {
  color: var(--ptc-muted);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ptc-block.is-done .ptc-block__count {
  color: var(--ptc-text);
}

/* ---------- Карточки уроков: широкие, превью слева ---------- */
.ptc-lessons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(520px, 100%), 1fr));
  gap: 12px;
}

.ptc-lesson .ptc-lessons {
  grid-template-columns: minmax(0, 1fr);
}

.ptc-lcard {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 20px;
  padding: 12px 20px 12px 12px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  transition: background-color 0.15s ease;
}

.ptc-lcard:hover {
  background: #fcfcfd;
}

.ptc-lcard.is-current {
  background: var(--ptc-brand-soft);
}

.ptc-lcard__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ptc-soft);
}

.ptc-lcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ptc-lcard:hover .ptc-lcard__media img {
  transform: scale(1.04);
}

.ptc-lcard__media--empty {
  background: linear-gradient(135deg, var(--ptc-brand-soft) 0%, var(--ptc-soft) 100%);
  color: var(--ptc-brand);
}

.ptc-lcard__media--empty .ptc-icon {
  width: 32px;
  height: 32px;
}

.ptc-lcard__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(187, 1, 16, 0.92);
  color: #ffffff;
}

.ptc-lcard__play .ptc-icon {
  width: 14px;
  height: 14px;
  margin-left: 3px;
}

.ptc-lcard__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ptc-lcard__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.ptc-lcard__label {
  color: var(--ptc-brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ptc-lcard__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ptc-lcard__tag .ptc-icon {
  width: 12px;
  height: 12px;
}

.ptc-lcard__tag--next {
  background: var(--ptc-brand);
  color: #ffffff;
}

.ptc-lcard__tag--current {
  background: #ffffff;
  color: var(--ptc-brand);
}

.ptc-lcard__tag--done {
  display: none;
  background: var(--ptc-ink);
  color: #ffffff;
}

.ptc-lcard.is-done .ptc-lcard__tag--done {
  display: inline-flex;
}

.ptc-lcard__title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.ptc-lcard__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--ptc-radius);
}

.ptc-lcard:hover .ptc-lcard__title {
  color: var(--ptc-brand);
}

.ptc-lcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--ptc-muted);
  font-size: 13px;
}

.ptc-lcard__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ptc-lcard__meta .ptc-icon {
  width: 14px;
  height: 14px;
}

.ptc-lcard__go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ptc-soft);
  color: var(--ptc-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ptc-lcard:hover .ptc-lcard__go {
  background: var(--ptc-brand);
  color: #ffffff;
}

.ptc-lcard__go .ptc-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 767px) {
  .ptc-lcard {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .ptc-lcard__go {
    display: none;
  }

  .ptc-lcard__title {
    font-size: 15px;
  }

  .ptc-lcard__play {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Страница блока ---------- */
.ptc-modhead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-modhead__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 40px 36px;
}

.ptc-modhead__title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 500;
}

.ptc-modhead__lead {
  max-width: 620px;
  color: var(--ptc-body);
  font-size: 18px;
  line-height: 1.5;
}

.ptc-modhead__progress {
  width: 100%;
  max-width: 420px;
}

.ptc-modhead__media {
  position: relative;
  min-height: 260px;
}

.ptc-modhead__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ptc-section--tight {
  margin-top: 24px;
}

.ptc-section__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--ptc-brand);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ptc-section__more .ptc-icon {
  width: 16px;
  height: 16px;
}

/* ---------- Чтение урока: белый лист ---------- */
.ptc-lesson .ptc-body {
  padding: 48px 64px 56px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  font-size: 18px;
  line-height: 1.75;
}

.ptc-lesson .ptc-body > :not(.ptc-gallery):not(.ptc-links):not(.ptc-table):not(.ptc-player):not(.ptc-figure) {
  max-width: 720px;
}

/* Врезки на белом листе — светло-серые */
.ptc-lesson .ptc-body .ptc-steps > li,
.ptc-lesson .ptc-body .ptc-note,
.ptc-lesson .ptc-body .ptc-quote,
.ptc-lesson .ptc-body .ptc-faq,
.ptc-lesson .ptc-body a.ptc-link,
.ptc-lesson .ptc-body a.ptc-video {
  background: #f6f7f9;
}

.ptc-lesson .ptc-body .ptc-steps > li::after {
  background: #ffffff;
}

.ptc-lesson .ptc-body .ptc-table {
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--ptc-line);
}

.ptc-lesson .ptc-toc,
.ptc-lesson .ptc-lesson__intro .ptc-pills li {
  background: var(--ptc-surface);
}

@media (max-width: 1100px) {
  .ptc-modhead {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-modhead__media {
    order: -1;
    min-height: 0;
    max-height: 260px;
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 767px) {
  .ptc-blocks {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ptc-block {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .ptc-block__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .ptc-block__done {
    top: 8px;
    right: 8px;
    padding: 5px;
  }

  .ptc-block__body {
    gap: 6px;
    padding: 14px 16px 16px;
  }

  /* Текст не мельче 12 px — как во всех кабинетах и публичных шаблонах (18.11.2026) */
  .ptc-block__label {
    font-size: 12px;
  }

  .ptc-block__title {
    font-size: 16px;
  }

  .ptc-block__meta {
    font-size: 13px;
  }

  .ptc-block__progress {
    padding-top: 8px;
  }

  .ptc-modhead__text {
    padding: 22px 20px 24px;
  }

  .ptc-modhead__title {
    font-size: 28px;
  }

  .ptc-lesson .ptc-body {
    margin-inline: -16px;
    padding: 28px 18px 32px;
    border-radius: 0;
    font-size: 17px;
  }
}

/* ---------- «О курсе» под катом ---------- */
.ptc-about__summary {
  color: var(--ptc-body);
  font-size: 15px;
  line-height: 1.6;
}

.ptc-about__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ptc-brand);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.ptc-about__more summary::-webkit-details-marker {
  display: none;
}

.ptc-about__more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.ptc-about__more[open] summary::after {
  transform: rotate(-135deg) translate(-2px, 0);
}

.ptc-about__more [data-open],
.ptc-about__more[open] [data-closed] {
  display: none;
}

.ptc-about__more[open] [data-open] {
  display: inline;
}

/* Полный текст показываем вместо выжимки */
.ptc-about:has(.ptc-about__more[open]) .ptc-about__summary {
  display: none;
}

.ptc-about__more[open] .ptc-about__text {
  margin-top: 12px;
}

/* Планшет: прогресс и сертификат рядом, «О курсе» — на всю ширину */
@media (max-width: 1100px) {
  .ptc-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ptc-aside .ptc-about {
    grid-column: 1 / -1;
  }

  .ptc-aside {
    align-items: stretch;
  }

  .ptc-aside .ptc-panel--progress {
    align-content: center;
  }
}

@media (max-width: 767px) {
  .ptc-aside {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Свои H1 на внутренних страницах: стили заголовков шаблона Intec (отступы, цвет, начертание) не нужны */
.ptc h1.ptc-hero__title,
.ptc h1.ptc-modhead__title,
.ptc h1.ptc-lesson__title,
.ptc h1.ptc-auth__title {
  margin: 0;
  padding: 0;
  color: var(--ptc-text);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

/* ---------- Урок для гостя: под замком ---------- */
.ptc-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
}

.ptc-gate__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  background: var(--ptc-ink);
}

.ptc-gate__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.65);
  transform: scale(1.08);
}

.ptc-gate__media--empty {
  background: linear-gradient(135deg, #c3061a 0%, var(--ptc-brand-dark) 100%);
}

.ptc-gate__lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ptc-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.ptc-gate__lock .ptc-icon {
  width: 30px;
  height: 30px;
}

.ptc-gate__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 36px 40px;
}

.ptc-gate__title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}

.ptc-gate__text {
  color: var(--ptc-body);
  line-height: 1.55;
}

.ptc-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.ptc-gate__partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ptc-muted);
  font-size: 14px;
}

.ptc-gate__partner .ptc-icon {
  width: 16px;
  height: 16px;
  color: var(--ptc-brand);
}

.ptc-account__cabinet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ptc-surface);
  color: var(--ptc-text);
  font-size: 14px;
}

.ptc-account__cabinet:hover {
  color: var(--ptc-brand);
}

.ptc-account__cabinet .ptc-icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 767px) {
  .ptc-gate {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-gate__media {
    min-height: 160px;
  }

  .ptc-gate__body {
    padding: 24px 20px 26px;
  }

  .ptc-gate__title {
    font-size: 22px;
  }

  .ptc-gate__actions .ptc-button {
    flex: 1 1 100%;
  }
}

/* =========================================================
   Публичный лендинг центра для гостя (.ptc--landing)
   ========================================================= */
.ptc .ptc-button--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #ffffff;
}

.ptc .ptc-button--ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.ptc-land-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  min-height: 560px;
  padding: 64px 56px;
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: linear-gradient(115deg, #c3061a 0%, var(--ptc-brand) 45%, var(--ptc-brand-dark) 100%);
  color: #ffffff;
}

.ptc-land-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='64'%3E%3Cpath d='M0 .5H96M0 32.5H96M.5 0V32M48.5 32V64' stroke='%23fff' stroke-opacity='.1' fill='none'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 70%);
  pointer-events: none;
}

.ptc-land-hero > * {
  position: relative;
}

.ptc-land-hero__text {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.ptc-land-hero__title {
  font-size: 60px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ptc-land-hero__lead {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  opacity: 0.9;
}

.ptc-land-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.ptc-land-hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.85;
}

.ptc-land-hero__note .ptc-icon {
  width: 16px;
  height: 16px;
}

.ptc-land-hero__collage {
  position: relative;
  height: 440px;
}

.ptc-land-hero__photo {
  position: absolute;
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(40, 0, 6, 0.35);
}

.ptc-land-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ptc-land-hero__photo figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ptc-text);
  font-size: 13px;
  font-weight: 500;
}

.ptc-land-hero__photo--1 {
  top: 0;
  right: 0;
  width: 72%;
  height: 58%;
}

.ptc-land-hero__photo--2 {
  bottom: 0;
  left: 0;
  width: 52%;
  height: 52%;
}

.ptc-land-hero__photo--3 {
  right: 6%;
  bottom: 4%;
  width: 40%;
  height: 36%;
}

.ptc-land-numbers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ptc-land-numbers li {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  color: var(--ptc-muted);
  font-size: 14px;
}

.ptc-land-numbers strong {
  color: var(--ptc-text);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 500;
}

.ptc-land-section {
  margin-top: 80px;
}

.ptc-land-section > .ptc-section__title {
  margin-bottom: 28px;
}

.ptc-land-courses {
  display: grid;
  gap: 20px;
}

.ptc-land-course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--ptc-radius);
  background: var(--ptc-surface);
  scroll-margin-top: calc(var(--ptc-sticky-top) + 12px);
}

.ptc-land-course--reverse .ptc-land-course__media {
  order: 2;
}

.ptc-land-course__media {
  position: relative;
  min-height: 420px;
  margin: 0;
  background: var(--ptc-soft);
}

.ptc-land-course__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ptc-land-course__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 44px 48px;
}

.ptc-land-course__body .ptc-card__audience {
  margin-bottom: -4px;
}

.ptc-land-course__title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 500;
}

.ptc-land-course__lead {
  color: var(--ptc-body);
  font-size: 18px;
  line-height: 1.5;
}

.ptc-land-course__body .ptc-button {
  margin-top: 8px;
}

.ptc-land-cert {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 48px;
  margin-top: 80px;
  padding: 56px;
  border-radius: var(--ptc-radius);
  background: var(--ptc-ink);
  color: #ffffff;
}

.ptc-land-cert__text {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.ptc-land-cert__title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 500;
}

.ptc-land-cert__text p:not(.ptc-banner__eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.6;
}

.ptc-land-cert__sheet {
  width: min(100%, 340px);
  justify-self: center;
  overflow: hidden;
  border-radius: 6px;
  transform: rotate(2.5deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.ptc-land-faq__list {
  display: grid;
  gap: 8px;
  max-width: 900px;
}

.ptc-land-faq__list .ptc-faq > div {
  color: var(--ptc-body);
}

.ptc-land-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 80px;
  padding: 64px 32px;
  border-radius: var(--ptc-radius);
  background: linear-gradient(115deg, #c3061a 0%, var(--ptc-brand) 45%, var(--ptc-brand-dark) 100%);
  color: #ffffff;
  text-align: center;
}

.ptc-land-cta__title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 500;
}

.ptc-land-cta__text {
  font-size: 18px;
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .ptc-land-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 44px 36px;
  }

  .ptc-land-hero__collage {
    height: 320px;
  }

  .ptc-land-numbers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ptc-land-course,
  .ptc-land-cert {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptc-land-course--reverse .ptc-land-course__media {
    order: 0;
  }

  .ptc-land-course__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .ptc-land-hero {
    padding: 28px 20px 24px;
  }

  .ptc-land-hero__title {
    font-size: 36px;
  }

  .ptc-land-hero__lead {
    font-size: 16px;
  }

  .ptc-land-hero__actions {
    width: 100%;
  }

  .ptc-land-hero__actions .ptc-button {
    flex: 1 1 100%;
  }

  .ptc-land-hero__collage {
    height: 220px;
  }

  .ptc-land-hero__photo figcaption {
    display: none;
  }

  .ptc-land-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ptc-land-numbers li {
    padding: 16px;
  }

  .ptc-land-numbers strong {
    font-size: 26px;
  }

  .ptc-land-section,
  .ptc-land-cert,
  .ptc-land-cta {
    margin-top: 48px;
  }

  .ptc-land-course__body {
    padding: 24px 20px 26px;
  }

  .ptc-land-course__title {
    font-size: 28px;
  }

  .ptc-land-course__body .ptc-button {
    width: 100%;
  }

  .ptc-land-cert {
    padding: 28px 20px;
  }

  .ptc-land-cert__title,
  .ptc-land-cta__title {
    font-size: 28px;
  }

  .ptc-land-cert__sheet {
    width: 220px;
  }

  .ptc-land-cta {
    padding: 36px 20px;
  }
}

.ptc-land-hero__photo--1 figcaption {
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
}

/* Превью YouTube hqdefault (4:3) содержит чёрные поля сверху и снизу по 12,5% высоты.
   Картинку растягиваем на 4/3 высоты рамки и сдвигаем вверх на 1/6 — поля уходят за край при любой форме рамки */
.ptc-block__media img[src*="ytimg.com/vi/"][src$="/hqdefault.jpg"],
.ptc-lcard__media img[src*="ytimg.com/vi/"][src$="/hqdefault.jpg"],
.ptc-modhead__media img[src*="ytimg.com/vi/"][src$="/hqdefault.jpg"] {
  top: -16.667%;
  bottom: auto;
  height: 133.334%;
}

.ptc-resume__image[src*="ytimg.com/vi/"][src$="/hqdefault.jpg"],
.ptc-mini__image[src*="ytimg.com/vi/"][src$="/hqdefault.jpg"],
.ptc-card__media img[src*="ytimg.com/vi/"][src$="/hqdefault.jpg"] {
  object-view-box: inset(12.5% 0);
}

/* Отмеченные флажки центра: согласие и тест с несколькими ответами. В CSS шаблона сайта (настройки конструктора Intec, $template->getCss(), хранится в базе) есть правило
   input[type=checkbox]:checked + span { background-color: transparent !important } —
   оно гасило заливку отмеченного квадрата, и галочка не была видна (замечание владельца 13.11.2026). */
.ptc .ptc-check input:checked + .ptc-check__box {
  background-color: var(--ptc-ink) !important;
}

.ptc .ptc-option input[type="checkbox"]:checked + .ptc-option__mark {
  background-color: var(--ptc-text) !important;
}

/* End */
/* /local/components/porotherm/courses/templates/.default/style.css?179499085297096 */
