/* landing-team.css — блок «Команда и контакты».

   Слева заголовок, справа карточки людей: автор курса крупно сверху,
   поддержка и продажи — в ряд под ним. Ниже карточка с реквизитами. */

.tm { position: relative; padding: clamp(60px, 7.2vw, 118px) 0; color: #eef2f8; }

.tm-grid {
  display: grid; grid-template-columns: minmax(0, .58fr) minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 62px); align-items: start;
}

/* ---------- левая колонка ---------- */
.tm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 9px 20px; border-radius: 999px;
  font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #8fc2ff; background: rgba(47, 127, 224, .16); border: 1px solid rgba(88, 150, 240, .45);
}
.tm-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3a97f2; box-shadow: 0 0 10px rgba(47, 142, 240, .9); }
.tm-title {
  margin: 0 0 18px; padding: 0;
  font-size: clamp(30px, 3.4vw, 50px); font-weight: 800; line-height: 1.04;
  letter-spacing: -.04em; color: #fff;
}
.tm-title::before { content: none; }
.tm-lead { margin: 0; max-width: 42ch; font-size: clamp(14.5px, 1.08vw, 16.5px); line-height: 1.62; color: #9fb0c6; }
.tm-lead::after {
  content: ""; display: block; width: 64px; height: 2px; margin-top: 22px; border-radius: 2px;
  background: linear-gradient(90deg, #3a97f2, rgba(58, 151, 242, 0));
}

/* ---------- карточки людей ---------- */
.tm-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.7vw, 26px); }
/* Сетка вместо флекса: аватар и подпись всегда начинаются с одной линии —
   на флексе аватар вставал по центру высокой карточки, а имя висело сверху. */
.tm-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: start; gap: 14px clamp(14px, 1.5vw, 20px);
  padding: clamp(20px, 2.1vw, 30px); border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(160deg, #0b0e15 0%, #08090f 100%);
  transition: border-color .18s ease, transform .18s ease;
}
.tm-card:hover { border-color: rgba(120, 175, 255, .4); transform: translateY(-2px); }
.tm-card-main {
  grid-column: 1 / -1;
  border-color: rgba(70, 150, 245, .45);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(47, 127, 224, .16), transparent 62%),
    linear-gradient(160deg, #0c1018 0%, #080a10 100%);
  box-shadow: 0 0 60px -40px rgba(47, 142, 240, .9);
}

.tm-ava { position: relative; flex: none; }
.tm-ava img {
  display: block; width: clamp(60px, 5vw, 72px); height: clamp(60px, 5vw, 72px);
  border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(88, 150, 240, .38);
}
.tm-card-main .tm-ava img { width: clamp(68px, 5.8vw, 84px); height: clamp(68px, 5.8vw, 84px); }
.tm-ava i {
  position: absolute; right: 2px; bottom: 2px; width: 11px; height: 11px; border-radius: 50%;
  background: #2ec5a4; border: 2px solid #0a0d13;
}

.tm-body { min-width: 0; }
.tm-body h3 { margin: 0 0 3px; font-size: clamp(16.5px, 1.25vw, 19px); font-weight: 700; letter-spacing: -.01em; color: #fff; }
.tm-body h3::before { content: none; }
.tm-role { margin: 0 0 14px; font-size: clamp(13px, .98vw, 14.5px); color: #7f9dc4; }

/* контакты — ровные строки, а не разнокалиберные плашки */
.tm-links { display: grid; gap: 6px; max-width: 340px; }
/* карточка автора идёт во всю ширину — там контакты встают парой */
.tm-card-main .tm-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
.tm-links a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  min-width: 0;
  text-decoration: none; color: #cfdcec;
  border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025);
  transition: border-color .16s ease, background .16s ease;
}
.tm-links a:hover { border-color: rgba(120, 175, 255, .4); background: rgba(47, 127, 224, .1); }
.tm-links svg { width: 17px; height: 17px; flex: none; color: #4a94ec; }
.tm-links b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tm-links span { display: block; margin-top: 1px; font-size: 10.5px; color: #74859a; }

.tm-badge {
  grid-column: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font: 600 11.5px/1 var(--sans); letter-spacing: .02em; color: #a9c8ee;
  border: 1px solid rgba(88, 150, 240, .32); background: rgba(47, 127, 224, .1);
}
.tm-badge svg { width: 13px; height: 13px; color: #d9b673; }

/* ---------- реквизиты ---------- */
.tm-legal {
  display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 52px); margin-top: clamp(26px, 2.8vw, 42px);
  padding: clamp(24px, 2.6vw, 40px); border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(160deg, #0b0e15 0%, #08090f 100%);
}
.tm-legal-head { display: grid; gap: 14px; align-content: start; }
.tm-legal-ic {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg, rgba(58, 151, 242, .9), rgba(30, 110, 210, .7));
  box-shadow: 0 16px 36px -20px rgba(47, 142, 240, .95);
}
.tm-legal-ic svg { width: 30px; height: 30px; }
.tm-legal-head h3 { margin: 0 0 4px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.tm-legal-head h3::before { content: none; }
.tm-legal-head p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #8b9bb0; }

.tm-legal dl { margin: 0; display: grid; gap: 0; }
.tm-legal dl > div {
  display: grid; grid-template-columns: minmax(0, .3fr) minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.tm-legal dl > div:last-of-type { border-bottom: none; }
.tm-legal dt { font-size: 13.5px; color: #8b9bb0; }
.tm-legal dd { margin: 0; font-size: 14px; line-height: 1.5; color: #dbe6f4; }
.tm-docs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 16px 0 0;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13.5px; color: #8b9bb0;
}
.tm-docs a { display: inline-flex; align-items: center; gap: 8px; color: #8fc2ff; }
.tm-docs svg { width: 16px; height: 16px; color: #4a94ec; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-legal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tm-people { grid-template-columns: minmax(0, 1fr); }
  .tm-legal dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* на телефоне строки контактов нажимают пальцем — делаем их выше */
  .tm-links, .tm-card-main .tm-links { grid-template-columns: minmax(0, 1fr); max-width: none; gap: 8px; }
  .tm-links a { padding: 11px 13px; }
  /* у двухстрочной ссылки иконка съезжала на середину текста */
  .tm-docs a { align-items: flex-start; }
  .tm-docs svg { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .tm-card { transition: none; } }
