.page-contact {
  background: linear-gradient(180deg, #07111f, #0a1628 24%, #07111f);
}

.contact-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--safe-top) + 2.6rem);
  padding-bottom: 7rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(66, 165, 245, 0.22), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(255, 179, 0, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.96), rgba(7, 17, 31, 1));
}

.contact-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.94fr);
  gap: clamp(1.6rem, 3.5vw, 3.6rem);
  align-items: end;
}

.contact-hero__copy {
  display: grid;
  gap: 1.35rem;
  max-width: 48rem;
}

.contact-hero__copy h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.contact-hero__copy .lede {
  max-width: 40rem;
  color: rgba(227, 234, 244, 0.84);
}

.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.contact-hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.55rem;
}

.contact-hero__metric {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem 1.25rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-card);
}

.contact-hero__metric strong {
  color: var(--color-wing-gold);
  font-family: var(--font-accent);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 0.96;
}

.contact-hero__metric span {
  color: rgba(227, 234, 244, 0.76);
  line-height: 1.55;
}

.contact-hero__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  border-radius: 32px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 179, 0, 0.14), transparent 22%),
    linear-gradient(160deg, rgba(16, 38, 72, 0.94), rgba(7, 17, 31, 0.96));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), var(--shadow-glow-blue);
  backdrop-filter: blur(16px);
}

.contact-hero__panel::before {
  content: "";
  position: absolute;
  inset: -16% auto auto -14%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.18), transparent 70%);
  pointer-events: none;
}

.contact-hero__panel > * {
  position: relative;
  z-index: 1;
}

.contact-hero__panel-head {
  display: grid;
  gap: 0.55rem;
}

.contact-hero__panel-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  line-height: 0.98;
}

.contact-hero__panel-head p,
.contact-route span,
.contact-hero__panel-footer .link-inline {
  color: rgba(227, 234, 244, 0.78);
}

.contact-hero__routes {
  display: grid;
  gap: 0.85rem;
}

.contact-route {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-route strong {
  color: var(--color-white);
}

.contact-hero__panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 0.4rem;
}

.contact-studio-section.section-merge {
  margin-top: clamp(-5.5rem, -8vw, -4rem);
  padding-top: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.contact-studio-section.section-merge::before,
.contact-studio-section.section-merge::after {
  display: none;
}

.contact-studio {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.2rem, 2.6vw, 1.9rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(12, 32, 61, 0.96), rgba(7, 17, 31, 0.98)),
    radial-gradient(circle at 12% 10%, rgba(66, 165, 245, 0.14), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(255, 179, 0, 0.08), transparent 18%);
  border: 1px solid rgba(125, 211, 252, 0.14);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.contact-studio::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 74%),
    radial-gradient(circle at 50% 0%, rgba(66, 165, 245, 0.12), transparent 38%);
  pointer-events: none;
}

.contact-studio > * {
  position: relative;
  z-index: 1;
}

.map-shell,
.contact-form-shell {
  min-width: 0;
  height: 100%;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.map-shell {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.map-shell__intro {
  display: grid;
  gap: 0.55rem;
}

.map-shell__intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 0.98;
}

.map-shell__intro p {
  color: rgba(227, 234, 244, 0.78);
  max-width: 30rem;
}

.map-shell__frame {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0) saturate(1.18) contrast(1.04) brightness(1.02);
}

.address-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border-radius: 24px;
  background: rgba(10, 22, 40, 0.84);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.address-overlay strong {
  color: var(--color-white);
  font-size: 1.15rem;
}

.address-overlay p {
  color: rgba(227, 234, 244, 0.82);
}

.address-overlay__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-wing-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.address-overlay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 0.2rem;
}

.contact-form-shell {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 82% 10%, rgba(255, 179, 0, 0.08), transparent 20%);
}

.contact-form-shell__intro {
  display: grid;
  gap: 0.7rem;
}

.contact-form-shell__intro h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.98;
}

.contact-form-shell__intro p {
  color: rgba(227, 234, 244, 0.78);
}

.contact-form-shell__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.contact-chip {
  appearance: none;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(227, 234, 244, 0.84);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.contact-chip:hover,
.contact-chip:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.contact-chip.is-active {
  padding: 0.75rem 0.95rem;
  border-color: rgba(255, 179, 0, 0.42);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.18), rgba(66, 165, 245, 0.12));
  color: var(--color-white);
  box-shadow: 0 12px 28px rgba(255, 179, 0, 0.14);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.55rem;
}

