html,
body {
    height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
}

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

body.modal-open {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding-right: 0 !important;
}

#main {
    flex: 1;
}

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

.header-bottom {
    background: #ccc;
}

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

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

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

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

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

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

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

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

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

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

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

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


/*HEADER STYLES*/


/*FONTS*/

/* ===== INTER ===== */
@font-face {
    font-family: "Inter";
    src: url("../font/Inter-Regular.woff2") format("woff2"),
    url("../font/Inter-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: "Inter";
    src: url("../font/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../font/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../font/Inter-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ===== MANROPE ===== */
@font-face {
    font-family: "Manrope";
    src: url("../font/Manrope-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../font/Manrope-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== ROBOTO ===== */
@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== CORMORANT GARAMOND ===== */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../font/CormorantGaramond-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    --font-family: "Inter", sans-serif;
    --second-family: "Manrope", sans-serif;
    --third-family: "Roboto", sans-serif;
    --font3: "Cormorant Garamond", sans-serif;

    --black: #242425;
    --medium-black: #3a3b3d;
    --red: #d30000;
    --dark-red: #b60000;
    --blue: #1e297e;
    --light-blue: #f5f8fd;
    --white: #fff;
    --light-black: #bababa;
}

/* ===== БАЗОВЫЙ ШРИФТ САЙТА ===== */
body {
    font-family: var(--font-family);
    font-weight: 400;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#scrollToTop {
    width: 48px;
    height: 48px;
    background: none;
    text-indent: 0;
    font-size: 0;
    border: 0px;
    outline: 0px;
    display: flex;
    bottom: 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;
}

/* PRODUCT PAGE STYLES*/

/* HEADER BLCOK CSS */

/* ========================================
   HEADER TOP (тёмно-синяя полоса)
   ======================================== */

.header-top {
    background-color: var(--blue);
    padding: 8px 0;
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.header-top__address,
.header-top__mail,
.header-top__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.header-top__mail:hover,
.header-top__phone:hover {
    color: #fff;
    opacity: 0.85;
}

.header-top__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-top__icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.header-top__right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Убираем разделитель */
.header-top__divider {
    display: none;
}

/* Соцсети */
.header-top__socials {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-top__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.header-top__social:hover {
    opacity: 0.85;
}

.header-top__social img {
    width: 25px;
    height: 25px;
}

/* ========================================
   HEADER BOTTOM (белая полоса)
   ======================================== */

.header-bottom {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 0;
}

.header-bottom__inner {
    display: flex;
    align-items: center;
    gap: 100px;
}

/* Логотип */
.header-bottom__logo {
    flex-shrink: 0;
}

.header-bottom__logo .logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.header-bottom__logo .logo__name {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.header-bottom__logo .logo__tagline {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
}

/* Навигация */
.header-bottom__nav {
    flex: 1;
}

.header-bottom__nav .region-navigation {
    display: flex;
    align-items: center;
}

.header-bottom__nav ul.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-bottom__nav .nav-item {
    position: relative;
}

.header-bottom__nav .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header-bottom__nav .nav-link:hover,
.header-bottom__nav .nav-link.is-active {
    color: #1e2d6b;
}

/* Chevron для выпадающего меню */
.header-bottom__nav .dropdown-toggle::after {
    display: none;
}

/*.header-bottom__nav .dropdown-toggle {*/
/*    background-image: url("../image/chevron-down.svg");*/
/*    background-repeat: no-repeat;*/
/*    background-position: right 14px center;*/
/*    background-size: 14px;*/
/*    padding-right: 30px;*/
/*}*/

/* Выпадающее меню */
.header-bottom__nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 100;
}

.header-bottom__nav .dropdown-menu li {
    list-style: none;
}

.header-bottom__nav .dropdown-item {
    display: block;
    padding: 9px 18px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header-bottom__nav .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #1e2d6b;
}

.header-bottom__nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Кнопки действий */
.header-bottom__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Кнопка поиска */
.header-bottom__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #292a2c;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.header-bottom__search-btn:hover {
    border-color: #1e2d6b;
}

.header-bottom__search-btn img {
    width: 18px;
    height: 18px;
}

/* Кнопка "Заказать звонок" */
.header-bottom__actions .region-callback .btn,
.header-bottom__actions .region-callback a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.header-bottom__actions .region-callback .btn:hover,
.header-bottom__actions .region-callback a:hover {
    background-color: var(--dark-red);
    color: #fff;
}

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

.promo-block {
    position: relative;
    overflow: hidden;
}

/* Блок внутри container — становится якорем */
#block-vesta-theme-promo-block {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
}

/* Изображение вырывается за пределы container */
.promo-block .field--name-field-promo-bg-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

/* Текстовый блок поверх изображения */
.promo_text {
    position: relative;
    z-index: 1;
    max-width: 390px;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 83px;
}

/* Лейбл "Межгород и город" */
.promo_text .field--name-field-promo-label {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--blue);
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 5px;
}

/* Заголовок */
.promo_text .field--name-field-promo-title {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
}

/* Описание */
.promo_text .field--name-field-promo-text {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--medium-black);
    max-width: 340px;
}

/* Кнопка "Оставить заявку" */
.promo_text .field--name-field-promo-btn .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 11px 40px;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.promo_text .field--name-field-promo-btn .btn:hover {
    background-color: var(--dark-red);
    color: #fff;
}

/* ========================================
   ADVANTAGES BLOCK
   ======================================== */

.advantages-block {
    position: relative;
    z-index: 2;
    margin-top: -92px; /* половина высоты карточки 185px / 2 */
    padding-bottom: 40px;
}

/* Белая карточка */
.advantages-block .view-advantages {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 16px 0 rgba(56, 56, 56, 0.15);
    min-height: 185px;
    display: flex;
    align-items: center;
}

/* Строка с элементами */
.advantages-block .view-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Каждый элемент */
.advantages-block .views-row {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 37px;
    height: 100%;
    position: relative;
}

/* Скрываем лишнее от Drupal */
.advantages-block .node__meta,
.advantages-block .node__submitted,
.advantages-block h2 {
    display: none;
}

/* Карточка внутри node */
.advantages-block article.node {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.advantages-block .node__content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Иконка — круглый фон */
.advantage_left {
    flex-shrink: 0;
}

.advantage_left .field--name-field-advantage-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage_left .field--name-field-advantage-icon img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

/* Текстовый блок */
.advantage_right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.advantage_right .field--name-field-advantage-title {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    color: #040404;
}

.advantage_right .field--name-field-advantage-text {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--medium-black);
    max-width: 199px;
}

/* Контекстные ссылки Drupal не ломают layout */
.advantages-block .contextual-region {
    width: 100%;
}

/* ========================================
   DIRECTIONS BLOCK
   ======================================== */

.directions-block {
    position: relative;
    background-color: #fff;
    padding-bottom: 60px;
    overflow: visible;
    isolation: isolate;
}

/* Декоративное изображение слева */
.directions-block::before {
    content: "";
    position: absolute;
    left: -60px;
    top: -80px; /* чтобы изображение заходило выше блока */
    width: 375px;
    height: 405px;
    background-image: url('/sites/all/themes/vesta_theme/image/service_image.svg');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

/* Контент всегда выше декоративного изображения */
.directions-block .container,
.directions-block__grid {
    position: relative;
    z-index: 1;
}

/* ===== Сетка — 3 колонки ===== */
.directions-block__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===== Убираем все промежуточные обёртки Drupal из потока ===== */
.directions-block .region-directions,
.directions-block .views-element-container,
.directions-block .views-element-container > div,
.directions-block .view-directions,
.directions-block .view-content {
    display: contents;
}

/* ===== Заголовок — на всю ширину ===== */
.directions-block .view-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 12px;
}

.directions-block .view-header .directions-label {
    display: block;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    color: var(--medium-black);
    margin-bottom: 10px;
}

.directions-block .view-header h2 {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin: 0;
}

/* ===== Каждая строка — одна ячейка сетки ===== */
.directions-block .views-row {
    display: flex;
    flex-direction: column;
}

/* ===== Карточка ===== */
.directions-block .node--type-direction {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    box-shadow: 0 2px 16px 0 rgba(56, 56, 56, 0.15);
}

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

.directions-block .node__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Изображение */
.directions-block .field--name-field-direction-image img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
}

/* Город с иконкой */
.directions-block .field--name-field-direction-city {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--black);
    padding: 14px 16px 10px;
}

.directions-block .field--name-field-direction-city::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('../image/geo-alt-red.svg');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Заголовок карточки */
.directions-block .field--name-field-direction-title {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    padding: 0 16px 10px;
}

/* Описание */
.directions-block .field--name-field-direction-text {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--medium-black);
    padding: 0 16px;
    flex: 1;
    margin-bottom: 15px;
}

/* Кнопка Подробнее */
.directions-block .field--name-field-direction-link {
    padding: 0 16px 16px;
}

.directions-block .field--name-field-direction-link a {
    display: block;
    max-width: 250px;
    padding: 14px 12px;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.directions-block .field--name-field-direction-link a:hover {
    background-color: var(--dark-red);
}

/* ===== Кнопка "Загрузить ещё" — на всю ширину ===== */
.directions-block .more-link {
    grid-column: 1 / -1;
    grid-row: 4;
    text-align: center;
}

.directions-block .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background-color: transparent;
    color: var(--blue);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--blue);
    border-radius: 5px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.directions-block .more-link a:hover {
    background: var(--light-blue);
}

