/* ═══════════════════════════════════════════════════════════════
   Пакет 3 — Быстровозводимые склады и ангары Б/У
   /v2/hangars/ — монументальный B2B-дизайн
   ═══════════════════════════════════════════════════════════════ */

:root {
  --hangar-orange: #ff6600;
  --hangar-orange-dark: #e55a00;
  --hangar-orange-light: #ff8533;
  --hangar-orange-glow: rgba(255, 102, 0, 0.45);
  --hangar-navy: #0a1f3d;
  --hangar-blue: #0c2d5c;
  --hangar-blue-mid: #143a6e;
  --hangar-slate: #1a2a42;
  --hangar-white: #ffffff;
  --hangar-gray: #eef2f7;
  --hangar-text-muted: #8fa3bf;
  --hangar-tg: #229ed9;
  --hangar-tg-hover: #1a8bc4;
  --header-h: 72px;
  --header-offset: 72px;
  --max-w: 1200px;
  --radius: 12px;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.hangars-page {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  color: var(--hangar-gray);
  background: var(--hangar-navy);
  padding-top: calc(var(--header-offset) + var(--safe-t));
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
  padding-bottom: var(--safe-b);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: max(20px, var(--safe-l));
  padding-right: max(20px, var(--safe-r));
}

/* ── Fixed header ───────────────────────────────────────────── */
.hangars-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--hangar-navy);
  border-bottom: 3px solid var(--hangar-orange);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  padding-top: var(--safe-t);
}

.hangars-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.hangars-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
}

.hangars-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.hangars-brand-text {
  font-weight: 800;
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hangar-white);
  line-height: 1.2;
}

.hangars-header-messengers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.btn-header-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hangar-white);
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, filter 0.2s;
}

.btn-header-msg:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-header-max {
  background: linear-gradient(135deg, #8b3dff 0%, #5b4fe8 55%, #3d5afe 100%);
  border-color: #6a3fd4;
}

.btn-header-tg {
  background: var(--hangar-tg);
  border-color: var(--hangar-tg-hover);
}

.btn-header-tg:hover {
  background: #2eb0ef;
}

.hangars-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.hangars-header-phone {
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--hangar-white);
  white-space: nowrap;
}

.hangars-header-phone:hover {
  color: var(--hangar-orange);
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: var(--hangar-orange);
  color: var(--hangar-white);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-header-call:hover {
  background: var(--hangar-orange-dark);
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hangars-hero {
  background: linear-gradient(165deg, var(--hangar-blue) 0%, var(--hangar-navy) 55%, #061528 100%);
  padding: 48px 0 56px;
}

.hangars-hero-title {
  margin: 0 0 32px;
  font-weight: 900;
  font-size: clamp(1.35rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hangar-white);
  max-width: 980px;
}

.hangars-hero-title .accent {
  color: var(--hangar-orange);
  text-shadow: 0 2px 16px var(--hangar-orange-glow);
}

.hangars-video-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 102, 0, 0.35);
  margin-bottom: 36px;
}

.hangars-video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

.hangars-video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--hangar-orange);
  color: var(--hangar-white);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
}

.hangars-hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  min-width: 280px;
  padding: 0 32px;
  border: none;
  border-radius: 8px;
  background: var(--hangar-orange);
  color: var(--hangar-white);
  font-family: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 28px var(--hangar-orange-glow);
  animation: hangars-pulse 2.2s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary-cta:hover {
  background: var(--hangar-orange-dark);
  transform: translateY(-2px);
}

@keyframes hangars-pulse {
  0%, 100% {
    box-shadow: 0 8px 28px var(--hangar-orange-glow);
  }
  50% {
    box-shadow: 0 8px 40px rgba(255, 102, 0, 0.65), 0 0 0 8px rgba(255, 102, 0, 0.12);
  }
}

.hangars-hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hangar-text-muted);
  max-width: 360px;
}

