/* Модальное окно «Стать партнёром» (produktsiya.html) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.partner-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 40px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.partner-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.partner-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 10, 0.72);
  cursor: pointer;
}

.partner-modal__wrap {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 40px));
  max-height: min(94vh, 920px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.partner-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  padding: 0;
  background: transparent;
  color: #6f160c;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.partner-modal__close:hover {
  opacity: 0.85;
  transform: scale(1.06);
}

.partner-modal__close:focus-visible {
  outline: 2px solid #6f160c;
  outline-offset: 3px;
  border-radius: 4px;
}

.partner-modal__sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 44px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.partner-modal__dialog {
  position: relative;
  padding: 36px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.partner-modal__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 999px;
  background: #6f160c;
  color: #ffffff;
  font-family: var(--heading-font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.partner-modal__title {
  margin: 0 0 10px;
  font-family: var(--heading-font-family);
  font-size: clamp(18px, 3.6vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: #111111;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.partner-modal__lead {
  margin: 0 0 28px;
  font-family: var(--heading-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #333333;
}

.partner-modal__perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.partner-modal__perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.partner-modal__perk-icon {
  width: 156px;
  height: 156px;
  flex-shrink: 0;
  display: block;
}

.partner-modal__perk-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-modal__perk:nth-child(2) .partner-modal__perk-icon img {
  transform: translateY(6px);
}

.partner-modal__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: stretch;
}

.partner-modal__inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-modal__form-grid > .partner-modal__inputs:nth-child(2) {
  min-height: 0;
}

.partner-modal__form-grid > .partner-modal__inputs:nth-child(2) .partner-modal__textarea {
  flex: 1;
  min-height: 156px;
}

.partner-modal__field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: none;
  border-radius: 18px;
  background: #d9d9d9;
  font-family: var(--heading-font-family);
  font-size: 15px;
  line-height: 1.35;
  color: #111111;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.partner-modal__field::placeholder {
  color: #666666;
}

.partner-modal__field:focus {
  outline: none;
  background: #cfcfcf;
  box-shadow: 0 0 0 2px rgba(111, 22, 12, 0.35);
}

.partner-modal__textarea {
  flex: 1;
  min-height: 156px;
  resize: vertical;
}

.partner-modal__submit {
  width: 100%;
  margin-top: 20px;
  padding: 16px 24px;
  border: none;
  border-radius: 22px;
  background: #6f160c;
  color: #ffffff;
  font-family: var(--heading-font-family);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.partner-modal__submit:hover {
  background: #5a1209;
}

.partner-modal__submit:active {
  transform: translateY(1px);
}

.partner-modal__submit:focus-visible {
  outline: 2px solid #6f160c;
  outline-offset: 3px;
}

body.partner-modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .partner-modal__perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-modal__form-grid {
    grid-template-columns: 1fr;
  }

  .partner-modal__textarea {
    min-height: 120px;
  }

  .partner-modal__dialog {
    padding: 28px 22px 32px;
  }
}
