.contact-page {
  --contact-accent: #3853cc;
  --contact-line: #dce4f3;
  --contact-muted: #52617a;
  --contact-navy: #131e37;
}

.contact-hero {
  padding: clamp(40px, 5.25vw, 78px) 0 clamp(44px, 5.5vw, 84px);
  border-bottom: 1px solid #e4eafa;
  background:
    radial-gradient(ellipse at 91% 15%, #dce5ff 0, transparent 48%),
    linear-gradient(155deg, #fff 18%, #f5f7ff 76%, #edf2ff);
}

.contact-hero .page-hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(30px, 5.2vw, 78px);
}

.contact-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--contact-muted);
}

.contact-hero .breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.contact-page .eyebrow {
  margin-bottom: 12px;
  color: var(--contact-accent);
  letter-spacing: 0.06em;
}

.contact-hero .display {
  font-size: clamp(36px, 5.05vw, 70px);
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.contact-hero .text-primary {
  color: var(--contact-accent);
}

.contact-hero .lead {
  max-width: 490px;
  margin-top: 18px;
  color: var(--contact-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-hero-actions .btn {
  min-height: 52px;
  padding: 0 17px;
  font-size: 15px;
}

.contact-page main .btn-primary {
  background: var(--contact-accent);
}

.contact-page main .btn-primary:hover {
  background: #2c44b6;
}

.contact-page main :is(a, button, textarea):focus-visible {
  outline: 3px solid var(--contact-accent);
  outline-offset: 3px;
}

.contact-scene {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #293856;
  border-radius: 24px;
  color: #f6f8ff;
  background: var(--contact-navy);
  box-shadow: 0 24px 58px #25397536;
}

.contact-scene-head {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 19px;
  border-bottom: 1px solid #354362;
  background: #192641;
  color: #e7eeff;
  font-size: 13px;
  font-weight: 700;
}

.contact-scene-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-scene-head .bi {
  color: #a2b8ff;
  font-size: 17px;
}

.contact-scene-badge {
  padding: 3px 8px;
  border: 1px solid #495c86;
  border-radius: 20px;
  color: #cfdbff;
  font-size: 11px;
  white-space: nowrap;
}

.contact-scene-body {
  position: relative;
  isolation: isolate;
  padding: 24px clamp(17px, 3.2vw, 36px) 27px;
  background:
    radial-gradient(ellipse at 100% 1%, #344f945e, transparent 65%),
    repeating-linear-gradient(0deg, #b2c4ff12 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, #b2c4ff12 0 1px, transparent 1px 28px);
}

.contact-scene-body::before,
.contact-scene-body::after {
  position: absolute;
  z-index: -1;
  top: -62px;
  right: -38px;
  width: 186px;
  aspect-ratio: 1;
  border: 1px solid #a4baff42;
  border-radius: 50%;
  content: "";
}

.contact-scene-body::after {
  top: -37px;
  right: -13px;
  width: 136px;
  background: radial-gradient(circle, #a4baff23, transparent 67%);
}

.contact-scene-kicker {
  margin: 0 0 6px;
  color: #a9bfff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-scene-title {
  margin: 0 0 17px;
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.contact-scene-track,
.contact-checklist,
.contact-process {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-scene-track {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 15px;
}

.contact-scene-track::before {
  position: absolute;
  inset: 30px auto 30px 3px;
  width: 2px;
  background: #91abff;
  transform-origin: top;
  content: "";
}

.contact-scene-track li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 61px;
  padding: 8px 11px;
  border: 1px solid #46577c;
  border-radius: 13px;
  background: #1d2c4b;
  line-height: 1.3;
}

.contact-scene-track li:last-child {
  border-color: #7b94e2;
  background: #273e72;
}

.contact-scene-track li::before {
  position: absolute;
  top: calc(50% - 4px);
  left: -16px;
  width: 8px;
  height: 8px;
  border: 2px solid #9cb4ff;
  border-radius: 50%;
  background: var(--contact-navy);
  content: "";
}

.contact-scene-track li:last-child::before {
  background: #bbccff;
  box-shadow: 0 0 11px #9cb4ffaa;
}

.contact-scene-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #586ea4;
  border-radius: 10px;
  color: #c4d4ff;
  background: #31466f;
  font-size: 17px;
}

.contact-scene-track li:last-child .contact-scene-icon {
  border-color: #a8bcff;
  color: #182a58;
  background: #bbccff;
}

.contact-scene-track small,
.contact-scene-track strong {
  display: block;
}

.contact-scene-track small {
  margin-bottom: 2px;
  color: #c1d0f9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact-scene-track strong {
  font-size: clamp(13px, 1.45vw, 16px);
}

.contact-page .demo-consult-context {
  scroll-margin-top: 90px;
}

.contact-page .demo-context-inner {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border-color: var(--contact-line);
  border-radius: 20px;
}

.contact-page .demo-context-inner h2 {
  margin: 0;
}

.contact-page .demo-context-inner p,
.contact-page .demo-brief-label {
  color: var(--contact-muted);
  font-size: 14px;
}

.contact-page .demo-brief-text {
  font-size: 16px;
}

.contact-page .demo-brief-actions .btn {
  min-height: 44px;
  padding: 0 13px;
  font-size: 13px;
}

.contact-page .contact-channels {
  padding: clamp(44px, 5.1vw, 72px) 0;
}

.contact-heading {
  margin-bottom: clamp(19px, 2.5vw, 30px);
}

.contact-heading .section-title,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(27px, 3.25vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.047em;
}

.contact-channel-grid,
.contact-details-grid {
  display: grid;
  gap: 16px;
}

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

.contact-channel {
  --channel-accent: #344db8;
  --channel-tint: #eaf0ff;
  display: grid;
  align-content: start;
  padding: clamp(17px, 2.3vw, 28px);
  border: 1px solid var(--contact-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #f7f9ff, #fff 73%);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-channel--email {
  --channel-accent: #1b6664;
  --channel-tint: #e7f5f1;
}

.contact-channel--chat {
  --channel-accent: #6b4f13;
  --channel-tint: #fff3ce;
}

.contact-channel:hover,
.contact-channel:focus-visible {
  border-color: var(--channel-accent);
  box-shadow: 0 12px 30px #25397515;
}

.contact-channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.contact-channel-icon,
.contact-channel-arrow {
  display: grid;
  place-items: center;
  color: var(--channel-accent);
}

.contact-channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--channel-tint);
  font-size: 21px;
}

.contact-channel-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid var(--contact-line);
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
}

.contact-channel:hover .contact-channel-arrow,
.contact-channel:focus-visible .contact-channel-arrow {
  border-color: var(--channel-tint);
  background: var(--channel-tint);
}

.contact-channel-label {
  color: var(--channel-accent);
  font-size: 13px;
  font-weight: 700;
}

.contact-channel strong {
  margin: 2px 0 5px;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-channel-description,
.contact-panel-lead,
.contact-panel li p {
  color: var(--contact-muted);
  font-size: 15px;
  line-height: 1.5;
}

.contact-page .contact-details {
  padding: clamp(38px, 5.4vw, 76px) 0;
  border-top: 1px solid var(--contact-line);
  background: #f5f7fc;
}

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

.contact-panel {
  padding: clamp(20px, 3.2vw, 38px);
  border: 1px solid var(--contact-line);
  border-radius: 20px;
  background: #fff;
}

.contact-panel--checklist {
  background: linear-gradient(150deg, #f4f7ff, #fff 65%);
}

.contact-panel h2 {
  font-size: clamp(24px, 2.85vw, 34px);
}

.contact-panel-lead {
  margin: 9px 0 0;
}

.contact-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.contact-checklist li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 13px;
  border: 1px solid #e2e9f6;
  border-radius: 12px;
  background: #f7f9ff;
}

.contact-checklist .bi {
  color: var(--contact-accent);
  font-size: 17px;
}

.contact-panel li strong {
  line-height: 1.35;
}

.contact-panel li p {
  margin: 3px 0 0;
  font-size: 14px;
}

.contact-panel-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--contact-accent);
  font-size: 15px;
  font-weight: 700;
}

.contact-panel-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-process {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-process::before {
  position: absolute;
  inset: 18px auto 30px 17px;
  width: 1px;
  background: var(--contact-line);
  content: "";
}

.contact-process li {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.contact-process li > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #dce5ff;
  border-radius: 10px;
  color: var(--contact-accent);
  background: #eff3ff;
  font-size: 12px;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .contact-scene.is-motion-playing {
    animation: contact-enter 620ms cubic-bezier(.2, .75, .25, 1) both;
  }

  .contact-scene.is-motion-playing .contact-scene-track::before {
    animation: contact-trace 760ms 120ms cubic-bezier(.2, .75, .25, 1) both;
  }

  .contact-scene.is-motion-playing .contact-scene-track li {
    animation: contact-step 520ms cubic-bezier(.2, .75, .25, 1) both;
    animation-delay: 110ms;
  }

  .contact-scene.is-motion-playing .contact-scene-track li:nth-child(2) {
    animation-delay: 270ms;
  }

  .contact-scene.is-motion-playing .contact-scene-track li:nth-child(3) {
    animation-delay: 430ms;
  }

  .contact-page .contact-channel-grid > :nth-child(2),
  .contact-page .contact-panel--process {
    animation-delay: 70ms;
  }

  .contact-page .contact-channel-grid > :nth-child(3) {
    animation-delay: 140ms;
  }
}

@keyframes contact-enter {
  from { opacity: 0.55; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@keyframes contact-step {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes contact-trace {
  from { transform: scaleY(0); }
  to { transform: none; }
}

@media (max-width: 820px) {
  .contact-hero .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .contact-page main .container,
  .contact-page .demo-context-inner {
    width: calc(100% - 36px);
  }

  .contact-page .demo-context-inner,
  .contact-channel-grid,
  .contact-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-hero .display {
    font-size: clamp(34px, 8.7vw, 51px);
  }

  .contact-hero-actions {
    margin-top: 20px;
  }

  .contact-hero-actions .btn {
    min-height: 48px;
    padding: 0 12px;
    gap: 6px;
    font-size: 14px;
  }

  .contact-scene {
    border-radius: 18px;
  }

  .contact-channel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 12px;
    align-content: center;
  }

  .contact-channel-top {
    display: contents;
  }

  .contact-channel-icon {
    grid-area: 1 / 1 / 4 / 2;
    align-self: center;
  }

  .contact-channel-arrow {
    grid-area: 1 / 3 / 4 / 4;
    align-self: center;
  }

  .contact-channel > :is(.contact-channel-label, strong, .contact-channel-description) {
    grid-column: 2;
  }

  .contact-channel-description {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page main .btn:hover {
    transform: none;
  }

  .contact-channel {
    transition: none;
  }
}

@media (max-width: 380px) {
  .contact-channel {
    column-gap: 10px;
    padding-inline: 13px;
  }

  .contact-channel-arrow {
    width: 28px;
    height: 28px;
  }
}
