/* Попап заявки: тот же набор, компактный лист без прокрутки. */

.ask {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07070a;
  color: #fff;
  font-family: "Helvetica Neue Cyr", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}
.ask[hidden] { display: none !important; }

.ask__sheet {
  width: min(88vw, 36rem);
  max-height: 100svh;
  padding: 5.5vh 0 4vh;
  display: flex;
  flex-direction: column;
  gap: 2.4vh;
}

.ask__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.ask h2 {
  margin: 0;
  font-weight: 200;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.ask__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  cursor: pointer;
  padding: 0.3em 0;
  line-height: 1.3;
  text-align: right;
}
.ask__close:hover,
.ask__close:focus-visible { opacity: 1; }

.ask form,
.ask__done {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.ask form[hidden],
.ask__done[hidden] { display: none !important; }

.ask label {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ask label span,
.ask__hint {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.45rem;
}

.ask input,
.ask textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.3;
  padding: 0.15em 0 0.35em;
  outline: none;
  appearance: none;
  box-shadow: none;
  resize: none;
}
.ask input:focus,
.ask textarea:focus { border-bottom-color: #fff; }
.ask textarea {
  overflow: hidden;
  min-height: 1.45em;
  height: 1.45em;
  field-sizing: content;
}

.ask__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ask__ways {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.ask__ways button {
  appearance: none;
  flex: 1 1 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7em 0.4em;
  cursor: pointer;
  transition: 0.3s ease;
  white-space: nowrap;
}
.ask__ways button[aria-pressed="true"],
.ask__ways button:hover,
.ask__ways button:focus-visible {
  background: #fff;
  color: #07070a;
  border-color: #fff;
}

.ask__send {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.4rem;
  margin-top: 0.2rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s ease;
}
.ask__send:hover,
.ask__send:focus-visible {
  background: #fff;
  color: #07070a;
}
.ask__send:disabled {
  opacity: 0.45;
  cursor: wait;
}

.ask__note {
  margin: 0;
  max-width: none;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  opacity: 0.45;
  white-space: nowrap;
}

.ask__err {
  margin: 0;
  min-height: 1em;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb4b4;
}

.ask__done p {
  margin: 0;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.3;
  max-width: 22em;
}

@media screen and (max-width: 1024px) {
  .ask__sheet { width: 88vw; padding: 6vh 0 calc(4vh + env(safe-area-inset-bottom)); }
  .ask h2 { font-size: 8.2vw; }
  .ask__ways button { font-size: 12px; padding: 0.85em 0.3em; }
  .ask__send { height: 3.2rem; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ask__ways button,
  .ask__send { transition: none; }
}