/* ===== Карточка с формой — 6-я ячейка (ряд 2, колонка 3) ===== */
.directions-form-card {
    background-color: #fff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 16px 0 rgba(56, 56, 56, 0.15);
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-row: 3;
    grid-column: 3;
}

.directions-form-card .region-directions-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Иконка вопроса */
.directions-form-card .field--name-field-webform-icon {
    margin-bottom: 15px;
}

.directions-form-card .field--name-field-webform-icon img {
    width: 43px;
    height: 43px;
}

/* Заголовок */
.directions-form-card .field--name-field-webform-title {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

/* Текст */
.directions-form-card .field--name-field-webform-text {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--medium-black);
    margin-bottom: 12px;
}

/* Форма */
.directions-form-card form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Поля ввода */
.directions-form-card .form-text {
    width: 100%;
    height: 50px;
    padding: 18px 15px;
    border: 1px solid var(--light-black);
    border-radius: 5px;
    background: rgba(251, 252, 255, 0.3);
    font-family: var(--third-family);
    font-size: 15px;
    color: var(--medium-black);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.directions-form-card .form-text:focus {
    border-color: #1e2d6b;
}

.directions-form-card .form-text::placeholder {
    color: #9ca3af;
}

/* Порядок: поля → кнопка → чекбокс */
.directions-form-card .js-form-item-name   { order: 1; }
.directions-form-card .js-form-item-phone  { order: 2; }
.directions-form-card .form-actions        { order: 3; }
.directions-form-card .js-form-item-accept { order: 4; }

/* Кнопка Отправить */
.directions-form-card .webform-button--submit {
    width: 100%;
    height: 50px;
    background-color: var(--red);
    color: #fff;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.directions-form-card .webform-button--submit:hover {
    background-color: var(--dark-red);
}

/* Чекбокс с текстом */
.directions-form-card .form-type-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.directions-form-card .form-checkbox {
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    border: 1px solid #9c9c9c;
    width: 16px;
    height: 16px;
}

.directions-form-card .webform-element-description {
    font-family: var(--third-family);
    font-size: 11px;
    color: #2d3235;
}

/* ========================================
   DIRECTIONS PAGE
   ======================================== */

.wr_content .view-directions.view-display-id-page_1 {
    padding: 40px 0 60px;
}

/* ===== Сетка — 3 колонки ===== */
.wr_content .view-directions .view-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* ===== Каждая строка — ячейка сетки ===== */
.wr_content .view-directions .views-row {
    display: flex;
    flex-direction: column;
}

/* ===== Карточка ===== */
.wr_content .view-directions .node--type-direction {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    box-shadow: 0 2px 16px 0 rgba(56, 56, 56, 0.15);
}

/* Скрываем лишнее от Drupal */
.wr_content .view-directions .node__meta,
.wr_content .view-directions .node__submitted,
.wr_content .view-directions .node--type-direction > h2 {
    display: none;
}

.wr_content .view-directions .node__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Изображение */
.wr_content .view-directions .field--name-field-direction-image img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
}

/* Город с иконкой */
.wr_content .view-directions .field--name-field-direction-city {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--black);
    padding: 14px 16px 10px;
}

.wr_content .view-directions .field--name-field-direction-city::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('../image/geo-alt-red.svg');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Заголовок карточки */
.wr_content .view-directions .field--name-field-direction-title {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    padding: 0 16px 10px;
}

/* Описание */
.wr_content .view-directions .field--name-field-direction-text {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--medium-black);
    padding: 0 16px;
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Кнопка Подробнее */
.wr_content .view-directions .field--name-field-direction-link {
    padding: 0 16px 16px;
}

.wr_content .view-directions .field--name-field-direction-link a {
    display: block;
    max-width: 250px;
    padding: 14px 12px;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.wr_content .view-directions .field--name-field-direction-link a:hover {
    background-color: var(--dark-red);
}

/* ===== Заголовок страницы h1 ===== */
.wr_content #block-vesta-theme-page-title h1 {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    margin: 40px 0 32px;
}

/* ===== Пагинация / кнопка загрузить ещё ===== */
.wr_content .view-directions .pager,
.wr_content .view-directions .more-link {
    text-align: center;
    margin-top: 12px;
    grid-column: 1 / -1;
}

.wr_content .view-directions .more-link a,
.wr_content .view-directions .pager__item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background-color: transparent;
    color: var(--blue);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--blue);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.wr_content .view-directions .more-link a:hover,
.wr_content .view-directions .pager__item a:hover {
    background-color: var(--light-blue);
}

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

.about-block {
    background-color: var(--light-blue);
    padding: 50px 0;
}

/* Двухколоночный layout */
#block-vesta-theme-about-block {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ===== Левая колонка ===== */
.about_left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Лейбл "О компании" */
.about_left .field--name-field-about-label {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    color: var(--medium-black);
}

/* Заголовок */
.about_left .field--name-field-about-title {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    max-width: 570px;
}

/* Текст */
.about_left .field--name-field-about-text {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: #424944;
}

/* Кнопка "Подробнее" */
.about_left .field--name-field-about-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 64px;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.about_left .field--name-field-about-btn a:hover {
    background-color: var(--dark-red);
}

/* ===== Правая колонка ===== */
.about_right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.about_right .field--name-field-about-stat {
    display: grid;
    grid-template-columns: repeat(2, 270px);
    grid-template-rows: repeat(2, 188px);
    gap: 30px;
}

/* Каждая карточка */
.about_right .field__item {
    background-color: var(--white);
    box-shadow: 0 2px 16px 0 rgba(56, 56, 56, 0.15);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 0 15px;
}

.about_right .field__item *  {
    box-shadow: none;
}

/* Параграф внутри карточки */
.about_right .paragraph--type--stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Число */
.about_right .field--name-field-stat-number {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 800;
    color: var(--blue);
}

/* Подпись */
.about_right .field--name-field-stat-text {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    color: var(--blue);
}

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

.feedback-block {
    background-color: var(--blue);
    padding: 50px 0;
}

.feedback-block .region-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* ===== Заголовочный блок ===== */
#block-vesta-theme-feedback-top {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Лейбл */
#block-vesta-theme-feedback-top .field--name-field-feedback-label {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

/* Заголовок */
#block-vesta-theme-feedback-top .field--name-field-feedback-title {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

/* ===== Форма — grid ===== */
#block-vesta-theme-feedback-block form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    grid-template-rows: 48px auto;
    column-gap: 30px;
    row-gap: 16px;
    align-items: center;
}

#block-vesta-theme-feedback-block .js-form-item-name    { grid-column: 1; grid-row: 1; }
#block-vesta-theme-feedback-block .js-form-item-phone   { grid-column: 2; grid-row: 1; }
#block-vesta-theme-feedback-block .js-form-item-message { grid-column: 3; grid-row: 1; }
#block-vesta-theme-feedback-block .form-actions         { grid-column: 4; grid-row: 1; }
#block-vesta-theme-feedback-block .js-form-item-privacy { grid-column: 1 / -1; grid-row: 2; justify-self: center; }

/* form-item сброс отступов */
#block-vesta-theme-feedback-block .js-form-item-name,
#block-vesta-theme-feedback-block .js-form-item-phone,
#block-vesta-theme-feedback-block .js-form-item-message,
#block-vesta-theme-feedback-block .form-actions {
    height: 48px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* input */
#block-vesta-theme-feedback-block .form-text {
    width: 100%;
    height: 50px;
    padding: 18 15px;
    background: rgba(251, 252, 255, 0.3);
    border: 1px solid var(--white);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--white);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
    display: block;
    margin: 0;
}

#block-vesta-theme-feedback-block .form-text::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#block-vesta-theme-feedback-block .form-text:focus {
    border-color: #fff;
}

/* textarea враппер */
#block-vesta-theme-feedback-block .form-textarea-wrapper {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* textarea */
#block-vesta-theme-feedback-block .form-textarea {
    width: 100%;
    height: 50px !important;
    min-height: 50px;
    max-height: 50px;
    padding: 0 16px;
    padding-top: 0;
    padding-bottom: 0;
    background: rgba(251, 252, 255, 0.3);
    border: 1px solid var(--white);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--white);
    box-sizing: border-box;
    outline: none;
    resize: none;
    overflow: hidden;
    line-height: 48px;
    vertical-align: middle;
    display: block;
    margin: 0;
    transition: border-color 0.2s ease;
}

#block-vesta-theme-feedback-block .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    line-height: 48px;
}

#block-vesta-theme-feedback-block .form-textarea:focus {
    border-color: #fff;
}

/* Кнопка Отправить */
#block-vesta-theme-feedback-block .form-actions {
    height: 48px;
    margin: 0;
    padding: 0;
}

#block-vesta-theme-feedback-block .webform-button--submit {
    height: 50px;
    padding: 0 96px;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

#block-vesta-theme-feedback-block .webform-button--submit:hover {
    background-color: var(--dark-red);
}

/* Чекбокс */
#block-vesta-theme-feedback-block .js-form-item-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    height: auto;
}

#block-vesta-theme-feedback-block .form-checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e53e3e;
    margin: 0;
}

#block-vesta-theme-feedback-block .description {
    display: inline;
}