.form-field label {
  color: rgba(227, 234, 244, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1rem 1rem 1.05rem;
  color: var(--color-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-field select {
  appearance: none;
  cursor: pointer;
  color-scheme: dark;
  padding-right: 3rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(227, 234, 244, 0.92) 50%),
    linear-gradient(135deg, rgba(227, 234, 244, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.form-field select option {
  background: #0b1730;
  color: #f5f8ff;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.form-field select {
  color: rgba(227, 234, 244, 0.54);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(255, 179, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.12);
}

.form-field__error {
  min-height: 1rem;
  color: var(--color-danger);
  font-size: 0.82rem;
}

.contact-form__footer {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.contact-form__footer .btn {
  width: fit-content;
  min-width: 220px;
}

.contact-form__note {
  color: rgba(227, 234, 244, 0.66);
}

.contact-form__feedback {
  margin: 0;
  color: #ffd0d0;
  font-size: 0.92rem;
}

.contact-form__feedback.is-error {
  color: #ffd0d0;
}

.form-success {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding: 1rem 0 0.2rem;
}

.form-success h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.form-success p {
  max-width: 32rem;
  color: rgba(227, 234, 244, 0.78);
}

.success-check {
  width: 88px;
  height: 88px;
}

.contact-connect-section {
  background:
    radial-gradient(circle at 16% 0%, rgba(66, 165, 245, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(7, 17, 31, 1), rgba(10, 22, 40, 1));
}

.contact-connect__intro {
  max-width: 42rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 84% 12%, rgba(66, 165, 245, 0.08), transparent 22%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 0, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), var(--shadow-glow-blue);
}

.contact-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 179, 0, 0.16), rgba(66, 165, 245, 0.12));
  color: var(--color-wing-gold);
}

.contact-card__icon svg {
  width: 26px;
  height: 26px;
}

.contact-card__eyebrow {
  color: var(--color-wing-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-card h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 0.98;
}

.contact-card p,
.contact-card a:not(.link-inline) {
  color: rgba(227, 234, 244, 0.8);
}

.contact-social-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem 2rem;
  align-items: center;
  margin-top: 1.8rem;
  padding: 1.5rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 84% 10%, rgba(255, 179, 0, 0.08), transparent 18%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.contact-social-shell__copy {
  max-width: 36rem;
}

.contact-social-shell__copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  margin: 0.45rem 0 0.6rem;
}

.contact-social-shell__copy p {
  color: rgba(227, 234, 244, 0.76);
}

.contact-social-shell__row {
  justify-content: flex-end;
  gap: 0.8rem;
}

.contact-social-shell__row .social-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

@media (max-width: 1024px) {
  .contact-hero {
    padding-bottom: 5.4rem;
  }

  .contact-hero__grid,
  .contact-studio,
  .contact-social-shell,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-hero__copy,
  .contact-connect__intro {
    max-width: none;
  }

  .contact-hero__copy h1 {
    max-width: 9.8ch;
  }

  .contact-social-shell__row {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding-top: calc(var(--nav-height) + var(--safe-top) + 2rem);
    padding-bottom: 4rem;
  }

  .contact-hero__copy h1 {
    max-width: 8.8ch;
    font-size: clamp(2.8rem, 12vw, 4.6rem);
  }

  .contact-hero__actions,
  .contact-hero__metrics,
  .contact-form-shell__chips,
  .address-overlay__actions {
    grid-template-columns: 1fr;
  }

  .contact-hero__actions,
  .contact-form-shell__chips,
  .address-overlay__actions {
    display: grid;
  }

  .contact-hero__metrics,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-studio-section.section-merge {
    margin-top: -2rem;
  }

  .contact-studio,
  .map-shell,
  .contact-form-shell,
  .contact-social-shell {
    border-radius: 26px;
  }

  .map-shell {
    padding: 1rem;
  }

  .map-shell__frame {
    min-height: 380px;
  }

  .contact-form__footer .btn {
    width: 100%;
    min-width: 0;
  }

  .contact-social-shell__row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-social-shell__row .social-icon {
    width: 58px;
    height: 58px;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .contact-hero__grid,
  .contact-studio,
  .contact-social-shell {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-hero__copy {
    max-width: none;
  }

  .contact-form-shell {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .contact-hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .contact-hero__actions,
  .contact-hero__metrics,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .map-shell__frame {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .contact-hero__copy h1 {
    max-width: 8ch;
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .contact-studio,
  .contact-form-shell,
  .contact-social-shell {
    padding: 1.1rem;
  }

  .map-shell__frame {
    min-height: 320px;
  }

  .contact-form {
    gap: 1rem;
  }
}