/* ── Specs strip ────────────────────────────────────────────── */
.hangars-specs {
  background: var(--hangar-slate);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hangars-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hangars-spec-card {
  background: var(--hangar-blue-mid);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--hangar-orange);
}

.hangars-spec-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hangar-text-muted);
}

.hangars-spec-value {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  text-transform: uppercase;
  color: var(--hangar-white);
}

/* ── Projects grid ────────────────────────────────────────────── */
.hangars-projects {
  background: var(--hangar-gray);
  padding: 64px 0 40px;
}

.hangars-section-eyebrow {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hangar-orange);
}

.hangars-section-title {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--hangar-navy);
}

.hangars-section-sub {
  margin: 0 0 40px;
  font-size: 1rem;
  color: #4a5568;
  max-width: 720px;
}

.hangars-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hangars-project-card {
  display: flex;
  flex-direction: column;
  background: var(--hangar-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10, 31, 61, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hangars-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(10, 31, 61, 0.16);
}

.hangars-project-video {
  position: relative;
  background: #000;
}

.hangars-project-video video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
}

.hangars-project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hangars-project-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 102, 0, 0.12);
  color: var(--hangar-orange-dark);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  width: fit-content;
}

.hangars-project-title {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--hangar-orange);
}

.hangars-project-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #5c6578;
}

.hangars-project-offer {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--hangar-orange);
}

.hangars-project-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-project-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s, transform 0.1s;
}

.btn-project-channel:hover {
  filter: brightness(1.05);
}

.btn-project-channel:active {
  transform: scale(0.98);
}

.btn-project-max {
  background: linear-gradient(135deg, #8b3dff 0%, #5b4fe8 55%, #3d5afe 100%);
  color: var(--hangar-white);
  border-color: #6a3fd4;
}

.btn-project-tg {
  background: var(--hangar-tg);
  color: var(--hangar-white);
  border-color: var(--hangar-tg-hover);
}

.btn-project-estimate {
  background: var(--hangar-orange);
  color: var(--hangar-white);
  border-color: var(--hangar-orange-dark);
}

.btn-project-estimate:hover {
  background: var(--hangar-orange-dark);
}

/* ── Contacts (как kranbalka.pro) ─────────────────────────────── */
.hangars-contacts-section {
  padding: clamp(24px, 4vh, 40px) 0 clamp(56px, 9vh, 96px);
  background: var(--hangar-gray);
}

.hangars-contacts-head {
  text-align: center;
  margin-bottom: 28px;
}

.hangars-contacts-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 102, 0, 0.35);
  background: rgba(255, 102, 0, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hangar-orange-dark);
}

.hangars-contacts-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.02em;
  color: var(--hangar-navy);
}

.hangars-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.hangars-contacts-map {
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(10, 31, 61, 0.12);
  box-shadow: 0 8px 32px rgba(10, 31, 61, 0.08);
}

.hangars-contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  display: block;
}

.hangars-contacts-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hangars-contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--hangar-white);
  border: 1px solid rgba(10, 31, 61, 0.1);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(10, 31, 61, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hangars-contact-card:hover {
  transform: translateX(3px);
  border-color: rgba(255, 102, 0, 0.28);
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.1);
}

.hangars-contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.16), rgba(255, 102, 0, 0.05));
  border: 1px solid rgba(255, 102, 0, 0.25);
  font-size: 22px;
}

.hangars-contact-body {
  flex: 1;
  min-width: 0;
}

.hangars-contact-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hangar-orange);
}

.hangars-contact-line,
.hangars-contact-value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hangar-navy);
}

.hangars-contact-value--email {
  font-size: 1rem;
  word-break: break-all;
}

.hangars-contact-value a,
.hangars-contact-mail-link {
  color: inherit;
  text-decoration: none;
}

.hangars-contact-mail-link {
  color: var(--hangar-orange);
  font-weight: 700;
}

.hangars-contact-mail-link:hover {
  color: var(--hangar-orange-dark);
}

.hangars-contact-sub {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #5c6578;
  line-height: 1.45;
}

