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

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

#main {
    flex: 1;
}

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

.header-bottom {
    background: #efefef;
}

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

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

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

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

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

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

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

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

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

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

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

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


/*HEADER STYLES*/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==========================================================================
   Fonts
   ========================================================================== */

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

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

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

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

/* ==========================================================================
   Root variables
   ========================================================================== */

:root {
    /* Colors */
    --akcent: #41424a;
    --tekst: #2e2f31;
    --strok: #e7e7e7;
    --strok-2: #d0d0d0;
    --hover: #242426;

    /* Fonts */
    --font-family: 'Inter', sans-serif;
    --second-family: 'Science Gothic', sans-serif;
}

body {
    font-family: var(--font-family);
    font-weight: 500;
}

/* PRODUCT PAGE STYLES*/

/* ==========================================================================
   Header — общие переменные уже подключены из :root (font-family, colors)
   ========================================================================== */

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

/* ==========================================================================
   Header top (адрес / почта / телефоны)
   ========================================================================== */

.header-top {
    background: #efefef;
    border-bottom: 1px solid var(--strok-2);
}

.header-top-inner {
    justify-content: space-between;
}

.header-top-item {
    display: flex;
    align-items: center;
}

.header-top-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.header-address,
.header-mail,
.header-tel {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: var(--tekst);
    text-decoration: none;
    white-space: nowrap;
}

.header-mail:hover,
.header-tel:hover {
    color: var(--akcent);
}

.header-phones {
    display: flex;
    align-items: center;
}

.phone-divider {
    margin: 0 8px;
    color: var(--strok-2);
    font-weight: 400;
}

/* ==========================================================================
   Header bottom (лого / меню / иконки / кнопка)
   ========================================================================== */

.header-bottom {
    padding-top: 16px;
    padding-bottom: 16px;
}

.header-bottom .container > .d-flex {
    gap: 48px;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: block;
    width: 243px;
    height: 54px;
}

.logo img {
    width: 243px;
    height: 54px;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   Навигация
   ========================================================================== */

.col-navigation {
    margin-right: auto;
}

.col-navigation .nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.col-navigation .nav > .nav-item {
    position: relative;
}

.col-navigation .nav a.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--tekst);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.col-navigation .nav a.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--hover);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.col-navigation .nav a.nav-link:hover {
    color: var(--hover);
}

.col-navigation .nav a.nav-link:hover::before {
    transform: scaleX(1);
}

/* ==========================================================================
   Стрелка у пунктов с выпадающим меню — mask-image гарантирует нужный цвет
   ========================================================================== */

.col-navigation .nav a.dropdown-toggle {
    gap: 6px;
}

.col-navigation .nav a.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: var(--tekst);
    -webkit-mask: url('/sites/all/themes/vesta_theme/image/chevron-down.svg') no-repeat center / contain;
    mask: url('/sites/all/themes/vesta_theme/image/chevron-down.svg') no-repeat center / contain;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
}

.col-navigation .nav a.dropdown-toggle:hover::after {
    opacity: 1;
    background-color: var(--hover);
}

.col-navigation .nav > .nav-item.dropdown:hover > a.dropdown-toggle::after,
.col-navigation .nav > .nav-item.dropdown:focus-within > a.dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* ==========================================================================
   Выпадающее подменю — без вертикального сдвига (touching, без мёртвой зоны)
   ========================================================================== */

.col-navigation .nav > .nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 12px;
    list-style: none;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;

    z-index: 10;
}

.col-navigation .nav > .nav-item.dropdown:hover .dropdown-menu,
.col-navigation .nav > .nav-item.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease, visibility 0s linear 0s;
}

.col-navigation .nav .dropdown-menu li.nav-item {
    position: static;
}

.col-navigation .nav .dropdown-menu a.dropdown-item {
    display: block;
    padding: 9px 14px;
    border-radius: 4px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--tekst);
    text-decoration: none;
    white-space: normal;
    transition: background 0.15s ease, color 0.15s ease;
}

.col-navigation .nav .dropdown-menu a.dropdown-item:hover {
    background: #f5f5f5;
    color: var(--akcent);
}

/* ==========================================================================
   Мега-меню в два столбца — только для "Услуги"
   ========================================================================== */

.col-navigation .nav > .nav-item.dropdown:has(> a[href="/services"]) .dropdown-menu {
    width: 620px;
    min-width: 620px;
    padding: 28px 32px;
    columns: 2;
    column-gap: 48px;
}

.col-navigation .nav > .nav-item.dropdown:has(> a[href="/services"]) .dropdown-menu li.nav-item {
    break-inside: avoid;
    margin-bottom: 6px;
}

.col-navigation .nav > .nav-item.dropdown:has(> a[href="/services"]) .dropdown-menu a.dropdown-item {
    padding: 6px 0;
}

/* ==========================================================================
   Иконки: поиск / соц. сети — закруглённые квадраты
   ========================================================================== */

.col-actions {
    gap: 12px;
    flex-shrink: 0;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--strok);
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.btn-icon img {
    width: 24px;
    height: 24px;
    display: block;
    transition: filter 0.2s ease;
}

.btn-icon:hover {
    border-color: var(--hover);
}

.btn-search {
    border: 1px solid var(--strok);
}

/* ==========================================================================
   Search overlay
   ========================================================================== */

.header-top,
.header-bottom {
    position: relative;
    z-index: 1;
}

.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--strok-2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 1002;
    padding: 24px 0;

    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.search-overlay.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.search-overlay .container {
    display: flex;
    justify-content: center;
}

.search-overlay form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 640px;
}

.search-overlay .js-form-item-keys {
    flex: 1;
    margin: 0;
}

.search-overlay input.form-search {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    border: 1px solid var(--strok);
    border-radius: 5px;
    padding: 12px 20px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--tekst);
    transition: border-color 0.2s ease;
}

.search-overlay input.form-search::placeholder {
    color: #a3a4ac;
}

.search-overlay input.form-search:focus {
    outline: none;
    border-color: var(--akcent);
    box-shadow: 0 0 0 3px rgba(65, 66, 74, 0.08);
}

.search-overlay .form-actions {
    margin: 0;
}

.search-overlay .search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    background: var(--akcent);
    border: none;
    border-radius: 5px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.search-overlay .search-form__submit:hover {
    background: var(--hover);
}

.btn-search[aria-expanded="true"] {
    background: var(--hover);
    border-color: var(--hover);
}

.btn-search[aria-expanded="true"] img {
    filter: brightness(0) invert(1);
}


/* ==========================================================================
   Страница «Поиск» (/search/...)
   ========================================================================== */

.path-search .wr_content {
    background: #efefef;
    padding: 90px 0;
}

.path-search #block-vesta-theme-page-title h1 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0 0 50px;
}

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

/* ==========================================================================
   Форма поиска на странице — тот же стиль, что в .search-overlay хедера
   ========================================================================== */

.search-api-page-block-form-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 640px;
}

.search-api-page-block-form-search .js-form-item-keys {
    flex: 1;
    margin: 0;
}

.search-api-page-block-form-search input.form-search {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    border: 1px solid var(--strok);
    border-radius: 5px;
    padding: 12px 20px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--tekst);
    transition: border-color 0.2s ease;
}

.search-api-page-block-form-search input.form-search::placeholder {
    color: #a3a4ac;
}

.search-api-page-block-form-search input.form-search:focus {
    outline: none;
    border-color: var(--akcent);
    box-shadow: 0 0 0 3px rgba(65, 66, 74, 0.08);
}

.search-api-page-block-form-search .form-actions {
    margin: 0;
}

.search-api-page-block-form-search .search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    background: var(--akcent);
    border: none;
    border-radius: 5px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

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

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

#block-vesta-theme-content > h2 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 22px;
    line-height: 135%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0;
}

#block-vesta-theme-content > p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: #767780;
    margin: -30px 0 0;
}

/* ==========================================================================
   Список результатов — карточки (обновлённая версия)
   ========================================================================== */

#block-vesta-theme-content > h3 {
    position: relative;
    display: block;
    width: 100%;
    max-width: 640px; /* та же ширина, что у формы поиска — карточки визуально выровнены */
    margin: 0;
    padding: 18px 52px 18px 24px;
    border: 1px solid var(--strok);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#block-vesta-theme-content > h3:hover {
    border-color: var(--akcent);
    transform: translateX(2px);
}

#block-vesta-theme-content > h3 a {
    display: block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 17px;
    line-height: 135%;
    letter-spacing: -0.02em;
    color: var(--tekst);
    text-decoration: none;
}

#block-vesta-theme-content > h3 a:hover {
    color: var(--akcent);
}

/* Стрелка справа — показывает, что это ссылка-переход */
#block-vesta-theme-content > h3::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: url('/sites/all/themes/vesta_theme/image/chevrons-right.svg') no-repeat center / contain;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#block-vesta-theme-content > h3:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}

/* ==========================================================================
   Кнопка "Обратный звонок"
   ========================================================================== */

.col-callback {
    display: flex;
    align-items: center;
}

.col-callback button,
.col-callback a,
.btn-callback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 186px;
    height: 44px;
    background: var(--akcent);
    border: none;
    border-radius: 5px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.col-callback button:hover,
.col-callback a:hover,
.btn-callback:hover {
    background: var(--hover);
}

/* ==========================================================================
   Поисковый оверлей — базовый каркас (детальная логика/анимация позже)
   ========================================================================== */

.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--strok-2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding: 16px 0;
}

.search-overlay[hidden] {
    display: none;
}

/* ==========================================================================
   Promo block
   ========================================================================== */



