@import url("index.css");

/* Tariffs */

.tariffs {
  width: 100%;
  height: auto;
  margin-bottom: 140px;
}

.tariffs__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 60px;
  align-items: center;
}

.tariffs__item {
  border-radius: 8px;
  background: #f5f5f5;
  border: 2px solid #f5f5f5;
  position: relative;
  box-sizing: border-box;
}

.tariffs__item-inner {
  padding: 30px;
  padding-top: 46px;
  box-sizing: border-box;
  height: 100%;
}

.tariffs__icon {
  width: 52px;
  height: 52px;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translate(-50%, 0);
  background: #1b1029;
  border: 2px solid #9660db;
  border-radius: 10px;
  padding: 12px;
  box-sizing: border-box;
}

.tariffs__name {
  font-size: 20px;
  color: #1b1029;
  text-align: center;
}

.tariffs__price {
  margin-top: 7.5px;
  font-size: 48px;
  font-weight: 700;
  color: #9660db;
  text-align: center;
  line-height: 60px;
  letter-spacing: -2%;
}

.tariffs__price:not(.tariffs__price--custom) {
  margin: 12.5px 0 7.5px 0;
  text-align: center;
  line-height: 50px;
}

.tariffs__price--custom {
  font-size: 32px;
  line-height: 40px;
}

.tariffs__price-extra {
  font-weight: 600;
  text-align: center;
  color: #1b1029;
  line-height: 24px;
}

.tariffs__benefits {
  display: grid;
  grid-template-columns: 100%;
  row-gap: 16px;
  margin-top: 32px;
}

.tariffs__benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.tariffs__benefit::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: url("/assets/icons/check-mark-3.svg") no-repeat center;
}

.tariffs__benefit-text {
  color: #5b687b;
  font-weight: 400;
}

.tariffs__benefit-text--highlighted {
  font-weight: 600;
  color: #1b1029;
}

.tariffs__get-started-button {
  width: 100%;
  margin-top: 40px;
  height: 51px;
  border-radius: 8px;
  font-size: 16px;
  padding-left: 0;
  padding-right: 0;
}

.tariffs__most-popular-plan-text {
  width: 100%;
  height: 44px;
  background: #221632;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* All Plans Benefits */

.all-plans-benefits {
  margin-bottom: 160px;
}

.all-plans-benefits__title {
  text-align: center;
  margin-bottom: 40px;
}

.all-plans-benefits__list {
  background: #221632;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 60px;
  padding: 40px;
  box-sizing: border-box;
  border-radius: 8px;
}

.all-plans-benefits__item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
}

.all-plans-benefits__item::before {
  content: "";
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 6px;
  background: rgba(149, 96, 219, 0.2);
  border: 1px solid #9660db;
  box-sizing: border-box;
  box-shadow: 0 0 5px #9660db;
  background: url("/assets/icons/check-mark.svg") no-repeat center;
}

.all-plans-benefits__item-text {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 24px;
  position: relative;
  top: 3px;
}

/* Resources Pricing */

.resource-pricing {
  text-align: center;
  padding-bottom: 160px;
  padding-top: 160px;
  position: relative;
}

.resource-pricing::before {
  content: "";
  width: 125%;
  height: 100%;
  bottom: 0;
  left: 50%;
  position: absolute;
  z-index: -1;
  transform: translate(-50%, 0);
  background: radial-gradient(50% 5.5% at 50% 100%, rgba(150, 96, 219, 0.2) 0%, rgba(150, 96, 219, 0.02) 80.5%, rgba(150, 96, 219, 0) 100%),
    radial-gradient(50% 31.25% at 50% -15%, #9660db 0%, rgba(150, 96, 219, 0.1) 80.5%, rgba(150, 96, 219, 0) 100%), #1b1029;
}

.resource-pricing__title {
  margin-bottom: 16px;
}

.resource-pricing__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.resource-pricing__list:not(.resource-pricing__list--active) {
  display: none;
}

.resource-pricing__item {
  background: #221632;
  padding: 20px 0;
  box-sizing: border-box;
  border-radius: 8px;
}

.resource-pricing__item-name {
  font-weight: 700;
}

.resource-pricing__item-price {
  font-size: 48px;
  font-weight: 700;
  color: #9660db;
}

.resource-pricing__item-price-description {
  font-weight: 400;
  color: #fff;
}

.dropdown {
  margin: auto;
  width: 250px;
  height: 40px;
  position: relative;
}

.dropdown__header {
  width: 100%;
  height: 100%;
  border-radius: 100px;
  position: relative;
  background: #1b1029;
  box-sizing: border-box;
  border: 1px solid #9660db;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: ". title arrow";
  column-gap: 10px;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  margin: auto;
}

.dropdown__header::after {
  content: "";
  width: 12px;
  height: 6px;
  background: url("/assets/icons/arrow.svg") center no-repeat;
  background-size: contain;
  transform: rotate(0deg);
  transition: all 0.1s;
  grid-area: arrow;
}

.dropdown--active .dropdown__header::after {
  transform: rotate(180deg);
}

.dropdown__title {
  font-size: 14px;
  color: #fff;
  font-weight: 400;
  text-align: center;
  grid-area: title;
}

.dropdown__list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto;
  border-radius: 8px;
  background: #1b1029;
  box-sizing: border-box;
  border: 1px solid #9660db;
  display: grid;
  grid-template-columns: 100%;
  transform: translateY(10px);
  padding: 10px 0;
  transition: all 0.1s;
  opacity: 1;
}

.dropdown:not(.dropdown--active) .dropdown__list {
  pointer-events: none;
  opacity: 0;
}
 
.dropdown__item {
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.1s;
}

.dropdown__item:hover {
  background: #fff;
}

.dropdown__item:hover .dropdown__item-name {
  color: #1b1029;
}

.dropdown__item-name {
  color: #fff;
  font-weight: 400;
  transition: all 0.1s;
}

@media screen and (max-width: 1160px) {
  .tariffs__item-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .resource-pricing__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .tariffs__list {
    grid-template-columns: 100%;
  }

  .tariffs {
    margin-bottom: 60px;
  }

  .all-plans-benefits__list {
    grid-template-columns: 100%;
    row-gap: 30px;
    padding: 20px;
  }

  .all-plans-benefits {
    margin-bottom: 60px;
  }

  .resource-pricing {
    padding-bottom: 60px;
    padding-top: 40px;
  }

  .resource-pricing__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-pricing__item-price {
    font-size: 40px;
  }
}

@media screen and (max-width: 340px) {
  .resource-pricing__list {
    grid-template-columns: 100%;
  }
}
