/* Страница контактов — тот же приём, что у режима обслуживания */

.ms-contact {
  position: relative;
  padding-bottom: 36px;
}

.ms-contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 16px;
  right: 16px;
  top: 52px;
  bottom: 8px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, color-mix(in srgb, var(--ms-catalog-bg, #C1569C) 20%, transparent), transparent 62%),
    radial-gradient(ellipse 60% 45% at 100% 80%, color-mix(in srgb, var(--links, #3498DB) 22%, transparent), transparent 58%),
    linear-gradient(165deg, rgba(247, 249, 252, 0.2) 0%, rgba(238, 243, 249, 0.55) 100%);
  pointer-events: none;
}

.ms-contact > .breadcrumb,
.ms-contact > #content,
.ms-contact > .row {
  position: relative;
  z-index: 1;
}

.ms-contact__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
  padding: 32px 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(7, 29, 55, 0.06);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(7, 29, 55, 0.04),
    0 18px 48px rgba(7, 29, 55, 0.08);
  animation: ms-contact-in 0.5s ease-out both;
}

.ms-contact__hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #071d37;
}

.ms-contact__lead {
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(7, 29, 55, 0.72);
}

.ms-contact__hero-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  color: var(--links, #3498DB);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--links, #3498DB) 12%, #fff),
    color-mix(in srgb, var(--ms-catalog-bg, #C1569C) 10%, #fff)
  );
  border-radius: 50%;
}

.ms-contact__hero-mark svg {
  display: block;
  animation: ms-contact-float 3.2s ease-in-out infinite;
}

@keyframes ms-contact-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ms-contact-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.ms-contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ms-contact__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(7, 29, 55, 0.06);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(7, 29, 55, 0.04), 0 10px 28px rgba(7, 29, 55, 0.05);
}

.ms-contact__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  color: var(--links, #3498DB);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--links, #3498DB) 12%, #fff),
    color-mix(in srgb, var(--ms-catalog-bg, #C1569C) 10%, #fff)
  );
  border-radius: 50%;
}

.ms-contact__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(7, 29, 55, 0.45);
}

.ms-contact__store {
  margin-bottom: 4px;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #071d37;
}

.ms-contact__value {
  font-size: 1rem;
  line-height: 1.5;
  color: #071d37;
}

.ms-contact__phone,
.ms-contact__mail {
  font-weight: 700;
  line-height: 1.35;
  color: var(--links, #3498DB);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ms-contact__phone {
  font-size: 1.12rem;
}

.ms-contact__phone + .ms-contact__phone {
  margin-top: 4px;
}

.ms-contact__mail {
  font-size: 1rem;
}

.ms-contact__phone:hover,
.ms-contact__phone:focus,
.ms-contact__mail:hover,
.ms-contact__mail:focus,
.ms-contact__route:hover,
.ms-contact__route:focus {
  color: var(--ms-catalog-bg, #C1569C);
  outline: none;
}

.ms-contact__extra {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(7, 29, 55, 0.62);
}

.ms-contact__photo {
  width: 100%;
  max-height: 140px;
  margin-bottom: 12px;
  object-fit: contain;
  border-radius: 12px;
  background: #f4f7fb;
}

.ms-contact__note {
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(7, 29, 55, 0.75);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
}

.ms-contact__socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(7, 29, 55, 0.06);
  border-radius: 16px;
}

.ms-contact__socials .ms-contact__label {
  margin: 0;
}

.ms-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 8px;
}

.ms-contact__layout--solo {
  grid-template-columns: minmax(0, 720px);
}

.ms-contact__map-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(7, 29, 55, 0.06);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(7, 29, 55, 0.04), 0 18px 48px rgba(7, 29, 55, 0.06);
}

.ms-contact__map {
  flex: 1 1 auto;
  min-height: 340px;
  overflow: hidden;
  border-radius: 14px;
  background: #eef3f9;
}

.ms-contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.ms-contact__route {
  display: inline-flex;
  align-items: center;
  margin: 10px 8px 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--links, #3498DB);
  text-decoration: none;
}

.ms-contact__form {
  padding: 28px 26px 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(7, 29, 55, 0.06);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(7, 29, 55, 0.04),
    0 18px 48px rgba(7, 29, 55, 0.08);
}

.ms-contact__form h2,
.ms-contact__stores-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #071d37;
}

.ms-contact__stores-title {
  margin-top: 22px;
}

.ms-contact__field {
  margin-bottom: 14px;
}

.ms-contact__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #071d37;
}

.ms-contact__field--required label::after {
  content: " *";
  color: var(--ms-catalog-bg, #C1569C);
}

.ms-contact .form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(7, 29, 55, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  color: #071d37;
}

.ms-contact textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.ms-contact .form-control:focus {
  border-color: var(--links, #3498DB);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--links, #3498DB) 18%, transparent);
  outline: none;
}

.ms-contact .text-danger {
  margin-top: 6px;
  font-size: 13px;
}

.ms-contact__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(7, 29, 55, 0.72);
  font-weight: 400;
}

.ms-contact__agree input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.ms-contact__form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

@media (max-width: 860px) {
  .ms-contact__layout,
  .ms-contact__layout--solo {
    grid-template-columns: 1fr;
  }

  .ms-contact__hero {
    padding: 24px 20px;
  }

  .ms-contact__hero-mark {
    display: none;
  }
}

@media (max-width: 640px) {
  .ms-contact::before {
    left: 0;
    right: 0;
    border-radius: 0;
  }

  .ms-contact__cards {
    grid-template-columns: 1fr;
  }

  .ms-contact__form {
    padding: 22px 16px 18px;
  }

  .ms-contact__map,
  .ms-contact__map iframe {
    min-height: 260px;
  }
}

@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
  .ms-contact::before {
    background: linear-gradient(165deg, #f7f9fc 0%, #eef3f9 100%);
  }

  .ms-contact__hero-mark,
  .ms-contact__ico {
    background: #eef6fc;
  }

  .ms-contact .form-control:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.18);
  }
}
