body {
    height: 100%;
    margin: 0;
    padding-right: 0px !important;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

#page {
    overflow-x: hidden;
    max-width: 100%;
}

#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main {
    flex: 1;
}

.ui-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
}
img{
    max-width: 100%;
    height: auto;
}
/*HEADER STYLES*/
#footer .ajax-progress,
#header .ajax-progress {
    display: none;
}

.header-bottom {
    background: #ccc;
}

.toolbar .toolbar-tab .toolbar-icon {
    padding: 0.75em 1.5em 0.75em 2.5em;
}
.path-admin .messages--error {
    display: none;
}
/* *** contextual-region *** */
.contextual-region .contextual {
    display: none;
    top: -8px;
    right: 8px;
}

.contextual-region .contextual-region .contextual {
    top: 8px;
}

.contextual-region:hover .contextual {
    display: block;
}

.contextual-region .contextual .trigger {
    width: 22px !important;
    height: 22px !important;
    background-size: 14px 14px;
}

.cart-block--summary .cart-block--summary__count {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    background: #ccc;
    color: #fff;
    top: -3px;
    right: -9px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 500;
}

#header-mob {
    top: 0;
    width: 100%;
    background: #d9d9d9;
    color: #000;
    padding: 5px 5px;
    z-index: 50;
}

#header-mob.toolbar-horizontal #header-mob {
    top: 0;
}

#header-mob > * {
    padding: 0 10px;
}

#header-mob a {
    color: #000;
}

.offcanvas {
    --bs-offcanvas-bg: #d9d9d9;
}

.offcanvas .offcanvas-title {
    color: #000;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 500;
}

.region-navigation .nav > .nav-item:hover .dropdown-menu {
    display: block;
    top: 100%;
    left: 0;
}


/*HEADER STYLES*/

/* SLICK STYLES */
.region-slider .view-content:not(.slick-initialized) .views-row {
    display: none;
}

.region-slider .view-content:not(.slick-initialized) .views-row:first-child {
    display: block;
}

div#slider-block .view.view-slayder.view-id-slayder .view-content .node--type-slide .content {
    position: absolute;
    top: 0;
    bottom: calc(1vw + 12px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.slick-prev, .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: calc(50% - 10px);
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
}

button.slick-prev.slick-arrow {
    left: 25px;
}

button.slick-next.slick-arrow {
    right: 25px;
}

ul.slick-dots {
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 10px 0;
}

ul.slick-dots li button {
    background: #686868;
    border-radius: 50%;
    border: none;
    padding: 0;
    width: 10px;
    font-size: 0;
    height: 10px;
    display: block;
}

ul.slick-dots li button::before {
    display: none;
}

ul.slick-dots li.slick-active button {
    background: #272727;
}

button.slick-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

button.slick-arrow::before {
    content: '';
    display: block;
    position: relative;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    font-size: 0;
}

button.slick-prev.slick-arrow::before {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow-top.svg");
    transform: rotate(-90deg);
}

button.slick-next.slick-arrow::before {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow-top.svg");
    transform: rotate(90deg);
}

#scrollToTop {
    width: 48px;
    height: 48px;
    background: none;
    text-indent: 0;
    font-size: 0;
    border: 0px;
    outline: 0px;
    display: flex;
    bottom: 30px;
    cursor: pointer;
    position: fixed;
    right: 25px;
    z-index: 10;
    transition: 0.2s;
    padding: 0;
}

/* ==============================================
   ПЛАВАЮЩИЕ КНОПКИ СОЦСЕТЕЙ
   ============================================== */

.floating-social {
    position: fixed;
    right: 25px;
    bottom: 200px; /* выше scrollToTop */
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-social__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
    flex-shrink: 0;
}

.floating-social__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(12, 74, 110, 0.3);
    opacity: 0.9;
}

.floating-social__btn img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
}

/* ==============================================
   COOKIE DISCLAIMER
   ============================================== */

.vpa-container {
    position: fixed;
    bottom: 463px;
    right: 0;
    z-index: 50;
    pointer-events: none;
}

.vpa-wrapper {
    width: 740px;
    min-height: 79px;
    background: #dff0fb !important;
    border-radius: 16px 0 0 16px; /* скругление только слева, прижат к правому краю */
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px 16px 24px;
    box-shadow: 0 4px 20px rgba(12, 74, 110, 0.12);
    pointer-events: auto;
    box-sizing: border-box;
}

/* Скрываем close-zone */
.vpa-close-zone {
    display: none;
}

/* --- Текст --- */
.vpa-content {
    flex: 1;
}

.vpa-content p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    line-height: 125%;
    color: #000;
    margin: 0;
}

.vpa-content a {
    color: #000;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.vpa-content a:hover {
    color: #0ea5e9;
}

/* --- Кнопка «Принять» --- */
.vpa-actions {
    flex-shrink: 0;
}

#vpa-btn-ok {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #ffffff !important;
    background: #0ea5e9 !important;
    border: none !important;
    border-radius: 80px !important;
    padding: 15px 30px !important;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none !important;
    transition: background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

#vpa-btn-ok:hover {
    background: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4) !important;
    transform: translateY(-1px);
}

/* Анимация появления */
.vpa-wrapper.vpa-slide {
    animation: vpaSlideIn 0.4s ease;
}

@keyframes vpaSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Скрытое состояние */
.vpa-wrapper.vpa-hidden {
    display: none;
}

#vpa-btn-ok {
    font-size: 0 !important; /* скрываем оригинальный текст */
}

#vpa-btn-ok::after {
    content: 'Принять';
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

/* ==============================================
   COOKIE DISCLAIMER — ADAPTIVE
   ============================================== */

@media (max-width: 1199px) {
    .vpa-container {
        bottom: 300px;
    }

    .vpa-wrapper {
        width: 620px;
        min-height: 72px;
        gap: 16px;
        padding: 14px 18px 14px 20px;
    }

    .vpa-content p {
        font-size: 12px;
    }

    #vpa-btn-ok {
        padding: 13px 24px !important;
    }

    #vpa-btn-ok::after {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .vpa-container {
        bottom: 180px;
    }

    .vpa-wrapper {
        width: 460px;
        min-height: 68px;
        gap: 14px;
        padding: 12px 16px 12px 18px;
        border-radius: 14px 0 0 14px;
    }

    .vpa-content p {
        font-size: 11px;
    }

    #vpa-btn-ok {
        padding: 12px 20px !important;
    }

    #vpa-btn-ok::after {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .vpa-container {
        bottom: 100px;
        left: 12px;
        right: 12px;
    }

    .vpa-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        border-radius: 14px; /* убираем "прижатость" к краю, т.к. отступы теперь по бокам */
    }

    .vpa-content p {
        font-size: 12px;
        text-align: left;
    }

    .vpa-actions {
        width: 100%;
    }

    #vpa-btn-ok {
        width: 100%;
        padding: 13px 24px !important;
    }
}

@media (max-width: 576px) {
    .vpa-container {
        bottom: 0;
        left: 0;
        right: 0;
    }

    .vpa-wrapper {
        width: 100%;
        min-height: auto;
        border-radius: 16px 16px 0 0; /* скругление сверху, прижат к низу экрана */
        padding: 14px 16px;
        gap: 10px;
        box-shadow: 0 -4px 16px rgba(12, 74, 110, 0.15);
    }

    .vpa-content p {
        font-size: 11px;
        line-height: 130%;
    }

    #vpa-btn-ok {
        padding: 12px 20px !important;
    }

    #vpa-btn-ok::after {
        font-size: 14px;
    }

    @keyframes vpaSlideIn {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* SLICK STYLES */

/* PRODUCT PAGE STYLES*/
.product-teaser {
    display: flex;
    gap: 50px;
}

.product-teaser .product-teaser-image {
    max-width: 500px;
}

.product-teaser .product-teaser-image .field.field--name-field-variation-image.field--type-image .elements .current-slide.slick-initialized.slick-slider {
    margin: 0 0 10px;
}

.product-teaser .product-teaser-image .field.field--name-field-variation-image.field--type-image .elements .current-slide.slick-initialized.slick-slider .slick-list.draggable .slick-track .element.slick-slide img {
    max-width: 500px;
    min-width: 500px;
    max-height: 500px;
    min-height: 500px;
    object-fit: cover;
}

.product-teaser .product-teaser-image .field.field--name-field-variation-image.field--type-image .elements .nav-slide.slick-initialized.slick-slider .slick-list.draggable {
    margin: 0 -5px;
}

.product-teaser .product-teaser-image .field.field--name-field-variation-image.field--type-image .elements .nav-slide.slick-initialized.slick-slider .slick-list.draggable .slick-track .element.slick-slide {
    margin: 0 5px;
    max-width: 118px;
    min-width: 118px;
    max-height: 118px;
    min-height: 118px;
}

.product-teaser .product-teaser-image .field.field--name-field-variation-image.field--type-image .elements .nav-slide.slick-initialized.slick-slider .slick-list.draggable .slick-track .element.slick-slide img {
    max-width: 118px;
    min-width: 118px;
    max-height: 118px;
    min-height: 118px;
    object-fit: cover;
}

.product-teaser .product-teaser-info {
    max-width: 500px;
}

.product-view-full button.slick-prev.slick-arrow {
    left: -25px;
}

.product-view-full button.slick-next.slick-arrow {
    right: -25px;
}


.node--view-mode-full .field--name-body img {
    margin: 0 10px;
}

/* =============================================
   @font-face — IBM Plex Sans & Manrope
   ============================================= */

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../font/Manrope-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* =============================================
   :root — CSS-переменные шрифтов
   ============================================= */

:root {
    --font-primary: 'IBM Plex Sans', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
}

body {
    font-family: var(--font-primary);
}

/* =============================================
   HEADER STYLES
   ============================================= */

/* ---------- Header Top ---------- */
#header .header-top {
    background-color: #ffffff;
    padding: 12px 0 !important;
}

#header .header-top > .container > .d-flex {
    gap: 32px;
    align-items: center !important;
}

/* --- Лого --- */
#header .logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 200px;
}

#header .logo-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 36px;
    color: #0c4a6e;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#header .logo-subtitle {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 15px;
    color: #0c4a6e;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#header .logo-link:hover .logo-title,
