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

#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;
}

/* ==========================================================================
   1. ПОДКЛЮЧЕНИЕ ШРИФТОВ
   ========================================================================== */

/* Montserrat Regular */
@font-face {
    font-family: 'Montserrat';
    src: url('/sites/all/themes/vesta_theme/font/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Montserrat SemiBold */
@font-face {
    font-family: 'Montserrat';
    src: url('/sites/all/themes/vesta_theme/font/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Bold */
@font-face {
    font-family: 'Montserrat';
    src: url('/sites/all/themes/vesta_theme/font/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


:root {
    /* Переменная для шрифта */
    --font-family: "Montserrat", sans-serif;

    /* Цветовая палитра */
    --black: #18181b;
    --primary: #32457f;
    --secondary: #e93853;
    --gray: #72757d;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--black);
}


/*HEADER STYLES*/

/*!* ========================================*/
/* HEADER*/
/*======================================== *!*/

#header {
    background: #fff;
    position: relative;
    z-index: 200;
}

/* ---- Логотип ---- */
.logo img {
    max-height: 72px;
    width: auto;
    display: block;
}

/* ---- Телефонные блоки ---- */
.col-phone-one,
.col-phone-two {
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.phone-icon {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
}

.phone-info {
    display: flex;
    flex-direction: column;
}

.col-phone-one .tel,
.col-phone-two .tel {
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
}

/* Фикс: При ховере на телефон, текст не должен становиться белым (на белом фоне его не видно) */
.col-phone-one .tel:hover,
.col-phone-two .tel:hover {
    color: var(--primary);
    text-decoration: underline;
}

.phone-label {
    color: var(--gray);
    font-family: var(--font-family);
    font-size: 12px;
    margin-top: 2px;
    line-height: 140%;
}

/* Заказать обратный звонок (под вторым телефоном) */
.col-phone-two .region-callback,
.col-phone-two .region-callback .block,
.col-phone-two .region-callback .field {
    all: unset;
}

.col-phone-two .region-callback a {
    color: var(--gray);
    font-family: var(--font-family);
    font-size: 12px;
    line-height: 140%;
    text-decoration: underline;
    margin-top: 2px;
    display: block;
    cursor: pointer;
}

.col-phone-two .region-callback a:hover {
    color: var(--primary);
}

.col-phone-two .contextual {
    display: none;
}

/* ---- Социальные сети ---- */
.col-socials {
    gap: 8px;
    display: flex;
    align-items: center;
}

.social-item {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.social-item:hover {
    opacity: 0.85;
}

/* ---- Кнопка "Скачать прайс" ---- */
.col-download-price {
    align-self: center; /* Центрирует всю кнопку по вертикали относительно логотипа и телефонов */
}

/* Нацеливаемся на внутренний контейнер региона Drupal */
.col-download-price .col-download-price-inner,
.col-download-price .region-download-price {
    position: relative;
    display: block;
}

/* Оформляем блок контента внутри Drupal-региона */
.col-download-price .block-block-content {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--secondary);
    border-radius: 6px;
    padding: 15px 35px;
    cursor: pointer;
    position: relative;
}

/* Иконка прайса возвращается через CSS */
.col-download-price .block-block-content::before {
    content: '';
    display: block;
    width: 13px;
    height: 16px;
    background-image: url('/sites/all/themes/vesta_theme/image/download.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
}

/* Текст кнопки */
.col-download-price .field--name-field-download-price-text {
    color: #fff;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    white-space: nowrap;
}

/* Невидимая ссылка на файл — растягивается строго по границам .block-block-content */
.col-download-price .field--name-field-file-price {
    position: absolute;
    inset: 0;
    z-index: 5;
    margin: 0;
    padding: 0;
}

.col-download-price .field--name-field-file-price .file,
.col-download-price .field--name-field-file-price a {
    display: block;
    width: 100%;
    height: 100%;
}

.col-download-price .field--name-field-file-price a {
    font-size: 0 !important;
    color: transparent !important;
    text-decoration: none;
}

.col-download-price .block-block-content:hover {
    opacity: 0.9;
}

.col-download-price .contextual {
    display: none;
}


/* ========================================
   HEADER BOTTOM — НАВИГАЦИЯ
======================================== */

.header-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(99%);
    z-index: 150;
    background: transparent;
}

/* Контейнер определяет жесткую ширину меню */
.header-bottom .container {
    padding-right: 15px;
    padding-left: 15px;
}

/* Белая плашка, скругления и тень теперь сидят на самом блоке навигации Drupal */
.header-bottom .region-navigation,
.header-bottom .block-menu {
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* Список меню */
.header-bottom .nav {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Пункты меню равномерно делят ширину контейнера */
.header-bottom .nav-item {
    flex: 1;
    box-shadow: 0 8px 8px 0 rgba(187, 186, 190, 0.2);
    text-align: center;
}

.header-bottom .nav-item:last-child {
    border-right: none;
}

/* Ссылки внутри меню */
.header-bottom .nav-link {
    display: block;
    padding: 16px 12px;
    color: var(--black);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 140%;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.header-bottom .nav-link:hover,
.header-bottom .nav-link.is-active {
    color: var(--primary);
    background: #f5f7ff;
}

.header-bottom .visually-hidden {
    display: none;
}

/* ==========================================================================
   СТИЛИЗАЦИЯ КОНТЕНТА СЛАЙДЕРА
   ========================================================================== */

/* Заголовок слайда (Комбикорм для животных) */
.field--name-field-slide-title h1 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 36px;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 120%;
}

/* Подзаголовок (Напрямую от производителя) */
.field--name-body p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
}

/* Белая линия перед подзаголовком */
.field--name-body p::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin-right: 12px;
}

/* Кнопка "Сделать заказ" */
.field--name-field-slide-link a {
    display: inline-block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 140%;
    color: #ffffff;
    background-color: var(--secondary);
    text-decoration: none;
    padding: 20px 50px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Эффект при наведении на кнопку */
.field--name-field-slide-link a:hover {
    background-color: #d12f48;
    cursor: pointer;
}

.field--name-field-slide-link a:active {
    transform: scale(0.98);
}

/* 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: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

button.slick-arrow::before {
    content: '';
    display: block;
    position: relative;
    width: 42px;
    height: 42px;
    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_left.svg");
}

button.slick-next.slick-arrow::before {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow_right.svg");
}

#scrollToTop {
    width: 48px;
    height: 48px;
    background: none;
    text-indent: 0;
    font-size: 0;
    border: 0px;
    outline: 0px;
    display: flex;
    bottom: 120px;
    cursor: pointer;
    position: fixed;
    right: 75px;
    z-index: 10;
    transition: 0.2s;
    padding: 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;
}


/* ========================================
   BENEFITS BLOCK — ПРЕИМУЩЕСТВА
======================================== */

.benefits-block {
    padding: 60px 0 80px;
    background: #fff;
}

/* ---- Заголовок блока ---- */
.benefits-block .field--name-field-advantage-title {
    font-family: var(--font-family);
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 50px;
    line-height: 120%;
}

.benefits-block .field--name-field-advantage-title span {
    color: var(--primary);
}

/* Скрываем contextual Drupal */
.benefits-block .contextual {
    display: none;
}

/* ---- Сетка карточек ---- */
.benefits-block .view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 30px;
}

/* ---- Карточка ---- */
.benefits-block .views-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    align-items: start;
    border-radius: 12px;
    padding: 24px;
    cursor: default;
    transition: box-shadow 0.4s ease,
    transform 0.4s ease,
    background-color 0.4s ease;
}

/* Левая колонка — нечётные */
.benefits-block .views-row:nth-child(odd) {
    background-color: #f5f5f0;
}

/* Правая колонка — чётные */
.benefits-block .views-row:nth-child(even) {
    background-color: #f1f3f4;
}

/* ---- Hover ---- */
.benefits-block .views-row:hover {
    box-shadow: 0 8px 32px rgba(50, 69, 127, 0.14);
    transform: translateY(-3px);
}

.benefits-block .views-row:nth-child(odd):hover {
    background-color: #e9e8e2;
}

.benefits-block .views-row:nth-child(even):hover {
    background-color: #e1e5e8;
}

/* ---- Иконка ---- */
.benefits-block .views-field-field-advantage-image {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: start;
}

.benefits-block .views-field-field-advantage-image .field-content {
    width: 89px;
    height: 84px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-block .views-field-field-advantage-image img {
    transition: transform 0.3s ease;
}

.benefits-block .views-row:hover .views-field-field-advantage-image img {
    transform: scale(1.1);
}

/* ---- Заголовок карточки ---- */
.benefits-block .views-field-field-advantage-title {
    grid-row: 1;
    grid-column: 2;
    align-self: start;
}

.benefits-block .views-field-field-advantage-title .field-content {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    line-height: 140%;
    margin-bottom: 15px;
    max-width: 380px;
    transition: color 0.4s ease;
}

.benefits-block .views-row:hover .views-field-field-advantage-title .field-content {
    color: var(--primary);
}

/* ---- Описание карточки ---- */
.benefits-block .views-field-field-advantage-text {
    grid-row: 2;
    grid-column: 2;
    align-self: start;
}

.benefits-block .views-field-field-advantage-text .field-content {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    line-height: 140%;
    max-width: 400px;
}

/* ========================================
   ABOUT BLOCK — О КОМПАНИИ
======================================== */

.about-block {
    padding: 60px 0 80px;
    background: #f4f4f4;
}

/* Скрываем contextual Drupal */
.about-block .contextual {
    display: none;
}

/* ---- Заголовок ---- */
.about-block .field--name-field-about-title {
    font-family: var(--font-family);
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 50px;
    line-height: 120%;
    grid-column: 1 / -1;
    grid-row: 1;
}

.about-block .field--name-field-about-title span {
    color: var(--primary);
}

/* ---- Основная раскладка ---- */
.about-block .block-block-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: start;
}

/* Левая колонка */
.about-block .left_column {
    grid-column: 1;
    grid-row: 2;
}

/* Правая колонка */
.about-block .right_column {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* ---- ЛЕВАЯ КОЛОНКА — обёртка ---- */
.about-block .left_column .field--name-field-about-stats {
    background: transparent;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Внешняя карточка — белый фон, размер, скругление */
.about-block .left_column .field--name-field-about-stats > .field__item {
    width: 270px;
    height: 131px;
    background: #fff;
    border-radius: 12px;
    padding: 8px; /* ← зазор между краем карточки и пунктирной рамкой */
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover на карточку */
.about-block .left_column .field--name-field-about-stats > .field__item:hover {
    box-shadow: 0 4px 16px rgba(50, 69, 127, 0.12);
    transform: translateY(-2px);
}

/* Внутренний параграф — пунктирная рамка на всю высоту карточки */
.about-block .left_column .paragraph--type--statistic {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    border: 1.5px dashed #c8cdd6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.3s ease;
}

/* Hover — рамка синеет */
.about-block .left_column .field--name-field-about-stats > .field__item:hover .paragraph--type--statistic {
    border-color: var(--primary);
}

/* Hover — число синеет */
.about-block .left_column .field--name-field-about-stats > .field__item:hover .field--name-field-stat-number {
    color: var(--primary);
}

/* Число */
.about-block .field--name-field-stat-number {
    font-family: var(--font-family);
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    line-height: 120%;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

/* Подпись */
.about-block .field--name-field-stat-label {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    color: var(--black);
    line-height: 140%;
}

/* ---- ПРАВАЯ КОЛОНКА — фото 1 (слева сверху) ---- */
.about-block .field--name-field-about-photo {
    grid-column: 1;
    grid-row: 1;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-block .field--name-field-about-photo:hover {
    box-shadow: 0 8px 28px rgba(50, 69, 127, 0.18);
    transform: translateY(-3px);
}

.about-block .field--name-field-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-block .field--name-field-about-photo:hover img {
    transform: scale(1.04);
}

/* ---- ПРАВАЯ КОЛОНКА — фото 2 (справа сверху) ---- */
.about-block .field--name-field-about-photo-right {
    grid-column: 2;
    grid-row: 1;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-block .field--name-field-about-photo-right:hover {
    box-shadow: 0 8px 28px rgba(50, 69, 127, 0.18);
    transform: translateY(-3px);
}

.about-block .field--name-field-about-photo-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-block .field--name-field-about-photo-right:hover img {
    transform: scale(1.04);
}

/* ---- ПРАВАЯ КОЛОНКА — текст (снизу, вся ширина) ---- */
.about-block .field--name-field-about-text {
    grid-column: 1 / -1;
    grid-row: 2;
    background: #fff;
    border-radius: 12px;
    padding: 25px 50px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    line-height: 140%;
}

/* ========================================
   CATALOG FRONT BLOCK — КАТАЛОГ
======================================== */

.catalog_front-block {
    padding: 60px 0 80px;
    background: #fff;
}

/* УБИРАЕМ ЛИШНЕЕ DRUPAL:
   Скрываем дефолтный h2 Drupal-ноды, ссылки "Подробнее",
   метаданные и контекстные меню, чтобы убрать дублирование заголовков.
*/
.catalog_front-block .contextual,
.catalog_front-block .node__meta,
.catalog_front-block .node__submitted,
.catalog_front-block .node__links,
.catalog_front-block .node > h2 {
    display: none !important;
}

/* ---- Главный заголовок блока ---- */
.catalog_front-block .block-title {
    display: block;
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 40px;
}

/* ---- Сетка: 3 колонки, строки одинаковой высоты ---- */
.catalog_front-block .view-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr; /* все строки одинаковой высоты */
    gap: 40px;
}

/* views-row растягивается на всю ячейку */
.catalog_front-block .views-row {
    display: contents; /* позволяет article занять ячейку грида напрямую */
}

/* ---- Карточка — общие стили ---- */
.catalog_front-block .node {
    display: flex;
    flex-direction: column;
    background: #f4f5f7;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Эффект при наведении на карточку */
.catalog_front-block .node:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* node__content обычных карточек */
.catalog_front-block .node--type-products:not([data-history-node-id="819"]) .node__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ---- Изображение обычных карточек ---- */
.catalog_front-block .node--type-products:not([data-history-node-id="819"]) .field--name-field-products-image {
    overflow: hidden;
    line-height: 0;
    flex-shrink: 0;
}

.catalog_front-block .node--type-products:not([data-history-node-id="819"]) .field--name-field-products-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.catalog_front-block .node--type-products:not([data-history-node-id="819"]):hover .field--name-field-products-image img {
    transform: scale(1.04);
}

/* ---- Название обычных карточек ---- */
.catalog_front-block .node--type-products:not([data-history-node-id="819"]) .field--name-field-products-title {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    line-height: 140%;
    margin: 22px 20px;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--secondary);
    box-sizing: border-box;
    transition: color 0.3s ease;
    max-width: 278px;
}

.catalog_front-block .node--type-products:not([data-history-node-id="819"]):hover .field--name-field-products-title {
    color: var(--secondary);
}

/* ========================================
   ПОСЛЕДНЯЯ КАРТОЧКА (node 819) — БАННЕР
======================================== */

.catalog_front-block .node[data-history-node-id="819"] {
    overflow: visible;
}

/* node__content — грид: левая (текст+кнопка) | правая (SVG) */
.catalog_front-block .node[data-history-node-id="819"] .node__content {
    grid-template-columns: 1fr 152px; /* ← было 110px, теперь под размер картинки */
    grid-template-rows: 1fr auto;
    height: 100%;
    padding: 28px 20px;
    gap: 0;
    align-items: center;
    box-sizing: border-box;
    display: grid;
}

/* Название — левая колонка, верхняя строка */
.catalog_front-block .node[data-history-node-id="819"] .field--name-field-products-title {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    color: var(--black);
    text-transform: uppercase;
    line-height: 140%;
    border-left: none;
    padding: 0;
    margin: 0 0 20px 0;
    align-self: end;
}

/* Кнопка — левая колонка, нижняя строка */
.catalog_front-block .node[data-history-node-id="819"] .field--name-field-download-price {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

.catalog_front-block .field--name-field-download-price .file {
    display: block;
}

/* Ссылка-кнопка внутри баннера */
.catalog_front-block .field--name-field-download-price a {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--secondary);
    color: #fff;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 6px;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

/* Иконка скачивания перед текстом кнопки */
.catalog_front-block .field--name-field-download-price a::before {
    content: '';
    display: block;
    width: 16px;
    height: 20px;
    background-image: url('/sites/all/themes/vesta_theme/image/download.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
}

.catalog_front-block .field--name-field-download-price a:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

/* Изображение курицы (SVG) — теперь строго в первой строке, по нижней границе текста */
.catalog_front-block .node[data-history-node-id="819"] .field--name-field-products-image {
    grid-column: 2;
    grid-row: 1; /* ← Изменено с 1/3 на 1: теперь картинка живет только в строке с текстом */
    display: flex;
    align-items: flex-end; /* ← Изменено на flex-end: выравнивает низ курицы по низу текста */
    justify-content: flex-end;
    line-height: 0;
    overflow: visible;
}

.catalog_front-block .node[data-history-node-id="819"] .field--name-field-products-image img {
    width: 152px;
    height: 152px;
    object-fit: contain;
    display: block;
}

/* ========================================
   PHOTOGALLERY BLOCK — ФОТОГАЛЕРЕЯ
======================================== */

.photogallery-block {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.photogallery-block *,
.photogallery-block *::before,
.photogallery-block *::after {
    box-sizing: border-box;
}

.photogallery-block .contextual {
    display: none !important;
}

/* Заголовок */
.photogallery-block .block-title {
    display: block;
    font-family: var(--font-family);
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    text-align: left;
    line-height: 120%;
    margin: 0 0 50px;
}

/* Сброс Drupal / Views обёрток */
.photogallery-block .region,
.photogallery-block .block,
.photogallery-block .view,
.photogallery-block .view-content,
.photogallery-block .views-row,
.photogallery-block .views-field,
.photogallery-block .field-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Контейнер изображений */
.photogallery-block .field-content {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;

    width: 100%;
    max-width: 100%;

    /*
       gap не используем, потому что в HTML между span есть запятые.
       Отступы делаем через margin у самих карточек.
    */
    gap: 0 !important;

    font-size: 0 !important;
    line-height: 0;
}

/* Desktop — 5 фото в ряд */
.photogallery-block .photoswipe-gallery {
    display: block !important;

    flex: 0 0 calc((100% - 80px) / 5) !important;
    width: calc((100% - 80px) / 5) !important;
    height: 130px !important;

    margin: 0 20px 20px 0 !important;
    padding: 0 !important;
}

.photogallery-block .photoswipe-gallery:nth-of-type(5n) {
    margin-right: 0 !important;
}

/* Ссылка */
.photogallery-block .photoswipe {
    position: relative;
    display: block;

    width: 100% !important;
    height: 130px !important;

    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
    text-decoration: none;

    transition:
            transform 0.35s ease,
            box-shadow 0.35s ease;
}

/* Картинка */
.photogallery-block .photoswipe img {
    display: block;

    width: 100% !important;
    height: 130px !important;
    max-width: 100% !important;

    object-fit: cover;

    margin: 0 !important;
    padding: 0 !important;
    border: 0;

    transition:
            transform 0.45s ease,
            filter 0.45s ease;
}

/* Hover */
.photogallery-block .photoswipe:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.photogallery-block .photoswipe:hover img {
    transform: scale(1.06);
    filter: brightness(0.92) contrast(1.05);
}

.photogallery-block .photoswipe::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
    pointer-events: none;
}

.photogallery-block .photoswipe:hover::after {
    background: rgba(0, 0, 0, 0.12);
}


/* ========================================
   ADAPTIVE
======================================== */

/* до 1199px — 4 фото в ряд */
@media (max-width: 1199px) {
    .photogallery-block {
        padding: 70px 0;
    }

    .photogallery-block .photoswipe-gallery {
        flex: 0 0 calc((100% - 60px) / 4) !important;
        width: calc((100% - 60px) / 4) !important;
        margin: 0 20px 20px 0 !important;
    }

    .photogallery-block .photoswipe-gallery:nth-of-type(n) {
        margin-right: 20px !important;
    }

    .photogallery-block .photoswipe-gallery:nth-of-type(4n) {
        margin-right: 0 !important;
    }
}

/* до 991px — 3 фото в ряд */
@media (max-width: 991px) {
    .photogallery-block {
        padding: 60px 0;
    }

    .photogallery-block .block-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .photogallery-block .photoswipe-gallery {
        flex: 0 0 calc((100% - 40px) / 3) !important;
        width: calc((100% - 40px) / 3) !important;
        margin: 0 20px 20px 0 !important;
    }

    .photogallery-block .photoswipe-gallery:nth-of-type(n) {
        margin-right: 20px !important;
    }

    .photogallery-block .photoswipe-gallery:nth-of-type(3n) {
        margin-right: 0 !important;
    }
}

/* до 767px — 2 фото в ряд */
@media (max-width: 767px) {
    .photogallery-block {
        padding: 50px 0;
    }

    .photogallery-block .block-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .photogallery-block .photoswipe-gallery {
        flex: 0 0 calc((100% - 20px) / 2) !important;
        width: calc((100% - 20px) / 2) !important;
        margin: 0 20px 20px 0 !important;
    }

    .photogallery-block .photoswipe-gallery:nth-of-type(n) {
        margin-right: 20px !important;
    }

    .photogallery-block .photoswipe-gallery:nth-of-type(2n) {
        margin-right: 0 !important;
    }
}

/* до 565px — 1 фото в ряд */
@media (max-width: 565px) {
    .photogallery-block {
        padding: 40px 0;
    }

    .photogallery-block .block-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .photogallery-block .photoswipe-gallery {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    .photogallery-block .photoswipe-gallery:nth-of-type(n) {
        margin-right: 0 !important;
    }
}

/* ===== Feedback block: по ширине стандартного container ===== */

.feedback-block {
    position: relative;
    overflow: hidden;
    background: #f4f4f5;
    min-height: 570px;
    padding: 0;
    box-sizing: border-box;
}

.feedback-block *,
.feedback-block *::before,
.feedback-block *::after {
    box-sizing: border-box;
}

/*
  ВАЖНО:
  .container НЕ трогаем.
  .region-feedback занимает всю ширину стандартного container.
*/
.feedback-block .region-feedback {
    position: relative;
    width: 100%;
    height: 510px;
    margin: 0;
}

/* Левый блок */
#block-vesta-theme-block-feedback-left {
    position: static;
}

.feedback-title {
    position: absolute;
    z-index: 5;
    left: 0;
    top: 68px;
    width: 430px;
    margin: 0;
}

.feedback-title .field__item {
    margin: 0;
    color: var(--black);
    font-size: 36px;
    font-weight: 700;
    line-height: 120%;
}

.feedback-title span {
    display: block;
    color: var(--primary);
}

.feedback-description {
    position: absolute;
    z-index: 5;
    left: 0;
    top: 180px;
    width: 381px;
    margin: 0;
}

.feedback-description .field__item {
    color: var(--black);
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
}

/* Декоративная стрелка */
.feedback-description::after {
    content: "";
    position: absolute;
    left: 0;
    top: 96px;
    width: 104px;
    height: 125px;
    border-left: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    border-bottom-left-radius: 100px;
    opacity: 0.75;
}

.feedback-description::before {
    content: "";
    position: absolute;
    left: 98px;
    top: 217px;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    transform: rotate(-45deg);
    opacity: 0.75;
}

/* Картинка менеджера — сзади контента */
.feedback-image {
    position: absolute;
    z-index: 2;
    left: calc(100% - 940px);
    bottom: -60px;
    width: 347px;
    height: 510px;
    margin: 0;
    pointer-events: none;
}

.feedback-image img {
    display: block;
    width: 347px;
    height: 510px;
    max-width: none;
    object-fit: contain;
}

/* Кнопки мессенджеров поверх изображения */
.feedback-messengers {
    position: absolute;
    z-index: 6;
    left: 145px;
    top: 305px;
    width: 370px;
    margin: 0;
}

.feedback-messengers .field__item {
    display: block;
    margin: 0;
}

.feedback-messengers .field__item + .field__item {
    margin-top: 40px;
}

.feedback-messengers .field__item:nth-child(2) {
    margin-left: 105px;
}

.feedback-messengers .field__item:nth-child(3) {
    margin-left: 0;
}

.feedback-messengers a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    height: 44px;
    padding: 0 45px 0 28px;
    background: #fff;
    border-radius: 4px;
    color: #404652;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

.feedback-messengers .field__item:nth-child(2) a {
    min-width: 205px;
}

.feedback-messengers .field__item:nth-child(3) a {
    min-width: 185px;
}

/* Иконки */
.feedback-messengers a::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%);
}

.feedback-messengers .field__item:nth-child(1) a::after {
    background-image: url("/sites/all/themes/vesta_theme/image/feedback-tg.svg");
}

.feedback-messengers .field__item:nth-child(2) a::after {
    background-image: url("/sites/all/themes/vesta_theme/image/feedback-max.svg");
}

.feedback-messengers .field__item:nth-child(3) a::after {
    background-image: url("/sites/all/themes/vesta_theme/image/feedback-vk.svg");
}

/* Форма справа — прижата к правому краю container */
#block-vesta-theme-feedback-webform {
    position: absolute;
    z-index: 7;
    right: 0;
    top: 68px;
    width: 570px;
    min-height: 385px;
    margin: 0;
    padding: 28px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.04);
}

#block-vesta-theme-feedback-webform form {
    position: relative;
    width: 100%;
    margin: 0;
}

/* Поля формы */
#block-vesta-theme-feedback-webform .form-item {
    margin: 0 0 16px;
}

#block-vesta-theme-feedback-webform input.form-control,
#block-vesta-theme-feedback-webform textarea.form-control {
    display: block;
    width: 100%;
    border: 0;
    outline: none;
    background: #f4f4f6;
    border-radius: 3px;
    color: #30343b;
    font-size: 15px;
    font-weight: 400;
    box-shadow: none;
}

#block-vesta-theme-feedback-webform input.form-control {
    height: 60px;
    padding: 0 20px;
}

#block-vesta-theme-feedback-webform textarea.form-control {
    height: 155px;
    padding: 20px;
    resize: none;
}

#block-vesta-theme-feedback-webform input.form-control::placeholder,
#block-vesta-theme-feedback-webform textarea.form-control::placeholder {
    color: #8a8f99;
    opacity: 1;
}

/*
  Нижняя часть формы.
  Согласие и кнопка НЕ absolute.
  Теперь они идут ниже поля "Ваше сообщение".
*/
#block-vesta-theme-feedback-webform .form-item-privacy {
    display: flex;
    align-items: flex-start;
    float: left;
    width: 310px;
    margin: 2px 0 0;
    gap: 10px;
}

#block-vesta-theme-feedback-webform .form-item-privacy input {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    border: 1px solid #a9adb5;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
}

