.investment-portfolio-main {
  background-color: #f5f5f5;
}
.investment-portfolio {
  padding-bottom: 140px;
}
.investment-portfolio-info {
  display: flex;
  justify-content: space-between;
}
.investment-portfolio-block {
  margin-top: 64px;
}
.investment-portfolio-title {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 24px;
}

.investment-portfolio-block p {
  font-size: 20px;
  width: 615px;
  margin-bottom: 100px;
}
.investment-portfolio-btns {
  display: flex;
  gap: 16px;
}
.investment-portfolio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 60px;
  border-radius: 16px;
  font-weight: 600;
}

.investment-portfolio-btn.btn-1 {
  color: var(--text-color-white);
  background-color: var(--bg-color-nephritis);
}

.investment-portfolio-btn.btn-2 {
  background-color: var(--bg-color-white);
}

.investment-portfolio-img {
  background: radial-gradient(
    61.99% 61.99% at 50% 50%,
    #21836d 0%,
    #f5f5f5 61.67%
  );
  height: 600px;
}
.investment-portfolio-img img {
  padding-top: 50px;
  width: 600px;
}

@media (max-width: 1350px) {
  .investment-portfolio-title {
    font-size: 40px;
  }
  .investment-portfolio-block p {
    font-size: 16px;
    width: 100%;
  }

  .investment-portfolio-img {
    height: 500px;
  }
  .investment-portfolio-img img {
    width: 500px;
  }
}

@media (max-width: 1200px) {
  .investment-portfolio-btns {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .investment-portfolio-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .investment-portfolio {
    padding-top: 150px;
    padding-bottom: 40px;
  }
  .investment-portfolio-title {
    font-size: 35px;
  }
  .investment-portfolio-img {
    height: 100%;
  }
  .investment-portfolio-img img {
    width: 100%;
  }
  /* .investment-portfolio {
    width: 100%;
    margin: 0 auto;
    background: url(../img/portfolio/bg.png),
      radial-gradient(61.99% 61.99% at 50% 50%, #21836d 0%, #f5f5f5 61.67%);
    background-repeat: no-repeat;
    background-position: center;
  } */
}

@media (max-width: 425px) {
  .investment-portfolio-img {
    height: 100%;
  }
  .investment-portfolio {
    padding-top: 110px;
    padding-bottom: 20px;
  }

  .investment-portfolio-block {
    margin-top: 0px;
  }
  .investment-portfolio-info {
    align-items: start;
    text-align: start;
  }
  .investment-portfolio-btn {
    width: 100%;
  }
}

@media (max-width: 425px) {
  .investment-portfolio-title {
    font-size: 25px;
    color: var(--text-color-black);
  }

  .investment-portfolio-block p {
    font-size: 16px;
    font-weight: 500;
  }
  .investment-portfolio-block p {
    margin-bottom: 40px;
  }
}

/* investment-offer */

.investment-offer {
  padding: 100px 0;
}

.investment-offer-block h2 {
  margin-bottom: 40px;
}

.investment-offer-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.investment-offer-card {
  flex: 1 1 calc(50% - 10px); /* 2 карточки в ряд */
  max-width: calc(50% - 10px);
  border-radius: 16px;
  padding: 20px 10px 20px 20px;
  background-color: var(--bg-color-white);
}
.offer-card-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.offer-card-title img {
  width: 70px;
  height: 70px;
}
.offer-card-title h3 {
  font-size: 30px;
  font-weight: 600;
  width: 300px;
  height: 90px;
}
.offer-card-body {
  margin-bottom: 30px;
}
.offer-card-body-title {
  font-weight: 700;
  margin-bottom: 15px;
}
.offer-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 16px;
  color: var(--text-color-white);
  background-color: var(--bg-color-nephritis);
}

