/* ==================================================
   services.css — секція «Що ми вміємо?»
   PROD build 26-04-2025
   ================================================== */

/* ---------- wrapper -------------------------------- */
.services {
  /* fluid-padding: 64-120px вертикально, 16-32px горизонтально */
  padding-block: clamp(64px, 16vh, 120px);
  padding-inline: clamp(16px, 5vw, 32px);
  background: var(--about-bg-dark);
}
body.light-theme .services {
  background: var(--about-bg-light);
}

/* ---------- title ---------------------------------- */
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-block-end: 64px;
  text-align: left;
}

/* ---------- grid ----------------------------------- */
.services-grid {
  display: grid;
  gap: 32px;
  margin-inline: auto;
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- card base ------------------------------ */
.service-card {
  position: relative;
  isolation: isolate;
  padding: 40px 28px 32px;
  border-radius: 18px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
  transition: transform 0.35s, box-shadow 0.35s;
  box-sizing: border-box;
}
body.light-theme .service-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

/* gradient-glow */
.service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  background: var(--card-grad, linear-gradient(135deg, #3b82f6, #9333ea));
  filter: blur(18px);
  opacity: .55;
  transition: opacity .3s;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-8px) rotateX(6deg) rotateY(-6deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

/* ---------- icon ----------------------------------- */
.icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  font-size: 2rem;
}
body.light-theme .icon-wrapper {
  background: rgba(0, 0, 0, .06);
}
.icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

/* ---------- text ----------------------------------- */
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-block-end: 14px;
  color: var(--txt-accent-dark);
}
body.light-theme .service-card h3 {
  color: var(--txt-accent-light);
}
.service-card p {
  font-size: .95rem;
  line-height: 1.6;
}

/* ---------- accent palettes ------------------------ */
.accent-blue   { --card-grad: linear-gradient(135deg, #3b82f6, #60a5fa); }
.accent-violet { --card-grad: linear-gradient(135deg, #8b5cf6, #c084fc); }
.accent-green  { --card-grad: linear-gradient(135deg, #10b981, #34d399); }
.accent-amber  { --card-grad: linear-gradient(135deg, #f59e0b, #fcd34d); }
.accent-red    { --card-grad: linear-gradient(135deg, #ef4444, #f87171); }
.accent-cyan   { --card-grad: linear-gradient(135deg, #06b6d4, #67e8f9); }

/* ---------- prefers-reduced-motion ----------------- */
@media (prefers-reduced-motion: reduce) {
  .service-card, * {
    transition: none !important;
  }
}

/* ---------- responsive ----------------------------- */
/* ≤1024 px */
@media (max-width: 1024px) {
  .services {
    padding-block: clamp(64px, 20vh, 100px);
    padding-inline: clamp(16px, 5vw, 24px);
  }
  .section-title {
    text-align: center;
    margin-block-end: 48px;
  }
  .service-card {
    padding: 32px 24px;
  }
  .icon-wrapper {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }
  .service-card h3 {
    font-size: 1.15rem;
  }
  .service-card p {
    font-size: .9rem;
  }
}
/* ≤768 px */
/* ≤768px */
@media (max-width: 768px) {
  .services {
    padding-block: clamp(32px, 10vh, 64px);
    padding-inline: 16px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-title {
    font-size: 2rem;
    margin-block-end: 24px;
    text-align: center;
  }
  .icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  .service-card {
    padding: 28px 20px;
  }
}
/* ≤480 px */
@media (max-width: 480px) {
  .services {
    padding-inline: 16px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .service-card {
    padding: 24px 16px;
  }
  .icon-wrapper {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
  .service-card h3 {
    font-size: 1.1rem;
  }
  .service-card p {
    font-size: .88rem;
  }
}
