/* Results Section */
.results-section {
  padding: 5.5rem 0;

  background-color: var(--background);
}

.section__wrapper {}

.results-section__header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  width: 100%;
  margin-bottom: 3rem;
}

.results-section__rating {
  display: inline-flex;
  align-items: center;
  gap: .75rem;

  margin-bottom: .9rem;
}

.results-section__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--secondary-text);
}

.results-section__stars {
  display: flex;
  align-items: center;
  gap: .125rem;
}

.results-section__star {
  width: 18px;
  height: 18px;

  fill: #2dbe6c;
}

.results-section__title {
  margin: 0 0 .625rem;

  font-size: 3.375rem;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.05;
}

.results-section__subtitle {
  font-size: 1rem;
  color: var(--secondary-text);
}

.results-section__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.results-section__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  width: fit-content;
  margin: 3rem auto 0;
  padding: 1.125rem 2.25rem;

  border-radius: 99rem;
  border: 1.5px solid var(--dark);
  background: var(--surface);

  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

.results-section__cta:hover {
  background: var(--dark);
  color: var(--light-text);
}

.results-section__cta-icon {
  width: 16px;
  height: 16px;
}

/* Goals Section */
.goals-section {
  padding: 6rem 0 2rem;

  background-color: var(--surface);
}

.goals-section__header {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 47.5rem;
  margin: 0 auto 3rem;

  text-align: center;
}

.goals-section__title {
  margin: 0;

  font-size: 3.375rem;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.goals-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.goals-column {
  display: flex;
  flex-direction: column;

  overflow: hidden;

  border-radius: 1.375rem;
}

.goals-column--before {
  border: 1px solid var(--border);
  background-color: var(--muted-background);
}

.goals-column--after {
  border: 1.5px solid var(--main);
  background-color: var(--main-background);
}

.goals-column__image {
  display: block;
  position: relative;

  width: 100%;
  overflow: hidden;

  border-bottom: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}

.goals-column__image-content {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.goals-column__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.125rem;

  padding: 2rem 2rem 2.25rem;
}

.goals-column__tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .5rem;

  padding: .375rem .75rem;

  border-radius: 99rem;

  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.goals-column--before .goals-column__tag {
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--secondary-text);
}

.goals-column--after .goals-column__tag {
  border: 1px solid var(--main);
  background-color: var(--main);
  color: var(--light-text);
}

.goals-column__title {
  margin: 0;

  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.goals-column--before .goals-column__title {}

.goals-column__accent {
  font-style: normal;
}

.goals-column--before .goals-column__accent {
  color: var(--danger);
}

.goals-column--after .goals-column__accent {
  color: var(--main);
}

.goals-column__list {
  display: grid;
  gap: .875rem;

  margin: .375rem 0 0;
  padding: 0;

  list-style: none;
}

.goals-column__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;

  font-size: 1rem;
  line-height: 1.45;
  color: var(--secondary-text);
}

.goals-column__item-title {
  font-weight: 700;
}

.goals-column__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;

  width: 26px;
  height: 26px;
  margin-top: .0625rem;

  border-radius: 50%;
}

.goals-column--before .goals-column__icon {
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--danger);
}

.goals-column--before .goals-column__icon-svg {
  stroke: var(--danger);
}

.goals-column--after .goals-column__icon {
  border: 0;
  background-color: var(--success);
  color: var(--light-text);
}

.goals-column--after .goals-column__icon-svg {
  stroke: var(--light-text);
}

.goals-column__icon-svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 48rem) {
  .goals-section {
    padding: 3.5rem 0 1.5rem;
  }

  .goals-section__header {
    margin-bottom: 2rem;
  }

  .goals-section__title {
    font-size: 2.375rem;
  }

  .goals-section__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .goals-column__body {
    padding: 1.5rem 1.25rem;
  }

  .goals-column__title {
    font-size: 2rem;
  }
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;

}