#block-vesta-theme-feedback-block .webform-element-description span {
    font-family: var(--third-family);
    font-size: 15px;
    color: var(--white);
}

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

.photogallery-block {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
    overflow: visible;
    isolation: isolate;
}

/* Декоративное изображение справа */
.photogallery-block::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 375px;
    height: 478px;
    background-image: url('/sites/all/themes/vesta_theme/image/photogallery_image.svg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

/* Контент должен быть поверх декоративного изображения */
.photogallery-block .container,
.photogallery-block .view-header,
.photogallery-block .view-content,
.photogallery-block .more-link {
    position: relative;
    z-index: 1;
}

/* ===== Заголовок ===== */
.photogallery-block .view-header {
    text-align: center;
    margin-bottom: 32px;
    display: block;
}

.photogallery-block .view-header .photogallery-label {
    display: block;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    color: var(--medium-black);
    margin-bottom: 10px;
}

.photogallery-block .view-header h2 {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin: 0;
}

/* ===== Обёртки ===== */
.photogallery-block .view-content {
    display: block;
    margin-bottom: 25px;
}

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

.photogallery-block .views-field-field-gallery {
    display: block;
}

/* ===== Сетка — на field-content ===== */
.photogallery-block .field-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Зазор как на скриншоте */

    /* КРИТИЧЕСКИЙ МОМЕНТ: ПРЯЧЕМ ЗАПЯТЫЕ DRUPAL */
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
}

/* ===== Каждое фото ===== */
.photogallery-block .photoswipe-gallery {
    /* Возвращаем блочность, чтобы грид правильно подхватил элементы */
    display: block !important;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.photogallery-block .photoswipe-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.photogallery-block .photoswipe-gallery img {
    width: 100%;
    height: 264px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* ===== Hover эффект ===== */
.photogallery-block .photoswipe-gallery a::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(30, 45, 107, 0);
    border-radius: 8px;
    transition: background-color 0.4s ease;
    pointer-events: none;
}

.photogallery-block .photoswipe-gallery a:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.photogallery-block .photoswipe-gallery a:hover::after {
    background-color: rgba(30, 45, 107, 0.25);
}

/* ===== Кнопка "Загрузить ещё" ===== */
.photogallery-block .more-link {
    text-align: center;
    margin-top: 25px;
}

.photogallery-block .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 49px;
    background-color: transparent;
    color: var(--blue);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--blue);
    border-radius: 5px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.photogallery-block .more-link a:hover {
    background: var(--light-blue);
}

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

.contacts-block {
    padding: 50px 0;
    background-color: var(--light-blue);
}

.contacts-block__header {
    text-align: center;
    margin-bottom: 45px;
}

.contacts-block__label {
    display: block;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    color: var(--medium-black);
    margin-bottom: 10px;
}

.contacts-block__title {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin: 0;
}

.contacts-block__items {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.contacts-block__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 370px;
    flex-shrink: 0;
}

.contacts-block__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.contacts-block__icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.contacts-block__item-label {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--medium-black);
}

.contacts-block__item-value {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    max-width: 369px;
}

.contacts-block__item-value:hover {
    color: #1e2d6b;
}

.contacts-block__map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.contacts-block__map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    border-radius: 10px;
}

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

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

.footer {
    background-color: var(--blue);
    padding: 30px 0 30px;
}

/* ===== Основная сетка 4 колонки ===== */
.footer__inner {
    display: grid;
    grid-template-columns: 270px 170px 270px 270px;
    gap: 40px;
    justify-content: space-between;
}

/* ===== Колонка 1 — Лого ===== */
.footer__col--logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.footer-logo__name {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.footer-logo__tagline {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
}

.footer__copy {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    color: var(--white);
}

.footer__bottom-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 114px;
}

.footer__bottom-link {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer__bottom-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Колонки 2 и 3 — Меню ===== */
.footer__col--nav,
.footer__col--services {
    display: flex;
    flex-direction: column;
}

/* Заголовок меню */
.footer__col--nav #block-vesta-theme-company-menu-menu,
.footer__col--services #block-vesta-theme-services-menu-menu {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
}

/* Список меню */
.footer__col--nav ul.nav,
.footer__col--services ul.nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__col--nav .nav-link,
.footer__col--services .nav-link {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
}

.footer__col--nav .nav-link:hover,
.footer__col--services .nav-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Колонка 4 — Контакты ===== */
.footer__col--contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Кнопка "Заказать звонок" */
.footer__callback .btn,
.footer__callback a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.footer__callback .btn:hover,
.footer__callback a:hover {
    background-color: var(--dark-red);
    color: #fff;
}

/* Элементы контактов */
.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    text-decoration: none;
}

.footer__contact-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__contact-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer__contact-text {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    transition: color 0.2s ease;
}

a.footer__contact-item:hover .footer__contact-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Соцсети */
.footer__socials {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #fff !important;
}

.footer__social:hover {
    opacity: 0.85;
}

.footer__social img {
    width: 25px;
    height: 25px;
}

/*SEARCH*/

.header-bottom__search-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.header-bottom__search-field {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.header-bottom__search-field.is-open {
    width: 220px;
    opacity: 1;
}

.header-bottom__search-input {
    width: 220px;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #1e2d6b;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-family);
    font-size: 14px;
    color: #1a1a1a;
    outline: none;
    background-color: #fff;
}

.header-bottom__search-input::placeholder {
    color: #9ca3af;
}

.header-bottom__search-input:focus {
    border-color: #1e2d6b;
}

.header-bottom__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #fff;
    border: 1.5px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 11;
}

.header-bottom__search-btn.is-open {
    border-color: #1e2d6b;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.header-bottom__search-btn:hover {
    border-color: #1e2d6b;
}

.header-bottom__search-btn img {
    width: 18px;
    height: 18px;
}

/* ===== Dropdown toggle ===== */
.header-bottom__nav .dropdown-toggle {
    background-image: none !important;
    padding-right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-bottom__nav .dropdown-toggle::after {
    display: inline-block !important;
    content: '';
    width: 14px;
    height: 14px;
    background-image: url('/sites/all/themes/vesta_theme/image/chevron-down.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border: none;
    vertical-align: middle;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    filter: brightness(0);
}

.header-bottom__nav .nav-item.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ===== Выпадающее меню ===== */
.header-bottom__nav .nav-item.dropdown {
    position: relative;
}

.header-bottom__nav .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 395px;
    background-color: #fff;
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 16px 0;
    z-index: 100;
    box-sizing: border-box;
}

.header-bottom__nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.header-bottom__nav .dropdown-menu .nav-item {
    list-style: none;
}

.header-bottom__nav .dropdown-item {
    display: block;
    padding: 5px 24px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    box-sizing: border-box;
    transition: color 0.2s ease;
}

.header-bottom__nav .dropdown-menu .nav-item + .nav-item {
    margin-top: 10px;
}

.header-bottom__nav .dropdown-item:hover {
    color: #1e2d6b;
    background: none;
}

/* ========================================
   MODAL OVERLAY
   ======================================== */

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

/* ========================================
   MODAL DIALOG
   ======================================== */

.modal-dialog-centered {
    max-width: 817px;
    width: 817px;
    margin: auto;
}

.modal-dialog-centered .modal-content {
    width: 817px;
    border-radius: 8px;
    border: none;
    padding: 80px 113px;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 16px 0 rgba(56, 56, 56, 0.15);
    box-sizing: border-box;
    display: block;
}

/* ===== Шапка ===== */
.modal-dialog-centered .modal-header {
    border: none;
    padding: 0;
    margin-bottom: 20px;
    justify-content: center;
    position: relative;
    flex: none;
}

.modal-dialog-centered .modal-title {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    text-align: center;
    width: 100%;
}

/* Крестик */
.modal-dialog-centered .close,
.modal-dialog-centered .btn-close {
    position: absolute;
    top: -28px;
    right: -40px;
    width: 30px;
    height: 30px;
    background-image: url('/sites/all/themes/vesta_theme/image/x-lg.svg') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    background-color: transparent !important;
    border: none;
    opacity: 1;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    filter: brightness(0);
    flex: none;
}

.modal-dialog-centered .close span,
.modal-dialog-centered .btn-close span {
    display: none;
}

.modal-dialog-centered .close:hover,
.modal-dialog-centered .btn-close:hover {
    opacity: 0.6;
}

/* ===== Тело ===== */
.modal-dialog-centered .modal-body {
    padding: 0;
    flex: none;
}

/* Текст под заголовком */
.modal-dialog-centered .modal-body::before {
    content: 'Наш менеджер свяжется с вами в течении 30 минут и ответит на все вопросы';
    display: block;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 500;
    max-width: ;
    color: var(--black);
    text-align: center;
    margin-bottom: 25px;
}

/* ===== Форма — flex column с порядком элементов ===== */
.modal-dialog-centered form {
    display: flex;
    flex-direction: column;
}

.modal-dialog-centered .js-form-item-name {
    order: 1;
    margin: 0 0 12px;
}

.modal-dialog-centered .js-form-item-phone {
    order: 2;
    margin: 0 0 12px;
}

/* Кнопка внутри формы — порядок 3 */
.modal-dialog-centered .form-actions {
    order: 3;
    display: block !important;
    margin: 0 0 12px;
}

/* Чекбокс — порядок 4, ниже кнопки */
.modal-dialog-centered .js-form-item-accept-flag {
    order: 4;
    margin: 0;
}

/* ===== Поля ввода ===== */
.modal-dialog-centered .form-text {
    width: 100%;
    height: 55px;
    padding: 0 16px;
    border: 1px solid var(--light-black);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--medium-black);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

.modal-dialog-centered .form-text:focus {
    border-color: #e53e3e;
}

.modal-dialog-centered .form-text::placeholder {
    color: #9ca3af;
}

/* ===== Кнопка внутри form-actions ===== */
.modal-dialog-centered .form-actions .webform-button--submit {
    width: 100%;
    height: 55px;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block !important;
    box-sizing: border-box;
}

.modal-dialog-centered .form-actions .webform-button--submit:hover {
    background-color: var(--dark-red);
}

/* ===== Чекбокс ===== */
.modal-dialog-centered .form-type-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
}

