/* Про нас — дополнительные блоки (база: home.css + service.css) */

.svc-hero h1 mark {
  background: linear-gradient(180deg, transparent 62%, rgba(15, 21, 18, .14) 62%);
  color: inherit;
  padding: 0 4px;
}

.page-main--about .section-band {
  padding-top: 0;
}

/* Між відгуками і послугами — без подвійного --sect */
.page-main--about > .tst {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.page-main--about > .services.section-tight-top {
  padding-top: clamp(28px, 4vw, 48px);
}

/* Заголовок секции + ссылка */
.sh-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.sh-row .sh {
  margin-bottom: 0;
  /* min-width, не flex-basis:280px — інакше в column це стає висотою ~280px */
  flex: 1 1 auto;
  min-width: min(100%, 280px);
}

.sh-link {
  font-weight: 700;
  font-size: .94rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color .2s, gap .2s;
}

.sh-link:hover {
  color: var(--ink);
  gap: 12px;
}

/* История компании */
.about-story {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.about-story-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.about-story-copy p:last-child {
  margin-bottom: 0;
}

.about-quote {
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  padding-top: clamp(36px, 5vw, 48px);
  position: relative;
  align-self: start;
}

@media (min-width: 1021px) {
  .about-quote {
    position: sticky;
    top: calc(var(--header-h, 78px) + 16px);
  }
}

.about-quote::before {
  content: "«";
  position: absolute;
  top: 10px;
  left: 18px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.6rem, 8vw, 3.5rem);
  line-height: 1;
  color: rgba(15, 21, 18, .08);
  pointer-events: none;
  z-index: 0;
}

.about-quote p {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.about-quote footer,
.about-quote-by {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: inherit;
  overflow: visible;
}

.about-quote .av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  display: grid;
  place-items: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  flex: none;
}

.about-quote footer b,
.about-quote-by b {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: .95rem;
  color: var(--ink);
}

.about-quote footer small,
.about-quote-by small {
  display: block;
  color: var(--muted);
  font-size: .88rem;
}

/* Распределённая команда */
.about-remote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-remote-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.about-remote-card .loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.about-remote-card .loc i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-2);
  flex: none;
}

.about-remote-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.about-remote-card p {
  color: var(--ink-soft);
  font-size: .95rem;
}

/* Команда — расширенные карточки */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.team-card:hover {
  border-color: rgba(15, 21, 18, .18);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.team-card .av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  display: grid;
  place-items: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  flex: none;
}

.team-card-head b {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
}

.team-card-head small {
  color: var(--muted);
  font-size: .88rem;
}

.team-card .bio {
  color: var(--ink-soft);
  font-size: .95rem;
  flex: 1 1 auto;
  margin-bottom: 16px;
}

.team-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.team-card .spec {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 100px;
  padding: 6px 12px;
}

.team-card .pin {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}

/* Ценности — компактный bento на about */
.about-values .bento {
  margin-top: 0;
}

@media (max-width: 1020px) {
  .about-story {
    grid-template-columns: 1fr;
  }

  .about-quote {
    /* relative залишається — інакше ::before « вистрибує з картки */
    top: auto;
  }

  .about-remote-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .sh-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sh-row .sh {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .about-remote-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-quote p {
    font-size: 1.02rem;
  }
}
