/* assets/css/blocks/why-us.css
   Тёмная секция "Почему мы?" — карточки с акцентной иконкой-бейджем,
   верхней градиентной полосой, разделителем перед списком и мягким hover.
   Грузится после redesign.css (см. inc/enqueue.php), поэтому переопределяет
   его правила без искусственно завышенной специфичности.
*/

.why-us {
  position: relative !important;
  background:
    radial-gradient(circle at 16% -12%, rgba(255, 109, 61, .18), transparent 42%),
    radial-gradient(circle at 86% 112%, rgba(255, 109, 61, .12), transparent 46%),
    var(--seoms-dark, #17171b) !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

.why-us__wrap {
  max-width: var(--seoms-wide, 1200px) !important;
  margin: 0 auto !important;
  padding: 72px 20px 76px !important;
  box-sizing: border-box !important;
}

.why-us__title {
  margin: 0 auto 40px !important;
  color: #ffffff !important;
  text-align: center !important;
  font-size: clamp(26px, 2.6vw, 38px) !important;
  line-height: 1.14 !important;
}

.why-us__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 20px !important;
}

.why-us__card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 28px 22px 24px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    #201f24 !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28) !important;
  overflow: hidden !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.why-us .why-us__grid .why-us__card::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: linear-gradient(90deg, #ff6d3d, #ffb27a) !important;
  color: transparent !important;
  font-size: 0 !important;
  opacity: .55 !important;
  transition: opacity .22s ease !important;
  box-shadow: none !important;
}

.why-us__card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255, 109, 61, .4) !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 109, 61, .12) !important;
}

.why-us .why-us__grid .why-us__card:hover::before {
  opacity: 1 !important;
}

.why-us__icon {
  display: none !important;
}

.why-us__body {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.why-us .why-us__grid .why-us__card .why-us__body::before {
  content: "" !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  display: block !important;
  border-radius: 14px !important;
  background:
    var(--why-icon) center / 24px 24px no-repeat,
    linear-gradient(135deg, #ff6d3d, #ff9a62) !important;
  background-position: center center !important;
  box-shadow: 0 12px 26px rgba(255, 109, 61, .28) !important;
}

.why-us__card:nth-child(1) .why-us__body {
  --why-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M5 5H3v3a4 4 0 0 0 4 4'/%3E%3Cpath d='M19 5h2v3a4 4 0 0 1-4 4'/%3E%3C/svg%3E");
}

.why-us__card:nth-child(2) .why-us__body {
  --why-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M12 18v4'/%3E%3Cpath d='M2 12h4'/%3E%3Cpath d='M18 12h4'/%3E%3C/svg%3E");
}

.why-us__card:nth-child(3) .why-us__body {
  --why-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E");
}

.why-us__card:nth-child(4) .why-us__body {
  --why-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
}

.why-us__h {
  max-width: 100% !important;
  margin: 0 0 14px !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.why-us__list {
  display: block !important;
  margin-top: 14px !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 0 !important;
  background: none !important;
  color: rgba(255, 255, 255, .74) !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.why-us__list li {
  position: relative !important;
  margin: 0 0 10px !important;
  padding-left: 17px !important;
}

.why-us__list li:last-child {
  margin-bottom: 0 !important;
}

.why-us__list li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: .55em !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ff6d3d, #ffb27a) !important;
  box-shadow: 0 0 0 3px rgba(255, 109, 61, .14) !important;
}

.why-us__list strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

@media (max-width: 1100px) {
  .why-us__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .why-us__wrap {
    padding: 52px 16px 56px !important;
  }

  .why-us__grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .why-us__title {
    margin-bottom: 28px !important;
  }
}
