/* ============================================================
   belhs-extra.css — дополнительные стили для MODX-версии
   ООО «БелГидроСтрой»
   ============================================================ */

/* Шрифт */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* Базовые переменные */
:root {
  --navy: #173A63;
  --blue: #0095DA;
  --teal: #19A7A8;
  --bg-light: #F5F7FA;
  --border-color: rgba(23, 58, 99, 0.1);
  --muted: #6B7280;
  --dark: #222222;
}

html {
  font-family: 'Manrope', system-ui, sans-serif;
  color: #222222;
}

/* ── Состояния хедера ──────────────────────────────────────── */
#belhs-header.header-transparent {
  background: transparent;
  box-shadow: none;
}
#belhs-header.header-solid {
  background: #ffffff;
  box-shadow: 0 1px 0 0 rgba(23, 58, 99, 0.1);
}

/* Тёмный top bar (на главной до скролла) */
#belhs-top-bar.top-bar-dark {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(23, 58, 99, 0.6);
}
#belhs-top-bar.top-bar-dark .top-bar-label {
  color: rgba(255, 255, 255, 0.5);
}
#belhs-top-bar.top-bar-dark .top-bar-phone {
  color: rgba(255, 255, 255, 0.7);
}
#belhs-top-bar.top-bar-dark .top-bar-phone:hover {
  color: #ffffff;
}
#belhs-top-bar.top-bar-dark .top-bar-email {
  color: rgba(255, 255, 255, 0.5);
}
#belhs-top-bar.top-bar-dark .top-bar-email:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Светлый top bar (при скролле или на внутренних страницах) */
#belhs-top-bar.top-bar-light {
  border-color: rgba(23, 58, 99, 0.1);
  background: #F5F7FA;
}
#belhs-top-bar.top-bar-light .top-bar-label {
  color: #6B7280;
}
#belhs-top-bar.top-bar-light .top-bar-phone {
  color: #173A63;
}
#belhs-top-bar.top-bar-light .top-bar-phone:hover {
  color: #0095DA;
}
#belhs-top-bar.top-bar-light .top-bar-email {
  color: #6B7280;
}
#belhs-top-bar.top-bar-light .top-bar-email:hover {
  color: #0095DA;
}

/* Лого в прозрачном хедере — белое */
.header-transparent .header-logo {
  filter: brightness(0) invert(1);
}
.header-solid .header-logo {
  filter: none;
}
.header-transparent .header-logo-text {
  color: #ffffff;
}
.header-solid .header-logo-text {
  color: #173A63;
}

/* Nav links */
.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.8);
}
.header-transparent .nav-link:hover {
  color: #ffffff;
}
.header-transparent .nav-link-active {
  color: #19A7A8;
}
.header-solid .nav-link {
  color: #222222;
}
.header-solid .nav-link:hover {
  color: #0095DA;
}
.header-solid .nav-link-active {
  color: #0095DA;
}

/* Mobile button */
.header-transparent .nav-mobile-btn {
  color: #ffffff;
}
.header-solid .nav-mobile-btn {
  color: #173A63;
}

/* ── Анимация прокрутки вниз ──────────────────────────────── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Страница с хедером (внутренние страницы) ─────────────── */
.page-inner main,
.page-production main,
.page-objects main,
.page-contacts main {
  padding-top: 108px;
}

/* ── Плавное появление элементов ─────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Скроллбар — скрытый для фильтров ────────────────────── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Карта на странице контактов ──────────────────────────── */
.contacts-map iframe {
  border: none;
  width: 100%;
  height: 400px;
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .contacts-layout > .contacts-info,
  .contacts-layout > .contacts-map-list {
    display: contents;
  }

  .contacts-address { grid-column: 1 / span 5; grid-row: 1; }
  .contacts-requisites { grid-column: 1 / span 5; grid-row: 2; }
  .contacts-map-belgorod { grid-column: 6 / span 7; grid-row: 1; }
  .contacts-map-kaluga { grid-column: 6 / span 7; grid-row: 2; margin-top: 0; }

  .contacts-map-card {
    display: flex;
    flex-direction: column;
  }

  .contacts-map-card .contacts-map {
    display: flex;
    flex: 1;
  }

  .contacts-map-card .contacts-map iframe {
    flex: 1;
    height: auto;
    min-height: 400px;
  }
}

