/* Контакты Sibirtest — премиальный дизайн по аналогии с главной страницей, v2026-02-19-02 */

/* Жёсткий reset возможных глобальных ломающих стилей только на странице контактов */
body.page-id-10 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
}

body.page-id-10, html {
  overflow-x: visible;
}

/* =============================================
   CONTACTS HERO BANNER
   ============================================= */
.contacts-hero {
  position: relative;
  background: linear-gradient(135deg, #4bae50 0%, #2e7d32 60%, #1b5e20 100%);
  padding: 50px 0 60px;
  overflow: hidden;
  margin-bottom: 0;
}

.contacts-hero__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.contacts-hero__wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 80px;
}

.contacts-hero__breadcrumbs {
  margin-bottom: 14px;
}

.contacts-hero__breadcrumbs .breacrumps-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.contacts-hero__breadcrumbs .breacrumps-item a,
.contacts-hero__breadcrumbs .breacrumps-item span {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  text-decoration: none;
}

.contacts-hero__breadcrumbs .breacrumps-item a:hover { color: #fff; }

.contacts-hero__title {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.contacts-hero__subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

.contacts-hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contacts-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contacts-hero__btn--primary {
  background: #fff;
  color: #2e7d32;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.contacts-hero__btn--primary:hover {
  background: #f1f8e9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #2e7d32;
  text-decoration: none;
}

.contacts-hero__btn--outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
}

.contacts-hero__btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* =============================================
   QUICK CONTACTS CARDS
   ============================================= */
.contacts-quick {
  background: #fff;
  padding: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}

.contacts-quick .container {
  padding-top: 0;
  padding-bottom: 0;
}

.contacts-quick__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid #f0f4f0;
  transition: background 0.2s;
}

.contacts-quick .col-lg-3:last-child .contacts-quick__card {
  border-right: none;
}

.contacts-quick__card:hover { background: #f7fbf7; }

.contacts-quick__icon {
  width: 56px;
  height: 56px;
  background: #f0f9f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.contacts-quick__label {
  font-size: 12px;
  color: #90a4ae;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  font-weight: 600;
}

.contacts-quick__value {
  font-size: 15px;
  font-weight: 600;
  color: #37474f;
  text-decoration: none;
}

a.contacts-quick__value:hover {
  color: #4bae50;
  text-decoration: none;
}

/* =============================================
   MAIN CONTENT — используем класс .contacts-page на <main>
   ============================================= */
.contacts-page {
  background-color: #f5faf5;
  padding-bottom: 0;
}

.contacts-page .right__content-contact {
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.contacts-page .right__content-contact .content-caption__img {
  width: 40px;
  height: 40px;
  margin-right: 14px;
}

.contacts-page .right__content-contact .content-caption__h2 {
  font-size: 22px;
  font-weight: 600;
  margin-right: auto;
}

.contacts-page .contact-print { font-size: 13px; }

.contacts-page .contact-print a {
  color: #4bae50;
  text-decoration: none;
}

.contacts-page .contact-print a:hover { text-decoration: underline; }

.contacts-page .right__content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.06);
  padding: 18px 22px 22px;
}

.contacts-page .right__content-no-border {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  padding: 18px 20px 22px;
}

.contacts-page .breacrumps {
  margin-top: 16px;
  margin-bottom: 6px;
}

/* Хлебные крошки в основном контенте страницы контактов — темный текст на белом фоне */
.contacts-page .breacrumps .breacrumps-item a,
.contacts-page .breacrumps .breacrumps-item span {
  color: #546e7a !important;
}

.contacts-page .breacrumps .breacrumps-item a:hover {
  color: #4bae50 !important;
  text-decoration: underline !important;
}

.contacts-page table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.contacts-page table td,
.contacts-page table th {
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
}

.contacts-page table th {
  background-color: #4bae50;
  color: #ffffff;
  font-weight: 600;
}

