/* =========================================================
   PARTNERS (COMPANIES) SECTION
   ========================================================= */

.companies {
  background: linear-gradient(165deg, #fff7f0 0%, #f0f4ff 50%, #ffffff 100%);
  padding: 60px 0 72px;
  position: relative;
}

.companies::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 25% 0%, rgba(251, 146, 60, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 75% 100%, rgba(59, 130, 246, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.companies__container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.companies__header {
  text-align: center;
  margin-bottom: 44px;
}

.companies__trust-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e07928;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
}

.companies__trust-line::before,
.companies__trust-line::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, #e07928, #3b82f6);
  opacity: 0.4;
  border-radius: 2px;
}

/* ---- Badge strip (legacy class) ---- */
.companies__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.companies__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #ffffff;
  border: 1px solid #dde6f0;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07),
              0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.24s ease,
              border-color 0.24s ease;
  white-space: nowrap;
  cursor: default;
}

.companies__badge:hover {
  transform: scale(1.06);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.13),
              0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ---- Partners grid (primary active class) ---- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}

/* Staggered entrance animation */
@keyframes partnerCardUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.partner-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 16px 26px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(224, 121, 40, 0.12);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.06),
              0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: default;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease,
              background 0.28s ease;
  position: relative;
  overflow: hidden;
  animation: partnerCardUp 0.5s ease both;
}

/* Staggered delays */
.partner-logo-card:nth-child(1)  { animation-delay: 0.04s; }
.partner-logo-card:nth-child(2)  { animation-delay: 0.08s; }
.partner-logo-card:nth-child(3)  { animation-delay: 0.12s; }
.partner-logo-card:nth-child(4)  { animation-delay: 0.16s; }
.partner-logo-card:nth-child(5)  { animation-delay: 0.20s; }
.partner-logo-card:nth-child(6)  { animation-delay: 0.24s; }
.partner-logo-card:nth-child(7)  { animation-delay: 0.28s; }
.partner-logo-card:nth-child(8)  { animation-delay: 0.32s; }
.partner-logo-card:nth-child(9)  { animation-delay: 0.36s; }
.partner-logo-card:nth-child(10) { animation-delay: 0.40s; }

.partner-logo-card::before {
  content: "\2726";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.55rem;
  color: #e07928;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.partner-logo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.05) 0%, rgba(59, 130, 246, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  border-radius: inherit;
}

.partner-logo-card:hover {
  transform: scale(1.05) translateY(-3px);
  border-color: rgba(224, 121, 40, 0.32);
  box-shadow: 0 8px 28px rgba(251, 146, 60, 0.12),
              0 4px 12px rgba(59, 130, 246, 0.08),
              0 2px 6px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.95);
}

.partner-logo-card:hover::before {
  opacity: 0.7;
}

.partner-logo-card:hover::after {
  opacity: 1;
}

.partner-logo-card span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2a42;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: color 0.24s ease;
}

.partner-logo-card:hover span {
  color: #c2650e;
}

/* =========================================================
   WHY SECTION
   ========================================================= */

.why {
  background: #ffffff;
  padding: 72px 0 80px;
}

.why__container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.why__header {
  text-align: center;
  margin-bottom: 48px;
}

/* ---- Grid ---- */
.why__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---- Card ---- */
.why__card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.26s ease,
              border-color 0.26s ease;
}

.why__card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 125, 50, 0.18);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.1),
    0 20px 48px rgba(46, 125, 50, 0.05);
}

/* ---- Icon ---- */
.why__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f3f5;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 18px;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.26s ease, border-color 0.26s ease, transform 0.26s ease;
}

.why__card:hover .why__card-icon {
  background: #e8f5e9;
  border-color: rgba(46, 125, 50, 0.2);
  transform: scale(1.08);
}

/* ---- Text ---- */
.why__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.why__card-description {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.68;
  margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Partners */
@media (max-width: 640px) {
  .companies {
    padding: 48px 0 56px;
  }

  .companies__container {
    padding: 0 16px;
  }

  .companies__badge {
    padding: 9px 16px;
    font-size: 0.82rem;
  }

  .partner-logo-card {
    min-width: 100px;
    padding: 11px 18px;
  }

  .partner-logo-card span {
    font-size: 0.82rem;
  }

  .partners-grid {
    gap: 10px;
  }
}

/* Why — tablet */
@media (max-width: 860px) {
  .why {
    padding: 56px 0 64px;
  }

  .why__container {
    padding: 0 24px;
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Why — mobile */
@media (max-width: 520px) {
  .why {
    padding: 44px 0 52px;
  }

  .why__container {
    padding: 0 16px;
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why__card {
    padding: 22px 20px 20px;
  }
}