.result-card__block {
  margin-bottom: .675rem;

  border-radius: 1.125rem;
  box-shadow: 0 6px 22px -16px rgba(15, 31, 51, .22);

  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.result-card__img {
  display: block;

  width: 100%;
  height: 100%;
}

.result-card__name {
  margin: 0.375rem 0 0;

  font-size: 1.25rem;
  font-weight: 700;
}

.result-card__quote {
  margin: 0;

  font-size: 1rem;
  line-height: 1.45;
  color: var(--secondary-text);
  text-wrap: pretty;
}

/* Journey Section */
.journey-section {
  padding: 5rem 0;

  background-color: var(--surface);
}

.journey-section__card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;

  padding: 4rem 3.5rem;

  border-radius: 1.5rem;
  background-color: var(--dark);
}

.journey-section__content {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.journey-section__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  width: fit-content;
  margin-bottom: 2rem;
  padding: .5rem 1rem;

  border: 1px solid var(--warning);
  border-radius: 99rem;

  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--warning);
  text-transform: uppercase;
}

.journey-section__pulse {
  width: 9px;
  height: 9px;

  border-radius: 99rem;
  background-color: var(--warning);
  box-shadow: 0 0 0 6px var(--warning-shadow);
}

.journey-section__title {
  max-width: 31rem;
  margin: 0 0 1.25rem;

  font-size: 3.375rem;
  font-weight: 900;
  line-height: 1.08;
  color: var(--light-text);
}

.journey-section__accent {
  font-style: normal;
  color: var(--secondary);
}

.journey-section__text {
  max-width: 32rem;
  margin: 0;

  font-size: 1rem;
  line-height: 1.6;
  color: var(--border);
}

.journey-section__stats {
  display: flex;
  gap: 2.75rem;

  margin-top: 2rem;
}

.journey-stat {
  display: flex;
  flex-direction: column;
}

.journey-stat__value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--warning);
}

.journey-stat__label {
  font-size: .75rem;
  color: var(--border);
}

.journey-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.journey-section__button {
  width: 100%;
  max-width: 24rem;
  padding: 1.25rem 2rem;

  border: 0;
  border-radius: 99rem;
  background-color: var(--main);
  box-shadow: 0 8px 22px -8px var(--main-shadow);

  font-size: 1rem;
  font-weight: 700;
  color: var(--light-text);

  cursor: pointer;
}

.journey-section__guarantee {
  display: flex;
  align-items: center;
  gap: .5rem;

  font-size: .875rem;
  color: var(--light-text);
}

.journey-section__guarantee-text,
.journey-section__guarantee-label {
  color: var(--light-text);
}

.journey-section__lock {
  flex-shrink: 0;

  width: 14px;
  height: 14px;

  stroke: var(--success);
}

/* Progress Section */
.progress-section {
  padding: 6rem 0;

  background-color: var(--background);
}

.progress-section__title {
  margin: 0 0 3.5rem;

  font-size: 3.375rem;
  font-weight: 900;
  text-align: center;
  color: var(--dark);
}

.progress-section__layout {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.progress-chart {
  padding: 2rem 1.75rem 1.25rem;

  border: 1px solid var(--border);
  border-radius: 1.125rem;
  background-color: var(--surface);
  box-shadow: 0 12px 30px -24px var(--success-shadow);
}

.progress-chart__header,
.progress-chart__weeks {
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.progress-chart__svg {
  display: block;

  width: 100%;
  height: 260px;
  margin: 1rem 0 0;
}

.progress-chart__gradient-start {
  stop-color: var(--success);
  stop-opacity: .35;
}

.progress-chart__gradient-end {
  stop-color: var(--success);
  stop-opacity: 0;
}

.progress-chart__grid-line {
  stroke: var(--border);
}

.progress-chart__area {
  fill: url("#progress-fill");
}

.progress-chart__curve {
  fill: none;
  stroke: var(--dark);
  stroke-linecap: round;
  stroke-width: 2.2;
}

.progress-chart__point--start {
  fill: var(--dark);
}

.progress-chart__point--finish {
  fill: var(--surface);
  stroke: var(--success);
  stroke-width: 2.4;
}

.progress-chart__tag-background--without {
  fill: var(--dark);
}

.progress-chart__tag-background--with {
  fill: var(--success);
}

.progress-chart__label {
  fill: var(--light-text);

  font-size: .75rem;
  font-weight: 700;
}

.progress-chart__weeks {
  padding: 0 2.25rem;

  letter-spacing: 0;
  text-transform: none;
}

.progress-timeline {
  display: grid;
  gap: 1.75rem;

  position: relative;
}

.progress-timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;

  width: 1px;

  background-color: var(--border);

  content: "";
}

.progress-timeline__item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 1.5rem;

  position: relative;
}

