/* /services/ - редизайн хаба услуг */

.main--services-hub {
  margin-bottom: 0;
}

.main--services-hub .breadcrumbs {
  margin-bottom: 0;
}

.main--services-hub .breadcrumbs__item,
.main--services-hub .breadcrumbs__item:is(span) {
  color: #4b5563;
}

.services-hub {
  --sh-ink: #14161d;
  --sh-ink-70: #3d4250;
  --sh-ink-50: #6b7280;
  --sh-surface: #f3f5f8;
  --sh-line: #e4e8ee;
  --sh-accent: #15a05a;
  --sh-accent-700: #0f7d45;
  --sh-accent-50: #e9f6ef;
  --sh-navy: #0f1320;
  --sh-r: 16px;
  --sh-r-sm: 10px;
  color: var(--sh-ink);
}

/* Hero */
.services-hub__hero {
  padding: 24px 0 56px;
  position: relative;
  overflow: hidden;
}

.services-hub__hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(21, 160, 90, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.services-hub__intro {
  width: 100%;
  max-width: none;
  position: relative;
}

.services-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--sh-accent-50);
  color: var(--sh-accent-700);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.services-hub__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sh-accent);
}

@media (min-width: 769px) {
  .services-hub__pulse {
    box-shadow: 0 0 0 0 rgba(21, 160, 90, 0.5);
    animation: services-hub-pulse 2.2s infinite;
  }
}

@keyframes services-hub-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 160, 90, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(21, 160, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(21, 160, 90, 0);
  }
}

.services-hub__title {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -1.4px;
  margin: 0 0 20px;
  color: var(--sh-ink);
  max-width: 100%;
}

.services-hub__title em {
  font-style: normal;
  color: var(--sh-accent);
}

.services-hub__lead {
  color: var(--sh-ink-70);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 26px;
}

.services-hub__hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.services-hub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
  text-decoration: none;
}

.services-hub__btn--primary {
  background: var(--sh-accent-700);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--sh-r-sm);
  font-size: 14.5px;
}

.services-hub__btn--primary:hover {
  background: var(--sh-accent-700);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 160, 90, 0.3);
  color: #fff;
}

.services-hub__btn--ghost {
  background: #fff;
  color: var(--sh-ink);
  border: 1px solid var(--sh-line);
  padding: 12px 22px;
  border-radius: var(--sh-r-sm);
  font-size: 14.5px;
}

.services-hub__btn--ghost:hover {
  border-color: var(--sh-ink-50);
  color: var(--sh-ink);
}

/* Trust */
.services-hub__trust {
  padding: 8px 0 48px;
}

.services-hub__trust .container {
  padding-top: 0;
  padding-bottom: 0;
}

.services-hub__trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 18px;
}

.services-hub__trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services-hub__trust-num {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -1px;
  color: var(--sh-ink);
}

.services-hub__trust-num span {
  color: var(--sh-accent);
}

.services-hub__trust-txt {
  font-size: 13px;
  color: var(--sh-ink-70);
  line-height: 1.4;
}

/* Groups */
.services-hub__block {
  padding: 0 0 72px;
}

.services-hub__group + .services-hub__group {
  margin-top: 56px;
}

.services-hub__group-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sh-line);
}

.services-hub__group-label {
  display: inline-block;
  margin: 0;
  color: var(--sh-accent-700);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.services-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Cards */
.services-hub__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: var(--sh-r);
  padding: 26px 26px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.services-hub__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sh-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s;
}

.services-hub__card:hover {
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(20, 22, 29, 0.1);
  transform: translateY(-3px);
  color: inherit;
}

.services-hub__card:hover::before {
  transform: scaleY(1);
}

.services-hub__card--feat {
  background: linear-gradient(180deg, #fff, #f3faf6);
  border-color: #cdeada;
}

.services-hub__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sh-accent);
  background: var(--sh-accent-50);
  padding: 4px 9px;
  border-radius: 6px;
}

.services-hub__card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.services-hub__ic {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.services-hub__ic svg {
  width: 24px;
  height: 24px;
}

.services-hub__ic--green {
  background: #15a05a;
}

.services-hub__ic--blue {
  background: #2563eb;
}

.services-hub__ic--violet {
  background: #7c3aed;
}

.services-hub__ic--amber {
  background: #d98412;
}

.services-hub__ic--teal {
  background: #0ea5b7;
}

.services-hub__ic--rose {
  background: #e1467c;
}

.services-hub__card-title {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: normal;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--sh-ink);
}

.services-hub__card-text {
  color: var(--sh-ink);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  margin: 0 0 18px;
}

.services-hub__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sh-accent-700);
}

.services-hub__more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.services-hub__card:hover .services-hub__more svg {
  transform: translateX(4px);
}

/* CTA */
.services-hub__cta {
  --sh-navy: #0f1320;
  --sh-r-sm: 10px;
  background: #0f1320;
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  margin: 0;
}

.services-hub__cta::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(21, 160, 90, 0.4) 0%, transparent 65%);
  pointer-events: none;
}

.services-hub__cta .container {
  position: relative;
  text-align: center;
}

.services-hub__cta-title {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.9px;
  margin: 0 0 12px;
  color: #fff;
}

.services-hub__cta-text {
  color: #9aa3b6;
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.services-hub__cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.services-hub__btn--white {
  background: #fff;
  color: var(--sh-navy);
  padding: 14px 30px;
  border-radius: var(--sh-r-sm);
  font-size: 15px;
  font-weight: 700;
}

.services-hub__btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  color: var(--sh-navy);
}

.services-hub__btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 30px;
  border-radius: var(--sh-r-sm);
  font-size: 15px;
  font-weight: 600;
}

.services-hub__btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Responsive */
@media (min-width: 600px) {
  .services-hub__trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 980px) {
  .services-hub__trust-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .services-hub__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .services-hub__card-title {
    font-size: 24px;
    line-height: 30px;
  }

  .services-hub__card-text {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 767px) {
  .services-hub__hero {
    padding-top: 8px;
    padding-bottom: 40px;
  }

  .services-hub__block {
    padding-bottom: 48px;
  }
}

@media (max-width: 575px) {
  .services-hub__card {
    padding: 20px 20px 18px;
  }

  .services-hub__card-title {
    font-size: 20px;
    line-height: 24px;
  }

  .services-hub__badge {
    top: 12px;
    right: 12px;
  }
}
