@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.riv-section-wrapper,
.riv-section-wrapper * {
  box-sizing: border-box;
}

.riv-section-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  background: #ffffff;
  color: #182129;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.riv-section-wrapper .riv-section {
  width: 100% !important;
}

.riv-section-wrapper .riv-section-white {
  background: #ffffff;
}

.riv-section-wrapper .riv-section-tint {
  background: linear-gradient(180deg, #fff6f2 0%, #f8fbfb 100%);
}

.riv-section-wrapper .riv-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  min-width: 0;
}

.riv-section-wrapper .riv-heading {
  margin: 0 auto;
  max-width: 980px;
  color: #151b22;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

.riv-section-wrapper .riv-intro {
  margin: 0 auto;
  max-width: 760px;
  color: #5e6872;
  font-weight: 450;
  line-height: 1.68;
  text-align: center;
}

.riv-section-wrapper .riv-grid {
  display: grid !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
}

.riv-section-wrapper .riv-card {
  position: relative;
  z-index: 1;
  display: block;
  height: 100% !important;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #f0d8cf;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 69, 0, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fffdfc 100%);
  box-shadow: 0 18px 46px rgba(176, 59, 18, 0.09);
  text-align: center;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background-position 360ms ease;
}

.riv-section-wrapper .riv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.11), rgba(0, 121, 211, 0.08), rgba(255, 183, 77, 0.08));
  opacity: 0;
  transition: opacity 260ms ease;
}

.riv-section-wrapper .riv-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(255, 69, 0, 0.36);
  box-shadow: 0 24px 62px rgba(176, 59, 18, 0.16);
}

.riv-section-wrapper .riv-card:hover::before {
  opacity: 1;
}

.riv-section-wrapper .riv-icon {
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff4500 0%, #0079d3 100%);
  box-shadow: 0 14px 30px rgba(255, 69, 0, 0.2);
  color: #ffffff;
  text-align: center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.riv-section-wrapper .riv-card:hover .riv-icon {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 121, 211, 0.22);
}

.riv-section-wrapper .riv-i {
  color: #ffffff;
  line-height: 1;
  text-align: center;
}

