/* NVIDIA Page Styles */
* {
  text-align: start;
  box-sizing: border-box;
}

div.page p {
  text-align: left;
}

.how-to_item p {
  text-align: center;
}

body {
  background-color: rgba(242, 242, 242, 1);
}

section {
  margin-bottom: 50px;
}

.container {
  width: 100%;
  max-width: 963px;
  margin: 0;
}

.block_title {
  margin-left: 40px;
  font-weight: 700;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #171717;
}

/* Banner styles */
.mf_header .mfh_title {
  font-weight: 700;
}

.mf_header .mfh_desc {
  font-size: 18px;
  line-height: 140%;
}

.mf_header {
  position: relative;
  overflow: hidden !important;
}

.mf_header img {
  opacity: 0.5 !important;
}

.mf_header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}

.mf_header .mfh_text,
.mf_header .mfh_buttons {
  position: relative;
  z-index: 2;
}

@media (max-width: 800px) {
  .mf_header .mfh_darken {
    display: none !important;
  }

  .mf_header .mfh_title {
    color: #fff !important;
    margin: 0 auto;
    text-align: center;
    max-width: unset;
  }

  .additional_page_header_aph .mf_header {
    background-color: #fff !important;
  }
}

.main-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row-1 {
  display: grid;
  grid-template-columns: 2.5fr 3.5fr;
  gap: 20px;
}

.row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-item {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #f2f2f2;
  padding: 37px 29.5px;
}

.grid-item.title {
  font-size: 32px;
  font-weight: 700;
}

.grid-item.title span {
  color: #e43d40;
}

.grid-item.growth {
  background: #171717;
  color: #fff;
}

.grid-item.growth.mobile-show {
  display: none;
}

.grid-item.revenue {
  background: #e43d40;
  color: #fff;
}

.grid-item.cap {
  background: #f2f2f2;
  color: #171717;
}

.grid-item-title {
  font-weight: 700;
  font-size: 24px;
}

.grid-item-text {
  margin-top: 30px;
  font-weight: 400;
  font-size: 18px;
}

.rise_content {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.rise_text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 60%;
}

.rise_text p {
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0%;
  color: #171717;
}

.rise_text p span {
  font-weight: 700;
}

.rise_img {
  width: 35%;
  height: 220px;
  border-radius: 30px;
  overflow: hidden;
  border-radius: 30px;
}

.rise_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-to_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  justify-content: center;
  align-items: stretch;
  /* ensures all cards are same height */
}

.how-to_item {
  position: relative;
  background-color: #f8f8f8;
  border-radius: 20px;
  padding: 50px 30px 30px;
  width: 30%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  overflow: visible;
}

.how-to_item h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  text-transform: none;
  margin-bottom: 10px;
}

.how-to_item-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center !important;
}

.icon-wrapper {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border-radius: 50%;
  height: 70px;
}

.icon-wrapper img {
  width: 70px;
  height: 70px;
}

.chart {
  margin: 20px 0 50px;
  width: 100%;
  height: 600px;
}

.grid-cont {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 16px;
  text-align: start;
  height: 180px;
}

.indicator-title {
  font-weight: 700;
  font-size: 16px;
  color: #171717;
  text-align: start;
}

.indicator-value {
  font-weight: 700;
  font-size: 14px;
  color: #171717;
  margin: 3px 0;
}

.indicator-value.large {
  font-weight: 700;
  font-size: 18px;
  color: #171717;
  margin: 6px 0;
}

.nvda-currency {
  font-size: 16px;
}

.indicator-value.small {
  font-weight: 700;
  font-size: 10px;
  color: #171717;
}

.indicator-value.max {
  color: #458d37;
}

.indicator-value.min {
  color: #dc080a;
}

.strategy-grid {
  margin: 20px 0;
  display: flex;
  gap: 20px;
}

.strategy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  padding: 30px 40px;
  height: 182px;
  gap: 20px;
  border-radius: 30px;
  background-color: #171717;
}