#header .logo-link:hover .logo-subtitle {
    color: #0ea5e9;
}

/* --- Адрес и график --- */
#header .col-address {
    gap: 4px;
    flex-shrink: 0;
}

#header .col-address .address {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #0c4a6e;
    white-space: nowrap;
}

#header .col-address .work-hours {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #0c4a6e;
    white-space: nowrap;
}

/* --- Иконки мессенджеров --- */
#header .col-messengers {
    gap: 8px !important;
    flex-shrink: 0;
}

#header .messenger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

#header .messenger-icon:hover {
    opacity: 0.85;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.25);
}

#header .messenger-icon img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    display: block;
}

/* --- Телефон и почта --- */
#header .col-contacts {
    gap: 3px;
    flex-shrink: 0;
}

#header .col-contacts .tel {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 20px;
    color: #0c4a6e;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#header .col-contacts .tel:hover {
    color: #0ea5e9;
}

#header .col-contacts .mail {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #0c4a6e;
    text-decoration: none;
    transition: color 0.2s ease;
}

#header .col-contacts .mail:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

/* --- Кнопка заявки --- */
#header .col-callback {
    flex-shrink: 0;
}

#header .col-callback .btn-primary,
#header .col-callback a.btn-primary {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%);
    border: none;
    color: #ffffff;
    border-radius: 80px;
    padding: 15px 27px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

#header .col-callback .btn-primary:hover,
#header .col-callback a.btn-primary:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ==============================================
   Header Bottom
   ============================================== */
#header .header-bottom {
    background: #e0f3fc;
    padding: 0 !important;
}

#header .header-bottom > .container > .d-flex {
    align-items: stretch !important;
}

/* --- Навигация --- */
#header .region-navigation {
    flex: 1;
    display: flex;
    align-items: stretch;
}

#header .region-navigation nav,
#header .region-navigation .block {
    display: flex;
    align-items: stretch;
    width: 100%;
}

#header .region-navigation .nav {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

#header .region-navigation .nav-item {
    display: flex;
    align-items: stretch;
}

#header .region-navigation .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 18px;
    color: #0c4a6e;
    text-decoration: none;
    /* padding по вертикали задаёт высоту строки ~66px */
    padding: 21px 25px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: background-color 0.2s ease,
    color 0.2s ease,
    border-bottom-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

#header .region-navigation .nav-link:hover {
    color: #0ea5e9;
    background-color: rgba(14, 165, 233, 0.1);
    border-bottom-color: #0ea5e9;
}

/* Каталог — синяя плашка слева */
#header .region-navigation .nav-item:first-child .nav-link {
    background: #0ea5e9;
    color: #ffffff;
    padding: 21px 20px;
    font-weight: 500;
    font-size: 18px;
    gap: 20px;
    border-bottom: none !important;
}

#header .region-navigation .nav-item:first-child .nav-link:hover {
    background: #0284c7;
    color: #ffffff;
    border-bottom: none !important;
}

/* Иконка-гамбургер у Каталога */
#header .region-navigation .nav-item:first-child .nav-link::before {
    content: '';
    display: inline-block;
    width: 35px;
    height: 35px;
    background-image: url('/sites/all/themes/vesta_theme/image/toc.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* ==============================================
   Поиск — иконка с раскрывающимся полем
   ============================================== */
#header .col-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 8px;
    position: relative; /* якорь для абсолютного поля */
}

#header .col-search .region-search,
#header .col-search .search-api-page-block-form-search,
#header .col-search form {
    display: flex;
    align-items: center;
    position: static;
}

/* Кнопка-иконка поиска */
#header .col-search .search-form__submit {
    order: 2;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#header .col-search .search-form__submit:hover {
    background-color: rgba(12, 74, 110, 0.1) !important;
    transform: scale(1.1);
}

#header .col-search .search-form__submit::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('/sites/all/themes/vesta_theme/image/zoom.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(20%) sepia(60%) saturate(600%) hue-rotate(180deg);
}

/* Поле ввода — абсолютное, скрыто по умолчанию */
#header .col-search .form-search {
    order: 1;
    position: absolute;
    top: 50%;
    right: 46px; /* отступ от иконки */
    transform: translateY(-50%);
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0 !important;
    border: 2px solid transparent !important;
    outline: none !important;
    background: #ffffff !important;
    color: #0c4a6e !important;
    font-family: var(--font-primary) !important;
    font-size: 15px !important;
    height: 36px;
    border-radius: 8px !important;
    box-shadow: none !important;
    z-index: 9;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    padding 0.35s ease;
}

#header .col-search .form-search::placeholder {
    color: #7ab3cc;
}

/* Открытое состояние */
#header .col-search.search-open .form-search {
    width: 280px;
    opacity: 1;
    pointer-events: auto;
    padding: 0 12px !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25) !important;
}

/* Drupal-обёртки */
#header .col-search .js-form-item,
#header .col-search .form-actions {
    display: contents;
}

#header .col-search label.visually-hidden {
    display: none;
}

/* ==============================================
   PROMO BLOCK
   ============================================== */

/* Внешняя обёртка — на всю ширину экрана */
.promo-block {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Container внутри — только для контента */
.promo-block > .container {
    position: relative;
    z-index: 2;
}

/* Блок региона */
.promo-block .region-promo {
    position: relative;
}

/* --- Фоновое изображение — на всю ширину, выходит за container --- */
.promo-block .field--name-field-promo-back-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.promo-block .field--name-field-promo-back-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* --- Внутренний блок поверх изображения --- */
.promo-block #block-vesta-theme-promo-block {
    position: relative;
    z-index: 2;
    padding: 130px 0 130px;
}

/* Поднимаем весь контент поверх абсолютной картинки */
.promo-block .field--name-field-promo-title,
.promo-block .field--name-field-benefits,
.promo-block .promo_btn {
    position: relative;
    z-index: 3;
}

/* --- Заголовок H1 --- */
.promo-block .field--name-field-promo-title h1 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 58px;
    color: #0c4a6e;
    text-transform: uppercase;
    margin: 0 0 50px 0;
    max-width: 562px;
}

/* --- Блок преимуществ --- */
.promo-block .field--name-field-benefits {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 50px;
    flex-wrap: nowrap;
}

.promo-block .field--name-field-benefits .field__item {
    flex: 0 0 auto;
}

/* Один пункт преимущества */
.promo-block .paragraph--type--benefits {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    max-width: 157px;
}

/* Иконка преимущества */
.promo-block .paragraph--type--benefits .field--name-field-benefit-image img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    filter: invert(40%) sepia(80%) saturate(400%) hue-rotate(180deg) brightness(90%);
}

/* Текст преимущества */
.promo-block .paragraph--type--benefits .field--name-field-benefit-text {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: #0c4a6e;
}

/* --- Кнопки --- */
.promo-block .promo_btn {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Общие стили для обеих кнопок */
.promo-block .promo_btn a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 80px;
    padding: 15px 55px;
    display: inline-block;
    white-space: nowrap;
    transition: box-shadow 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.promo-block .promo_btn a:hover {
    transform: translateY(-2px);
}

/* Кнопка «В каталог» — синяя */
.promo-block .field--name-field-promo-link a {
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%);
    color: #ffffff;
}

.promo-block .field--name-field-promo-link a:hover {
    background-color: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
    color: #ffffff;
}

/* Кнопка «Рассчитать стоимость» — тёмная */
.promo-block .field--name-field-promo-link-two a {
    background-color: #0c4a6e;
    color: #ffffff;
}

.promo-block .field--name-field-promo-link-two a:hover {
    background-color: #0c2a47;
    border-color: #0c2a47;
    box-shadow: 0 6px 18px rgba(12, 74, 110, 0.4);
    color: #ffffff;
}

/* ==============================================
   CATALOG BLOCK
   ============================================== */

.catalog-block {
    padding: 50px 0 80px;
    background-color: #ffffff;
}

/* --- Заголовок --- */
.catalog-block .block-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    text-align: center;
    margin: 0 0 30px 0;
}

/* --- Сетка карточек --- */
.catalog-block .view-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 40px;
}

/* --- Одна карточка --- */
.catalog-block .views-row {
    display: flex;
}

.catalog-block .taxonomy-term--view-mode-teaser {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 17px 16px;
    background-color: #ffffff;
    border: 1.17px solid rgba(0, 0, 0, 0.5);
    border-radius: 9px;
    text-align: center;
    gap: 17px;
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
    cursor: pointer;
}

.catalog-block .taxonomy-term--view-mode-teaser:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 20px rgba(12, 74, 110, 0.15);
    transform: translateY(-2px);
}

/* --- Изображение логотипа --- */
.catalog-block .field--name-field-catalog-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100%;
}

.catalog-block .field--name-field-catalog-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.catalog-block .field--name-field-catalog-image img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.catalog-block .taxonomy-term--view-mode-teaser:hover .field--name-field-catalog-image img {
    transform: scale(1.05);
}

/* --- Название бренда --- */
.catalog-block .field--name-taxonomy-term-title {
    width: 100%;
}

.catalog-block .field--name-taxonomy-term-title h2 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 23px;
    color: #0c4a6e;
    margin: 0;
    text-align: center;
}

.catalog-block .field--name-taxonomy-term-title h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-block .field--name-taxonomy-term-title h2 a:hover {
    color: #0ea5e9;
}

/* --- Кнопка «Все производители» --- */
.catalog-block .more-link {
    text-align: center;
    margin-top: 8px;
}

.catalog-block .more-link a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%);
    border-radius: 80px;
    padding: 15px 40px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.catalog-block .more-link a:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%);
    box-shadow: 0 6px 20px rgba(12, 74, 110, 0.45);
    transform: translateY(-2px);
}

/* ==============================================
   СТРАНИЦА /catalog — стили как на главной
   ============================================== */

.view-catalog.view-display-id-page {
    padding: 0px 0 80px;
}

/* --- Заголовок страницы --- */
.path--catalog #block-vesta-theme-page-title h1 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    text-align: center;
    margin: 0 0 30px 0;
}

/*!* Скрываем системные табы *!*/
/*.path--catalog #block-vesta-theme-tabs {*/
/*    display: none;*/
/*}*/

/* --- Сетка карточек --- */
.view-catalog.view-display-id-page .view-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 40px;
}