.modal-dialog-centered .form-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #e53e3e;
}

.modal-dialog-centered .description,
.modal-dialog-centered .webform-element-description {
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--black);
    max-width: 471px;
}

/* ===== Скрываем дублирующую кнопку в modal-footer ===== */
.modal-dialog-centered .modal-footer {
    display: none !important;
}

/* =========================
   Кастомный focus
   ========================= */
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-text,
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-checkbox {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-text:focus,
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-text:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 41, 126, 0.12);
    outline: none;
}

/*!* Для чекбокса *!*/
/*.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-checkbox:focus,*/
/*.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-checkbox:focus-visible {*/
/*    outline: 2px solid rgba(30, 41, 126, 0.35);*/
/*    outline-offset: 2px;*/
/*}*/

/* =========================
   Ошибочное состояние
   ========================= */
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-item--error .form-text,
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-item--error .form-checkbox,
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-text.error,
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-checkbox.error,
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form [aria-invalid="true"] {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.12) !important;
}

/* Если поле с ошибкой в фокусе — оставляем красный стиль */
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-item--error .form-text:focus,
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-item--error .form-text:focus-visible {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.18) !important;
    outline: none;
}

/* Чекбокс с ошибкой */
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-item--error .form-checkbox {
    accent-color: var(--red);
    outline: 1px solid rgba(211, 0, 0, 0.35);
    outline-offset: -1px;
}

/* =========================
   Скрываем текст ошибки
   ========================= */
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .form-item--error-message,
.modal-dialog-centered form.webform-submission-zakazat-zvonok-add-form .alert.alert-error {
    display: none !important;
}

/* =========================
   Кастомный focus
   ========================= */
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-text,
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-checkbox {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-text:focus,
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-text:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 41, 126, 0.12);
    outline: none;
}

/*!* Для чекбокса *!*/
/*.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-checkbox:focus,*/
/*.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-checkbox:focus-visible {*/
/*    outline: 2px solid rgba(30, 41, 126, 0.35);*/
/*    outline-offset: 2px;*/
/*}*/

/* =========================
   Ошибочное состояние
   ========================= */
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-item--error .form-text,
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-item--error .form-checkbox,
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-text.error,
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-checkbox.error,
.modal-dialog-centered form.webform-submission-web-form-one-add-form [aria-invalid="true"] {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.12) !important;
}

/* Если поле с ошибкой в фокусе — оставляем красный стиль */
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-item--error .form-text:focus,
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-item--error .form-text:focus-visible {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.18) !important;
    outline: none;
}

/* Чекбокс с ошибкой */
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-item--error .form-checkbox {
    accent-color: var(--red);
    outline: 1px solid rgba(211, 0, 0, 0.35);
    outline-offset: -1px;
}

/* =========================
   Скрываем текст ошибки
   ========================= */
.modal-dialog-centered form.webform-submission-web-form-one-add-form .form-item--error-message,
.modal-dialog-centered form.webform-submission-web-form-one-add-form .alert.alert-error {
    display: none !important;
}

/* =========================
   Форма "Остались вопросы?"
   ========================= */
.directions-form-card form.webform-submission-questions-webform-add-form .form-text,
.directions-form-card form.webform-submission-questions-webform-add-form .form-checkbox {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Кастомный focus */
.directions-form-card form.webform-submission-questions-webform-add-form .form-text:focus,
.directions-form-card form.webform-submission-questions-webform-add-form .form-text:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 41, 126, 0.12);
    outline: none;
}

/*!* Для чекбокса *!*/
/*.directions-form-card form.webform-submission-questions-webform-add-form .form-checkbox:focus,*/
/*.directions-form-card form.webform-submission-questions-webform-add-form .form-checkbox:focus-visible {*/
/*    outline: 2px solid rgba(30, 41, 126, 0.35);*/
/*    outline-offset: 2px;*/
/*}*/

/* =========================
   Ошибочное состояние
   ========================= */
.directions-form-card form.webform-submission-questions-webform-add-form .form-item--error .form-text,
.directions-form-card form.webform-submission-questions-webform-add-form .form-item--error .form-checkbox,
.directions-form-card form.webform-submission-questions-webform-add-form .form-text.error,
.directions-form-card form.webform-submission-questions-webform-add-form .form-checkbox.error,
.directions-form-card form.webform-submission-questions-webform-add-form [aria-invalid="true"] {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.12) !important;
}

/* Если поле с ошибкой в фокусе — оставляем красный стиль */
.directions-form-card form.webform-submission-questions-webform-add-form .form-item--error .form-text:focus,
.directions-form-card form.webform-submission-questions-webform-add-form .form-item--error .form-text:focus-visible {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.18) !important;
    outline: none;
}

/* Чекбокс с ошибкой */
.directions-form-card form.webform-submission-questions-webform-add-form .form-item--error .form-checkbox {
    accent-color: var(--red);
    outline: 1px solid rgba(211, 0, 0, 0.35);
    outline-offset: -1px;
}

/* =========================
   Скрываем текст ошибки
   ========================= */
.directions-form-card form.webform-submission-questions-webform-add-form .form-item--error-message,
.directions-form-card form.webform-submission-questions-webform-add-form .alert.alert-error {
    display: none !important;
}

/* =========================
   Форма feedback-block
   ========================= */
.feedback-block form.webform-submission-callback-add-form .form-text,
.feedback-block form.webform-submission-callback-add-form .form-textarea,
.feedback-block form.webform-submission-callback-add-form .form-checkbox {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* =========================
   Кастомный focus
   ========================= */
.feedback-block form.webform-submission-callback-add-form .form-text:focus,
.feedback-block form.webform-submission-callback-add-form .form-text:focus-visible,
.feedback-block form.webform-submission-callback-add-form .form-textarea:focus,
.feedback-block form.webform-submission-callback-add-form .form-textarea:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 41, 126, 0.12);
    outline: none;
}

/*!* Для чекбокса *!*/
/*.feedback-block form.webform-submission-callback-add-form .form-checkbox:focus,*/
/*.feedback-block form.webform-submission-callback-add-form .form-checkbox:focus-visible {*/
/*    outline: 2px solid rgba(30, 41, 126, 0.35);*/
/*    outline-offset: 2px;*/
/*}*/

/* =========================
   Ошибочное состояние
   ========================= */
.feedback-block form.webform-submission-callback-add-form .form-item--error .form-text,
.feedback-block form.webform-submission-callback-add-form .form-item--error .form-textarea,
.feedback-block form.webform-submission-callback-add-form .form-item--error .form-checkbox,
.feedback-block form.webform-submission-callback-add-form .form-text.error,
.feedback-block form.webform-submission-callback-add-form .form-textarea.error,
.feedback-block form.webform-submission-callback-add-form .form-checkbox.error,
.feedback-block form.webform-submission-callback-add-form [aria-invalid="true"] {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.12) !important;
}

/* Если поле с ошибкой в фокусе — оставляем красный стиль */
.feedback-block form.webform-submission-callback-add-form .form-item--error .form-text:focus,
.feedback-block form.webform-submission-callback-add-form .form-item--error .form-text:focus-visible,
.feedback-block form.webform-submission-callback-add-form .form-item--error .form-textarea:focus,
.feedback-block form.webform-submission-callback-add-form .form-item--error .form-textarea:focus-visible {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(211, 0, 0, 0.18) !important;
    outline: none;
}

/* Чекбокс с ошибкой */
.feedback-block form.webform-submission-callback-add-form .form-item--error .form-checkbox {
    accent-color: var(--red);
    outline: 1px solid rgba(211, 0, 0, 0.35);
    outline-offset: -1px;
}

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

/* =========================
   SEARCH PAGE
   ========================= */

/* Блок с формой поиска */
#block-vesta-theme-content .search-api-page-block-form-search {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* Обёртка поля */
#block-vesta-theme-content .search-api-page-block-form-search .form-item-keys {
    flex: 1 1 auto;
    margin: 0;
}

/* Поле поиска */
#block-vesta-theme-content .search-api-page-block-form-search .form-search {
    width: 100%;
    height: 55px;
    padding: 0 16px;
    border: 1px solid var(--light-black);
    border-radius: 5px;
    background: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--medium-black);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

#block-vesta-theme-content .search-api-page-block-form-search .form-search:focus,
#block-vesta-theme-content .search-api-page-block-form-search .form-search:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 41, 126, 0.12);
    outline: none;
}

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

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit {
    height: 55px;
    min-width: 160px;
    padding: 0 28px;
    border: none;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit:hover {
    background: var(--dark-red);
    transform: translateY(-1px);
}

/* =========================
   Заголовки и текст результатов
   ========================= */

#block-vesta-theme-content h2 {
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    margin: 0 0 12px;
}