.strategy-card-title {
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  text-align: start;
}

.strategy-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}



.strategy-btn-desc {
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
}

.faq__item-q {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 500;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #171717;
}

.faq__item-a {
  margin: 20px 0 0 0;
  color: #535353;
  display: none;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
}

.faq__item-open .faq__item-a {
  display: block;
}

.faq__item-open svg {
  transform: rotate(45deg);
}

.faq__item {
  border-bottom: 1px solid #f2f2f2;
  padding: 35px 0 20px 0;
}

.faq__item-q svg {
  min-width: 24px;
  transition: transform 0.5s ease;
}



@media (max-width: 1199px) {
  .grid-cont {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }

  .card {
    height: 130px;
  }

  .card:nth-child(1) {
    grid-column: span 2;
  }

  .card:nth-child(2) {
    grid-column: span 2;
  }

  .card:nth-child(3) {
    grid-column: span 2;
  }

  .card:nth-child(4) {
    grid-column: span 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 90px;
  }

  .card:nth-child(4) > div:last-child,
  .card:nth-child(4) > div:last-child > div {
    text-align: end;
  }

  .card:nth-child(5) {
    grid-column: span 3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 90px;
  }

  .card:nth-child(5) > div:last-child,
  .card:nth-child(5) > div:last-child > div {
    text-align: end;
  }
}

@media (max-width: 1024px) {
  .grid-item {
    padding: 20px 15px;
  }

  .grid-item.title {
    padding: 20px;
  }

  .grid-item.title {
    font-size: 26px;
  }

  .grid-item-title {
    font-size: 20px;
  }

  .grid-item-text {
    font-size: 16px;
  }

  .rise_text p {
    font-size: 16px;
  }

  .rise_text p span {
    font-size: 18px;
  }

  .strategy-card-title {
    font-size: 20px;
  }

  .strategy-card-img img {
    height: 155px;
  }

  .rise_img {
    height: 230px;
  }

  .faq__item-q {
    font-size: 20px;
  }

  .faq__item-a {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  section {
    margin-bottom: 30px;
  }

  .block_title {
    font-size: 24px;
    margin-left: 10px;
  }

  .main-grid {
    gap: 0px;
  }

  .grid-item.title {
    font-size: 22px;
  }

  .grid-item-title {
    font-size: 16px;
  }

  .grid-item-text {
    font-size: 14px;
  }

  .row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Просто чтобы убедиться, что каждый элемент занимает нужное место */
  .grid-item {
    width: 100%;
  }

  .grid-item.title {
    grid-column: 1 / -1;
    /* чтобы на 100% */
  }

  .grid-item.growth.mobile-hide {
    display: none;
  }

  .grid-item.growth.mobile-show {
    display: inline-block;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .grid-item.revenue {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .grid-item.cap {
    grid-column: 1 / 2;
    grid-row: 3 / 3;
  }

  .grid-item.img {
    grid-column: 2 / 3;
    grid-row: 3 / 3;
  }

  .how-to_content {
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
  }

  .how-to_item {
    width: 100%;
  }

  .how-to_item-text {
    font-size: 14px;
  }

  .how-to_item h3 {
    font-size: 20px;
  }

  .chart {
    height: 650px;
  }

  .strategy-grid {
    flex-direction: column;
  }

  .strategy-card-title {
    font-size: 18px;
  }

  .strategy-card-img img {
    height: 140px;
  }

  .faq__item-q {
    font-size: 18px;
  }

  .faq__item-a {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .grid-cont {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card {
    margin-bottom: 10px;
    grid-column: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 90px;
  }

  .card > div:last-child,
  .card > div:last-child > div {
    text-align: end;
  }
}
@media (max-width: 520px) {
  .rise_content {
    flex-direction: column;
    gap: 20px;
  }
  .rise_text {
    width: 100%;
  }
  .rise_text p {
    font-size: 14px;
  }

  .rise_text p span {
    font-size: 16px;
  }

  .rise_img {
    width: 100%;
    height: 200px;
  }
}
