@import url("./general.css");

.chatbots.business {
  padding-top: 162px;
}

.chatbots__content {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.chatbots__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 32px;
  gap: 42px;
  background: var(--bg-main);
  border: 1px solid #201515;
  border-radius: 16px;
}

.chatbots__item-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  gap: 4px;
  width: 100%;
  height: 120px;
  background: #F8F4F0;
  border-radius: 12px;
}

.chatbots__item-title {
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: #201515;
}

.chatbots__item.dark {
  background: #201515;
}

.chatbots__item.dark .chatbots__item-head {
  background: #3B2E2E;
}

.chatbots__item.dark .chatbots__item-title {
  color: var(--bg-main);
}

.chatbots__item-description {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #201515;
  padding: 0 24px;
  margin-bottom: 12px;
}

.chatbots__item.dark .chatbots__item-description {
  color: #FFFEFB;
}

.chatbots__item-details {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #FF4800;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.chatbots__item-details:hover {
  opacity: 0.7;
}

.chatbots__item-details a {
  color: inherit;
  text-decoration: none;
}

.chatbots__item-details a:hover {
  color: inherit;
  text-decoration: none;
}

.chatbots__item-action {
  width: 100%;
  padding: 0 24px;
  margin-top: auto;
}

/* Decision section */
.decision__inner {
  margin-top: 48px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 32px 40px;
  gap: 64px;
  border: 1px solid #201515;
  border-radius: 16px;
}

.decision__content {
  min-width: 40%;
}

.decision__content-title {
  max-width: 520px;
  margin: 34px 0 32px;
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  color: #201515;
}

.decision__content-body {
  margin-bottom: 64px;
}

.decision__content-list {
  margin-top: 24px;
}

.decision__content-item {
  margin-bottom: 24px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #201515;
  display: flex;
  align-items: flex-start;
}

.decision__content-item img {
  width: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.decision__content-item-text {
  flex: 1;
}

.decision__content-item span {
  font-weight: 700;
}

.decision__content-action .btn {
  width: auto;
}

.decision__img {
  min-width: 390px;
}

.decision__img img {
  width: 100%;
}

/* Advantages section */
.advantages__inner {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  text-align: start;
}

.advantages__content-item {
  display: flex;
  flex-direction: column;
}

.advantages__content-img {
  margin-bottom: 32px;
}

.advantages__content-title {
  font-family: "Actay Wide";
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #201515;
}

.advantages__content-text {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-color-default);
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal {
  display: none;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 8px 32px rgba(32, 21, 21, 0.24);
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  flex-direction: column;
}

.modal-header {
  position: relative;
  padding: 40px 40px 24px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-content {
  padding: 0 40px 40px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-header h3 {
  font-family: 'Actay Wide';
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #201515;
  margin: 0;
  padding-right: 60px;
}

.modal-content h3 {
  font-family: 'Actay Wide';
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #201515;
  margin: 0 0 16px;
}

.modal-subtitle {
  font-family: 'Manrope';
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #666;
  margin: 0 0 24px;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin-bottom: 48px;
}

.modal-list li {
  margin-bottom: 16px;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #201515;
  display: flex;
  align-items: flex-start;
}

.modal-list li img {
  width: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.modal-list li div {
  flex: 1;
}

.modal-btn {
  width: 100%;
  max-width: none;
  margin: 0;
}

.modal-order-title {
  font-family: 'Actay Wide';
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #201515;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .chatbots__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .decision__inner {
    flex-direction: column;
  }

  .decision__img {
    min-width: auto;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 810px) {
  .advantages__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: start;
  }

  .advantages__content-item {
    display: flex;
    flex-direction: row;
    gap: 32px;
  }

  .advantages__content-text p {
    margin: 12px 0 0;
  }
}

@media (max-width: 670px) {
  .chatbots__content {
    grid-template-columns: 1fr;
  }

  .chatbots__item {
    padding-bottom: 20px;
  }

  .chatbots__item-head {
    height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 550px) {
  .decision__inner {
    padding: 16px;
  }

  .decision__content-action .btn {
    width: 100%;
  }

  .advantages__content-item {
    flex-direction: column;
    gap: 32px;
  }

  .advantages__content-img {
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .modal {
    margin: 20px;
    max-width: calc(100% - 40px);
  }

  .modal-header {
    padding: 24px 24px 16px;
  }

  .modal-content {
    padding: 0 24px 32px;
  }

  .modal-header h3 {
    font-size: 20px;
    line-height: 26px;
    padding-right: 60px;
  }

  .modal-content h3 {
    font-size: 20px;
    line-height: 26px;
  }
}