@media (max-width: 1024px) {
  .investment-offer-block h2 {
    font-size: 40px;
  }
  .investment-offer-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 426px) {
  .offer-card-title img {
    width: 60px;
    height: 60px;
  }
  .offer-card-title {
    display: flex;
    row-gap: 15px;
    flex-flow: wrap column-reverse;

    margin-bottom: 20px;
  }
  .offer-card-title h3 {
    width: 100%;
    height: auto;
  }
  .offer-card-body-title {
    font-weight: 600;
    font-size: 14px;
  }

  .offer-card-body p {
    font-size: 14px;
  }

  .investment-offer-block h2 {
    font-size: 32px;
  }
  .investment-offer {
    padding: 40px 0;
  }
  .offer-card-title h3 {
    font-size: 26px;
  }
}

/* investment-values */

.investment-values {
  padding: 100px 0;
}

.investment-values-title {
  width: 700px;
  font-weight: 600;
  line-height: 60px;
  margin-bottom: 20px;
}
.investment-values-text {
  font-size: 18px;
  margin-bottom: 55px;
}
.investment-values-cards {
  display: flex;

  justify-content: center;

  position: relative;
}
.investment-values-card {
  position: relative;
  z-index: 2; /* По умолчанию все поверх */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 380px;
  height: 380px;
  background: var(--bg-color-white);
  border: 1px solid #6da89b;
  border-radius: 300px;
}

.investment-values-card img {
  margin-bottom: 43px;
}
.investment-values-card h4 {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
}

.investment-values-card p {
  width: 220px;
  margin-top: 10px;
  opacity: 0.5;
  text-align: center;
}

.investment-values-card:not(:first-child) {
  margin-left: -40px; /* Вот ключевой момент */
}

@media (max-width: 1300px) {
  .investment-values-cards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .investment-values-card:nth-child(4) {
    margin-left: 0px; /* Вот ключевой момент */
    margin-top: -40px;
    z-index: 1;
  }
}

@media (max-width: 1100px) {
  .investment-values-card:nth-child(3) {
    margin-left: 0px;
    margin-top: -40px;
    z-index: 1;
  }
}

@media (max-width: 1080px) {
  .investment-values {
    padding: 40px 0;
  }
  .investment-values-card:nth-child(4) {
    margin-left: -40px; /* Вот ключевой момент */
  }
}
@media (max-width: 768px) {
  .investment-values-card {
    width: 280px;
    height: 280px;
  }

  .investment-values-card img {
    margin-bottom: 10px;
  }
  .investment-values-card h4 {
    font-size: 16px;
  }

  .investment-values-card p {
    font-size: 14px;
  }
  .investment-values-title {
    width: 100%;
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .investment-values {
    padding: 40px 0;
  }
  .investment-values-card:nth-child(3),
  .investment-values-card:nth-child(4) {
    margin-top: -20px;
  }
  .investment-values-card {
    width: 215px;
    height: 215px;
  }
  .investment-values-card p {
    font-size: 14px;
    width: 149px;
  }
}

@media (max-width: 426px) {
  .investment-values-text {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .investment-values-card {
    width: 199px;
    height: 206px;
  }
  .investment-values-card img {
    width: 32px;
    height: 32px;
  }
  .investment-values-card p {
    font-size: 10px;
    width: 149px;
  }

  .investment-values {
    padding: 40px 0;
  }

  .investment-values-title {
    font-size: 25px;
    line-height: 1.2;
  }
}

.expert-white,
.reviews-white {
  background-color: var(--bg-color-white);
}

@media (max-width: 376px) {
  .investment-values-text {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .investment-values-card {
    width: 165px;
    height: 170px;
  }

  .investment-values-card h4 {
    font-size: 14px;
  }
  .investment-values-card img {
    width: 32px;
    height: 32px;
  }
  .investment-values-card p {
    width: 130px;
  }

  .investment-values {
    padding: 40px 0;
  }

  .investment-values-title {
    font-size: 25px;
    line-height: 1.2;
  }
}

.expert-white,
.reviews-white {
  background-color: var(--bg-color-white);
}
