.page-contact {
  position: relative;
  overflow-x: clip;
}

.page-contact .contact-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 640px;
  padding: clamp(64px, 10vw, 120px) 0 88px;
  isolation: isolate;
}

.page-contact .contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.9) contrast(1.06) brightness(0.7);
}

.page-contact .contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 16, 0.9) 0%, rgba(10, 10, 16, 0.7) 50%, rgba(10, 10, 16, 0.96) 100%),
    radial-gradient(1200px 500px at 82% 8%, rgba(123, 47, 255, 0.18), transparent 55%),
    radial-gradient(700px 400px at 8% 80%, rgba(0, 229, 255, 0.08), transparent 50%);
}

.page-contact .contact-hero-content {
  position: relative;
  z-index: 1;
}

.page-contact .contact-kicker {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.page-contact .contact-hero-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
}

.page-contact .contact-hero-titlebox h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
  color: var(--text-title);
}

.page-contact .contact-hero-desc {
  max-width: 640px;
  margin-top: 18px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.8;
}

.page-contact .contact-hero-icon {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(123, 47, 255, 0.4);
  box-shadow: var(--shadow-glow);
  transform: rotate(3deg);
  align-self: flex-end;
}

.page-contact .contacts-row {
  margin-top: clamp(32px, 6vw, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-contact .contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  min-height: 192px;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid rgba(123, 47, 255, 0.34);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.page-contact .contact-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 76px;
  height: 76px;
  background: var(--gradient-neon);
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.28;
  pointer-events: none;
}

.page-contact .contact-card:hover,
.page-contact .contact-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 42px rgba(123, 47, 255, 0.16);
}

.page-contact .contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-title);
  background: var(--gradient-neon);
  box-shadow: 0 8px 22px rgba(123, 47, 255, 0.32);
}

.page-contact .contact-card-title {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-contact .contact-card-action {
  color: var(--text-title);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  text-decoration: none;
  text-align: left;
  overflow-wrap: anywhere;
  transition: color 0.25s, text-shadow 0.25s;
}

.page-contact .contact-card-action:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}

.page-contact .contact-card-address {
  color: var(--text-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.65;
}

.page-contact .contact-card-meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-contact .contact-card-extra {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.72;
  transition: opacity 0.3s, color 0.3s;
}

.page-contact .contact-card:hover .contact-card-extra,
.page-contact .contact-card:focus-within .contact-card-extra {
  opacity: 1;
  color: var(--accent-cyan);
}

.page-contact .contact-extra-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.page-contact .contact-map-section {
  padding: clamp(56px, 8vw, 104px) 0;
  background: linear-gradient(180deg, #0a0a10 0%, #0d0b18 100%);
}

.page-contact .contact-map-section h2,
.page-contact .contact-form-copy h2,
.page-contact .contact-live-section h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-title);
  line-height: 1.18;
  margin: 8px 0 0;
}

.page-contact .contact-map-layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-contact .contact-map-wrap {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(123, 47, 255, 0.34);
  overflow: hidden;
  background:
    radial-gradient(680px 320px at 68% 42%, rgba(123, 47, 255, 0.2), transparent 68%),
    linear-gradient(135deg, rgba(123, 47, 255, 0.1), transparent 45%),
    #0c0c16;
}

.page-contact .contact-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 47, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 255, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 42% 52%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at 42% 52%, black 30%, transparent 78%);
}

.page-contact .contact-map-route {
  position: absolute;
  left: 8%;
  top: 28%;
  width: 72%;
  height: 34%;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent 0%, rgba(0, 229, 255, 0.16) 30%, rgba(0, 229, 255, 0.04) 55%, transparent 100%);
  filter: blur(2px);
}

.page-contact .contact-map-zone {
  position: absolute;
  left: 52%;
  top: 22%;
  width: 170px;
  height: 190px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.35);
  transform: rotate(-14deg);
}

.page-contact .contact-map-pin {
  position: absolute;
  left: 61%;
  top: 43%;
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(0, 229, 255, 0.3));
}

.page-contact .contact-map-pin i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 8px rgba(0, 229, 255, 0.18), 0 0 0 16px rgba(0, 229, 255, 0.08);
}

.page-contact .contact-map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  transform: translateX(-50%) rotate(45deg);
  margin-top: -3px;
  border-radius: 2px;
}

.page-contact .contact-map-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 16, 0.76);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--text-body);
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.page-contact .contact-caption-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.8);
}

.page-contact .contact-address-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid rgba(123, 47, 255, 0.28);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-contact .contact-address-panel h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text-title);
  font-weight: 800;
}

.page-contact .contact-info-list {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-contact .contact-info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--primary-violet);
}