#block-vesta-theme-feedback-webform .form-item-privacy input:checked {
    background: #e83255;
    border-color: #e83255;
}

#block-vesta-theme-feedback-webform .form-item-privacy .description,
#block-vesta-theme-feedback-webform .form-item-privacy .webform-element-description,
#block-vesta-theme-feedback-webform .form-item-privacy span {
    margin: 0;
    color: #212125;
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
}

/* Кнопка справа, ниже textarea */
#block-vesta-theme-feedback-webform .form-actions {
    float: right;
    margin: 0;
    padding: 0;
}

#block-vesta-theme-feedback-webform .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 158px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #e83255;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

/* Очистка float внутри формы */
#block-vesta-theme-feedback-webform form::after {
    content: "";
    display: block;
    clear: both;
}

#block-vesta-theme-feedback-webform .webform-ajax-form-wrapper,
#block-vesta-theme-feedback-webform .form-textarea-wrapper {
    margin: 0;
    padding: 0;
}

/* Чтобы border не ломал размеры полей */
#block-vesta-theme-feedback-webform *,
#block-vesta-theme-feedback-webform *::before,
#block-vesta-theme-feedback-webform *::after {
    box-sizing: border-box;
}

/* Убираем текст ошибок Drupal / Webform / jQuery validate */
#block-vesta-theme-feedback-webform .form-item--error-message,
#block-vesta-theme-feedback-webform label.error,
#block-vesta-theme-feedback-webform .webform-error,
#block-vesta-theme-feedback-webform .messages--error {
    display: none !important;
}