#block-vesta-theme-content > p {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    color: var(--medium-black);
    margin: 0 0 20px;
}

/* Карточка результата */
#block-vesta-theme-content h3 {
    margin: 0 0 14px;
}

#block-vesta-theme-content h3 a {
    display: block;
    padding: 18px 22px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: var(--white);
    color: var(--blue);
    font-family: var(--second-family);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(56, 56, 56, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

#block-vesta-theme-content h3 a:hover {
    border-color: var(--blue);
    color: var(--dark-red);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 56, 56, 0.1);
}

/* Стрелка справа у результата */
#block-vesta-theme-content h3 a::after {
    content: "→";
    float: right;
    color: var(--red);
    font-weight: 700;
    margin-left: 12px;
}

/* =========================
   Адаптив
   ========================= */
@media (max-width: 576px) {
    #block-vesta-theme-content .search-api-page-block-form-search {
        flex-direction: column;
        gap: 10px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search .search-form__submit {
        width: 100%;
        min-width: 100%;
    }

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

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

/* ========================================
   DIRECTION PAGE (одиночная страница услуги)
   ======================================== */

.node--type-direction.node--view-mode-full {
    padding: 40px 0 60px;
}

/* Скрываем служебные элементы */
.node--type-direction.node--view-mode-full .node__meta,
.node--type-direction.node--view-mode-full .node__submitted,
.node--type-direction.node--view-mode-full > h2 {
    display: none;
}

/* ===== Layout через float — текст обтекает изображение ===== */
.node--type-direction.node--view-mode-full .node__content {
    display: block;
    overflow: hidden;
}

/* Изображение — float left */
.node--type-direction.node--view-mode-full .field--name-field-direction-image {
    float: left;
    width: 480px;
    margin-right: 60px;
    margin-bottom: 24px;
}

.node--type-direction.node--view-mode-full .field--name-field-direction-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 16px 0 rgba(56, 56, 56, 0.15);
}

/* Город */
.node--type-direction.node--view-mode-full .field--name-field-direction-city {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--medium-black);
    margin-bottom: 10px;
}

.node--type-direction.node--view-mode-full .field--name-field-direction-city::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../image/geo-alt-red.svg');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Заголовок */
.node--type-direction.node--view-mode-full .field--name-field-direction-title {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Текст — обтекает изображение, потом идёт под него */
.node--type-direction.node--view-mode-full .field--name-field-direction-text-on-page {
    display: block;
}

.node--type-direction.node--view-mode-full .field--name-field-direction-text-on-page p {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    color: var(--medium-black);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ===== Список — без иконок, обычные буллеты ===== */
.node--type-direction.node--view-mode-full .field--name-field-direction-text-on-page ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.node--type-direction.node--view-mode-full .field--name-field-direction-text-on-page ul li {
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--medium-black);
    line-height: 1.5;
    padding-left: 4px;
}

/* Убираем иконку ::before полностью */
.node--type-direction.node--view-mode-full .field--name-field-direction-text-on-page ul li::before {
    display: none;
}

/*!* ===== Скрываем h1 и табы ===== *!*/
/*#block-vesta-theme-page-title {*/
/*    display: none;*/
/*}*/

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

/* ===== Анимации ===== */
.node--type-direction.node--view-mode-full .field--name-field-direction-image {
    animation: fadeInLeft 0.6s ease both;
}

.node--type-direction.node--view-mode-full .field--name-field-direction-city,
.node--type-direction.node--view-mode-full .field--name-field-direction-title {
    animation: fadeInRight 0.6s ease both;
}

.node--type-direction.node--view-mode-full .field--name-field-direction-title {
    animation-delay: 0.1s;
}

.node--type-direction.node--view-mode-full .field--name-field-direction-text-on-page {
    animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

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

/* ========================================
   WEBFORM CONFIRMATION MODAL (jQuery UI)
   ======================================== */

.ui-dialog {
    width: 871px !important;
    min-height: unset !important;
    height: auto !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: 0 2px 16px 0 rgba(56, 56, 56, 0.15) !important;
    box-sizing: border-box;
    z-index: 10000 !important;
}

/* ===== Заголовок ===== */
.ui-dialog .ui-dialog-titlebar {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 40px 60px 16px !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-dialog .ui-dialog-title {
    font-family: var(--font-family) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: center !important;
    width: 100%;
    float: none !important;
}

/* Крестик */
.ui-dialog .ui-dialog-titlebar-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 28px !important;
    height: 28px !important;
    background-image: url('/sites/all/themes/vesta_theme/image/x-lg.svg') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    filter: brightness(0);
    opacity: 1 !important;
    float: none !important;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    opacity: 0.6 !important;
    background-color: transparent !important;
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon,
.ui-dialog .ui-dialog-titlebar-close span {
    display: none !important;
}

/* ===== Контент ===== */
.ui-dialog .ui-dialog-content {
    padding: 0 60px 40px !important;
    text-align: center;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: unset !important;
    height: auto !important;
    max-height: unset !important;
}

.ui-dialog .ui-dialog-content span {
    font-family: var(--font-family) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
}

/* ===== Оверлей ===== */
.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    z-index: 9999 !important;
}

/* ===== Скрываем footer ===== */
.ui-dialog .ui-dialog-buttonpane {
    display: none !important;
}

/* ========================================
   PHOTOGALLERY PAGE
   ======================================== */

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

/* ===== Скрываем view-header label и h2 ===== */
.view-photogallery.view-display-id-page_1 .view-header {
    display: none;
}

/* ===== Заголовок страницы h1 ===== */
#block-vesta-theme-page-title h1 {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    margin: 40px 0 32px;
}

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

/* ===== views-row и node — убираем из потока ===== */
.view-photogallery.view-display-id-page_1 .view-content {
    display: block;
}

.view-photogallery.view-display-id-page_1 .views-row {
    display: block;
}

.view-photogallery.view-display-id-page_1 .node__content {
    display: block;
}

/* ===== Сетка — на .photoswipe-gallery ===== */
.view-photogallery.view-display-id-page_1 .photoswipe-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Каждая ячейка */
.view-photogallery.view-display-id-page_1 .field__item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.view-photogallery.view-display-id-page_1 .field__item a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

/* Изображение */
.view-photogallery.view-display-id-page_1 .field__item img {
    width: 100%;
    height: 264px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* ===== Hover эффект ===== */
.view-photogallery.view-display-id-page_1 .field__item a::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(30, 45, 107, 0);
    border-radius: 8px;
    transition: background-color 0.4s ease;
    pointer-events: none;
}

.view-photogallery.view-display-id-page_1 .field__item a:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.view-photogallery.view-display-id-page_1 .field__item a:hover::after {
    background-color: rgba(30, 45, 107, 0.25);
}

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

#vpa-short-wrapper.vpa-wrapper {
    width: 525px !important;
    height: 68px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px 10px 15px;
    background: var(--white);
    border: 1px solid #dfe3eb;
    border-radius: 5px;
    box-shadow: 3px 2px 20px 4px rgba(140, 148, 162, 0.2);
    overflow: hidden;
}

/* Скрываем крестик */
#vpa-short-wrapper .vpa-close-zone {
    display: none !important;
}

/* Текст */
#vpa-short-wrapper .vpa-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 362px;
    display: flex;
    align-items: center;
}

#vpa-short-wrapper .vpa-content p {
    margin: 0;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    color: var(--black);
}

#vpa-short-wrapper .vpa-content a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

#vpa-short-wrapper .vpa-content a:hover {
    color: var(--blue);
}

/* Кнопка */
#vpa-short-wrapper .vpa-actions {
    flex: 0 0 126px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#vpa-short-wrapper .vpa-actions .btn,
#vpa-short-wrapper .vpa-actions #vpa-btn-ok {
    width: 126px;
    height: 47px;
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--blue) !important;
    background: var(--white) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    color: transparent !important; /* скрываем "Хорошо" */
    font-size: 0 !important;       /* дополнительно скрываем */
    overflow: hidden;
}

/* Показываем "Принять" вместо текста */
#vpa-short-wrapper .vpa-actions .btn::before,
#vpa-short-wrapper .vpa-actions #vpa-btn-ok::before {
    content: "Принять";
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--blue);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover */
#vpa-short-wrapper .vpa-actions .btn:hover,
#vpa-short-wrapper .vpa-actions #vpa-btn-ok:hover {
    background: var(--light-blue) !important;
}

/* ========================================
   MOBILE HEADER
   ======================================== */

#header-mob {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    height: 68px;
    padding: 10px 16px;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(56, 56, 56, 0.10);
    border-bottom: 1px solid rgba(58, 59, 61, 0.08);
    box-sizing: border-box;
    gap: 12px;
}

/* Левая кнопка меню */
#header-mob .col-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#header-mob .col-nav a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--light-blue);
    border: 1px solid rgba(30, 41, 126, 0.10);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#header-mob .col-nav a:hover {
    background: rgba(30, 41, 126, 0.08);
    border-color: rgba(30, 41, 126, 0.20);
}

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

/* Логотип по центру */
#header-mob .header-bottom__logo {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#header-mob .logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.05;
}

#header-mob .logo__name {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.1px;
    white-space: nowrap;
}

#header-mob .logo__tagline {
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 2px;
}