/* --- Одна карточка --- */
.view-catalog.view-display-id-page .views-row {
    display: flex;
}

.view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 17px 16px;
    background-color: #ffffff;
    border: 1.17px solid rgba(0, 0, 0, 0.5);
    border-radius: 9px;
    text-align: center;
    gap: 17px;
    cursor: pointer;
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 20px rgba(12, 74, 110, 0.15);
    transform: translateY(-2px);
}

/* --- Изображение логотипа --- */
.view-catalog.view-display-id-page .field--name-field-catalog-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100%;
}

.view-catalog.view-display-id-page .field--name-field-catalog-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.view-catalog.view-display-id-page .field--name-field-catalog-image img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser:hover
.field--name-field-catalog-image img {
    transform: scale(1.05);
}

/* --- Название бренда --- */
.view-catalog.view-display-id-page .field--name-taxonomy-term-title {
    width: 100%;
}

.view-catalog.view-display-id-page .field--name-taxonomy-term-title h2 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 18px;
    color: #0c4a6e;
    margin: 0;
    text-align: center;
}

.view-catalog.view-display-id-page .field--name-taxonomy-term-title h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-catalog.view-display-id-page .field--name-taxonomy-term-title h2 a:hover {
    color: #0ea5e9;
}

/* ==============================================
   SERVICES BLOCK
   ============================================== */

.services-block {
    padding: 0px 0 80px;
    background-color: #ffffff;
}

/* --- Заголовок --- */
.services-block .block-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    text-align: center;
    margin: 0 0 30px 0;
}

/* --- Сетка: 2 карточки в ряд --- */
.services-block .view-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.services-block .views-row {
    display: flex;
}

/* --- Статья-карточка --- */
.services-block .node--type-service {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

/* Скрываем лишнее от Drupal */
.services-block .node--type-service > h2,
.services-block .node__meta,
.services-block .node__links {
    display: none;
}

/* --- Изображение --- */
.services-block .field--name-field-service-img {
    display: block;
    width: 100%;
    line-height: 0;
}

.services-block .field--name-field-service-img a {
    display: block;
    width: 100%;
}

.services-block .field--name-field-service-img img {
    width: 100%;
    height: 311px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.services-block .node--type-service:hover .field--name-field-service-img img {
    transform: scale(1.04);
}

.services-block .field--name-field-service-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    max-width: 65%;
}

.services-block .field--name-field-service-text a {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(14, 165, 233, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 10px 40px 10px 10px;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.services-block .node--type-service:hover .field--name-field-service-text a {
    background: rgba(12, 74, 110, 0.82);
    box-shadow: 0 4px 16px rgba(12, 74, 110, 0.35);
    transform: translateY(-2px);
}

.services-block .field--name-field-service-text {
    max-width: none;
}

.services-block .field--name-field-service-text a {
    width: 380px;
    min-height: 82px;
    box-sizing: border-box;

    display: flex;
    align-items: center;

    line-height: 1.2;
}

.services-block .view-content .views-row:nth-child(1) .field--name-field-service-text a {
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
}

.services-block .view-content .views-row:nth-child(2) .field--name-field-service-text a {
    justify-content: flex-start;
    text-align: left;
    padding: 15px 40px 15px 25px;
}

/* ==============================================
   СТРАНИЦА /services — стили как на главной
   ============================================== */

.view-services.view-display-id-page_1 {
    padding: 0px 0 80px;
}

/* --- Заголовок страницы --- */
.view-services.view-display-id-page_1 ~ #block-vesta-theme-page-title h1,
#block-vesta-theme-page-title h1 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    text-align: center;
    margin: 0 0 30px 0;
}

/* --- Сетка: 2 карточки в ряд --- */
.view-services.view-display-id-page_1 .view-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.view-services.view-display-id-page_1 .views-row {
    display: flex;
}

/* --- Статья-карточка --- */
.view-services.view-display-id-page_1 .node--type-service {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

/* Скрываем лишнее от Drupal */
.view-services.view-display-id-page_1 .node--type-service > h2,
.view-services.view-display-id-page_1 .node__meta,
.view-services.view-display-id-page_1 .node__links {
    display: none !important;
}

/* --- Изображение --- */
.view-services.view-display-id-page_1 .field--name-field-service-img {
    display: block;
    width: 100%;
    line-height: 0;
}

.view-services.view-display-id-page_1 .field--name-field-service-img a {
    display: block;
    width: 100%;
}

.view-services.view-display-id-page_1 .field--name-field-service-img img {
    width: 100%;
    height: 311px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.view-services.view-display-id-page_1 .node--type-service:hover
.field--name-field-service-img img {
    transform: scale(1.04);
}

/* --- Подпись поверх изображения --- */
.view-services.view-display-id-page_1 .field--name-field-service-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    max-width: none;
}

.view-services.view-display-id-page_1 .field--name-field-service-text a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(14, 165, 233, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    width: 380px;
    min-height: 82px;
    box-sizing: border-box;
    line-height: 1.2;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.view-services.view-display-id-page_1 .node--type-service:hover
.field--name-field-service-text a {
    background: rgba(12, 74, 110, 0.82);
    box-shadow: 0 4px 16px rgba(12, 74, 110, 0.35);
    transform: translateY(-2px);
}

/* Первая карточка — текст по центру */
.view-services.view-display-id-page_1 .view-content .views-row:nth-child(1)
.field--name-field-service-text a {
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
}

/* Вторая карточка — текст слева */
.view-services.view-display-id-page_1 .view-content .views-row:nth-child(2)
.field--name-field-service-text a {
    justify-content: flex-start;
    text-align: left;
    padding: 15px 40px 15px 25px;
}

/* ==============================================
   ВНУТРЕННЯЯ СТРАНИЦА УСЛУГИ
   .node--type-service.node--view-mode-full
   ============================================== */

/* --- Отступы страницы --- */
.node--type-service.node--view-mode-full {
    padding: 0px 0 60px;
}

/*!* --- Скрываем табы и мета --- *!*/
/*.node--type-service.node--view-mode-full ~ #block-vesta-theme-tabs,*/
/*#block-vesta-theme-tabs {*/
/*    display: none;*/
/*}*/

.node--type-service.node--view-mode-full .node__meta {
    display: none;
}

/* --- Заголовок H1 --- */
#block-vesta-theme-page-title h1 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 36px;
    color: #0c4a6e;
    margin: 0 0 32px 0;
}

/* --- Лейаут: левая + правая --- */
.node--type-service.node--view-mode-full .node__content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* --- Левая колонка — изображение --- */
.node--type-service.node--view-mode-full .service_left {
    flex: 0 0 540px;
    width: 540px;
}

.node--type-service.node--view-mode-full .service_left .field--name-field-service-img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.node--type-service.node--view-mode-full .service_left .field--name-field-service-img a {
    display: block;
    width: 100%;
}

.node--type-service.node--view-mode-full .service_left .field--name-field-service-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.node--type-service.node--view-mode-full .service_left:hover
.field--name-field-service-img img {
    transform: scale(1.03);
}

/* --- Правая колонка — текст --- */
.node--type-service.node--view-mode-full .service_right {
    flex: 1;
    padding-top: 8px;
}

.node--type-service.node--view-mode-full .service_right .field--name-field-service-text-page {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: #2d3748;
}

/* ==============================================
   ABOUT BLOCK
   ============================================== */

.about-block {
    padding: 0px 0 80px;
    background-color: #ffffff;
}

/* --- Заголовок --- */
.about-block .field--name-field-about-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    text-align: center;
}

/* --- Двухколоночный лейаут --- */
#block-vesta-theme-block-about {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px;
}

/* Заголовок — на всю ширину сверху */
#block-vesta-theme-block-about .field--name-field-about-title {
    width: 100%;
    flex-shrink: 0;
}

/* --- Левая колонка — изображение --- */
.about-block .about_left {
    flex: 0 0 auto;
    width: calc(50% - 24px);
}

.about-block .about_left img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

/* --- Правая колонка — текст --- */
.about-block .about_right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- Текстовый блок --- */
.about-block .field--name-field-about-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #0c4a6e;
    max-width: 553px;
}

/* Параграфы */
.about-block .field--name-field-about-text p {
    margin: 0 0 16px 0;
}

.about-block .field--name-field-about-text p:last-of-type {
    margin-bottom: 0;
}

/* Жирный абзац (третий span с "Популярность...") */
.about-block .field--name-field-about-text p span:last-child {
    font-weight: 500;
    color: #0c4a6e;
}

/* Маркированный список */
.about-block .field--name-field-about-text ul {
    margin: 16px 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-block .field--name-field-about-text ul li {
    position: relative;
    padding-left: 18px;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: #2d3748;
}

.about-block .field--name-field-about-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #0c4a6e;
    font-size: 16px;
}

/* --- Кнопка «Подробнее» --- */
.about-block .field--name-field-about-btn {
    margin-top: 10px;
}

.about-block .field--name-field-about-btn a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%);
    border-radius: 80px;
    padding: 14px 40px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.about-block .field--name-field-about-btn a:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%);
    box-shadow: 0 6px 20px rgba(12, 74, 110, 0.4);
    transform: translateY(-2px);
}

/* ==============================================
   PHOTOGALLERY BLOCK
   ============================================== */

.photogallery-block {
    padding: 0px 0 80px;
    background-color: #ffffff;
}

/* --- Заголовок --- */
.photogallery-block .block-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    text-align: center;
    margin: 0 0 25px 0;
}

/* --- Сетка: 4 колонки --- */
.photogallery-block .view-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 30px;
    margin-bottom: 30px;
}

.photogallery-block .views-row {
    display: flex;
}

/* --- Карточка --- */
.photogallery-block .node--type-photogallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

/* Скрываем лишнее от Drupal */
.photogallery-block .node--type-photogallery > h2,
.photogallery-block .node__meta,
.photogallery-block .node__links {
    display: none !important;
}

/* --- Изображение --- */
.photogallery-block .field--name-field-photogallery-cover {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
}

.photogallery-block .field--name-field-photogallery-cover a {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1; /* квадрат */
}

.photogallery-block .field--name-field-photogallery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

.photogallery-block .node--type-photogallery:hover .field--name-field-photogallery-cover img {
    transform: scale(1.05);
}

