.contact-page {
  --contact-container: 1720px;
  --contact-gutter: clamp(48px, 6vw, 120px);
  --contact-half-gutter: clamp(24px, 3vw, 60px);
  background:
    radial-gradient(circle at 10% 0%, rgba(218, 238, 255, 0.72) 0, rgba(218, 238, 255, 0) 30%),
    linear-gradient(180deg, #f7fbff 0%, #f5fbff 36%, #eef8ff 58%, #f7fbff 100%);
}

.contact-page main .container,
.contact-page .site-footer .container {
  width: min(100% - var(--contact-gutter), var(--contact-container));
}

.contact-page .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.contact-page .site-header .nav-shell {
  width: calc(100% - clamp(32px, 3.4vw, 56px));
  max-width: none;
  min-height: 82px;
  gap: clamp(24px, 3vw, 52px);
}

.contact-page .brand img {
  width: 150px;
}

.contact-page .primary-nav {
  gap: clamp(26px, 2.5vw, 46px);
  color: #27354a;
  font-size: 15px;
  font-weight: 500;
}

.contact-page .round-action {
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 312px;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 42%, rgba(236, 247, 255, 0.32) 100%);
}

.contact-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 96px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0), rgba(242, 249, 255, 0.96));
  content: "";
}

.contact-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: stretch;
  min-height: 312px;
}

@media (min-width: 981px) {
  .contact-page main .contact-hero-grid {
    width: calc(100% - max(var(--contact-half-gutter), calc(50% - 860px)));
    max-width: none;
    margin-right: 0;
    margin-left: auto;
  }
}

.contact-hero-copy {
  position: relative;
  z-index: 2;
  padding: 26px 0 58px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  color: #405777;
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--primary-dark);
  font-weight: 700;
}

.breadcrumbs span::before {
  margin-right: 8px;
  color: #91a4bd;
  content: ">";
}

.contact-hero h1 {
  margin: 0 0 10px;
  color: #123469;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 800;
}

.contact-hero .hero-text {
  max-width: 460px;
  margin: 0;
  color: #526b8a;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 500;
}

.contact-hero-visual {
  position: relative;
  min-height: 312px;
}

.contact-hero-visual::before {
  position: absolute;
  inset: 0 auto 0 -1px;
  z-index: 1;
  width: 40%;
  background: linear-gradient(90deg, #f7fbff 0%, rgba(247, 251, 255, 0.9) 40%, rgba(247, 251, 255, 0) 100%);
  content: "";
}

.contact-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 312px;
  object-fit: cover;
  object-position: center;
}

.contact-methods {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin-top: -42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.contact-methods article {
  min-width: 0;
  min-height: 120px;
  padding: 16px 18px 14px;
  text-align: center;
}

.contact-methods article + article {
  border-left: 1px solid #e8f0fb;
}

.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  color: var(--primary);
}

.method-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.7;
}

.contact-methods h2 {
  margin: 0 0 5px;
  color: #17233d;
  font-size: 14px;
  font-weight: 800;
}

.contact-methods strong {
  display: block;
  min-height: 20px;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
}

.contact-methods article:nth-child(5) strong {
  font-size: 13px;
}

.contact-methods p {
  margin: 2px 0 0;
  color: #6a7d95;
  font-size: 11px;
}

.contact-section {
  padding: 18px 0 8px;
}

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

.contact-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e7f0fb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.message-card {
  display: flex;
  flex-direction: column;
}

.contact-card h2 {
  margin: 0 0 4px;
  color: #1c3152;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.contact-card > p {
  margin: 0 0 12px;
  color: #75859a;
  font-size: 13px;
}

.message-form {
  display: grid;
  grid-template-rows: repeat(4, 44px) minmax(168px, 1fr) auto 44px;
  gap: 10px;
  flex: 1;
}

.message-form label {
  min-width: 0;
}

.message-form input,
.message-form select,
.message-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e0e9f4;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.message-form input,
.message-form select {
  padding: 0 14px;
}