.promo_block {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Растягиваем фон-картинку на всю ширину экрана, выходя за пределы container */
.promo_block > .container {
    position: relative;
}

.promo_block .field--name-field-promo-bg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    z-index: 0;
    margin: 0;
}

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

/* Затемнение поверх картинки для читаемости текста */
.promo_block .field--name-field-promo-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(35, 36, 40, 0.46);*/
    /*transform: rotate(-180deg)*/
}

/* Контентная область поверх фона */
.promo_content {
    position: relative;
    z-index: 1;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 150px;
    padding-top: 305px;
}

/* ===== Верхний блок: заголовок ===== */

.promo_content_top {
    margin-bottom: 15px;
}

.promo_content_top h1 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 42px;
    line-height: 135%;
    letter-spacing: -0.02em;
    max-width: 630px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

/* ===== Разделительная линия ===== */

.promo_content_buttom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-top: 1px solid #828282;
    padding-top: 24px;
}

/* ===== Текст слева ===== */

.promo_content_buttom_left {
    flex: 1;
    max-width: 640px;
}

.promo_content_buttom_left .field--name-field-promo-text {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #efefef;
}

/* ===== Кнопка справа ===== */

.promo_content_buttom_right {
    flex-shrink: 0;
}

.promo_content_buttom_right .field--name-field-promo-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 170px;
    height: 56px;
    padding: 10px 24px;
    border-radius: 3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(239, 239, 239, 0.3);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.promo_content_buttom_right .field--name-field-promo-link a:hover {
    backdrop-filter: blur(8px);
    background: var(--hover);
}

/* Иконка стрелочек после текста кнопки */
.promo_content_buttom_right .field--name-field-promo-link a::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('/sites/all/themes/vesta_theme/image/chevrons-right.svg') no-repeat center / contain;
    flex-shrink: 0;
}

/* ==========================================================================
   Services block
   ========================================================================== */

.services-block {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    isolation: isolate;
    background: #efefef;
}

.services-decor {
    position: absolute;
    width: auto;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.services-decor--left {
    top: 0;
    left: 0;
}

.services-decor--right {
    bottom: 0;
    right: 0;
}

.services-block > .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Шапка блока
   ========================================================================== */

.services-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 50px;
}

.services-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #767780;
    margin-bottom: 8px;
}

.services-eyebrow .dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #767780;
    display: inline-block;
}

.services-head-left h2 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0;
}

.services-head-right {
    max-width: 570px;
    flex-shrink: 0;
    padding-top: 25px;
}

.services-head-right p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: var(--tekst);
    margin: 0;
}

/* ==========================================================================
   Сетка карточек (только внутри блока услуг)
   ========================================================================== */

.services-block .view-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

/* ==========================================================================
   Карточка услуги (только внутри блока услуг)
   ========================================================================== */

.services-block article.node--type-service {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 284px;
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid var(--strok);
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-block article.node--type-service[data-history-node-id="810"],
.services-block article.node--type-service[data-history-node-id="812"],
.services-block article.node--type-service[data-history-node-id="816"] {
    grid-column: span 2;
}

.services-block article.node--type-service:hover {
    border: 1px solid var(--akcent);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
}

.services-block article.node--type-service > h2 {
    display: none;
}

.services-block .field--name-field-service-wide {
    display: none;
}

.services-block .node__content,
.services-block .service_content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== Иконка ===== */

.services-block .field--name-field-service-icon {
    margin-bottom: 16px;
}

.services-block .field--name-field-service-icon a {
    display: inline-block;
}

/* ===== Бейдж ===== */

.services-block .field--name-field-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    padding: 4px 10px;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: #f4f4f2;
    border-radius: 5px;
    box-sizing: border-box;
}

.services-block .field--name-field-service-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background: #5d5f67;
    border-radius: 2px;
}

.services-block .field--name-field-service-badge a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: #5d5f67;
    text-decoration: none;
    white-space: normal;
}

/* ===== Заголовок карточки ===== */

.services-block .field--name-field-service-title {
    margin-bottom: 6px;
    max-width: 540px;
}

.services-block .field--name-field-service-title a {
    position: static;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 135%;
    letter-spacing: -0.02em;
    color: var(--tekst);
    text-decoration: none;
}

.services-block .field--name-field-service-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ===== Описание карточки ===== */

.services-block .field--name-field-service-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #76777f;
}

/* ===== Ссылка "Подробнее" — всегда прижата к низу карточки ===== */

.services-block .field--name-field-service-link {
    margin-top: auto;
}

.services-block .field--name-field-service-link a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: var(--akcent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.services-block .field--name-field-service-link a::after {
    content: '';
    width: 14px;
    height: 14px;
    background: url('/sites/all/themes/vesta_theme/image/chevrons-right-black.svg') no-repeat center / contain;
}

.services-block article.node--type-service:hover .field--name-field-service-link a {
    color: var(--hover);
    border-bottom: 1px solid var(--hover);
}

/* ==========================================================================
   Кнопка "Все услуги"
   ========================================================================== */

.services-block .more-link {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.services-block .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 157px;
    height: 44px;
    background: var(--akcent);
    border-radius: 3px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.services-block .more-link a::after {
    content: '';
    width: 20px;
    height: 20px;
    background: url('/sites/all/themes/vesta_theme/image/chevrons-right.svg') no-repeat center / contain;
    filter: brightness(0) invert(1);
}

.services-block .more-link a:hover {
    background: var(--hover);
}

/* ==========================================================================
   Страница "Услуги" (/services)
   ========================================================================== */

/*.view-services {*/
/*    padding-bottom: 90px;*/
/*}*/

/* ===== Сетка карточек ===== */

.view-services .view-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.view-services .views-row {
    display: contents;
}

/* ===== Карточка услуги ===== */

.view-services article.node--type-service {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 284px;
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid var(--strok);
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Широкие карточки — растягиваются на 2 колонки */
.view-services article.node--type-service[data-history-node-id="810"],
.view-services article.node--type-service[data-history-node-id="812"],
.view-services article.node--type-service[data-history-node-id="816"] {
    grid-column: span 2;
}

.view-services article.node--type-service:hover {
    border: 1px solid var(--akcent);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
}

.view-services article.node--type-service > h2 {
    display: none;
}

.view-services .field--name-field-service-wide {
    display: none;
}

.view-services .node__content,
.view-services .service_content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== Иконка ===== */

.view-services .field--name-field-service-icon {
    margin-bottom: 16px;
}

.view-services .field--name-field-service-icon a {
    display: inline-block;
}

/* ===== Бейдж ===== */

.view-services .field--name-field-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 26px;
    padding: 4px 10px;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: #f4f4f2;
    border-radius: 5px;
    box-sizing: border-box;
}

.view-services .field--name-field-service-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background: #5d5f67;
    border-radius: 2px;
}

.view-services .field--name-field-service-badge a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: #5d5f67;
    text-decoration: none;
    white-space: normal;
}

/* ===== Заголовок карточки ===== */

.view-services .field--name-field-service-title {
    margin-bottom: 6px;
    max-width: 540px;
}

.view-services .field--name-field-service-title a {
    position: static;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 135%;
    letter-spacing: -0.02em;
    color: var(--tekst);
    text-decoration: none;
}

.view-services .field--name-field-service-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ===== Описание карточки ===== */

.view-services .field--name-field-service-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #76777f;
}

/* ===== Ссылка "Подробнее" — всегда прижата к низу карточки ===== */

.view-services .field--name-field-service-link {
    margin-top: auto;
}

.view-services .field--name-field-service-link a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: var(--akcent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.view-services .field--name-field-service-link a::after {
    content: '';
    width: 14px;
    height: 14px;
    background: url('/sites/all/themes/vesta_theme/image/chevrons-right-black.svg') no-repeat center / contain;
}

.view-services article.node--type-service:hover .field--name-field-service-link a {
    color: var(--hover);
    border-bottom: 1px solid var(--hover);
}

/* About Block */
.about-block {
    position: relative;
    overflow: hidden;
}

/* Фон на всю ширину страницы */
.about-block .field--name-field-about-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: 0;
}

.about-block .field--name-field-about-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контент поверх фона */
.about-block .container {
    position: relative;
    z-index: 2;
}

.about-block .about_content {
    position: relative;
    z-index: 2;
    padding: 90px 0;
}

/* Верхняя часть: левый и правый блок */
.about-block .about_content_top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.about-block .about_content_left {
    flex: 0 0 auto;
    max-width: 50%;
}

.about-block .about_content_right {
    flex: 0 0 auto;
    max-width: 45%;
}

/* Лейбл "О компании" с квадратиком */
.about-block .field--name-field-about-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #f4f4f2;
    margin-bottom: 10px;
}

.about-block .field--name-field-about-label::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #f4f4f2;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Заголовок */
.about-block .field--name-field-about-title h2 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

/* Текст описания */
.about-block .field--name-field-about-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 30px;
}

/* Кнопка "Подробнее" */
.about-block .field--name-field-about-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 158px;
    height: 44px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(239, 239, 239, 0.3);
    border-radius: 3px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.about-block .field--name-field-about-link a::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("/sites/all/themes/vesta_theme/image/chevrons-right.svg") no-repeat center / contain;
}

.about-block .field--name-field-about-link a:hover {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--hover);
}

/* Карточки преимуществ — растянуть на всю ширину container */
.about-block .about_content_buttom {
    width: 100%;
}