.progress-timeline__dot {
  position: relative;
  z-index: 1;

  width: 18px;
  height: 18px;

  border: 2px solid var(--border);
  border-radius: 99rem;
  background-color: var(--surface);
}

.progress-timeline__item--active .progress-timeline__dot {
  border-color: var(--success);
  background-color: var(--success);
  box-shadow: 0 0 0 4px var(--success-shadow);
}

.progress-timeline__title {
  margin: 0;

  font-size: 1.125rem;
  font-weight: 800;
}

.progress-timeline__text {
  margin: .5rem 0 0;

  font-size: 1rem;
  line-height: 1.5;
  color: var(--secondary-text);
}

.progress-section__button {
  display: block;

  width: 100%;
  max-width: 16rem;
  margin: 4rem auto 0;
  padding: 1.25rem 2rem;

  border: 0;
  border-radius: 99rem;
  background-color: var(--main);
  box-shadow: 0 8px 22px -8px var(--main-shadow);

  font-size: 1rem;
  font-weight: 700;
  color: var(--light-text);

  cursor: pointer;
}

@media (max-width: 48rem) {
  .journey-section__card,
  .progress-section__layout {
    grid-template-columns: 1fr;
  }

  .journey-section__card {
    gap: 2.5rem;

    padding: 2rem 1.5rem;
  }

  .journey-section__title,
  .progress-section__title {
    font-size: 2.375rem;
  }

  .journey-section__stats {
    gap: 1rem;
  }

  .progress-chart__svg {
    height: 220px;
  }
}

/* Reviews Section */
.reviews-section {
  padding: 6rem 0;

  background-color: var(--surface);
}

.reviews-section__rating {
  display: flex;
  align-items: center;
  gap: .625rem;

  width: fit-content;
  margin: 0 auto 1.125rem;
  padding: .5rem 1rem;

  border: 1px solid var(--border);
  border-radius: 99rem;
  background-color: var(--background);

  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  color: var(--secondary-text);
}

.reviews-section__stars {
  color: var(--star);
  letter-spacing: .125rem;
}

.reviews-section__rating-text {
  color: var(--secondary-text);
}

.reviews-section__title {
  margin: 0;

  font-size: 3.375rem;
  font-weight: 900;
  text-align: center;
}

.reviews-section__subtitle {
  margin: .75rem 0 3rem;

  font-size: 1rem;
  text-align: center;
  color: var(--secondary-text);
}

.reviews-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: .875rem;

  padding: 1.625rem 1.5rem;

  border: 1px solid var(--border);
  border-radius: 1.125rem;
  background-color: var(--background);

  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.review-card:hover {
  border-color: var(--border);

  transform: translateY(-2px);
}

.review-card__person {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.review-card__avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;

  width: 48px;
  height: 48px;
  overflow: hidden;

  border-radius: 99rem;
}

.review-card__avatar-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.review-card__name,
.review-card__city {
  display: block;
}

.review-card__name {
  font-size: 1rem;
}

.review-card__city {
  font-size: .875rem;
  color: var(--secondary-text);
}

.review-card__stars {
  color: var(--star);
  letter-spacing: .125rem;
  line-height: 1;
}

.review-card__text {
  flex: 1;

  margin: 0;

  font-size: 1rem;
  line-height: 1.5;
}

.review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: .375rem;

  margin-top: 1.25rem;
  padding-top: .375rem;

  border-top: 1px dashed var(--border);

  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--success);
  text-transform: uppercase;
}

.review-card__verified-icon {
  width: 14px;
  height: 14px;

  stroke: var(--success);
}

/* FAQ Section */
.faq-section {
  padding: 4rem 1rem;

  background-color: var(--background);
}