/* --- Заголовок карточки --- */
.photogallery-block .node__content {
    order: 1;
}

.photogallery-block .node--type-photogallery h2 {
    display: block !important;
    order: 2;
    margin: 0;
}

.photogallery-block .node--type-photogallery h2 a {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #0c4a6e;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    max-width: 222px;
}

.photogallery-block .node--type-photogallery h2 a:hover {
    color: #006097;
}

/* --- Кнопка «Смотреть все работы» --- */
.photogallery-block .more-link {
    text-align: center;
}

.photogallery-block .more-link a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%);
    border-radius: 80px;
    padding: 15px 40px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.photogallery-block .more-link a:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%);
    box-shadow: 0 6px 20px rgba(12, 74, 110, 0.4);
    transform: translateY(-2px);
}

/* ==============================================
   СТРАНИЦА /photogallerys — как на главной
   ============================================== */

.view-photogallerys.view-display-id-page_1 {
    padding: 0px 0 60px;
}

/* --- Заголовок страницы --- */
#block-vesta-theme-page-title h1 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    text-align: center;
    margin: 0 0 25px 0;
}

/* --- Сетка: 4 колонки --- */
.view-photogallerys.view-display-id-page_1 .view-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 30px;
    margin-bottom: 30px;
}

.view-photogallerys.view-display-id-page_1 .views-row {
    display: flex;
}

/* --- Карточка --- */
.view-photogallerys.view-display-id-page_1 .node--type-photogallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    cursor: pointer;
}

/* Скрываем лишнее от Drupal */
.view-photogallerys.view-display-id-page_1 .node--type-photogallery > h2,
.view-photogallerys.view-display-id-page_1 .node__meta,
.view-photogallerys.view-display-id-page_1 .node__links {
    display: none !important;
}

/* --- Изображение --- */
.view-photogallerys.view-display-id-page_1 .field--name-field-photogallery-cover {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
}

.view-photogallerys.view-display-id-page_1 .field--name-field-photogallery-cover a {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
}

.view-photogallerys.view-display-id-page_1 .field--name-field-photogallery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

.view-photogallerys.view-display-id-page_1 .node--type-photogallery:hover
.field--name-field-photogallery-cover img {
    transform: scale(1.05);
}

/* --- Заголовок карточки снизу --- */
.view-photogallerys.view-display-id-page_1 .node__content {
    order: 1;
}

.view-photogallerys.view-display-id-page_1 .node--type-photogallery h2 {
    display: block !important;
    order: 2;
    margin: 0;
}

.view-photogallerys.view-display-id-page_1 .node--type-photogallery h2 a {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #0c4a6e;
    text-decoration: none;
    display: block;
    max-width: 222px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.view-photogallerys.view-display-id-page_1 .node--type-photogallery h2 a:hover {
    color: #0ea5e9;
}

/* ==============================================
   ВНУТРЕННЯЯ СТРАНИЦА ФОТОГАЛЕРЕИ
   .node--type-photogallery.node--view-mode-full
   ============================================== */

/* --- Отступы страницы --- */
.node--type-photogallery.node--view-mode-full {
    padding: 0px 0 60px;
}

/* --- Скрываем табы и мета --- */
.node--type-photogallery.node--view-mode-full .node__meta {
    display: none;
}

/*#block-vesta-theme-tabs {*/
/*    display: none;*/
/*}*/

/* --- Заголовок H1 --- */
#block-vesta-theme-page-title h1 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 36px;
    color: #0c4a6e;
    margin: 0 0 32px 0;
}

/* --- Сетка фотографий --- */
.node--type-photogallery.node--view-mode-full .photoswipe-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Первое фото — крупное, на 2 колонки и 2 строки */
.node--type-photogallery.node--view-mode-full .photoswipe-gallery .field__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* --- Каждый элемент галереи --- */
.node--type-photogallery.node--view-mode-full .photoswipe-gallery .field__item {
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
    background-color: #eaf5fc;
}

.node--type-photogallery.node--view-mode-full .photoswipe-gallery .field__item a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* Остальные фото — квадрат через aspect-ratio */
.node--type-photogallery.node--view-mode-full .photoswipe-gallery .field__item:not(:first-child) a {
    aspect-ratio: 1 / 1;
}

/* --- Изображения --- */
.node--type-photogallery.node--view-mode-full .photoswipe-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    transition: transform 0.35s ease,
    filter 0.3s ease;
}

.node--type-photogallery.node--view-mode-full .photoswipe-gallery .field__item:hover img {
    transform: scale(1.04);
    filter: brightness(0.92);
}

/* Курсор для кликабельных фото */
.node--type-photogallery.node--view-mode-full .photoswipe-gallery .field__item a {
    cursor: zoom-in;
}

/* ==============================================
   FEEDBACK BLOCK
   ============================================== */

.feedback-block {
    padding: 0px 0 0px;
    background-color: #ffffff;
}

/* --- Внешняя карточка --- */
#block-vesta-theme-block-feedback {
    background: #e0f3fc;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 460px;
}

/* --- Левая колонка — текст + форма --- */
.feedback-block .feedback_left {
    flex: 0 0 50%;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Правая колонка — изображение --- */
.feedback-block .feedback_right {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.feedback-block .feedback_right img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* --- Заголовок --- */
.feedback-block .field--name-field-feedback-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    margin: 0;
}

/* --- Подзаголовок --- */
.feedback-block .field--name-field-feedback-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #0c4a6e;
    margin: 0 0 15px 0;
    max-width: 476px;
}

/* --- Форма --- */
.feedback-block .webform-submission-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Поля ввода --- */
.feedback-block .form-control,
.feedback-block input.form-text,
.feedback-block input.form-email {
    font-family: var(--font-primary) !important;
    font-weight: 500;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 80px !important;
    padding: 15px 25px !important;
    height: auto !important;
    width: 100%;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-block .form-control::placeholder,
.feedback-block input.form-text::placeholder,
.feedback-block input.form-email::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.feedback-block .form-control:focus,
.feedback-block input.form-text:focus,
.feedback-block input.form-email:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

/* Убираем внешние отступы Drupal у обёрток полей */
.feedback-block .js-form-item {
    margin: 0 !important;
}

/* --- Кнопка «Отправить заявку» --- */
.feedback-block .webform-actions {
    margin: 4px 0 0 !important;
}

.feedback-block .webform-button--submit {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 20px !important;
    width: 100%;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease !important;
}

.feedback-block .webform-button--submit:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%) !important;
    box-shadow: 0 6px 20px rgba(12, 74, 110, 0.4) !important;
    transform: translateY(-1px);
}

/* --- Чекбокс с политикой --- */
.feedback-block .form-item-privacy {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px !important;
}

/* Сброс нативного вида чекбокса */
.feedback-block .form-item-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin: 2px 0 0 0;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    background-color: #ffffff;
    position: relative;
    transition: border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Галочка при отмеченном состоянии */
.feedback-block .form-item-privacy input[type="checkbox"]:checked {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}

.feedback-block .form-item-privacy input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 14px;
    border: 2.5px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Ошибка — лёгкий красный фон с рамкой */
.feedback-block .form-item-privacy.form-item--error input[type="checkbox"] {
    background-color: rgba(229, 62, 62, 0.15);
    border-color: #e53e3e;
    outline: none;
}

/* --- Текст политики --- */
.feedback-block .form-item-privacy .description,
.feedback-block .form-item-privacy .webform-element-description {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 13px;
    color: #0c4a6e;
    max-width: 418px;
}

.feedback-block .form-item-privacy .webform-element-description span {
    color: inherit;
}

/* --- Скрываем текстовые ошибки Drupal --- */
.feedback-block .alert-error,
.feedback-block .alert-danger,
.feedback-block .form-item--error-message {
    display: none !important;
}

/* --- Подсветка незаполненных полей --- */
.feedback-block .form-control.error,
.feedback-block input.form-text.error,
.feedback-block input.form-email.error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
    background-color: #fff8f8 !important;
}

.feedback-block .form-control.error:focus,
.feedback-block input.form-text.error:focus,
.feedback-block input.form-email.error:focus {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2) !important;
}

/* ==============================================
   CONTACTS BLOCK
   ============================================== */

.contacts-block {
    padding: 80px 0 80px;
    background-color: #ffffff;
}

/* --- Заголовок --- */
.contacts-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 40px;
    color: #0c4a6e;
    text-align: center;
    margin: 0 0 25px 0;
}

/* --- Внутренний лейаут --- */
.contacts-inner {
    align-items: stretch !important;
    gap: 40px !important;
}

/* --- Левая колонка --- */
.contacts-left {
    flex: 0 0 auto;
    width: 402px;
    gap: 18px;
}

/* --- Подзаголовок «Мы находимся:» --- */
.contacts-label {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 24px;
    color: #0c4a6e;
    display: block;
    margin-bottom: 12px;
}

/* --- Строка контакта --- */
.contact-row {
    align-items: flex-start !important;
    gap: 10px !important;
}

/* --- Иконки контактов --- */
.contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: invert(30%) sepia(80%) saturate(400%)
    hue-rotate(180deg) brightness(90%);
}

/* --- Адрес --- */
.contact-address {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 20px;
    color: #0c4a6e;
}

.contact-address-sub {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #0c4a6e;
    margin-top: 3px;
}

/* --- Email --- */
.contact-mail {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 20px;
    color: #0c4a6e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-mail:hover {
    color: #0ea5e9;
}

/* --- Телефон --- */
.contact-tel {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 20px;
    color: #0c4a6e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-tel:hover {
    color: #0ea5e9;
}

/* --- Иконки мессенджеров --- */
.contacts-left .messenger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contacts-left .messenger-icon:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

.contacts-left .messenger-icon img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    display: block;
}

/* --- Правая колонка — карта --- */
.contacts-map {
    flex: 0 0 735px;
    width: 735px;
    height: 388px;
    border-radius: 16px;
    overflow: hidden;
}

/* Скрываем друпал contextual */
.contacts-map .contextual {
    display: none;
}

