/* =========================
   CONTACT HERO
========================= */

.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 146px);
  background:
    radial-gradient(circle at 82% 24%, rgba(54, 198, 244, 0.045), transparent 18%),
    radial-gradient(circle at 88% 72%, rgba(243, 204, 49, 0.04), transparent 16%),
    linear-gradient(180deg, #050709 0%, #020304 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.1;
}

.contact-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.08;
}

.contact-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: lineDrift 12s ease-in-out infinite;
}

.contact-line {
  position: absolute;
  display: block;
}

.contact-line-v {
  right: 15%;
  top: 10%;
  width: 1px;
  height: 68%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.11) 50%,
    rgba(255,255,255,0.03) 100%
  );
}

.contact-line-h {
  right: 8%;
  top: 52%;
  width: 24%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(243, 204, 49, 0) 0%,
    rgba(243, 204, 49, 0.24) 28%,
    rgba(243, 204, 49, 0.08) 100%
  );
}

.contact-line-box-1 {
  right: 20%;
  top: 18%;
  width: 248px;
  height: 192px;
  border: 1px solid rgba(255,255,255,0.12);
}

.contact-line-box-2 {
  right: 16%;
  top: 35%;
  width: 164px;
  height: 224px;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-line-box-1::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(54, 198, 244, 0.45);
}

.contact-line-box-2::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(243, 204, 49, 0.3);
}

.contact-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  mix-blend-mode: screen;
}

.contact-glow-blue {
  width: 240px;
  height: 180px;
  right: 9%;
  top: 40%;
  background: rgba(54, 198, 244, 0.1);
  animation: driftGlowBlue 10s ease-in-out infinite;
}

.contact-glow-yellow {
  width: 150px;
  height: 112px;
  right: 5%;
  top: 20%;
  background: rgba(243, 204, 49, 0.07);
  animation: driftGlowYellow 12s ease-in-out infinite;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 146px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 94px;
}

.contact-hero-content h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 4vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  text-wrap: balance;
}

.contact-hero-content h1 span {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.76);
}

.contact-hero-description {
  margin-top: 26px;
  max-width: 700px;
  font-size: 0.98rem;
  line-height: 1.82;
  color: rgba(255,255,255,0.72);
}

/* =========================
   BAND
========================= */

.contact-band {
  position: relative;
  background: #06080b;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.14;
}

.contact-band-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.contact-band-grid p {
  position: relative;
  min-height: 84px;
  padding: 18px 20px 18px 38px;
  display: flex;
  align-items: center;
  font-size: 0.89rem;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255,255,255,0.84);
}

.contact-band-grid p:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.07);
}

.contact-band-grid p::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.16);
}

.contact-band-grid p:nth-child(2)::before {
  background: rgba(243,204,49,0.95);
}

.contact-band-grid p:nth-child(3)::before {
  background: rgba(54,198,244,0.95);
}

/* =========================
   MAIN
========================= */

.contact-main {
  position: relative;
  background: #ffffff;
  padding: 84px 0 96px;
}

.contact-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.014) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
}

.contact-main .container {
  position: relative;
  z-index: 1;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: start;
}

/* =========================
   INFO BLOCK
========================= */

.contact-info-block {
  position: sticky;
  top: 28px;
  padding: 30px 30px 34px;
  border: 1px solid rgba(0,0,0,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,249,249,0.98) 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.04);
}

.contact-info-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 68px;
  background: var(--yellow);
}

.contact-info-block::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-right: 1px solid rgba(0,0,0,0.08);
  opacity: 0.8;
}

.contact-info-block h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.85rem, 2.5vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--black);
}

.contact-info-block > p {
  font-size: 0.94rem;
  line-height: 1.74;
  color: rgba(0,0,0,0.72);
  max-width: 34ch;
}