.faq-section__title {
  margin: 0 0 3rem;

  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  text-align: center;
}

.faq-section__list {
  display: grid;
  gap: 1rem;

  width: 100%;
  max-width: 742px;
  margin: 0 auto;
}

.faq-item {
  padding: 0 1rem;

  border-radius: .5rem;
  background-color: var(--surface);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1.25rem 0;

  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;

  cursor: pointer;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  flex-shrink: 0;

  font-size: 1.7rem;
  font-weight: 400;
  color: var(--secondary-text);
}

.faq-item[open] .faq-item__icon {
  font-size: 0;
}

.faq-item[open] .faq-item__icon::before {
  font-size: 1.7rem;

  content: "−";
}

.faq-item__answer {
  margin: 0;
  padding: .75rem 0 1.25rem;

  font-size: .95rem;
  line-height: 1.5;
  color: var(--secondary-text);
}

@media (max-width: 48rem) {
  .reviews-section__grid {
    grid-template-columns: 1fr;
  }

  .reviews-section__title,
  .faq-section__title {
    font-size: 2.375rem;
  }

  .reviews-section__rating {
    justify-content: center;
    flex-direction: column;
    gap: .25rem;
  }

  .faq-section__list {
    gap: .5rem;
  }

  .faq-section__title {
    margin-bottom: 2rem;

    font-size: 1.625rem;
  }

  .faq-item__question {
    font-size: .95rem;
  }
}

/* Checkout adaptation */
@media (max-width: 1200px) {
  .products-section,
  .benefits-section__wrapper,
  .results-section__wrapper,
  .goals-section .container,
  .journey-section .container,
  .progress-section .container,
  .reviews-section .container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .products-section__products-list {
    gap: .75rem;
  }

  .product-card {
    padding: 1.25rem 1rem;
  }

  .product-card__image {
    height: 190px;
  }

  .product-card__price {
    font-size: 2rem;
  }

  .product-card__saving {
    height: 42px;
  }

  .product-card__saving-text {
    font-size: .8rem;
  }

  .product-card__guarantees {
    align-items: flex-start;
    flex-direction: column;
  }

  .benefits-section__wrapper {
    gap: 2rem;
  }

  .journey-section__card,
  .progress-section__layout {
    gap: 2.5rem;
  }
}