/* Убираем отступы блока Drupal */
.contacts-map .block,
.contacts-map .region-map,
.contacts-map #block-vesta-theme-yandekskarta-2 {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Контейнер карты */
.contacts-map .mapContainer {
    width: 735px !important;
    height: 388px !important;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Iframe карты */
.contacts-map .mapContainer iframe {
    width: 735px !important;
    height: 388px !important;
    border: none !important;
    display: block;
    border-radius: 16px;
}

/* Подсказка «Для активации» */
.contacts-map .mapHelp {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #0c4a6e;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    pointer-events: none;
}

/* Поле с телом блока — убираем отступы */
.contacts-map .field--name-body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.contacts-map .field--name-body .field__item {
    height: 100%;
}

/* ==============================================
   FOOTER
   ============================================== */

#footer {
    background-color: #0c4a6e;
}

/* --- Верхняя часть --- */
.footer-top {
    padding: 44px 0 0px;
}

.footer-top > .container > .d-flex {
    align-items: flex-start;
    gap: 80px !important;
}

/* ==============================================
   Колонка 1
   ============================================== */
.footer-info {
    flex: 0 0 280px;
    /*gap: 22px;*/
}

/* --- Текстовый лого --- */
.footer-logo-link {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    align-self: flex-start;
    margin-bottom: 50px;
}

.footer-logo-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 36px;
    color: #ffffff;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-logo-link:hover .footer-logo-title {
    color: #0ea5e9;
}

.footer-logo-subtitle {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 15px;
    color: #ffffff;
    display: block;
    transition: color 0.2s ease;
}

.footer-logo-link:hover .footer-logo-subtitle {
    color: #0ea5e9;
}

/* --- Контакты --- */
.footer-contacts {
    gap: 6px;
    margin-bottom: 20px;
}

.footer-tel {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-tel:hover { color: #0ea5e9; }

.footer-mail {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-mail:hover { color: #0ea5e9; }

.footer-address,
.footer-work {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #fff;
}

/* --- Кнопка + мессенджеры --- */
.footer-actions {
    gap: 12px !important;
    align-items: center;
    flex-wrap: nowrap;
}

#footer .col-callback .btn-primary,
#footer .col-callback a.btn-primary {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 2px solid #0ea5e9 !important;
    border-radius: 80px !important;
    padding: 11px 24px !important;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease !important;
}

#footer .col-callback .btn-primary:hover,
#footer .col-callback a.btn-primary:hover {
    background: #0ea5e9 !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

#footer .messenger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#footer .messenger-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

#footer .messenger-icon img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    display: block;
}

/* ==============================================
   Колонки 2 и 3
   ============================================== */
.footer-top .footer-col:not(.footer-info) {
    flex: 0 0 auto;
    min-width: 180px;
}

.footer-col-title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 20px;
    color: #ffffff;
    display: block;
    margin-bottom: 12px;
}

#footer .region-navigation-footer .nav,
#footer .region-services-menu .nav {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 204px;
}

#footer .region-navigation-footer .nav-item,
#footer .region-services-menu .nav-item {
    display: block;
}

#footer .region-navigation-footer .nav-link,
#footer .region-services-menu .nav-link {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    padding: 0;
    display: inline;
    white-space: normal;
    transition: color 0.2s ease;
}

#footer .region-navigation-footer .nav-link:hover,
#footer .region-services-menu .nav-link:hover {
    color: #0ea5e9;
}

/* ==============================================
   Нижняя часть
   ============================================== */
.footer-bottom {
    padding: 40px 0;
}

.footer-bottom > .container > .d-flex {
    align-items: center;
}

.footer-copy {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: #fff;
}

.footer-privacy {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-privacy:hover { color: #0ea5e9; }

.footer-dev {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .footer-actions .btn-primary,
#footer .footer-actions a.btn-primary {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%) !important;
    border: none !important;
    border-radius: 80px !important;
    padding: 15px 27px !important;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease !important;
}

#footer .footer-actions .btn-primary:hover,
#footer .footer-actions a.btn-primary:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.footer-dev:hover { color: #0ea5e9; }

/* ==============================================
   СТРАНИЦА КАТАЛОГА — КАРТОЧКИ ТОВАРОВ
   Исправлено: contextual menu / клик по "карандашу"
   ============================================== */

.view-tovary {
    padding: 0 0 60px;
}

/*!* Скрываем вкладки *!*/
/*#block-vesta-theme-tabs {*/
/*    display: none;*/
/*}*/

/* Заголовок страницы */
#block-vesta-theme-page-title h1 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 36px;
    color: #0c4a6e;
    margin: 30px 0 30px;
}

/* --- Сетка товаров --- */
.view-tovary.view-display-id-page_2 .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.view-tovary.view-display-id-page_2 .views-row {
    display: flex;
    margin: 0;
    min-width: 0;
}

/* --- Карточка товара --- */
.view-tovary.view-display-id-page_2 .product-teaser {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #e0edf5;
    overflow: visible; /* важно: не режем contextual dropdown */
    isolation: isolate; /* чтобы z-index работал предсказуемо */
    cursor: default;
    transition: box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.view-tovary.view-display-id-page_2 .product-teaser:hover {
    box-shadow: 0 6px 20px rgba(12, 74, 110, 0.12);
    border-color: #0ea5e9;
    transform: translateY(-3px);
}

/* --- Contextual menu Drupal --- */
.view-tovary.view-display-id-page_2 .product-teaser .contextual-region,
.view-tovary.view-display-id-page_2 .product-teaser .contextual {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 9999;
    pointer-events: auto;
}

.view-tovary.view-display-id-page_2 .product-teaser .contextual *,
.view-tovary.view-display-id-page_2 .product-teaser .contextual a,
.view-tovary.view-display-id-page_2 .product-teaser .contextual button {
    pointer-events: auto;
}

/* --- Изображение --- */
.view-tovary.view-display-id-page_2 .product-teaser .field--name-field-image-product-view {
    width: 100%;
    line-height: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
    z-index: 1;
}

.view-tovary.view-display-id-page_2 .product-teaser .field--name-field-image-product-view a {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.view-tovary.view-display-id-page_2 .product-teaser .field--name-field-image-product-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.view-tovary.view-display-id-page_2 .product-teaser:hover .field--name-field-image-product-view img {
    transform: scale(1.04);
}

/* --- Блок названия --- */
.view-tovary.view-display-id-page_2 .product-teaser > div:last-child {
    padding: 12px 14px 14px;
    border-top: 1.5px solid #e0edf5;
    position: relative;
    z-index: 1;
}

.view-tovary.view-display-id-page_2 .product-teaser .field--name-title a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: #0c4a6e;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    pointer-events: auto; /* важно: не отключаем клики */
    transition: color 0.2s ease;
}

.view-tovary.view-display-id-page_2 .product-teaser:hover .field--name-title a {
    color: #0ea5e9;
}

/* --- Доп. порядок карточек, если нужен --- */
/* Если правило не нужно — можно удалить */
.view-tovary.view-display-id-page_2 .view-content .views-row {
    order: 2;
}

.view-tovary.view-display-id-page_2 .view-content .views-row:has(a[href="/catalog/kondicionery-haier/hec"]) {
    order: 1;
}

/* ===== 991px — 3 карточки в ряд ===== */
@media screen and (max-width: 991px) {
    .view-tovary.view-display-id-page_2 .view-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== 767px — 2 карточки в ряд ===== */
@media screen and (max-width: 767px) {
    .view-tovary.view-display-id-page_2 .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    #block-vesta-theme-page-title h1 {
        font-size: 30px;
        margin: 24px 0 24px;
    }
}

/* ===== 576px — 1 карточка в ряд ===== */
@media screen and (max-width: 576px) {
    .view-tovary.view-display-id-page_2 .view-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #block-vesta-theme-page-title h1 {
        font-size: 28px;
        margin: 22px 0 22px;
    }
}

/* ==============================================
   СТРАНИЦА ТОВАРА — PRODUCT VIEW FULL
   ============================================== */

.path--product #main,
.product-view-full {
    padding: 0px 0 60px;
}

/*!* Скрываем табы *!*/
/*.path--product #block-vesta-theme-tabs {*/
/*    display: none;*/
/*}*/

/* --- Заголовок H1 --- */
#block-vesta-theme-page-title h1 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 36px;
    color: #0c4a6e;
    margin: 30px 0 30px 0;
}

/* --- Переводим лейаут на CSS Grid --- */
.product-view-full article,
.page-product .product-view-full,
.product-view-full {
    display: grid !important;
    grid-template-columns: 480px 1fr;
    gap: 32px 48px;
    align-items: flex-start;
}

/* --- Левая колонка — изображение --- */
.product-view-full .product_left {
    grid-column: 1;
    width: 480px;
}

.product-view-full .product_left .field--name-field-image-product-view {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #e0edf5;
    background-color: #f4f8fb;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.product-view-full .product_left .field--name-field-image-product-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 24px;
    box-sizing: border-box;
}

/* --- Правая колонка — описание + кнопка --- */
.product-view-full .product_right {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 8px;
}

/* --- Описание --- */
.product-view-full .product_right .field--name-body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #2d3748;
}

.product-view-full .product_right .field--name-body p {
    margin: 0 0 16px 0;
}

.product-view-full .product_right .field--name-body p:last-child {
    margin-bottom: 0;
}

.product-view-full .product_right .field--name-body strong {
    font-weight: 600;
    color: #0c4a6e;
}

/* --- Кнопка «Оставить заявку» --- */
.product-view-full .product_right .field--name-field-product-btn {
    margin-top: 8px;
}

.product-view-full .product_right .field--name-field-product-btn a.btn-primary {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%) !important;
    border: none !important;
    border-radius: 80px !important;
    padding: 15px 40px !important;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease !important;
}

.product-view-full .product_right .field--name-field-product-btn a.btn-primary:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* --- Нижняя колонка — Характеристики снизу фото --- */
.product-view-full .product_bottom {
    grid-column: 1;
    font-family: var(--font-primary);
}

/* Если хотите, чтобы характеристики растянулись на ВСЮ ширину (и под фото, и под описание),
   раскомментируйте строчку ниже взамен grid-column: 1; */
/* .product-view-full .product_bottom { grid-column: 1 / span 2; } */

.product-view-full .product_bottom .field__label {
    font-weight: 600;
    font-size: 20px;
    color: #0c4a6e;
    margin-bottom: 16px;
}