/* Правая колонка с телефоном */
#header-mob .col-phone {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#header-mob .contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#header-mob .contact-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(58, 59, 61, 0.10);
    background: var(--white);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#header-mob .contact-item a:hover {
    color: var(--blue);
    border-color: rgba(30, 41, 126, 0.20);
    background: var(--light-blue);
}

/* Адаптация под очень узкие экраны */
@media (max-width: 420px) {
    #header-mob {
        height: 64px;
        padding: 8px 12px;
    }

    #header-mob .col-nav a {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    #header-mob .logo__name {
        font-size: 14px;
    }

    #header-mob .logo__tagline {
        font-size: 10px;
    }

    #header-mob .contact-item a {
        font-size: 11px;
        padding: 7px 8px;
        min-height: 38px;
    }
}

/* ========================================
   OFFCANVAS NAV / BURGER MENU
   ======================================== */

#offcanvasNav.offcanvas-start {
    width: min(100vw, 380px);
    background: var(--white);
    box-shadow: 0 2px 24px rgba(56, 56, 56, 0.16);
    border-right: none;
    overflow-y: auto;
}

/* Шапка */
#offcanvasNav .offcanvas-header {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(58, 59, 61, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Логотип */
#offcanvasNav .offcanvas-header .logo img {
    display: block;
    max-width: 140px;
    height: auto;
}

/* Кнопка закрытия */
#offcanvasNav .btn-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--light-blue);
    background-image: url('/sites/all/themes/vesta_theme/image/x-lg.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
    opacity: 1;
    box-shadow: none;
    border: none;
    flex: 0 0 auto;
}

#offcanvasNav .btn-close:focus {
    box-shadow: 0 0 0 4px rgba(30, 41, 126, 0.12);
    outline: none;
}

/* Основная область */
#offcanvasNav .offcanvas-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* =========================
   SEARCH BLOCK
   ========================= */
#offcanvasNav .region-search,
#offcanvasNav .block-search-api-page-form-block {
    width: 100%;
}

#offcanvasNav .search-api-page-block-form {
    width: 100%;
}

#offcanvasNav .search-api-page-block-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
}

#offcanvasNav .search-api-page-block-form .form-item-keys {
    margin: 0;
}

#offcanvasNav .search-api-page-block-form .form-search {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--light-black);
    border-radius: 5px;
    background: var(--white);
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--medium-black);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#offcanvasNav .search-api-page-block-form .form-search::placeholder {
    color: #9ca3af;
}

#offcanvasNav .search-api-page-block-form .form-search:focus,
#offcanvasNav .search-api-page-block-form .form-search:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30, 41, 126, 0.12);
}

/* Кнопка поиска */
#offcanvasNav .search-api-page-block-form .form-actions {
    margin: 0;
}

#offcanvasNav .search-api-page-block-form .search-form__submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 5px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

#offcanvasNav .search-api-page-block-form .search-form__submit:hover {
    background: var(--dark-red);
}

/* =========================
   NAVIGATION
   ========================= */
#offcanvasNav .region-navigation {
    width: 100%;
}

#offcanvasNav .menu--main .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

#offcanvasNav .menu--main .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(58, 59, 61, 0.08);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

#offcanvasNav .menu--main .nav-link:hover {
    color: var(--blue);
}

#offcanvasNav .menu--main .nav-link.is-active,
#offcanvasNav .menu--main .nav-link[aria-current="page"] {
    color: var(--red);
}

/* Стрелка у dropdown */
#offcanvasNav .menu--main .dropdown-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

#offcanvasNav .menu--main .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

/* Выпадающее подменю */
#offcanvasNav .menu--main .dropdown-menu {
    position: static;
    float: none;
    min-width: 100%;
    margin: 0;
    padding: 8px 0 8px 12px;
    border: none;
    background: transparent;
    box-shadow: none;
}

#offcanvasNav .menu--main .dropdown-item {
    padding: 8px 0;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--medium-black);
    white-space: normal;
    text-decoration: none;
    transition: color 0.2s ease;
}

#offcanvasNav .menu--main .dropdown-item:hover {
    color: var(--red);
    background: transparent;
}

/* =========================
   CONTACTS
   ========================= */
#offcanvasNav .contact-item {
    width: 100%;
}

#offcanvasNav .contact-item-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
}

#offcanvasNav .contact-item-el a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 5px;
    border: 1px solid rgba(30, 41, 126, 0.12);
    background: var(--light-blue);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#offcanvasNav .contact-item-el a:hover {
    background: rgba(30, 41, 126, 0.08);
    border-color: rgba(30, 41, 126, 0.22);
}

/* =========================
   SOCIALS
   ========================= */
#offcanvasNav .msngrs.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

#offcanvasNav .msngrs .item {
    margin: 0;
}

#offcanvasNav .msngrs .item a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(30, 41, 126, 0.12);
    background: var(--light-blue);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#offcanvasNav .msngrs .item a:hover {
    background: rgba(30, 41, 126, 0.08);
    border-color: rgba(30, 41, 126, 0.22);
    transform: translateY(-1px);
}

#offcanvasNav .msngrs .item img {
    display: block;
    width: 22px;
    height: 22px;
}

/* =========================
   MOBILE ADAPTATION
   ========================= */
@media (max-width: 420px) {
    #offcanvasNav.offcanvas-start {
        width: 100vw;
    }

    #offcanvasNav .offcanvas-header {
        padding: 16px 14px 14px;
    }

    #offcanvasNav .offcanvas-body {
        padding: 14px;
        gap: 18px;
    }

    #offcanvasNav .menu--main .nav-link {
        font-size: 15px;
        padding: 13px 0;
    }

    #offcanvasNav .contact-item-el a {
        width: 100%;
        justify-content: center;
    }
}

    /* *** ADAPTIVE *** */
@media screen and (max-width: 1199px) {

    /* HEADER */

    .header-bottom__inner{
        gap:40px;
    }

    .header-bottom__nav .nav-link{
        font-size:15px;
        padding:8px 10px;
    }

    .header-bottom__actions{
        gap:10px;
    }

    .header-bottom__actions .region-callback a{
        padding:10px 16px;
        font-size:14px;
    }

    .header-top__inner{
        gap:18px;
    }

    .header-top__right{
        gap:18px;
    }

    /* PROMO */

    #block-vesta-theme-promo-block{
        min-height:500px;
    }

    .promo_text{
        margin-bottom:30px;
        max-width:430px;
    }

    .promo_text .field--name-field-promo-title{
        font-size:28px;
    }

    .promo_text .field--name-field-promo-text{
        font-size:15px;
    }

    /* ADVANTAGES */

    .advantages-block{
        margin-top:-70px;
    }

    .advantages-block .views-row{
        padding:25px;
    }

    .advantage_left .field--name-field-advantage-icon{
        width:70px;
        height:70px;
    }

    .advantage_left .field--name-field-advantage-icon img{
        width:36px;
        height:36px;
    }

    .advantage_right .field--name-field-advantage-title{
        font-size:17px;
    }

    .advantage_right .field--name-field-advantage-text{
        font-size:15px;
    }

    /* --- Directions --- */

    .directions-block__grid {
        gap: 20px;
    }

    .directions-block::before {
        width: 280px;
        height: 300px;
        left: -40px;
        top: -50px;
    }

    .directions-block .field--name-field-direction-link a {
        max-width: 100%;
    }

    /* --- About --- */

    #block-vesta-theme-about-block {
        gap: 40px;
    }

    .about_right .field--name-field-about-stat {
        grid-template-columns: repeat(2, 220px);
        grid-template-rows: repeat(2, 160px);
        gap: 20px;
    }

    /* --- Feedback --- */

    #block-vesta-theme-feedback-block form {
        column-gap: 20px;
    }

    #block-vesta-theme-feedback-block .webform-button--submit {
        padding: 0 40px;
    }

    /* --- Photogallery --- */

    .photogallery-block::before {
        width: 280px;
        height: 360px;
    }

    /* --- Contacts --- */

    .contacts-block__item {
        width: 300px;
    }

    /* --- Footer --- */

    .footer__inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .footer__bottom-links {
        padding-top: 60px;
    }

    /* --- Modal --- */

    .modal-dialog-centered {
        max-width: 700px;
        width: 700px;
    }

    .modal-dialog-centered .modal-content {
        width: 700px;
        padding: 60px 80px;
    }

    /* --- UI Dialog --- */

    .ui-dialog {
        width: 700px !important;
    }

    /* --- Dropdown --- */

    .header-bottom__nav .dropdown-menu {
        width: auto;
        min-width: 250px;
        max-width: 395px;
    }

    /* --- Header top --- */

    .header-top__address {
        display: none;
    }

    /* --- Product --- */

    .product-teaser {
        gap: 30px;
    }

    .product-teaser .product-teaser-image,
    .product-teaser .product-teaser-info {
        max-width: 400px;
    }
}