.about-block .field--name-field-about-advantages {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.about-block .field--name-field-about-advantages .field__item {
    flex: 1 1 0;
    min-width: 0;
}

.about-block .paragraph--type--advantage {
    width: 100%;
    height: 197px;
    padding: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(239, 239, 239, 0.1);
    border-top: 1px solid #fff;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Карточки /03 и /04 выше — 235px */
.about-block .field--name-field-about-advantages .field__item:nth-child(2) .paragraph--type--advantage,
.about-block .field--name-field-about-advantages .field__item:nth-child(4) .paragraph--type--advantage {
    height: 235px;
}

/* Номер карточки */
.about-block .field--name-field-advantage-number {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 32px;
    line-height: 135%;
    letter-spacing: -0.02em;
    color: #7e8087;
    margin-bottom: 10px;
}

/* Заголовок карточки */
.about-block .field--name-field-advantage-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 135%;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 10px;
}

/* Описание карточки */
.about-block .field--name-field-advantage-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #efefef;
}

/*!* Partners Block *!*/
/*.partners-block {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*!* Фон на всю ширину страницы *!*/
/*.partners-block .field--name-field-partners-bg {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    width: 100vw;*/
/*    height: 100%;*/
/*    z-index: 0;*/
/*}*/

/*.partners-block .field--name-field-partners-bg img {*/
/*    display: block;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*}*/

/*!* Контент поверх фона *!*/
/*.partners-block .container {*/
/*    position: relative;*/
/*    z-index: 2;*/
/*}*/

/*.partners-block .partners_content {*/
/*    position: relative;*/
/*    z-index: 2;*/
/*    padding: 90px 0;*/
/*}*/

/*!* Метка *!*/
/*.partners-block .field--name-field-partners-label {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 10px;*/
/*    margin: 0 0 10px;*/
/*    font-family: var(--font-family);*/
/*    font-weight: 500;*/
/*    font-size: 14px;*/
/*    line-height: 100%;*/
/*    letter-spacing: -0.01em;*/
/*    text-transform: uppercase;*/
/*    color: #767780;*/
/*}*/

/*.partners-block .field--name-field-partners-label::before {*/
/*    content: "";*/
/*    width: 10px;*/
/*    height: 10px;*/
/*    background: #767780;*/
/*    border-radius: 2px;*/
/*    flex-shrink: 0;*/
/*}*/

/*!* Заголовок блока *!*/
/*.partners-block .field--name-field-partners-title {*/
/*    margin: 0 0 50px;*/
/*}*/

/*.partners-block .field--name-field-partners-title h2 {*/
/*    margin: 0;*/
/*    font-family: var(--second-family);*/
/*    font-weight: 600;*/
/*    font-size: 34px;*/
/*    line-height: 135%;*/
/*    letter-spacing: -0.02em;*/
/*    text-transform: uppercase;*/
/*    color: var(--tekst);*/
/*}*/

/*!* Карточки — grid со stretch, чтобы все были одной высоты *!*/
/*.partners-block .field--name-field-partners {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(3, minmax(0, 1fr));*/
/*    gap: 20px;*/
/*    width: 100%;*/
/*    align-items: stretch;*/
/*}*/

/*.partners-block .field--name-field-partners > .field__item {*/
/*    min-width: 0;*/
/*    display: flex;*/
/*}*/

/*!* Карточка партнёра — растягивается по высоте ряда *!*/
/*.partners-block .paragraph--type--partner {*/
/*    width: 100%;*/
/*    min-height: 251px;*/
/*    height: 100%;*/
/*    padding: 14px;*/
/*    box-sizing: border-box;*/
/*    background: #fff;*/
/*    border-radius: 5px;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: flex-start;*/
/*    text-align: left;*/
/*}*/

/*!* Лого *!*/
/*.partners-block .field--name-field-partner-logo {*/
/*    margin: 0 0 15px;*/
/*    line-height: 0;*/
/*}*/

/*.partners-block .field--name-field-partner-logo img {*/
/*    display: block;*/
/*    width: auto;*/
/*    height: auto;*/
/*    max-width: 100%;*/
/*}*/

/*!* Заголовок в карточке *!*/
/*.partners-block .field--name-field-partner-name {*/
/*    margin: 0 0 5px;*/
/*    padding: 0;*/
/*    font-family: var(--font-family);*/
/*    font-weight: 600;*/
/*    font-size: 18px;*/
/*    line-height: 135%;*/
/*    letter-spacing: -0.02em;*/
/*    color: var(--tekst);*/
/*}*/

/*!* Описание в карточке *!*/
/*.partners-block .field--name-field-partner-text {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    font-family: var(--font-family);*/
/*    font-weight: 400;*/
/*    font-size: 14px;*/
/*    line-height: 135%;*/
/*    letter-spacing: -0.01em;*/
/*    color: #76777f;*/
/*}*/

/*!* Если внутри текста появляются <p> из Drupal *!*/
/*.partners-block .field--name-field-partner-text p {*/
/*    margin: 0;*/
/*}*/

/*!* Если внутри заголовка или текста Drupal добавляет лишние обёртки *!*/
/*.partners-block .field--name-field-partner-name .field__item,*/
/*.partners-block .field--name-field-partner-text .field__item {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

/* ==========================================================================
   Partners Block
   ========================================================================== */

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

/* Фон на всю ширину страницы */
.partners-block .field--name-field-partners-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: 0;
}

.partners-block .field--name-field-partners-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент поверх фона */
.partners-block .container {
    position: relative;
    z-index: 2;
}

.partners-block .partners_content {
    position: relative;
    z-index: 2;
    padding: 90px 0;
}

/* Метка */
.partners-block .field--name-field-partners-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #767780;
}

.partners-block .field--name-field-partners-label::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #767780;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Заголовок блока */
.partners-block .field--name-field-partners-title {
    margin: 0 0 50px;
}

.partners-block .field--name-field-partners-title h2 {
    margin: 0;
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
}

/* Карточки — 3 колонки на десктопе */
.partners-block .field--name-field-partners {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.partners-block .field--name-field-partners > .field__item {
    min-width: 0;
    display: flex;
}

/* Карточка партнёра */
.partners-block .paragraph--type--partner {
    width: 100%;
    min-height: 251px;
    height: 100%;
    padding: 14px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Лого */
.partners-block .field--name-field-partner-logo {
    margin: 0 0 15px;
    line-height: 0;
}

.partners-block .field--name-field-partner-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Заголовок в карточке */
.partners-block .field--name-field-partner-name {
    margin: 0 0 5px;
    padding: 0;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 135%;
    letter-spacing: -0.02em;
    color: var(--tekst);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Описание в карточке */
.partners-block .field--name-field-partner-text {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #76777f;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.partners-block .field--name-field-partner-text p {
    margin: 0;
}

.partners-block .field--name-field-partner-name .field__item,
.partners-block .field--name-field-partner-text .field__item {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Documents block — всё под .documents-block, чтобы не задевать другие Views
   ========================================================================== */

.documents-block {
    background: #efefef;
    padding: 90px 0;
}

/* ===== Шапка блока ===== */

.documents-block .documents-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #767780;
    margin-bottom: 12px;
}

.documents-block .documents-eyebrow .dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #767780;
    flex-shrink: 0;
}

.documents-block .documents-head h2 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0 0 50px;
}

/* ==========================================================================
   Сетка карточек — резиновая, не выходит за container ни при каком разрешении
   ========================================================================== */

.documents-block .view-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.documents-block .views-row {
    display: contents;
}

/* ===== Карточка — тянется на всю колонку, но не шире исходного размера ===== */

.documents-block article.node--type-document {
    position: relative;
    width: 100%;
    height: 451px;
    box-sizing: border-box;
    padding: 8px 8px 14px;
    border: 1px solid var(--strok);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.documents-block article.node--type-document:hover {
    border: 1px solid var(--akcent);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
    background: #fff;
}

.documents-block article.node--type-document > h2 {
    display: none;
}

.documents-block .node__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* ===== Изображение документа — тоже резиновое, максимум 252px ===== */

.documents-block .field--name-field-document-img {
    position: relative;
    width: 100%;
    aspect-ratio: 252 / 373;
    margin-bottom: 12px;
    border-radius: 5px;
    overflow: hidden;
}

.documents-block .field--name-field-document-img a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.documents-block .field--name-field-document-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.documents-block .field--name-field-document-img a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(65, 66, 74, 0.7);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.documents-block .field--name-field-document-img a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: url('/sites/all/themes/vesta_theme/image/zoom-in.svg') no-repeat center / contain;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.documents-block article.node--type-document:hover .field--name-field-document-img a::before,
.documents-block article.node--type-document:hover .field--name-field-document-img a::after {
    opacity: 1;
}

/* ===== Название документа ===== */

.documents-block .field--name-field-document-name {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.02em;
    color: var(--tekst);
    text-align: center;
    padding-bottom: 25px;
}


/* ==========================================================================
   Кнопка "Смотреть все"
   ========================================================================== */

.documents-block .more-link {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.documents-block .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 180px;
    height: 44px;
    padding: 10px 18px;
    background: var(--akcent);
    border-radius: 3px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.documents-block .more-link a::after {
    content: '';
    width: 14px;
    height: 14px;
    background: url('/sites/all/themes/vesta_theme/image/chevrons-right.svg') no-repeat center / contain;
    filter: brightness(0) invert(1);
}

.documents-block .more-link a:hover {
    background: var(--hover);
}

/* ==========================================================================
Страница /documents — карточки как на главной
========================================================================== */

/* Если у body есть класс path-documents (обычно Drupal его добавляет) */
.path-documents .wr_content {
    background: #efefef;
    padding: 90px 0;
}

/* Заголовок страницы */
.path-documents #block-vesta-theme-page-title {
    margin-bottom: 0;
}

.path-documents #block-vesta-theme-page-title h1 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0 0 50px;
}

/* ==========================================================================
Сетка карточек
========================================================================== */

.view-documents.view-display-id-page_1 .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}

