/* ===== SERVICES SECTION ===== */
.services {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: #EEF2F7;
}

.services .section__title  { color: var(--color-text); }
.services .section__subtitle { color: var(--color-text-muted); }

.services .section__header {
  margin-bottom: 1.75rem;
}

/* ===== GRID ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* ===== CARD ===== */
.service-card {
  background: #FFFFFF;
  border: 1px solid rgba(13, 31, 45, 0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(13,31,45,0.04),
    0 4px 16px rgba(13,31,45,0.06);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Gradient top accent */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #023D4D 0%, #009599 60%, #00C9A7 100%);
  border-radius: 16px 16px 0 0;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 149, 153, 0.22);
  box-shadow:
    0 2px 4px rgba(13,31,45,0.04),
    0 12px 36px rgba(0, 149, 153, 0.16);
}

/* ===== CARD HEAD: icon + title inline ===== */
.service-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.service-card__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #023D4D 0%, #009599 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 149, 153, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover .service-card__icon {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 149, 153, 0.38);
}

.service-card__icon svg {
  width: 15px;
  height: 15px;
  color: #fff;
  flex-shrink: 0;
}

.service-card__title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0D1F2D;
  line-height: 1.25;
  letter-spacing: -0.1px;
}

/* Long title — slightly smaller so it doesn't overflow into 3 lines */
#akaricidnaya .service-card__title {
  font-size: 13px;
}

/* ===== DESCRIPTION ===== */
.service-card__desc {
  font-size: clamp(0.7rem, 1.6vw, 0.75rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-family: var(--font-body);
  flex: 1;
  margin-bottom: 14px;
  text-align: left;
}

/* ===== BOTTOM: price + CTA ===== */
.service-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(13,31,45,0.08);
  margin-top: auto;
}

.service-card__price {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}

.service-card__price-from {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #94A3B8;
  font-weight: 600;
}

.service-card__price-value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #0D1F2D;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* CTA button */
.service-card__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--color-accent);
  color: #023D4D;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(245,166,35,0.3);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service-card__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245,166,35,0.45);
}

/* ===== HIGHLIGHT (active card) ===== */
.service-card--highlight {
  border-color: rgba(0,149,153,0.35) !important;
  box-shadow:
    0 0 0 3px rgba(0,149,153,0.15),
    0 12px 40px rgba(0,149,153,0.2) !important;
  transform: translateY(-4px);
  animation: card-pulse 1.8s ease 0.3s 2;
}

@keyframes card-pulse {
  0%   { box-shadow: 0 0 0 3px rgba(0,149,153,0.15), 0 12px 40px rgba(0,149,153,0.2); }
  50%  { box-shadow: 0 0 0 7px rgba(0,149,153,0.08), 0 16px 48px rgba(0,149,153,0.28); }
  100% { box-shadow: 0 0 0 3px rgba(0,149,153,0.15), 0 12px 40px rgba(0,149,153,0.2); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .services .section__subtitle { font-size: 0.8rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .service-card { padding: 14px 12px 12px; border-radius: 14px; gap: 0; }
  .service-card__icon { width: 26px; height: 26px; min-width: 26px; border-radius: 6px; }
  .service-card__icon svg { width: 12px; height: 12px; }
  .service-card__title { font-size: 13px; }
  #akaricidnaya .service-card__title { font-size: 11.5px; }
  #akaricidnaya .service-card__head { align-items: flex-start; }
  .service-card__head { gap: 8px; margin-bottom: 8px; }
  .service-card__desc { font-size: 9.5px; line-height: 1.5; margin-bottom: 8px; }
  .service-card__price-from { font-size: 9px; }
  .service-card__price-value { font-size: 13px; }
  .service-card__cta { padding: 7px 11px; font-size: 11px; }
  .service-card__bottom { padding-top: 10px; flex-wrap: nowrap; }
}