@media screen and (max-width: 991px) {
    #offcanvasNav .nav .dropdown-menu {
        display: none;
        position: static;
        border: 0px solid;
        background: transparent;
        padding: 10px 0;
        border-bottom: 1px solid #BDBDBD;
    }

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

    /* desktop header */

    #header{
        display:none;
    }

    #header-mob{
        display:flex;
        align-items:center;
        justify-content:space-between;
    }

    /* promo */

    #block-vesta-theme-promo-block{

        min-height:420px;
        align-items:center;
    }

    .promo_text{

        max-width:420px;
        margin:0;
        padding:40px 0;
    }

    .promo_text .field--name-field-promo-title{

        font-size:26px;
        line-height:1.25;
    }

    .promo_text .field--name-field-promo-text{

        max-width:100%;
    }

    .promo_text .field--name-field-promo-btn .btn{

        width:auto;
    }

    /* advantages */

    .advantages-block{

        margin-top:30px;
    }

    .advantages-block .view-content{

        display:grid;
        grid-template-columns:repeat(2,1fr);
    }

    .advantages-block .views-row{

        border-bottom:1px solid #ececec;
    }

    /* --- Скрываем desktop header --- */

    #header,
    .header-top,
    .header-bottom {
        display: none !important;
    }

    #header-mob {
        display: flex !important;
    }

    /* --- Directions grid 3 → 2 --- */

    .directions-block__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 1. Заголовок всегда в самом верху */
    .directions-block .view-header {
        grid-column: 1 / -1 !important;
        order: 1 !important;
    }

    /* 2. Обычные карточки услуг */
    .directions-block .views-row {
        order: 2 !important;
    }

    /* 3. Форма встает ВМЕСТЕ с карточками услуг (следующей ячейкой) */
    .directions-form-card {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 3 !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* 4. Кнопка "Загрузить ещё" ПРИНУДИТЕЛЬНО уходит в самый низ под все карточки */
    .directions-block .more-link {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        order: 10 !important;
        margin-top: 10px !important;
    }

    /* --- Directions page --- */

    .wr_content .view-directions .view-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wr_content .view-directions .field--name-field-direction-link a {
        max-width: 100%;
    }

    /* --- About 2 col → 1 col --- */

    #block-vesta-theme-about-block {
        flex-direction: column;
        gap: 40px;
    }

    .about_left {
        align-items: flex-start;
    }

    .about_left .field--name-field-about-title {
        max-width: 100%;
    }

    .about_right {
        justify-content: center;
        width: 100%;
    }

    .about_right .field--name-field-about-stat {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 20px;
        width: 100%;
    }

    .about_right .field__item {
        min-height: 140px;
    }

    /* --- Feedback 4 col → 2 col --- */

    #block-vesta-theme-feedback-block form {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        column-gap: 20px;
        row-gap: 12px;
    }

    #block-vesta-theme-feedback-block .js-form-item-name    { grid-column: 1; grid-row: auto; }
    #block-vesta-theme-feedback-block .js-form-item-phone   { grid-column: 2; grid-row: auto; }
    #block-vesta-theme-feedback-block .js-form-item-message { grid-column: 1; grid-row: auto; }
    #block-vesta-theme-feedback-block .form-actions         { grid-column: 2; grid-row: auto; }
    #block-vesta-theme-feedback-block .js-form-item-privacy { grid-column: 1 / -1; grid-row: auto; justify-self: flex-start; }

    #block-vesta-theme-feedback-block .webform-button--submit {
        width: 100%;
        padding: 0;
    }

    /* --- Photogallery 3 → 2 --- */

    .photogallery-block .field-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .photogallery-block::before {
        width: 200px;
        height: 260px;
    }

    /* --- Photogallery page --- */

    .view-photogallery.view-display-id-page_1 .photoswipe-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* --- Contacts --- */

    .contacts-block__items {
        flex-wrap: wrap;
        gap: 20px;
    }

    .contacts-block__item {
        width: calc(50% - 10px);
    }

    /* --- Footer 4 → 2 --- */

    .footer__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer__bottom-links {
        padding-top: 20px;
    }

    /* --- Modal --- */

    .modal-dialog-centered {
        max-width: 90%;
        width: 90%;
    }

    .modal-dialog-centered .modal-content {
        width: 100%;
        padding: 50px 40px;
    }

    .modal-dialog-centered .close,
    .modal-dialog-centered .btn-close {
        right: -5px;
        top: -5px;
    }

    /* --- UI Dialog --- */

    .ui-dialog {
        width: 90% !important;
    }

    .ui-dialog .ui-dialog-titlebar {
        padding: 30px 40px 12px !important;
    }

    .ui-dialog .ui-dialog-content {
        padding: 0 40px 30px !important;
    }

    /* --- Direction node --- */

    .node--type-direction.node--view-mode-full .field--name-field-direction-image {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }

    /* --- Product --- */

    .product-teaser {
        flex-direction: column;
        gap: 30px;
    }

    .product-teaser .product-teaser-image,
    .product-teaser .product-teaser-info {
        max-width: 100%;
    }

    .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: 100%;
        min-width: 100%;
        max-height: 450px;
        min-height: auto;
    }

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

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

    .promo-block .field--name-field-promo-bg-image {
        position: absolute;
        overflow: hidden;
    }

    .promo-block .field--name-field-promo-bg-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.65) 0%,
                rgba(0, 0, 0, 0.45) 45%,
                rgba(0, 0, 0, 0.15) 100%
        );
        z-index: 1;
        pointer-events: none;
    }

    .promo-block .field--name-field-promo-bg-image img {
        position: relative;
        z-index: 0;
    }

    .promo_text {
        position: relative;
        z-index: 2;
    }

    .promo_text .field--name-field-promo-title {
        color: #fff;
    }

    .promo_text .field--name-field-promo-text {
        color: rgba(255,255,255,.95);
    }

    .promo_text .field--name-field-promo-label {
        background: var(--red);
        color: #fff;
    }

    .promo_text .field--name-field-promo-title,
    .promo_text .field--name-field-promo-text {
        text-shadow: 0 2px 10px rgba(0,0,0,.35);
    }
}

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

    .feedback-block .region-feedback {
        gap: 10px;
    }
    /* promo */

    #block-vesta-theme-promo-block{

        min-height:380px;
    }

    .promo-block .field--name-field-promo-bg-image img{

        object-position:center right;
    }

    .promo_text{

        max-width:100%;
        padding:35px 0;
    }

    .promo_text .field--name-field-promo-label{

        font-size:13px;
    }

    .promo_text .field--name-field-promo-title{

        font-size:22px;
    }

    .promo_text .field--name-field-promo-text{

        font-size:15px;
    }

    .promo_text .field--name-field-promo-btn .btn{

        width:100%;
        justify-content:center;
    }

    /* advantages */

    .advantages-block{

        padding-bottom:20px;
    }

    .advantages-block .view-content{

        grid-template-columns:1fr;
    }

    .advantages-block article.node{

        align-items:center;
    }

    .advantage_right{

        flex:1;
    }

    /* --- Directions 2 → 1 --- */

    .directions-block__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .directions-block::before {
        display: none;
    }

    .directions-block .view-header h2 {
        font-size: 24px;
    }

    .directions-block .view-header .directions-label {
        font-size: 16px;
    }

    /* --- Directions page --- */

    .wr_content .view-directions .view-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* --- About --- */

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

    .about_left .field--name-field-about-title {
        font-size: 24px;
    }

    .about_left .field--name-field-about-btn a {
        width: 100%;
        justify-content: center;
    }

    .about_right .field--name-field-about-stat {
        max-width: 100%;
    }

    .about_right .field__item {
        min-height: 120px;
    }

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

    .about_right .field--name-field-stat-text {
        font-size: 16px;
    }

    /* --- Feedback 2 → 1 --- */

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

    #block-vesta-theme-feedback-block form {
        grid-template-columns: 1fr;
    }

    #block-vesta-theme-feedback-block .js-form-item-name,
    #block-vesta-theme-feedback-block .js-form-item-phone,
    #block-vesta-theme-feedback-block .js-form-item-message,
    #block-vesta-theme-feedback-block .form-actions {
        grid-column: 1;
    }

    #block-vesta-theme-feedback-top .field--name-field-feedback-title {
        font-size: 24px;
    }

    /* --- Photogallery --- */

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

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

    .photogallery-block::before {
        display: none;
    }

    .photogallery-block .view-header h2 {
        font-size: 24px;
    }

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

    /* --- Photogallery page --- */

    .view-photogallery.view-display-id-page_1 .photoswipe-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .view-photogallery.view-display-id-page_1 .field__item img {
        height: 200px;
    }

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

    /* --- Contacts --- */

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

    .contacts-block__items {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .contacts-block__item {
        width: 100%;
        max-width: 370px;
    }

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

    .contacts-block__map iframe {
        height: 300px;
    }

    /* --- Footer 2 → 1 --- */

    .footer {
        padding: 30px 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__bottom-links {
        padding-top: 10px;
    }

    /* --- Modal --- */

    .modal-dialog-centered .modal-content {
        padding: 40px 30px;
    }

    .modal-dialog-centered .close,
    .modal-dialog-centered .btn-close {
        right: 0;
        top: 0;
    }

    .modal-dialog-centered .modal-title {
        font-size: 24px;
    }

    .modal-dialog-centered .modal-body::before {
        font-size: 16px;
    }

    /* --- UI Dialog --- */

    .ui-dialog .ui-dialog-titlebar {
        padding: 24px 24px 10px !important;
    }

    .ui-dialog .ui-dialog-content {
        padding: 0 24px 24px !important;
    }

    .ui-dialog .ui-dialog-title {
        font-size: 20px !important;
    }

    /* --- Direction node --- */

    .node--type-direction.node--view-mode-full {
        padding: 30px 0 40px;
    }

    .node--type-direction.node--view-mode-full .field--name-field-direction-title {
        font-size: 24px;
    }

    /* --- Slick --- */

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

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

    button.slick-arrow {
        width: 24px;
        height: 24px;
    }

    button.slick-arrow::before {
        width: 24px;
        height: 24px;
    }

    /* --- Scroll to top --- */

    #scrollToTop {
        right: 20px;
        bottom: 90px;
        width: 40px;
        height: 40px;
    }

    /* --- Cookie --- */

    #vpa-short-wrapper.vpa-wrapper {
        width: calc(100% - 32px) !important;
        height: auto !important;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    #vpa-short-wrapper .vpa-content {
        max-width: 100%;
    }

    #vpa-short-wrapper .vpa-actions {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
    }

    #vpa-short-wrapper .vpa-actions .btn,
    #vpa-short-wrapper .vpa-actions #vpa-btn-ok {
        width: 100%;
    }

    /* --- Directions form card --- */

    .directions-form-card {
        padding: 25px 20px;
    }


}

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

    .directions-block__grid {
        grid-template-columns: 1fr;
    }

    #header-mob{

        height:64px;
    }

    .promo_text{

        text-align:left;
    }

    .promo_text .field--name-field-promo-title{

        font-size:20px;
    }

    .promo_text .field--name-field-promo-text{

        font-size:14px;
        line-height:1.6;
    }

    .advantages-block .view-advantages{

        min-height:auto;
    }

    .advantages-block .views-row{

        padding:18px;
    }

    .advantage_left .field--name-field-advantage-icon{

        width:60px;
        height:60px;
    }

    .advantage_left .field--name-field-advantage-icon img{

        width:30px;
        height:30px;
    }

    .advantage_right .field--name-field-advantage-title{

        font-size:16px;
    }

    .advantage_right .field--name-field-advantage-text{

        font-size:14px;
    }

    /* --- Directions --- */

    .directions-block .view-header h2 {
        font-size: 22px;
    }

    .directions-block .field--name-field-direction-image img {
        height: 180px;
    }

    .directions-block .field--name-field-direction-title {
        font-size: 18px;
    }

    .directions-block .field--name-field-direction-text {
        font-size: 15px;
    }

    /* --- Directions page --- */

    .wr_content .view-directions .field--name-field-direction-image img {
        height: 180px;
    }

    .wr_content .view-directions .field--name-field-direction-title {
        font-size: 18px;
    }

    .wr_content #block-vesta-theme-page-title h1 {
        font-size: 24px;
    }

    /* --- About --- */

    .about_right .field--name-field-about-stat {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .about_right .field__item {
        min-height: 100px;
        padding: 15px 10px;
    }

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

    .about_right .field--name-field-stat-text {
        font-size: 14px;
    }

    .about_left .field--name-field-about-title {
        font-size: 22px;
    }

    /* --- Feedback --- */

    #block-vesta-theme-feedback-top .field--name-field-feedback-title {
        font-size: 22px;
    }

    #block-vesta-theme-feedback-top .field--name-field-feedback-label {
        font-size: 16px;
    }

    /* --- Photogallery 2 → 1 --- */

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

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

    .photogallery-block .view-header h2 {
        font-size: 22px;
    }

    /* --- Photogallery page --- */

    .view-photogallery.view-display-id-page_1 .photoswipe-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .view-photogallery.view-display-id-page_1 .field__item img {
        height: 220px;
    }

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

    /* --- Contacts --- */

    .contacts-block__item-value {
        font-size: 18px;
    }

    .contacts-block__map iframe {
        height: 250px;
    }

    /* --- Footer --- */

    .footer__col--logo {
        gap: 12px;
    }

    .footer__bottom-links {
        padding-top: 0;
    }

    /* --- Modal --- */

    .modal-dialog-centered {
        max-width: 95%;
        width: 95%;
    }

    .modal-dialog-centered .modal-content {
        padding: 35px 20px;
    }

    .modal-dialog-centered .modal-title {
        font-size: 22px;
    }

    .modal-dialog-centered .modal-body::before {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .modal-dialog-centered .form-text {
        height: 50px;
    }

    .modal-dialog-centered .form-actions .webform-button--submit {
        height: 50px;
    }

    /* --- UI Dialog --- */

    .ui-dialog {
        width: 95% !important;
    }

    .ui-dialog .ui-dialog-titlebar {
        padding: 20px 16px 8px !important;
    }

    .ui-dialog .ui-dialog-content {
        padding: 0 16px 20px !important;
    }

    .ui-dialog .ui-dialog-title {
        font-size: 18px !important;
    }

    .ui-dialog .ui-dialog-titlebar-close {
        top: 12px !important;
        right: 12px !important;
        width: 24px !important;
        height: 24px !important;
    }

    /* --- Direction node --- */

    .node--type-direction.node--view-mode-full .field--name-field-direction-title {
        font-size: 22px;
    }

    .node--type-direction.node--view-mode-full .field--name-field-direction-text-on-page p {
        font-size: 14px;
    }

    /* --- Slick --- */

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

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

    button.slick-arrow {
        width: 20px;
        height: 20px;
    }

    button.slick-arrow::before {
        width: 20px;
        height: 20px;
    }

    ul.slick-dots {
        gap: 5px;
        margin: 8px 0;
    }

    ul.slick-dots li button {
        width: 8px;
        height: 8px;
    }

    /* --- Product --- */

    .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-height: 300px;
    }

    .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 {
        max-width: 80px;
        min-width: 80px;
        max-height: 80px;
        min-height: 80px;
    }

    .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: 80px;
        min-width: 80px;
        max-height: 80px;
        min-height: 80px;
    }

    /* --- Scroll to top --- */

    #scrollToTop {
        right: 16px;
        bottom: 80px;
        width: 36px;
        height: 36px;
    }

    /* --- Cookie --- */

    #vpa-short-wrapper.vpa-wrapper {
        width: calc(100% - 24px) !important;
        padding: 14px;
    }

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

    /* --- Directions form card --- */

    .directions-form-card .field--name-field-webform-title {
        font-size: 18px;
    }

    .directions-form-card .field--name-field-webform-text {
        font-size: 15px;
    }
}

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

    /* --- About --- */

    .about_right .field--name-field-about-stat {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about_right .field__item {
        min-height: 90px;
    }

    /* --- Feedback --- */

    #block-vesta-theme-feedback-block .webform-button--submit {
        font-size: 15px;
    }

    /* --- Contacts --- */

    .contacts-block__icon {
        width: 60px;
        height: 60px;
    }

    .contacts-block__icon img {
        width: 26px;
        height: 26px;
    }

    .contacts-block__item-value {
        font-size: 17px;
    }

    /* --- Modal --- */

    .modal-dialog-centered .modal-content {
        padding: 30px 16px;
    }

    .modal-dialog-centered .modal-title {
        font-size: 20px;
    }

    .modal-dialog-centered .modal-body::before {
        font-size: 14px;
    }

    /* --- Direction node --- */

    .node--type-direction.node--view-mode-full .field--name-field-direction-title {
        font-size: 20px;
    }

    .node--type-direction.node--view-mode-full .field--name-field-direction-city {
        font-size: 13px;
    }

    /* --- Footer --- */

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

    .footer-logo__tagline {
        font-size: 13px;
    }

    /* --- Photogallery --- */

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

    .view-photogallery.view-display-id-page_1 .field__item img {
        height: 200px;
    }

    /* --- Directions --- */

    .directions-block .field--name-field-direction-image img {
        height: 160px;
    }

    .wr_content .view-directions .field--name-field-direction-image img {
        height: 160px;
    }
}

