.page-contacts {
  background: var(--page-canvas);
}

.page-contacts main {
  padding: 16px 0 34px;
  min-width: 0;
}

.page-contacts .site-breadcrumb {
  margin: 8px 0 18px;
}

/* Спокойная "бизнес/о нас" шапка вместо яркого градиента */
.contact-header {
  margin: 0 0 20px;
  padding: clamp(22px, 3.5vw, 34px) clamp(18px, 3vw, 34px);
  border-radius: 18px;
  background: var(--hero-card-bg);
  border: 1px solid var(--hero-card-border);
  box-shadow: var(--hero-card-shadow);
}

.contact-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.contact-header p {
  margin: 0;
  max-width: 70rem;
  color: var(--text-muted-strong);
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(36px, 4.5vw, 52px);
  align-items: stretch;
}

.contact-section {
  min-width: 0;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(25, 25, 50, 0.04);
  padding: 20px;
}

.contact-title {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-border);
}

.contact-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.contact-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dbe4f5;
  background: #f8fbff;
  color: #24407d;
  white-space: normal;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.contact-quick-btn:hover {
  transform: translateY(-1px);
  border-color: #c2d3f7;
  background: #f0f5ff;
  box-shadow: 0 6px 14px rgba(34, 85, 245, 0.12);
}

.contact-quick-btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.contact-quick-btn--primary {
  background: linear-gradient(145deg, #2255f5, #1a44cf);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 85, 245, 0.24);
}

.contact-quick-btn--primary:hover {
  background: linear-gradient(145deg, #1f4fe8, #173db8);
}

.contact-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--hero-card-bg);
}

.contact-item + .contact-item {
  margin-top: 8px;
}

.contact-item--action {
  position: relative;
}

.contact-item--action::after {
  content: "\f054";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca9c9;
  font-size: 0.72rem;
  opacity: 0.9;
  pointer-events: none;
}

.contact-item--action:hover {
  border-color: #ccd9f3;
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
}

.contact-item--action:focus-within {
  border-color: #9eb8f4;
  box-shadow: 0 0 0 3px rgba(34, 85, 245, 0.12);
}

.contact1-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #edf2ff;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.contact-text h3 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--primary);
}

.contact-text p,
.contact-text a {
  margin: 0;
  color: #313957;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.4;
}

.contact-item--action .contact-text a {
  display: inline-flex;
  align-items: center;
  width: calc(100% - 18px);
  font-weight: 600;
}

.contact-text a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.business-hours p + p {
  margin-top: 4px;
}

.business-hours p strong {
  color: var(--primary);
  font-weight: 700;
}

.map-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.map-buttons-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
}

.contact-map {
  flex: 1 1 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  min-height: 280px;
  box-shadow: 0 4px 14px rgba(25, 25, 50, 0.04);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Кнопки карт — нейтральнее, но сохраняем брендинг */
.map-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(25, 25, 50, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.map-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.google-btn { background: linear-gradient(135deg, #4285f4, #34a853); }
.yandex-btn { background: linear-gradient(135deg, #f24f4f, #df4a4a); }
.gis-btn { background: linear-gradient(135deg, #47b37f, #3ea376); }

/* Оставляем исходный блок формы, но приводим по "карточке" к about/business */
.callback-form-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto clamp(36px, 4.5vw, 52px);
  padding: 0 20px;
}

@media (max-width: 1280px) {
  .callback-form-container {
    padding: 0 15px;
  }
}

.contact-callback-shell {
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft-card);
  padding: 22px;
}

.callback-form-container .section-title {
  font-size: clamp(1.32rem, 2.3vw, 1.88rem);
  text-align: left;
}

.callback-form-container .section-title::after {
  left: 0;
  transform: none;
}

.callback-form-container .section-subtitle {
  margin: 0 0 18px;
  text-align: left;
  max-width: 100%;
  font-size: 0.98rem;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .contact-quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-header,
  .contact-section,
  .contact-callback-shell {
    border-radius: 14px;
    padding: 16px;
  }

  .contact-title {
    font-size: 1.04rem;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }

  .contact-quick-actions {
    grid-template-columns: 1fr;
  }

  .map-buttons {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 240px;
  }
}