/* ── Форма ────────────────────────────────────────────────── */
.belhs-form input,
.belhs-form textarea,
.belhs-form select {
  outline: none;
  transition: border-color 0.2s;
}
.belhs-form input:focus,
.belhs-form textarea:focus,
.belhs-form select:focus {
  border-color: #0095DA;
}

/* ── Страница продукта — характеристики ──────────────────── */
.product-spec-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #173A63;
  background: #E8EFF8;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.625rem 1rem;

    background-color: #173A63;
    color: #fff;

    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    text-decoration: none;

    border-radius: 2px;

    transition: background-color 150ms ease;
}

.btn-download:hover {
    background-color: #0095DA;
}
.btn-download::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;

    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.content-image-link {
    display: inline-block;
    width: auto;
    max-width: 100%;
    vertical-align: top;
    line-height: 0;
    margin: 0.5rem 0;
}

.content-image-link img {
    display: block;
    max-width: 100%;
    height: auto;
}
.product-gallery {
    width: 100%;
}


/* Большая фотография */

.product-gallery-main {
    width: 100%;
    margin-bottom: 12px;
}

.product-gallery-main .swiper-slide {
    height: auto;
}

.product-gallery-zoom {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.product-gallery-main img {
    display: block;
    width: 100%;
    height: auto;
}


/* Миниатюры */

.product-gallery-thumbs {
    width: 100%;
}

.product-gallery-thumbs .swiper-slide {
    width: 76px;
    height: 58px;
    box-sizing: border-box;

    border: 1px solid transparent;
    background: #fff;

    opacity: .5;
    cursor: pointer;

    transition:
        opacity .2s ease,
        border-color .2s ease;
}

.product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #173A63;
}

.product-gallery-thumbs img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    padding: 2px;
}
.objects-pagination {
    margin-top: 40px;
}

.objects-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.objects-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.objects-pagination a,
.objects-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;
    padding: 0 12px;

    border: 1px solid #D8E0E8;
    border-radius: 2px;

    background: #fff;
    color: #173A63;

    font-size: 14px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}

.objects-pagination a:hover {
    color: #fff;
    background: #0095DA;
    border-color: #0095DA;
}

.objects-pagination .active span {
    color: #fff;
    background: #173A63;
    border-color: #173A63;
}

.objects-pagination .prev a,
.objects-pagination .next a {
    font-size: 22px;
    font-weight: 400;
}
.client-item {
    cursor: default;
}

.client-logo {
    transition: transform 0.35s ease;
    transform: scale(1);
    transform-origin: center;
    will-change: transform;
}

.client-item:hover .client-logo {
    transform: scale(1.15);
}

.belhs-hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.belhs-hero-signature {
    display: inline-flex;
    align-items: flex-end;
    align-self: flex-end;
    gap: 12px;
    max-width: 100%;
    margin: 0;
    color: #F7FCFF;
    font: italic 400 34px/1.1 Georgia, "Times New Roman", serif;
    text-align: right;
    text-shadow: 0 2px 12px rgba(15, 39, 68, 0.3);
}

.belhs-hero-signature__rule {
    flex: 0 0 36px;
    height: 1px;
    margin-bottom: 0.32em;
    background: #19A7A8;
}

.belhs-hero-signature__dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-bottom: 0.18em;
    border-radius: 50%;
    background: #19A7A8;
    animation: belhs-hero-dot-pulse 3.2s ease-in-out infinite;
}

@keyframes belhs-hero-dot-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

@media (min-width: 1280px) {
    .belhs-hero-content {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .belhs-hero-content > :first-child {
        min-width: 0;
    }

    .belhs-hero-signature {
        flex-shrink: 0;
        margin-bottom: 8px;
        font-size: 44px;
        white-space: nowrap;
    }
}

@media (max-width: 639px) {
    .belhs-hero-signature {
        gap: 8px;
        font-size: 30px;
    }

    .belhs-hero-signature__rule {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .belhs-hero-signature__dot {
        animation: none;
    }
}