/* ========================================
   ADAPTIVE
   Общие отступы между блоками
   ======================================== */

@media (max-width:1199px){

    .advantages-block{
        padding-bottom:50px;
    }

    .directions-block,
    .about-block,
    .feedback-block,
    .photogallery-block,
    .contacts-block{
        padding-top:50px;
        padding-bottom:50px;
    }

}

@media (max-width:991px){

    .advantages-block{
        margin-top:20px;
        padding-bottom:40px;
    }

    .directions-block,
    .about-block,
    .feedback-block,
    .photogallery-block,
    .contacts-block{
        padding-top:40px;
        padding-bottom:40px;
    }

    .directions-block .view-header,
    .photogallery-block .view-header,
    .contacts-block__header{
        margin-bottom:28px;
    }

}

@media (max-width:767px){

    .advantages-block{
        padding-bottom:30px;
    }

    .directions-block,
    .about-block,
    .feedback-block,
    .photogallery-block,
    .contacts-block{
        padding-top:30px;
        padding-bottom:30px;
    }

    .directions-block .view-header,
    .photogallery-block .view-header,
    .contacts-block__header{
        margin-bottom:22px;
    }

    #block-vesta-theme-feedback-top{
        margin-bottom:25px;
    }

}

@media (max-width:576px){

    .advantages-block{
        margin-top:15px;
        padding-bottom:20px;
    }

    .directions-block,
    .about-block,
    .feedback-block,
    .photogallery-block,
    .contacts-block{
        padding-top:20px;
        padding-bottom:20px;
    }

    .directions-block .view-header,
    .photogallery-block .view-header,
    .contacts-block__header{
        margin-bottom:18px;
    }

    #block-vesta-theme-feedback-top{
        margin-bottom:20px;
    }

}