/**
 * Services page — enhanced layout
 */

/* Hero stats */
.services-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.services-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 14px 22px;
  min-width: 100px;
  text-align: center;
}

.services-stat strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.2;
}

.services-stat span {
  font-size: var(--text-xs);
  opacity: 0.9;
}

/* Sticky nav */
.services-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 18px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: var(--z-dropdown);
}

.services-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.services-nav__num {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.55;
}

.services-nav__item:hover,
.services-nav__item:focus-visible {
  color: var(--white);
  border-color: transparent;
  transform: translateY(-1px);
}

.services-nav__item--yellow:hover { background: var(--yellow-dark); color: var(--navy); }
.services-nav__item--blue:hover { background: #2563eb; }
.services-nav__item--red:hover { background: var(--red); }
.services-nav__item--green:hover { background: #059669; }

/* Overview cards */
.services-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.services-overview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.services-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
}

.services-overview-card--yellow::before { background: var(--yellow); }
.services-overview-card--blue::before { background: #2563eb; }
.services-overview-card--red::before { background: var(--red); }
.services-overview-card--green::before { background: #10b981; }

.services-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.services-overview-card__num {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.services-overview-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
}

.services-overview-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.services-overview-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-bottom: 16px;
}

.services-overview-card__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--red);
}

/* Service blocks */
.service-block {
  scroll-margin-top: 88px;
}

.service-block__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.service-block--reverse .service-block__inner {
  direction: ltr;
}

.service-block--reverse .service-block__content,
.service-block--reverse .service-block__visual {
  direction: rtl;
}

.service-block__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.service-block__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--white);
}

.service-block--yellow .service-block__num { background: linear-gradient(135deg, #ca8a04, var(--yellow)); color: var(--navy); }
.service-block--blue .service-block__num { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.service-block--red .service-block__num { background: linear-gradient(135deg, #b91c1c, var(--red)); }
.service-block--green .service-block__num { background: linear-gradient(135deg, #047857, #10b981); }

.service-block__head h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.service-block__head p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.service-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.service-block__tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--text-muted);
}

.service-block__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.service-block__visual img,
.service-block__visual svg {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.service-block__visual--panel {
  padding: 36px 28px;
  text-align: center;
  color: var(--white);
}

.service-block--blue .service-block__visual--panel {
  background: linear-gradient(145deg, #1e3a5f 0%, #2563eb 55%, #3b82f6 100%);
}

.service-block--red .service-block__visual--panel {
  background: linear-gradient(145deg, #7f1d1d 0%, #dc2626 50%, #f97316 100%);
  flex-direction: column;
  gap: 16px;
}

.service-block__visual--panel h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
}

.service-block__visual--panel .price-hint {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--yellow);
  margin: 8px 0 0;
}

.service-block__visual--panel .panel-sub {
  opacity: 0.9;
  font-size: var(--text-base);
}

.smm-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.smm-platforms span {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Industrial brands */
.industrial-brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
  width: 100%;
  min-height: 280px;
}

.industrial-brand {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: var(--transition);
}

.industrial-brand:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.industrial-brand img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.industrial-brand strong {
  font-size: var(--text-sm);
  color: var(--navy);
}

.industrial-brand small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Process */
.services-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.services-process__step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--gray-200);
  position: relative;
}

.services-process__num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 50%;
  font-weight: 800;
  font-size: var(--text-sm);
  margin-bottom: 14px;
}

.services-process__step h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.services-process__step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.services-cta {
  text-align: center;
}

.services-cta .cta-banner--pro h2 {
  margin-bottom: 12px;
}

.services-cta .cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-overview { grid-template-columns: repeat(2, 1fr); }
  .service-block__inner,
  .service-block--reverse .service-block__inner { grid-template-columns: 1fr; }
  .services-process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .services-overview { grid-template-columns: 1fr; }
  .services-nav { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .services-nav__item { flex-shrink: 0; }
  .services-process { grid-template-columns: 1fr; }
  .industrial-brands { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .industrial-brands { grid-template-columns: 1fr; }
}