/* Обычное состояние полей */
#block-vesta-theme-feedback-webform input.form-control,
#block-vesta-theme-feedback-webform textarea.form-control {
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Подсветка обязательных незаполненных полей */
#block-vesta-theme-feedback-webform .form-item--error input.form-control,
#block-vesta-theme-feedback-webform .form-item--error textarea.form-control,
#block-vesta-theme-feedback-webform input.form-control.error,
#block-vesta-theme-feedback-webform textarea.form-control.error,
#block-vesta-theme-feedback-webform input.form-control[aria-invalid="true"],
#block-vesta-theme-feedback-webform textarea.form-control[aria-invalid="true"] {
    border-color: #e83255;
    background-color: #fff5f7;
}

/* Убираем стандартный outline ошибки */
#block-vesta-theme-feedback-webform input.error,
#block-vesta-theme-feedback-webform textarea.error {
    box-shadow: none !important;
}

/* Чекбокс */
#block-vesta-theme-feedback-webform .form-item-privacy input {
    position: relative;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    border: 1px solid #a9adb5;
    border-radius: 2px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Красная подсветка чекбокса при ошибке */
#block-vesta-theme-feedback-webform .form-item--error.form-item-privacy input,
#block-vesta-theme-feedback-webform .form-item-privacy input.error,
#block-vesta-theme-feedback-webform .form-item-privacy input[aria-invalid="true"] {
    border-color: #e83255;
}

/* Галочка в чекбоксе */
#block-vesta-theme-feedback-webform .form-item-privacy input:checked {
    background-color: #e83255;
    border-color: #e83255;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.3L4.3 7.5L11 1' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 8px;
}

/* Убираем красный фон у текста согласия, если ошибка только в чекбоксе */
#block-vesta-theme-feedback-webform .form-item-privacy .description,
#block-vesta-theme-feedback-webform .form-item-privacy .webform-element-description,
#block-vesta-theme-feedback-webform .form-item-privacy span {
    color: #212125;
}

/* Фокус для удобства */
#block-vesta-theme-feedback-webform input.form-control:focus,
#block-vesta-theme-feedback-webform textarea.form-control:focus {
    border-color: #d6d8de;
    background-color: #f4f4f6;
}

#block-vesta-theme-feedback-webform .form-item--error input.form-control:focus,
#block-vesta-theme-feedback-webform .form-item--error textarea.form-control:focus {
    border-color: #e83255;
    background-color: #fff5f7;
}


/* CONTACT BLOCK */

.contacts-block {
    width: 100%;
}

.contacts-section {
    position: relative;
    height: 484px;
    min-height: 484px;
    overflow: hidden;
    background: #f4f5f6;
}

/* Карта на заднем плане */
.contacts-map {
    z-index: 1;
}

.contacts-map,
.contacts-map .region-map,
.contacts-map .block,
.contacts-map .field,
.contacts-map .field__item,
.contacts-map .mapContainer {
    width: 100% !important;
    height: 100% !important;
}

.contacts-map iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    opacity: 0.72;
}

/* Если появляется подсказка поверх карты */
.contacts-map .mapHelp {
    display: none !important;
}

/* Контейнер поверх карты, но сам клики не перехватывает */
.contacts-container {
    z-index: 2;
    height: 484px;
    min-height: 484px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

/* Сама карточка контактов */
.contacts-card {
    width: 400px;
    height: 384px;
    min-height: 384px;
    box-sizing: border-box;
    background: #ffffff;
    padding: 50px 50px 50px 50px;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 6px;
}

.contacts-title {
    margin: 0;
    font-size: 36px;
    line-height: 120%;
    font-weight: 700;
    color: var(--black);
}

.contacts-line {
    width: 100px;
    height: 1px;
    background: var(--gray);
    margin: 25px 0 25px;
}

.contacts-item {
    margin-bottom: 24px;
}

.contacts-phone {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 22px;
    line-height: 140%;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
}

.contacts-phone:hover {
    color: var(--black);
    text-decoration: none;
}

.contacts-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 140%;
    font-weight: 400;
    color: var(--black);
    white-space: nowrap;
}