.view-documents.view-display-id-page_1 .views-row {
    display: contents;
}

/* ==========================================================================
Карточка
========================================================================== */

.view-documents.view-display-id-page_1 article.node--type-document {
    position: relative;
    width: 100%;
    height: 451px;
    box-sizing: border-box;
    padding: 8px 8px 14px;
    border: 1px solid var(--strok);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.view-documents.view-display-id-page_1 article.node--type-document:hover {
    border-color: var(--akcent);
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
}

.view-documents.view-display-id-page_1 article.node--type-document > h2 {
    display: none;
}

.view-documents.view-display-id-page_1 .node__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
Изображение документа
========================================================================== */

.view-documents.view-display-id-page_1 .field--name-field-document-img {
    position: relative;
    width: 100%;
    aspect-ratio: 252 / 373;
    margin-bottom: 12px;
    border-radius: 5px;
    overflow: hidden;
}

.view-documents.view-display-id-page_1 .field--name-field-document-img a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.view-documents.view-display-id-page_1 .field--name-field-document-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.view-documents.view-display-id-page_1 .field--name-field-document-img a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(65, 66, 74, 0.7);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.view-documents.view-display-id-page_1 .field--name-field-document-img a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: url('/sites/all/themes/vesta_theme/image/zoom-in.svg') no-repeat center / contain;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.view-documents.view-display-id-page_1 article.node--type-document:hover .field--name-field-document-img a::before,
.view-documents.view-display-id-page_1 article.node--type-document:hover .field--name-field-document-img a::after {
    opacity: 1;
}

/* ==========================================================================
Название документа
========================================================================== */

.view-documents.view-display-id-page_1 .field--name-field-document-name {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.02em;
    color: var(--tekst);
    text-align: center;
    padding-bottom: 25px;
}

#block-vesta-theme-page-title h1 {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Mobile Header */
#header-mob {
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-sizing: border-box;
    gap: 12px;
}

/* Колонка бургер-меню */
#header-mob .col-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

#header-mob .col-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: background 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

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

#header-mob .col-nav img {
    width: 20px;
    height: 20px;
    display: block;
    /* иконка становится тёмной */
    filter: brightness(0) saturate(100%);
}

/* Колонка логотипа — по центру */
#header-mob .col-logo {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

#header-mob .col-logo a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

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

/* Колонка телефона */
#header-mob .col-phone {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

#header-mob .col-phone .contact-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 4px;
    font-size: 0;
    color: transparent;
    text-decoration: none;
    transition: background 0.3s ease;
}

#header-mob .col-phone .contact-item a::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") no-repeat center / contain;
    display: block;
}

#header-mob .col-phone .contact-item a:hover,
#header-mob .col-phone .contact-item a:active {
    background: #2b2b2b;
}

/* ===== Обёртка блока ===== */
.photogallery-block {
    padding: 90px 0;
    background: #e3e3e3;
}

/* ===== Заголовок блока ===== */
.photogallery-head {
    margin-bottom: 50px;
}

.photogallery-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #767780;
    margin-bottom: 8px;
}

.photogallery-eyebrow .dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #767780;
    flex-shrink: 0;
}

.photogallery-head h2 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0;
}

/* ===== Принудительно растягиваем всю цепочку родителей ===== */
.view-photogallery,
.view-photogallery .view-content,
.view-photogallery .views-row,
.view-photogallery .views-field-field-photogallery {
    width: 100% !important;
    display: block !important;
}

/* ===== Сетка изображений (резиновая, на всю ширину container) ===== */
.view-photogallery .field-content {
    display: grid !important;
    grid-template-columns: 19fr 9fr 9fr;
    grid-template-rows: 178px 178px;
    gap: 30px;
    width: 100% !important;
    box-sizing: border-box;
}

.view-photogallery .field-content > .photoswipe-gallery {
    min-width: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Первое (большое) изображение слева на всю высоту */
.view-photogallery .field-content > .photoswipe-gallery:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Верхний правый ряд */
.view-photogallery .field-content > .photoswipe-gallery:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}
.view-photogallery .field-content > .photoswipe-gallery:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

/* Нижний правый ряд */
.view-photogallery .field-content > .photoswipe-gallery:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}
.view-photogallery .field-content > .photoswipe-gallery:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