@media (max-width: 864px) {
  .products-section {
    gap: 2rem;

    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .products-section__products-list {
    align-items: stretch;
    flex-direction: column;

    max-width: 560px;
  }

  .product-card {
    order: var(--product-mobile-order);
    border-radius: .75rem;
  }

  .product-card__image {
    height: 240px;
  }

  .product-card__guarantees {
    align-items: center;
    flex-direction: row;
  }

  .benefits-section__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;

    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .benefit__title {
    font-size: 1.25rem;
  }

  .results-section,
  .reviews-section,
  .progress-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .results-section__title,
  .goals-section__title,
  .journey-section__title,
  .progress-section__title,
  .reviews-section__title {
    font-size: 2.75rem;
  }

  .journey-section__card,
  .progress-section__layout {
    grid-template-columns: 1fr;
  }

  .journey-section__card {
    gap: 3rem;

    padding: 3rem;
  }

  .journey-section__actions {
    align-items: flex-start;
  }

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

  .review-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .results-section,
  .goals-section,
  .journey-section,
  .progress-section,
  .reviews-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .results-section__header,
  .goals-section__header {
    margin-bottom: 2rem;
  }

  .results-section__list,
  .goals-section__grid,
  .reviews-section__grid {
    grid-template-columns: 1fr;
  }

  .results-section__list,
  .reviews-section__grid {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
  }

  .result-card__img {
    object-fit: cover;
  }

  .goals-section__grid {
    display: grid;
  }

  .goals-column__image {
    aspect-ratio: 16 / 9;
  }

  .reviews-section__grid .review-card {
    grid-column: auto;
  }
}

@media (max-width: 576px) {
  .products-section,
  .benefits-section__wrapper,
  .results-section__wrapper,
  .goals-section .container,
  .journey-section .container,
  .progress-section .container,
  .reviews-section .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .results-section__title,
  .goals-section__title,
  .journey-section__title,
  .progress-section__title,
  .reviews-section__title {
    width: 100%;

    font-size: 2rem;
    line-height: 1.15;
  }

  .product-card {
    padding: 1.25rem 1rem;
  }

  .product-card__title {
    font-size: 1.5rem;
  }

  .product-card__image {
    height: 210px;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .product-card__price {
    font-size: 2rem;
  }

  .product-card__guarantees {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .benefits-section__wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .benefit {
    align-items: flex-start;

    text-align: left;
  }

  .results-section__rating {
    align-items: center;
    flex-direction: column;
    gap: .5rem;
  }

  .results-section__label {
    text-align: center;
  }

  .results-section__subtitle,
  .reviews-section__subtitle {
    line-height: 1.5;
    text-align: center;
  }

  .results-section__title {
    text-align: center;
  }

  .results-section__wrapper {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .results-section__cta {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
  }

  .goals-column__body {
    gap: 1rem;

    padding: 1.5rem 1rem;
  }

  .goals-column__title {
    font-size: 1.75rem;
  }

  .goals-column__item {
    gap: .625rem;

    font-size: .9rem;
  }

  .goals-column__icon {
    width: 24px;
    height: 24px;
  }

  .journey-section__card {
    gap: 2rem;

    padding: 2rem 1.25rem;

    border-radius: 1rem;
  }

  .journey-section__tag {
    margin-bottom: 1.5rem;
  }

  .journey-section__text {
    font-size: .95rem;
  }

  .journey-section__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
  }

  .journey-stat__value {
    font-size: 1.5rem;
  }

  .journey-stat__label {
    font-size: .65rem;
  }

  .journey-section__actions,
  .journey-section__button {
    width: 100%;
  }

  .journey-section__guarantee {
    align-items: flex-start;

    font-size: .75rem;
  }

  .progress-section__title {
    margin-bottom: 2rem;
  }

  .progress-chart {
    padding: 1.5rem .75rem 1rem;
  }

  .progress-chart__svg {
    height: 190px;
  }

  .progress-chart__weeks {
    padding: 0 .75rem;

    font-size: .65rem;
  }

  .progress-timeline {
    gap: 1.5rem;
  }

  .progress-timeline__item {
    gap: 1rem;
  }

  .progress-timeline__title {
    font-size: 1rem;
  }

  .progress-timeline__text {
    font-size: .9rem;
  }

  .progress-section__button {
    max-width: none;
    margin-top: 2.5rem;
  }

  .review-card {
    padding: 1.25rem;
  }

  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-item {
    padding: 0 .875rem;
  }

  .faq-item__question {
    gap: 1rem;
  }
}

@media (max-width: 375px) {
  .products-section,
  .benefits-section__wrapper,
  .results-section__wrapper,
  .goals-section .container,
  .journey-section .container,
  .progress-section .container,
  .reviews-section .container {
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .results-section__title,
  .goals-section__title,
  .journey-section__title,
  .progress-section__title,
  .reviews-section__title {
    font-size: 1.75rem;
  }

  /*.product-card__pricing {*/
  /*  align-items: flex-start;*/
  /*  flex-direction: column;*/
  /*  gap: .75rem;*/
  /*}*/

  .product-card__saving {
    height: 36px;
  }

  .journey-section__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .journey-stat {
    align-items: center;
  }

  .progress-chart__header {
    font-size: .65rem;
  }
}

/* Checkout modal */
html.checkout-modal-open,
body.checkout-modal-open {
  overflow: hidden;
}

.modal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;

  background-color: rgba(0, 0, 0, .2);

  z-index: 1;
}

.checkout-modal {
  position: relative;

  width: min(100%, 680px);
  max-height: 100vh;
  padding: 1.15rem;

  border-radius: 1rem;
  background-color: var(--background);

  overflow-y: scroll;
}

@media screen and (max-width: 680px) {
  .checkout-modal {
    border-radius: 0;
  }
}

.checkout-modal__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.checkout-modal__step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .25rem;

  min-width: 92px;
}

.checkout-modal__step-box {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border-radius: 99rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
}

.checkout-modal__step-icon {
  width: 20px;
  height: 20px;
}

.checkout-modal__step-title {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
}

.checkout-modal__step--active .checkout-modal__step-box {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.checkout-modal__step--active .checkout-modal__step-icon {
  stroke: var(--surface);
}

.checkout-modal__border {
  width: 64px;
  height: 1px;
  margin-bottom: 1rem;

  background-color: var(--border);
}

@media screen and (max-width: 864px) {
  .checkout-modal__header {
    gap: .35rem;
  }

  .checkout-modal__border {
    width: 32px;
  }
}

.checkout-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;

  background-color: transparent;

  cursor: pointer;
}

.checkout-modal__close-icon {
  width: 20px;
  height: 20px;
}

.modal-block {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 1rem;

  width: 100%;
  padding-top: 1.5rem;
}

.modal-block__express {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  width: 100%;
}

.modal-block__or {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  width: 100%;
}

.modal-block__or-border {
  width: 100%;
  height: 1px;

  background-color: var(--border);
}

.modal-block__or-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--secondary-text);
  text-transform: uppercase;
}