.contacts-subitem img {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.contacts-subitem a,
.contacts-subitem span {
    color: var(--black);
    text-decoration: none;
}

.contacts-subitem a:hover {
    color: var(--black);
    text-decoration: none;
}

.contacts-socials {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.contacts-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.contacts-socials a:hover {
    opacity: 1;
}

.contacts-socials img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* FOOTER */

.site-footer {
    background: var(--black);
    color: #ffffff;
    padding: 27px 0 20px;
    min-height: 234px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 140%;
}

.site-footer * {
    box-sizing: border-box;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Верхняя часть футера */

.footer-main {
    display: grid;
    grid-template-columns: 210px 260px 220px;
    justify-content: space-between;
    column-gap: 60px;
    min-height: 230px;
}

/* Логотип и описание */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 11px;
}

.footer-logo img {
    display: block;
    width: auto;
    max-width: 100px;
    height: auto;
}

.footer-description {
    max-width: 210px;
    font-size: 12px;
    line-height: 140%;
    font-weight: 400;
    color: var(--gray);
}

/* Заголовки колонок */

.footer-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 140%;
    font-weight: 600;
    color: #ffffff;
}

/* Меню */

.footer-menu {
    padding-top: 0;
}

.footer-menu .region,
.footer-menu nav,
.footer-menu .block {
    margin: 0;
    padding: 0;
}

.footer-menu h2,
.footer-menu .block-title,
.footer-menu .visually-hidden {
    display: none !important;
}

.footer-menu ul,
.footer-menu .nav,
.footer-menu .menu {
    display: grid !important;
    grid-template-columns: 125px 120px;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 35px;
    row-gap: 12px;
    align-items: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li,
.footer-menu .nav-item,
.footer-menu .menu-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu a,
.footer-menu .nav-link {
    display: inline-block;
    padding: 0 !important;
    margin: 0;
    font-size: 16px;
    line-height: 140%;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-menu a:hover,
.footer-menu .nav-link:hover {
    color: #ffffff;
    opacity: 1;
}

/* Контакты */

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 140%;
    font-weight: 400;
    color: #ffffff;
    white-space: nowrap;
}

.footer-contact-item img {
    flex: 0 0 auto;
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-contact-item a,
.footer-contact-item span {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: #ffffff;
    opacity: 1;
}

/* Соцсети */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 7px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: opacity 0.2s ease;
}

.footer-socials a:hover {
    opacity: 1;
}

.footer-socials img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Нижняя часть футера */

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #3b3b43;
    font-size: 12px;
    line-height: 140%;
    font-weight: 400;
    color: #ffffff;
}

.footer-copy,
.footer-bottom a {
    color: #ffffff;
    opacity: 0.82;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: none;
}

.footer-policy {
    text-align: center;
}

.footer-dev {
    text-align: right;
}

/* ==========================================================================
   ОБНОВЛЕННЫЙ МОБИЛЬНЫЙ HEADER-MOB
   ========================================================================== */

#header-mob {
    top: 0;
    width: 100%;
    background: #ffffff; /* Чистый белый фон, как у десктопного хедера */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Легкая аккуратная тень */
    padding: 12px 15px; /* Комфортные отступы для мобильных */
    z-index: 250; /* Должен быть выше основного контента */
    font-family: var(--font-family);
    box-sizing: border-box;
}

/* Фикс для горизонтального тулбара Drupal */
#header-mob.toolbar-horizontal #header-mob {
    top: 0;
}

/* Общие внутренние отступы для колонок */
#header-mob > * {
    padding: 0;
}

/* ---- 1. Кнопка бургер-меню (Навигация) ---- */
#header-mob .col-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f4f5f7; /* Светлая подложка для кликабельности */
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

#header-mob .col-nav a:hover,
#header-mob .col-nav a:active {
    background-color: #e5e7eb;
}

/* Фильтр, чтобы сделать иконку svg (nav.svg) темно-серой под основной цвет */
#header-mob .col-nav img {
    width: 22px;
    height: 22px;
    display: block;
}

/* ---- 2. Логотип ---- */
#header-mob .col-logo a {
    display: block;
    line-height: 0;
}

#header-mob .col-logo img {
    max-height: 40px; /* Аккуратный размер логотипа на мобильных */
    width: auto;
    display: block;
}

/* ---- 3. Телефон ---- */
#header-mob .col-phone .contact-item a {
    font-family: var(--font-family);
    font-weight: 600; /* Полужирный Montserrat SemiBold */
    font-size: 15px;  /* Оптимальный размер для читаемости на смартфонах */
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    padding: 8px 12px;
    border: 1px solid #e4e4e7; /* Тонкая рамка вокруг телефона */
    border-radius: 6px;
    background-color: #fff;
}

#header-mob .col-phone .contact-item a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ---- 4. Мобильное Offcanvas Меню (Шторка) ---- */
.offcanvas {
    --bs-offcanvas-bg: #ffffff; /* Меняем дефолтный серый на чистый белый */
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.offcanvas .offcanvas-title {
    font-family: var(--font-family);
    color: var(--black);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700; /* Меняем на Bold */
    letter-spacing: 0.5px;
}

/* Стилизация ссылок внутри выезжающего меню, если это стандартный .nav */
.offcanvas .nav-link {
    color: var(--black);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f5;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.is-active {
    color: var(--primary);
    background-color: #f5f7ff;
}

/* ==========================================================================
   ОБНОВЛЕННОЕ МОБИЛЬНОЕ МЕНЮ (OFFCANVAS)
   ========================================================================== */

/* ---- Контейнер шторки ---- */
.offcanvas.offcanvas-start {
    --bs-offcanvas-bg: #ffffff; /* Белый фон вместо старого серого #d9d9d9 */
    width: 320px; /* Фиксированная комфортная ширина */
    box-shadow: 8px 0 32px rgba(24, 24, 27, 0.1); /* Мягкая тень */
    border-right: none;
}

/* ---- Шапка меню (Логотип и Кнопка закрытия) ---- */
.offcanvas-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offcanvas-header .logo img {
    max-height: 45px; /* Аккуратный размер логотипа в шторке */
    width: auto;
    display: block;
}

/* Кнопка "крестик" Bootstrap */
.offcanvas-header .btn-close {
    background-color: #f4f5f7;
    opacity: 1;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.offcanvas-header .btn-close:hover {
    background-color: #e5e7eb;
}

/* ---- Тело меню ---- */
.offcanvas-body {
    padding: 24px !important;
    display: flex;
    flex-direction: column;
}

/* Скрываем контекстные ссылки Drupal внутри мобильного меню */
.offcanvas-body .contextual {
    display: none !important;
}

/* ---- Основная навигация (.nav) ---- */
.offcanvas-body .nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 32px 0;
    padding: 0;
    list-style: none;
}

.offcanvas-body .nav-item {
    box-shadow: none; /* Убираем десктопные тени */
    text-align: left; /* Выравнивание по левому краю */
}

.offcanvas-body .nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--black);
    font-family: var(--font-family);
    font-weight: 600; /* Делаем пункты более выразительными */
    font-size: 15px;
    text-transform: uppercase;
    line-height: 140%;
    text-decoration: none;
    border-radius: 8px;
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Состояния Hover и Active для мобильных ссылок */
.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.is-active {
    color: var(--primary) !important;
    background-color: #f5f7ff !important;
}

/* ---- Блок контактов ---- */
.offcanvas-body .contact-item {
    margin-top: auto; /* Прижимает контакты к самому низу шторки */
    padding-top: 24px;
    border-top: 1px solid #f4f4f5;
}

.offcanvas-body .contact-item-label {
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: 400;
}

.offcanvas-body .contact-item-el a {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.offcanvas-body .contact-item-el a:hover {
    color: var(--primary);
}

/* ---- Социальные сети ---- */
.offcanvas-body .msngrs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.offcanvas-body .msngrs .item {
    flex: 1;
    min-width: 75px;
}

.offcanvas-body .msngrs a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: #f4f4f5;
    border-radius: 8px;
    color: transparent; /* Скрываем текст, так как сделаем красивые иконки */
    font-size: 0;
    position: relative;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.offcanvas-body .msngrs a:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

/* Общие стили для иконок соцсетей через псевдоэлементы */
.offcanvas-body .msngrs a::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Таргетинг на конкретные мессенджеры по их ссылкам */
.offcanvas-body .msngrs a[href*="t.me"]::before {
    background-image: url("/sites/all/themes/vesta_theme/image/feedback-tg.svg");
}

.offcanvas-body .msngrs a[href*="vk.com"]::before {
    background-image: url("/sites/all/themes/vesta_theme/image/feedback-vk.svg");
}

.offcanvas-body .msngrs a[href*="max.ru"]::before {
    background-image: url("/sites/all/themes/vesta_theme/image/feedback-max.svg");
}

/* Фикс белого пространства при открытии offcanvas меню */
body.offcanvas-open,
body[style*="overflow: hidden"] {
    padding-right: 0px !important;
}

/* Если у вас фиксированный мобильный хедер тоже дергается/смещается */
#header-mob[style*="padding-right"],
.position-sticky[style*="padding-right"] {
    padding-right: 15px !important; /* Ваше исходное значение padding */
}

/* ==========================================================================
   Страница политики конфиденциальности
   ========================================================================== */

.node__submitted {
    display: none;
}

/* Стилизация основного контейнера страницы Drupal */
.node--type-page {
    padding: 20px 0;
}

/* Контекстный селектор для всего контента страницы */
.node__content {
    font-size: 16px;
    line-height: 1.65;
    color: var(--black); /* Строго ваш черный цвет для всего контента */
}

/* Классические абзацы (без использования .field--name-body p) */
.node__content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: justify; /* Юридическое выравнивание по ширине */
    color: var(--black);
}

/* Иерархия заголовков внутри документа */
.node__content h1,
.node__content h2,
.node__content h3 {
    color: var(--primary); /* Заголовки оставляем фирменными синими для структуры */
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.node__content h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.node__content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #f4f4f5;
    padding-bottom: 8px;
}

.node__content h3 {
    font-size: 1.2rem;
}

/* Списки */
.node__content ul,
.node__content ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 24px;
    color: var(--black);
}

.node__content li {
    margin-bottom: 0.5rem;
}

/* Стилизация ссылок */
.node__content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(50, 69, 127, 0.4);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.node__content a:hover {
    color: var(--secondary); /* При наведении — ваш акцентный красный */
    text-decoration-color: var(--secondary);
}

/* Выделение важного текста */
.node__content strong,
.node__content b {
    font-weight: 600;
    color: var(--black);
}

/* Второстепенный текст (например, дата последнего обновления) */
.node__content .policy-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* PRODUCT PAGE STYLES*/