/* ===== Сами изображения и hover-эффект ===== */
.view-photogallery .field-content a.photoswipe {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.view-photogallery .field-content a.photoswipe img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

/* Тёмная плашка при наведении */
.view-photogallery .field-content a.photoswipe::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(65, 66, 74, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Иконка лупы по центру */
.view-photogallery .field-content a.photoswipe::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    background-image: url('/sites/all/themes/vesta_theme/image/zoom-in.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-photogallery .field-content a.photoswipe:hover::before,
.view-photogallery .field-content a.photoswipe:hover::after {
    opacity: 1;
}

/* ===== Кнопка "Смотреть все" ===== */
.photogallery-block .more-link {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.photogallery-block .more-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 44px;
    padding: 10px 18px;
    border-radius: 3px;
    background: var(--akcent);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

/* ==========================================================================
   Страница «Фотогалерея»
   ========================================================================== */

.path-photogallery .wr_content {
    background: #efefef;
    padding: 90px 0;
}

.path-photogallery #block-vesta-theme-page-title h1 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0 0 50px;
}

/* Прячем служебный заголовок ноды-обёртки, картинки говорят сами за себя */
.view-photogallery article.node--type-photogallery > h2 {
    display: none;
}

.view-photogallery .node__content {
    width: 100%;
}

/* ===== Сетка миниатюр — все ячейки одинакового размера ===== */

.view-photogallery .field--name-field-photogallery.field__items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* ===== Карточка-миниатюра ===== */

.view-photogallery .field--name-field-photogallery .field__item {
    position: relative;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--strok);
    background: #fff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.view-photogallery .field--name-field-photogallery .field__item:hover {
    border-color: var(--akcent);
}

.view-photogallery .field--name-field-photogallery .field__item a {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 270 / 178; /* единая пропорция для всех превью */
    overflow: hidden;
}

.view-photogallery .field--name-field-photogallery .field__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Затемнение + иконка увеличения при ховере, как в блоке документов */

.view-photogallery .field--name-field-photogallery .field__item a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(65, 66, 74, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.view-photogallery .field--name-field-photogallery .field__item a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: url('/sites/all/themes/vesta_theme/image/zoom-in.svg') no-repeat center / contain;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.view-photogallery .field--name-field-photogallery .field__item:hover a::before,
.view-photogallery .field--name-field-photogallery .field__item:hover a::after {
    opacity: 1;
}

/* ==========================================================================
   Contacts block
   ========================================================================== */

.contacts-block {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    isolation: isolate;
    background: #efefef;
}

.contacts-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.contacts-block > .container {
    position: relative;
    z-index: 1;
}

/* ===== Заголовок ===== */

.contacts-title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 34px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0 0 50px;
}

/* ==========================================================================
   Основная раскладка: левая колонка + карта
   ========================================================================== */

.contacts-inner {
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
}

.col-contacts-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 470px;
    max-width: 470px;
    min-width: 0;
}

/* ===== Общий вид "карточки"-подложки ===== */

.contacts-item {
    box-sizing: border-box;
    border: 1px solid var(--strok);
    border-radius: 5px;
    padding: 14px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
    background: #fff;
    width: 100%;
    max-width: 100%;
}

.contacts-label {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #767780;
    margin-bottom: 10px;
}

/* ===== Юр. адрес ===== */

.contacts-address-two {
    width: 100%;
    min-height: 96px;
}

.contacts-address-two .contacts-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: var(--tekst);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Факт. адрес ===== */

.contacts-address {
    width: 100%;
    min-height: 68px;
}

.contacts-address .contacts-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: var(--tekst);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Строка: телефон + почта ===== */

.contacts-row {
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.contacts-phones,
.contacts-mail {
    flex: 1 1 0;
    min-width: 0;
    min-height: 90px;
    display: flex;
    flex-direction: column;
}

.contacts-tel {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--tekst);
    text-decoration: none;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contacts-tel:last-child {
    margin-bottom: 0;
}

.contacts-mail-link {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: var(--tekst);
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== Соц. сети ===== */

.contacts-socials {
    gap: 15px;
    margin-top: 4px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Карта — бронебойная фиксация размера
   ========================================================================== */

.col-contacts-map {
    position: relative;
    flex: 1 1 570px;
    width: 100%;
    max-width: 570px;
    height: 346px;
    max-height: 346px;
    border-radius: 5px;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
}

.col-contacts-map .region-map,
.col-contacts-map .block-block-content,
.col-contacts-map .field--name-body,
.col-contacts-map div.mapContainer,
.col-contacts-map iframe {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 5px;
}

/* Подсказку "Для активации карты нажмите по ней" тоже фиксируем внутри рамки */
.col-contacts-map .mapHelp {
    position: absolute !important;
    z-index: 2;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 991.98px) {
    .contacts-inner {
        flex-direction: column;
        gap: 20px;
    }

    .col-contacts-info,
    .col-contacts-map {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .contacts-block {
        padding: 50px 0;
    }

    .contacts-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .contacts-row {
        flex-direction: column;
        gap: 15px;
    }

    .contacts-phones,
    .contacts-mail {
        width: 100%;
        min-height: auto;
    }

    .col-contacts-map {
        height: 300px;
    }
}

/* ==========================================================================
   Feedback block
   ========================================================================== */

.feedback-block {
    position: relative;
    z-index: 0; /* создаёт собственный контекст наложения — обязательно для корректной работы z-index:-1 у фона */
    overflow: hidden;
}

/* Drupal core сам вешает position:relative на .contextual-region (обёртку блока),
   из-за чего она становится ближайшим positioned-предком для абсолютной картинки
   вместо .feedback-block, и картинка растягивается только на высоту карточки,
   без паддингов контейнера. Возвращаем ей статичное позиционирование, чтобы
   .feedback-block снова был containing block для фона. */
.feedback-block .contextual-region {
    position: static;
}

/* ===== Фоновая картинка: относительно .feedback-block, позади всего контента =====
   ВАЖНО: используем top:0 + bottom:0 (а не height:100%).
   Высота .feedback-block вычисляется как auto (по padding контейнера + высоте карточки),
   а проценты по высоте (height:100%) у абсолютного элемента в таком случае резолвятся
   ненадёжно и картинка "схлопывается" по своему intrinsic-соотношению сторон —
   из-за этого отступы визуально уезжали наружу, а картинка прижималась к карточке.
   top+bottom растягивают элемент на фактическую (уже вычисленную) высоту родителя
   независимо от того, что она auto. */

.field--name-field-feedback-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    margin: 0;
}

.field--name-field-feedback-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Отступы сверху/снизу — внутри картинки: они формируют высоту .feedback-block,
   фон растягивается на эту высоту целиком, без зазоров */
.feedback-block > .container {
    padding-top: 90px;
    padding-bottom: 90px;
}

/* ===== Карточка формы — БЕЗ position/z-index, чтобы не ломать containing block фона ===== */

.feedback_content {
    box-sizing: border-box;
    border-radius: 5px;
    padding: 31px 24px;
    width: 570px;
    background: #efefef;
    margin-left: auto;
}

/* ===== Заголовок ===== */

.field--name-field-feedback-title h2 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 24px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0 0 25px;
    max-width: 405px;
}

/* ==========================================================================
   Форма
   ========================================================================== */

.webform-submission-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.webform-submission-form .form-item,
.webform-submission-form .js-form-item {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

.form-item-name {
    width: 100%;
}

.form-item-name input {
    box-sizing: border-box;
    border: 1px solid var(--strok);
    border-radius: 5px;
    padding: 10px 16px;
    width: 100%;
    height: 42px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #76777f;
    display: block;
}

/* ===== Поля "Телефон" и "Почта" — рядом, одинаковая ширина/высота ===== */

.form-item-phone,
.form-item-email {
    flex: 0 0 calc(50% - 6px);
    width: calc(50% - 6px);
}

.form-item-phone input,
.form-item-email input {
    box-sizing: border-box;
    border: 1px solid var(--strok);
    border-radius: 5px;
    padding: 10px 16px;
    width: 100%;
    height: 42px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #76777f;
    display: block;
    margin: 0;
}

/* ===== Поле "Сообщение" ===== */

.form-item-message {
    width: 100%;
}

.form-item-message textarea {
    box-sizing: border-box;
    border: 1px solid var(--strok);
    border-radius: 5px;
    padding: 10px 16px;
    width: 100%;
    height: 86px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #76777f;
    resize: none;
}

/* ===== Чекбокс "Согласие" ===== */

.form-item-privacy {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-item-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid var(--akcent);
    border-radius: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.form-item-privacy input[type="checkbox"]:checked {
    background: var(--akcent);
}

.form-item-privacy input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-item-privacy .webform-element-description,
.form-item-privacy .description {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: var(--tekst);
}

.form-item-privacy .webform-element-description a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--tekst);
}

/* ===== Кнопка "Отправить" ===== */

.webform-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.webform-actions .webform-button--submit {
    border-radius: 3px;
    padding: 10px 18px;
    width: 127px;
    height: 44px;
    background: var(--akcent);
    border: none;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.webform-actions .webform-button--submit:hover {
    background: var(--hover);
}

/* ==========================================================================
   Feedback form — focus & error states
   ========================================================================== */

/* ===== Скрываем текстовый блок с перечнем ошибок сверху формы ===== */

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

/* ===== Скрываем текст ошибки под каждым полем ===== */

.webform-submission-form .form-item--error-message {
    display: none !important;
}

/* ==========================================================================
   Focus — под стилистику сайта
   ========================================================================== */

.form-item-name input:focus,
.form-item-phone input:focus,
.form-item-email input:focus,
.form-item-message textarea:focus {
    outline: none;
    border-color: var(--akcent);
    box-shadow: 0 0 0 3px rgba(65, 66, 74, 0.08);
}

/* ==========================================================================
   Error — только красная обводка поля, без текста
   ========================================================================== */

.form-item-name input.error,
.form-item-phone input.error,
.form-item-email input.error,
.form-item-message textarea.error,
.form-item--error input,
.form-item--error textarea {
    border-color: #e53935;
}

.form-item-name input.error:focus,
.form-item-phone input.error:focus,
.form-item-email input.error:focus,
.form-item-message textarea.error:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* ===== Чекбокс "Согласие" — состояние ошибки ===== */

.form-item-privacy.form-item--error input[type="checkbox"] {
    border-color: #e53935;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--akcent);
}

.footer a {
    text-decoration: none;
}

/* ==========================================================================
   Footer top: лого, соц.сети, кнопка обратного звонка
   ========================================================================== */

.footer-logo a {
    display: block;
    width: 243px;
    height: 54px;
}

.footer-logo img {
    width: 243px;
    height: 54px;
    object-fit: contain;
    display: block;
}

.footer-top-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.footer-top-actions .btn-icon {
    flex-shrink: 0;
}

.footer-top-actions .col-callback {
    flex-shrink: 0;
}

.footer-top {
    padding-top: 50px !important;
    padding-bottom: 40px !important;
}

.footer-top-actions .col-callback a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
    width: auto !important;
    height: 44px;
    padding: 10px 19px;
    backdrop-filter: blur(8px);
    background: rgba(239, 239, 239, 0.3);
    border-radius: 5px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    transition: background 0.2s ease;
}

.footer-top-actions .col-callback a:hover {
    backdrop-filter: blur(8px);
    background: var(--hover);
}

/* ==========================================================================
   Footer main: три колонки на всю ширину container, точные размеры
   ========================================================================== */

.footer-main {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

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

.footer-col-services #block-vesta-theme-services-footer-menu,
.footer-col-navigation #block-vesta-theme-navigation-footer-menu,
.footer-col-title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 15px;
}

/* ===== Пункты меню (общий вид) ===== */

.footer-col-services .nav-link,
.footer-col-navigation .nav-link {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    padding: 0;
    transition: color 0.2s ease;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-col-services .nav-link:hover,
.footer-col-navigation .nav-link:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.footer-col-services .nav-link:hover,
.footer-col-navigation .nav-link:hover {
    color: var(--strok-2);
}

/* ===== Колонка "Услуги" — ширина 528px, 2 колонки, отступ между пунктами 14px ===== */

.footer-col-services {
    flex: 0 0 570px;
    width: 570px;
    max-width: 570px;
}

.footer-col-services .nav.navbar-nav {
    display: block !important;
    column-count: 2;
    column-gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col-services .nav-item {
    break-inside: avoid;
    margin-bottom: 14px;
}

.footer-col-services .nav-item:nth-child(5) {
    break-after: column;
}

.footer-col-services .nav-item:last-child {
    margin-bottom: 0;
}

/* ===== Колонка "Меню подвала" — ширина 204px ===== */

.footer-col-navigation {
    flex: 0 0 204px;
    width: 204px;
    max-width: 204px;
}

.footer-col-navigation .nav.navbar-nav {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col-navigation .nav-item {
    margin: 0;
}

/* ===== Колонка "Контакты" — ширина 290px ===== */

.footer-col-contacts {
    flex: 0 0 290px;
    width: 290px;
    max-width: 290px;
}

.footer-contact-item {
    margin-bottom: 20px;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-label {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--strok-2);
    margin-bottom: 10px;
}

.footer-contact-text,
.footer-contact-tel,
.footer-contact-mail {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.footer-contact-tel {
    margin-bottom: 2px;
}

.footer-contact-tel:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer bottom: политика + копирайт слева (в столбик), студия справа (по низу)
   ========================================================================== */

.footer-bottom {
    padding-top: 0px !important;
    padding-bottom: 30px !important;
}

.footer-bottom-inner {
    display: flex;
    align-items: flex-end;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: 32px;
}

.footer-policy-link {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #fff;
}

.footer-copyright-text {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #fff;
}

.footer-copyright-divider {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #fff;
}

/* ==========================================================================
   Callback modal
   ========================================================================== */

.modal-dialog {
    max-width: 570px;
}

.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ===== Header ===== */

.modal-header {
    position: relative;
    border-bottom: 1px solid var(--strok);
    padding: 24px 56px 20px 24px;
    align-items: center;
}

.modal-title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 22px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0;
}

.modal-header .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 1px solid var(--strok);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232e2f31' d='M4 4l8 8M12 4l-8 8' stroke='%232e2f31' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 29px no-repeat;
    opacity: 1;
    margin: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-header .btn-close:hover {
    background-color: var(--strok);
    border-color: var(--strok-2);
}

/* ==========================================================================
   Webform confirmation modal (jQuery UI dialog)
   ========================================================================== */

/* Поднимаем поверх модалки обратной связи (Bootstrap-модалки обычно ~1050-1060) */
.ui-dialog.webform-confirmation-modal {
    z-index: 2000 !important;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    font-family: var(--font-family);
}

/* Затемняющая подложка jQuery UI dialog (создаётся автоматически как .ui-widget-overlay) */
.ui-widget-overlay {
    z-index: 1999 !important;
    background: rgba(20, 22, 28, 0.6);
}

/* ===== Заголовок ===== */

.ui-dialog.webform-confirmation-modal .ui-dialog-titlebar {
    position: relative;
    background: #fff;
    border: none;
    border-bottom: 1px solid var(--strok);
    border-radius: 0;
    padding: 24px 56px 20px 24px;
}

.ui-dialog.webform-confirmation-modal .ui-dialog-title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 135%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--tekst);
    margin: 0;
}

/* ===== Кнопка закрытия ===== */

.ui-dialog.webform-confirmation-modal .ui-dialog-titlebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--strok);
    border-radius: 5px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232e2f31' d='M4 4l8 8M12 4l-8 8' stroke='%232e2f31' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ui-dialog.webform-confirmation-modal .ui-dialog-titlebar-close:hover {
    background-color: var(--strok);
    border-color: var(--strok-2);
}

.ui-dialog.webform-confirmation-modal .ui-dialog-titlebar-close .ui-icon,
.ui-dialog.webform-confirmation-modal .ui-dialog-titlebar-close .ui-button-icon {
    display: none;
}

/* ===== Тело окна ===== */

.ui-dialog.webform-confirmation-modal .ui-dialog-content,
.ui-dialog.webform-confirmation-modal .webform-confirmation-modal--content {
    background: #fff;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: var(--tekst);
    box-sizing: border-box;
}

/* Иконка успеха слева от текста */
.ui-dialog.webform-confirmation-modal .webform-confirmation-modal--content::before {
    content: '';
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--akcent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ===== Body ===== */

.modal-body {
    padding: 24px;
}

/* Скрываем встроенное alert-сообщение об ошибках сверху формы */
.modal-body .alert.alert-error,
.modal-body .alert-danger {
    display: none !important;
}

/* Скрываем текст ошибки под каждым полем */
.modal-body .form-item--error-message {
    display: none !important;
}

.modal-body .webform-submission-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.modal-body .form-item,
.modal-body .js-form-item {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    width: 100%;
}

/* ===== Поля ввода ===== */

.modal-body input.form-control,
.modal-body textarea.form-control {
    box-sizing: border-box;
    border: 1px solid var(--strok);
    border-radius: 5px;
    padding: 10px 16px;
    width: 100%;
    height: 42px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: var(--tekst);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-body input.form-control::placeholder,
.modal-body textarea.form-control::placeholder {
    color: #76777f;
}

.modal-body textarea.form-control {
    height: 100px;
    resize: none;
    padding-top: 10px;
}

.modal-body input.form-control:focus,
.modal-body textarea.form-control:focus {
    outline: none;
    border-color: var(--akcent);
    box-shadow: 0 0 0 3px rgba(65, 66, 74, 0.08);
}

/* ===== Ошибка — только красная обводка, без текста ===== */

.modal-body input.form-control.error,
.modal-body textarea.form-control.error,
.modal-body .form-item--error input.form-control,
.modal-body .form-item--error textarea.form-control {
    border-color: #e53935;
}

.modal-body input.form-control.error:focus,
.modal-body textarea.form-control.error:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* ===== Чекбокс "Согласие" ===== */

.modal-body .form-item-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-body .form-item-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid var(--akcent);
    border-radius: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.modal-body .form-item-privacy input[type="checkbox"]:checked {
    background: var(--akcent);
}

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

.modal-body .form-item-privacy.form-item--error input[type="checkbox"] {
    border-color: #e53935;
}

.modal-body .form-item-privacy .webform-element-description,
.modal-body .form-item-privacy .description {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: var(--tekst);
}

.modal-body .form-item-privacy .webform-element-description a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--tekst);
}

/* ===== Скрываем дублирующую кнопку "Отправить" внутри body,
   раз она уже задизейблена (display:none) через inline-стиль ===== */

.modal-body .webform-actions {
    display: none;
}

/* ===== Footer с кнопкой отправки ===== */

.modal-footer {
    border-top: 1px solid var(--strok);
    padding: 20px 24px 24px;
    justify-content: center;
}

.modal-footer .webform-button--submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    height: 48px;
    background: var(--akcent);
    border: none;
    border-radius: 5px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-footer .webform-button--submit:hover {
    background: var(--hover);
}

/* ============================================
   OFFCANVAS — Мобильное бургер-меню
   ============================================ */

.offcanvas-nav {
    width: 340px !important;
    max-width: 90vw;
    background: #ffffff;
    color: #1a1a1a;
    border-right: 1px solid #e5e5e5;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* ===== Header ===== */
.offcanvas-nav .offcanvas-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.offcanvas-nav .offcanvas-header .logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
}

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

/* Кнопка закрытия */
.offcanvas-nav .btn-close {
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: #1a1a1a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") no-repeat center / 16px 16px;
    border: none;
    border-radius: 4px;
    opacity: 1;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.offcanvas-nav .btn-close:hover {
    background-color: #2b2b2b;
}

.offcanvas-nav .btn-close:focus {
    box-shadow: none;
    outline: none;
}

/* ===== Body ===== */
.offcanvas-nav .offcanvas-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

/* ============================================
   ПОИСК
   ============================================ */
.offcanvas-nav .offcanvas-search {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.offcanvas-nav .offcanvas-search .search-block-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.offcanvas-nav .offcanvas-search .js-form-item {
    flex: 1 1 auto;
    margin: 0;
}

.offcanvas-nav .offcanvas-search .form-search,
.offcanvas-nav .offcanvas-search .form-control {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 100%;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    box-shadow: none;
}

.offcanvas-nav .offcanvas-search .form-search::placeholder,
.offcanvas-nav .offcanvas-search .form-control::placeholder {
    color: #a0a0a5;
}

.offcanvas-nav .offcanvas-search .form-search:focus,
.offcanvas-nav .offcanvas-search .form-control:focus {
    border-color: #1a1a1a;
    box-shadow: none;
}

.offcanvas-nav .offcanvas-search .form-actions {
    flex: 0 0 auto;
    margin: 0;
}

.offcanvas-nav .offcanvas-search .btn,
.offcanvas-nav .offcanvas-search .btn-primary,
.offcanvas-nav .offcanvas-search .search-form__submit {
    height: 40px;
    padding: 0 16px;
    background: #1a1a1a;
    border: none;
    border-radius: 4px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.offcanvas-nav .offcanvas-search .btn:hover,
.offcanvas-nav .offcanvas-search .btn-primary:hover,
.offcanvas-nav .offcanvas-search .search-form__submit:hover {
    background: #2b2b2b;
}

/* ============================================
   МЕНЮ НАВИГАЦИИ
   ============================================ */
.offcanvas-nav .offcanvas-nav-menu {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

/* Скрываем служебный заголовок блока Drupal, если он вдруг видимый */
.offcanvas-nav .offcanvas-nav-menu [id^="block-"][id$="-menu"] {
    display: none;
}

.offcanvas-nav .offcanvas-nav-menu .nav,
.offcanvas-nav .offcanvas-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.offcanvas-nav .offcanvas-nav-menu .nav-link,
.offcanvas-nav .offcanvas-nav-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 4px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.offcanvas-nav .offcanvas-nav-menu .nav-link:hover,
.offcanvas-nav .offcanvas-nav-menu a:hover {
    background: #f4f4f2;
    color: #1a1a1a;
}

.offcanvas-nav .offcanvas-nav-menu .nav-link.is-active,
.offcanvas-nav .offcanvas-nav-menu .nav-link.active,
.offcanvas-nav .offcanvas-nav-menu a.is-active {
    background: #1a1a1a;
    color: #ffffff;
}

/* Вложенные меню (если появятся) */
.offcanvas-nav .offcanvas-nav-menu ul ul {
    padding-left: 14px;
    margin-top: 4px;
    gap: 2px;
}

.offcanvas-nav .offcanvas-nav-menu ul ul .nav-link,
.offcanvas-nav .offcanvas-nav-menu ul ul a {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    color: #4a4a4a;
}

/* ============================================
   БЛОК КОНТАКТОВ
   ============================================ */
.offcanvas-nav .offcanvas-contacts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.offcanvas-nav .offcanvas-contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offcanvas-nav .offcanvas-contact-label {
    display: inline-block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #767780;
}

.offcanvas-nav .offcanvas-contact-text {
    margin: 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.offcanvas-nav .offcanvas-contact-link {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 135%;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.offcanvas-nav .offcanvas-contact-link + .offcanvas-contact-link {
    margin-top: 2px;
}

.offcanvas-nav .offcanvas-contact-link:hover {
    color: #767780;
}

/* ===== Соц. сети ===== */
.offcanvas-nav .offcanvas-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.offcanvas-nav .offcanvas-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.offcanvas-nav .offcanvas-social:hover {
    background: #f4f4f2;
    border-color: #d5d5d5;
}

.offcanvas-nav .offcanvas-social img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ============================================
   BACKDROP (затемнение при открытии)
   ============================================ */
.offcanvas-backdrop.show {
    opacity: 0.5;
}

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

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

@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%;
    }
}

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

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

@media screen and (max-width: 1399px) {
    .col-navigation .nav {
        gap: 18px;
    }
}

/* ==========================================================================
   *** ADAPTIVE ***
   Брейкпоинты соответствуют исходным точкам файла: 1199 / 991 / 767 / 576
   ========================================================================== */

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

    /* ===== Header ===== */
    .header-bottom .container > .d-flex {
        gap: 28px;
    }

    .logo a {
        width: 200px;
        height: 44px;
    }

    .logo img {
        width: 200px;
        height: 44px;
    }

    .col-navigation .nav {
        gap: 10px;
    }

    .col-navigation .nav a.dropdown-toggle {
        gap: 0px;
    }

    .documents-block .view-content,
    .view-documents.view-display-id-page_1 .view-content {
        flex-wrap: wrap;
        gap: 20px;
    }

    .documents-block article.node--type-document,
    .view-documents.view-display-id-page_1 article.node--type-document {
        flex: 1 1 calc((100% - 40px) / 3);
        height: auto;
        padding-bottom: 16px;
    }
    
    .documents-block .view-content .views-row:nth-child(4) {
        display: none;
    }

    .col-navigation .nav a.nav-link {
        font-size: 14px;
    }

    .col-navigation .nav > .nav-item.dropdown:has(> a[href="/services"]) .dropdown-menu {
        width: 480px;
        min-width: 480px;
        padding: 22px 24px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .col-callback button,
    .col-callback a,
    .btn-callback {
        width: 160px;
        height: 40px;
        font-size: 14px;
    }

    /* ===== Promo ===== */
    .promo_content {
        min-height: 480px;
        padding-top: 220px;
        padding-bottom: 110px;
    }

    .promo_content_top h1 {
        font-size: 34px;
        max-width: 520px;
    }

    .promo_content_buttom_left {
        max-width: 480px;
    }

    .promo_content_buttom_left .field--name-field-promo-text {
        font-size: 16px;
    }

    /* ===== Services (block + page) ===== */
    .services-block {
        padding: 70px 0;
    }

    .services-head {
        margin-bottom: 36px;
    }

    .services-head-left h2,
    .view-services + h2 {
        font-size: 28px;
    }

    .services-head-right {
        max-width: 420px;
        padding-top: 6px;
    }

    .services-block .view-content,
    .view-services .view-content {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .services-block article.node--type-service,
    .view-services article.node--type-service {
        flex: 1 1 calc((100% - 40px) / 3);
        min-height: 260px;
    }

    /* Широкие карточки — были на 2 колонки из 4, здесь занимают 2 из 3 */
    .services-block article.node--type-service[data-history-node-id="810"],
    .services-block article.node--type-service[data-history-node-id="812"],
    .services-block article.node--type-service[data-history-node-id="816"],
    .view-services article.node--type-service[data-history-node-id="810"],
    .view-services article.node--type-service[data-history-node-id="812"],
    .view-services article.node--type-service[data-history-node-id="816"] {
        flex: 1 1 calc(((100% - 40px) / 3) * 2 + 20px);
    }

    /* ===== About ===== */
    .about-block .about_content {
        padding: 70px 0;
    }

    .about-block .about_content_top {
        gap: 24px;
    }

    .about-block .field--name-field-about-title h2 {
        font-size: 28px;
    }

    .about-block .paragraph--type--advantage {
        height: auto;
        min-height: 175px;
        padding: 12px;
    }

    .about-block .field--name-field-about-advantages .field__item:nth-child(2) .paragraph--type--advantage,
    .about-block .field--name-field-about-advantages .field__item:nth-child(4) .paragraph--type--advantage {
        height: auto;
        min-height: 210px;
    }

    /* ===== Partners ===== */
    .partners-block .partners_content {
        padding: 70px 0;
    }

    .partners-block .field--name-field-partners-title h2 {
        font-size: 28px;
    }

    .partners-block .field--name-field-partners {
        flex-wrap: wrap;
        gap: 16px;
    }

    .partners-block .field--name-field-partners > .field__item {
        flex: 1 1 calc((100% - 32px) / 3);
        min-width: 0;
    }

    /* ===== Documents ===== */
    .documents-block {
        padding: 70px 0;
    }

    .documents-block .documents-head h2 {
        font-size: 28px;
        margin-bottom: 36px;
    }

    .documents-block .view-content,
    .view-documents.view-display-id-page_1 .view-content {
        flex-wrap: wrap;
        gap: 20px;
    }

    .documents-block article.node--type-document,
    .view-documents.view-display-id-page_1 article.node--type-document {
        flex: 1 1 calc((100% - 40px) / 3);
        height: auto;
        padding-bottom: 16px;
    }

    /* ===== Photogallery ===== */
    .photogallery-block {
        padding: 70px 0;
    }

    .photogallery-head h2 {
        font-size: 28px;
        margin-bottom: 36px;
    }

    .view-photogallery .field-content {
        grid-template-rows: 150px 150px;
        gap: 20px;
    }

    .view-photogallery .field--name-field-photogallery.field__items {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .view-photogallery .field--name-field-photogallery .field__item {
        flex: 1 1 calc((100% - 40px) / 3);
    }

    /* ===== Contacts ===== */
    .contacts-block {
        padding: 70px 0;
    }

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

    .col-contacts-info {
        flex: 0 0 380px;
        max-width: 380px;
    }

    .contacts-address-two,
    .contacts-address {
        width: 100%;
    }

    .contacts-phones,
    .contacts-mail {
        width: calc(50% - 8px);
    }

    .col-contacts-map {
        flex: 0 0 380px;
        width: 380px;
        max-width: 380px;
        height: 300px;
        max-height: 300px;
    }

    /* ===== Feedback ===== */
    .feedback_content {
        width: 480px;
        padding: 26px 20px;
    }

    .field--name-field-feedback-title h2 {
        font-size: 22px;
    }

    /* ===== Footer ===== */
    .footer-col-services {
        flex: 0 0 460px;
        width: 460px;
        max-width: 460px;
    }

    .footer-col-navigation {
        flex: 0 0 170px;
        width: 170px;
        max-width: 170px;
    }

    .footer-col-contacts {
        flex: 0 0 250px;
        width: 250px;
        max-width: 250px;
    }
}

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

    /* ===== Search overlay ===== */
    .search-overlay form {
        max-width: 100%;
        padding: 0 8px;
    }

    /* ===== Promo ===== */
    .promo_content {
        min-height: 420px;
        padding-top: 170px;
        padding-bottom: 70px;
    }

    .promo_content_top h1 {
        font-size: 28px;
        max-width: 100%;
    }

    .promo_content_buttom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .promo_content_buttom_left {
        max-width: 100%;
    }

    .promo_content_buttom_right .field--name-field-promo-link a {
        width: 100%;
    }

    /* ===== Services ===== */
    .services-block {
        padding: 40px 0;
    }

    .services-head {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 28px;
    }

    .services-head-right {
        max-width: 100%;
        padding-top: 0;
    }

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

    .services-block article.node--type-service[data-history-node-id="810"],
    .services-block article.node--type-service[data-history-node-id="812"],
    .services-block article.node--type-service[data-history-node-id="816"],
    .view-services article.node--type-service[data-history-node-id="810"],
    .view-services article.node--type-service[data-history-node-id="812"],
    .view-services article.node--type-service[data-history-node-id="816"] {
        grid-column: span 2;
    }

    .services-block article.node--type-service,
    .view-services article.node--type-service {
        min-height: 230px;
    }

    .services-block .more-link {
        margin-top: 28px;
    }

    /* ===== About ===== */
    .about-block .about_content {
        padding: 40px 0;
    }

    .about-block .about_content_top {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .about-block .about_content_left,
    .about-block .about_content_right {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .about-block .field--name-field-about-advantages {
        flex-wrap: wrap;
        gap: 16px;
    }

    .about-block .field--name-field-about-advantages .field__item {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }

    .about-block .paragraph--type--advantage,
    .about-block .field--name-field-about-advantages .field__item:nth-child(2) .paragraph--type--advantage,
    .about-block .field--name-field-about-advantages .field__item:nth-child(4) .paragraph--type--advantage {
        height: auto;
        min-height: 160px;
    }

    /* ===== Partners ===== */
    .partners-block .partners_content {
        padding: 40px 0;
    }

    .partners-block .field--name-field-partners-title {
        margin-bottom: 30px;
    }

    .partners-block .field--name-field-partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    /* ===== Documents ===== */
    .documents-block {
        padding: 40px 0;
    }

    .documents-block .documents-head h2 {
        margin-bottom: 30px;
    }

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

    .documents-block article.node--type-document,
    .view-documents.view-display-id-page_1 article.node--type-document {
        height: auto;
    }

    .documents-block .field--name-field-document-img,
    .view-documents.view-display-id-page_1 .field--name-field-document-img {
        margin-bottom: 10px;
    }

    /* ===== Photogallery ===== */
    .photogallery-block {
        padding: 40px 0;
    }

    .photogallery-head {
        margin-bottom: 30px;
    }

    .view-photogallery .field-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 160px);
        gap: 16px;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }

    .view-photogallery .field--name-field-photogallery.field__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    /* ===== Contacts ===== */
    .contacts-block {
        padding: 40px 0;
    }

    .contacts-title {
        margin-bottom: 30px;
    }

    .contacts-inner {
        flex-direction: column;
        gap: 20px;
    }

    .col-contacts-info {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .contacts-address-two,
    .contacts-address {
        width: 100%;
        height: auto;
    }

    .col-contacts-map {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: 300px;
        max-height: 300px;
    }

    /* ===== Feedback ===== */
    .feedback-block > .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .feedback_content {
        width: 100%;
        margin-left: 0;
    }

    .form-item-phone,
    .form-item-email {
        flex: 0 0 100%;
        width: 100%;
    }

    /* ===== Footer ===== */
    .footer-top {
        padding-top: 40px !important;
        padding-bottom: 30px !important;
    }

    .footer-columns {
        flex-wrap: wrap;
        row-gap: 30px;
        column-gap: 24px;
    }

    .footer-col-services {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .footer-col-navigation {
        flex: 0 0 calc(50% - 12px);
        width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    .footer-col-contacts {
        flex: 0 0 calc(50% - 12px);
        width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-bottom-left {
        margin-right: 0;
    }

    /* ===== Modals ===== */
    .modal-dialog {
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    .ui-dialog.webform-confirmation-modal {
        max-width: 90vw !important;
    }

    /* ===== Offcanvas nav (уже частично описан выше) ===== */
    #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%;
    }
}

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

    /* ===== Scroll to top ===== */
    #scrollToTop {
        width: 40px;
        height: 40px;
        right: 16px;
        bottom: 80px;
    }

    /* ===== Slick arrows ===== */
    button.slick-arrow {
        width: 26px;
        height: 26px;
    }

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

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

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

    /* ===== Promo ===== */
    .promo_content {
        min-height: 360px;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .promo_content_top h1 {
        font-size: 24px;
        line-height: 130%;
    }

    .promo_content_buttom {
        padding-top: 16px;
        gap: 14px;
    }

    .promo_content_buttom_left .field--name-field-promo-text {
        font-size: 14px;
    }

    .promo_content_buttom_right .field--name-field-promo-link a {
        height: 46px;
        font-size: 14px;
    }

    /* ===== Product page ===== */
    .product-teaser {
        flex-direction: column;
        gap: 24px;
    }

    .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: 360px;
        min-height: 220px;
    }

    /* ===== Services ===== */
    .services-block {
        padding: 30px 0;
    }

    .services-head-left h2 {
        font-size: 24px;
    }

    .services-head-right p {
        font-size: 14px;
    }

    .services-block .view-content,
    .view-services .view-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .services-block article.node--type-service[data-history-node-id="810"],
    .services-block article.node--type-service[data-history-node-id="812"],
    .services-block article.node--type-service[data-history-node-id="816"],
    .view-services article.node--type-service[data-history-node-id="810"],
    .view-services article.node--type-service[data-history-node-id="812"],
    .view-services article.node--type-service[data-history-node-id="816"] {
        grid-column: span 1;
    }

    .services-block article.node--type-service,
    .view-services article.node--type-service {
        min-height: auto;
        padding: 14px;
    }

    .services-block .more-link a {
        width: 100%;
    }

    /* ===== About ===== */
    .about-block .about_content {
        padding: 30px 0;
    }

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

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

    .about-block .field--name-field-about-advantages {
        flex-direction: column;
    }

    .about-block .field--name-field-about-advantages .field__item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .about-block .paragraph--type--advantage,
    .about-block .field--name-field-about-advantages .field__item:nth-child(2) .paragraph--type--advantage,
    .about-block .field--name-field-about-advantages .field__item:nth-child(4) .paragraph--type--advantage {
        height: auto;
        min-height: 130px;
    }

    /* ===== Partners ===== */
    .partners-block .partners_content {
        padding: 30px 0;
    }

    .partners-block .field--name-field-partners-title h2 {
        font-size: 24px;
    }

    .partners-block .field--name-field-partners {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .partners-block .paragraph--type--partner {
        min-height: auto;
    }

    /* ===== Documents ===== */
    .documents-block {
        padding: 30px 0;
    }

    .documents-block .documents-head h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .documents-block .view-content,
    .view-documents.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .documents-block .field--name-field-document-name,
    .view-documents.view-display-id-page_1 .field--name-field-document-name {
        font-size: 14px;
        padding-bottom: 16px;
    }

    .documents-block .more-link a {
        width: 100%;
    }

    /* ===== Photogallery ===== */
    .photogallery-block {
        padding: 30px 0;
    }

    .photogallery-head h2 {
        font-size: 24px;
    }

    .view-photogallery .field-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 120px);
        gap: 12px;
    }

    .view-photogallery .field--name-field-photogallery.field__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .photogallery-block .more-link a {
        width: 100%;
    }

    /* ===== Contacts ===== */
    .contacts-block {
        padding: 30px 0;
    }

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

    .col-contacts-map {
        height: 220px;
        max-height: 220px;
    }

    .contacts-row {
        flex-direction: column;
        gap: 12px;
    }

    .contacts-phones,
    .contacts-mail {
        width: 100%;
        height: auto;
    }

    /* ===== Feedback ===== */
    .feedback-block > .container {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .feedback_content {
        padding: 22px 16px;
    }

    .field--name-field-feedback-title h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .webform-submission-form {
        gap: 10px;
    }

    .webform-actions .webform-button--submit {
        width: 100%;
    }

    /* ===== Footer ===== */
    .footer-top {
        padding-top: 32px !important;
        padding-bottom: 24px !important;
    }

    .footer-logo a {
        width: 190px;
        height: 42px;
    }

    .footer-logo img {
        width: 190px;
        height: 42px;
    }

    .footer-top-actions {
        flex-wrap: wrap;
    }

    .footer-columns {
        flex-direction: column;
        gap: 24px;
    }

    .footer-col-services,
    .footer-col-navigation,
    .footer-col-contacts {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .footer-col-services .nav.navbar-nav {
        column-count: 1;
    }

    .footer-col-services .nav-item:nth-child(5) {
        break-after: auto;
    }

    /* ===== Modals ===== */
    .modal-header,
    .ui-dialog.webform-confirmation-modal .ui-dialog-titlebar {
        padding: 18px 48px 16px 16px;
    }

    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .ui-dialog.webform-confirmation-modal .ui-dialog-content,
    .ui-dialog.webform-confirmation-modal .webform-confirmation-modal--content {
        padding: 20px 16px;
    }

    /* ===== Search page ===== */
    #block-vesta-theme-content > h3 {
        max-width: 100%;
        padding: 14px 44px 14px 16px;
    }

    .search-api-page-block-form-search {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

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

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

    /* ===== Promo ===== */
    .promo_content {
        min-height: 300px;
        padding-top: 100px;
        padding-bottom: 30px;
    }

    .promo_content_top h1 {
        font-size: 20px;
    }

    /* ===== Services ===== */
    .services-head-left h2 {
        font-size: 20px;
    }

    .services-block article.node--type-service,
    .view-services article.node--type-service {
        padding: 12px;
    }

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

    .about-block .field--name-field-about-link a {
        width: 100%;
    }

    /* ===== Partners ===== */
    .partners-block .field--name-field-partners-title h2 {
        font-size: 20px;
    }

    /* ===== Documents ===== */
    .documents-block .documents-head h2 {
        font-size: 20px;
    }

    .documents-block .view-content,
    .view-documents.view-display-id-page_1 .view-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* ===== Photogallery ===== */
    .photogallery-head h2 {
        font-size: 20px;
    }

    .view-photogallery .field-content {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 160px);
        gap: 10px;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(4) {
        grid-column: 1;
        grid-row: 4;
    }

    .view-photogallery .field-content > .photoswipe-gallery:nth-child(5) {
        grid-column: 1;
        grid-row: 5;
    }

    .view-photogallery .field--name-field-photogallery.field__items {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .col-contacts-map {
        height: 180px;
        max-height: 180px;
    }

    /* ===== Feedback ===== */
    .field--name-field-feedback-title h2 {
        font-size: 18px;
    }

    .form-item-message textarea {
        height: 70px;
    }

    /* ===== Footer ===== */
    .footer-top {
        padding-top: 24px !important;
        padding-bottom: 20px !important;
    }

    .footer-top-actions {
        display: none !important;
    }

    .footer-top-actions .col-callback a {
        width: 100% !important;
    }

    .footer-bottom {
        padding-bottom: 24px !important;
    }

    /* ===== Offcanvas ===== */
    .offcanvas-nav {
        width: 300px !important;
    }
}

/* ===== Галерея фото на странице "О нас" ===== */
.node--type-about .field--name-field-about-images {
    display: grid !important;
    grid-template-columns: 1fr 1fr 2fr; /* два портретных + одно широкое */
    grid-template-rows: 320px;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.node--type-about .field--name-field-about-images .field__item {
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* ===== Ссылка и изображение ===== */
.node--type-about .field--name-field-about-images a.photoswipe {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.node--type-about .field--name-field-about-images a.photoswipe img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 5px;
}

/* ===== Тёмная плашка при наведении ===== */
.node--type-about .field--name-field-about-images a.photoswipe::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(65, 66, 74, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== Иконка лупы по центру ===== */
.node--type-about .field--name-field-about-images a.photoswipe::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    background: url('/sites/all/themes/vesta_theme/image/zoom-in.svg') center / contain no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.node--type-about .field--name-field-about-images a.photoswipe:hover::before,
.node--type-about .field--name-field-about-images a.photoswipe:hover::after {
    opacity: 1;
}

/* ===================== АДАПТИВ ===================== */

@media (max-width: 1199px) {
    .node--type-about .field--name-field-about-images {
        grid-template-rows: 280px;
        gap: 24px;
        margin-bottom: 36px;
    }
}

@media (max-width: 991px) {
    .node--type-about .field--name-field-about-images {
        grid-template-rows: 220px;
        gap: 20px;
        margin-bottom: 30px;
    }
}

/* Планшет: два фото в ряд, широкое — на всю ширину ниже */
@media (max-width: 786px) {
    .node--type-about .field--name-field-about-images {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 180px;
        gap: 16px;
    }

    .node--type-about .field--name-field-about-images .field__item:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 567px) {
    .node--type-about .field--name-field-about-images {
        grid-template-rows: 200px 150px;
        gap: 12px;
        margin-bottom: 24px;
    }

    .node--type-about .field--name-field-about-images a.photoswipe::after {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 360px) {
    .node--type-about .field--name-field-about-images {
        grid-template-rows: 160px 120px;
        gap: 10px;
        margin-bottom: 20px;
    }

    .node--type-about .field--name-field-about-images a.photoswipe::after {
        width: 28px;
        height: 28px;
    }
}