.modal-block__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-block__continue {
  height: 56px;
}

.modal-block__form {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 1rem;

  width: 100%;
}

.modal-block__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;

  width: 100%;
}

.modal-block__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.modal-block__secure-icon {
  width: 16px;
  height: 16px;

  stroke: var(--secondary-text);
}

.modal-block__secure-text {
  font-size: .75rem;
  color: var(--secondary-text);
}

.modal-block__delivery {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;

  width: 100%;
  height: 48px;
  padding: 0 1rem;

  border-radius: .5rem;
  border: 1.5px solid var(--success);
  background-color: var(--success-shadow);
}

.modal-block__delivery-icon {
  width: 14px;
  height: 14px;
}

.modal-block__delivery-text {
  font-size: .875rem;
  font-weight: 600;
}

.shipping-address {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;

  width: 100%;
}

.shipping-address__email {
  grid-column: span 2 / span 2;
}

.shipping-address__phone {
  grid-column: span 2 / span 2;
  grid-row-start: 3;
}

.shipping-address__address {
  grid-column: span 2 / span 2;
  grid-row-start: 4;
}

.shipping-address__zip {
  grid-row-start: 5;
}

.shipping-address__city {
  grid-row-start: 5;
}

.shipping-address__country {
  grid-column: span 2 / span 2;
  grid-row-start: 6;
}

.input-field {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: .35rem;
}

.input-field__label {
  display: block;

  font-size: .875rem;
  font-weight: 600;
}

.input-field__input {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .5rem;

  width: 100%;
  height: 48px;
  padding: 0 1rem;

  background-color: var(--background);
  border: 1.5px solid var(--border);
  border-radius: .5rem;

  font-size: .938rem;

  transition: border-color .15s, box-shadow .15s;
}

.input-field__input:focus {
  border-color: var(--main);
  box-shadow: 0 0 0 4px var(--main-light);
}

.input-field__input.input-field__input--error {
  border-color: #d93025;
  box-shadow: 0 0 0 4px rgba(217, 48, 37, .12);
}

.input-field__error {
  display: block;
  color: #d93025;
  font-size: .75rem;
  font-weight: 500;
}

.modal-block__gateways {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 1rem;

  width: 100%;
}

.modal-block__gateway-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: .5rem;

  width: 100%;
}

.gateway {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;

  width: 100%;
  padding: .75rem;

  border-radius: .5rem;
  border: 1.5px solid var(--border);
  background-color: var(--main-light);
}

.gateway__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;

  width: 100%;
}

.gateway__checkbox {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  padding: 2px;

  border-radius: 99rem;
  border: 1.5px solid var(--main);
}

.gateway__checkbox-checked {
  width: 100%;
  height: 100%;

  border-radius: 99rem;
  background-color: var(--main);
}

.gateway__info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
}

.gateway__name {
  font-size: 1.125rem;
  font-weight: 700;
}

.gateway__icon {
  height: 24px;
}
