/* ============================================= */
/* RPA - ТЕХНО-СТИЛЬ                              */
/* ============================================= */

.case_top {
  height: 0;
}

/* ============================================= */
/* БАННЕР RPA - уменьшен по аналогии с кейсами    */
/* ============================================= */

.rpa-banner {
  position: relative;
  min-height: 50vh;
  background: linear-gradient(
    135deg,
    #f5eded 0%,
    #e8e8e8 16%,
    #fdf0e8 33%,
    #e8f5f5 50%,
    #f0e8f5 66%,
    #e8f5e8 83%,
    #f5eded 100%
  );
  background-size: 600% 600%;
  animation: rpaBgShift 8s ease infinite;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: -88px;
  padding-top: 88px;
}

@keyframes rpaBgShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.rpa-banner-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.rpa-banner-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.rpa-banner-content .rpa_title {
  font-family: 'Montserrat', sans-serif;
  font-size: 52px;
  line-height: 60px;
  font-weight: 700;
  color: #1F1F1F;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.rpa-banner-content .rpa_title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 5px;
  background: #E11F2B;
  border-radius: 3px;
}

.rpa-banner-content .rpa_under_title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  color: #555555;
}

/* ============================================= */
/* СЕКЦИИ - ЧЕРЕДОВАНИЕ                           */
/* ============================================= */

.rpa-section-white {
  padding: 80px 0;
  background: #FFFFFF;
}

.rpa-section-gray {
  padding: 80px 0;
  background: #F7F8F9;
}

.rpa-section-gradient {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    #fcd4d4 0%,
    #f2f2f2 40%,
    #fcd4d4 80%,
    #f7f7f7 100%
  );
  background-size: 300% 300%;
  animation: bannerShift 12s ease infinite;
}

@keyframes bannerShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.rpa-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #1F1F1F;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.rpa-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #E11F2B;
  border-radius: 2px;
}

/* ============================================= */
/* ТЕКСТЫ                                         */
/* ============================================= */

.rpa-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #555555;
  margin-bottom: 30px;
}

.rpa-text-bold {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1F1F1F;
  margin-bottom: 20px;
}

.rpa-list-square {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.rpa-list-square li {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #555555;
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}

.rpa-list-square li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #E11F2B;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ============================================= */
/* КАРТОЧКИ УСЛУГ                                 */
/* ============================================= */

.rpa-service-card {
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: 30px 25px;
  height: 100%;
  transition: all 0.4s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.rpa-service-card:hover {
  border-color: #E11F2B;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(225, 31, 43, 0.08);
}

.rpa-service-icon {
  margin-bottom: 16px;
}

.rpa-service-icon img {
  width: 32px;
  height: auto;
}

.rpa-service-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1F1F1F;
  margin-bottom: 8px;
}

.rpa-service-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #666666;
}

/* ============================================= */
/* КАРТОЧКИ ПРОДУКТОВ                             */
/* ============================================= */

.rpa-product-card {
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  transition: all 0.4s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.rpa-product-card:hover {
  border-color: #E11F2B;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(225, 31, 43, 0.08);
}

.rpa-product-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1F1F1F;
  margin-bottom: 10px;
}

.rpa-product-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #666666;
}

/* ============================================= */
/* КОРОБОЧНЫЕ РЕШЕНИЯ                             */
/* ============================================= */

.rpa-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rpa-box-card {
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rpa-box-card:hover {
  border-color: #E11F2B;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(225, 31, 43, 0.08);
}

.rpa-box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.rpa-box-icon img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.rpa-box-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1F1F1F;
}

/* ============================================= */
/* ФОРМА                                          */
/* ============================================= */

.rpa-contact-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.rpa-contact-wrapper {
  padding: 50px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #F0F0F0;
}

.rpa-contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  color: #E11F2B;
  margin-bottom: 16px;
}

.rpa-contact-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #666666;
  line-height: 24px;
}

.rpa-form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #666666;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.rpa-form-label span {
  color: #E11F2B;
}

.rpa-form-input,
.rpa-form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #F7F8F9;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  color: #1F1F1F;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.rpa-form-input:focus,
.rpa-form-textarea:focus {
  border-color: #E11F2B;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(225, 31, 43, 0.06);
}

.rpa-form-textarea {
  resize: none;
}

.rpa-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.rpa-form-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #E11F2B;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.rpa-form-check span {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #999999;
  line-height: 18px;
}

.rpa-form-check a {
  color: #E11F2B;
  text-decoration: none;
  font-weight: 500;
}

.rpa-form-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  background: #E11F2B;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.rpa-form-btn:hover {
  background: #C41A23;
  box-shadow: 0 10px 30px rgba(225, 31, 43, 0.3);
}

/* ============================================= */
/* АДАПТИВНОСТЬ                                   */
/* ============================================= */

@media (max-width: 991.98px) {
  .rpa-banner {
    min-height: 40vh;
    margin-top: -70px;
    padding-top: 70px;
  }

  .rpa-banner-content .rpa_title {
    font-size: 36px;
    line-height: 44px;
  }

  .rpa-banner-content .rpa_under_title {
    font-size: 18px;
    line-height: 26px;
  }

  .rpa-section-white,
  .rpa-section-gray,
  .rpa-section-gradient,
  .rpa-contact-section {
    padding: 60px 0;
  }

  .rpa-section-title {
    font-size: 28px;
  }

  .rpa-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .rpa-banner {
    min-height: 35vh;
    margin-top: -60px;
    padding-top: 60px;
  }

  .rpa-banner-content .rpa_title {
    font-size: 26px;
    line-height: 32px;
  }

  .rpa-banner-content .rpa_under_title {
    font-size: 16px;
    line-height: 22px;
  }

  .rpa-section-white,
  .rpa-section-gray,
  .rpa-section-gradient,
  .rpa-contact-section {
    padding: 40px 0;
  }

  .rpa-section-title {
    font-size: 24px;
  }

  .rpa-box-grid {
    grid-template-columns: 1fr;
  }

  .rpa-contact-wrapper {
    padding: 25px;
  }

  .rpa-contact-title {
    font-size: 24px;
  }
}

/* ============================================= */
/* Баннер кейса                                   */
/* ============================================= */

.rpa-case-banner {
  position: relative;
  min-height: 50vh;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: -88px;
  padding-top: 88px;
}

/* ============================================= */
/* Нумерованный список                            */
/* ============================================= */

.rpa-list-number {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.rpa-list-number li {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #555555;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
}

.rpa-list-number li span {
  color: #E11F2B;
  font-weight: 700;
  min-width: 24px;
  flex-shrink: 0;
}

/* ============================================= */
/* Сетка 4 колонки                                */
/* ============================================= */

.rpa-box-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================= */
/* Заголовок результата                           */
/* ============================================= */

.rpa-result-title {
  color: #E11F2B;
}

/* ============================================= */
/* Ссылки                                         */
/* ============================================= */

.rpa-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rpa-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #1F1F1F;
  transition: all 0.3s ease;
  gap: 16px;
}

.rpa-link-item:hover {
  border-color: #E11F2B;
  box-shadow: 0 8px 25px rgba(225, 31, 43, 0.08);
}

.rpa-link-item svg {
  flex-shrink: 0;
}

/* ============================================= */
/* АДАПТИВНОСТЬ КЕЙСОВ                            */
/* ============================================= */

@media (max-width: 991.98px) {
  .rpa-case-banner {
    min-height: 40vh;
  }

  .rpa-box-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .rpa-case-banner {
    min-height: 35vh;
  }

  .rpa-box-grid-4 {
    grid-template-columns: 1fr;
  }
}