/* ==========================================================================
   ADAPTIVE — ПОЛНАЯ АДАПТАЦИЯ САЙТА
   ========================================================================== */

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

    /* ---- HEADER ---- */
    .col-phone-one,
    .col-phone-two {
        min-width: 160px;
        padding: 8px 12px;
        gap: 8px;
    }

    .col-phone-one .tel,
    .col-phone-two .tel {
        font-size: 13px;
    }

    .phone-label,
    .col-phone-two .region-callback a {
        font-size: 11px;
    }

    .phone-icon img {
        width: 28px;
        height: 28px;
    }

    .social-item {
        width: 36px;
        height: 36px;
    }

    .social-item img {
        width: 25px;
        height: 25px;
    }

    .about-block .left_column .field--name-field-about-stats {
        gap: 10px;
    }

    .col-download-price .block-block-content {
        padding: 12px 18px;
        gap: 10px;
    }

    .col-download-price .field--name-field-download-price-text {
        font-size: 14px;
    }

    /* ---- НАВИГАЦИЯ ---- */
    .header-bottom .nav-link {
        font-size: 12px;
        padding: 14px 6px;
        letter-spacing: 0;
    }

    /* ---- СЛАЙДЕР ---- */
    #slider-block {
        min-height: 340px;
    }

    #slider-block .view-slayder,
    #slider-block .view-content,
    #slider-block .slick-list,
    #slider-block .slick-track,
    #slider-block .slick-slide,
    #slider-block .views-row,
    #slider-block .node--type-slide {
        min-height: 340px;
    }

    #slider-block .node--type-slide {
        position: relative;
        overflow: hidden;
    }

    #slider-block .field--name-field-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    #slider-block .field--name-field-image img {
        width: 100%;
        height: 100%;
        min-height: 340px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    div#slider-block .view.view-slayder .view-content .node--type-slide .content {
        position: relative;
        z-index: 2;
        min-height: 340px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 0 20px;
    }

    .field--name-field-slide-title h1 {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 14px;
        max-width: 300px;
    }

    .field--name-body p {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .field--name-body p::before {
        width: 20px;
        margin-right: 10px;
    }

    .field--name-field-slide-link a {
        font-size: 15px;
        padding: 13px 26px;
        border-radius: 6px;
    }

    /* ---- ПРЕИМУЩЕСТВА ---- */
    .benefits-block .field--name-field-advantage-title {
        font-size: 28px;
    }

    .benefits-block .view-content {
        gap: 20px;
    }

    .benefits-block .views-field-field-advantage-title .field-content {
        font-size: 15px;
    }

    .benefits-block .views-field-field-advantage-text .field-content {
        font-size: 14px;
    }

    /* ---- О КОМПАНИИ ---- */
    .about-block .field--name-field-about-title {
        font-size: 28px;
    }

    .about-block .block-block-content {
        grid-template-columns: 250px 1fr;
        gap: 16px;
    }

    .about-block .left_column .field--name-field-about-stats > .field__item {
        width: 230px;
    }

    .about-block .field--name-field-stat-number {
        font-size: 28px;
    }

    /* ---- ОБРАТНАЯ СВЯЗЬ ---- */
    .feedback-title .field__item {
        font-size: 28px;
    }

    #block-vesta-theme-feedback-webform {
        width: 460px;
    }

    .feedback-image {
        left: calc(100% - 679px);
        width: 300px;
        bottom: -95px;
    }

    .feedback-image img {
        width: 300px;
    }

    /* ---- КОНТАКТЫ ---- */
    .contacts-card {
        width: 360px;
        padding: 36px 30px;
    }

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

    .contacts-phone {
        font-size: 18px;
    }

    /* ---- ФУТЕР ---- */
    .footer-main {
        grid-template-columns: 180px 220px 180px;
        column-gap: 30px;
    }

    .footer-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   991px — Планшеты
   ========================================================================== */