.product-view-full .product_bottom .field__item p {
    font-size: 15px;
    line-height: 1.6;
    color: #2d3748;
    margin: 0 0 8px 0;
}

/* Скрываем пустые блоки .product-teaser внутри article */
.product-view-full .product-teaser {
    display: none;
}

/* ==============================================
   АДАПТИВНОСТЬ СТРАНИЦЫ ТОВАРА
   ============================================== */

/* --- Экраны до 1199px (Планшеты в альбомной ориентации / Нетбуки) --- */
@media (max-width: 1199.98px) {
    .product-view-full article,
    .page-product .product-view-full,
    .product-view-full {
        grid-template-columns: 400px 1fr; /* Немного сужаем левую колонку с фото */
        gap: 32px 32px; /* Уменьшаем отступы */
    }

    .product-view-full .product_left {
        width: 400px;
    }
}

/* --- Экраны до 991px (Планшеты в портретной ориентации) --- */
@media (max-width: 991.98px) {
    .product-view-full article,
    .page-product .product-view-full,
    .product-view-full {
        grid-template-columns: 320px 1fr; /* Еще немного уменьшаем фото */
        gap: 24px 24px;
    }

    .product-view-full .product_left {
        width: 320px;
    }

    #block-vesta-theme-page-title h1 {
        font-size: 28px; /* Уменьшаем заголовок, чтобы он не переносился коряво */
        margin: 20px 0;
    }
}

/* --- Экраны до 767px (Большие телефоны / Вертикальные планшеты) --- */
@media (max-width: 767.98px) {
    .product-view-full article,
    .page-product .product-view-full,
    .product-view-full {
        /* Переключаем Grid в одну колонку. Теперь все блоки встанут друг под друга */
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Фотография центрируется и занимает адекватный размер */
    .product-view-full .product_left {
        grid-column: 1;
        width: 100%;
        max-width: 400px; /* Чтобы на смартфонах фото не растягивалось во весь экран */
        margin: 0 auto; /* Центрируем фото */
    }

    /* Описание и кнопка встают на свое место в общем потоке */
    .product-view-full .product_right {
        grid-column: 1;
        padding-top: 0;
        gap: 20px;
    }

    /* Характеристики автоматически падают в самый низ — под кнопку */
    .product-view-full .product_bottom {
        grid-column: 1;
    }
}

/* --- Экраны до 575px (Обычные и мелкие смартфоны) --- */
@media (max-width: 575.98px) {
    .product-view-full {
        padding: 0 0 40px; /* Уменьшаем нижний отступ страницы */
    }

    #block-vesta-theme-page-title h1 {
        font-size: 24px; /* Заголовок еще компактнее для мобильных */
        margin: 15px 0;
    }

    /* Делаем кнопку «Оставить заявку» на весь экран, так удобнее нажимать пальцем */
    .product-view-full .product_right .field--name-field-product-btn a.btn-primary {
        display: block;
        text-align: center;
        padding: 14px 20px !important;
    }

    .product-view-full .product_bottom .field__label {
        font-size: 18px; /* Чуть уменьшаем размер заголовка «Характеристики» */
    }
}

/* ==============================================
   МОДАЛЬНОЕ ОКНО ОБРАТНОЙ СВЯЗИ
   ============================================== */

/* --- Обёртка модального окна --- */
.modal-dialog {
    max-width: 480px;
    width: 100%;
}

.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(12, 74, 110, 0.2);
}

/* --- Шапка модального окна --- */
.modal-header {
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%);
    border-bottom: none;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header .modal-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
    margin: 0;
}

/* Кнопка закрытия */
.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Тело модального окна --- */
.modal-body {
    background-color: #f4f8fb;
    padding: 28px 28px 20px;
}

/* --- Форма --- */
.modal-body .webform-submission-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Поля ввода --- */
.modal-body .form-control,
.modal-body input.form-text,
.modal-body input.form-email {
    font-family: var(--font-primary) !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    color: #1a3a55 !important;
    background: #ffffff !important;
    border: 1.5px solid #c8e6f5 !important;
    border-radius: 50px !important;
    padding: 13px 22px !important;
    height: auto !important;
    width: 100%;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.modal-body .form-control::placeholder,
.modal-body input.form-text::placeholder,
.modal-body input.form-email::placeholder {
    color: #8ab4c8;
}

.modal-body .form-control:focus,
.modal-body input.form-text:focus,
.modal-body input.form-email:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

/* --- Ошибки — красная рамка вместо текста --- */
.modal-body .alert-error,
.modal-body .alert-danger,
.modal-body .form-item--error-message {
    display: none !important;
}

.modal-body .form-control.error,
.modal-body input.form-text.error,
.modal-body input.form-email.error {
    border-color: #e07070 !important;
    box-shadow: 0 0 0 3px rgba(220, 80, 80, 0.12) !important;
    background-color: #fff8f8 !important;
}

.modal-body .form-control.error:focus,
.modal-body input.form-text.error:focus,
.modal-body input.form-email.error:focus {
    border-color: #e07070 !important;
    box-shadow: 0 0 0 3px rgba(220, 80, 80, 0.18) !important;
}

/* --- Скрываем form-actions внутри body (кнопка в footer) --- */
.modal-body .form-actions {
    display: none !important;
}

/* --- Чекбокс --- */
.modal-body .form-item-privacy {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 0 !important;
}

.modal-body .form-item-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0;
    cursor: pointer;
    border: 1.5px solid #c8e6f5;
    border-radius: 5px;
    background-color: #ffffff;
    position: relative;
    transition: border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Отмечен */
.modal-body .form-item-privacy input[type="checkbox"]:checked {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}

.modal-body .form-item-privacy input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Ошибка чекбокса */
.modal-body .form-item-privacy.form-item--error input[type="checkbox"] {
    background-color: rgba(220, 80, 80, 0.12);
    border-color: #e07070;
}

/* Текст политики */
.modal-body .form-item-privacy .description,
.modal-body .form-item-privacy .webform-element-description {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: #5a8aa0;
}

/* --- Подвал модального окна --- */
.modal-footer {
    background-color: #f4f8fb;
    border-top: 1px solid #e0edf5;
    padding: 16px 28px 24px;
    justify-content: stretch;
}

/* --- Кнопка «Отправить заявку» --- */
.modal-footer .webform-button--submit,
.modal-footer .btn-primary {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%) !important;
    border: none !important;
    border-radius: 80px !important;
    padding: 14px 20px !important;
    width: 100%;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease !important;
}

.modal-footer .webform-button--submit:hover,
.modal-footer .btn-primary:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ==============================================
   DROPDOWN МЕНЮ НАВИГАЦИИ
   ============================================== */

/* --- Убираем стрелку у dropdown-toggle --- */
#header .region-navigation .dropdown-toggle::after {
    display: none !important;
}

/* --- Dropdown меню --- */
#header .region-navigation .dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(12, 74, 110, 0.15);
    padding: 8px 0;
    margin-top: 0;
    min-width: 240px;
    top: 100%;
    left: 0;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Пункты dropdown --- */
#header .region-navigation .dropdown-menu .nav-item {
    display: block;
    width: 100%;
}

#header .region-navigation .dropdown-menu .dropdown-item {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 15px;
    color: #0c4a6e;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border-bottom: none;
    line-height: 1.4;
    transition: background-color 0.15s ease,
    color 0.15s ease,
    padding-left 0.15s ease;
}

#header .region-navigation .dropdown-menu .dropdown-item:hover {
    background-color: #e0f3fc;
    color: #0ea5e9;
    padding-left: 20px;
}

/* Разделитель между пунктами */
#header .region-navigation .dropdown-menu .nav-item:not(:last-child) .dropdown-item {
    border-bottom: 1px solid #f0f7fc;
}

/* --- Родительский пункт «Каталог» при открытом меню --- */
#header .region-navigation .nav-item.dropdown.show > .nav-link {
    background-color: #0284c7;
    color: #ffffff;
}

/* ==============================================
   СТРАНИЦА ПОИСКА
   ============================================== */

/* --- Отступы страницы --- */
.path--search #main,
#block-vesta-theme-content .search-api-page-block-form-search {
    padding: 0px 0 60px;
}

/* --- Заголовок H1 «Поиск» --- */
.path--search #block-vesta-theme-page-title h1 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 36px;
    color: #0c4a6e;
    margin: 0 0 28px 0;
}

/* --- Форма поиска --- */
#block-vesta-theme-content .search-api-page-block-form-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}

#block-vesta-theme-content .search-api-page-block-form-search .js-form-item {
    flex: 1;
    margin: 0;
}

/* --- Поле ввода --- */
#block-vesta-theme-content .search-api-page-block-form-search .form-search {
    font-family: var(--font-primary) !important;
    font-weight: 400;
    font-size: 16px;
    color: #1a3a55;
    background: #ffffff !important;
    border: 1.5px solid #c8e6f5 !important;
    border-radius: 50px !important;
    padding: 14px 24px !important;
    height: auto !important;
    width: 100%;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#block-vesta-theme-content .search-api-page-block-form-search .form-search::placeholder {
    color: #8ab4c8;
}

#block-vesta-theme-content .search-api-page-block-form-search .form-search:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

/* --- Кнопка «Поиск» --- */
#block-vesta-theme-content .search-api-page-block-form-search .form-actions {
    flex-shrink: 0;
    margin: 0;
}

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none !important;
    transition: background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease !important;
}

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
    transform: translateY(-1px);
}

/* --- Заголовок «Результаты поиска» --- */
#block-vesta-theme-content h2 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 23px;
    color: #0c4a6e;
    /*margin: 0 0 12px 0;*/
    /*padding-bottom: 12px;*/
}

/* --- Счётчик результатов --- */
#block-vesta-theme-content > p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: #5a8aa0;
    margin: 0 0 24px 0;
}

/* --- Результат поиска --- */
#block-vesta-theme-content h3 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 18px;
    color: #0c4a6e;
    margin: 0 0 6px 0;
    padding: 16px 20px;
    background-color: #f4f8fb;
    border-radius: 10px;
    border-left: 4px solid #0ea5e9;
    transition: background-color 0.2s ease,
    border-color 0.2s ease;
}

