/* ============================================================
   AURUMFIT — Тренеры (trainers.html)
   Figma node: 11-2118  |  Page: 1728 × 1586
   ============================================================ */

.tn-page {
  min-height: 1586px;
}

/* footer override: footer at 1207px on this page */
.tn-page .lk-footer {
  top: 1207px;
}

/* ---------- Content ---------- */
.tn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 157px;
  padding-bottom: 80px;
}

/* ---------- Title ---------- */
.tn-title {
  font-family: var(--font-text);
  font-size: 64px;
  font-weight: 500;
  line-height: 68px;
  text-align: center;
  color: var(--color-white);
  margin-bottom: 24px;
}

/* ---------- Subtitle ---------- */
/* Figma: 1025px wide, 18px, #a5a3a0, centered, 3 lines */
.tn-subtitle {
  font-family: var(--font-text);
  font-size: 18px;
  color: #a5a3a0;
  text-align: center;
  line-height: 28px;
  margin-bottom: 56px;
  max-width: 1025px;
}

/* ---------- Slider wrap ---------- */
/* Figma: cards from x=125 to x=1597 = 1472px; using 1480px */
.tn-slider-wrap {
  position: relative;
  width: 1480px;
  margin-bottom: 56px;
}

/* ---------- Arrows (overlaid between cards) ---------- */
/* Card 1: 0–404, gap: 404–534, Card 2: 534–938, gap: 938–1068, Card 3: 1068–1472 */
/* Arrow prev center: 404+65=469, Arrow next center: 534+404+65=1003 */
.tn-arrow {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 225px; /* ~47% of 530px card height */
  transform: translateY(-50%);
  z-index: 5;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.tn-arrow:hover { opacity: 1; }

.tn-arrow img { width: 32px; }

.tn-arrow--prev {
  left: 421px; /* 404+65-48 = 421 */
}

.tn-arrow--next {
  left: 979px; /* 534+404+65-24 = 979 */
}

/* ---------- Slider track ---------- */
/* Figma: 3 cards × 404px, 130px gaps */
.tn-slider {
  display: grid;
  grid-template-columns: 404px 404px 404px;
  gap: 130px;
  overflow: visible;
}

/* ---------- Trainer card ---------- */
/* Figma mask-size: 404 × 530px */
.tn-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  width: 404px;
  height: 530px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.55;
  transform: scale(0.95);
}

.tn-card--active {
  opacity: 1;
  transform: scale(1);
}

.tn-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay */
.tn-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 5, 0.92) 0%, rgba(10, 8, 5, 0.2) 55%, transparent 100%);
}

/* Text info */
.tn-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 28px;
}

.tn-card__name {
  font-family: var(--font-text);
  font-size: 26px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 4px;
  text-align: center;
}

.tn-card__exp {
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--color-white);
  text-align: center;
  line-height: 28px;
  margin-bottom: 8px;
}

.tn-card__spec {
  font-family: var(--font-text);
  font-size: 16px;
  color: #c7c7c7;
  text-align: center;
  line-height: 28px;
}

/* ---------- Contacts ---------- */
/* Figma: divider 555px; label 22px; phone 36px Nimbus */
.tn-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 1025px;
}

.tn-contacts__divider {
  width: 555px;
  height: 4px;
  background: rgba(217, 217, 217, 0.2);
  border-radius: 2px;
  margin-bottom: 8px;
}

.tn-contacts__label {
  font-family: var(--font-text);
  font-size: 22px;
  color: var(--color-white);
  line-height: 45px;
}

.tn-contacts__phone {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  line-height: 36px;
}

.tn-contacts__phone:hover { color: var(--color-accent-1); }

/* Figma: icon (24px) + "Написать в Telegram" (14px Museo/Graphik) + underline below */
.tn-contacts__tg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.tn-contacts__tg:hover { opacity: 1; }

.tn-contacts__tg-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-contacts__tg img {
  width: 24px;
  height: 24px;
}

.tn-contacts__tg-text {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--color-white);
}

.tn-contacts__tg-line {
  width: 139px;
  height: 1px;
  background: #b2b2b2;
}
