/* Showcase section "Как это выглядит" on /for-trainers. */

.ft-showcase {
  margin-top: 32px;
}

.ft-showcase .ft-muted {
  margin-top: 8px;
}

.ft-showcase__steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
}

.ft-showcase__step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-showcase__step-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ds-text);
}

.ft-showcase__step-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-text-dim);
  max-width: 65ch;
}

.ft-showcase__img-wrap {
  margin-top: 6px;
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

/* Расписание (десктоп) — шире, до 720px */
.ft-showcase__img-wrap--wide {
  max-width: 100%;
}

/* Скрины из Telegram (чат/бот) — компактно, чтобы не растягивать и сохранить чёткость */
.ft-showcase__img-wrap--tg {
  max-width: 320px;
}

/* Скрин “запись на сайте” — вертикальный, поэтому держим уже, чем wide */
.ft-showcase__img-wrap--site {
  max-width: 360px;
}

/* Публичный профиль — карточка, средний размер */
.ft-showcase__img-wrap--profile {
  max-width: 520px;
}

.ft-showcase__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Кликабельные картинки — курсор и подсказка */
.ft-showcase__img-wrap--zoomable {
  cursor: pointer;
}

.ft-showcase__img-wrap--zoomable:focus {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

.ft-showcase__img-wrap--zoomable:focus:not(:focus-visible) {
  outline: none;
}

/* Модальное окно увеличенного просмотра */
.ft-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}

.ft-zoom-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.ft-zoom-modal[hidden] {
  display: none;
}

.ft-zoom-modal:not([hidden]).is-open {
  display: flex;
}

.ft-zoom-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.75);
  cursor: pointer;
}

.ft-zoom-modal__inner {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ft-zoom-modal__inner > * {
  pointer-events: auto;
}

.ft-zoom-modal__img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.ft-zoom-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ds-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.ft-zoom-modal__close:hover {
  background: #fff;
}

.ft-zoom-modal__close:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .ft-showcase__steps {
    gap: 36px;
  }

  .ft-showcase__step-title {
    font-size: 20px;
  }

  .ft-showcase__img-wrap {
    border-radius: 16px;
  }

  .ft-showcase__img-wrap--wide {
    max-width: 720px;
  }

  .ft-showcase__img-wrap--tg {
    max-width: 340px;
  }

  .ft-showcase__img-wrap--site {
    max-width: 420px;
  }

  .ft-showcase__img-wrap--profile {
    max-width: 560px;
  }
}
