.contact-page {
  position: relative;
  background: #ffffff;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 430px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%),
    url("../images/contact/contact-bg.jpg") center top / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.contact-page .site-header-static {
  z-index: 12;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact-page .site-header-static.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(19, 34, 68, 0.06);
}

.contact-page .site-nav {
  z-index: 13;
}

.contact-page .site-nav a.is-active::after {
  bottom: -22px;
}

.contact-hero {
  position: relative;
  z-index: 1;
  padding: 104px 0 38px;
}

.contact-hero-inner {
  height: 220px;
}

.contact-hero h1 {
  margin: 0;
  color: #000;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.32;
}

.contact-hero h1 span {
  display: inline-block;
  margin-top: 8px;
  color: transparent;
  background: linear-gradient(90deg, #1d83ff 0%, #8a65ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-section {
  position: relative;
  z-index: 2;
  padding: 64px 0 72px;
  background: #ffffff;
}

.contact-shell {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: 416px 848px;
  gap: 16px;
  align-items: start;
}

.contact-card {
  border: 1px solid #ebedf1;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(29, 56, 116, 0.04);
}

.contact-card-info {
  width: 416px;
  min-height: 570px;
  padding: 40px 40px 64px 40px;
}

.contact-card-map {
  display: flex;
  flex-direction: column;
  width: 848px;
  min-height: 570px;
}

.contact-card-header {
  padding: 40px 40px 40px;
}

.contact-card-info .contact-card-header {
  padding: 0 0 38px;
}

.contact-card-header h2,
.contact-follow h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.00;
}

.contact-methods {
  display: grid;
  gap: 32px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-method img {
  width: 56px;
  height: 56px;
  flex: none;
}

.contact-method-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.contact-method-label {
  color: rgb(0,0,0,0.5);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.00;
}

.contact-method-value {
  color: #1A75FF;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.00;
  word-break: break-word;
}

.contact-divider {
  height: 1px;
  margin: 44px 0 50px;
  background: #ebedf1;
}

.contact-follow {
  display: grid;
  gap: 34px;
}

.contact-social-grid {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.contact-social-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  overflow: visible;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.contact-social-item:hover,
.contact-social-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(29, 56, 116, 0.14);
  z-index: 2;
}

.contact-social-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.22s ease,
    width 0.22s ease,
    height 0.22s ease;
}

.contact-social-image-default {
  opacity: 1;
}

.contact-social-image-hover {
  opacity: 0;
}

.contact-social-item:hover .contact-social-image-default,
.contact-social-item:focus-visible .contact-social-image-default {
  opacity: 0;
}

.contact-social-item:hover .contact-social-image-hover,
.contact-social-item:focus-visible .contact-social-image-hover {
  opacity: 1;
  width: 90px;
  height: 90px;
}

.contact-social-item-left:hover .contact-social-image-hover,
.contact-social-item-left:focus-visible .contact-social-image-hover {
  left: 0;
  transform: translate(0, -50%);
}

.contact-social-item-center:hover .contact-social-image-hover,
.contact-social-item-center:focus-visible .contact-social-image-hover {
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact-social-item-right:hover .contact-social-image-hover,
.contact-social-item-right:focus-visible .contact-social-image-hover {
  left: 100%;
  transform: translate(-100%, -50%);
}

.contact-map-frame {
  position: relative;
  width: 848px;
  height: 467px;
  overflow: hidden;
  background: #edf3ff;
}

.contact-map-canvas {
  width: 100%;
  height: 100%;
}

.contact-map-canvas .anchorBL,
.contact-map-canvas .BMap_bubble_title,
.contact-map-canvas .BMap_bubble_center {
  font-family: inherit;
}

.contact-map-canvas .BMapLabel {
  max-width: min(340px, calc(100% - 48px)) !important;
  white-space: normal !important;
}

.contact-page .site-footer {
  background: #f4f6fc;
}

.contact-page .footer-grid {
  padding-top: 70px;
}

.contact-page .footer-bottom {
  margin-top: 64px;
}

@media (max-width: 1260px) {
  .contact-page::before {
    height: 400px;
  }

  .contact-hero h1 {
    font-size: 66px;
  }

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

  .contact-card-info {
    width: 100%;
    min-height: 570px;
    padding-inline: 32px;
  }

  .contact-card-header {
    padding-inline: 32px;
  }

  .contact-card-map {
    width: 100%;
    min-height: 570px;
  }

  .contact-map-frame {
    width: 100%;
    max-width: 848px;
  }
}

@media (max-width: 1080px) {
  .contact-hero {
    padding-top: 108px;
  }

  .contact-hero-inner {
    min-height: auto;
  }

  .contact-hero h1 {
    font-size: 56px;
  }

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

  .contact-card-map {
    width: 100%;
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .contact-page::before {
    height: 338px;
  }

  .contact-page .site-header {
    z-index: 24;
  }

  .contact-page .site-nav {
    z-index: 25;
  }

  .contact-page .site-nav a.is-active::after {
    bottom: -12px;
  }

  .contact-hero {
    min-height: 190px;
    height: auto;
    padding: 64px 0 38px;
  }

  .contact-hero-inner {
    height: 200px;
  }

  .contact-hero h1 {
    font-size: 42px;
    line-height: 1.3;
  }

  .contact-section {
    padding-top: 0;
    padding-bottom: 56px;
    margin-top: 64px;
  }

  .contact-card-info {
    padding: 30px 22px;
  }

  .contact-card-header {
    padding: 28px 22px 18px;
  }

  .contact-card-info .contact-card-header {
    padding: 0 0 28px;
  }

  .contact-card-header h2,
  .contact-follow h3 {
    font-size: 24px;
  }

  .contact-method {
    align-items: flex-start;
    gap: 16px;
  }

  .contact-method img {
    width: 56px;
    height: 56px;
  }

  .contact-method-value {
    font-size: 18px;
  }

  .contact-divider {
    margin: 34px 0 38px;
  }

  .contact-follow {
    gap: 24px;
  }

  .contact-social-grid {
    gap: 18px;
  }

  .contact-social-item {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .contact-map-frame,
  .contact-map-canvas {
    width: 100%;
    min-height: 360px;
    height: 360px;
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 34px;
  }

  .contact-method-value {
    font-size: 17px;
  }

  .contact-social-grid {
    justify-content: space-between;
  }
}
