/* ============================================================
   СТИЛИ: Страница «Контакты»
   Файл: contacts-page.css
   Версия: 1.0
   ============================================================ */

/* ---------- Сброс ограничений Reboot ---------- */
body.page-template-page-contacts .site-content.fixed {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
body.page-template-page-contacts .site-content {
  background: transparent;
  padding-top: 0;
}
body.page-template-page-contacts .site-content-inner {
  display: block;
  max-width: 100%;
}

/* ---------- Контейнер ---------- */
.contacts-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}
.contacts-container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* ---------- Hero ---------- */
.contacts-hero {
  background: linear-gradient(135deg, #2d7a4e 0%, #1a5c3a 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.contacts-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 .75rem;
}
.contacts-hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  opacity: .9;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Main grid ---------- */
.contacts-main {
  padding: 3rem 0;
}
.contacts-main__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

/* ---------- Форма ---------- */
.contacts-form-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem;
}

/* Honeypot */
.contacts-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contacts-form__field {
  margin-bottom: 1.25rem;
}
.contacts-form__field label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #444;
  margin-bottom: .35rem;
}
.contacts-form__field .required {
  color: #d32f2f;
}
.contacts-form__field input,
.contacts-form__field select,
.contacts-form__field textarea {
  width: 100%;
  padding: .7rem .9rem;
  font-size: .95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  font-family: inherit;
}
.contacts-form__field input:focus,
.contacts-form__field select:focus,
.contacts-form__field textarea:focus {
  outline: none;
  border-color: #2d7a4e;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
}
.contacts-form__field textarea {
  resize: vertical;
  min-height: 120px;
}
.contacts-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}

/* Consent */
.contacts-form__consent {
  margin-bottom: 1.25rem;
}

/* Submit */
.contacts-form__submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #2d7a4e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.contacts-form__submit:hover {
  background: #339058;
}
.contacts-form__submit:active {
  transform: scale(.98);
}
.contacts-form__submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Status */
.contacts-form__status {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 6px;
  font-size: .9rem;
  display: none;
}
.contacts-form__status.success {
  display: block;
  background: #e8f5e9;
  color: #2d7a4e;
  border: 1px solid #c8e6c9;
}
.contacts-form__status.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* ---------- Контактная информация ---------- */
.contacts-info h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.25rem;
}

.contacts-info__card {
  background: #f5f8f0;
  border: 1px solid #d5e6c8;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.contacts-info__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
}
.contacts-info__item:last-child {
  margin-bottom: 0;
}
.contacts-info__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.contacts-info__label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}
.contacts-info__item a {
  color: #2d7a4e;
  text-decoration: none;
  font-weight: 500;
}
.contacts-info__item a:hover {
  text-decoration: underline;
}

/* Response time */
.contacts-info__response {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: #555;
}
.contacts-info__response svg {
  flex-shrink: 0;
}
.contacts-info__response p {
  margin: 0;
}

/* Quick links */
.contacts-info__links {
  margin-bottom: 1.25rem;
}
.contacts-info__links h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #444;
  margin: 0 0 .5rem;
}
.contacts-info__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contacts-info__links li {
  margin-bottom: .4rem;
}
.contacts-info__links a {
  color: #2d7a4e;
  text-decoration: none;
  font-size: .9rem;
}
.contacts-info__links a:hover {
  text-decoration: underline;
}

/* Social */
.contacts-info__social h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #444;
  margin: 0 0 .5rem;
}
.contacts-info__social-links {
  display: flex;
  gap: .75rem;
}
.contacts-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f8f0;
  border: 1px solid #d5e6c8;
  transition: background .2s;
}
.contacts-social-link:hover {
  background: #e8f5e9;
}

/* ---------- Реквизиты ---------- */
.contacts-operator {
  padding: 2.5rem 0 3rem;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
}
.contacts-operator h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
}
.contacts-operator__card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
}
.contacts-operator__card p {
  margin: 0 0 .4rem;
  font-size: .9rem;
}
.contacts-operator__card p:last-child {
  margin-bottom: 0;
}
.contacts-operator__card a {
  color: #2d7a4e;
  text-decoration: none;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 768px) {
  .contacts-main__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contacts-hero {
    padding: 2rem 0 1.75rem;
  }
}

@media (max-width: 480px) {
  .contacts-form__submit {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Печать ---------- */
@media print {
  .contacts-form-wrap,
  .contacts-info__social {
    display: none;
  }
}