@media screen and (max-width: 991px) {

    /* ---- ДЕСКТОПНЫЙ ХЕДЕР СКРЫВАЕМ ---- */
    #header {
        display: none !important;
    }

    /* ---- МОБИЛЬНЫЙ ХЕДЕР ---- */
    #header-mob {
        display: flex !important;
        position: sticky;
        top: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 12px 0;
        z-index: 500;
        box-sizing: border-box;
    }

    #header-mob .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 15px;
    }

    /* Burger кнопка */
    #header-mob .col-nav {
        display: flex;
        align-items: center;
    }

    #header-mob .col-nav a,
    #header-mob .col-nav button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: #f4f5f7;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: background 0.2s;
        text-decoration: none;
    }

    #header-mob .col-nav a:hover,
    #header-mob .col-nav button:hover {
        background: #e8eaf0;
    }

    #header-mob .col-nav img {
        width: 22px;
        height: 22px;
        display: block;
    }

    /* Логотип по центру */
    #header-mob .col-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        padding: 0 12px;
    }

    #header-mob .col-logo a {
        display: inline-flex;
        align-items: center;
        line-height: 0;
    }

    #header-mob .col-logo img {
        max-height: 44px;
        width: auto;
        display: block;
    }

    /* Телефон справа */
    #header-mob .col-phone {
        display: flex;
        align-items: center;
    }

    #header-mob .col-phone .contact-item a {
        display: inline-flex;
        align-items: center;
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 14px;
        color: var(--black);
        text-decoration: none;
        padding: 8px 14px;
        border: 1.5px solid #e4e4e7;
        border-radius: 8px;
        background: #fff;
        white-space: nowrap;
        transition: border-color 0.2s, color 0.2s;
    }

    #header-mob .col-phone .contact-item a:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    /* ---- OFFCANVAS МЕНЮ ---- */
    .offcanvas.offcanvas-start {
        width: 300px;
        background: #fff;
        border-right: none;
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.12);
    }

    .offcanvas-header {
        padding: 18px 20px;
        border-bottom: 1px solid #f0f0f2;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .offcanvas-header .logo img {
        max-height: 40px;
        width: auto;
    }

    .offcanvas-header .btn-close {
        width: 36px;
        height: 36px;
        background-color: #f4f5f7;
        border-radius: 8px;
        opacity: 1;
        padding: 8px;
        border: none;
        transition: background 0.2s;
    }

    .offcanvas-header .btn-close:hover {
        background-color: #e5e7eb;
    }

    .offcanvas-body {
        padding: 20px !important;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .offcanvas-body .contextual {
        display: none !important;
    }

    /* Навигация в offcanvas */
    .offcanvas-body .nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .offcanvas-body .nav-item {
        box-shadow: none;
        text-align: left;
        border: none;
        width: 100%;
    }

    .offcanvas-body .nav-link {
        display: block;
        padding: 12px 14px;
        color: var(--black);
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        line-height: 1.4;
        text-decoration: none;
        border-radius: 8px;
        transition: color 0.2s, background 0.2s;
    }

    .offcanvas-body .nav-link:hover,
    .offcanvas-body .nav-link.is-active {
        color: var(--primary) !important;
        background: #f0f3ff !important;
    }

    /* Контакты в offcanvas */
    .offcanvas-body .contact-item {
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #f0f0f2;
    }

    .offcanvas-body .contact-item-label {
        font-size: 12px;
        color: var(--gray);
        margin-bottom: 4px;
        font-family: var(--font-family);
    }

    .offcanvas-body .contact-item-el a {
        font-family: var(--font-family);
        font-weight: 700;
        font-size: 18px;
        color: var(--black);
        text-decoration: none;
        transition: color 0.2s;
    }

    .offcanvas-body .contact-item-el a:hover {
        color: var(--primary);
    }

    /* Соцсети в offcanvas */
    .offcanvas-body .msngrs {
        display: flex;
        gap: 10px;
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .offcanvas-body .msngrs .item {
        flex: 1;
        min-width: 70px;
    }

    .offcanvas-body .msngrs a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 42px;
        background: #f4f4f5;
        border-radius: 8px;
        font-size: 0;
        transition: background 0.2s;
    }

    .offcanvas-body .msngrs a:hover {
        background: #e8eaf0;
    }

    .offcanvas-body .msngrs a::before {
        content: "";
        display: block;
        width: 22px;
        height: 22px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .offcanvas-body .msngrs a[href*="t.me"]::before {
        background-image: url("/sites/all/themes/vesta_theme/image/feedback-tg.svg");
    }

    .offcanvas-body .msngrs a[href*="vk.com"]::before {
        background-image: url("/sites/all/themes/vesta_theme/image/feedback-vk.svg");
    }

    .offcanvas-body .msngrs a[href*="max.ru"]::before {
        background-image: url("/sites/all/themes/vesta_theme/image/feedback-max.svg");
    }

    /* Dropdown в offcanvas */
    #offcanvasNav .nav .dropdown-menu {
        display: none;
        position: static;
        border: none;
        background: transparent;
        padding: 6px 0 6px 16px;
        box-shadow: none;
    }

    #offcanvasNav li.nav-item {
        width: 100%;
    }

    /* ---- СЛАЙДЕР ---- */
    .field--name-field-slide-title h1 {
        font-size: 24px;
    }

    .field--name-body p {
        font-size: 16px;
    }

    .field--name-field-slide-link a {
        font-size: 15px;
        padding: 14px 28px;
    }

    /* ---- КАТАЛОГ: 2 колонки ---- */
    .catalog_front-block {
        padding: 40px 0 50px;
    }

    .catalog_front-block .block-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .catalog_front-block .view-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Последняя карточка на всю ширину */
    .catalog_front-block .node[data-history-node-id="819"] {
        grid-column: 1 / -1;
    }

    .catalog_front-block .node[data-history-node-id="819"] .node__content {
        grid-template-columns: 1fr 152px;
        padding: 28px 32px;
    }

    /* ---- ПРЕИМУЩЕСТВА: 1 колонка ---- */
    .benefits-block {
        padding: 40px 0 50px;
    }

    .benefits-block .field--name-field-advantage-title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .benefits-block .view-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-flow: row;
        gap: 14px;
    }

    .benefits-block .views-row {
        padding: 20px;
    }

    /* ---- О КОМПАНИИ ---- */
    .about-block {
        padding: 40px 0 50px;
    }

    .about-block .field--name-field-about-title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .about-block .block-block-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-block .left_column {
        grid-column: 1;
        grid-row: 2;
    }

    .about-block .right_column {
        grid-column: 1;
        grid-row: 3;
    }

    /* Статистики горизонтально */
    .about-block .left_column .field--name-field-about-stats {
        flex-direction: row;
        gap: 14px;
    }

    .about-block .left_column .field--name-field-about-stats > .field__item {
        width: calc(33.333% - 10px);
        height: auto;
        min-height: 110px;
    }

    /* ---- ФОТОГАЛЕРЕЯ: 4 фото ---- */
    .photogallery-block {
        padding: 40px 0 50px;
    }

    .photogallery-block .block-title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .photogallery-block .field-content {
        gap: 0px;
    }
    .feedback-messengers {
        margin-top: 25px;
    }

    .photogallery-block .photoswipe-gallery {
        width: calc((100% - 36px) / 4);
        flex: 0 0 calc((100% - 36px) / 4);
    }

    /* ---- ОБРАТНАЯ СВЯЗЬ ---- */
    .feedback-block {
        min-height: unset;
    }

    .feedback-block .region-feedback {
        position: static;
        height: auto;
        min-height: unset;
        display: flex;
        flex-direction: column;
        padding: 40px 0;
        gap: 24px;
    }

    .feedback-title,
    .feedback-description,
    .feedback-messengers,
    #block-vesta-theme-feedback-webform {
        position: static;
        width: 100%;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .feedback-title .field__item {
        font-size: 26px;
    }

    .feedback-description {
        width: 100%;
        max-width: 500px;
    }

    .feedback-description::after,
    .feedback-description::before {
        display: none;
    }

    .feedback-image {
        display: none;
    }

    .feedback-messengers .field__item:nth-child(2) {
        margin-left: 0;
    }

    .feedback-messengers .field__item + .field__item {
        margin-top: 14px;
    }

    #block-vesta-theme-feedback-webform {
        width: 100%;
        position: static;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }

    /* ---- КОНТАКТЫ ---- */
    .contacts-section {
        height: auto;
        min-height: unset;
    }

    .contacts-container {
        height: auto;
        min-height: unset;
        padding: 40px 0;
    }

    .contacts-map {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .contacts-card {
        width: 360px;
        height: auto;
        min-height: unset;
        padding: 30px 24px;
    }

    /* ---- ФУТЕР ---- */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        column-gap: 30px;
        row-gap: 30px;
        min-height: unset;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
        padding-top: 16px;
    }

    .footer-dev {
        text-align: center;
    }

    .footer-policy {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* ==========================================================================
   767px — Небольшие планшеты / крупные смартфоны
   ========================================================================== */
@media screen and (max-width: 767px) {

    /* ---- МОБИЛЬНЫЙ ХЕДЕР ---- */
    #header-mob {
        padding: 10px 0;
    }

    #header-mob .col-logo img {
        max-height: 38px;
    }

    #header-mob .col-phone .contact-item a {
        font-size: 13px;
        padding: 7px 12px;
    }

    /* ---- СЛАЙДЕР ---- */
    .field--name-field-slide-title h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .field--name-body p {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .field--name-field-slide-link a {
        font-size: 14px;
        padding: 12px 24px;
    }

    /* ---- КАТАЛОГ: 1 колонка ---- */
    .catalog_front-block .view-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .catalog_front-block .node[data-history-node-id="819"] {
        grid-column: 1;
    }

    .catalog_front-block .node[data-history-node-id="819"] .node__content {
        grid-template-columns: 1fr 110px;
        padding: 20px 16px;
    }

    .catalog_front-block .node[data-history-node-id="819"] .field--name-field-products-image img {
        width: 100px;
        height: 100px;
    }

    .catalog_front-block .block-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .catalog_front-block .node--type-products:not([data-history-node-id="819"]) .field--name-field-products-title {
        font-size: 14px;
        margin: 14px 12px;
    }

    /* ---- ПРЕИМУЩЕСТВА ---- */
    .benefits-block .field--name-field-advantage-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .benefits-block .views-row {
        padding: 16px;
        column-gap: 14px;
    }

    .benefits-block .views-field-field-advantage-title .field-content {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .benefits-block .views-field-field-advantage-text .field-content {
        font-size: 13px;
    }

    .benefits-block .views-field-field-advantage-image .field-content {
        width: 64px;
        height: 64px;
    }

    /* ---- О КОМПАНИИ ---- */
    .about-block .field--name-field-about-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    /* Статистики вертикально */
    .about-block .left_column .field--name-field-about-stats {
        flex-direction: column;
        gap: 10px;
    }

    .about-block .left_column .field--name-field-about-stats > .field__item {
        width: 100%;
        height: auto;
        min-height: 90px;
    }

    /* Правая колонка: 1 колонка */
    .about-block .right_column {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-block .field--name-field-about-photo {
        grid-column: 1;
        grid-row: 1;
    }

    .about-block .field--name-field-about-photo-right {
        grid-column: 1;
        grid-row: 2;
    }

    .about-block .field--name-field-about-text {
        grid-column: 1;
        grid-row: 3;
        padding: 18px 20px;
        font-size: 14px;
    }

    .about-block .field--name-field-stat-number {
        font-size: 26px;
    }

    .about-block .field--name-field-stat-label {
        font-size: 13px;
    }

    /* ---- ФОТОГАЛЕРЕЯ: 3 фото ---- */
    .photogallery-block .block-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .photogallery-block .photoswipe-gallery {
        width: calc((100% - 24px) / 3);
        flex: 0 0 calc((100% - 24px) / 3);
    }

    .photogallery-block .photoswipe img {
        height: 100px;
    }

    /* ---- ОБРАТНАЯ СВЯЗЬ ---- */
    .feedback-title .field__item {
        font-size: 22px;
    }

    .feedback-description .field__item {
        font-size: 14px;
    }

    .feedback-messengers a {
        min-width: 180px;
        font-size: 14px;
    }

    #block-vesta-theme-feedback-webform {
        padding: 24px 20px;
    }

    /* ---- КОНТАКТЫ ---- */
    .contacts-section {
        height: auto;
        min-height: 420px;
    }

    .contacts-container {
        padding: 30px 0;
    }

    .contacts-card {
        width: 100%;
        height: auto;
        min-height: unset;
        padding: 24px 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .contacts-map {
        opacity: 0.4;
    }

    .contacts-title {
        font-size: 24px;
    }

    .contacts-phone {
        font-size: 18px;
    }

    /* ---- ФУТЕР ---- */
    .footer-main {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-menu ul,
    .footer-menu .nav,
    .footer-menu .menu {
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
        padding-top: 16px;
    }

    .footer-policy,
    .footer-dev {
        text-align: center;
        grid-column: 1;
    }
}

/* ==========================================================================
   576px — Смартфоны
   ========================================================================== */
@media screen and (max-width: 576px) {

    /* ---- МОБИЛЬНЫЙ ХЕДЕР ---- */
    #header-mob {
        padding: 8px 0;
    }

    #header-mob .col-logo img {
        max-height: 34px;
    }

    #header-mob .col-nav a,
    #header-mob .col-nav button {
        width: 36px;
        height: 36px;
    }

    #header-mob .col-nav img {
        width: 18px;
        height: 18px;
    }

    /* Телефон скрываем — оставляем только бургер и лого */
    #header-mob .col-phone {
        display: none;
    }

    /* ---- OFFCANVAS ---- */
    .offcanvas.offcanvas-start {
        width: 100%;
        max-width: 320px;
    }

    /* ---- СЛАЙДЕР ---- */
    #slider-block {
        min-height: 340px;
    }

    #slider-block .view-slayder,
    #slider-block .view-content,
    #slider-block .slick-list,
    #slider-block .slick-track,
    #slider-block .slick-slide,
    #slider-block .views-row,
    #slider-block .node--type-slide {
        min-height: 340px;
    }

    #slider-block .node--type-slide {
        position: relative;
        overflow: hidden;
    }

    #slider-block .field--name-field-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    #slider-block .field--name-field-image img {
        width: 100%;
        height: 100%;
        min-height: 340px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    div#slider-block .view.view-slayder .view-content .node--type-slide .content {
        position: relative;
        z-index: 2;
        min-height: 340px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 0 20px;
    }

    .field--name-field-slide-title h1 {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 14px;
        max-width: 300px;
    }

    .field--name-body p {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 18px;
    }

    .field--name-body p::before {
        width: 20px;
        margin-right: 10px;
    }

    .field--name-field-slide-link a {
        font-size: 15px;
        padding: 13px 26px;
        border-radius: 6px;
    }

    /* ---- КАТАЛОГ ---- */
    .catalog_front-block {
        padding: 30px 0 40px;
    }

    .catalog_front-block .block-title {
        font-size: 18px;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .catalog_front-block .view-content {
        gap: 10px;
    }

    /* Последняя карточка: SVG скрываем, кнопка на всю ширину */
    .catalog_front-block .node[data-history-node-id="819"] .node__content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 20px 16px;
        gap: 12px;
    }

    .catalog_front-block .node[data-history-node-id="819"] .field--name-field-products-image {
        display: none;
    }

    .catalog_front-block .node[data-history-node-id="819"] .field--name-field-products-title {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        align-self: start;
        font-size: 14px;
    }

    .catalog_front-block .node[data-history-node-id="819"] .field--name-field-download-price {
        grid-column: 1;
        grid-row: 2;
    }

    .catalog_front-block .field--name-field-download-price a {
        font-size: 14px;
        padding: 12px 16px;
        width: 100%;
        justify-content: center;
        border-radius: 6px;
    }

    .catalog_front-block .node--type-products:not([data-history-node-id="819"]) .field--name-field-products-image img {
        height: 170px;
    }

    .catalog_front-block .node--type-products:not([data-history-node-id="819"]) .field--name-field-products-title {
        font-size: 14px;
        margin: 12px 12px 14px;
    }

    /* ---- ПРЕИМУЩЕСТВА ---- */
    .benefits-block {
        padding: 30px 0 40px;
    }

    .benefits-block .field--name-field-advantage-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .benefits-block .views-row {
        padding: 14px;
        column-gap: 12px;
    }

    .benefits-block .views-field-field-advantage-image .field-content {
        width: 54px;
        height: 54px;
    }

    .benefits-block .views-field-field-advantage-title .field-content {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .benefits-block .views-field-field-advantage-text .field-content {
        font-size: 12px;
    }

    /* ---- О КОМПАНИИ ---- */
    .about-block {
        padding: 30px 0 40px;
    }

    .about-block .field--name-field-about-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .about-block .left_column .field--name-field-about-stats > .field__item {
        min-height: 80px;
    }

    .about-block .field--name-field-stat-number {
        font-size: 24px;
    }

    .about-block .field--name-field-stat-label {
        font-size: 12px;
    }

    .about-block .left_column .paragraph--type--statistic {
        padding: 12px 16px;
    }

    .about-block .field--name-field-about-text {
        padding: 16px;
        font-size: 13px;
    }

    /* ---- ФОТОГАЛЕРЕЯ: 2 фото ---- */
    .photogallery-block {
        padding: 30px 0 40px;
    }

    .photogallery-block .block-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .photogallery-block .photoswipe-gallery {
        width: calc((100% - 12px) / 2);
        flex: 0 0 calc((100% - 12px) / 2);
    }

    .photogallery-block .photoswipe img {
        height: 90px;
    }

    /* ---- ОБРАТНАЯ СВЯЗЬ ---- */
    .feedback-title .field__item {
        font-size: 20px;
    }

    .feedback-description .field__item {
        font-size: 13px;
    }

    .feedback-messengers a {
        min-width: 160px;
        font-size: 13px;
        height: 40px;
    }

    #block-vesta-theme-feedback-webform {
        padding: 18px 14px;
        border-radius: 4px;
    }

    #block-vesta-theme-feedback-webform input.form-control {
        height: 50px;
    }

    #block-vesta-theme-feedback-webform textarea.form-control {
        height: 120px;
    }

    #block-vesta-theme-feedback-webform .form-item-privacy {
        float: none;
        width: 100%;
        margin-bottom: 14px;
    }

    #block-vesta-theme-feedback-webform .form-actions {
        float: none;
        width: 100%;
    }

    #block-vesta-theme-feedback-webform .form-submit {
        width: 100%;
        height: 46px;
        font-size: 15px;
    }

    /* ---- КОНТАКТЫ ---- */
    .contacts-title {
        font-size: 22px;
    }

    .contacts-phone {
        font-size: 16px;
    }

    .contacts-subitem {
        font-size: 14px;
    }

    .contacts-line {
        margin: 18px 0;
    }

    /* ---- ФУТЕР ---- */
    .site-footer {
        padding: 24px 0 16px;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-menu ul,
    .footer-menu .nav,
    .footer-menu .menu {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .footer-menu a,
    .footer-menu .nav-link {
        font-size: 14px;
    }

    .footer-contact-item a,
    .footer-contact-item span {
        font-size: 14px;
    }

    .footer-bottom {
        padding-top: 14px;
        font-size: 11px;
    }
}

/* ==========================================================================
   КОНТАКТЫ — мобильная адаптация
   Карточка сверху, карта отдельным блоком снизу
   ========================================================================== */
@media screen and (max-width: 767px) {

    .contacts-section {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: unset;
        background: #fff;
    }

    .contacts-container {
        order: 1;
        width: 100%;
        height: auto;
        min-height: unset;
        padding: 30px 15px 20px;
        z-index: 2;
    }

    .contacts-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: unset;
        padding: 24px 20px;
        border-radius: 12px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
        background: #fff;
    }

    .contacts-map {
        order: 2;
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1;
        z-index: 1;
    }

    .contacts-map .region-map,
    .contacts-map .block,
    .contacts-map .field,
    .contacts-map .field__item {
        width: 100%;
        height: auto;
    }

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

    .contacts-map iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

    .contacts-map .mapHelp {
        display: none;
    }

    .contacts-title {
        font-size: 24px;
    }

    .contacts-phone {
        font-size: 18px;
    }
}

