/* ============================================================
   team-profile.css — страница профиля члена команды
   Префикс tp-*. Подключается после base.css и nav.css.
   ============================================================ */

/* ====================== ЧЕРЕДУЮЩИЙСЯ ФОН ======================
   Переопределяем глобальный тёплый «крем» (.section--soft) только
   в пределах профиля: холодная техно-поверхность под фирменный
   lime/ink-стиль вместо бежевого. Глобальные страницы не трогаем. */
#main-content .section--soft {
  position: relative;
  background:
    radial-gradient(135% 115% at 0% 0%, rgba(197,255,26,0.06), transparent 55%),
    linear-gradient(180deg, #F7F8FA 0%, #F1F3F6 100%);
  border-block: 1px solid var(--ink-150);
}

/* ====================== HERO ====================== */

.tp-hero {
  position: relative;
  padding: 132px 0 96px;
  background: var(--bg-page);
  overflow: hidden;
}
@media (max-width: 768px) { .tp-hero { padding: 104px 0 64px; } }

.tp-hero-dots { opacity: 0.6; }
.tp-crumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
}
.tp-crumbs a { color: var(--ink-600); border-bottom: none; }
.tp-crumbs a:hover { color: var(--ink-950); }

.tp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .tp-hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

.tp-hero-photo {
  position: relative;
  border-radius: var(--r-7);
  overflow: hidden;
  border: var(--edge-border-w) solid var(--edge-border-color);
  box-shadow: var(--edge-shadow);
  background: var(--ink-100);
  aspect-ratio: 4 / 5;
}
.tp-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .tp-hero-photo { max-width: 360px; aspect-ratio: 1 / 1; }
}

.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-700);
  background: var(--ink-50);
  border: var(--border-hair);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.tp-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(24,27,37,0.12);
}

.tp-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.2vw, 64px);
  font-stretch: var(--type-stretch-h);
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink-950);
  margin: 0 0 10px;
}

.tp-role {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 500;
  color: var(--ink-600);
  margin: 0 0 28px;
}

.tp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.tp-stat {
  flex: 1 1 160px;
  background: var(--ink-50);
  border: var(--border-hair);
  border-radius: var(--r-5);
  padding: 18px 20px;
}
.tp-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: var(--type-stretch-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-950);
}
.tp-stat-num::after {
  content: '';
  display: block;
  width: 28px; height: 3px;
  margin-top: 10px;
  background: var(--lime-400);
  border-radius: 2px;
}
.tp-stat-label {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-600);
}

.tp-comp { margin-bottom: 26px; }
.tp-comp-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.tp-comp-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tp-comp-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-800);
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  padding: 9px 15px;
  border-radius: var(--r-pill);
}
.tp-comp-item svg { color: var(--accent); flex: none; }

.tp-bio {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-700);
  max-width: 640px;
  margin: 0 0 30px;
}
.tp-fresh {
  max-width: 640px;
  margin: -10px 0 28px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
}
.tp-fresh time { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-600); }
.tp-fresh ul { margin: 8px 0 0; padding-left: 18px; }
.tp-fresh li + li { margin-top: 4px; }

.tp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ====================== СЕРТИФИКАТЫ ====================== */

.tp-certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.tp-cert {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--border-hair);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  cursor: pointer;
}
.tp-cert:hover { border-color: var(--lime); }
.tp-cert.is-hidden { display: none; }

.tp-cert-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink-100);
  overflow: hidden;
  border-bottom: var(--border-hair);
}
.tp-cert-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tp-cert-zoom {
  position: absolute;
  top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  box-shadow: var(--shadow-2);
  opacity: 0;
}
.tp-cert:hover .tp-cert-zoom { opacity: 1; }

.tp-cert-body { padding: 18px 20px 22px; }
.tp-cert-ic {
  display: none;
}
.tp-cert-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  margin: 0 0 6px;
}
.tp-cert-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-600);
  margin: 0;
}

.tp-more-row { display: flex; justify-content: center; margin-top: 36px; }
.tp-more svg { color: inherit; }

/* ====================== РЕДАКТОР И FAQ ====================== */
.tp-editorial > p { max-width: 720px; margin: 28px 0 0; font-size: 17px; line-height: 1.65; color: var(--ink-700); }
.tp-editorial-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tp-faq { display: grid; gap: 0; max-width: 880px; margin: 44px 0 0; }
.tp-faq-item { padding: 24px 0; border-top: var(--border-hair); }
.tp-faq-item:last-child { border-bottom: var(--border-hair); }
.tp-faq dt { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink-950); }
.tp-faq dd { max-width: 76ch; margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-700); }

