* {
  box-sizing: border-box;
}


.sales-departments-section {
  width: 100%;
  min-height: 100vh;
  padding: clamp(3rem, 7vw, 6rem) 1rem;
  overflow: hidden;
}

.sales-departments-section__container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.sales-departments-section__header {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  animation: sales-departments-section-fade-up 700ms ease both;
}

.sales-departments-section__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #db2777;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.sales-departments-section__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.sales-departments-section__intro {
  max-width: 620px;
  margin: 1rem auto 0;
  color: #64748b;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.sales-departments-section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.sales-departments-section__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  animation: sales-departments-section-fade-up 800ms ease both;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.sales-departments-section__card:nth-child(2) {
  animation-delay: 120ms;
}

.sales-departments-section__card:nth-child(3) {
  animation-delay: 240ms;
}

.sales-departments-section__card::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  z-index: -1;
  border-radius: 1.55rem;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.14), rgba(59, 130, 246, 0.12));
  opacity: 0;
  transition: opacity 280ms ease;
}

.sales-departments-section__card:hover {
  transform: translateY(-0.75rem);
  border-color: rgba(219, 39, 119, 0.25);
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.14);
}

.sales-departments-section__card:hover::before {
  opacity: 1;
}

.sales-departments-section__image-wrap {
  width: clamp(8.5rem, 16vw, 11rem);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  padding: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #60a5fa);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  transition: transform 280ms ease;
}

.sales-departments-section__card:hover .sales-departments-section__image-wrap {
  transform: scale(1.05) rotate(2deg);
}

.sales-departments-section__image {
  display: block;
  width: 100%;
  height: 100%;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.sales-departments-section__card-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.sales-departments-section__text {
  flex: 1;
  margin: 1rem 0 1.5rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
}

.sales-departments-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.sales-departments-section__button::after {
  content: "›";
  margin-left: 0.45rem;
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 240ms ease;
}

.sales-departments-section__button:hover {
  transform: translateY(-0.15rem);
  background: #db2777;
  box-shadow: 0 18px 45px rgba(219, 39, 119, 0.26);
}

.sales-departments-section__button:hover::after {
  transform: translateX(0.2rem);
}

@keyframes sales-departments-section-fade-up {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .sales-departments-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-departments-section__card:last-child {
    grid-column: 1 / -1;
    max-width: 28rem;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .sales-departments-section {
    padding: 2.5rem 0.9rem;
  }

  .sales-departments-section__grid {
    grid-template-columns: 1fr;
  }

  .sales-departments-section__card:last-child {
    grid-column: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
