/* Модальное окно калькулятора сметы */
.hangar-estimate[hidden] {
  display: none !important;
}

.hangar-estimate {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hangar-estimate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.72);
  backdrop-filter: blur(6px);
}

.hangar-estimate__dialog {
  position: relative;
  width: min(100%, 42rem);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, #1a1c20 0%, #101215 55%, #0d0e11 100%);
  color: #e8e6e3;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 1.5rem 1.35rem 1.35rem;
}

.hangar-estimate__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hangar-estimate__close:hover {
  border-color: #c5a37e;
  color: #c5a37e;
}

.hangar-estimate__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c5a37e;
}

.hangar-estimate__title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hangar-estimate__lead {
  margin: 0.65rem 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(232, 230, 227, 0.78);
}

.hangar-estimate__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.hangar-estimate__grid--contact {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .hangar-estimate__grid--contact {
    grid-template-columns: 1fr 1fr;
  }
}

.hangar-estimate__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hangar-estimate__field--readonly .hangar-estimate__output {
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(197, 163, 126, 0.45);
  background: rgba(197, 163, 126, 0.08);
  font-weight: 600;
  color: #edd9b8;
}

.hangar-estimate__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232, 230, 227, 0.85);
}

.hangar-estimate input[type="number"],
.hangar-estimate input[type="tel"],
.hangar-estimate input[type="email"],
.hangar-estimate input[type="text"] {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}

.hangar-estimate input:focus {
  outline: 2px solid rgba(197, 163, 126, 0.55);
  outline-offset: 1px;
  border-color: #c5a37e;
}

.hangar-estimate__group {
  margin-top: 0.85rem;
}

.hangar-estimate__group-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5a37e;
}

.hangar-estimate__group-body {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.hangar-estimate__group-body > .hangar-estimate__radio:first-of-type {
  margin-top: 0;
}

.hangar-estimate__radio,
.hangar-estimate__check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}

.hangar-estimate__radio input,
.hangar-estimate__check input {
  margin-top: 0.2rem;
  accent-color: #c5a37e;
}

.hangar-estimate__note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(232, 230, 227, 0.65);
}

.hangar-estimate__error {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(180, 40, 40, 0.2);
  border: 1px solid rgba(220, 80, 80, 0.45);
  color: #ffc9c9;
  font-size: 0.85rem;
}

.hangar-estimate__error[hidden] {
  display: none !important;
}

.hangar-estimate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hangar-estimate__btn--primary {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, #c5a37e 0%, #9a7848 100%);
  color: #1a1208;
}

.hangar-estimate__btn--primary:hover {
  filter: brightness(1.06);
}

.hangar-estimate__btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hangar-estimate__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e6e3;
}

.hangar-estimate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hangar-estimate__actions .hangar-estimate__btn--primary {
  flex: 1;
  min-width: 10rem;
  margin-top: 0;
}

.hangar-estimate__step-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 1rem;
}

.hangar-estimate__step-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(232, 230, 227, 0.72);
}

.hangar-estimate__result {
  margin: 0.5rem 0 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(197, 163, 126, 0.25);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.hangar-estimate__line {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hangar-estimate__line:last-child {
  border-bottom: none;
}

.hangar-estimate__line-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.hangar-estimate__line-detail {
  font-size: 0.78rem;
  color: rgba(232, 230, 227, 0.62);
}

.hangar-estimate__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0.95rem;
  background: rgba(197, 163, 126, 0.12);
  font-size: 1.05rem;
  font-weight: 700;
  color: #edd9b8;
}

.hangar-estimate__disclaimer {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(232, 230, 227, 0.55);
}

.hangar-estimate__thanks {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: rgba(232, 230, 227, 0.8);
}

body.hangar-estimate-open {
  overflow: hidden;
}