@media screen and (max-width: 576px) {

    #slider-block .slick-prev,
    #slider-block .slick-next {
        display: none !important;
    }

    div#slider-block .view.view-slayder .view-content .node--type-slide .content {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   HOVER EFFECTS — единый мягкий стиль сайта, плавная версия
   Добавлено в конец файла, чтобы не ломать уже заданные hover-состояния.
   Использует существующую палитру: --primary, --secondary, --black, --gray.
   ========================================================================== */

:root {
    --hover-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --hover-shadow-soft: 0 10px 28px rgba(50, 69, 127, 0.14);
    --hover-shadow-strong: 0 16px 38px rgba(24, 24, 27, 0.16);
    --hover-bg-light: #f5f7ff;
}

/* Видимый фокус для клавиатурной навигации */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.form-submit:focus-visible {
    outline: 3px solid rgba(50, 69, 127, 0.28);
    outline-offset: 3px;
}

/* Hover только для устройств, где действительно есть курсор */
@media (hover: hover) and (pointer: fine) {

    /* ---- HEADER: логотип, телефоны, соцсети ---- */

    .logo a,
    #header-mob .col-logo a,
    .footer-logo {
        transition: transform 0.42s var(--hover-ease), filter 0.42s var(--hover-ease);
    }

    .logo a:hover,
    #header-mob .col-logo a:hover,
    .footer-logo:hover {
        transform: translateY(-2px);
        filter: drop-shadow(0 8px 12px rgba(50, 69, 127, 0.12));
    }

    .col-phone-one,
    .col-phone-two {
        transition:
                background-color 0.42s var(--hover-ease),
                box-shadow 0.42s var(--hover-ease),
                transform 0.42s var(--hover-ease);
    }

    .col-phone-one:hover,
    .col-phone-two:hover {
        background-color: var(--hover-bg-light);
        box-shadow: 0 8px 24px rgba(50, 69, 127, 0.10);
        transform: translateY(-2px);
    }

    .col-phone-one:hover .phone-label,
    .col-phone-two:hover .phone-label {
        color: var(--primary);
    }

    .social-item,
    .contacts-socials a,
    .footer-socials a,
    .offcanvas-body .msngrs a {
        transition:
                transform 0.48s var(--hover-ease),
                opacity 0.48s var(--hover-ease),
                background-color 0.48s var(--hover-ease),
                box-shadow 0.48s var(--hover-ease),
                filter 0.48s var(--hover-ease);
    }

    .social-item:hover,
    .contacts-socials a:hover,
    .footer-socials a:hover,
    .offcanvas-body .msngrs a:hover {
        transform: translateY(-3px) scale(1.06);
        opacity: 1;
        filter: drop-shadow(0 8px 10px rgba(50, 69, 127, 0.16));
    }

    /* ---- Кнопка "Скачать прайс" в шапке ---- */

    .col-download-price .block-block-content {
        transform: translateY(0);
        backface-visibility: hidden;
        will-change: transform, box-shadow, background-color;
        transition:
                background-color 0.46s var(--hover-ease),
                box-shadow 0.46s var(--hover-ease),
                transform 0.46s var(--hover-ease),
                opacity 0.46s var(--hover-ease);
    }

    /* Важно: иконка двигается вместе с кнопкой, без отдельной animation.
       Так исчезает ощущение, что она поднимается с запозданием. */
    .col-download-price .block-block-content::before {
        transform: translateY(0);
        backface-visibility: hidden;
        will-change: transform;
        transition:
                transform 0.46s var(--hover-ease),
                opacity 0.46s var(--hover-ease),
                filter 0.46s var(--hover-ease);
    }

    .col-download-price .field--name-field-download-price-text {
        transition:
                transform 0.46s var(--hover-ease),
                opacity 0.46s var(--hover-ease);
    }

    .col-download-price .block-block-content:hover {
        opacity: 1;
        background-color: #d9304a;
        box-shadow: 0 14px 34px rgba(233, 56, 83, 0.26);
        transform: translateY(-2px);
    }

    .col-download-price .block-block-content:hover::before {
        transform: translateY(0);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
    }

    .col-download-price .block-block-content:hover .field--name-field-download-price-text {
        transform: translateX(1px);
    }

    /* ---- Главное меню ---- */

    .header-bottom .nav-item {
        position: relative;
        transition: background-color 0.42s var(--hover-ease);
    }

    .header-bottom .nav-link {
        position: relative;
        transition:
                color 0.42s var(--hover-ease),
                background-color 0.42s var(--hover-ease),
                box-shadow 0.42s var(--hover-ease),
                transform 0.42s var(--hover-ease);
    }

    .header-bottom .nav-link:hover,
    .header-bottom .nav-link.is-active {
        color: var(--primary);
        background: linear-gradient(180deg, #ffffff 0%, var(--hover-bg-light) 100%);
        box-shadow: inset 0 -3px 0 var(--primary);
        transform: translateY(-1px);
    }

    .region-navigation .dropdown-menu {
        border: 0;
        border-radius: 0 0 10px 10px;
        box-shadow: var(--hover-shadow-soft);
        overflow: hidden;
    }

    .region-navigation .dropdown-menu .nav-link:hover {
        padding-left: 18px;
        background-color: var(--hover-bg-light);
    }

    /* ---- Слайдер: стрелки, точки, CTA ---- */

    button.slick-arrow {
        border-radius: 50%;
        transition:
                background-color 0.42s var(--hover-ease),
                box-shadow 0.42s var(--hover-ease),
                transform 0.42s var(--hover-ease),
                opacity 0.42s var(--hover-ease);
    }

    button.slick-arrow:hover {
        background-color: rgba(255, 255, 255, 0.86);
        box-shadow: 0 10px 26px rgba(24, 24, 27, 0.16);
        transform: translateY(-50%) scale(1.08);
    }

    ul.slick-dots li button {
        transition:
                background-color 0.48s var(--hover-ease),
                transform 0.48s var(--hover-ease),
                box-shadow 0.48s var(--hover-ease);
    }

    ul.slick-dots li button:hover {
        background-color: var(--primary);
        transform: scale(1.25);
        box-shadow: 0 0 0 5px rgba(50, 69, 127, 0.10);
    }

    .field--name-field-slide-link a:hover {
        background-color: #d9304a;
        box-shadow: 0 12px 30px rgba(233, 56, 83, 0.30);
        transform: translateY(-2px);
    }

    #scrollToTop:hover {
        transform: translateY(-4px);
        filter: drop-shadow(0 10px 14px rgba(50, 69, 127, 0.18));
    }

    /* ---- Карточки преимуществ ---- */

    .benefits-block .views-row:hover {
        box-shadow: var(--hover-shadow-soft);
        transform: translateY(-5px);
    }

    .benefits-block .views-row:hover .views-field-field-advantage-image .field-content {
        box-shadow: inset 0 0 0 1px rgba(50, 69, 127, 0.08);
    }

    /* ---- О компании ---- */

    .about-block .field--name-field-about-text {
        border-left: 3px solid transparent;
        transition:
                border-color 0.44s var(--hover-ease),
                box-shadow 0.44s var(--hover-ease),
                transform 0.44s var(--hover-ease);
    }

    .about-block .field--name-field-about-text:hover {
        border-left-color: var(--primary);
        box-shadow: var(--hover-shadow-soft);
        transform: translateY(-3px);
    }

    .about-block .left_column .field--name-field-about-stats > .field__item:hover {
        box-shadow: 0 10px 28px rgba(50, 69, 127, 0.16);
        transform: translateY(-4px);
    }

    /* ---- Каталог на главной ---- */

    .catalog_front-block .node {
        will-change: transform;
    }

    .catalog_front-block .node:hover {
        box-shadow: var(--hover-shadow-strong);
        transform: translateY(-6px);
    }

    .catalog_front-block .node--type-products:not([data-history-node-id="819"]):hover .field--name-field-products-title {
        color: var(--secondary);
        border-left-color: var(--primary);
    }

    .catalog_front-block .node[data-history-node-id="819"]:hover .field--name-field-products-image img {
        transform: translateY(-4px) rotate(-2deg) scale(1.03);
    }

    .catalog_front-block .node[data-history-node-id="819"] .field--name-field-products-image img {
        transition: transform 0.48s var(--hover-ease);
    }

    .catalog_front-block .field--name-field-download-price a:hover {
        opacity: 1;
        background-color: #d9304a;
        box-shadow: 0 10px 24px rgba(233, 56, 83, 0.24);
        transform: translateY(-2px);
    }

    /* ---- Фотогалерея ---- */

    .photogallery-block .photoswipe:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 34px rgba(24, 24, 27, 0.18);
    }

    .photogallery-block .photoswipe:hover::after {
        background: linear-gradient(
                180deg,
                rgba(50, 69, 127, 0.04) 0%,
                rgba(24, 24, 27, 0.18) 100%
        );
    }

    /* ---- Страница товара ---- */

    .product-teaser .product-teaser-image img {
        transition:
                transform 0.48s var(--hover-ease),
                box-shadow 0.48s var(--hover-ease),
                filter 0.48s var(--hover-ease);
    }

    .product-teaser .product-teaser-image .current-slide img:hover {
        transform: scale(1.025);
        box-shadow: var(--hover-shadow-soft);
    }

    .product-teaser .product-teaser-image .nav-slide .element:hover img {
        transform: translateY(-3px) scale(1.04);
        filter: brightness(0.96) contrast(1.04);
    }

    /* ---- Блок обратной связи ---- */

    .feedback-messengers a {
        transition:
                color 0.42s var(--hover-ease),
                box-shadow 0.42s var(--hover-ease),
                transform 0.42s var(--hover-ease),
                background-color 0.42s var(--hover-ease);
    }

    .feedback-messengers a:hover {
        color: var(--primary);
        background-color: #ffffff;
        box-shadow: 0 14px 30px rgba(50, 69, 127, 0.16);
        transform: translateY(-4px);
    }

    .feedback-messengers a::after {
        transition: transform 0.42s var(--hover-ease), filter 0.42s var(--hover-ease);
    }

    .feedback-messengers a:hover::after {
        transform: translateY(-50%) scale(1.12);
        filter: drop-shadow(0 6px 8px rgba(50, 69, 127, 0.18));
    }

    #block-vesta-theme-feedback-webform {
        transition:
                box-shadow 0.44s var(--hover-ease),
                transform 0.44s var(--hover-ease);
    }

    #block-vesta-theme-feedback-webform:hover {
        box-shadow: 0 22px 52px rgba(24, 24, 27, 0.08);
        transform: translateY(-2px);
    }

    #block-vesta-theme-feedback-webform input.form-control:hover,
    #block-vesta-theme-feedback-webform textarea.form-control:hover {
        border-color: #d6d8de;
        background-color: #ffffff;
    }

    #block-vesta-theme-feedback-webform .form-submit {
        transition:
                background-color 0.42s var(--hover-ease),
                box-shadow 0.42s var(--hover-ease),
                transform 0.42s var(--hover-ease);
    }

    #block-vesta-theme-feedback-webform .form-submit:hover {
        background-color: #d9304a;
        box-shadow: 0 12px 28px rgba(233, 56, 83, 0.28);
        transform: translateY(-2px);
    }

    #block-vesta-theme-feedback-webform .form-item-privacy input:hover {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(50, 69, 127, 0.08);
    }

    /* ---- Контакты ---- */

    .contacts-card {
        transition:
                box-shadow 0.32s var(--hover-ease),
                transform 0.32s var(--hover-ease);
    }

    .contacts-card:hover {
        box-shadow: 0 18px 45px rgba(24, 24, 27, 0.14);
        transform: translateY(-4px);
    }

    .contacts-phone,
    .contacts-subitem a {
        transition: color 0.48s var(--hover-ease), transform 0.48s var(--hover-ease);
    }

    .contacts-phone:hover,
    .contacts-subitem a:hover {
        color: var(--primary);
        transform: translateX(2px);
    }

    .contacts-map iframe {
        transition: opacity 0.48s var(--hover-ease), filter 0.48s var(--hover-ease);
    }

    .contacts-section:hover .contacts-map iframe {
        opacity: 0.82;
        filter: saturate(1.06);
    }

    /* ---- FOOTER ---- */

    .site-footer a {
        transition:
                color 0.48s var(--hover-ease),
                opacity 0.48s var(--hover-ease),
                transform 0.48s var(--hover-ease);
    }

    .footer-menu a,
    .footer-menu .nav-link,
    .footer-bottom a,
    .footer-contact-item a {
        position: relative;
    }

    .footer-menu a:hover,
    .footer-menu .nav-link:hover,
    .footer-bottom a:hover,
    .footer-contact-item a:hover {
        color: #ffffff;
        opacity: 1;
        transform: translateX(3px);
    }

    .footer-menu a::after,
    .footer-menu .nav-link::after,
    .footer-bottom a::after,
    .footer-contact-item a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0;
        height: 1px;
        background-color: var(--secondary);
        transition: width 0.48s var(--hover-ease);
    }

    .footer-menu a:hover::after,
    .footer-menu .nav-link:hover::after,
    .footer-bottom a:hover::after,
    .footer-contact-item a:hover::after {
        width: 100%;
    }

    /* ---- Мобильный header/offcanvas при тестировании на desktop ---- */

    #header-mob .col-nav a:hover,
    .offcanvas-header .btn-close:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(50, 69, 127, 0.12);
    }

    .offcanvas-body .nav-link:hover,
    .offcanvas-body .nav-link.is-active {
        transform: translateX(4px);
        box-shadow: inset 3px 0 0 var(--primary);
    }
}