.contacts-page table tr:nth-child(even) td { background-color: #f7fbf7; }

.contacts-page .right__content p {
  font-size: 14px;
  line-height: 1.6;
}

.contacts-page .right__content strong { color: #2e7d32; }

/* =============================================
   TRUST NUMBERS BLOCK
   ============================================= */
.contacts-trust {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  padding: 40px 0;
  margin-top: 40px;
}

.contacts-trust__item {
  text-align: center;
  padding: 10px 0;
}

.contacts-trust__number {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.contacts-trust__label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* =============================================
   OFFICES SECTION
   ============================================= */
.contacts-offices {
  background: #f5faf5;
  padding: 50px 0 60px;
}

.contacts-section__title {
  font-size: 26px;
  font-weight: 700;
  color: #37474f;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.contacts-section__line {
  display: inline-block;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #4bae50, #2e7d32);
  border-radius: 2px;
  flex-shrink: 0;
}

.contacts-office-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  padding: 24px 22px 22px;
  margin-bottom: 24px;
  transition: box-shadow 0.25s, transform 0.25s;
  border-top: 3px solid #4bae50;
}

.contacts-office-card:hover {
  box-shadow: 0 14px 36px rgba(75,174,80,0.15);
  transform: translateY(-3px);
}

.contacts-office-card__city {
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 14px;
}

.contacts-office-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #546e7a;
  margin-bottom: 8px;
}

.contacts-office-card__row svg { flex-shrink: 0; }
.contacts-office-card__row a { color: #546e7a; text-decoration: none; }
.contacts-office-card__row a:hover { color: #4bae50; }

.contacts-office-card__email {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: #4bae50;
  text-decoration: none;
  font-weight: 500;
}

.contacts-office-card__email:hover {
  text-decoration: underline;
  color: #2e7d32;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1199px) {
  .contacts-hero__title { font-size: 28px; }
}

@media (max-width: 991px) {
  .contacts-quick__card {
    border-right: none;
    border-bottom: 1px solid #f0f4f0;
    padding: 20px 16px;
  }
  .contacts-quick .col-lg-3:last-child .contacts-quick__card { border-bottom: none; }
  .contacts-trust__number { font-size: 32px; }
}

@media (max-width: 767px) {
  .contacts-hero { padding: 36px 0 44px; }
  .contacts-hero__title { font-size: 24px; }
  .contacts-hero__subtitle { font-size: 14px; margin-bottom: 20px; }
  .contacts-hero__btn { padding: 11px 20px; font-size: 14px; }

  .contacts-quick__card {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    padding: 16px 14px;
    border-bottom: 1px solid #f0f4f0;
  }
  .contacts-quick__icon { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; }

  .contacts-trust { padding: 30px 0; }
  .contacts-trust__number { font-size: 28px; }
  .contacts-trust__label { font-size: 12px; }

  .contacts-offices { padding: 36px 0 40px; }
  .contacts-section__title { font-size: 20px; margin-bottom: 20px; }

  .contacts-office-card {
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-top: 3px solid #4bae50;
    border-bottom: 1px solid #e8f5e9;
    margin-bottom: 0;
  }

  .contacts-page { padding-top: 10px; }

  .contacts-page .right__content,
  .contacts-page .right__content-no-border {
    border-radius: 0;
    box-shadow: none;
    padding: 14px 12px 20px;
  }

  .contacts-page .right__content-contact {
    border-radius: 0;
    box-shadow: none;
    padding: 12px 12px 10px;
  }

  .contacts-page .right__content-contact .content-caption__h2 { font-size: 18px; }

  /* === Исправление изображений штрих-кода и метро на мобильных === */
  .contacts-page .right__content img,
  .contacts-page .right__content-no-border img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Специфичные стили для изображений штрих-кода и метро */
  .contacts-page .right__content img[alt*="штрих"],
  .contacts-page .right__content img[alt*="QR"],
  .contacts-page .right__content img[alt*="qr"],
  .contacts-page .right__content img[alt*="метро"],
  .contacts-page .right__content img[alt*="metro"],
  .contacts-page .right__content img[src*="qr"],
  .contacts-page .right__content img[src*="barcode"],
  .contacts-page .right__content img[src*="metro"],
  .contacts-page .right__content-no-border img[alt*="штрих"],
  .contacts-page .right__content-no-border img[alt*="QR"],
  .contacts-page .right__content-no-border img[alt*="qr"],
  .contacts-page .right__content-no-border img[alt*="метро"],
  .contacts-page .right__content-no-border img[alt*="metro"],
  .contacts-page .right__content-no-border img[src*="qr"],
  .contacts-page .right__content-no-border img[src*="barcode"],
  .contacts-page .right__content-no-border img[src*="metro"] {
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    margin: 10px auto !important;
  }

  /* Общие стили для всех изображений в контенте контактов на мобильных */
  .contacts-page .right__content p img,
  .contacts-page .right__content-no-border p img,
  .contacts-page .right__content td img,
  .contacts-page .right__content-no-border td img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* === Исправление хлебных крошек на мобильных === */
  .contacts-page .breacrumps,
  .contacts-hero__breadcrumbs {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 0 12px !important;
  }

  .contacts-page .breacrumps-list,
  .contacts-hero__breadcrumbs .breacrumps-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 12px !important;
    gap: 2px !important;
  }

  .contacts-page .breacrumps-item,
  .contacts-hero__breadcrumbs .breacrumps-item {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .contacts-page .breacrumps-item a,
  .contacts-page .breacrumps-item span,
  .contacts-hero__breadcrumbs .breacrumps-item a,
  .contacts-hero__breadcrumbs .breacrumps-item span {
    font-size: 12px !important;
    padding: 2px 4px !important;
    white-space: nowrap !important;
  }

  /* === Карусель на мобильных === */
  .contacts-page .carousel,
  .contacts-page .owl-carousel,
  .contacts-page .slick-slider {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .contacts-page .carousel img,
  .contacts-page .owl-carousel img,
  .contacts-page .slick-slider img {
    max-width: 100% !important;
    height: auto !important;
  }
}
