/* obrigado.html — португальская страница «Obrigada» после оплаты (compra aprovada),
   строго по документу «Мостик оплата → доступ» (разделы 05 и 06.1).
   Основа — assets/site.css + assets/spasibo.css (не меняются). Здесь только отличия PT-страницы.
   Правила простоты (TZ4): один акцент на блок, белые карточки 24/1 px/мягкая тень, текст ≥ 14 px, Prata без курсива. */

/* Закреплённой панели на этой странице нет — нижний запас из site.css не нужен */
body.ty { padding-bottom: env(safe-area-inset-bottom); }

/* ---------- Первый экран ---------- */
.ty-hero { padding-bottom: 36px; }
/* H1 — одна фраза документа, показана в два яруса: «Pagamento confirmado!» одной строкой (на 390 — 29 px,
   на 320 — 24 px, иначе переносится), продолжение — 2 строки. Итого не больше 3 строк на всех ширинах. */
.ty h1 { font-size: clamp(24px, 7.5vw, 30px); line-height: 1.12; }
.ty-h1-main, .ty-h1-sub { display: block; }
.ty-h1-main { white-space: nowrap; }
.ty-h1-sub { margin-top: 10px; font-size: clamp(19px, 5.4vw, 22px); line-height: 1.25; text-wrap: balance; }
.ty-lead { margin-top: 22px; }

/* Заглушка видео «como entrar no curso» (16:9). Кадров нет — только спокойная карточка, play и подпись. */
.ty-video {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; margin: 24px 0 0; padding: 16px; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); background: linear-gradient(160deg, var(--sky-1) 0%, var(--sky-2) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center;
}
.ty-video__play {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(31, 42, 51, .35);
}
/* треугольник #i-play: центр тяжести уже в центре viewBox — без сдвигов */
.ty-video__play svg { width: 24px; height: 24px; }
.ty-video__cap { max-width: 17em; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); text-wrap: balance; }
/* будущий настоящий плеер займёт ту же рамку */
.ty-video--real { display: block; padding: 0; background: var(--ink); object-fit: contain; }