.page-contact .contact-info-list .meta-label {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-contact .contact-info-list .meta-value {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
}

.page-contact .contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-contact .contact-map-action {
  margin-top: auto;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  transition: gap 0.3s, color 0.3s;
}

.page-contact .contact-map-action:hover {
  gap: 12px;
  color: var(--text-title);
}

.page-contact .contact-form-section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(123, 47, 255, 0.14), transparent 60%),
    #0a0a10;
}

.page-contact .contact-form-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 47, 255, 0.5), rgba(0, 229, 255, 0.4), transparent);
}

.page-contact .contact-form-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.page-contact .contact-form-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-contact .contact-form-copy .section-desc {
  color: var(--text-body);
  line-height: 1.8;
}

.page-contact .contact-form-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.page-contact .contact-form-points li {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(18, 18, 29, 0.6);
  border: 1px solid rgba(123, 47, 255, 0.22);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.65;
}

.page-contact .contact-form-points strong {
  display: block;
  color: var(--text-title);
  font-weight: 700;
  margin-bottom: 2px;
}

.page-contact .contact-form-note {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-contact .contact-form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--surface-glass);
  border: 1px solid rgba(123, 47, 255, 0.32);
  box-shadow: var(--shadow-glow);
  display: grid;
  gap: 20px;
  backdrop-filter: blur(16px);
}

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

.page-contact .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-contact .form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}

.page-contact .form-field input,
.page-contact .form-field select,
.page-contact .form-field textarea {
  width: 100%;
  background: #0c0c16;
  border: 1px solid rgba(142, 142, 184, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-title);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.page-contact .form-field input:focus,
.page-contact .form-field select:focus,
.page-contact .form-field textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16), 0 0 28px rgba(123, 47, 255, 0.1);
  caret-color: var(--accent-cyan);
}

.page-contact .form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.page-contact .form-field select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: #0c0c16;
  padding-right: 44px;
}

.page-contact .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.page-contact .submit-btn {
  min-width: 220px;
  justify-content: center;
  cursor: pointer;
}

.page-contact .form-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.page-contact .contact-live-section {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0;
  background: linear-gradient(180deg, #0a0a10 0%, #0c0b1a 60%, #0a0a10 100%);
}

.page-contact .contact-live-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.36), transparent);
}

.page-contact .section-head--live .section-desc {
  color: var(--text-body);
  line-height: 1.8;
}

.page-contact .contact-steps-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.page-contact .contact-step {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid rgba(123, 47, 255, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.page-contact .contact-step:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(123, 47, 255, 0.1);
  transform: translateY(-3px);
}

.page-contact .contact-step--ready {
  border-color: rgba(0, 229, 255, 0.32);
}

.page-contact .contact-step-box[open] {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 34px rgba(0, 229, 255, 0.08);
}

.page-contact .contact-step-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-contact .contact-step-box > .contact-step-head {
  list-style: none;
  cursor: pointer;
}

.page-contact .contact-step-box > .contact-step-head::-webkit-details-marker {
  display: none;
}

.page-contact .contact-step-box > .contact-step-head:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 12px;
}

.page-contact .contact-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 900;
  color: var(--text-title);
  background: var(--gradient-neon);
  box-shadow: 0 6px 24px rgba(123, 47, 255, 0.38);
}

.page-contact .contact-step-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-title);
}

.page-contact .contact-step-tip {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.page-contact .contact-step-content {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(142, 142, 184, 0.18);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.75;
  display: grid;
  gap: 14px;
  align-items: start;
}

.page-contact .contact-step-meta {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.05);
  border-left: 2px solid var(--accent-cyan);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-contact .contact-live-note {
  margin-top: 36px;
  margin-bottom: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.page-contact .contact-live-alt-wrap {
  margin-top: 12px;
  text-align: center;
}

.page-contact .contact-live-alt {
  display: inline-flex;
  width: fit-content;
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.page-contact .contact-live-alt:hover {
  color: var(--text-title);
  border-color: var(--text-title);
}

@media (min-width: 600px) {
  .page-contact .contacts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-contact .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .page-contact .contact-hero-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-contact .contact-hero-icon {
    width: 140px;
    height: 140px;
  }

  .page-contact .contact-hero-desc {
    font-size: 18px;
  }
}

@media (min-width: 900px) {
  .page-contact .contact-steps-grid {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 0;
  }

  .page-contact .contact-step-arrow {
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--accent-cyan);
    background: var(--bg-deep);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.14);
  }
}

@media (min-width: 1024px) {
  .page-contact .contacts-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-contact .contact-map-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
  }

  .page-contact .contact-form-inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }
}