.contact-info-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-info-item {
  position: relative;
  padding: 0 0 14px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.contact-info-item span {
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.contact-info-item p {
  font-size: 0.92rem;
  line-height: 1.58;
  color: rgba(0,0,0,0.82);
}

.contact-direct-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 2px;
}

.contact-direct-links a {
  position: relative;
  width: fit-content;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.contact-direct-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.16);
  transform-origin: left;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-direct-links a:hover {
  transform: translateX(4px);
  color: rgba(0,0,0,0.9);
}

.contact-direct-links a:hover::after {
  background: var(--yellow);
  transform: scaleX(1.04);
}

/* =========================
   FORM SHELL
========================= */

.contact-form-shell {
  position: relative;
  padding: 38px 38px 40px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018) 0%, rgba(255,255,255,0.006) 100%),
    radial-gradient(circle at 78% 18%, rgba(54, 198, 244, 0.09), transparent 18%),
    radial-gradient(circle at 88% 84%, rgba(243, 204, 49, 0.07), transparent 18%),
    #050505;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  overflow: hidden;
}

.contact-form-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.16;
  pointer-events: none;
}

.contact-form-shell::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.contact-form-top,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-form-top {
  margin-bottom: 26px;
}

.contact-form-top h2 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.contact-form-top .eyebrow {
  color: rgba(255,255,255,0.45);
}

.contact-form-intro {
  margin-top: 14px;
  max-width: 44ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.58);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.84);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.028) 100%);
  color: #ffffff;
  padding: 15px 16px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.36);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(255,255,255,0.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.034) 100%);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(243,204,49,0.86);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.082) 0%, rgba(255,255,255,0.042) 100%);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(243,204,49,0.14),
    0 12px 28px rgba(0,0,0,0.22);
}

.form-field textarea {
  resize: vertical;
  min-height: 138px;
  line-height: 1.65;
}

.select-wrap {
  position: relative;
}

.select-wrap::before,
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 1.5px;
  background: rgba(255,255,255,0.8);
  pointer-events: none;
  transform-origin: center;
}

.select-wrap::before {
  transform: translateY(-50%) rotate(45deg);
  right: 23px;
}

.select-wrap::after {
  transform: translateY(-50%) rotate(-45deg);
  right: 18px;
}

.form-field select {
  cursor: pointer;
  padding-right: 52px;
}

.form-field select,
.form-field select option {
  background-color: #0b0b0b;
  color: #ffffff;
}

.form-field select option {
  padding: 12px;
}

.form-field select:invalid {
  color: rgba(255,255,255,0.5);
}

.contact-form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  background: var(--yellow);
  color: #000000;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.6);
  filter: brightness(1.02);
}

.form-note {
  max-width: 48ch;
  font-size: 0.83rem;
  line-height: 1.52;
  color: rgba(255,255,255,0.58);
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
}

/* =========================
   REVEAL
========================= */

.contact-hero-content,
.contact-band-grid p,
.contact-info-block,
.contact-form-shell,
.footer-top,
.footer-bottom {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-hero-content.is-visible,
.contact-band-grid p.is-visible,
.contact-info-block.is-visible,
.contact-form-shell.is-visible,
.footer-top.is-visible,
.footer-bottom.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-block {
    position: static;
  }
}

@media (max-width: 820px) {
  .contact-line-v,
  .contact-line-h,
  .contact-line-box-1,
  .contact-line-box-2 {
    display: none;
  }

  .contact-hero-content {
    min-height: auto;
    padding-top: 66px;
    padding-bottom: 70px;
  }

  .contact-hero-content h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 0.98;
  }

  .contact-hero-description {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .contact-band-grid {
    grid-template-columns: 1fr;
  }

  .contact-band-grid p {
    min-height: auto;
    padding: 14px 0 14px 26px;
  }

  .contact-band-grid p:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .contact-band-grid p::before {
    left: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-main {
    padding: 58px 0 64px;
  }

  .contact-form-shell,
  .contact-info-block {
    padding: 24px 24px 26px;
  }

  .contact-form-shell::after,
  .contact-info-block::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .contact-hero-content h1 {
    font-size: 2.15rem;
  }

  .contact-hero-description {
    margin-top: 20px;
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .contact-band-grid p {
    font-size: 0.82rem;
    line-height: 1.42;
    padding: 13px 0 13px 20px;
  }

  .contact-info-block h2,
  .contact-form-top h2 {
    line-height: 1.06;
  }

  .contact-form .btn-primary {
    width: fit-content;
    min-height: 50px;
    font-size: 13px;
    padding: 0 22px;
  }
}