.contact-page {
  overflow-x: hidden;
  color: var(--ink);
  background: #f8fafc;
}

.contact-main {
  min-height: 100vh;
  padding-top: 60px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.76fr);
  gap: clamp(36px, 5.2vw, 76px);
  align-items: center;
  min-height: 540px;
  padding-top: clamp(78px, 9vw, 118px);
  padding-bottom: clamp(62px, 7vw, 90px);
}

.contact-hero-copy h1 {
  margin: 18px 0 18px;
  color: var(--ink);
  font-size: clamp(48px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.contact-hero-copy .hero-subtitle {
  max-width: 700px;
}

.contact-summary {
  padding: 26px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-head strong {
  padding: 6px 10px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  background: rgba(22, 163, 74, 0.08);
  color: var(--green);
  font-size: 12px;
}

.contact-summary dl {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
}

.contact-summary dl div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-summary dl div:last-child {
  border-bottom: 0;
}

.contact-summary dt,
.contact-summary dd {
  margin: 0;
  font-size: 14px;
}

.contact-summary dt {
  color: var(--faint);
  font-weight: 800;
}

.contact-summary dd {
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.company-section,
.contact-info-section {
  position: relative;
  padding-top: 86px;
  padding-bottom: 92px;
}

.company-section::before,
.contact-info-section::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background: rgba(241, 246, 253, 0.78);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading.compact {
  margin-bottom: 28px;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.company-card,
.business-item {
  min-width: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.company-card {
  padding: 24px;
  min-height: 190px;
}

.company-card strong,
.business-item strong {
  display: block;
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 18px;
}

.company-card p,
.business-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.company-card:hover,
.business-item:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(0, 110, 255, 0.2);
}

.business-section,
.address-section,
.consult-section {
  padding-top: 86px;
  padding-bottom: 86px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.business-item {
  padding: 20px;
  min-height: 174px;
}

.contact-info-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: stretch;
  padding: 36px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.contact-info-copy h2,
.address-card h2 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.16;
}

.contact-info-copy > p:not(.section-kicker),
.address-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.contact-list div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  display: block;
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.contact-list strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
}

.qr-panel {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.qr-panel figure {
  margin: 0;
  text-align: center;
}

.qr-panel img {
  width: 154px;
  height: 154px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  object-fit: cover;
}

.qr-panel figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 44px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.82)),
    #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.address-meta {
  display: grid;
  gap: 10px;
}

.address-meta span {
  padding: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.address-meta b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
}

.consult-grid-page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.consult-grid-page div {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.consult-grid-page strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 17px;
}

.consult-grid-page span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.line-icon.contact-icon-hub::before {
  width: 16px;
  height: 16px;
  border: 2px solid #006eff;
  background: transparent;
  box-shadow: 10px 0 0 -3px #006eff, 0 10px 0 -3px #006eff;
}

.line-icon.contact-icon-hub::after {
  width: 19px;
  height: 2px;
  background: #006eff;
  transform: rotate(35deg);
}

.line-icon.contact-icon-api::before {
  width: 20px;
  height: 14px;
  border: 2px solid #006eff;
  background: transparent;
}

.line-icon.contact-icon-api::after {
  width: 13px;
  height: 2px;
  background: #006eff;
  box-shadow: 0 -5px 0 #006eff, 0 5px 0 #006eff;
}

.line-icon.contact-icon-team::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #006eff;
  box-shadow: -10px 8px 0 -1px #006eff, 10px 8px 0 -1px #006eff;
}

.line-icon.contact-icon-team::after {
  width: 27px;
  height: 10px;
  border: 2px solid #006eff;
  border-top: 0;
  background: transparent;
  transform: translateY(7px);
}

.contact-page .line-icon.icon-chat::before {
  left: 6px;
  top: 7px;
  width: 15px;
  height: 10px;
  border: 2px solid #006eff;
  background: transparent;
}

.contact-page .line-icon.icon-chat::after {
  left: 10px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-left: 2px solid #006eff;
  border-bottom: 2px solid #006eff;
  background: transparent;
  transform: skewX(-20deg);
}

.contact-page .line-icon.icon-code::before {
  left: 7px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #006eff;
  border-bottom: 2px solid #006eff;
  background: transparent;
  transform: rotate(45deg);
}

.contact-page .line-icon.icon-code::after {
  right: 7px;
  left: auto;
  top: 8px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #006eff;
  border-right: 2px solid #006eff;
  background: transparent;
  transform: rotate(45deg);
}

.contact-page .line-icon.icon-support::before {
  left: 6px;
  top: 8px;
  width: 16px;
  height: 10px;
  border: 2px solid #006eff;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
}

.contact-page .line-icon.icon-support::after {
  left: 8px;
  top: 16px;
  width: 4px;
  height: 7px;
  background: #006eff;
  box-shadow: 10px 0 0 #006eff, 6px 7px 0 0 #006eff;
}

@media (max-width: 980px) {
  .contact-hero,
  .contact-info-panel,
  .address-card {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    min-height: auto;
    padding-top: 120px;
  }

  .company-grid,
  .business-grid,
  .consult-grid-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-panel {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .contact-main {
    padding-top: 54px;
  }

  .contact-hero {
    padding-top: 84px;
    padding-bottom: 58px;
  }

  .contact-hero-copy h1 {
    font-size: clamp(36px, 11vw, 44px);
  }

  .contact-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-summary,
  .contact-info-panel,
  .address-card {
    padding: 22px;
  }

  .contact-summary dl div,
  .contact-list,
  .company-grid,
  .business-grid,
  .consult-grid-page {
    grid-template-columns: 1fr;
  }

  .company-section,
  .contact-info-section,
  .business-section,
  .address-section,
  .consult-section {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .contact-info-copy h2,
  .address-card h2 {
    font-size: clamp(25px, 7.2vw, 30px);
  }

  .qr-panel {
    max-width: none;
  }

  .qr-panel img {
    width: 132px;
    height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-card,
  .business-item {
    transition: none;
  }
}