.riv-section-wrapper .riv-card-title {
  margin: 0;
  color: #182129;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

.riv-section-wrapper .riv-card-text {
  margin: 0 auto;
  color: #66717b;
  font-weight: 430;
  line-height: 1.62;
  text-align: center;
}

.riv-section-wrapper.riv-js .riv-card {
  opacity: 0;
  transform: translateY(18px);
}

.riv-section-wrapper.riv-js .riv-card.riv-visible {
  opacity: 1;
  transform: translateY(0);
}

.riv-section-wrapper.riv-js .riv-card.riv-visible:hover {
  transform: translateY(-8px) scale(1.012);
}

@media (min-width: 1024px) {
  .riv-section-wrapper .riv-section {
    padding: 92px 24px;
  }

  .riv-section-wrapper .riv-container {
    padding: 0 24px;
  }

  .riv-section-wrapper .riv-heading {
    font-size: 42px;
    white-space: nowrap;
  }

  .riv-section-wrapper .riv-intro {
    margin-top: 18px;
    font-size: 17px;
  }

  .riv-section-wrapper .riv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 46px;
  }

  .riv-section-wrapper .riv-card {
    min-height: 294px;
    padding: 36px 28px 32px;
  }

  .riv-section-wrapper .riv-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 26px;
  }

  .riv-section-wrapper .riv-i {
    font-size: 29px;
  }

  .riv-section-wrapper .riv-card-title {
    font-size: 21px;
  }

  .riv-section-wrapper .riv-card-text {
    margin-top: 14px;
    font-size: 15.5px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .riv-section-wrapper .riv-section {
    padding: 76px 22px;
  }

  .riv-section-wrapper .riv-container {
    padding: 0 18px;
  }

  .riv-section-wrapper .riv-heading {
    font-size: 34px;
  }

  .riv-section-wrapper .riv-intro {
    margin-top: 16px;
    font-size: 16px;
  }

  .riv-section-wrapper .riv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 38px;
  }

  .riv-section-wrapper .riv-card {
    min-height: 268px;
    padding: 30px 24px 28px;
    border-radius: 20px;
  }

  .riv-section-wrapper .riv-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
  }

  .riv-section-wrapper .riv-i {
    font-size: 26px;
  }

  .riv-section-wrapper .riv-card-title {
    font-size: 19px;
  }

  .riv-section-wrapper .riv-card-text {
    margin-top: 12px;
    font-size: 15px;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .riv-section-wrapper .riv-section {
    padding: 58px 14px;
  }

  .riv-section-wrapper .riv-container {
    padding: 0 10px;
  }

  .riv-section-wrapper .riv-heading {
    font-size: 28px;
  }

  .riv-section-wrapper .riv-intro {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.58;
  }

  .riv-section-wrapper .riv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
  }

  .riv-section-wrapper .riv-card {
    min-height: 232px;
    padding: 22px 14px 20px;
    border-radius: 16px;
  }

  .riv-section-wrapper .riv-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 15px;
  }

  .riv-section-wrapper .riv-i {
    font-size: 22px;
  }

  .riv-section-wrapper .riv-card-title {
    font-size: 16px;
  }

  .riv-section-wrapper .riv-card-text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .riv-section-wrapper .riv-section {
    padding: 52px 12px;
  }

  .riv-section-wrapper .riv-container {
    padding: 0 6px;
  }

  .riv-section-wrapper .riv-heading {
    font-size: 25px;
  }

  .riv-section-wrapper .riv-intro {
    margin-top: 11px;
    font-size: 13.5px;
    line-height: 1.52;
  }

  .riv-section-wrapper .riv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
  }

  .riv-section-wrapper .riv-card {
    min-height: 224px;
    padding: 20px 12px 18px;
    border-radius: 15px;
  }

  .riv-section-wrapper .riv-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .riv-section-wrapper .riv-i {
    font-size: 20px;
  }

  .riv-section-wrapper .riv-card-title {
    font-size: 15px;
  }

  .riv-section-wrapper .riv-card-text {
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 1.45;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .riv-section-wrapper .riv-section {
    padding: 46px 10px;
  }

  .riv-section-wrapper .riv-container {
    padding: 0 4px;
  }

  .riv-section-wrapper .riv-heading {
    font-size: 23px;
  }

  .riv-section-wrapper .riv-intro {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.48;
  }

  .riv-section-wrapper .riv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .riv-section-wrapper .riv-card {
    min-height: 218px;
    padding: 18px 10px 16px;
    border-radius: 14px;
  }

  .riv-section-wrapper .riv-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 13px;
    border-radius: 13px;
  }

  .riv-section-wrapper .riv-i {
    font-size: 18px;
  }

  .riv-section-wrapper .riv-card-title {
    font-size: 14px;
    line-height: 1.22;
  }

  .riv-section-wrapper .riv-card-text {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.42;
  }
}

@media (max-width: 319px) {
  .riv-section-wrapper .riv-section {
    padding: 42px 10px;
  }

  .riv-section-wrapper .riv-container {
    padding: 0 4px;
  }

  .riv-section-wrapper .riv-heading {
    font-size: 22px;
  }

  .riv-section-wrapper .riv-intro {
    margin-top: 10px;
    font-size: 13px;
  }

  .riv-section-wrapper .riv-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .riv-section-wrapper .riv-card {
    min-height: 210px;
    padding: 18px 12px 16px;
  }

  .riv-section-wrapper .riv-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }

  .riv-section-wrapper .riv-i {
    font-size: 18px;
  }

  .riv-section-wrapper .riv-card-title {
    font-size: 14px;
  }

  .riv-section-wrapper .riv-card-text {
    margin-top: 8px;
    font-size: 12px;
  }
}