.message-form textarea {
  min-height: 0;
  height: 100%;
  padding: 10px 14px;
  resize: vertical;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: #a0aebe;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
  border-color: rgba(47, 128, 237, 0.72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.select-field,
.message-field {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.message-field {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
}

.select-field > span,
.message-field > span {
  color: #1d2d48;
  font-size: 14px;
  font-weight: 800;
}

.agree-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5e7088;
  font-size: 13px;
}

.agree-field input {
  width: 14px;
  min-height: 14px;
  height: 14px;
  accent-color: var(--primary);
}

.agree-field span {
  color: #5e7088;
}

.message-form button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b94ff, #1f73e8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.message-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(47, 128, 237, 0.28);
}

.map-image {
  position: relative;
  display: block;
  width: 100%;
  min-height: 238px;
  aspect-ratio: 392 / 238;
  border-radius: 8px;
  border: 1px solid #e5eef9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.12), rgba(255, 255, 255, 0.94)),
    #eef7ff;
}

.amap-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.amap-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(237, 248, 255, 0.9), rgba(255, 255, 255, 0.96));
  color: #23415f;
  text-align: center;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.map-image.is-ready .amap-map-fallback {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.amap-map-fallback strong {
  color: #17365d;
  font-size: 16px;
  line-height: 1.35;
}

.amap-map-fallback p {
  max-width: 260px;
  margin: 0 auto;
  color: #5c7190;
  font-size: 12px;
  line-height: 1.55;
}

.amap-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  margin: 2px auto 0;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b94ff, #1f73e8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(47, 128, 237, 0.2);
}

.geo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.geo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b94ff, #1f73e8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(47, 128, 237, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.geo-button:hover,
.geo-button:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(47, 128, 237, 0.24);
}

.geo-button.secondary {
  border: 1px solid #cfe0f4;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.geo-button.secondary:hover,
.geo-button.secondary:focus {
  color: var(--primary-dark);
  background: #f4f9ff;
}

.amap-info-card {
  display: grid;
  gap: 4px;
  min-width: 180px;
  max-width: 240px;
  padding: 2px 0;
  color: #243b59;
  font-size: 12px;
  line-height: 1.45;
}

.amap-info-card strong {
  color: #176fd4;
  font-size: 14px;
}

.amap-info-card span {
  color: #5c7190;
}

.route-guide {
  margin-top: 14px;
}

.route-guide h3 {
  margin: 0 0 8px;
  color: #1c3152;
  font-size: 16px;
  font-weight: 800;
}

.route-guide p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 5px;
  color: #596d86;
  font-size: 11px;
  line-height: 1.45;
}

.route-guide span {
  color: var(--primary-dark);
  font-weight: 800;
}

.faq-section {
  padding: 0 0 16px;
}

.faq-section .section-title {
  margin-bottom: 14px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
}

.faq-grid article {
  padding: 8px 14px;
  border: 1px solid #e7f0fb;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq-grid button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a3154;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.faq-grid button span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faq-grid button span::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #4aa3ff, #2178e8);
  color: #fff;
  font-size: 11px;
  content: "?";
}

.faq-grid .icon {
  width: 18px;
  height: 18px;
  color: var(--primary-dark);
}

.faq-grid p {
  margin: 3px 0 0 24px;
  color: #687b94;
  font-size: 12px;
  line-height: 1.35;
}

.contact-cta {
  position: relative;
  display: block;
  min-height: 156px;
  margin-top: 30px;
  margin-bottom: 26px;
  padding: 30px 58px;
  overflow: hidden;
  border-radius: 14px;
  background: #e9f6ff;
}

.contact-cta::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #e9f6ff 0%, rgba(233, 246, 255, 0.98) 41%, rgba(233, 246, 255, 0.5) 60%, rgba(233, 246, 255, 0) 82%);
  content: "";
  pointer-events: none;
}

.contact-cta > div {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.contact-cta h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 800;
}

