/* ==========================================================================
   DIRECTNAVIGATOR — SERVICES HUB (FULL-SCREEN SHOWCASE)
   10 Core Services in 5x2 Grid with Authentic Brand Cards & Interactive CTA
   ========================================================================== */

.page--services-index {
  background: #ffffff;
  color: #0c1015;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.services-hub-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* --- FULL-SCREEN HERO SECTION --- */
.services-hub-section {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 5.25rem);
  padding: clamp(1.5rem, 3vh, 3rem) 0 clamp(2rem, 3.5vh, 3.5rem);
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 0%, #f8fafc 0%, #ffffff 85%);
  position: relative;
  overflow: hidden;
}

/* Subtle background illumination mesh */
.services-hub-section::before {
  content: "";
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 90vw);
  height: 380px;
  /* Keep the section background uniform; the former glow created a visible
     yellow-green spot across the top of the page. */
  background: none;
  pointer-events: none;
  z-index: 0;
}

.services-hub-container {
  width: min(calc(100% - (var(--home-gutter, clamp(1rem, 2.35vw, 2.5rem)) * 2)), var(--home-page-max, 100rem)) !important;
  max-width: var(--home-page-max, 100rem) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
  position: relative;
  z-index: 1;
}

/* --- SECTION HEADER --- */
.services-hub-header {
  text-align: left;
  max-width: 64rem;
  margin: 0 0 clamp(1.5rem, 2.8vh, 2.5rem);
}

.services-hub-header .crumbs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.services-hub-header .crumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s ease;
}

.services-hub-header .crumbs a:hover {
  color: #1e7a16;
}

.services-hub-header .crumbs span {
  color: #cbd5e1;
}

.services-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.services-hub-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1e7a16;
  box-shadow: 0 0 8px #6cf023;
}

.services-hub-title {
  font-size: clamp(1.85rem, 2.6vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: #0c1015;
  margin: 0 0 1.25rem;
}

.services-hub-title .gr {
  background: linear-gradient(135deg, #1e7a16 0%, #1e7a16 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hub-subtitle {
  font-size: clamp(0.875rem, 1.05vw, 1.05rem);
  line-height: 1.48;
  color: #64748b;
  margin: 0;
  text-align: left;
  max-width: 48rem;
}

/* --- 10 CARDS GRID (5 x 2) --- */
.services-hub-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 1.1vw, 1.25rem);
  align-items: stretch;
}

/* --- CARD COMPONENT --- */
.hub-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: clamp(1.15rem, 1.35vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease;
  min-height: 250px;
}

.hub-card:hover {
  transform: none;
  background: #ffffff;
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 14px 34px -6px rgba(15, 23, 42, 0.11),
              0 0 0 1px rgba(34, 197, 94, 0.22),
              0 6px 18px -4px rgba(34, 197, 94, 0.12);
}

/* --- CARD TOP ROW --- */
.hub-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 2;
}

.hub-card__ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.hub-card:hover .hub-card__ic {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 14px -3px rgba(15, 23, 42, 0.1);
}

/* Specific Badge Accents */
.hub-card__ic svg {
  display: block;
  flex-shrink: 0;
}

.hub-card__ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.hub-card__ic--yandex {
  border-color: #fee2e2;
  box-shadow: 0 4px 12px -3px rgba(252, 63, 29, 0.2);
}

.hub-card__num {
  font-size: 0.8125rem;
  font-weight: 850;
  color: #64748b;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.8);
}

/* --- CARD BODY --- */
.hub-card__body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.hub-card__title {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: 800;
  color: #0c1015;
  margin: 0 0 0.45rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  transition: color 0.18s ease;
}

.hub-card:hover .hub-card__title {
  color: #1e7a16;
}

.hub-card__desc {
  font-size: 0.8125rem;
  line-height: 1.48;
  color: #64748b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- CARD ACTION (ПЕРЕЙТИ + ARROW) --- */
.hub-card__action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  text-decoration: none;
}

.hub-card__btn-label {
  font-size: 14px;
  font-weight: 700;
  color: #0c1015;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card:hover .hub-card__btn-label,
.hub-card__action:hover .hub-card__btn-label {
  color: #1e7a16;
}

.hub-card__cir {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(108, 240, 35);
  border: 1.5px solid rgb(108, 240, 35);
  color: #0a0d12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(12, 16, 21, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.hub-card__cir svg {
  width: 15px;
  height: 15px;
  display: block;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* При наведении на карточку или саму кнопку: кружок плавно увеличивается,
   а стрелочка идеально по центру поворачивается на 45 градусов (из ↗ в →) без смещения */
.hub-card:hover .hub-card__cir,
.hub-card__action:hover .hub-card__cir {
  background: rgb(126, 244, 56);
  border-color: rgb(126, 244, 56);
  color: #0a0d12;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(12, 16, 21, 0.14);
}

.hub-card:hover .hub-card__cir svg,
.hub-card__action:hover .hub-card__cir svg {
  transform: rotate(45deg);
}

/* --- WATERMARK / SILHOUETTE IN BOTTOM RIGHT --- */
.hub-card__mark {
  position: absolute;
  right: -8px;
  bottom: -14px;
  width: 105px;
  height: 105px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card:hover .hub-card__mark {
  opacity: 0.13;
  transform: scale(1.08) rotate(-4deg);
}

.hub-card__mark svg,
.hub-card__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* --- RESPONSIVE ADAPTATIONS --- */
@media (max-width: 1320px) {
  .services-hub-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
  .hub-card {
    padding: 1.15rem 1rem;
    min-height: 240px;
  }
}

@media (max-width: 1120px) {
  .services-hub-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .services-hub-section {
    min-height: auto;
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .services-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .services-hub-header {
    margin-bottom: 1.5rem;
  }
  .services-hub-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 520px) {
  .services-hub-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .services-hub-section {
    padding: 2rem 0;
  }
}
