/* Contacts page */

.page--contact .page-main--surface,
.page--contacts .page-main--surface,
.page-main--surface {
  overflow: visible !important;
}

.page--contact .page-main--surface,
.page--contacts .page-main--surface {
  min-height: auto;
}

.page--contact .contact-page,
.page--contacts .contact-page,
.page--contact .page__content,
.page--contacts .page__content,
.page--contact .page-content,
.page--contacts .page-content,
.page--contact .page > .container,
.page--contacts .page > .container {
  position: relative;
  z-index: 2;
}

.contact-page,
.page--contacts .page,
.page--contact .page {
  color: #5a3b27;
}

.contact-page__intro,
.contacts-intro {
  max-width: 740px;
  margin-bottom: 34px;
  font-size: 18px;
  line-height: 1.5;
}

.contact-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 26px;
  align-items: start;
}

.contact-card,
.contacts-card,
.contact-section,
.contacts-section,
.faq,
.contact-faq {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 14px 34px rgba(88, 53, 24, .08);
}

.contact-card + .contact-card,
.contacts-card + .contacts-card,
.contact-section + .contact-section,
.contacts-section + .contacts-section {
  margin-top: 18px;
}

.page--contact h1,
.page--contacts h1,
.page--contact h2,
.page--contacts h2,
.contact-page h1,
.contact-page h2 {
  margin: 0 0 16px;
  color: #3a281c;
  font-weight: 600;
  line-height: 1.1;
}

.page--contact h1,
.page--contacts h1,
.contact-page h1 {
  font-size: 42px;
}

.page--contact h2,
.page--contacts h2,
.contact-page h2 {
  font-size: 28px;
}

.page--contact .page-main p,
.page--contacts .page-main p,
.contact-page .page-main p {
  margin: 0 0 12px;
  color: #5a3b27;
  font-size: 16px;
  line-height: 1.55;
}

.page--contact .page-main a,
.page--contacts .page-main a,
.contact-page .page-main a {
  color: #3a281c;
  font-weight: 600;
  text-decoration: none;
}

.page--contact .page-main a:hover,
.page--contacts .page-main a:hover,
.contact-page .page-main a:hover {
  color: #ff5a08;
}

.contact-socials,
.contacts-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-socials a,
.contacts-socials a,
.contact-button,
.contacts-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #3a281c;
  box-shadow: 0 10px 24px rgba(88, 53, 24, .08);
}

.contact-socials a:hover,
.contacts-socials a:hover,
.contact-button:hover,
.contacts-button:hover {
  background: #ff5a08;
  color: #fff;
}

.page--contact details,
.page--contacts details,
.contact-page details {
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(88, 53, 24, .06);
  overflow: visible;
}

.page--contact details + details,
.page--contacts details + details,
.contact-page details + details {
  margin-top: 12px;
}

.page--contact summary,
.page--contacts summary,
.contact-page summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #3a281c;
  font-weight: 600;
  list-style: none;
}

.page--contact summary::-webkit-details-marker,
.page--contacts summary::-webkit-details-marker,
.contact-page summary::-webkit-details-marker {
  display: none;
}

.page--contact details p,
.page--contacts details p,
.contact-page details p {
  padding: 0 20px 18px;
}

/* если после переносов остался старый div.page внутри body */
body.page--contact > .page,
body.page--contacts > .page {
  background: transparent;
}

@media (max-width: 900px) {
  .contact-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .page--contact h1,
  .page--contacts h1,
  .contact-page h1 {
    font-size: 34px;
  }

  .page--contact h2,
  .page--contacts h2,
  .contact-page h2 {
    font-size: 24px;
  }
}

@media (max-width: 620px) {
  .contact-card,
  .contacts-card,
  .contact-section,
  .contacts-section,
  .faq,
  .contact-faq {
    padding: 22px;
    border-radius: 22px;
  }

  .contact-socials,
  .contacts-socials {
    flex-direction: column;
  }
}