.contact-cta p {
  margin: 0 0 14px;
  color: #53677f;
  font-size: 14px;
}

.contact-cta img {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 62%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 56%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-page .footer-grid {
  gap: 22px;
  padding: 16px 0 8px;
}

.contact-page .footer-brand img {
  width: 106px;
  margin-bottom: 6px;
}

.contact-page .footer-brand p {
  margin-bottom: 8px;
  font-size: 11px;
}

.contact-page .social-links a {
  width: 22px;
  height: 22px;
}

.contact-page .site-footer nav h2 {
  margin-bottom: 5px;
  font-size: 12px;
}

.contact-page .site-footer nav a {
  font-size: 11px;
  line-height: 1.42;
}

.contact-page .qr-block {
  grid-template-columns: 64px minmax(0, 1fr);
}

.contact-page .qr-block img {
  width: 64px;
  height: 64px;
}

.contact-page .qr-block strong {
  font-size: 13px;
}

.contact-page .qr-block span {
  font-size: 12px;
}

.contact-page .copyright {
  padding: 6px 24px 8px;
  font-size: 11px;
}

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

  .contact-hero-copy {
    padding-bottom: 28px;
  }

  .contact-hero-visual {
    display: none;
  }

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

  .contact-methods article + article {
    border-left: 0;
  }

  .contact-methods article {
    border-top: 1px solid #e8f0fb;
  }

  .contact-methods article:nth-child(-n + 2) {
    border-top: 0;
  }

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

}

@media (min-width: 761px) and (max-width: 980px) {
  .contact-page .site-header .nav-shell {
    flex-wrap: nowrap;
    gap: 22px;
    min-height: 70px;
    padding: 0;
  }

  .contact-page .brand img {
    width: 118px;
  }

  .contact-page .primary-nav {
    order: initial;
    justify-content: center;
    width: auto;
    gap: 24px;
    overflow: visible;
    font-size: 15px;
  }

  .contact-page .round-action {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .contact-page {
    --contact-gutter: 28px;
  }

  .contact-page .site-header .nav-shell {
    min-height: 70px;
  }

  .contact-page .brand img {
    width: 118px;
  }

  .contact-page .primary-nav {
    gap: 18px;
    overflow-x: auto;
    font-size: 15px;
    scrollbar-width: none;
  }

  .contact-page .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .contact-cta {
    min-height: 0;
    padding: 24px 28px 0;
  }

  .contact-cta::after {
    background: linear-gradient(180deg, #e9f6ff 0%, rgba(233, 246, 255, 0.94) 50%, rgba(233, 246, 255, 0) 82%);
  }

  .contact-cta img {
    position: relative;
    inset: auto;
    width: calc(100% + 56px);
    height: 178px;
    margin: 18px -28px 0;
    object-position: center 56%;
  }
}

@media (max-width: 560px) {
  .contact-hero {
    min-height: 250px;
  }

  .contact-hero-grid {
    min-height: 250px;
  }

  .contact-hero-copy {
    padding: 22px 0 36px;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }

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

  .hero-text {
    font-size: 13px;
  }

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

  .contact-methods article,
  .contact-methods article:nth-child(-n + 2) {
    border-top: 1px solid #e8f0fb;
  }

  .contact-methods article:first-child {
    border-top: 0;
  }

  .contact-grid {
    gap: 18px;
  }

  .contact-card {
    padding: 18px;
  }

  .select-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .route-guide p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .geo-actions {
    flex-direction: column;
  }

  .geo-button {
    width: 100%;
    min-height: 44px;
  }

  .faq-grid article {
    padding: 13px 14px;
  }

  .faq-grid button {
    font-size: 13px;
  }

  .faq-grid p {
    margin-left: 0;
  }

  .contact-cta {
    padding-inline: 22px;
  }

  .contact-cta h2 {
    font-size: 22px;
  }

  .contact-cta img {
    width: calc(100% + 44px);
    margin-inline: -22px;
  }
}
