.page-contact {
  --contact-blue: #007aff;
  --contact-blue-dark: #0058bc;
  --contact-text: #191c1e;
  --contact-muted: #414755;
  --contact-bg: #f7f9fb;
  --contact-line: #e2e8f0;
  background: var(--contact-bg);
  color: var(--contact-text);
}

.contact-main {
  background: var(--contact-bg);
}

.contact-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  overflow: hidden;
  background: #003b7a;
  color: #ffffff;
}

.contact-hero__bg,
.contact-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero__particles {
  opacity: 0.82;
}

.contact-hero__content {
  position: relative;
  z-index: 1;
  width: min(800px, calc(100% - 40px));
  padding-top: 70px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.18;
}

.contact-hero p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.7;
}

.contact-content {
  padding: 96px 0 48px;
}

.contact-content__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  padding-bottom: 160px;
}

.contact-info h2,
.contact-form h2 {
  color: #191c1e;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
}

.contact-info > p {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 112, 235, 0.18);
  color: #414755;
  font-size: 16px;
  line-height: 1.65;
}

.contact-info__list {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.contact-info__list article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-info__list article > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #e6e8ea;
  color: var(--contact-blue-dark);
  font-size: 24px;
}

.contact-info__icon img {
  display: block;
  object-fit: contain;
}

.contact-info__icon--address img {
  width: 19px;
  height: 24px;
}

.contact-info__icon--email img {
  width: 24px;
  height: 19px;
}

.contact-info__icon--qq img {
  width: 24px;
  height: 24px;
}

.contact-info h3 {
  color: #191c1e;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}

.contact-info__list p {
  margin-top: 4px;
  color: #414755;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 24px;
  padding: 42px;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

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

.contact-form label {
  display: grid;
  gap: 10px;
  color: #414755;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c1c6d7;
  border-radius: 0;
  background: transparent;
  color: #191c1e;
  outline: none;
  font-size: 16px;
}

.contact-form input {
  height: 46px;
}

.contact-form textarea {
  min-height: 128px;
  padding-top: 10px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--contact-blue);
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--contact-blue);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 1.6px;
}

.contact-form__message,
.contact-form__error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.contact-form__message {
  background: rgba(0, 122, 255, 0.1);
  color: var(--contact-blue-dark);
}

.contact-form__error {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.contact-map-section {
  padding: 48px 0 96px;
}

.contact-map {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid rgba(193, 198, 215, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
}

.contact-map > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.contact-map::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 88, 188, 0.1);
  content: "";
}

.contact-map > div {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 1;
  max-width: 384px;
  padding: 25px;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.contact-map h2 {
  color: #191c1e;
  font-size: 24px;
  font-weight: 500;
}

.contact-map p {
  margin-top: 8px;
  color: #414755;
  font-size: 14px;
}

.contact-map a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--contact-blue-dark);
  font-size: 16px;
}

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

  .contact-info {
    padding-bottom: 0;
  }
}

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

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

  .contact-hero p {
    font-size: 16px;
  }

  .contact-content {
    padding: 64px 0 36px;
  }

  .contact-form,
  .contact-map > div {
    padding: 28px 24px;
  }

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

@media (max-width: 440px) {
  .contact-info__list article {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
  }

  .contact-info__list article > span {
    width: 48px;
    height: 48px;
  }

  .contact-map > div {
    right: 18px;
    left: 18px;
    bottom: 18px;
  }
}