.btn-contacts-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: var(--hangar-orange);
  color: var(--hangar-white);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--hangar-orange-glow);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-contacts-call::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: hangars-pulse-dot 1.4s ease-in-out infinite;
}

@keyframes hangars-pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

.btn-contacts-call:hover {
  background: var(--hangar-orange-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px var(--hangar-orange-glow);
}

.hangars-contact-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hangars-hours-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hangars-hours-badge--open {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

.hangars-hours-badge--closed {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

/* ── Footer ───────────────────────────────────────────────────── */
.hangars-footer {
  background: #061528;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--hangar-text-muted);
}

.hangars-footer a {
  color: var(--hangar-orange);
  font-weight: 700;
}

/* ── Modal ────────────────────────────────────────────────────── */
.hangars-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 21, 40, 0.82);
  backdrop-filter: blur(4px);
}

.hangars-modal[hidden] {
  display: none;
}

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

.hangars-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  background: var(--hangar-white);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  animation: hangars-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hangars-modal-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hangars-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 22px;
  color: #6b7fa3;
  cursor: pointer;
  line-height: 1;
}

.hangars-modal-title {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--hangar-navy);
}

.hangars-modal-sub {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: #5a6580;
}

.hangars-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hangar-navy);
}

.hangars-form input[type="tel"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  margin-bottom: 20px;
  border: 2px solid #dde3ec;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--hangar-navy);
}

.hangars-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--hangar-orange);
}

.hangars-form-submit {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 8px;
  background: var(--hangar-orange);
  color: var(--hangar-white);
  font-family: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.hangars-form-submit:hover:not(:disabled) {
  background: var(--hangar-orange-dark);
}

.hangars-form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hangars-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(12, 45, 92, 0.08);
  border-left: 4px solid var(--hangar-orange);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hangar-navy);
}

.hangars-status[hidden] {
  display: none;
}

/* ── Sipout C2C: красная кнопка, правый нижний угол ─────────── */
#sipout_c2c_pulse_btn {
  position: fixed !important;
  right: calc(16px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(24px + 10vh + env(safe-area-inset-bottom, 0px)) !important;
  top: auto !important;
  left: auto !important;
  z-index: 9003 !important;
  margin: 0 !important;
  background: #e53935 !important;
  background-color: #e53935 !important;
  background-image: linear-gradient(135deg, #e53935, #ff5252) !important;
  border-color: #c62828 !important;
  box-shadow: 0 6px 24px rgba(229, 57, 53, 0.45) !important;
}

#sipout_c2c_pulse_btn:hover {
  background: #ff5252 !important;
  background-color: #ff5252 !important;
  background-image: linear-gradient(135deg, #ff5252, #ff7043) !important;
}

#sipout-c2c-widget,
.sipout-c2c-widget,
body > div[id*="sipout"],
body > div[class*="sipout"] {
  position: fixed !important;
  right: calc(16px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(24px + 10vh + env(safe-area-inset-bottom, 0px)) !important;
  top: auto !important;
  left: auto !important;
  z-index: 9003 !important;
}

[class*="sipout"] button[type="submit"],
[id*="sipout"] button[type="submit"],
[class*="c2c"] button[type="submit"],
[id*="c2c"] button[type="submit"] {
  background: var(--hangar-orange) !important;
  background-image: linear-gradient(135deg, var(--hangar-orange), var(--hangar-orange-dark)) !important;
  color: var(--hangar-white) !important;
  border-color: var(--hangar-orange-dark) !important;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hangars-specs-grid,
  .hangars-projects-grid {
    grid-template-columns: 1fr;
  }

  .hangars-contacts-grid {
    grid-template-columns: 1fr;
  }

  .hangars-header-phone {
    display: none;
  }

  .hangars-header-messengers {
    gap: 8px;
  }

  .btn-header-msg {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.65rem;
  }

  .btn-primary-cta {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-header-call {
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .hangars-brand-text {
    display: none;
  }
}