/* ====================== ОПЫТ РАБОТЫ (таймлайн) ====================== */

.tp-timeline {
  position: relative;
  margin-top: 52px;
  max-width: 880px;
}
.tp-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 24px;
  padding-bottom: 30px;
}
.tp-tl-item:last-child { padding-bottom: 0; }

/* рельса + узел */
.tp-tl-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.tp-tl-rail::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: -30px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--ink-200), var(--ink-150));
}
.tp-tl-item:last-child .tp-tl-rail::before { display: none; }
.tp-tl-dot {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--lime-400);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--ink-200);
}

.tp-tl-content { min-width: 0; }
.tp-tl-period {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-700);
  background: var(--ink-50);
  border: var(--border-hair);
  padding: 6px 13px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.tp-tl-period svg { color: var(--accent); }

.tp-tl-card {
  background: var(--white);
  border: var(--border-hair);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-1);
  padding: 22px 24px;
}
.tp-tl-card:hover { border-color: var(--lime); }

.tp-tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: var(--border-soft);
}
.tp-tl-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  margin: 0;
}
.tp-tl-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
}
.tp-tl-company::before { content: '·'; margin-right: 8px; color: var(--ink-300); }

.tp-tl-points {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.tp-tl-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-700);
}
.tp-tl-tick {
  flex: none;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--lime-100);
  color: var(--lime-600);
}

@media (max-width: 600px) {
  .tp-tl-item { grid-template-columns: 22px 1fr; gap: 16px; }
}

/* ====================== НАПРАВЛЕНИЯ И ИНСТРУМЕНТЫ ====================== */

.tp-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.tp-tool-group {
  position: relative;
  background: var(--white);
  border: var(--border-hair);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-1);
  padding: 24px;
  overflow: hidden;
}
.tp-tool-group:hover { border-color: var(--lime); }

.tp-tool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.tp-tool-ic {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-3);
  background: var(--accent);
  color: var(--lime);
}
.tp-tool-title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-950);
  margin: 0;
}
.tp-tool-count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  background: var(--ink-50);
  border: var(--border-hair);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}
.tp-chips {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-chip {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  padding: 7px 13px;
  border-radius: var(--r-pill);
}
.tp-chip:hover { border-color: var(--lime); color: var(--ink-950); }

/* ====================== ОТЗЫВЫ ====================== */

.tp-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
@media (max-width: 980px) { .tp-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tp-reviews { grid-template-columns: 1fr; } }

.tp-review {
  display: flex;
  flex-direction: column;
  margin: 0;                 /* сбрасываем дефолтный margin <figure> (1em 40px) */
  background: var(--white);
  border: var(--border-hair);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-1);
  padding: 24px;
}
.tp-review:hover { border-color: var(--lime); }
.tp-review.is-hidden { display: none; }
.tp-review-q { color: var(--lime-600); margin-bottom: 12px; }
.tp-review-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0 0 20px;
  flex: 1;
}
.tp-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: var(--border-soft);
}
.tp-review-ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--ink-100);
}
.tp-review-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-950);
}
.tp-review-role {
  display: block;
  font-size: 13px;
  color: var(--ink-500);
}

/* ====================== АВТОР ПРОЕКТОВ ====================== */

.tp-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.tp-project {
  --proj: var(--accent);     /* фирменный цвет проекта (переопределяется inline) */
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--border-hair);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
/* скриншот сайта сверху */
.tp-project-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink-100);
  border-bottom: var(--border-hair);
  overflow: hidden;
}
.tp-project-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.tp-project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 24px 24px;
}
.tp-project-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tp-project-ic {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--proj) 12%, var(--white));
  border: 1px solid color-mix(in srgb, var(--proj) 26%, var(--white));
  color: var(--proj);
  overflow: hidden;
}
.tp-project-ic img {
  width: 22px; height: 22px;
  object-fit: contain;
  border-radius: 5px;
}
.tp-project-link {
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: var(--border-hair);
  color: var(--ink-500);
}
.tp-project-link:hover {
  color: var(--ink-950);
  border-color: var(--lime);
}
.tp-project-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  margin: 0;
  word-break: break-word;
}
.tp-project-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
  flex: 1;
}
.tp-project-host {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: color-mix(in srgb, var(--proj) 60%, var(--ink-600));
}

/* ====================== КЕЙСЫ ====================== */

.tp-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.tp-case {
  background: var(--white);
  border: var(--border-hair);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-1);
  padding: 24px;
  border-left: 3px solid var(--lime-400);
}
.tp-case:hover { border-color: var(--lime); }
.tp-case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tp-case-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  margin: 0;
}
.tp-case-link {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: var(--border-hair);
  color: var(--ink-500);
}
.tp-case-link:hover { color: var(--ink-950); border-color: var(--lime); }
.tp-case-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0 0 16px;
}
.tp-case-tags {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-case-tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--lime-100);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

