/* Общий блок #contacts + форма для внутренних страниц (не главная).
   Разметка: include/page_contacts.php → section.page-contacts */

.page-contacts {
  --blue: #34b4d9;
  --blue-2: #1e9fc4;
  --brown: #c4a574;
  --ink: #111;
  --muted: #6b6b6b;
  padding: 56px 0 72px;
}

.page-contacts .contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  align-items: stretch;
  background: var(--blue);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(52, 180, 217, .22);
  min-height: 640px;
}

/* Bitrix AJAX-обёртка #comp_* — белый фон правой колонки */
.page-contacts .contact > *:not(.contact-info) {
  background: #fff;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.page-contacts .contact-info {
  padding: 44px 40px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-contacts .contact-info:before,
.page-contacts .contact-info:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-contacts .contact-info:before {
  width: 280px;
  height: 280px;
  right: -90px;
  top: -100px;
  background: rgba(255, 255, 255, .12);
}

.page-contacts .contact-info:after {
  width: 160px;
  height: 160px;
  left: -50px;
  bottom: 18%;
  background: rgba(196, 165, 116, .28);
}

.page-contacts .contact-info > * {
  position: relative;
  z-index: 1;
}

.page-contacts .contact-info .page-kicker {
  color: rgba(232, 195, 106, .95);
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-contacts .contact-info h2 {
  margin: 0 0 12px;
  color: #fff !important;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.page-contacts .contact-info .offer {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  max-width: 36ch;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
}

.page-contacts .contact-info .nap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.page-contacts .contact-info .nap > .nap-item:first-child {
  grid-column: 1 / -1;
}

.page-contacts .nap-item,
.page-contacts a.nap-item,
.page-contacts a.nap-item:hover,
.page-contacts a.nap-item:focus {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}

.page-contacts .nap-item:hover,
.page-contacts a.nap-item:hover {
  opacity: .88;
  color: #fff;
}

.page-contacts a.nap-item:hover span:not(.nap-ico) {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #fff;
}

.page-contacts .nap-item small {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}

.page-contacts .nap-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 1px rgba(196, 165, 116, .5);
}

.page-contacts .nap-ico svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Иконки с fill-path (офис/телефон) — белая заливка */
.page-contacts .nap-ico svg path[d*="M12 21"],
.page-contacts .nap-ico svg path[d*="M6.5 4.5"],
.page-contacts .nap-ico svg circle {
  fill: #fff;
  stroke: none;
}

.page-contacts .reqs {
  margin-top: 22px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
}

.page-contacts .reqs h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232, 195, 106, .95) !important;
}

.page-contacts .reqs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.page-contacts .reqs-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.page-contacts .reqs-grid p b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 2px;
}

.page-contacts .reqs .reqs-addr {
  margin-top: 10px;
  grid-column: 1 / -1;
}

.page-contacts .contact-visual {
  margin-top: auto;
  padding-top: 24px;
}

.page-contacts .contact-visual img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(17, 17, 17, .18);
}

.page-contacts .contact-form,
.page-contacts .ask-form {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 44px 40px 36px;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-contacts .form-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.3;
  margin: 0;
}

.page-contacts .form-title {
  margin-top: 8px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-contacts .form-lead {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  max-width: none;
}

.page-contacts .contact-form .field,
.page-contacts .ask-form .field {
  margin-top: 12px;
}

.page-contacts .contact-form .field label,
.page-contacts .ask-form .field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.page-contacts .contact-form .field input,
.page-contacts .contact-form .field textarea,
.page-contacts .ask-form .field input,
.page-contacts .ask-form .field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid #7b7b7b;
  border-radius: 0;
  padding: 10px 0;
  font: 500 15px/1.3 Montserrat, sans-serif;
  background: transparent;
  color: var(--ink);
  display: block;
}

.page-contacts .contact-form .field textarea,
.page-contacts .ask-form .field textarea {
  min-height: 80px;
  resize: vertical;
}

.page-contacts .contact-form .field input:focus,
.page-contacts .contact-form .field textarea:focus,
.page-contacts .ask-form .field input:focus,
.page-contacts .ask-form .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
  box-shadow: none;
}

.page-contacts .contact-form .field input[type=file],
.page-contacts .ask-form .field input[type=file] {
  border: 0;
  padding: 8px 0;
  font-size: 13px;
  cursor: pointer;
}

.page-contacts .file-hint,
.page-contacts .form-legal {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.page-contacts .form-legal a,
.page-contacts .form-legal a:hover,
.page-contacts .form-legal a:focus {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-contacts .contact-form .btn,
.page-contacts .ask-form .btn,
.page-contacts .contact-form .btn:hover,
.page-contacts .ask-form .btn:hover {
  width: 100%;
  margin-top: 18px;
  min-height: 52px;
  box-shadow: 0 10px 22px rgba(52, 180, 217, .28);
  color: #fff;
}

.page-contacts .contact-form .err,
.page-contacts .ask-form .err {
  color: #b91c1c;
  font-size: 13px;
  display: none;
  margin-top: 8px;
}

.page-contacts .contact-form .ok,
.page-contacts .ask-form .ok {
  display: none;
  margin-top: 12px;
  background: #ecfdf3;
  color: #166534;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

.page-contacts .contact-form .ok.show,
.page-contacts .ask-form .ok.show {
  display: block;
}

.page-contacts .hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

@media (max-width: 980px) {
  .page-contacts .contact {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .page-contacts .contact-info,
  .page-contacts .contact-form,
  .page-contacts .ask-form {
    padding: 32px 24px;
  }

  .page-contacts .contact-info .nap,
  .page-contacts .reqs-grid {
    grid-template-columns: 1fr;
  }

  .page-contacts .contact-visual img {
    height: 140px;
  }
}

@media (max-width: 560px) {
  .page-contacts {
    padding: 48px 0 56px;
  }

  .page-contacts .contact-info,
  .page-contacts .contact-form,
  .page-contacts .ask-form {
    padding: 28px 18px;
  }

  .page-contacts .contact-visual,
  .page-contacts .contact-visual img {
    min-height: 180px;
  }
}
