:root {
  --page-bg: #0f0f1f;
  --panel: #1c1930;
  --card: rgba(20, 19, 38, 0.88);
  --line: rgba(151, 143, 187, 0.18);
  --text: #f8f7fc;
  --muted: #aaa7c3;
  --pink: #e600ef;
  --purple: #8a4cf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

.contact-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 46%, rgba(89, 13, 111, 0.35), transparent 37%),
    linear-gradient(105deg, #0f0f1f 0%, #0f0f1f 47%, #130e28 72%, #250d30 100%);
}

.stars {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars span {
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, var(--star-opacity));
  box-shadow: 0 0 calc(var(--star-size) * 4) rgba(255, 255, 255, 0.9);
  animation: contact-star-twinkle var(--star-duration, 5s) ease-in-out infinite alternate;
  animation-delay: var(--star-delay, 0s);
}

@keyframes contact-star-twinkle {
  from { opacity: 0.16; transform: scale(0.68); }
  to { opacity: 1; transform: scale(1.2); }
}

.contact-header {
  position: relative;
  z-index: 5;
}

.contact-header-inner {
  display: flex;
  width: min(calc(100% - 40px), 1062px);
  min-height: 83px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.contact-logo {
  display: block;
  width: 42px;
  height: 47px;
}

.contact-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.contact-nav > a:not(.contact-quote-link) {
  color: #b2aec3;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease;
}

.contact-nav > a:not(.contact-quote-link):hover,
.contact-nav > a:not(.contact-quote-link):focus-visible {
  color: white;
}

.contact-quote-link {
  display: inline-flex;
  min-width: 71px;
  min-height: 33px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(110deg, #e700ef, #8d4ff4);
  box-shadow: 0 9px 25px rgba(197, 0, 236, 0.22);
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-quote-link:hover,
.contact-quote-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(197, 0, 236, 0.35);
}

.contact-menu-button {
  display: none;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: white;
  transition: 160ms ease;
}

.contact-main {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 40px), 1096px);
  margin: 31px auto 40px;
  grid-template-columns: 520px 520px;
  gap: 56px;
  align-items: start;
}

.contact-badge {
  display: inline-flex;
  min-height: 32px;
  padding: 0 16px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(165, 157, 193, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 700;
}

.contact-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #ed00f4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-intro h1 {
  margin: 31px 0 17px;
  font-size: 43px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.contact-intro h1 span {
  background: linear-gradient(100deg, #ed00f5, #8b4df6);
  background-clip: text;
  color: transparent;
}

.contact-description {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.contact-info-card {
  display: flex;
  min-height: 82px;
  padding: 15px 18px;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(156, 147, 187, 0.15);
  border-radius: 14px;
  background: var(--card);
}

.contact-info-icon {
  display: grid;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid;
  border-radius: 12px;
}

.contact-info-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-info-icon.magenta {
  border-color: rgba(233, 0, 241, 0.35);
  background: rgba(211, 0, 226, 0.13);
  color: #ef00f6;
}

.contact-info-icon.violet {
  border-color: rgba(134, 80, 246, 0.35);
  background: rgba(112, 65, 209, 0.15);
  color: #8657f6;
}

.contact-info-icon.cyan {
  border-color: rgba(0, 196, 239, 0.35);
  background: rgba(0, 161, 205, 0.14);
  color: #17c9ed;
}

.contact-info-card h2 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.2;
}

.contact-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.contact-info-card a:hover,
.contact-info-card a:focus-visible {
  color: white;
}

.quote-panel {
  min-height: 538px;
  margin-top: 116px;
  padding: 35px 36px 31px;
  border: 1px solid rgba(159, 148, 192, 0.25);
  border-radius: 22px;
  background: rgba(29, 26, 49, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.quote-panel > h2 {
  margin: 0 0 34px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.quote-form label {
  display: block;
  margin-bottom: 23px;
  color: #cbc8d8;
  font-size: 13px;
  font-weight: 600;
}

.quote-form label span {
  color: #ea2e58;
}

.quote-form label em {
  color: #aaa6be;
  font-style: normal;
  font-weight: 400;
}

.quote-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(155, 146, 186, 0.23);
  border-radius: 9px;
  outline: 0;
  background: #141326;
  color: white;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quote-form input {
  height: 43px;
}

.quote-form textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.45;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: rgba(228, 0, 238, 0.64);
  box-shadow: 0 0 0 3px rgba(228, 0, 238, 0.09);
}

.quote-form ::placeholder {
  color: #aaa6be;
  opacity: 1;
}

.quote-submit {
  display: flex;
  width: 100%;
  height: 43px;
  margin-top: -1px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(100deg, #ed00ef 3%, #c40bf0 48%, #8950f3 100%);
  box-shadow: 0 9px 24px rgba(210, 8, 235, 0.25);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.quote-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quote-submit:hover,
.quote-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(210, 8, 235, 0.36);
}

.quote-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.quote-form-status {
  min-height: 18px;
  margin: 9px 0 -15px;
  color: #8de3af;
  font-size: 12px;
  text-align: center;
}

.quote-form-status.error {
  color: #ff9b9b;
}

.honey {
  position: absolute !important;
  left: -9999px !important;
}

@media (max-width: 1120px) {
  .contact-main {
    width: min(calc(100% - 48px), 960px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
  }

  .desktop-break {
    display: none;
  }
}

@media (max-width: 820px) {
  .contact-page {
    overflow: visible;
  }

  .contact-menu-button {
    display: block;
  }

  .contact-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 4px;
    padding: 17px;
    transform: translateY(-8px);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(20, 18, 39, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: 160ms ease;
  }

  .contact-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .contact-nav > a:not(.contact-quote-link) {
    padding: 11px 8px;
  }

  .contact-menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .contact-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .contact-menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .contact-main {
    display: block;
    width: min(calc(100% - 32px), 620px);
    margin-top: 28px;
  }

  .quote-panel {
    margin-top: 44px;
  }
}

@media (max-width: 560px) {
  .contact-header-inner {
    width: calc(100% - 30px);
  }

  .contact-logo {
    width: 36px;
    height: 42px;
  }

  .contact-intro h1 {
    font-size: 37px;
  }

  .contact-description {
    font-size: 15px;
  }

  .contact-info-card {
    min-height: 78px;
  }

  .quote-panel {
    min-height: auto;
    padding: 27px 22px 25px;
    border-radius: 18px;
  }

  .quote-panel > h2 {
    margin-bottom: 27px;
  }

  .quote-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