#block-vesta-theme-content h3:hover {
    background-color: #e0f3fc;
    border-left-color: #0c4a6e;
}

#block-vesta-theme-content h3 a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 18px;
    color: #0c4a6e;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

#block-vesta-theme-content h3 a:hover {
    color: #0ea5e9;
}

/* --- Описание результата --- */
#block-vesta-theme-content h3 + p {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: #5a8aa0;
    margin: 4px 0 16px 0;
    padding: 0 20px;
}

/* ==============================================
   МОБИЛЬНЫЙ HEADER
   ============================================== */

#header-mob {
    background-color: #ffffff;
    padding: 10px 16px;
    z-index: 100;
    border-bottom: 1px solid #e0f3fc;
    box-shadow: 0 2px 12px rgba(12, 74, 110, 0.08);
    top: 0;
    gap: 12px;
}

/* --- Иконка бургера --- */
#header-mob .col-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

#header-mob .col-nav a:hover {
    background-color: #e0f3fc;
}

#header-mob .col-nav img {
    width: 24px;
    height: 24px;
    filter: invert(20%) sepia(60%) saturate(500%) hue-rotate(180deg);
}

/* --- Текстовый лого --- */
#header-mob .col-logo {
    flex: 1;
    overflow: hidden;
}

#header-mob .mob-logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

#header-mob .mob-logo-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    color: #0c4a6e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

#header-mob .mob-logo-subtitle {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    color: #5a8aa0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

#header-mob .mob-logo-link:hover .mob-logo-title {
    color: #0ea5e9;
}

/* --- Телефон --- */
#header-mob .col-phone {
    flex-shrink: 0;
}

#header-mob .col-phone .contact-item a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    color: #0c4a6e;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#header-mob .col-phone .contact-item a:hover {
    color: #0ea5e9;
}

/* ==============================================
   OFFCANVAS — БУРГЕР МЕНЮ
   ============================================== */

#offcanvasNav {
    --bs-offcanvas-bg: #ffffff;
    --bs-offcanvas-width: 320px;
    border-right: none;
    box-shadow: 4px 0 24px rgba(12, 74, 110, 0.15);
}

/* --- Шапка offcanvas --- */
#offcanvasNav .offcanvas-header {
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%);
    padding: 16px 20px;
    align-items: flex-start;
}

/* --- Текстовый лого в offcanvas --- */
#offcanvasNav .offcanvas-logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#offcanvasNav .offcanvas-logo-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.2;
    transition: opacity 0.2s ease;
}

#offcanvasNav .offcanvas-logo-subtitle {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    display: block;
    line-height: 1.3;
}

#offcanvasNav .offcanvas-logo-link:hover .offcanvas-logo-title {
    opacity: 0.85;
}

/* Кнопка закрытия */
#offcanvasNav .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    flex-shrink: 0;
    margin-top: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#offcanvasNav .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Тело offcanvas --- */
#offcanvasNav .offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* --- Поиск в offcanvas --- */
#offcanvasNav .region-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e0f3fc;
}

/* Убираем display: contents с обёрток */
#offcanvasNav .search-api-page-block-form-search {
    display: flex !important;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

#offcanvasNav .search-api-page-block-form-search form {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

#offcanvasNav .search-api-page-block-form-search .js-form-item {
    flex: 1;
    min-width: 0;
    margin: 0;
}

#offcanvasNav .search-api-page-block-form-search .form-actions {
    display: flex !important;
    flex-shrink: 0;
    margin: 0;
}

#offcanvasNav .form-search {
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    color: #1a3a55 !important;
    background: #f4f8fb !important;
    border: 1.5px solid #c8e6f5 !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    padding: 10px 14px !important;
    height: 42px;
    width: 100%;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box;
}

#offcanvasNav .form-search::placeholder {
    color: #8ab4c8;
}

#offcanvasNav .search-form__submit {
    font-size: 0 !important;
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%) !important;
    border: none !important;
    border-radius: 0 8px 8px 0 !important;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s ease;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#offcanvasNav .search-form__submit:hover {
    opacity: 0.85;
}

#offcanvasNav .search-form__submit::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('/sites/all/themes/vesta_theme/image/zoom.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    display: block;
}

/* --- Навигация в offcanvas --- */
#offcanvasNav .region-navigation {
    border-bottom: 1px solid #e0f3fc;
}

#offcanvasNav .region-navigation .nav {
    flex-direction: column !important;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

#offcanvasNav .region-navigation .nav-item {
    width: 100%;
    border-bottom: 1px solid #f0f7fc;
    display: block;
}

#offcanvasNav .region-navigation .nav-item:last-child {
    border-bottom: none;
}

#offcanvasNav .region-navigation .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: #0c4a6e;
    padding: 14px 20px;
    display: block;
    text-decoration: none;
    white-space: normal;
    border-bottom: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#offcanvasNav .region-navigation .nav-link:hover {
    background-color: #e0f3fc;
    color: #0ea5e9;
}

/* Каталог */
#offcanvasNav .region-navigation .nav-item:first-child .nav-link {
    background-color: #0ea5e9;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#offcanvasNav .region-navigation .nav-item:first-child .nav-link::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/sites/all/themes/vesta_theme/image/toc.svg');
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

#offcanvasNav .region-navigation .nav-item:first-child .nav-link:hover {
    background-color: #0284c7;
    color: #ffffff;
}

/* Dropdown */
#offcanvasNav .dropdown-menu {
    position: static !important;
    display: none;
    background-color: #f4f8fb;
    border: none;
    border-radius: 0;
    padding: 4px 0;
    box-shadow: none;
    margin: 0;
}

#offcanvasNav .dropdown-menu.show {
    display: block;
}

#offcanvasNav .dropdown-item {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    color: #0c4a6e;
    padding: 10px 20px 10px 36px;
    border-bottom: 1px solid #e8f4fb;
    white-space: normal;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#offcanvasNav .dropdown-item:hover {
    background-color: #e0f3fc;
    color: #0ea5e9;
}

#offcanvasNav .dropdown-toggle::after {
    display: none !important;
}

/* --- Контакты --- */
#offcanvasNav .contact-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f7fc;
}

#offcanvasNav .contact-item-label {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 11px;
    color: #5a8aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

#offcanvasNav .contact-item-el a,
#offcanvasNav .contact-item > a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: #0c4a6e;
    text-decoration: none;
    transition: color 0.2s ease;
}

#offcanvasNav .contact-item-el a:hover,
#offcanvasNav .contact-item > a:hover {
    color: #0ea5e9;
}

/* --- Соцсети --- */
#offcanvasNav .contact-item-label.w-100 {
    padding: 12px 20px 4px;
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 11px;
    color: #5a8aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#offcanvasNav .msngrs {
    display: flex;
    gap: 10px;
    padding: 8px 20px 24px;
}

#offcanvasNav .msngrs .item a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(90deg, #0ea5e9 0%, #0c4a6e 100%);
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-block;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

#offcanvasNav .msngrs .item a:hover {
    background: linear-gradient(90deg, #0284c7 0%, #082f49 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

/* PRODUCT PAGE STYLES*/



/* *** ADAPTIVE *** */

@media screen and (max-width: 1399px) {
    #header .region-navigation .nav-link {
        padding: 21px 14px;
    }

    #header .header-top > .container > .d-flex {
        gap: 14px;
    }
}

/* ==============================================
   1199px — широкие ноутбуки
   ============================================== */
@media screen and (max-width: 1199px) {

    .contacts-block {
        padding: 50px 0 50px;
    }

    .photogallery-block {
        padding: 0px 0 50px;
    }

    .about-block {
        padding: 0px 0 50px;
    }

    .feedback-block {
        padding: 0px 0 0px;
    }

    .catalog-block {
        padding: 50px 0 50px;
    }

    .services-block {
        padding: 0px 0 50px;
    }

    /* Header */
    #header .header-top > .container > .d-flex {
        gap: 10px;
    }

    #header .logo-title {
        font-size: 28px;
    }

    #header .logo-subtitle {
        font-size: 13px;
    }

    #header .col-contacts .tel {
        font-size: 17px;
    }

    #header .col-address .address,
    #header .col-address .work-hours {
        font-size: 14px;
    }

    #header .col-callback .btn-primary,
    #header .col-callback a.btn-primary {
        padding: 12px 18px !important;
        font-size: 14px !important;
    }

    #header .region-navigation .nav-link {
        font-size: 15px;
        padding: 21px 11px;
    }

    #header .region-navigation .nav-item:first-child .nav-link {
        padding: 21px 14px;
        gap: 10px;
    }

    #header .region-navigation .nav-item:first-child .nav-link::before {
        width: 26px;
        height: 26px;
    }

    /* Promo */
    .promo-block .field--name-field-promo-title h1 {
        font-size: 46px;
    }

    .promo-block #block-vesta-theme-promo-block {
        padding: 90px 0;
    }

    /* Catalog */
    .catalog-block .view-content,
    .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(4, 1fr);
    }

    /* About */
    .about-block .about_left {
        width: calc(45% - 24px);
    }

    /* Contacts */
    .contacts-map {
        flex: 0 0 520px;
        width: 520px;
    }

    .contacts-map .mapContainer,
    .contacts-map .mapContainer iframe {
        width: 520px !important;
    }

    /* Feedback */
    .feedback-block .field--name-field-feedback-title {
        font-size: 32px;
    }

    /* Footer */
    .footer-top > .container > .d-flex {
        gap: 40px !important;
    }

    .footer-logo-title {
        font-size: 28px;
    }

    /* Product */
    .product-view-full .product_left {
        flex: 0 0 380px;
        width: 380px;
    }

    /* Service full */
    .node--type-service.node--view-mode-full .service_left {
        flex: 0 0 420px;
        width: 420px;
    }
}

/* ==============================================
   991px — планшеты горизонтальные
   ============================================== */