/* ---------- 3 шага ---------- */
.ty-how h2 { text-wrap: balance; }
.ty-steps { gap: 16px; margin: 24px 0 0; }
.ty-step {
  display: block; padding: 20px 18px 18px;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ty-step::before { display: none; }           /* линия-связка из spasibo.css не нужна */
.ty-step h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ink); text-wrap: balance; }
/* номер шага — тем же Raleway: у Prata «1» похожа на «l» */
.ty-n { margin-right: 2px; font-variant-numeric: lining-nums; }
.ty-step p { font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.ty-step p + p { margin-top: 10px; }
/* Тема письма — единственный акцент карточки шага 1 */
.ty-step .ty-subj {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start;
  margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: var(--sky-0); border: 1px solid var(--line);
}
.ty-subj svg { width: 22px; height: 22px; margin-top: 1px; color: var(--azure-sm); }

/* Слот скриншота с телефона: светлая «рамка телефона» с подписью. Реальные скрины — позже (Семён). */
.ty-shot { display: flex; justify-content: center; margin: 18px 0 0; }
.ty-phone {
  width: min(168px, 62%); aspect-ratio: 9 / 19.5; padding: 7px;
  border-radius: 30px; background: var(--sky-2); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ty-phone__screen {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  height: 100%; padding: 0 10px; border-radius: 23px; background: var(--sky-0); text-align: center;
}
.ty-phone__screen::before {        /* «динамик» сверху — только декор */
  content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 5px; margin-left: -20px;
  border-radius: 3px; background: rgba(31, 42, 51, .12);
}
.ty-phone svg { width: 28px; height: 28px; color: var(--muted); }
.ty-phone__cap { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--muted); }
/* будущий настоящий скрин: целиком, без обрезки */
.ty-phone-img { display: block; width: min(220px, 72%); height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Помощь ---------- */
.ty-stuck {
  margin-top: 20px; padding: 20px 18px; text-align: center;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ty-stuck svg { display: block; width: 26px; height: 26px; margin: 0 auto 10px; color: var(--azure-sm); }
.ty-stuck p { font-size: 16px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
/* Ссылка на почту: крупная, жирная, подчёркнутая; вертикальные поля расширяют зону нажатия, строку не раздвигают */
/* Адрес всегда отдельной строкой посреди фразы (на 320 «para» не повисает одно); не рвётся: 229 px, колонка на 320 — от 252 px.
   Высота строки-ссылки 44 px — крупная зона нажатия. */
.ty-link {
  display: block; width: fit-content; margin: 0 auto; padding: 9px 0;
  font-size: 17px; font-weight: 700; color: var(--azure-sm); white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.ty-end { padding-top: 32px; padding-bottom: 12px; }
.ty-final { max-width: 25em; margin: 0 auto; font-size: 16px; line-height: 1.55; text-align: center; color: var(--ink); text-wrap: pretty; }

/* ---------- Подвал ---------- */
.ty-foot { padding: 24px 20px 36px; font-size: 14px; }
.ty-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; margin-top: 6px; }
.ty-foot .ty-foot__links a {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 8px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 359px) {
  .ty-step { padding: 18px 16px 16px; }
  .ty-step .ty-subj { padding: 12px; }
  .ty-stuck { padding: 18px 14px; }
}

/* Эрика на первом экране (Лиза 30.09: «не хватает самой Эрики»): панель неба с вырезкой, как на странице формы; галочка садится на её нижний край */
.ty-hero { padding-top: 0; }
.ty-stage { --ph: 216px; --ih: 560px; --pop: 26px; margin-top: 30px; }
.ty-stage .hero__glow { animation: none; }
.ty-hero .ty-badge { position: relative; z-index: 2; width: 60px; height: 60px; margin: -30px auto 12px; }
.ty-hero .ty-badge svg { width: 30px; height: 30px; }

/* =====================================================================
   Планшет и десктоп (TZ9, 30.09). Телефон (до 767 px) не меняется: всё ниже — только внутри min-width 768 / 1024.
   Страница на всю ширину окна (фон неба до краёв), содержимое — в контейнере до 1120 px по центру.
   Первый экран — две колонки: слева панель неба с Эрикой (выходит головой над панелью, галочка на нижнем крае),
   справа заголовок, абзац и видео 16:9 во всю колонку. Шаги: 768–1023 — одна колонка карточек (текст слева,
   рамка телефона справа), от 1024 — три равные колонки (рамка телефона внизу по центру).
   ===================================================================== */
@media (min-width: 768px) {
  body.ty .page { max-width: none; box-shadow: none; }
  /* картинка неба секций: в site.css у неё aspect-ratio + max-height, и на широком окне она сжимается
     в полосу ~390 px у левого края с резкой границей — растягиваем на всю секцию */
  .ty .bg-hero::before, .ty .bg-section::before { bottom: 0; aspect-ratio: auto; max-height: none; }
  /* поля секций: 32 px или столько, чтобы содержимое было не шире 1120 px */
  .ty .blk { padding-left: max(32px, calc((100% - 1120px) / 2)); padding-right: max(32px, calc((100% - 1120px) / 2)); }

  /* ---------- Первый экран ---------- */
  .ty-hero, .ty-hero .ty-stage { --ph: 460px; --pop: 40px; }
  .ty-hero {
    display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); column-gap: 32px;
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: "stage ." "stage title" "stage lead" "stage video" "stage .";
    padding-top: 8px; padding-bottom: 64px; text-align: left;
  }
  /* высота холста вырезки от ширины панели: фигура целиком по ширине, ось лица — по центру панели */
  .ty-hero .ty-stage { --ih: calc((45vw - 43px) * 2.4); grid-area: stage; align-self: start; height: var(--ph); margin: calc(var(--pop) + 8px) 0 0; }
  /* галочка — на нижнем крае панели, как на телефоне */
  .ty-hero .ty-badge { grid-area: stage; align-self: start; justify-self: center; margin: calc(var(--pop) + 8px + var(--ph) - 30px) 0 0; }
  .ty-hero h1 { grid-area: title; font-size: 32px; line-height: 1.12; text-align: left; }
  .ty-h1-sub { margin-top: 12px; font-size: 22px; }
  .ty-hero .ty-lead { grid-area: lead; max-width: 30em; margin: 20px 0 0; }
  .ty-hero .ty-video { grid-area: video; margin: 26px 0 0; }

  /* ---------- 3 шага ---------- */
  .ty-how { padding-top: 64px; }
  .ty-how h2 { font-size: 34px; }
  .ty-steps { gap: 20px; margin-top: 32px; }

  /* ---------- Помощь, последний абзац, подвал — по центру, текст до 640 px ---------- */
  .ty-stuck { max-width: 640px; margin: 32px auto 0; padding: 24px 36px; }
  .ty-end { padding-top: 40px; padding-bottom: 16px; }
  .ty-end .ty-final { max-width: 640px; margin: 0 auto; }      /* .ty p из spasibo.css обнуляет поля — центрируем явно */
  .ty-foot { padding: 28px max(32px, calc((100% - 1120px) / 2)) 44px; }
}

/* Планшет: шаги — одна колонка карточек; в карточке текст слева, рамка телефона справа по центру высоты */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .ty-steps { max-width: 720px; margin-left: auto; margin-right: auto; }
  .ty-step {
    display: grid; grid-template-columns: minmax(0, 1fr) 150px; grid-template-rows: repeat(4, auto) 1fr;
    column-gap: 32px; align-content: start; padding: 26px 28px;
  }
  .ty-step > :not(.ty-shot) { grid-column: 1; }
  .ty-step > .ty-shot { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0; }
  .ty-step .ty-phone { width: 100%; }
  .ty-step .ty-phone-img { width: 100%; }
}

@media (min-width: 1024px) {
  /* ---------- Первый экран: колонки 50/50 ---------- */
  .ty-hero, .ty-hero .ty-stage { --ph: 500px; }
  .ty-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; padding-bottom: 72px; }
  .ty-hero .ty-stage { --ih: calc(var(--ph) * 2.2); }
  .ty-hero h1 { font-size: 40px; }
  .ty-h1-sub { margin-top: 14px; font-size: 24px; }
  .ty-hero .ty-lead { margin-top: 22px; font-size: 18px; }
  .ty-hero .ty-video { margin-top: 28px; }

  /* ---------- 3 шага в три колонки одной высоты; рамка телефона — внизу по центру ---------- */
  .ty-how { padding-top: 72px; }
  .ty-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
  .ty-step { display: flex; flex-direction: column; padding: 26px 24px 26px; }
  .ty-step > .ty-shot { margin-top: auto; padding-top: 22px; }
}

@media (min-width: 1280px) {
  .ty-hero, .ty-hero .ty-stage { --ph: 540px; }
  .ty-hero h1 { font-size: 44px; }
  .ty-h1-sub { font-size: 26px; }
}


/* =====================================================================
   Инструкция: 7 слайдов-скринов (Никита 02.10). Телефон — лента с боковой подсказкой «листай», точки под ней;
   планшет — 2 слайда в кадре, от 1024 — 3, стрелки по бокам. Текст слайдов продублирован в <details> ниже ленты.
   ===================================================================== */
.ty-guide__hint {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; padding: 0 12px;
  font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--muted); text-align: center;
}
.ty-guide__hint svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ty-guide { position: relative; margin: 14px 0 0; }
.ty-guide__track {
  position: relative; display: flex; gap: 14px; margin: 0 -20px; padding: 4px 20px 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ty-guide__track::-webkit-scrollbar { display: none; }
.ty-guide__track:focus-visible { outline: 3px solid var(--azure-sm); outline-offset: 2px; border-radius: 12px; }
.ty-slide {
  flex: 0 0 min(80%, 330px); margin: 0; scroll-snap-align: start; border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ty-slide img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.ty-guide__btn {
  position: absolute; top: calc(50% - 30px); z-index: 2; display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(31, 42, 51, .45); -webkit-tap-highlight-color: transparent;
}
.ty-guide__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ty-guide__btn:focus-visible { outline: 3px solid var(--azure-sm); outline-offset: 2px; }
.ty-guide__btn[disabled] { opacity: .35; cursor: default; }
.ty-guide__btn--prev { left: -14px; }
.ty-guide__btn--next { right: -14px; }
.ty-guide__dots { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: -2px; }
.ty-guide__dots button { position: relative; width: 24px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ty-guide__dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: rgba(31, 42, 51, .22); transition: width .2s ease, margin .2s ease, background .2s ease; }
.ty-guide__dots button[aria-current="true"]::before { width: 22px; margin-left: -11px; background: var(--ink); }
.ty-guide__dots button:focus-visible { outline: 3px solid var(--azure-sm); outline-offset: 0; border-radius: 8px; }

.ty-text { margin: 22px 0 0; border-radius: var(--r-md, 18px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ty-text > summary {
  display: flex; align-items: center; min-height: 52px; padding: 0 18px; list-style: none; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.ty-text > summary::-webkit-details-marker { display: none; }
.ty-text > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.ty-text[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ty-text > summary:focus-visible { outline: 3px solid var(--azure-sm); outline-offset: 2px; border-radius: 16px; }
.ty-text__list { margin: 0; padding: 4px 18px 18px 38px; }
.ty-text__list li { padding: 12px 0; border-top: 1px solid var(--line); }
.ty-text__list li:first-child { border-top: 0; }
.ty-text__list h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.ty-text__list p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.ty-text__list .ty-text__tip { margin-top: 6px; color: var(--muted); }

@media (min-width: 768px) {
  .ty-guide__hint { display: none; }
  .ty-guide { margin-top: 28px; }
  .ty-guide__track { gap: 20px; margin: 0; padding: 4px 0 16px; scroll-padding-inline: 0; }
  .ty-slide { flex: 0 0 calc((100% - 20px) / 2); }
  .ty-guide__btn { display: grid; }
  .ty-text { max-width: 720px; margin-inline: auto; }
}
@media (min-width: 1024px) {
  .ty-slide { flex: 0 0 calc((100% - 40px) / 3); }
}
@media (prefers-reduced-motion: reduce) { .ty-guide__dots button::before, .ty-text > summary::after { transition: none; } }
