.gift-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.gift-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  max-width: 900px;
  margin: 60px auto;
  margin-bottom: 0;
  padding: 20px 20px 0;
}

.gift-container h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.gift-steps-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: flex-start;
  list-style: none;
  counter-reset: gift-step;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 20px;
  font-size: 14px;
}

.gift-steps-nav li {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
  width: 100%;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  transition: opacity 0.2s;
}

.gift-steps-nav li::before {
  counter-increment: gift-step;
  content: counter(gift-step);
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  text-align: center;
  line-height: 25px;
  margin-bottom: 5px;
}

.gift-steps-nav li:hover {
  opacity: 0.8;
}

.gift-steps-nav li.gift-active {
  opacity: 1;
}

.gift-steps-nav li.gift-active::before {
  background: #333;
}

.gift-steps-nav li.gift-completed::before {
  background: #4caf50;
}

@media (max-width: 600px) {
  .gift-steps-nav {
    max-width: 100%;
  }

  .gift-steps-nav li {
    font-size: 11px;
  }

  .gift-steps-nav li::before {
    width: 22px;
    height: 22px;
    line-height: 22px;
  }
}

.gift-step {
  display: none;
  text-align: center;
}

.gift-step.gift-active {
  display: block;
}

/* Готовые композиции коллекции сохраняются целиком, 7:4. */
.gift-step-row { text-align: left; margin-bottom: 24px; }
.gift-preview-column { min-width: 0; }
.gift-big-card {
  display: block;
  position: relative;
  width: 420px;
  max-width: 100%;
  aspect-ratio: 7 / 4;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 18px;
  container-type: inline-size;
  background: #eee2de;
  box-shadow: 0 0 0 1px rgba(48,36,47,.12), 0 12px 30px rgba(32,24,38,.13);
  color: var(--gift-card-text-color, #4c3434);
  font-family: "Tenor Sans", sans-serif;
}
.gift-preview-column .gift-big-card { margin-bottom: 0; }
.gift-card-canvas, .gift-card-inner { position: absolute; inset: 0; }
.gift-card-art { display: block; width: 100%; height: 100%; max-width: none; }
.gift-card-inner { z-index: 1; }
.gift-card-logo {
  position: absolute; left: 6%; top: 10%; width: 32%; height: 14%;
  object-fit: contain; object-position: left top;
}
.gift-card-light-text .gift-card-logo { filter: brightness(0) invert(1); }
.gift-card-copy { position: absolute; inset: 0; color: inherit; }
.gift-card-title, .gift-card-amount, .gift-card-code { position: absolute; left: 6%; max-width: 40%; color: inherit; }
.gift-card-title {
  top: 31%; font-family: "Tenor Sans", sans-serif;
  font-size: 19px; font-size: 4.6cqw; line-height: 1; font-weight: 400;
}
.gift-card-title span { display: block; }
.gift-card-amount {
  top: 58%; display: inline-flex; align-items: center; gap: .18em;
  font-size: 30px; font-size: 7.14cqw; line-height: 1; height: 1em; white-space: nowrap;
}
.gift-card-amount-value { display: block; font: inherit; line-height: 1; height: 1em; }
.gift-card-code {
  top: 85%; font-size: 11px; font-size: 2.62cqw; line-height: 1.2; white-space: nowrap;
}
.gift-card-currency-icon {
  position: relative;
  display: block;
  flex: 0 0 0.52em;
  width: 0.52em;
  height: 1em;

  color: currentColor;
  font-family: "nbrb" !important;
  font-size: 0.9em;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 1;

  overflow: visible;
  transform: none;

  /* Оригинальное начертание НБРБ без искусственного утолщения. */
  -webkit-text-stroke: 0 transparent;
  text-shadow: none;
}

.gift-card-currency-icon::before {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;

  font-family: "nbrb" !important;
  font-size: 1em;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 1;

  transform: translate(-50%, -50%) translateY(-0.015em);
}

/* Safari vertical fix */
@supports (-webkit-hyphens: none) {
  .gift-card-currency-icon::before {
    transform: translate(-50%, -50%) translateY(-0.045em);
  }
}



.gift-flower-story { padding-top: 24px; padding-bottom: 24px; text-align: left; }
.gift-flower-story h3 { font-family: "Tenor Sans", sans-serif; font-size: 24px; line-height: 1.25; font-weight: 400; }
.gift-flower-meaning { margin-top: 7px; color: #985278; font-size: 14px; line-height: 1.5; }
.gift-flower-description { margin-top: 10px; color: #606060; font-size: 14px; line-height: 1.65; }
/* Единый спокойный заголовок для всех этапов. */
.gift-step-side > h3 { font-size: 16px; line-height: 1.4; font-weight: 400; color: #6b625c; }
.gift-collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  max-width: 320px;
}
.gift-container .gift-design-choice {
  position: relative; display: grid; place-items: center; min-width: 0; min-height: 44px; aspect-ratio: 1 / 1; padding: 3px;
  border: 1px solid transparent; border-radius: 11px; background: transparent;
  cursor: pointer; font: inherit;
  transition: none;
}
.gift-design-choice img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: right center; border-radius: 7px;
  filter: saturate(.35);
  opacity: .7;
}
.gift-design-choice span { display: none; }
.gift-container .gift-design-choice.gift-selected { border: 1px solid #9c8794; }
.gift-design-choice.gift-selected img { filter: none; opacity: 1; }
.gift-container .gift-design-choice:focus-visible { outline: 2px solid #8f6b80 !important; outline-offset: 3px; }
@media (hover: hover) {
  .gift-design-choice:hover { border-color: #d4cbc6; }
  .gift-design-choice.gift-selected:hover { border-color: #9c8794; }
}
@media (min-width: 768px) {
  .gift-step-row { display: flex; align-items: flex-start; gap: 28px; }
  .gift-step-row > .gift-big-card, .gift-preview-column, .gift-step-side { flex: 1 1 0; min-width: 0; max-width: calc(50% - 14px); }
  .gift-flower-story { padding-bottom: 0; }
}
@media (max-width: 767px) {
  .gift-step-side { text-align: left; }
  .gift-preview-column, .gift-step-side { width: 100%; max-width: 420px; margin: 0 auto; }
  .gift-collection-grid { max-width: none; }
}
.gift-error-message {
  color: #d9534f;
  font-size: 14px;
  margin: 10px auto;
  max-width: 400px;
  text-align: center;
}

.gift-select-block {
  align-items: center;
  margin: 20px 0 auto;
  width: 100%;
}

/* Только стрелка select; геометрия и типографика общие с полями анкеты. */
.gift-container #giftNominalSelect {
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

/* Спокойная типографика условий; общие стили p сайта сюда не попадают. */
#giftStep2 .gift-certificate-description {
  width: 100%;
  margin-top: 16px;
  color: #606060;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}
#giftStep2 .gift-certificate-description p {
  margin: 0;
  font: inherit;
  color: inherit;
  text-wrap: pretty;
}
#giftStep2 .gift-certificate-description p + p { margin-top: 10px; }
#giftStep2 .gift-certificate-description strong {
  font: inherit;
  font-weight: 600;
  color: #444;
}
#giftStep2 .gift-text-nowrap { white-space: nowrap; }
@media (max-width: 767px) {
  #giftStep2 .gift-certificate-description { font-size: 14px; }
}

.gift-form-container {
  width: 100%;
  max-width: 420px;
  margin: 20px 0 auto;
  text-align: left;
}

.gift-form-title {
  margin: 0 0 22px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.gift-radio-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gift-radio-box {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
  border-radius: 8px;
  background: #e9e9e9;
  font-size: 14px;
  color: #333;
  font-weight: 400;
  padding: 8px 10px;
  border: 2px solid #e9e9e9;
  width: 100%;
}

.gift-radio-box input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.gift-radio-box.gift-selected {
  border: 2px solid #2c7ae0;
}

.gift-payment-label {
  display: block;
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

/* Поля номинала и анкеты повторяют оформление вариантов оплаты. */
.gift-container #giftNominalSelect,
.gift-container #giftBuyerName,
.gift-container #giftBuyerPhone,
.gift-container #giftBuyerEmail {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 8px 10px;
  border: 2px solid #e9e9e9;
  border-radius: 8px;
  background-color: #e9e9e9;
  box-shadow: none;
  outline: 0;
  color: #333;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.gift-container #giftNominalSelect {
  padding-right: 34px;
}

.gift-form-container #giftBuyerName,
.gift-form-container #giftBuyerPhone,
.gift-form-container #giftBuyerEmail {
  margin: 0 0 20px;
}

.gift-container #giftNominalSelect:focus,
.gift-container #giftBuyerName:focus,
.gift-container #giftBuyerPhone:focus,
.gift-container #giftBuyerEmail:focus {
  background-color: #e9e9e9;
  border-color: #2c7ae0;
  box-shadow: none;
  outline: 0;
}

.gift-form-container #giftBuyerName:-webkit-autofill,
.gift-form-container #giftBuyerPhone:-webkit-autofill,
.gift-form-container #giftBuyerEmail:-webkit-autofill {
  -webkit-text-fill-color: #333;
  -webkit-box-shadow: 0 0 0 1000px #e9e9e9 inset;
}

.gift-form-container #giftBuyerName::placeholder,
.gift-form-container #giftBuyerPhone::placeholder,
.gift-form-container #giftBuyerEmail::placeholder {
  color: #6f7780;
  opacity: 1;
}

.gift-form-container textarea {
  resize: none;
  min-height: 60px;
}

.gift-review-list {
  list-style: none;
  margin-top: 20px;
  padding: 0;
  margin: 20px auto 0;
  text-align: left;
}

.gift-review-list li {
  margin-bottom: 10px;
  font-size: 15px;
}

.gift-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.gift-btns button {
  padding: 13px 22px;
  font-size: 13px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
}

.gift-btn-primary {
  background: #c81f9e;
  color: #fff;
}

.gift-btn-secondary {
  background: #e9e9e9;
  color: #333;
}

.gift-btns button:hover {
  opacity: 0.9;
}

.gift-btns button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
