.baza-modal {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.baza-modal.active {
  opacity: 1;
  pointer-events: all;
}
.baza-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}
.baza-modal__box {
  position: relative;
  background: #121212;
  border: 1px solid #262626;
  border-top: 2px solid #e05a33;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 40px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 36px 32px 32px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
/* Режим замовлення (з калькулятора): щільніше, без «подарункового» акценту */
.baza-modal__box--order { padding: 28px 28px 26px; }
.baza-modal__box--order .baza-modal__title { font-size: 22px; margin-bottom: 4px; }
.baza-modal__box--order .baza-modal__eyebrow { margin-bottom: 8px; }
.baza-modal__box--order .baza-modal__sub { font-size: 12px; margin-bottom: 18px; }
.baza-modal__box--order .baza-modal__field { margin-bottom: 12px; }
.baza-modal.active .baza-modal__box {
  transform: translateY(0);
}
.baza-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #525252;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.baza-modal__close:hover { color: #f5f5f5; }
.baza-modal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.baza-modal__gift {
  text-align: center;
  margin-bottom: 16px;
}
.baza-modal__gift svg,
.baza-modal__gift img {
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(224, 90, 51, 0.4));
}
/* Сводка замовлення (режим «з калькулятора») */
.modal-order {
  margin: 14px 0 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-dark);
  padding: 2px 14px;
  text-align: left;
}
.modal-order__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.modal-order__row:last-child { border-bottom: none; }
.modal-order__row span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.modal-order__row strong {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}
.modal-order__row--total span { color: var(--accent); }
.modal-order__row--total strong {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.baza-modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #e05a33;
  margin-bottom: 12px;
}
.baza-modal__title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: #f5f5f5;
  margin-bottom: 10px;
}
.baza-modal__title em {
  color: #e05a33;
  font-style: normal;
}
.baza-modal__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: #a3a3a3;
  line-height: 1.55;
  margin-bottom: 24px;
}
.baza-modal__form {
  width: 100%;
}
.baza-modal__field {
  margin-bottom: 14px;
  text-align: left;
}
.baza-modal__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #525252;
  margin-bottom: 6px;
}
.baza-modal__input {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid #262626;
  color: #f5f5f5;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.baza-modal__input:focus { border-color: #e05a33; }
.baza-modal__input::placeholder { color: #525252; }
.baza-modal__submit { margin-top: 8px; width: 100%; }
.baza-modal__note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: #525252;
  margin-top: 14px;
}
.baza-modal__note a {
  color: #a3a3a3;
  border-bottom: 1px solid #262626;
  transition: color 0.2s;
}
.baza-modal__note a:hover { color: #e05a33; }
.modal__success {
  text-align: center;
  padding: 20px 0;
}
.modal__success svg { margin-bottom: 16px; }
.modal__success-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f5f5f5;
  margin-bottom: 8px;
}
.modal__success-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: #a3a3a3;
}

.gift-modal {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.gift-modal.active {
  opacity: 1;
  pointer-events: all;
}
.gift-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
}
.gift-modal__box {
  position: relative;
  background: #121212;
  border: 1px solid #262626;
  border-top: 3px solid #e05a33;
  width: 100%;
  max-width: 400px;
  padding: 40px 28px 28px;
  text-align: center;
  align-items: center;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.gift-modal.active .gift-modal__box {
  transform: translateY(0) scale(1);
}
.gift-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #525252;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}
.gift-modal__close:hover { color: #f5f5f5; }
.gift-modal__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.gift-modal__icon svg,
.gift-modal__icon img {
  filter: drop-shadow(0 0 16px rgba(224,90,51,0.5));
}
.gift-modal__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #e05a33;
  margin-bottom: 10px;
}
.gift-modal__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.0;
  color: #f5f5f5;
  margin-bottom: 12px;
}
.gift-modal__title em {
  color: #e05a33;
  font-style: normal;
}
.gift-modal__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: #a3a3a3;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.gift-modal__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.gift-modal__input {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid #262626;
  color: #f5f5f5;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  text-align: center;
}
.gift-modal__input:focus { border-color: #e05a33; }
.gift-modal__input::placeholder { color: #525252; }
.gift-modal__btn {
  width: 100%;
  background: #e05a33;
  border: none;
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
}
.gift-modal__btn:hover {
  background: #b84828;
  transform: translateY(-1px);
}
.gift-modal__note {
  font-family: var(--font-body);
  font-size: 11px;
  color: #525252;
  margin-top: 4px;
}