/* Пользователям с отключенной анимацией — без лишнего движения */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}


/* ---- FIX: синхронное движение иконки в кнопке "Скачать прайс" ---- */
@media (hover: hover) and (pointer: fine) {
    .col-download-price .block-block-content:hover::before {
        animation: none !important;
        transform: translateY(0) !important;
    }
}

/* ========================================
   COOKIE DISCLAIMER — WITHOUT !important
   Desktop: 915x110
======================================== */

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

body #vpa-short-wrapper.vpa-wrapper.vpa-slide.vpa-visible {
    position: fixed;

    left: 50%;
    right: auto;
    bottom: 0;
    top: auto;

    transform: translateX(-50%);

    width: 915px;
    min-width: 0;
    max-width: calc(100vw - 30px);

    height: 110px;
    min-height: 110px;
    max-height: 110px;

    padding: 26px 26px 22px 28px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 38px;

    background: #f4f4f5;
    box-shadow: none;

    font-family: var(--font-family, "Montserrat", sans-serif);
    box-sizing: border-box;

    overflow: hidden;
    z-index: 9999;
}

/* Убираем крестик */
body #vpa-short-wrapper .vpa-close-zone {
    display: none;
}

/* Текстовая часть */
body #vpa-short-wrapper .vpa-content {
    flex: 1 1 auto;
    width: auto;
    max-width: 660px;
    min-width: 0;

    margin: 0;
    padding: 0;
}

/* Текст */
body #vpa-short-wrapper .vpa-content p {
    margin: 0;

    color: #303036;
    font-family: var(--font-family, "Montserrat", sans-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
}

/* Ссылка */
body #vpa-short-wrapper .vpa-content a {
    color: inherit;
    text-decoration: none;
}

body #vpa-short-wrapper .vpa-content a:hover {
    color: var(--primary, #32457f);
    text-decoration: underline;
}

/* Зона кнопки */
body #vpa-short-wrapper .vpa-actions {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
    max-width: 160px;

    margin: 0;
    padding: 0;
}

/* Кнопка */
body #vpa-short-wrapper #vpa-btn-ok {
    width: 160px;
    min-width: 160px;
    max-width: 160px;

    height: 56px;
    min-height: 56px;
    max-height: 56px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 5px;

    background: var(--secondary, #e93853);
    color: #ffffff;

    font-family: var(--font-family, "Montserrat", sans-serif);
    font-size: 0;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    box-shadow: none;

    transition:
            background-color 0.35s ease,
            transform 0.35s ease,
            box-shadow 0.35s ease;
}

body #vpa-short-wrapper #vpa-btn-ok::before {
    content: "Принять";
    font-size: 18px;
    font-weight: 400;
}

body #vpa-short-wrapper #vpa-btn-ok:hover {
    background: #d92f49;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(233, 56, 83, 0.18);
}

body #vpa-short-wrapper #vpa-btn-ok:active {
    transform: translateY(0);
    box-shadow: none;
}

.webform-submission-callback-form > .alert.alert-error.alert-danger {
    display: none !important;
}

/* ========================================
   ADAPTIVE
======================================== */

@media (max-width: 914px) {
    body #vpa-short-wrapper.vpa-wrapper.vpa-slide.vpa-visible {
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);

        height: auto;
        min-height: 96px;
        max-height: 140px;

        padding: 20px;
        gap: 24px;
    }

    body #vpa-short-wrapper .vpa-content {
        max-width: none;
    }

    body #vpa-short-wrapper .vpa-content p {
        font-size: 15px;
        line-height: 1.35;
    }

    body #vpa-short-wrapper .vpa-actions {
        flex: 0 0 145px;
        width: 145px;
        min-width: 145px;
        max-width: 145px;
    }

    body #vpa-short-wrapper #vpa-btn-ok {
        width: 145px;
        min-width: 145px;
        max-width: 145px;

        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }

    body #vpa-short-wrapper #vpa-btn-ok::before {
        font-size: 16px;
    }
}

/* На 767px НЕ переводим в колонку, чтобы блок не занимал всю страницу */
@media (max-width: 767px) {
    body #vpa-short-wrapper.vpa-wrapper.vpa-slide.vpa-visible {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);

        min-height: 88px;
        max-height: 132px;

        padding: 16px;
        gap: 16px;
    }

    body #vpa-short-wrapper .vpa-content p {
        font-size: 13px;
        line-height: 1.35;
    }

    body #vpa-short-wrapper .vpa-actions {
        flex: 0 0 120px;
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }

    body #vpa-short-wrapper #vpa-btn-ok {
        width: 120px;
        min-width: 120px;
        max-width: 120px;

        height: 46px;
        min-height: 46px;
        max-height: 46px;
    }

    body #vpa-short-wrapper #vpa-btn-ok::before {
        font-size: 15px;
    }
}

/* Только на маленьких экранах кнопку ставим вниз */
@media (max-width: 520px) {
    body #vpa-short-wrapper.vpa-wrapper.vpa-slide.vpa-visible {
        flex-direction: column;
        align-items: flex-start;

        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);

        min-height: auto;
        max-height: none;

        padding: 16px 14px;
        gap: 12px;
    }

    body #vpa-short-wrapper .vpa-actions {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: none;
    }

    body #vpa-short-wrapper #vpa-btn-ok {
        width: 100%;
        min-width: 0;
        max-width: none;

        height: 44px;
        min-height: 44px;
        max-height: 44px;
    }
}