.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 16px;
}

.product-photo-card {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 24px;
  background: #15171a;
  color: #fff;
  isolation: isolate;
}

.product-photo-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.product-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 7, 9, .06) 20%, rgba(5, 7, 9, .52) 56%, rgba(5, 7, 9, .97) 100%);
}

.product-photo-card:hover > img {
  transform: scale(1.045);
}

.product-photo-content {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
}

.product-photo-content > span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(226, 192, 109, .5);
  border-radius: 999px;
  background: rgba(7, 9, 12, .6);
  color: #e2c06d;
  font-size: 9px;
  letter-spacing: .1em;
}

.product-photo-content h3 {
  margin: 18px 0 9px;
  font: 600 24px/1.15 Manrope;
}

.product-photo-content p {
  min-height: 48px;
  margin: 0 0 20px;
  color: #d0d3d6;
  font-size: 14px;
  line-height: 1.45;
}

.product-photo-content a {
  display: flex;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 13px;
  font: 600 13px Manrope;
  transition: background .25s, color .25s, border-color .25s;
}

.product-photo-content a:hover {
  border-color: #dfbb63;
  background: linear-gradient(135deg, #efcf7a, #ae7726);
  color: #101216;
}

.simulator-flow {
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid #ddd7ca;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(24, 21, 14, .11);
}

.flow-progress {
  padding: 26px 30px 20px;
  border-bottom: 1px solid #ebe6dc;
  background: #fbfaf7;
}

.flow-progress > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.flow-progress strong {
  font: 700 15px Manrope;
}

.flow-progress span {
  color: #73716d;
  font-size: 14px;
}

.progress-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.progress-bars i {
  height: 5px;
  border-radius: 99px;
  background: #dedbd4;
  transition: background .3s;
}

.progress-bars i.active {
  background: linear-gradient(90deg, #a86f1d, #e2c36d);
}

.flow-step {
  display: none;
  padding: 30px;
}

.flow-step.active {
  display: block;
  animation: flow-in .35s ease both;
}

.flow-step > h3 {
  margin: 0 0 20px;
  font: 700 clamp(24px, 3vw, 32px)/1.2 Manrope;
}

.flow-step > p {
  margin: -10px 0 24px;
  color: #74726e;
}

.service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 26px;
}

.service-option {
  min-height: 54px;
  padding: 11px 14px;
  border: 1px solid #d8d3ca;
  border-radius: 14px;
  background: #fff;
  color: #27282a;
  font: 600 13px Manrope;
  cursor: pointer;
  transition: .2s;
}

.service-option:hover,
.service-option.active {
  border-color: #bc8a35;
  background: linear-gradient(135deg, #1b1e23, #090b0e);
  color: #ebcb76;
  box-shadow: 0 8px 24px rgba(24, 19, 10, .13);
}

.flow-step .credit-simulator {
  margin-top: 0;
}

.amount-control {
  display: grid;
  grid-template-columns: 45px 1fr 45px;
  align-items: center;
  gap: 15px;
  margin: 2px 0 19px;
}

.amount-control > button {
  width: 43px;
  height: 43px;
  border: 1px solid #bc8a35;
  border-radius: 50%;
  background: #fff;
  color: #9f6d20;
  font: 400 26px/1 sans-serif;
  cursor: pointer;
}

.amount-control > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid #bbb7af;
  background: #faf9f6;
}

.amount-control small {
  color: #9a9790;
  font-size: 14px;
}

.amount-control strong {
  color: #27282a;
  font: 600 clamp(26px, 4vw, 38px)/1 Manrope;
}

.credit-only {
  padding-bottom: 6px;
}

.flow-next {
  width: 100%;
  margin-top: 25px;
  padding: 16px 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e7c86f, #a96f1f);
  color: #101216;
  font: 700 14px Manrope;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(162, 109, 29, .2);
}

.flow-back {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
  color: #98691f;
  font: 600 13px Manrope;
  cursor: pointer;
}

.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.flow-step .consent {
  margin-top: 20px;
}

.summary-card {
  display: grid;
  gap: 0;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid #e2ded5;
  border-radius: 17px;
}

.summary-card > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
  border-bottom: 1px solid #e8e4dc;
}

.summary-card > div:last-child {
  border-bottom: 0;
}

.summary-card span {
  color: #77746d;
  font-size: 13px;
}

.summary-card strong {
  text-align: right;
  font: 600 14px Manrope;
}

.flow-step .submit-btn {
  width: 100%;
}

.flow-step .form-note {
  margin-top: 12px;
}

@keyframes flow-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .product-gallery {
    display: flex;
    width: calc(100% + 24px);
    margin-right: -24px;
    gap: 13px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-right: 24px;
  }

  .product-gallery::-webkit-scrollbar {
    display: none;
  }

  .product-photo-card {
    min-width: min(82vw, 330px);
    min-height: 475px;
    scroll-snap-align: start;
  }

  .flow-step,
  .flow-progress {
    padding-left: 22px;
    padding-right: 22px;
  }

  .service-options,
  .form-fields {
    grid-template-columns: 1fr;
  }

  .amount-control {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  .amount-control > button {
    width: 38px;
    height: 38px;
  }

  .amount-control strong {
    font-size: 25px;
  }

  .summary-card > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .summary-card strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-step.active {
    animation: none;
  }
}
