/* Services archive — /dich-vu/ */

.apm-services-archive .apm-header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.apm-services-archive .apm-nav .current-menu-item > a,
.apm-services-archive .apm-nav .current_page_parent > a {
  color: var(--apm-primary);
}

.apm-services-archive .apm-nav .current-menu-item > a::after,
.apm-services-archive .apm-nav .current_page_parent > a::after {
  transform: scaleX(1);
}

/* ─── Hero ─── */
.apm-svc-hero {
  position: relative;
  padding: 48px 0 64px;
  background: linear-gradient(135deg, #e8f1fd 0%, #f0f7ff 45%, #f8fafc 100%);
  overflow: hidden;
}

.apm-svc-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11, 94, 215, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

.apm-svc-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.apm-breadcrumb--svc {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 20px;
}

.apm-breadcrumb--svc a {
  color: #64748b;
  text-decoration: none;
}

.apm-breadcrumb--svc a:hover {
  color: var(--apm-primary);
}

.apm-breadcrumb--svc span[aria-hidden] {
  margin: 0 8px;
  color: #94a3b8;
}

.apm-svc-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0d47a1;
  max-width: 14ch;
}

.apm-svc-hero__desc {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 520px;
}

.apm-svc-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-svc-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.apm-svc-hero__badges svg {
  color: var(--apm-primary);
  flex-shrink: 0;
}

.apm-svc-hero__visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.apm-svc-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
}

/* ─── Cards grid ─── */
.apm-svc-cards {
  padding: 64px 0 48px;
  background: #f8fafc;
}

.apm-svc-grid {
  display: grid;
  gap: 24px;
}

.apm-svc-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.apm-svc-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: calc(75% + 48px);
  margin: 0 auto;
}

.apm-svc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.apm-svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.apm-svc-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f1fd;
  border-radius: 50%;
  color: var(--apm-primary);
  margin-bottom: 20px;
}

.apm-svc-card__title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0d47a1;
}

.apm-svc-card__desc {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
  flex: 1;
}

.apm-svc-card__features {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.apm-svc-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 8px;
}

.apm-svc-card__features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--apm-secondary);
}

.apm-svc-card__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1.5px solid var(--apm-primary);
  color: var(--apm-primary);
  background: transparent;
  text-decoration: none;
  transition: background 300ms ease, color 300ms ease;
}

.apm-svc-card__btn:hover {
  background: var(--apm-primary);
  color: #fff;
}

.apm-svc-card__btn svg {
  transition: transform 300ms ease;
}

.apm-svc-card__btn:hover svg {
  transform: translateX(3px);
}

/* ─── Stats strip ─── */
.apm-svc-stats {
  padding: 0 0 64px;
  background: #f8fafc;
}

.apm-svc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.apm-svc-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid #eef2f6;
}

.apm-svc-stats__item:last-child {
  border-right: none;
}

.apm-svc-stats__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f1fd;
  border-radius: 50%;
  color: var(--apm-primary);
  margin-bottom: 12px;
}

.apm-svc-stats__item strong {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #0d47a1;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.apm-svc-stats__item span {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

/* ─── CTA banner ─── */
.apm-svc-cta {
  padding: 0 0 80px;
  background: #f8fafc;
}

.apm-svc-cta__box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 40px;
  background: linear-gradient(135deg, #e8f1fd 0%, #f0f9ff 100%);
  border-radius: 16px;
  border: 1px solid #dbeafe;
}

.apm-svc-cta__visual img {
  display: block;
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.apm-svc-cta__content h2 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 700;
  color: #0d47a1;
  line-height: 1.3;
}

.apm-svc-cta__content p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 420px;
}

.apm-svc-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.apm-svc-cta__actions .apm-btn {
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

/* ─── Reveal ─── */
.apm-services-archive .apm-reveal,
.apm-service-single .apm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.apm-services-archive .apm-reveal.is-visible,
.apm-service-single .apm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.apm-services-archive .apm-reveal--delay-1,
.apm-service-single .apm-reveal--delay-1 { transition-delay: 80ms; }
.apm-services-archive .apm-reveal--delay-2,
.apm-service-single .apm-reveal--delay-2 { transition-delay: 120ms; }
.apm-services-archive .apm-reveal--delay-3,
.apm-service-single .apm-reveal--delay-3 { transition-delay: 160ms; }
.apm-services-archive .apm-reveal--delay-4,
.apm-service-single .apm-reveal--delay-4 { transition-delay: 200ms; }
.apm-services-archive .apm-reveal--delay-5,
.apm-service-single .apm-reveal--delay-5 { transition-delay: 240ms; }
.apm-services-archive .apm-reveal--delay-6,
.apm-service-single .apm-reveal--delay-6 { transition-delay: 280ms; }

/* ─── Responsive ─── */
@media (max-width: 1199px) {
  .apm-svc-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .apm-svc-grid--3 {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

@media (max-width: 991px) {
  .apm-svc-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .apm-svc-hero__title {
    max-width: none;
  }

  .apm-svc-hero__visual {
    order: 2;
  }

  .apm-svc-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apm-svc-stats__item:nth-child(2) {
    border-right: none;
  }

  .apm-svc-stats__item {
    border-bottom: 1px solid #eef2f6;
  }

  .apm-svc-stats__item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .apm-svc-cta__box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .apm-svc-cta__visual img {
    margin: 0 auto;
  }

  .apm-svc-cta__content p {
    max-width: none;
  }

  .apm-svc-cta__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .apm-svc-hero {
    padding: 32px 0 48px;
  }

  .apm-svc-cards {
    padding: 40px 0 32px;
  }

  .apm-svc-grid--4,
  .apm-svc-grid--3 {
    grid-template-columns: 1fr;
  }

  .apm-svc-stats__grid {
    grid-template-columns: 1fr;
  }

  .apm-svc-stats__item {
    border-right: none;
    border-bottom: 1px solid #eef2f6;
  }

  .apm-svc-stats__item:last-child {
    border-bottom: none;
  }

  .apm-svc-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .apm-svc-cta__actions .apm-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apm-svc-card,
  .apm-svc-card__btn svg,
  .apm-services-archive .apm-reveal,
  .apm-service-single .apm-reveal {
    transition: none;
  }
}
