/* ── Page Wrapper ────────────────────────────────────────── */

.sr { padding-bottom: 80px; }

/* ── Page Title ──────────────────────────────────────────── */

.sr__title {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  line-height: normal;
  padding: 52px 50px 0;
}

/* ── Hero Section ────────────────────────────────────────── */

.sr-hero {
  display: grid;
  grid-template-columns: 700px 1fr;
  gap: 40px;
  margin: 54px 50px 0;
}

.sr-hero__image {
  border-radius: 40px;
  overflow: hidden;
  background: #171717;
}

.sr-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sr-hero__info {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 65px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sr-hero__subtitle {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  line-height: normal;
}

.sr-hero__desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 60px;
}

.sr-hero__desc p {
  font-size: 18px;
  color: #666;
  line-height: 30px;
}

/* ── Repair Section ──────────────────────────────────────── */

.repair {
  background: #fff;
  border-radius: 20px;
  margin: 20px 0 0;
  padding: 80px 50px;
}

.repair__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.repair-card {
  background: #f4f4f4;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  /* нет фиксированной высоты — grid stretch выравнивает все карточки */
}

.repair-card__num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  align-self: flex-start;
}

.repair-card__title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  line-height: 1.25;
  margin-top: 60px; /* точно как в Figma: circle-bottom(120) → title-top(180) = 60px */
}

.repair-card__desc {
  font-size: 18px;
  color: #666;
  line-height: 26px;
  margin-top: 30px;
  flex: 1; /* занимает оставшееся пространство карточки */
}

/* ── Team Section ────────────────────────────────────────── */

.team {
  padding: 60px 50px 0;
}

.team__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.team__nav {
  display: flex;
  gap: 10px;
}

.team__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.team__btn:hover { opacity: 0.8; }
.team__btn--prev { background: #222; }
.team__btn--next { background: #ff7d01; }
.team__btn.is-disabled { opacity: 0.3; cursor: default; }

.team__slider {
  overflow: hidden;
}

.team__cards {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.team-card {
  flex: 0 0 calc((100% - 80px) / 5);
  border-radius: 20px;
  overflow: hidden;
  height: 488px;
  position: relative;
  background: #ddd;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.team-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.team-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-card__name {
  font-size: 20px;
  font-weight: 700;
  color: #19191b;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card__role {
  font-size: 14px;
  font-weight: 700;
  color: #ff7d01;
  text-transform: uppercase;
  line-height: 18px;
}

.team-card__bio {
  font-size: 14px;
  color: #787a82;
  line-height: 20px;
  margin-top: 42px;
}

.team-card__btn {
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background: #ff7d01;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.team-card__btn:hover { opacity: 0.8; }

/* ── FAQ Section ─────────────────────────────────────────── */

.faq { margin: 20px 0 0; }

.faq__card {
  background: #fff;
  border-radius: 20px;
  padding: 60px 80px 60px 90px;
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}

.faq__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #f4f4f4;
  border-radius: 20px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 30px 40px;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.25;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-item summary::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: scaleY(-1);
}

.faq-item__body {
  padding: 0 40px 28px;
}

.faq-item__body p {
  font-size: 16px;
  color: #666;
  line-height: 22px;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1400px) {
  .sr-hero {
    grid-template-columns: 1fr 1fr;
  }

  .repair__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card {
    flex-basis: calc((100% - 40px) / 3);
  }
}

@media (max-width: 960px) {
  .sr__title { font-size: 36px; padding: 40px 32px 0; }

  .sr-hero {
    grid-template-columns: 1fr;
    height: auto;
    margin: 32px 32px 0;
  }

  .sr-hero__image { height: 400px; }

  .sr-hero__subtitle { font-size: 36px; }

  .sr-hero__desc { margin-top: 32px; }

  .sr-hero__desc p { font-size: 16px; line-height: 26px; }

  .repair { padding: 60px 32px; }

  .repair__cards { grid-template-columns: repeat(2, 1fr); }

  .repair-card__title { font-size: 24px; }

  .repair-card__desc { font-size: 16px; }

  .team { padding: 60px 32px 0; }

  .team-card {
    flex-basis: calc((100% - 40px) / 3);
  }

  .faq__card { padding: 48px 32px; }
}

@media (max-width: 640px) {
  .sr__title { font-size: 26px; padding: 28px 20px 0; }

  .sr-hero { margin: 24px 20px 0; }

  .sr-hero__image { height: 280px; }

  .sr-hero__info { padding: 32px 24px; }

  .sr-hero__subtitle { font-size: 26px; }

  .sr-hero__desc { margin-top: 24px; }

  .repair { padding: 48px 20px; }

  .repair__cards { grid-template-columns: 1fr; }

  .repair-card { padding: 28px; }

  .repair-card__num { width: 64px; height: 64px; font-size: 28px; }

  .repair-card__title { margin-top: 32px; font-size: 22px; }

  .repair-card__desc { font-size: 16px; line-height: 24px; }

  .team { padding: 48px 20px 0; }

  .team-card {
    flex-basis: calc((100% - 20px) * 2 / 3);
    height: 400px;
  }

  .team-card__info {
    padding: 20px;
  }

  .team-card__text {
    gap: 6px;
  }

  .team-card__bio {
    margin-top: 20px;
    font-size: 13px;
    line-height: 18px;
  }

  .faq__card { padding: 32px 20px; }

  .faq__grid { grid-template-columns: 1fr; }

  .faq-item summary { font-size: 16px; padding: 20px 24px; }

  .faq-item__body { padding: 0 24px 20px; }
}
