/* ============================================================
   О компании (/about/) — команда + таймлайн-карусель.
   Подключается только на about.html (block extra_head).
   ============================================================ */

/* ---------- Команда ---------- */
.team-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line-2);
  border:1px solid var(--line-2);
}
.team-card{transition:background .2s ease;}
.team-card:hover{background:var(--bg-soft);}
.team-card img{transition:filter .35s ease;}
.team-card:hover img{filter:grayscale(0) contrast(1.05);}
@media (max-width:980px){ .team-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .team-grid{grid-template-columns:1fr;} }

/* ---------- Шапка «О компании»: текст + фото офиса ---------- */
.about-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(350px,40vw,500px);
  gap:clamp(12px,1.5vw,18px);
  align-items:center;
}
.about-hero__media{margin:0;}
.about-hero__frame{
  position:relative;
  width:100%;
  aspect-ratio:4/5;
  max-height:520px;
  overflow:hidden;
  border:1px solid var(--line-3);
  border-radius:16px;
  background:var(--bg-soft);
}
.about-hero__frame img,
.about-hero__frame video{
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  display:block;
  filter:grayscale(1) contrast(1.04);
  transition:transform .6s ease;
}
.about-hero__frame:hover img,
.about-hero__frame:hover video{transform:scale(1.03);}
@media (max-width:900px){
  .about-hero{grid-template-columns:1fr;gap:26px;}
  .about-hero__frame{aspect-ratio:16/10;max-height:340px;}
}

/* ---------- Ценности FSSA — бейджи ---------- */
/* Две явные строки (1-4 и 5-7); чипы в каждой растягиваются flex-grow'ом и
   заполняют строку целиком, поэтому обе строки равны ширине контейнера. */
.values-grid{display:flex;flex-direction:column;gap:12px;}
.values-row{display:flex;flex-wrap:wrap;gap:12px;}
.value-chip{
  flex:1 1 auto;
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  background:var(--surface);
  border:1px solid var(--line-2);
  border-radius:13px;
  padding:13px 22px;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}
.value-chip:hover{
  border-color:var(--accent);
  transform:translateY(-2px);
  box-shadow:0 6px 18px -10px color-mix(in srgb, var(--accent) 55%, transparent);
}
.value-chip__ic{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:9px;flex:none;
  color:var(--accent);
  background:color-mix(in srgb, var(--accent) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.value-chip__ic svg{width:17px;height:17px;}
.value-chip__txt{
  font-family:var(--font-display,'IBM Plex Sans',system-ui,sans-serif);
  font-weight:600;
  font-size:clamp(14px,1.4vw,16.5px);
  letter-spacing:.02em;text-transform:uppercase;
  color:var(--text-strong);
}

/* ---------- Таймлайн — бегущая строка (авто-скролл + drag) ---------- */
.tl-track{
  display:flex;
  gap:18px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:auto;          /* rAF сам двигает scrollLeft — smooth мешал бы */
  position:relative;
  padding-bottom:4px;
  cursor:grab;
  -ms-overflow-style:none;
  scrollbar-width:none;
}
.tl-track::-webkit-scrollbar{display:none;}
.tl-track.is-dragging{cursor:grabbing;user-select:none;}
.tl-card{
  flex:0 0 360px;
  max-width:84vw;
}

/* ---------- Наш подход к работе (process) ---------- */
.process-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:1px;
  background:var(--line-2);
  border:1px solid var(--line-2);
  border-radius:14px;
  overflow:hidden;
}
.process-step{
  background:var(--surface);
  padding:28px 22px 30px;
  display:flex;flex-direction:column;
  position:relative;
  transition:background .2s ease;
}
.process-step:hover{background:var(--bg-soft);}
.process-step__top{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:16px;
}
.process-num{
  font-family:var(--font-display,'IBM Plex Sans',system-ui,sans-serif);font-weight:700;
  font-size:clamp(28px,2.6vw,40px);line-height:1;
  color:var(--line-4);
  transition:color .2s ease;
}
.process-step:hover .process-num{color:var(--accent);}
.process-title{
  font-family:var(--font-display,'IBM Plex Sans',system-ui,sans-serif);font-weight:600;
  font-size:16.5px;text-transform:uppercase;line-height:1.18;
  letter-spacing:.01em;color:var(--text-strong);margin-bottom:9px;
  /* резерв под 2 строки заголовка — описания всех карточек выравниваются по одной линии */
  min-height:2.36em;
}
.process-desc{font-size:13px;line-height:1.55;color:var(--text-muted);margin:0;}
/* «Одно вытекает из другого» — шеврон-связка между шагами (десктоп) */
.process-step:not(:last-child)::after{
  content:"›";
  position:absolute;top:32px;right:-7px;z-index:2;
  color:var(--accent);
  font-family:var(--font-display,'IBM Plex Sans',system-ui,sans-serif);font-weight:700;font-size:22px;line-height:1;
}
@media (max-width:1080px){
  .process-grid{grid-template-columns:repeat(2,1fr);}
  .process-step:not(:last-child)::after{display:none;}
}
@media (max-width:560px){
  .process-grid{grid-template-columns:1fr;}
}