@media screen and (max-width: 991px) {

    html,
    body,
    #page {
        overflow-x: hidden;
    }

    /* --- Преимущества промо — подложка на маленьких экранах --- */
    .promo-block .paragraph--type--benefits {
        background: rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 10px;
        padding: 10px 12px;
    }

    .promo-block .paragraph--type--benefits .field--name-field-benefit-text {
        color: #0c4a6e;
    }

    /* Header — скрыт, показывается мобильный */
    #header {
        display: none !important;
    }

    /* Promo */
    .promo-block .field--name-field-promo-title h1 {
        font-size: 36px;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .promo-block #block-vesta-theme-promo-block {
        padding: 60px 0;
    }

    .promo-block .field--name-field-benefits {
        /*flex-wrap: wrap;*/
        gap: 16px;
        margin-bottom: 30px;
    }

    .promo-block .paragraph--type--benefits {
        max-width: 120px;
    }

    .promo-block .promo_btn a {
        padding: 13px 32px;
        font-size: 15px;
    }

    /* Catalog */
    .catalog-block .view-content,
    .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-block .block-title {
        font-size: 32px;
    }

    /* Services */
    .services-block .view-content,
    .view-services.view-display-id-page_1 .view-content {
        /*grid-template-columns: 1fr;*/
        gap: 20px;
    }

    .catalog-block {
        padding: 50px 0 50px;
    }

    .services-block {
        padding: 0px 0 0px;
    }

    .about-block {
        padding: 50px 0 0px;
    }

    .photogallery-block {
        padding: 50px 0 0px;
    }

    .feedback-block {
        padding: 50px 0 0px;
    }

    .services-block .field--name-field-service-img img,
    .view-services.view-display-id-page_1 .field--name-field-service-img img {
        height: 260px;
    }

    .services-block .field--name-field-service-text a,
    .view-services.view-display-id-page_1 .field--name-field-service-text a {
        width: auto;
        min-height: auto;
        font-size: 18px;
        padding: 10px 20px !important;
    }

    /* About */
    #block-vesta-theme-block-about {
        flex-direction: column;
        gap: 28px;
    }

    .about-block .about_left {
        width: 100%;
    }

    .about-block .about_right {
        width: 100%;
    }

    .about-block .field--name-field-about-text {
        max-width: 100%;
    }

    /* Photogallery */
    .photogallery-block .view-content,
    .view-photogallerys.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 16px;
    }

    /* Feedback */
    #block-vesta-theme-block-feedback {
        flex-direction: column;
        min-height: auto;
    }

    .feedback-block .feedback_left,
    .feedback-block .feedback_right {
        flex: none;
        width: 100%;
    }

    .feedback-block .feedback_right {
        height: 450px;
    }

    .feedback-block .feedback_right img {
        position: absolute;
    }

    /* Contacts */
    .contacts-inner {
        flex-direction: column !important;
    }

    .contacts-left {
        width: 100%;
    }

    .contacts-map {
        flex: none;
        width: 100%;
        height: 300px;
    }

    .contacts-map .mapContainer,
    .contacts-map .mapContainer iframe {
        width: 100% !important;
        height: 300px !important;
    }

    /* Footer */
    .footer-top > .container > .d-flex {
        /*flex-direction: column;*/
        gap: 0px !important;
    }

    .footer-top > .container > .d-flex {
        gap: 24px !important;
    }

    .footer-info {
        flex: 1 1 0;
        width: auto;
        max-width: 320px;
    }

    .footer-top .footer-col:not(.footer-info) {
        flex: 1 1 0;
        width: auto;
    }
    
    .footer-logo-link {
        margin-bottom: 24px;
    }

    /* Product full */
    .product-view-full {
        flex-direction: column;
        gap: 28px;
    }

    .product-view-full .product_left {
        flex: none;
        width: 100%;
    }

    .product-view-full .product_right {
        width: 100%;
    }

    /* Service full */
    .node--type-service.node--view-mode-full .node__content {
        flex-direction: column;
        gap: 28px;
    }

    .node--type-service.node--view-mode-full .service_left,
    .node--type-service.node--view-mode-full .service_right {
        flex: none;
        width: 100%;
    }

    /* Gallery full */
    .node--type-photogallery.node--view-mode-full .photoswipe-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .node--type-photogallery.node--view-mode-full .photoswipe-gallery .field__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Товары */
    .view-tovary .view-content {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Поиск */
    #block-vesta-theme-content .search-api-page-block-form-search {
        max-width: 100%;
    }
}

/* ==============================================
   767px — планшеты вертикальные
   ============================================== */
@media screen and (max-width: 767px) {

    #footer .region-navigation-footer .nav, #footer .region-services-menu .nav {
        gap: 6px;
    }

    .footer-top > .container > .d-flex {
        gap: 16px;
    }

    .footer-info {
        max-width: 240px;
    }

    #footer .region-navigation-footer .nav-link,
    #footer .region-services-menu .nav-link {
        font-size: 13px;
    }

    .footer-top > .container > .d-flex {
        gap: 0px !important;
    }

    .promo-block .paragraph--type--benefits {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 10px;
        padding: 10px 12px;
    }

    .services-block .view-content, .view-services.view-display-id-page_1 .view-content {
        grid-template-columns: 1fr;
    }

    .catalog-block {
        padding: 35px 0 35px;
    }

    .about-block {
        padding: 35px 0 0px;
    }

    .photogallery-block {
        padding: 35px 0 0px;
    }

    .feedback-block {
        padding: 35px 0 0px;
    }

    .contacts-block {
        padding: 35px 0 35px;
    }

    /* Promo */
    .promo-block .field--name-field-promo-title h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .promo-block #block-vesta-theme-promo-block {
        padding: 48px 0;
    }

    .promo-block .promo_btn {
        /*flex-direction: column;*/
        align-items: flex-start;
        gap: 12px;
    }

    .promo-block .promo_btn a {
        padding: 13px 28px;
        width: 100%;
        text-align: center;
    }

    /* Catalog */
    .catalog-block .view-content,
    .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-block .block-title,
    .photogallery-block .block-title,
    .services-block .block-title {
        font-size: 28px;
    }

    /* About */
    .about-block .field--name-field-about-title {
        font-size: 28px;
    }

    /* Photogallery */
    .photogallery-block .view-content,
    .view-photogallerys.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Feedback */
    .feedback-block .feedback_left {
        padding: 24px 20px;
    }

    .feedback-block .field--name-field-feedback-title {
        font-size: 26px;
    }

    .feedback-block .field--name-field-feedback-text {
        font-size: 14px;
    }

    /* Contacts */
    .contacts-title {
        font-size: 28px;
    }

    .contacts-map {
        height: 260px;
    }

    .contacts-map .mapContainer,
    .contacts-map .mapContainer iframe {
        height: 260px !important;
    }

    /* Footer */
    .footer-bottom > .container > .d-flex {
        /*flex-direction: column;*/
        gap: 8px;
        align-items: flex-start;
    }

    #footer .region-services-menu .nav-link {
        font-size: 13px;
    }

    .footer-logo-title {
        font-size: 24px;
    }

    /* Товары */
    .view-tovary .view-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery full */
    .node--type-photogallery.node--view-mode-full .photoswipe-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .node--type-photogallery.node--view-mode-full .photoswipe-gallery .field__item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    /* Modal */
    .modal-dialog {
        max-width: calc(100% - 32px);
        margin: 16px auto;
    }

    /* Поиск */
    #block-vesta-theme-content .search-api-page-block-form-search {
        flex-direction: column;
        align-items: stretch;
    }

    #block-vesta-theme-content .search-api-page-block-form-search .form-search {
        border-right: 1.5px solid #0ea5e9 !important;
        border-radius: 50px !important;
    }

    #block-vesta-theme-content .search-api-page-block-form-search .search-form__submit {
        border-radius: 50px !important;
        width: 100%;
    }
}

/* ==============================================
   576px — мобильные телефоны
   ============================================== */
@media screen and (max-width: 576px) {

    .feedback-block .form-item-privacy input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .promo-block .promo_btn a {
        padding: 13px 14px;
    }

    .footer-top > .container > .d-flex {
        flex-direction: column;
    }

    #header-mob .col-phone {
        display: none !important;
    }

    .catalog-block {
        padding: 20px 0 20px;
    }

    .about-block {
        padding: 20px 0 0px;
    }

    .photogallery-block {
        padding: 20px 0 0px;
    }

    .feedback-block {
        padding: 20px 0 0px;
    }

    .contacts-block {
        padding: 20px 0 20px;
    }

    /* Promo */
    .promo-block .field--name-field-promo-title h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .promo-block .field--name-field-benefits {
        display: none; /* скрываем на маленьких экранах */
    }

    /* Catalog */
    .catalog-block .view-content,
    .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 10px;
    }

    .catalog-block .block-title, .photogallery-block .block-title, .services-block .block-title {
        margin-bottom: 10px;
    }

    .catalog-block .taxonomy-term--view-mode-teaser,
    .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser {
        padding: 14px 10px 12px;
        gap: 10px;
    }

    .catalog-block .field--name-taxonomy-term-title h2,
    .view-catalog.view-display-id-page .field--name-taxonomy-term-title h2 {
        font-size: 13px;
    }

    .catalog-block .more-link a {
        padding: 13px 24px;
        font-size: 14px;
    }

    /* Photogallery */
    .photogallery-block .view-content,
    .view-photogallerys.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .photogallery-block .node--type-photogallery h2 a {
        font-size: 13px;
        max-width: 100%;
    }

    /* Feedback */
    .feedback-block .feedback_right {
        height: 400px;
    }

    /* Contacts */
    .contacts-label {
        font-size: 18px;
    }

    .contact-address,
    .contact-mail,
    .contact-tel {
        font-size: 16px;
    }

    .contacts-map {
        height: 220px;
    }

    .contacts-map .mapContainer,
    .contacts-map .mapContainer iframe {
        height: 220px !important;
    }

    /* Footer */
    .footer-logo-title {
        font-size: 20px;
        white-space: normal;
    }

    .footer-logo-subtitle {
        font-size: 13px;
        white-space: normal;
    }

    .footer-actions {
        flex-wrap: wrap !important;
    }

    /* Товары */
    .view-tovary .view-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Gallery full */
    .node--type-photogallery.node--view-mode-full .photoswipe-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Поиск */
    #block-vesta-theme-page-title h1 {
        font-size: 26px;
        margin: 20px 0 20px 0;
    }

    #block-vesta-theme-content h2 {
        font-size: 20px;
    }

    #block-vesta-theme-content h3 {
        font-size: 16px;
        padding: 12px 16px;
    }
}