/* ====================== СВЯЗАТЬСЯ ====================== */

.tp-contact {
  position: relative;
  background: var(--ink-950);
  color: var(--white);
  padding: 104px 0;
  overflow: hidden;
}
@media (max-width: 768px) { .tp-contact { padding: 72px 0; } }

.tp-contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .tp-contact-inner { grid-template-columns: 1fr; gap: 36px; }
}

.tp-contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  font-stretch: var(--type-stretch-h);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0 0 14px;
  color: var(--white);
}
.tp-contact-title .lime-tape {
  background: var(--lime);
  color: var(--ink-950);
  padding: 0.02em 0.2em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.tp-contact-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-300);
  margin: 0 0 28px;
  max-width: 440px;
}

.tp-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tp-contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: var(--r-5);
  padding: 18px 22px;
  color: var(--white);
}
.tp-contact-card:hover { border-color: var(--lime); }
.tp-contact-ic {
  grid-row: 1 / 3;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-3);
  background: rgba(197,255,26,0.12);
  color: var(--lime);
}
.tp-contact-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.tp-contact-card-val {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}
.tp-contact-socials {
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: var(--r-5);
  padding: 18px 22px;
}
.tp-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.tp-social {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-200);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-pill);
  padding: 8px 16px;
}
.tp-social:hover { border-color: var(--lime); color: var(--lime); }

/* ====================== LIGHTBOX ====================== */

.tp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(4px);
  animation: tpFadeIn var(--dur-2) var(--ease-out);
}
.tp-lightbox[hidden] { display: none; }
@keyframes tpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.tp-lightbox-fig {
  margin: 0;
  max-width: min(920px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tp-lightbox-fig img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--r-4);
  box-shadow: var(--shadow-4);
  background: var(--white);
}
.tp-lightbox-fig figcaption {
  text-align: center;
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
}
.tp-lightbox-close {
  position: absolute;
  top: 22px; right: 24px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  cursor: pointer;
}
.tp-lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ====================== A11Y / MOTION ====================== */

@media (prefers-reduced-motion: reduce) {
  .tp-lightbox { animation: none; }
}

/* ====================== МОБИЛЬНЫЕ СЛАЙДЕРЫ ======================
   На телефоне все блоки с карточками превращаем в горизонтальные
   слайдеры со scroll-snap, включая таймлайн опыта — у него рельса
   разворачивается из вертикальной в горизонтальную (см. ниже).
   Брейкпоинт 600px совпадает со сменой паддинга .container (16px). */
@media (max-width: 600px) {
  .tp-certs,
  .tp-tools,
  .tp-projects,
  .tp-cases,
  .tp-reviews {
    display: flex;
    grid-template-columns: none;          /* сбрасываем grid */
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    /* вытягиваем слайдер до краёв экрана, компенсируя паддинг .container */
    margin: 36px -16px 0;
    padding: 4px 16px 14px;
    scrollbar-width: none;                /* Firefox */
  }
  .tp-certs::-webkit-scrollbar,
  .tp-tools::-webkit-scrollbar,
  .tp-projects::-webkit-scrollbar,
  .tp-cases::-webkit-scrollbar,
  .tp-reviews::-webkit-scrollbar { display: none; }   /* WebKit */

  .tp-cert,
  .tp-tool-group,
  .tp-project,
  .tp-case,
  .tp-review {
    flex: 0 0 84%;
    max-width: 330px;
    scroll-snap-align: start;
  }

  /* --- Таймлайн опыта: тоже горизонтальный слайдер --- */
  .tp-timeline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    max-width: none;
    margin: 36px -16px 0;
    padding: 4px 16px 14px;
    scrollbar-width: none;
  }
  .tp-timeline::-webkit-scrollbar { display: none; }

  .tp-tl-item {
    flex: 0 0 84%;
    max-width: 330px;
    scroll-snap-align: start;
    /* колоночная компоновка: рельса сверху, контент снизу */
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 0;
  }

  /* рельса разворачивается из вертикальной в горизонтальную */
  .tp-tl-rail { justify-content: flex-start; }
  .tp-tl-rail::before {
    top: 6px;
    bottom: auto;
    left: 7px;
    right: -14px;            /* перекидываем линию через gap к следующей карточке */
    width: auto;
    height: 2px;
    transform: none;
    background: linear-gradient(90deg, var(--ink-200), var(--ink-150));
  }
  .tp-tl-dot { margin-top: 0; }
}
