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

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

#main {
    flex: 1;
}

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

.header-bottom {
    background: #ccc;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* 1. Подключаем единственный шрифт Unbounded */
@font-face {
    font-family: "Unbounded";
    src: url("/sites/all/themes/vesta_theme/font/Unbounded-Regular.woff2") format("woff2");
    font-weight: 400 700; /* Позволяет использовать и обычный, и жирный текст, если шрифт вариативный */
    font-style: normal;
    font-display: swap;
}

:root {
    /* 2. Присваиваем новый шрифт всем переменным, чтобы верстка не поехала */
    --font-family: "Unbounded", sans-serif;
    --second-family: "Unbounded", sans-serif;
    --third-family: "Unbounded", sans-serif;
    --font3: "Unbounded", sans-serif;

    /* Цвета оставляем без изменений */
    --white: #fff;
    --black: #21261f;
    --gray: #707070;
    --gray2: #dfdfdf;
    --gray3: #bcbcbc;
    --gray4: #454545;
    --green: #819171;
    --green2: #cbd5c0;
}

/* 3. Применяем к body */
body {
    font-family: var(--font-family);
}

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

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

/*@font-face {*/
/*    font-family: "Playfair Display";*/
/*    src: url("/sites/all/themes/vesta_theme/font/PlayfairDisplay-Medium.woff2") format("woff");*/
/*    font-weight: 500;*/
/*    font-style: normal;*/
/*    font-display: swap;*/
/*}*/

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

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

/*:root {*/
/*    --font-family: "Rubik", sans-serif;*/
/*    --second-family: "Playfair Display", serif;*/
/*    --third-family: "Inter", sans-serif;*/
/*    --font3: "Manrope", sans-serif;*/
/*    --white: #fff;*/
/*    --black: #21261f;*/
/*    --gray: #707070;*/
/*    --gray2: #dfdfdf;*/
/*    --gray3: #bcbcbc;*/
/*    --gray4: #454545;*/
/*    --green: #819171;*/
/*    --green2: #cbd5c0;*/
/*}*/

/*body {*/
/*    font-family: var(--font-family);*/
/*}*/


/*HEADER STYLES*/

/* ==============================
   FLOWIA HEADER — scoped styles
   Не трогаем Drupal contextual/admin элементы
============================== */

#header.site-header {
    width: 100%;
    background: #fff;
    color: #222;
    position: relative;
    z-index: 50;
}

#header.site-header > .header-info,
#header.site-header > .header-main,
#header.site-header > .header-bottom {
    width: 100%;
}


/* ==============================
   Верхняя строка
============================== */

#header.site-header > .header-info {
    height: 40px;
    background: #fff;
    border-bottom: 1px solid #dedede;
}

#header.site-header .header-info__inner {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 14px;
}

#header.site-header .header-info__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--black);
    font-size: 12px;
    line-height: 120%;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

#header.site-header .header-info__item:hover {
    color: #222;
    text-decoration: none;
}

#header.site-header .header-info__item > img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}


/* ==============================
   Основная строка
============================== */

#header.site-header > .header-main {
    height: 75px;
    background: #fff;
}

#header.site-header .header-main__inner {
    height: 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 9px;
}

#header.site-header .header-main__left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#header.site-header .header-main__center {
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.site-header .header-main__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}


/* ==============================
   Верхнее меню
   Только ul.nav внутри header-top-nav
============================== */

#header.site-header .header-top-nav > .region-navigation {
    margin: 0;
    padding: 0;
}

#header.site-header .header-top-nav .menu--main > ul.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header.site-header .header-top-nav .menu--main > ul.nav > li.nav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

#header.site-header .header-top-nav .menu--main > ul.nav > li.nav-item > a.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    color: var(--black);
    font-size: 16px;
    line-height: 120%;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

#header.site-header .header-top-nav .menu--main > ul.nav > li.nav-item > a.nav-link:hover,
#header.site-header .header-top-nav .menu--main > ul.nav > li.nav-item > a.nav-link.is-active {
    color: #222;
    text-decoration: none;
}


/* ==============================
   Логотип
============================== */

#header.site-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.site-header .logo > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#header.site-header .logo > a > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 201px;
    max-height: 57px;
}


/* ==============================
   Поиск
============================== */

#header.site-header .header-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.site-header .header-search__btn {
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#header.site-header .header-search__btn > img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    opacity: .55;
}

#header.site-header .header-search__region {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    width: 230px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
    border-radius: 3px;
    z-index: 30;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

#header.site-header .header-search.is-open .header-search__region {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#header.site-header .header-search__region form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

#header.site-header .header-search__region .form-item-keys {
    margin: 0;
    flex: 1;
}

#header.site-header .header-search__region input.form-search {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    box-shadow: none;
}

#header.site-header .header-search__region .form-actions {
    margin: 0;
}

/* Скрываем только submit внутри блока поиска */
#header.site-header .header-search__region button.search-form__submit {
    display: none;
}


/* ==============================
   Корзина
============================== */

#header.site-header .header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.site-header .header-cart .cart--cart-block,
#header.site-header .header-cart .cart-block--summary {
    margin: 0;
    padding: 0;
}

#header.site-header .header-cart .cart-block--link__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

#header.site-header .header-cart .cart-block--summary__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.site-header .header-cart .cart-block--summary__icon > img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
    opacity: .7;
}

#header.site-header .header-cart .cart-block--summary__count {
    position: absolute;
    top: -8px;
    right: -10px;

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

    min-width: 20px;
    height: 20px;
    padding: 0 6px;

    border-radius: 50px;
    background: var(--green);

    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;

    box-sizing: border-box;
}


/* ==============================
   Кнопка "Заказать звонок"
   Только ссылка внутри field__item, не contextual links
============================== */

#header.site-header .header-callback .field__item > a.btn {
    min-width: 184px;
    height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--gray);
    color: var(--white);
    font-size: 18px;
    line-height: 120%;
    font-weight: 400;
    text-align: center;
    box-shadow: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#header.site-header .header-callback .field__item > a.btn:hover {
    background: var(--green);
    color: #fff;
    text-decoration: none;
}


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

#header.site-header > .header-bottom {
    height: 29px;
    background: #707070;
    position: relative;
    z-index: 50;
}

#header.site-header .header-bottom__inner {
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.site-header .header-bottom-nav {
    width: 100%;
}

/* Главное меню */
#header.site-header .header-bottom-nav .menu--navigationbuttom > ul.navbar-nav {
    width: 100%;

    display: flex !important;
    flex-direction: row !important;

    align-items: center;
    justify-content: center;

    flex-wrap: nowrap;

    gap: 60px;

    margin: 0;
    padding: 0;

    list-style: none;
}

/* ==============================
   Главные пункты
============================== */

#header.site-header .header-bottom-nav .navbar-nav > .nav-item {
    position: relative;

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;
}

/* Ссылки */
#header.site-header .header-bottom-nav .navbar-nav > .nav-item > a.nav-link {
    position: relative;

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

    padding: 0;

    color: #fff;
    font-size: 18px;
    line-height: 120%;
    font-weight: 400;

    text-decoration: none;
    white-space: nowrap;

    transition: opacity .2s ease;
}

#header.site-header .header-bottom-nav .navbar-nav > .nav-item > a.nav-link:hover,
#header.site-header .header-bottom-nav .navbar-nav > .nav-item > a.nav-link.is-active {
    opacity: .9;
    color: #fff;
    text-decoration: none;
}

/* ==============================
   Кастомные стрелки
============================== */

/* Убираем стандартную bootstrap стрелку */
#header.site-header .header-bottom-nav .dropdown-toggle::after {
    border: none !important;
}

/* SVG стрелка справа */
#header.site-header .header-bottom-nav .navbar-nav > .nav-item > a.dropdown-toggle::after {
    content: "";

    display: inline-block;

    width: 10px;
    height: 6px;

    margin-left: 5px;

    background: url('/sites/all/themes/vesta_theme/image/arrow-bottom.svg') center center / contain no-repeat;

    transition: transform .25s ease;

    flex-shrink: 0;
}

/* Поворот стрелки */
#header.site-header .header-bottom-nav .navbar-nav > .nav-item:hover > a.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ==============================
   Dropdown menu
============================== */

#header.site-header .header-bottom-nav .navbar-nav > .nav-item > ul {
    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    min-width: 240px;
    max-width: 320px;

    margin: 0;
    padding: 6px 0;

    background: #707070;

    list-style: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
            opacity .2s ease,
            visibility .2s ease;

    z-index: 1000;

    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* Hover submenu */
#header.site-header .header-bottom-nav .navbar-nav > .nav-item:hover > ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Элементы submenu */
#header.site-header .header-bottom-nav .navbar-nav > .nav-item > ul > li {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ссылки submenu */
#header.site-header .header-bottom-nav .navbar-nav > .nav-item > ul > li > a {
    display: block;

    width: 100%;

    padding: 10px 16px;

    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;

    text-decoration: none;

    white-space: normal;
    word-break: break-word;

    transition:
            background .2s ease,
            color .2s ease;
}

/* Hover submenu */
#header.site-header .header-bottom-nav .navbar-nav > .nav-item > ul > li > a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* 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;
    gap: 7px;
    list-style: none;
    margin: 10px 0;
}

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

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

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

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

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

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

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

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

/* CATALOG BLOCK */

.catalog_block {
    padding: 60px 0 110px;
    background: #fff;
}

.catalog_block .block-title {
    margin: 0 0 60px;
    text-align: center;
    font-family: var(--second-family);
    font-size: 50px;
    font-weight: 500;
    line-height: 130%;
    color: var(--black);
}

.catalog_block .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    align-items: stretch;
}

.catalog_block .views-row {
    min-width: 0;
}

.catalog_block .taxonomy-term--view-mode-teaser {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #ddd;
}

.catalog_block .taxonomy-term--view-mode-teaser::after,
.catalog_block .taxonomy-term--view-mode-teaser::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

/* Основной градиент */
.catalog_block .taxonomy-term--view-mode-teaser::after {
    background: linear-gradient(
            1deg,
            #404040 9.59%,
            rgba(64, 64, 64, 0) 100%
    );
}

/* Градиент при наведении */
.catalog_block .taxonomy-term--view-mode-teaser::before {
    z-index: 2;
    opacity: 0;
    background: linear-gradient(
            360deg,
            #868585 9.59%,
            rgba(134, 133, 133, 0) 100%
    );
    transition: opacity 0.35s ease;
}

.catalog_block .taxonomy-term--view-mode-teaser:hover::before {
    opacity: 1;
}

.catalog_block .field--name-field-catalog-image,
.catalog_block .field--name-field-catalog-image .field__item,
.catalog_block .field--name-field-catalog-image a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.catalog_block .field--name-field-catalog-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(1deg, #404040 9.59%, rgba(64, 64, 64, 0) 100%);
}

.catalog_block .field--name-taxonomy-term-title {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 30px;
    z-index: 3;
}

.catalog_block .field--name-taxonomy-term-title h2 {
    margin: 0;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.1;
}

.catalog_block .field--name-taxonomy-term-title a {
    font-family: var(--second-family);
    color: var(--white);
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    text-decoration: none;
}

.catalog_block .field--name-field-catalog-details {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 9px;
    z-index: 3;
    line-height: 1;
}

.catalog_block .field--name-field-catalog-details a {
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.catalog_block .field--name-field-catalog-details a:hover {
    color: #fff;
    text-decoration: underline;
}

/* CATALOG PAGE */

#block-vesta-theme-page-title {
    padding: 60px 0 0;
    background: #fff;
}

#block-vesta-theme-page-title h1 {
    margin: 0 0 60px;
    font-family: var(--second-family);
    font-size: 50px;
    font-weight: 500;
    line-height: 130%;
    color: var(--black);
}

#block-vesta-theme-content {
    /*padding: 0 0 110px;*/
    background: #fff;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    align-items: stretch;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .views-row {
    min-width: 0;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #ddd;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser::after,
#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

/* Основной градиент */
#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser::after {
    background: linear-gradient(
            1deg,
            #404040 9.59%,
            rgba(64, 64, 64, 0) 100%
    );
}

/* Градиент при наведении */
#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser::before {
    z-index: 2;
    opacity: 0;
    background: linear-gradient(
            360deg,
            #868585 9.59%,
            rgba(134, 133, 133, 0) 100%
    );
    transition: opacity 0.35s ease;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser:hover::before {
    opacity: 1;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-image,
#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-image .field__item,
#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-image a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(1deg, #404040 9.59%, rgba(64, 64, 64, 0) 100%);
    transition: transform 0.45s ease;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser:hover .field--name-field-catalog-image img {
    transform: scale(1.06);
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 30px;
    z-index: 3;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title h2 {
    margin: 0;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.1;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title a {
    font-family: var(--second-family);
    color: var(--white);
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    text-decoration: none;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-details {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 9px;
    z-index: 3;
    line-height: 1;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-details a {
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-details a:hover {
    color: #fff;
    text-decoration: underline;
}

/* COOKIE DISCLAIMER */

#vpa-short-wrapper.vpa-wrapper {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    width: calc(100% - 0px);
    min-height: 88px;
    padding: 16px 22px 16px 26px;
    box-sizing: border-box;

    background: #fff;
    border-radius: 28px;

    box-shadow: none;
    transform: translateX(-50%);
}

#vpa-short-wrapper .vpa-close-zone {
    display: none;
}

#vpa-short-wrapper .vpa-content {
    flex: 1 1 auto;
    min-width: 0;
}

#vpa-short-wrapper .vpa-content p {
    max-width: 730px;
    margin: 0;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: #2b2b2b;
}

#vpa-short-wrapper .vpa-content a {
    color: inherit;
    text-decoration: none;
}

#vpa-short-wrapper .vpa-content a:hover {
    text-decoration: underline;
}

#vpa-short-wrapper .vpa-actions {
    flex: 0 0 auto;
}

#vpa-short-wrapper #vpa-btn-ok {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 112px;
    height: 42px;
    padding: 0;

    border: none;
    border-radius: 10px;
    background: var(--gray);

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: var(--white);

    cursor: pointer;
    transition: background 0.25s ease;
}

#vpa-short-wrapper #vpa-btn-ok:hover {
    background: #5f5f5f;
}

#vpa-short-wrapper #vpa-btn-ok:focus {
    outline: none;
}


/* 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;
}

/* BLOCK SLIDER */

#slider-block,
.slider-block {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 25px 25px;
}

/* Slick base */

#slider-block .view-content,
#slider-block .slick-list,
#slider-block .slick-track,
#slider-block .slick-slide,
#slider-block .slick-slide > div,
#slider-block .node--type-slide {
    height: clamp(330px, 33.3vw, 640px);
}

#slider-block .slick-list {
    overflow: hidden;
    border-radius: inherit;
}

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

/* Image */

#slider-block .field--name-field-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#slider-block .field--name-field-image .field__item,
#slider-block .field--name-field-image img {
    width: 100%;
    height: 100%;
}

#slider-block .field--name-field-image img {
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Dark overlay like on screenshot */

#slider-block .node--type-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
            linear-gradient(
                    90deg,
                    rgba(0, 0, 0, 0.36) 0%,
                    rgba(0, 0, 0, 0.24) 42%,
                    rgba(0, 0, 0, 0.06) 100%
            );
    pointer-events: none;
}

/* Text layer */

#slider-block .content.container {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0;
    right: 0;

    width: 100%;

    margin-left: auto;
    margin-right: auto;

    transform: translateY(-50%);
    box-sizing: border-box;

    color: #ffffff;
}

#slider-block .field--name-field-slide-title {
    max-width: 588px;
    margin: 0 0 20px;
}

#slider-block .field--name-field-slide-title p {
    margin: 0;
    color: var(--white);
    font-family: var(--second-family);
    font-size: 45px;
    font-weight: 500;
    line-height: 130%;
}

#slider-block .field--name-body {
    max-width: 603px;
    margin: 0 0 30px;
}

#slider-block .field--name-body p {
    margin: 0;
    color: var(--white);
    font-size: 22px;
    font-weight: 400;
    line-height: 120%;
}

/* Button */

#slider-block .field--name-field-slide-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 205px;
    height: 50px;
    padding: 14px 22px;
    border-radius: 10px;
    border: 1px solid var(--white);
    background: var(--white);
    color: var(--gray);
    font-size: 18px;
    font-weight: 400;
    line-height: 120%;
    text-decoration: none;
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}

#slider-block .field--name-field-slide-link a:hover {
    background: #eef0eb;
    color: #333333;
    transform: translateY(-1px);
}

/* Arrows */

#slider-block .slick-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;

    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;

    font-size: 0;
    line-height: 0;
    color: transparent;

    cursor: pointer;
    transform: translateY(-50%);
    overflow: hidden;
}

/* Обычная картинка */
#slider-block .slick-arrow::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;

    width: 60px;
    height: 60px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px 60px;

    opacity: 1;
    pointer-events: none;

    transition: opacity 0.35s ease;
}

/* Hover-картинка */
#slider-block .slick-arrow::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;

    width: 60px;
    height: 60px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px 60px;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.35s ease;
}

#slider-block .slick-arrow:hover::before {
    opacity: 0;
}

#slider-block .slick-arrow:hover::after {
    opacity: 1;
}

/* Left arrow */

#slider-block .slick-prev {
    left: 18px;
}

/* arrow.svg смотрит налево — для левой стрелки не переворачиваем */
#slider-block .slick-prev::before {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow.svg");
    transform: none;
}

/* arrow-hover.svg смотрит направо — для левой hover-стрелки переворачиваем */
#slider-block .slick-prev::after {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow-hover.svg");
    transform: rotate(180deg);
}

/* Right arrow */

#slider-block .slick-next {
    right: 18px;
}

/* arrow.svg смотрит налево — для правой стрелки переворачиваем */
#slider-block .slick-next::before {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow.svg");
    transform: rotate(180deg);
}

/* arrow-hover.svg смотрит направо — для правой hover-стрелки не переворачиваем */
#slider-block .slick-next::after {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow-hover.svg");
    transform: none;
}

/* Dots */

#slider-block .slick-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 5;

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;

    width: auto;
    margin: 0;
    padding: 0;

    list-style: none;
    transform: translateX(-50%);
}

#slider-block .slick-dots li {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin: 0;
    padding: 0;
}

/* Общая кнопка dots */

#slider-block .slick-dots button {
    position: relative;
    display: block;

    width: 22px;
    height: 22px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    font-size: 0;
    line-height: 0;
    color: transparent;

    cursor: pointer;

    transition:
            width 0.25s ease,
            height 0.25s ease,
            background-color 0.25s ease,
            border-color 0.25s ease;
}

/* Убираем возможные стандартные псевдоэлементы Slick */

#slider-block .slick-dots button::before {
    display: none !important;
    content: "" !important;
}

/* Внутренняя точка активного элемента */

#slider-block .slick-dots button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 14px;
    height: 14px;

    border-radius: 50%;
    background: #ffffff;

    opacity: 0;
    transform: translate(-50%, -50%);

    transition: opacity 0.25s ease;
}

/* Active dot */

#slider-block .slick-dots li.slick-active button {
    width: 30px;
    height: 30px;

    border: 1px solid #ffffff;
    background: transparent;
}

#slider-block .slick-dots li.slick-active button::after {
    opacity: 1;
}

/* ABOUT BLOCK */

.about_block {
    position: relative;
    overflow: visible;
    background: #fff;
}

/* Верхний блок */
.about_top {
    position: relative;
    z-index: 0;

    display: grid;
    grid-template-columns: 570px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;

    width: 100%;
    justify-content: stretch;
    align-items: start;

    padding: 54px 0 64px;
    overflow: visible;
}

.about_top::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: -32px;
    width: 100vw;
    background: #f2f1ec;
    z-index: -1;
}

/* Заголовок */
.about_top > .field--name-field-about-title {
    grid-column: 1;
    grid-row: 1;

    margin: 0 0 14px;

    font-family: var(--second-family);
    font-size: 45px;
    line-height: 130%;
    font-weight: 500;
    color: #2c2c2c;
}

/* Текст */
.about_top > .field--name-field-about-text {
    grid-column: 1;
    grid-row: 2;

    max-width: 570px;

    font-size: 20px;
    line-height: 120%;
    color: var(--black);
}

/* Кнопка */
.about_top > .field--name-field-about-btn {
    grid-column: 1;
    grid-row: 3;

    margin-top: 14px;
}

.about_top > .field--name-field-about-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 141px;
    height: 50px;
    padding: 0 14px;

    border-radius: 10px;
    background: var(--gray);
    color: var(--white);

    text-decoration: none;
    font-size: 18px;
    line-height: 120%;

    transition: background-color 0.2s ease, transform 0.2s ease;
}

.about_top > .field--name-field-about-btn a:hover {
    background: var(--green);
    color: #fff;
    text-decoration: none;
}

/* Изображение справа */
.about_top > .field--name-field-about-image {
    grid-column: 2;
    grid-row: 1 / 4;

    justify-self: end;
    align-self: start;

    width: 627px;
    height: 508px;

    margin-top: -105px;
    margin-left: 0;
    margin-right: 0;

    position: relative;
    z-index: 1;
}

.about_top > .field--name-field-about-image img {
    display: block;
    width: 627px;
    height: 508px;
    max-width: none;
    object-fit: contain;
}

/* Нижний блок с карточками */
.about_buttom {
    position: relative;
    z-index: 2;

    margin-top: -10px;
}

.about_buttom .field--name-field-about-advantages {
    display: grid;
    grid-template-columns: repeat(4, 270px);
    gap: 18px;

    justify-content: center;

    max-width: 1140px;
    margin: 0 auto;
}

.about_buttom .field__item {
    min-width: 0;
}

.about_buttom .paragraph--type--advantages {
    width: 270px;
    min-height: 130px;

    background: var(--white);
    border-radius: 20px;
    box-shadow: 3px 3px 10px 0 rgba(27, 33, 27, 0.1);

    padding: 10px 12px 9px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.about_buttom .field--name-field-advantages-icon {
    line-height: 0;
    margin-bottom: 6px;
}

.about_buttom .field--name-field-advantages-icon img {
    display: block;
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.about_buttom .field--name-field-advantages-text {
    font-family: var(--second-family);
    font-size: 18px;
    line-height: 130%;
    font-weight: 500;
    color: var(--green);
}


/* Блок товаров */
.products_block {
    margin: 0;
    padding: 0px 0 120px;
}

/* Сам блок делаем по ширине контента, чтобы справа не было пустоты */
.products_block .block-views-blocktovary-block-2 {
    position: relative;
    width: max-content;
    max-width: 100%;
}

.products_block .view-tovary {
    position: static;
}

/* Заголовок */
.products_block .block-title {
    margin: 0 0 35px 0;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 45px;
    line-height: 130%;
    color: var(--black);
}

/* Кнопка "Перейти в каталог" */
.products_block .more-link {
    position: absolute;
    top: 4px;
    right: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

.products_block .more-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 14px 22px;
    width: 205px;
    height: 50px;
    box-sizing: border-box;
    background: var(--gray);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.products_block .more-link a:hover {
    background: var(--green);
    color: #fff;
    text-decoration: none;
}

/* Сетка карточек */
.products_block .view-content {
    display: grid;
    grid-template-columns: repeat(4, 312px);
    gap: 30px;
    width: max-content;
    max-width: 100%;
}

/* Обёртка строки views */
.products_block .views-row {
    width: 270px;
}

/* Карточка товара */
.products_block .commerce-product--view-mode-teaser {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray2);
    border-radius: 20px;
    width: 270px;
    height: 400px;
    box-sizing: border-box;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.products_block .commerce-product--view-mode-teaser:hover {
    border: 1px solid var(--green);
}

/* Изображение */
.products_block .field--name-field-image-product-view {
    width: 270px;
    height: 230px;
    overflow: hidden;
}

.products_block .field--name-field-image-product-view a {
    display: block;
    width: 100%;
    height: 100%;
}

.products_block .field--name-field-image-product-view img {
    display: block;
    width: 270px;
    height: 230px;
    object-fit: cover;
}

/* Иконка корзины */
.products_block .field--name-field-product-tags {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.products_block .field--name-field-product-tags h2,
.products_block .field--name-field-product-tags .field--name-name {
    display: none;
}

.products_block .field--name-field-product-tags img {
    display: block;
    width: 22px;
    height: 22px;
}

/* Название товара */
.products_block .field--name-title {
    margin: 10px 18px 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 120%;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Цена */
.products_block .field--name-field-product-price {
    margin: 6px 18px 0;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: var(--black);
}

/* Блок кнопок внутри карточки (ФИКС БАГА СДВИГА) */
.products_block .product_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 18px 0;
    height: 40px;
}

/* Выравниваем Drupal-обертку формы внутри флекс-контейнера */
.products_block .field--name-variations {
    display: block;
}

/* Скрываем количество */
.products_block .field--name-variations .field--name-quantity,
.products_block .field--name-variations label {
    display: none;
}

/* Сбрасываем лишние отступы формы */
.products_block .commerce-order-item-add-to-cart-form,
.products_block .commerce-order-item-add-to-cart-form .form-actions {
    margin: 0;
    display: block;
}

/* Кнопка "В корзину" */
.products_block .button--add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    width: 115px;
    height: 38px;
    background: var(--gray);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: var(--white);
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.products_block .commerce-product--view-mode-teaser:hover .button--add-to-cart {
    background: var(--green);
}

/* Обертка ссылки подробнее, сгенерированная Drupal Token Field */
.products_block .field--name-dynamic-token-fieldcommerce-product-btn-detailed {
    display: inline-flex;
    align-items: center;
}

/* Подробнее */
.products_block .btn-detailed {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: var(--gray);
    text-decoration: underline;
    white-space: nowrap;
    display: inline-block;
}

.products_block .commerce-order-item-add-to-cart-form .add-to-cart-message,
.products_block .commerce-order-item-add-to-cart-form .ajax-progress,
.products_block .commerce-order-item-add-to-cart-form .ajax-progress-throbber,
.products_block .commerce-order-item-add-to-cart-form .message,
.products_block .commerce-order-item-add-to-cart-form [id*="add-to-cart-message-container"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
}

/* ==========================================================================
   ОБЪЕДИНЕННЫЙ ФИКС ДЛЯ КАРТОЧЕК: БЛОК НА ГЛАВНОЙ И СТРАНИЦА КАТАЛОГА
   ========================================================================== */

/* Изображение: уменьшаем высоту со 250px до 230px для создания запаса */
.products_block .field--name-field-image-product-view,
#block-vesta-theme-content .field--name-field-image-product-view {
    width: 270px;
    height: 230px;
    overflow: hidden;
}

.products_block .field--name-field-image-product-view img,
#block-vesta-theme-content .field--name-field-image-product-view img {
    display: block;
    width: 270px;
    height: 230px;
    object-fit: cover;
}

/* Название товара: уменьшаем шрифт до 15px и защищаем от переноса на 3-ю строку */
.products_block .field--name-title,
#block-vesta-theme-content .field--name-title {
    margin: 10px 18px 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 120%;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Цена: уменьшаем шрифт до 18px */
.products_block .field--name-field-product-price,
#block-vesta-theme-content .field--name-field-product-price {
    margin: 6px 18px 0;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: var(--black);
}

/* Блок кнопок: жесткое выравнивание в одну линию, высота строки 40px */
.products_block .product_btn,
#block-vesta-theme-content .product_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 18px 0;
    height: 40px;
}

/* Кнопка "В корзину": уменьшаем текст до 14px */
.products_block .button--add-to-cart,
#block-vesta-theme-content .button--add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    width: 115px;
    height: 38px;
    background: var(--gray);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: var(--white);
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

/* Текст ссылки "Подробнее": уменьшаем до 14px */
.products_block .btn-detailed,
#block-vesta-theme-content .btn-detailed {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: var(--gray);
    text-decoration: underline;
    white-space: nowrap;
    display: inline-block;
}

/* ==========================================================================
   ЖЕСТКОЕ ОБНУЛЕНИЕ ВСЕХ AJAX-ПЛАШЕК (ДЛЯ ОБЕИХ СТРАНИЦ)
   ========================================================================== */
.products_block .commerce-order-item-add-to-cart-form .add-to-cart-message,
.products_block .commerce-order-item-add-to-cart-form .ajax-progress,
.products_block .commerce-order-item-add-to-cart-form [id*="add-to-cart-message-container"],
#block-vesta-theme-content .commerce-order-item-add-to-cart-form .add-to-cart-message,
#block-vesta-theme-content .commerce-order-item-add-to-cart-form .ajax-progress,
#block-vesta-theme-content .commerce-order-item-add-to-cart-form [id*="add-to-cart-message-container"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
}

/* ========================================================
   Стили для страницы каталога (View: tovary, Display: page_1)
   ======================================================== */

/* Сетка карточек */
.view-id-tovary.view-display-id-page_1 .view-content {
    display: grid;
    /* Рекомендую использовать auto-fill для адаптивности, но оставляю вашу сетку на 4 колонки: */
    grid-template-columns: repeat(4, 270px);
    gap: 72px;
    justify-content: center; /* Центрируем сетку, если экран шире */
}

/* Обёртка строки views */
.view-id-tovary.view-display-id-page_1 .views-row {
    width: 270px;
}

/* Карточка товара */
.view-id-tovary.view-display-id-page_1 .commerce-product--view-mode-teaser {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray2);
    border-radius: 20px;
    width: 270px;
    height: 355px;
    box-sizing: border-box;
    background: var(--white);
    transition: border-color 0.3s ease;
}

/* Изображение */
.view-id-tovary.view-display-id-page_1 .field--name-field-image-product-view {
    width: 270px;
    height: 250px;
    overflow: hidden;
}

.view-id-tovary.view-display-id-page_1 .field--name-field-image-product-view a {
    display: block;
    width: 100%;
    height: 100%;
}

.view-id-tovary.view-display-id-page_1 .field--name-field-image-product-view img {
    display: block;
    width: 270px;
    height: 250px;
    object-fit: cover;
}

/* Иконка корзины в углу фото (Теги) */
.view-id-tovary.view-display-id-page_1 .field--name-field-product-tags {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.view-id-tovary.view-display-id-page_1 .field--name-field-product-tags h2,
.view-id-tovary.view-display-id-page_1 .field--name-field-product-tags .field--name-name {
    display: none;
}

.view-id-tovary.view-display-id-page_1 .field--name-field-product-tags img {
    display: block;
    width: 22px;
    height: 22px;
}

/* Название товара */
.view-id-tovary.view-display-id-page_1 .field--name-title {
    margin: 14px 18px 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: var(--black);
}

/* Цена */
.view-id-tovary.view-display-id-page_1 .field--name-field-product-price {
    margin: 10px 18px 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: var(--black);
}

/* Блок кнопок внутри карточки */
.view-id-tovary.view-display-id-page_1 .product_btn {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 18px;
}

/* Скрываем поле с количеством и его лейбл */
.view-id-tovary.view-display-id-page_1 .field--name-variations .field--name-quantity,
.view-id-tovary.view-display-id-page_1 .field--name-variations label {
    display: none;
}

/* Сбрасываем лишние отступы формы от Drupal */
.view-id-tovary.view-display-id-page_1 .commerce-order-item-add-to-cart-form,
.view-id-tovary.view-display-id-page_1 .commerce-order-item-add-to-cart-form .form-actions {
    margin: 0;
}

/* Кнопка "В корзину" */
.view-id-tovary.view-display-id-page_1 .button--add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    min-width: 113px;
    height: 40px;
    background: var(--gray);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Подробнее */
.view-id-tovary.view-display-id-page_1 .btn-detailed {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: var(--gray);
    text-decoration: underline;
}

/* Hover эффекты карточки товара */
.view-id-tovary.view-display-id-page_1 .commerce-product--view-mode-teaser:hover {
    border: 1px solid var(--green);
}

.view-id-tovary.view-display-id-page_1 .commerce-product--view-mode-teaser:hover .button--add-to-cart {
    background: var(--green);
}

/* ========================================================
   Универсальные стили карточек товаров
   Для всех display view "tovary"
   ======================================================== */

/* Сетка */
.view-id-tovary .view-content {
    display: grid;
    grid-template-columns: repeat(4, 270px);
    gap: 72px;
    padding-bottom: 60px;
}

/* Карточка */
.view-id-tovary .commerce-product--view-mode-teaser {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray2);
    border-radius: 20px;
    width: 270px;
    height: 400px;
    box-sizing: border-box;
    background: var(--white);
    transition: border-color 0.3s ease;
}

/* Изображение */
.view-id-tovary .field--name-field-image-product-view {
    width: 270px;
    height: 250px;
    overflow: hidden;
}

.view-id-tovary .field--name-field-image-product-view img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Иконка */
.view-id-tovary .field--name-field-product-tags {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.view-id-tovary .field--name-field-product-tags h2,
.view-id-tovary .field--name-field-product-tags .field--name-name {
    display: none;
}

.view-id-tovary .field--name-field-product-tags img {
    width: 22px;
    height: 22px;
}

/* Название */
.view-id-tovary .field--name-title {
    margin: 14px 18px 0;
    font-size: 16px;
    line-height: 120%;
    color: var(--black);
}

/* Цена */
.view-id-tovary .field--name-field-product-price {
    margin: 10px 18px 0;
    font-size: 20px;
    line-height: 120%;
    color: var(--black);
}

/* Кнопки */
.view-id-tovary .product_btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px;
}

/* Скрыть quantity */
.view-id-tovary .field--name-variations .field--name-quantity,
.view-id-tovary .field--name-variations label {
    display: none;
}

/* Сброс form */
.view-id-tovary .commerce-order-item-add-to-cart-form,
.view-id-tovary .commerce-order-item-add-to-cart-form .form-actions {
    margin: 0;
}

/* Кнопка */
.view-id-tovary .button--add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    min-width: 113px;
    height: 40px;
    background: var(--gray);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Подробнее */
.view-id-tovary .btn-detailed {
    font-size: 16px;
    line-height: 120%;
    color: var(--gray);
    text-decoration: underline;
}

/* Hover */
.view-id-tovary .commerce-product--view-mode-teaser:hover {
    border-color: var(--green);
}

.view-id-tovary .commerce-product--view-mode-teaser:hover .button--add-to-cart {
    background: var(--green);
}

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

.feedback_block {
    position: relative;
    overflow: hidden;
    min-height: 335px;
    color: #fff;
}

/* Фоновое изображение */
.feedback_block .feedback_bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.feedback_block .feedback_bg .region,
.feedback_block .feedback_bg .block,
.feedback_block .feedback_bg .field,
.feedback_block .feedback_bg .field__item {
    width: 100%;
    height: 100%;
}

.feedback_block .feedback_bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Затемнение поверх изображения как на скриншоте */
.feedback_block::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.48);
    pointer-events: none;
}

/* Контейнер с формой поверх фона */
.feedback_block > .container {
    position: relative;
    z-index: 3;
    min-height: 497px;
    display: flex;
    align-items: center;
}

/* Сам блок с текстом и формой */
.feedback_block .region-feedback {
    width: 100%;
    max-width: 598px;
    padding: 35px 0 35px;
}

/* Заголовок */
.feedback_block .field--name-field-feedback-title {
    max-width: 600px;
    margin: 0 0 10px;
    font-family: var(--second-family);
    font-size: 34px;
    line-height: 120%;
    font-weight: 500;
    color: var(--white);
}

/* Текст под заголовком */
.feedback_block .field--name-field-feedback-text {
    max-width: 570px;
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 120%;
    font-weight: 400;
    color: var(--white);
}

/* Форма */
.feedback_block form {
    width: 100%;
    max-width: 470px;
}

/* Сетка: имя и телефон в одну строку */
.feedback_block form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.feedback_block .form-item,
.feedback_block .form-actions {
    margin: 0;
}

/* Поле вопроса, чекбокс и кнопка на всю ширину */
.feedback_block .form-item-message,
.feedback_block .form-item-privacy,
.feedback_block .form-actions,
.feedback_block form > input[type="hidden"],
.feedback_block form > .contextual {
    grid-column: 1 / -1;
}

/* Общие стили полей */
.feedback_block input.form-control,
.feedback_block textarea.form-control {
    width: 100%;
    height: 47px;
    padding: 14px 22px;
    border: 1px solid rgba(251, 251, 251, 0.5);
    border-radius: 10px;
    background: rgba(251, 251, 251, 0.15);
    color: var(--gray3);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feedback_block textarea.form-control {
    height: 89px;
    min-height: 60px;
    max-height: 89px;
    padding-top: 10px;
    resize: none;
}

.feedback_block input.form-control::placeholder,
.feedback_block textarea.form-control::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.feedback_block input.form-control:focus,
.feedback_block textarea.form-control:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.13);
}

/* Чекбокс и текст согласия */
.feedback_block .form-item-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
}

.feedback_block .form-item-privacy input[type="checkbox"].form-checkbox {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    border: 1px solid rgba(251, 251, 251, 0.5);
    border-radius: 4px;
    background-color: rgba(251, 251, 251, 0.15);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 9px;

    cursor: pointer;
}

.feedback_block .form-item-privacy input[type="checkbox"].form-checkbox:checked {
    background-color: rgba(251, 251, 251, 0.25);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.3 8L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feedback_block .form-item-privacy input[type="checkbox"].form-checkbox:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.feedback_block .form-item-privacy .description {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}

/* Текст справа от чекбокса */
.feedback_block .form-item-privacy .description {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}

.feedback_block .webform-element-description {
    max-width: 422px;
    margin: 0;
    font-size: 12px;
    line-height: 120%;
    font-weight: 400;
    color: var(--white);
}

.feedback_block .webform-element-description a {
    color: var(--white);
    text-decoration: underline;
}

/* Скрываем общий верхний блок ошибок */
.feedback_block form > .alert,
.feedback_block .alert-error,
.feedback_block .alert-danger {
    display: none !important;
}

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

/* Подсветка незаполненных input и textarea */
.feedback_block .form-item--error input.form-control,
.feedback_block .form-item--error textarea.form-control,
.feedback_block input.form-control.error,
.feedback_block textarea.form-control.error {
    border-color: rgba(255, 80, 80, 0.95) !important;
    background: rgba(255, 80, 80, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.35) !important;
}

/* Цвет placeholder у поля с ошибкой */
.feedback_block .form-item--error input.form-control::placeholder,
.feedback_block .form-item--error textarea.form-control::placeholder,
.feedback_block input.form-control.error::placeholder,
.feedback_block textarea.form-control.error::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

/* Подсветка чекбокса с ошибкой */
.feedback_block .form-item--error input[type="checkbox"].form-checkbox,
.feedback_block input[type="checkbox"].form-checkbox.error {
    border-color: rgba(255, 80, 80, 0.95) !important;
    background-color: rgba(255, 80, 80, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.35) !important;
}

/* Чтобы скрытая ошибка чекбокса не ломала flex-разметку */
.feedback_block .form-item-privacy .form-item--error-message {
    display: none !important;
}

/* При отмеченном чекбоксе возвращаем нормальную галочку */
.feedback_block input[type="checkbox"].form-checkbox.error:checked,
.feedback_block .form-item--error input[type="checkbox"].form-checkbox:checked {
    border-color: rgba(251, 251, 251, 0.5) !important;
    background-color: rgba(251, 251, 251, 0.25) !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.3 8L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 9px !important;
}

/* Кнопка */
.feedback_block .form-actions {
    margin-top: 5px;
}

.feedback_block .webform-button--submit,
.feedback_block .form-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--white);
    color: var(--gray);
    font-size: 18px;
    font-weight: 400;
    line-height: 120%;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.feedback_block .webform-button--submit:hover,
.feedback_block .form-submit:hover {
    background: #eef0eb;
    color: #333333;
    transform: translateY(-1px);
}

/* Убираем лишнюю обёртку textarea от Drupal */
.feedback_block .form-textarea-wrapper {
    width: 100%;
}

/* FOOTER BLOCK */

.site-footer {
    background: var(--gray4);
    color: var(--white);
    padding-top: 40px;
    padding-bottom: 18px;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 120%;
}

.site-footer .container {
    padding-left: 0;
    padding-right: 0;
}

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

.site-footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--green);
}

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

.footer-top {
    display: grid;
    grid-template-columns: 245px 180px 210px minmax(235px, 1fr);
    column-gap: 80px;
    align-items: start;
    margin: 0;
    padding: 0;
}

/* Логотип, соцсети, копирайт */

.footer-brand {
    display: block;
    width: 245px;
    margin: 0;
    padding: 0;
}

.footer-logo {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

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

/* Соцсети должны быть отдельной строкой под логотипом */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 11px;
    padding: 0;
}

.footer-social {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    line-height: 0;
    border-radius: 11px;
    overflow: hidden;
    background: transparent;
}

/* На всякий случай выключаем старый hover через before */
.footer-social::before {
    content: none !important;
    display: none !important;
}

.footer-social img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.footer-social::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-social:hover img {
    opacity: 0;
}

.footer-social:hover::after {
    opacity: 1;
}

.footer-social.vk::after {
    background-image: url("/sites/all/themes/vesta_theme/image/vk-hover.svg");
}

.footer-social.ok::after {
    background-image: url("/sites/all/themes/vesta_theme/image/ok-hover.svg");
}

.footer-copyright {
    display: block;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: var(--white);
}

/* Меню */

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

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

.footer-menu ul,
.footer-menu .nav,
.footer-menu .navbar-nav {
    display: block !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li,
.footer-menu .nav-item {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    line-height: 120%;
}

.footer-menu a,
.footer-menu .nav-link {
    display: inline-block;
    margin: 0;
    padding: 0 !important;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: var(--white);
}

.footer-menu-main li:first-child > a,
.footer-menu-main .nav-item:first-child > .nav-link,
.footer-menu-main .nav-link.active {
    color: var(--green);
}

/* Каталог */

.footer-menu-catalog {
    margin: 0;
    padding: 0;
}

.footer-menu-catalog .block-menu > div[id*="catalog-footer-menu"]:not(.contextual) {
    position: relative;
    display: block;
    width: 138px;
    margin: 0 0 10px;
    padding: 0 0 10px;
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
}

.footer-menu-catalog .block-menu > div[id*="catalog-footer-menu"]:not(.contextual)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 138px;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.footer-menu-catalog li,
.footer-menu-catalog .nav-item {
    margin-bottom: 10px;
}

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

.footer-contacts {
    margin: 0;
    padding: 0;
}

.footer-contact {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    margin: 0 0 10px;
    padding: 0;
    color: var(--white);
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    min-width: 25px;
    height: 25px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.footer-contact-icon img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.footer-contact a,
.footer-contact span {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: var(--white);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
}

.footer-contact-address {
    align-items: start;
}

.footer-contact-address .footer-contact-icon {
    margin-top: -3px;
}

.footer-contact-address span:last-child {
    max-width: 250px;
}

/* Нижняя часть footer */

.footer-bottom {
    display: grid;
    grid-template-columns: 323px 170px 1fr;
    column-gap: 140px;
    align-items: center;
    margin: 34px 0 0;
    padding: 0;
}

.footer-bottom a {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: var(--white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    white-space: nowrap;
}

.footer-bottom a:hover {
    color: var(--green);
}

/* Сброс лишних Bootstrap/Drupal отступов */

.site-footer .nav-link,
.site-footer .navbar-nav .nav-link {
    padding: 0 !important;
}

.site-footer p,
.site-footer ul,
.site-footer li {
    margin-top: 0;
}


/* Gallery block */
.photogallery_block {
    padding: 110px 0 110px;
    background: #fff;
}

.photogallery_block .block-views-blockgallarys-on-front {
    position: relative;
}

/* Title */
.photogallery_block .block-title {
    margin: 0 130px 30px 0;
    font-family: var(--second-family);
    font-size: 45px;
    line-height: 130%;
    font-weight: 500;
    color: var(--black);
}

/* Important for Drupal Views:
   allows the "Смотреть все" link to align with the block title */
.photogallery_block .view-gallarys {
    position: static;
}

/* Images list reset */
.photogallery_block .item-list ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.photogallery_block .item-list li {
    margin: 0;
    padding: 0;
}

/* Image links */
.photogallery_block .photoswipe-gallery,
.photogallery_block .photoswipe {
    display: block;
    width: 100%;
}

/* Images */
.photogallery_block .image-style-gallary {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 25px;
}

/* More link button */
.photogallery_block .more-link {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    text-align: right;
}

.photogallery_block .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 10px;
    background: var(--gray);
    color: var(--white);
    font-size: 14px;
    line-height: 120%;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.photogallery_block .more-link a:hover {
    background: var(--green);
    color: #fff;
    text-decoration: none;
}

/* Gallery image hover effect */
.photogallery_block .photoswipe {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    transform: translateZ(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition:
            transform 0.35s ease,
            box-shadow 0.35s ease;
}

.photogallery_block .photoswipe::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.35) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.photogallery_block .photoswipe:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.photogallery_block .photoswipe:hover::before {
    opacity: 1;
}

.photogallery_block .photoswipe:hover .image-style-gallary {
    transform: scale(1.08);
}

.photogallery_block .image-style-gallary {
    transition: transform 0.45s ease;
}

/* BREADCRUMBS */

#block-vesta-theme-strokanavigacii {
    padding: 28px 0 0;
    background: #fff;
}

/* Если блок не находится внутри стандартного .container,
   этот nav визуально выровняет хлебные крошки по ширине контента */
#block-vesta-theme-strokanavigacii nav {
    width: 100%;
    margin: 0 auto;
}

#block-vesta-theme-strokanavigacii .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border-radius: 0;
}

#block-vesta-theme-strokanavigacii .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-family: var(--second-family);
    font-size: 15px;
    font-weight: 400;
    line-height: 120%;
    color: var(--gray);
}

#block-vesta-theme-strokanavigacii .breadcrumb-item a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.25s ease;
}

#block-vesta-theme-strokanavigacii .breadcrumb-item a:hover {
    color: var(--green);
    text-decoration: none;
}

/* Разделитель */
#block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

#block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 10px;
    color: var(--gray);
    opacity: 0.65;
}

/* Текущая страница */
#block-vesta-theme-strokanavigacii .breadcrumb-item:last-child {
    color: var(--black);
}


/* Контакты на странице */
.page-contacts-section {
    padding-bottom: 60px;
    background-color: #fff; /* белый фон как у основной страницы */
    font-family: "Montserrat", sans-serif; /* используемый шрифт сайта */
}

.page-contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.page-contacts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    color: #333; /* основной текст */
}

.page-contact a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.page-contact a:hover {
    color: var(--green); /* цвет акцента сайта */
}

.page-contact-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.page-contact-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.page-contact-address {
    line-height: 1.4;
}

.page-map {
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================================
   Product full page
================================ */

article.product-view-full {
    margin: 60px auto 80px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(320px, 1fr);
    grid-template-areas:
    "gallery info"
    "gallery form"
    "description description";
    gap: 20px 42px;
    color: #2f2f2f;
}

article.product-view-full .product_left {
    grid-area: gallery;
    width: 100%;
    max-width: 520px;
}

article.product-view-full .product-teaser {
    grid-area: info;
}

article.product-view-full .product_right {
    grid-area: form;
}

article.product-view-full .product_buttom {
    grid-area: description;
}

/* Пустой блок из текущей разметки скрываем */
article.product-view-full .product-teaser-image {
    display: none;
}


/* ================================
   Product info: SKU + price
================================ */

article.product-view-full .product-teaser {
    padding: 18px 0 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

article.product-view-full .product-teaser-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

article.product-view-full .field--name-sku {
    font-size: 13px;
    color: #8a8a8a;
}

article.product-view-full .field--name-sku::before {
    content: "Артикул: ";
}

article.product-view-full .field--name-price {
    font-family: var(--second-family);
    font-size: 34px;
    line-height: 1.15;
    color: #2f2f2f;
}


/* ================================
   Product add to cart form
================================ */

article.product-view-full .product_right {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

article.product-view-full .commerce-order-item-add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

article.product-view-full .field--name-quantity {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #deded8;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f7f4;
}

article.product-view-full .field--name-quantity label {
    display: none;
}

article.product-view-full .field--name-quantity .form-item {
    margin: 0;
}

article.product-view-full .field--name-quantity input {
    width: 58px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 16px;
    color: #2f2f2f;
    outline: none;
    box-shadow: none;
}

article.product-view-full .field--name-quantity input:focus {
    outline: none;
    box-shadow: none;
}

article.product-view-full .btn-minus,
article.product-view-full .btn-plus {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    color: #ffffff;
    background: var(--green);
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease;
}

article.product-view-full .btn-minus:hover,
article.product-view-full .btn-plus:hover {
    background: #68735b;
}

article.product-view-full .form-actions {
    margin: 0;
}

article.product-view-full .button--add-to-cart {
    min-width: 210px;
    height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 9px;
    background: var(--green);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

article.product-view-full .button--add-to-cart:hover {
    background: #68735b;
    transform: translateY(-1px);
}

article.product-view-full .button--add-to-cart:focus {
    outline: none;
    box-shadow: none;
}


/* ================================
   Product gallery
================================ */

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

article.product-view-full .current-slide {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f4f1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

article.product-view-full .current-slide .element {
    height: 430px;
}

article.product-view-full .current-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* ================================
   Product gallery arrows
   Same style as main slider
================================ */

article.product-view-full .current-slide .slick-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0;
    line-height: 0;
    color: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    overflow: hidden;
}

article.product-view-full .current-slide .slick-arrow::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px 60px;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

article.product-view-full .current-slide .slick-arrow::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px 60px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

article.product-view-full .current-slide .slick-arrow:hover::before {
    opacity: 0;
}

article.product-view-full .current-slide .slick-arrow:hover::after {
    opacity: 1;
}

/* Left arrow */
article.product-view-full .current-slide .slick-prev {
    left: 26px;
}

article.product-view-full .current-slide .slick-prev::before {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow.svg");
    transform: none;
}

article.product-view-full .current-slide .slick-prev::after {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow-hover.svg");
    transform: rotate(180deg);
}

/* Right arrow */
article.product-view-full .current-slide .slick-next {
    right: 26px;
}

article.product-view-full .current-slide .slick-next::before {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow.svg");
    transform: rotate(180deg);
}

article.product-view-full .current-slide .slick-next::after {
    background-image: url("/sites/all/themes/vesta_theme/image/arrow-hover.svg");
    transform: none;
}


/* ================================
   Product thumbnails
================================ */

article.product-view-full .nav-slide {
    width: 100%;
    margin: 0;
}

article.product-view-full .nav-slide .element {
    cursor: pointer;
}

article.product-view-full .nav-slide img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

article.product-view-full .nav-slide .element:hover img,
article.product-view-full .nav-slide .element.is-active img,
article.product-view-full .nav-slide .slick-current img {
    opacity: 1;
    border-color: #7f896f;
}

/* Статичные миниатюры, когда изображений 4 или меньше */
article.product-view-full .nav-slide.product-thumbs-static {
    display: flex;
    gap: 10px;
}

article.product-view-full .nav-slide.product-thumbs-static .element {
    flex: 0 0 calc(25% - 8px);
    width: calc(25% - 8px);
    padding: 0;
}

/* Миниатюры, если nav-slide всё-таки работает через Slick */
article.product-view-full .nav-slide.slick-initialized {
    margin: 0 -5px;
}

article.product-view-full .nav-slide.slick-initialized .element {
    padding: 0 5px;
}

article.product-view-full .nav-slide .slick-track {
    margin-left: 0;
}


/* ================================
   Product description
================================ */

article.product-view-full .product_buttom {
    margin-top: 30px;
    padding: 34px 42px;
    background: #f3f5f0;
    border-radius: 16px;
    box-shadow: none;
}

article.product-view-full .product_buttom::before {
    content: "Описание";
    display: block;
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.2;
    color: #2f2f2f;
}

article.product-view-full .product_buttom p {
    max-width: 780px;
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.65;
    color: #3f3f3f;
}

article.product-view-full .product_buttom p:last-child {
    margin-bottom: 0;
}

/* ================================
   Albums / Galleries page only
   /gallarys
================================ */

.view-gallarys.view-display-id-page_1 {
    margin: 60px auto 80px;
    color: #2f2f2f;
}

.view-gallarys.view-display-id-page_1 .view-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.view-gallarys.view-display-id-page_1 .views-row {
    min-width: 0;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery {
    position: relative;
    height: 100%;
    min-height: 260px;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: #f3f5f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(127, 137, 111, 0.14);
    pointer-events: none;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery::after {
    content: "FLOWIA";
    position: absolute;
    right: 22px;
    bottom: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1;
    letter-spacing: 0.12em;
    color: rgba(127, 137, 111, 0.08);
    pointer-events: none;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 400;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery h2 a {
    color: #2f2f2f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery h2 a:hover {
    color: #7f896f;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery h2 .field {
    display: block;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__meta {
    position: relative;
    z-index: 1;
    margin: 0 0 26px;
    padding: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #8a8a8a;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__submitted {
    display: none;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__submitted a {
    color: #7f896f;
    text-decoration: none;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__submitted a:hover {
    text-decoration: underline;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__content {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__links {
    margin: 0;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__links ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__links li {
    margin: 0;
    padding: 0;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__links a {
    min-width: 130px;
    min-height: 42px;
    padding: 11px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #7f896f;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__links a:hover {
    background: #68735b;
    transform: translateY(-1px);
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .node__links a .visually-hidden {
    display: none;
}

/* Картинка альбома, если поле изображения выведено в teaser */
.view-gallarys.view-display-id-page_1 article.node--type-photogallery .field--type-image {
    position: relative;
    z-index: 1;
    margin: -30px -28px 24px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #eceee8;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery .field--type-image img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.view-gallarys.view-display-id-page_1 article.node--type-photogallery:hover .field--type-image img {
    transform: scale(1.04);
}

.view-gallarys.view-display-id-page_1 .view-empty {
    padding: 34px 38px;
    background: #f3f5f0;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #3f3f3f;
}

.view-gallarys.view-display-id-page_1 .contextual {
    z-index: 20;
}

.view-gallarys.view-display-id-page_1 .contextual .trigger {
    z-index: 21;
}

/* ================================
   Photogallery full page
   Страница внутри альбома
================================ */

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full {
    margin: 60px auto 80px;
    color: #2f2f2f;
}


/* ================================
   Meta information
================================ */

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .node__meta {
    display: none;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .node__submitted {
    color: #8a8a8a;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .node__submitted a {
    color: #7f896f;
    text-decoration: none;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .node__submitted a:hover {
    text-decoration: underline;
}

/* Если дату и автора нужно скрыть — раскомментируй этот блок */

/*
#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .node__meta {
  display: none;
}
*/


/* ================================
   Gallery wrapper
================================ */

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .node__content {
    width: 100%;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 22px;
}


/* ================================
   Gallery items
================================ */

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item {
    position: relative;
    min-width: 0;
    height: 260px;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f5f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transform: translateY(0);
    transition:
            transform 0.28s ease,
            box-shadow 0.28s ease;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(1),
#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(6n) {
    grid-column: span 2;
    grid-row: span 2;
    height: 542px;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(4n) {
    grid-column: span 2;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}


/* ================================
   Image
================================ */

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1);
    transition:
            transform 0.45s ease,
            filter 0.45s ease;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:hover img {
    transform: scale(1.06);
    filter: brightness(0.88);
}


/* ================================
   Hover overlay
================================ */

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
            linear-gradient(
                    180deg,
                    rgba(47, 47, 47, 0) 35%,
                    rgba(47, 47, 47, 0.34) 100%
            );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item::after {
    content: "Смотреть";
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    min-height: 38px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(127, 137, 111, 0.95);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(8px);
    transition:
            opacity 0.35s ease,
            transform 0.35s ease,
            background 0.2s ease;
    pointer-events: none;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:hover::before {
    opacity: 1;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:hover::after {
    opacity: 1;
    transform: translateY(0);
}


/* ================================
   Contextual admin links
================================ */

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .contextual {
    z-index: 20;
}

#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .contextual .trigger {
    z-index: 21;
}

/* ================================
   CART PAGE
   Drupal Commerce cart form
================================ */

#block-vesta-theme-content .cart.cart-form {
    width: 100%;
    margin: 0 auto 110px;
    font-family: var(--font-family);
    color: var(--black);
}

/* Общая карточка формы */
#block-vesta-theme-content .cart.cart-form .views-form form {
    position: relative;
    padding: 34px;
    border: 1px solid var(--gray2);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 10px 32px rgba(27, 33, 27, 0.07);
}

/* Убираем bootstrap-визуал таблицы */
#block-vesta-theme-content .cart.cart-form .table-responsive {
    margin: 0;
    border: 0;
    overflow: visible;
}

#block-vesta-theme-content .cart.cart-form table.views-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
    border: 0;
    background: transparent;
}

#block-vesta-theme-content .cart.cart-form table.table,
#block-vesta-theme-content .cart.cart-form table.table-striped {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-color: var(--black);
    --bs-table-striped-color: var(--black);
}

/* Шапка таблицы */
#block-vesta-theme-content .cart.cart-form thead th {
    padding: 0 18px 12px;
    border: 0;
    background: transparent;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: var(--gray);
    text-align: left;
    white-space: nowrap;
}

#block-vesta-theme-content .cart.cart-form thead th.views-field-unit-price__number,
#block-vesta-theme-content .cart.cart-form thead th.views-field-edit-quantity,
#block-vesta-theme-content .cart.cart-form thead th.views-field-total-price__number,
#block-vesta-theme-content .cart.cart-form thead th.views-field-remove-button {
    text-align: center;
}

/* Строки товаров */
#block-vesta-theme-content .cart.cart-form tbody tr {
    border-radius: 18px;
    background: #f7f8f4;
    box-shadow: 0 4px 16px rgba(27, 33, 27, 0.05);
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            background-color 0.25s ease;
}

#block-vesta-theme-content .cart.cart-form tbody tr:hover {
    transform: translateY(-2px);
    background: #f3f5f0;
    box-shadow: 0 10px 26px rgba(27, 33, 27, 0.09);
}

#block-vesta-theme-content .cart.cart-form tbody td {
    padding: 22px 18px;
    border: 0;
    vertical-align: middle;
    background: transparent;
    font-size: 16px;
    line-height: 120%;
    color: var(--black);
}

#block-vesta-theme-content .cart.cart-form tbody td:first-child {
    border-radius: 18px 0 0 18px;
}

#block-vesta-theme-content .cart.cart-form tbody td:last-child {
    border-radius: 0 18px 18px 0;
}

/* Название товара */
#block-vesta-theme-content .cart.cart-form .views-field-purchased-entity {
    min-width: 280px;
}

#block-vesta-theme-content .cart.cart-form .commerce-product-variation {
    margin: 0;
}

#block-vesta-theme-content .cart.cart-form .field--name-title {
    margin: 0;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    color: var(--black);
}

/* Если ячейка товара пустая — аккуратная заглушка */
#block-vesta-theme-content .cart.cart-form .views-field-purchased-entity:empty::before {
    content: "Товар";
    color: var(--gray);
    font-size: 15px;
}

/* Цена и итог по строке */
#block-vesta-theme-content .cart.cart-form .views-field-unit-price__number,
#block-vesta-theme-content .cart.cart-form .views-field-total-price__number {
    text-align: center;
    white-space: nowrap;
    font-size: 17px;
}

#block-vesta-theme-content .cart.cart-form .views-field-total-price__number {
    font-weight: 500;
    color: var(--green);
}

/* Количество */
#block-vesta-theme-content .cart.cart-form .views-field-edit-quantity {
    text-align: center;
}

#block-vesta-theme-content .cart.cart-form .views-field-edit-quantity .form-item {
    margin: 0;
}

#block-vesta-theme-content .cart.cart-form input.quantity-edit-input {
    width: 76px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #deded8;
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    outline: none;
    box-shadow: none;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;
}

#block-vesta-theme-content .cart.cart-form input.quantity-edit-input:focus {
    border-color: var(--green);
    background: #fbfcf8;
    box-shadow: 0 0 0 3px rgba(129, 145, 113, 0.16);
}

/* Убираем стандартные стрелки number там, где поддерживается */
#block-vesta-theme-content .cart.cart-form input.quantity-edit-input::-webkit-outer-spin-button,
#block-vesta-theme-content .cart.cart-form input.quantity-edit-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

#block-vesta-theme-content .cart.cart-form input.quantity-edit-input[type="number"] {
    -moz-appearance: textfield;
}

/* Удаление */
#block-vesta-theme-content .cart.cart-form .views-field-remove-button {
    text-align: center;
}

#block-vesta-theme-content .cart.cart-form .delete-order-item {
    min-width: 98px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(112, 112, 112, 0.25);
    border-radius: 10px;
    background: transparent;
    color: var(--gray);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    line-height: 120%;
    box-shadow: none;
    cursor: pointer;
    transition:
            color 0.2s ease,
            border-color 0.2s ease,
            background-color 0.2s ease;
}

#block-vesta-theme-content .cart.cart-form .delete-order-item:hover {
    border-color: var(--green);
    background: rgba(129, 145, 113, 0.08);
    color: var(--green);
}

/* Блок итогов */
#block-vesta-theme-content .cart.cart-form [data-drupal-selector="order-total-summary"] {
    display: flex;
    justify-content: flex-end;
    margin: 24px 0 0;
}

#block-vesta-theme-content .cart.cart-form .field--name-total-price {
    width: 100%;
    max-width: 410px;
    padding: 24px 26px;
    border-radius: 20px;
    background: #f3f5f0;
    color: var(--black);
}

#block-vesta-theme-content .cart.cart-form .order-total-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

#block-vesta-theme-content .cart.cart-form .order-total-line + .order-total-line {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(112, 112, 112, 0.18);
}

#block-vesta-theme-content .cart.cart-form .order-total-line-label {
    color: var(--gray);
    font-size: 16px;
    line-height: 120%;
}

#block-vesta-theme-content .cart.cart-form .order-total-line-value {
    color: var(--black);
    font-size: 18px;
    line-height: 120%;
    font-weight: 500;
    white-space: nowrap;
}

#block-vesta-theme-content .cart.cart-form .order-total-line__total .order-total-line-label {
    font-family: var(--second-family);
    font-size: 24px;
    line-height: 130%;
    color: var(--black);
}

#block-vesta-theme-content .cart.cart-form .order-total-line__total .order-total-line-value {
    font-family: var(--second-family);
    font-size: 28px;
    line-height: 130%;
    color: var(--green);
}

/* Кнопки действий */
#block-vesta-theme-content .cart.cart-form #edit-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin: 24px 0 0;
}

#block-vesta-theme-content .cart.cart-form #edit-actions .form-submit {
    min-width: 190px;
    height: 50px;
    padding: 0 24px;
    border-radius: 10px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    box-shadow: none;
    cursor: pointer;
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

/* Обновить корзину */
#block-vesta-theme-content .cart.cart-form #edit-submit {
    border: 1px solid var(--gray);
    background: transparent;
    color: var(--gray);
}

#block-vesta-theme-content .cart.cart-form #edit-submit:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-1px);
}

/* Оформление заказа */
#block-vesta-theme-content .cart.cart-form #edit-checkout {
    border: 0;
    background: var(--gray);
    color: var(--white);
}

#block-vesta-theme-content .cart.cart-form #edit-checkout:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-1px);
}

/* AJAX progress внутри корзины */
#block-vesta-theme-content .cart.cart-form .ajax-progress {
    margin-left: 8px;
}

/* Empty cart / системные сообщения, если появятся */
#block-vesta-theme-content .cart.cart-form .view-empty {
    padding: 34px 38px;
    border-radius: 20px;
    background: #f3f5f0;
    color: var(--black);
    font-size: 17px;
    line-height: 150%;
}

/* ================================
   Cart AJAX-safe buttons
================================ */

#block-vesta-theme-content .cart.cart-form [data-drupal-selector="edit-actions"],
#block-vesta-theme-content .cart.cart-form .form-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    margin-top: 28px !important;
}

/* Checkout button: основной селектор + класс, который JS возвращает после AJAX */
#block-vesta-theme-content .cart.cart-form button.vesta-checkout-button,
#block-vesta-theme-content .cart.cart-form button[data-drupal-selector="edit-checkout"],
#block-vesta-theme-content .cart.cart-form button[name="op"][value="Оформление заказа"],
#block-vesta-theme-content .cart.cart-form .form-actions button[data-drupal-selector="edit-checkout"].btn.btn-primary,
#block-vesta-theme-content .cart.cart-form [data-drupal-selector="edit-actions"] button[data-drupal-selector="edit-checkout"].btn.btn-primary {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 30px !important;
    border: 1px solid #7f896f !important;
    border-radius: 9px !important;
    background-color: #7f896f !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

#block-vesta-theme-content .cart.cart-form button.vesta-checkout-button:hover,
#block-vesta-theme-content .cart.cart-form button[data-drupal-selector="edit-checkout"]:hover,
#block-vesta-theme-content .cart.cart-form button[name="op"][value="Оформление заказа"]:hover {
    background-color: #68735b !important;
    border-color: #68735b !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

#block-vesta-theme-content .cart.cart-form button.vesta-update-cart-button:hover,
#block-vesta-theme-content .cart.cart-form button[data-drupal-selector="edit-submit"]:hover,
#block-vesta-theme-content .cart.cart-form button[name="update"]:hover {
    background-color: #7f896f !important;
    color: #ffffff !important;
}

/* Disabled / AJAX state */
#block-vesta-theme-content .cart.cart-form button.vesta-checkout-button:disabled,
#block-vesta-theme-content .cart.cart-form button[data-drupal-selector="edit-checkout"]:disabled,
#block-vesta-theme-content .cart.cart-form button.vesta-update-cart-button:disabled,
#block-vesta-theme-content .cart.cart-form button[data-drupal-selector="edit-submit"]:disabled {
    opacity: 0.65 !important;
    cursor: wait !important;
    transform: none !important;
}

/* Bootstrap / Drupal overrides after AJAX */
#block-vesta-theme-content .cart.cart-form .btn-primary.vesta-checkout-button,
#block-vesta-theme-content .cart.cart-form .button.vesta-checkout-button,
#block-vesta-theme-content .cart.cart-form .form-submit.vesta-checkout-button {
    background-color: #7f896f !important;
    border-color: #7f896f !important;
    color: #ffffff !important;
}

#block-vesta-theme-content .cart.cart-form .btn-primary.vesta-checkout-button:hover,
#block-vesta-theme-content .cart.cart-form .button.vesta-checkout-button:hover,
#block-vesta-theme-content .cart.cart-form .form-submit.vesta-checkout-button:hover {
    background-color: #68735b !important;
    border-color: #68735b !important;
    color: #ffffff !important;
}

/* AJAX throbber рядом с кнопкой */
#block-vesta-theme-content .cart.cart-form .ajax-progress,
#block-vesta-theme-content .cart.cart-form .ajax-progress-throbber {
    margin-left: 10px !important;
}

/* Mobile */

/* ================================
   CART RESPONSIVE
================================ */




/* ================================
   CHECKOUT PAGE
   Минимальная стилизация оформления заказа
================================ */

#block-vesta-theme-content .commerce-checkout-flow {
    width: 100%;
    margin: 0 auto 110px;
    font-family: var(--font-family);
    color: var(--black);
}

#block-vesta-theme-content .commerce-checkout-flow * {
    box-sizing: border-box;
}

/* Общая сетка */
#block-vesta-theme-content .layout-checkout-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    grid-template-areas:
        "main secondary"
        "footer secondary";
    gap: 30px;
    align-items: start;
}

#block-vesta-theme-content .layout-region-checkout-main {
    grid-area: main;
    padding: 32px 34px;
    border: 1px solid var(--gray2);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 10px 32px rgba(27, 33, 27, 0.06);
}

#block-vesta-theme-content .layout-region-checkout-secondary {
    grid-area: secondary;
    padding: 26px 24px;
    border-radius: 22px;
    background: #f3f5f0;
}

#block-vesta-theme-content .layout-region-checkout-footer {
    grid-area: footer;
}

/* Заголовки блоков */
#block-vesta-theme-content .checkout-pane {
    margin: 0 0 26px;
}

#block-vesta-theme-content .checkout-pane:last-child {
    margin-bottom: 0;
}

#block-vesta-theme-content .checkout-pane > legend,
#block-vesta-theme-content .checkout-pane fieldset > legend,
#block-vesta-theme-content .field--name-field-address legend {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

#block-vesta-theme-content .checkout-pane .fieldset-legend,
#block-vesta-theme-content .field--name-field-address .fieldset-legend {
    display: block;
    font-family: var(--second-family);
    font-size: 26px;
    font-weight: 500;
    line-height: 130%;
    color: var(--black);
}

#block-vesta-theme-content .layout-region-checkout-secondary h3 {
    margin: 0 0 18px;
    font-family: var(--second-family);
    font-size: 26px;
    font-weight: 500;
    line-height: 130%;
    color: var(--black);
}

/* Поля */
#block-vesta-theme-content .commerce-checkout-flow .form-item {
    margin: 0 0 16px;
}

#block-vesta-theme-content .commerce-checkout-flow label {
    display: block;
    margin: 0 0 7px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    color: var(--gray);
}

#block-vesta-theme-content .commerce-checkout-flow input.form-control,
#block-vesta-theme-content .commerce-checkout-flow input.form-text,
#block-vesta-theme-content .commerce-checkout-flow textarea.form-control,
#block-vesta-theme-content .commerce-checkout-flow textarea.form-textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--gray2);
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    box-shadow: none;
    outline: none;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;
}

#block-vesta-theme-content .commerce-checkout-flow textarea.form-control,
#block-vesta-theme-content .commerce-checkout-flow textarea.form-textarea {
    min-height: 108px;
    padding: 14px 16px;
    resize: vertical;
}

#block-vesta-theme-content .commerce-checkout-flow input:focus,
#block-vesta-theme-content .commerce-checkout-flow textarea:focus {
    border-color: var(--green);
    background: #fbfcf8;
    box-shadow: 0 0 0 3px rgba(129, 145, 113, 0.14);
}

#block-vesta-theme-content .commerce-checkout-flow .form-textarea-wrapper {
    width: 100%;
}

/* Адрес */
#block-vesta-theme-content .commerce-checkout-flow fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

#block-vesta-theme-content .field--name-field-address {
    padding: 22px 0 4px;
    border-top: 1px solid rgba(112, 112, 112, 0.16);
}

/* Оплата */
#block-vesta-theme-content .checkout-pane-payment-information {
    padding-top: 24px;
    border-top: 1px solid rgba(112, 112, 112, 0.16);
}

#block-vesta-theme-content .checkout-pane-payment-information .form-radios {
    display: grid;
    gap: 10px;
}

#block-vesta-theme-content .checkout-pane-payment-information .form-type-radio {
    position: relative;
    margin: 0;
}

#block-vesta-theme-content .checkout-pane-payment-information input.form-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#block-vesta-theme-content .checkout-pane-payment-information label.option {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    margin: 0;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--gray2);
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    font-size: 15px;
    cursor: pointer;
    transition:
            border-color 0.2s ease,
            background-color 0.2s ease;
}

#block-vesta-theme-content .checkout-pane-payment-information label.option::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 1px solid var(--gray3);
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
}

#block-vesta-theme-content .checkout-pane-payment-information label.option::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0;
    transform: translateY(-50%);
}

#block-vesta-theme-content .checkout-pane-payment-information input.form-radio:checked + label.option {
    border-color: var(--green);
    background: #fbfcf8;
}

#block-vesta-theme-content .checkout-pane-payment-information input.form-radio:checked + label.option::before {
    border-color: var(--green);
}

#block-vesta-theme-content .checkout-pane-payment-information input.form-radio:checked + label.option::after {
    opacity: 1;
}

/* Сводка заказа */
#block-vesta-theme-content .checkout-order-summary .table-responsive {
    margin: 0 0 18px;
    border: 0;
}

#block-vesta-theme-content .checkout-order-summary table {
    width: 100%;
    margin: 0;
    border: 0;
}

#block-vesta-theme-content .checkout-order-summary td {
    padding: 0 0 14px;
    border: 0;
    background: transparent;
    color: var(--black);
    font-size: 15px;
    line-height: 140%;
    vertical-align: top;
}

#block-vesta-theme-content .checkout-order-summary td:first-child {
    padding-right: 12px;
}

#block-vesta-theme-content .checkout-order-summary td:nth-child(2) {
    width: 46px;
    color: var(--gray);
    white-space: nowrap;
}

#block-vesta-theme-content .checkout-order-summary td.text-end {
    white-space: nowrap;
    font-weight: 500;
    color: var(--black);
}

#block-vesta-theme-content .checkout-order-summary .field--name-title {
    font-size: 15px;
    line-height: 140%;
    color: var(--black);
}

#block-vesta-theme-content .checkout-order-summary .order-total-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(112, 112, 112, 0.18);
}

#block-vesta-theme-content .checkout-order-summary .order-total-line + .order-total-line {
    margin-top: 12px;
}

#block-vesta-theme-content .checkout-order-summary .order-total-line-label {
    color: var(--gray);
    font-size: 12px;
    line-height: 120%;
}

#block-vesta-theme-content .checkout-order-summary .order-total-line-value {
    color: var(--black);
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
    white-space: nowrap;
}

#block-vesta-theme-content .checkout-order-summary .order-total-line__total .order-total-line-label {
    font-family: var(--second-family);
    font-size: 17px;
    color: var(--black);
}

#block-vesta-theme-content .checkout-order-summary .order-total-line__total .order-total-line-value {
    font-family: var(--second-family);
    font-size: 24px;
    color: var(--green);
}

/* Кнопка */
#block-vesta-theme-content .commerce-checkout-flow #edit-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

#block-vesta-theme-content .commerce-checkout-flow #edit-actions-next,
#block-vesta-theme-content .commerce-checkout-flow .form-actions .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: var(--gray);
    color: var(--white);
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 120%;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}

#block-vesta-theme-content .commerce-checkout-flow #edit-actions-next:hover,
#block-vesta-theme-content .commerce-checkout-flow .form-actions .form-submit:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-1px);
}

#block-vesta-theme-content .commerce-checkout-flow #edit-actions-next:focus,
#block-vesta-theme-content .commerce-checkout-flow .form-actions .form-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 145, 113, 0.18);
}

/* Ошибки */
#block-vesta-theme-content .commerce-checkout-flow .form-item--error input,
#block-vesta-theme-content .commerce-checkout-flow .form-item--error textarea,
#block-vesta-theme-content .commerce-checkout-flow input.error,
#block-vesta-theme-content .commerce-checkout-flow textarea.error {
    border-color: rgba(190, 65, 65, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(190, 65, 65, 0.12) !important;
}

#block-vesta-theme-content .commerce-checkout-flow .form-item--error-message {
    margin-top: 6px;
    color: #a94442;
    font-size: 13px;
    line-height: 130%;
}

/* Адаптив */


/* ================================
   CHECKOUT SUMMARY FIX
   Исправление сжатия правой сводки
================================ */

#block-vesta-theme-content .commerce-checkout-flow .layout-checkout-form {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 370px);
}

/* Сбрасываем стандартные float/width Drupal Commerce */
#block-vesta-theme-content .commerce-checkout-flow .layout-region,
#block-vesta-theme-content .commerce-checkout-flow .layout-region-checkout-main,
#block-vesta-theme-content .commerce-checkout-flow .layout-region-checkout-secondary,
#block-vesta-theme-content .commerce-checkout-flow .layout-region-checkout-footer {
    float: none !important;
    width: auto !important;
    max-width: none !important;
}

/* Правая колонка всегда занимает свою grid-ячейку целиком */
#block-vesta-theme-content .commerce-checkout-flow .layout-region-checkout-secondary {
    width: 100% !important;
    min-width: 340px;
    align-self: start;
    overflow: hidden;
}

/* Чтобы заголовок не переносился по одной букве */
#block-vesta-theme-content .layout-region-checkout-secondary h3 {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Таблица сводки без горизонтального сжатия */
#block-vesta-theme-content .checkout-order-summary,
#block-vesta-theme-content .checkout-order-summary .table-responsive,
#block-vesta-theme-content .checkout-order-summary table {
    width: 100%;
    min-width: 0;
}

#block-vesta-theme-content .checkout-order-summary .table-responsive {
    overflow: visible;
}

/* Строка товара */
#block-vesta-theme-content .checkout-order-summary table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: start;
}

#block-vesta-theme-content .checkout-order-summary table td {
    display: block;
    padding-bottom: 14px;
}

#block-vesta-theme-content .checkout-order-summary td:first-child {
    min-width: 0;
    padding-right: 0;
}

#block-vesta-theme-content .checkout-order-summary td:nth-child(2),
#block-vesta-theme-content .checkout-order-summary td.text-end {
    white-space: nowrap;
}

/* Итого и предварительная сумма в нормальную строку */
#block-vesta-theme-content .checkout-order-summary .order-total-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 14px;
}

#block-vesta-theme-content .checkout-order-summary .order-total-line-label {
    min-width: 0;
}

#block-vesta-theme-content .checkout-order-summary .order-total-line-value {
    text-align: right;
    white-space: nowrap;
}

/* На планшетах и мобильных сводка идет во всю ширину */


/* ===== Feedback modal ===== */

#drupal-bootstrap4-modal.bs4-modal {
    --modal-white: var(--white, #fff);
    --modal-gray: var(--gray, #555);
    --modal-gray3: var(--gray3, #f3f3f3);
    --modal-radius: 18px;

    color: var(--modal-white);
}

/* Затемнение фона Bootstrap */
#drupal-bootstrap4-modal.bs4-modal.show {
    backdrop-filter: blur(4px);
}

/* Диалог */
#drupal-bootstrap4-modal .modal-dialog {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Основная карточка */
#drupal-bootstrap4-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 251, 251, 0.28);
    border-radius: var(--modal-radius);
    background:
            linear-gradient(135deg, rgba(25, 25, 25, 0.92), rgba(5, 5, 5, 0.88)),
            rgba(0, 0, 0, 0.82);
    color: var(--modal-white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* Лёгкий внутренний блик */
#drupal-bootstrap4-modal .modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
            radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.08), transparent 30%);
}

/* Все части модалки поверх декоративного слоя */
#drupal-bootstrap4-modal .modal-header,
#drupal-bootstrap4-modal .modal-body,
#drupal-bootstrap4-modal .modal-footer {
    position: relative;
    z-index: 1;
}

/* Header */
#drupal-bootstrap4-modal .modal-header {
    align-items: flex-start;
    padding: 30px 34px 10px;
    border: 0;
}

#drupal-bootstrap4-modal .modal-title {
    margin: 0;
    font-family: var(--second-family, inherit);
    font-size: 34px;
    line-height: 120%;
    font-weight: 500;
    color: var(--modal-white);
}

/* Кнопка закрытия */
#drupal-bootstrap4-modal .modal-header .close,
#drupal-bootstrap4-modal .modal-header .btn-close {
    position: absolute;
    top: 22px;
    right: 24px;

    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;

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

    border: 1px solid rgba(251, 251, 251, 0.32);
    border-radius: 50%;
    background: rgba(251, 251, 251, 0.12);
    color: var(--modal-white);
    opacity: 1;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#drupal-bootstrap4-modal .modal-header .close::before,
#drupal-bootstrap4-modal .modal-header .close::after,
#drupal-bootstrap4-modal .modal-header .btn-close::before,
#drupal-bootstrap4-modal .modal-header .btn-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--modal-white);
}

#drupal-bootstrap4-modal .modal-header .close::before,
#drupal-bootstrap4-modal .modal-header .btn-close::before {
    transform: rotate(45deg);
}

#drupal-bootstrap4-modal .modal-header .close::after,
#drupal-bootstrap4-modal .modal-header .btn-close::after {
    transform: rotate(-45deg);
}

#drupal-bootstrap4-modal .modal-header .close span,
#drupal-bootstrap4-modal .modal-header .btn-close span {
    display: none !important;
}

#drupal-bootstrap4-modal .modal-header .close:hover,
#drupal-bootstrap4-modal .modal-header .btn-close:hover {
    background: rgba(251, 251, 251, 0.2);
    border-color: rgba(251, 251, 251, 0.52);
    transform: rotate(90deg);
}

/* Body */
#drupal-bootstrap4-modal .modal-body {
    padding: 12px 34px 0;
}

/* Form */
#drupal-bootstrap4-modal form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#drupal-bootstrap4-modal .form-item,
#drupal-bootstrap4-modal .form-actions {
    margin: 0;
}

/* Поле вопроса, чекбокс и служебные элементы на всю ширину */
#drupal-bootstrap4-modal .form-item-message,
#drupal-bootstrap4-modal .form-item-privacy,
#drupal-bootstrap4-modal .form-actions,
#drupal-bootstrap4-modal form > input[type="hidden"],
#drupal-bootstrap4-modal form > .contextual {
    grid-column: 1 / -1;
}

/* Drupal textarea wrapper */
#drupal-bootstrap4-modal .form-textarea-wrapper {
    width: 100%;
}

/* Поля */
#drupal-bootstrap4-modal input.form-control,
#drupal-bootstrap4-modal textarea.form-control {
    width: 100%;
    height: 47px;
    padding: 14px 22px;

    border: 1px solid rgba(251, 251, 251, 0.5);
    border-radius: 10px;
    background: rgba(251, 251, 251, 0.15);

    color: var(--modal-gray3);
    font-size: 16px;
    line-height: 120%;
    font-weight: 500;

    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#drupal-bootstrap4-modal textarea.form-control {
    height: 89px;
    min-height: 89px;
    max-height: 89px;
    padding-top: 12px;
    resize: none;
}

#drupal-bootstrap4-modal input.form-control::placeholder,
#drupal-bootstrap4-modal textarea.form-control::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

#drupal-bootstrap4-modal input.form-control:focus,
#drupal-bootstrap4-modal textarea.form-control:focus {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* Чекбокс и согласие */
#drupal-bootstrap4-modal .form-item-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

#drupal-bootstrap4-modal .form-item-privacy input[type="checkbox"].form-checkbox {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    border: 1px solid rgba(251, 251, 251, 0.5);
    border-radius: 4px;
    background-color: rgba(251, 251, 251, 0.15);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 9px;

    cursor: pointer;
}

#drupal-bootstrap4-modal .form-item-privacy input[type="checkbox"].form-checkbox:checked {
    background-color: rgba(251, 251, 251, 0.25);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.3 8L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#drupal-bootstrap4-modal .form-item-privacy input[type="checkbox"].form-checkbox:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

#drupal-bootstrap4-modal .form-item-privacy .description {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}

#drupal-bootstrap4-modal .webform-element-description {
    max-width: 430px;
    margin: 0;
    color: var(--modal-white);
    font-size: 12px;
    line-height: 120%;
    font-weight: 400;
}

#drupal-bootstrap4-modal .webform-element-description a {
    color: var(--modal-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Скрываем системные ошибки, оставляем только подсветку полей */
#drupal-bootstrap4-modal form > .alert,
#drupal-bootstrap4-modal .alert-error,
#drupal-bootstrap4-modal .alert-danger,
#drupal-bootstrap4-modal .form-item--error-message {
    display: none !important;
}

/* Ошибки input / textarea */
#drupal-bootstrap4-modal .form-item--error input.form-control,
#drupal-bootstrap4-modal .form-item--error textarea.form-control,
#drupal-bootstrap4-modal input.form-control.error,
#drupal-bootstrap4-modal textarea.form-control.error {
    border-color: rgba(255, 80, 80, 0.95) !important;
    background: rgba(255, 80, 80, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.35) !important;
}

#drupal-bootstrap4-modal .form-item--error input.form-control::placeholder,
#drupal-bootstrap4-modal .form-item--error textarea.form-control::placeholder,
#drupal-bootstrap4-modal input.form-control.error::placeholder,
#drupal-bootstrap4-modal textarea.form-control.error::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

/* Ошибка checkbox */
#drupal-bootstrap4-modal .form-item--error input[type="checkbox"].form-checkbox,
#drupal-bootstrap4-modal input[type="checkbox"].form-checkbox.error {
    border-color: rgba(255, 80, 80, 0.95) !important;
    background-color: rgba(255, 80, 80, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.35) !important;
}

#drupal-bootstrap4-modal .form-item-privacy .form-item--error-message {
    display: none !important;
}

#drupal-bootstrap4-modal input[type="checkbox"].form-checkbox.error:checked,
#drupal-bootstrap4-modal .form-item--error input[type="checkbox"].form-checkbox:checked {
    border-color: rgba(251, 251, 251, 0.5) !important;
    background-color: rgba(251, 251, 251, 0.25) !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.3 8L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 9px !important;
}

/* Footer */
#drupal-bootstrap4-modal .modal-footer {
    padding: 13px 34px 34px;
    border: 0;
}

/* Кнопка в footer, которую создаёт Drupal modal */
#drupal-bootstrap4-modal .modal-footer .webform-button--submit,
#drupal-bootstrap4-modal .modal-footer .form-submit,
#drupal-bootstrap4-modal .modal-footer .btn-primary {
    width: 100%;
    height: 50px;
    margin: 0;

    border: none;
    border-radius: 10px;
    background: var(--modal-white);

    color: var(--modal-gray);
    font-size: 18px;
    line-height: 120%;
    font-weight: 400;

    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#drupal-bootstrap4-modal .modal-footer .webform-button--submit:hover,
#drupal-bootstrap4-modal .modal-footer .form-submit:hover,
#drupal-bootstrap4-modal .modal-footer .btn-primary:hover {
    background: #f2f2f2;
    color: #555;
    transform: translateY(-1px);
}

#drupal-bootstrap4-modal .modal-footer .webform-button--submit:active,
#drupal-bootstrap4-modal .modal-footer .form-submit:active,
#drupal-bootstrap4-modal .modal-footer .btn-primary:active {
    transform: translateY(0);
}

/* Если понадобится показывать кнопку внутри form, она тоже будет стилизована */
#drupal-bootstrap4-modal form .webform-button--submit,
#drupal-bootstrap4-modal form .form-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--modal-white);
    color: var(--modal-gray);
    font-size: 18px;
    line-height: 120%;
    font-weight: 400;
    cursor: pointer;
}

/* ================================
   Add to cart modal
   jQuery UI Drupal modal
================================ */

/* Затемнение фона */
.ui-widget-overlay {
    position: fixed;
    inset: 0;
    z-index: 100 !important;

    background: rgba(0, 0, 0, 0.52) !important;
    opacity: 1 !important;

    backdrop-filter: blur(4px);
}

/* Основная карточка */
.ui-dialog.ui-widget.ui-widget-content.ui-dialog-buttons[aria-describedby="drupal-modal"] {
    width: min(440px, calc(100vw - 30px)) !important;
    max-width: calc(100vw - 30px) !important;

    padding: 0 !important;
    border: 1px solid rgba(251, 251, 251, 0.28) !important;
    border-radius: 18px !important;

    background:
            linear-gradient(135deg, rgba(25, 25, 25, 0.92), rgba(5, 5, 5, 0.88)),
            rgba(0, 0, 0, 0.82) !important;

    color: var(--white, #fff) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45) !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Внутренний декоративный блик */
.ui-dialog.ui-widget.ui-widget-content.ui-dialog-buttons[aria-describedby="drupal-modal"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
            radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
            radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.08), transparent 30%);
}

/* Контент поверх декоративного слоя */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar,
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-content,
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane {
    position: relative;
    z-index: 1;
}

/* Header */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar {
    min-height: auto;
    padding: 30px 64px 10px 34px !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;

    color: var(--white, #fff) !important;
}

/* Заголовок */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-title {
    float: none !important;
    display: block !important;

    width: auto !important;
    margin: 0 !important;

    font-family: var(--second-family, inherit);
    font-size: 30px;
    line-height: 120%;
    font-weight: 500;

    color: var(--white, #fff) !important;
    white-space: normal !important;
}

/* Кнопка закрытия */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar-close {
    position: absolute !important;
    top: 22px !important;
    right: 24px !important;

    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(251, 251, 251, 0.32) !important;
    border-radius: 50% !important;
    background: rgba(251, 251, 251, 0.12) !important;

    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;

    opacity: 1 !important;
    box-shadow: none !important;
    cursor: pointer;

    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar-close::before,
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar-close::after {
    content: "";
    position: absolute;

    width: 16px;
    height: 1.5px;
    border-radius: 2px;

    background: var(--white, #fff);
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar-close::before {
    transform: rotate(45deg);
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar-close::after {
    transform: rotate(-45deg);
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar-close:hover {
    background: rgba(251, 251, 251, 0.2) !important;
    border-color: rgba(251, 251, 251, 0.52) !important;
    transform: rotate(90deg);
}

/* Убираем стандартную иконку jQuery UI */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar-close .ui-icon {
    display: none !important;
}

/* Body */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-content {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 12px 34px 4px !important;

    border: 0 !important;
    background: transparent !important;

    color: rgba(255, 255, 255, 0.88) !important;
    font-family: var(--font-family, inherit);
    font-size: 17px;
    line-height: 140%;

    overflow: visible !important;
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-content a {
    color: var(--white, #fff) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-content a:hover {
    color: #f2f2f2 !important;
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-content .form-actions {
    margin: 18px 0 0;
}

/* Footer */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane {
    margin: 0 !important;
    padding: 20px 34px 34px !important;

    border: 0 !important;
    background: transparent !important;
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonset {
    float: none !important;

    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;

    width: 100%;
    margin: 0 !important;
}

/* Кнопки */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane button {
    width: 100%;
    height: 50px;
    margin: 0 !important;
    padding: 0 22px !important;

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

    border-radius: 10px !important;

    font-family: var(--font-family, inherit);
    font-size: 18px !important;
    line-height: 120%;
    font-weight: 400;

    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;

    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

/* Основная кнопка */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane .button--primary,
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane button:first-child {
    border: none !important;
    background: var(--white, #fff) !important;
    color: var(--gray, #555) !important;
}

/* Вторичная кнопка */
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane .button--secondary,
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane button:nth-child(2) {
    border: 1px solid rgba(251, 251, 251, 0.5) !important;
    background: rgba(251, 251, 251, 0.12) !important;
    color: var(--white, #fff) !important;
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane button:hover {
    transform: translateY(-1px);
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane button:first-child:hover {
    background: #f2f2f2 !important;
    color: #555 !important;
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane button:nth-child(2):hover {
    background: rgba(251, 251, 251, 0.2) !important;
    border-color: rgba(251, 251, 251, 0.72) !important;
    color: var(--white, #fff) !important;
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane button:active {
    transform: translateY(0);
}

.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-buttonpane button:focus,
.ui-dialog[aria-describedby="drupal-modal"] .ui-dialog-titlebar-close:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important;
}

/* ===== Callback page feedback form ===== */

#block-vesta-theme-content {
    --feedback-white: var(--white, #fff);
    --feedback-gray: var(--gray, #555);
    --feedback-gray3: var(--gray3, #f3f3f3);

    position: relative;
}

/* Обёртка формы на странице */
#block-vesta-theme-content #webform-submission-callback-form-ajax {
    position: relative;
    overflow: hidden;

    max-width: 598px;
    margin: 60px auto;
    padding: 35px 34px;

    border-radius: 18px;
    border: 1px solid rgba(251, 251, 251, 0.24);

    background:
            linear-gradient(135deg, rgba(25, 25, 25, 0.92), rgba(5, 5, 5, 0.88)),
            rgba(0, 0, 0, 0.82);

    color: var(--feedback-white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

/* Декоративный блик */
#block-vesta-theme-content #webform-submission-callback-form-ajax::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
            radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
            radial-gradient(circle at 92% 20%, rgba(255, 255, 255, 0.08), transparent 30%);
}

/* Контент поверх декоративного слоя */
#block-vesta-theme-content #webform-submission-callback-form-ajax > * {
    position: relative;
    z-index: 1;
}

/* Сама форма */
#block-vesta-theme-content .webform-submission-callback-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#block-vesta-theme-content .webform-submission-callback-form .form-item,
#block-vesta-theme-content .webform-submission-callback-form .form-actions {
    margin: 0;
}

/* Поле вопроса, чекбокс и кнопка на всю ширину */
#block-vesta-theme-content .webform-submission-callback-form .form-item-message,
#block-vesta-theme-content .webform-submission-callback-form .form-item-privacy,
#block-vesta-theme-content .webform-submission-callback-form .form-actions,
#block-vesta-theme-content .webform-submission-callback-form > input[type="hidden"],
#block-vesta-theme-content .webform-submission-callback-form > .contextual {
    grid-column: 1 / -1;
}

/* Убираем лишнюю обёртку textarea от Drupal */
#block-vesta-theme-content .webform-submission-callback-form .form-textarea-wrapper {
    width: 100%;
}

/* Поля */
#block-vesta-theme-content .webform-submission-callback-form input.form-control,
#block-vesta-theme-content .webform-submission-callback-form textarea.form-control {
    width: 100%;
    height: 47px;
    padding: 14px 22px;

    border: 1px solid rgba(251, 251, 251, 0.5);
    border-radius: 10px;
    background: rgba(251, 251, 251, 0.15);

    color: var(--feedback-gray3);
    font-size: 16px;
    line-height: 120%;
    font-weight: 500;

    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#block-vesta-theme-content .webform-submission-callback-form textarea.form-control {
    height: 89px;
    min-height: 89px;
    max-height: 89px;
    padding-top: 12px;
    resize: none;
}

#block-vesta-theme-content .webform-submission-callback-form input.form-control::placeholder,
#block-vesta-theme-content .webform-submission-callback-form textarea.form-control::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

#block-vesta-theme-content .webform-submission-callback-form input.form-control:focus,
#block-vesta-theme-content .webform-submission-callback-form textarea.form-control:focus {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* Чекбокс и текст согласия */
#block-vesta-theme-content .webform-submission-callback-form .form-item-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

#block-vesta-theme-content .webform-submission-callback-form .form-item-privacy input[type="checkbox"].form-checkbox {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    border: 1px solid rgba(251, 251, 251, 0.5);
    border-radius: 4px;
    background-color: rgba(251, 251, 251, 0.15);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 9px;

    cursor: pointer;
}

#block-vesta-theme-content .webform-submission-callback-form .form-item-privacy input[type="checkbox"].form-checkbox:checked {
    background-color: rgba(251, 251, 251, 0.25);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.3 8L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#block-vesta-theme-content .webform-submission-callback-form .form-item-privacy input[type="checkbox"].form-checkbox:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

#block-vesta-theme-content .webform-submission-callback-form .form-item-privacy .description {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}

#block-vesta-theme-content .webform-submission-callback-form .webform-element-description {
    max-width: 430px;
    margin: 0;

    color: var(--feedback-white);
    font-size: 12px;
    line-height: 120%;
    font-weight: 400;
}

#block-vesta-theme-content .webform-submission-callback-form .webform-element-description a {
    color: var(--feedback-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Скрываем общий верхний блок ошибок */
#block-vesta-theme-content .webform-submission-callback-form > .alert,
#block-vesta-theme-content .webform-submission-callback-form .alert-error,
#block-vesta-theme-content .webform-submission-callback-form .alert-danger {
    display: none !important;
}

/* Скрываем текст ошибок под полями */
#block-vesta-theme-content .webform-submission-callback-form .form-item--error-message {
    display: none !important;
}

/* Подсветка незаполненных input и textarea */
#block-vesta-theme-content .webform-submission-callback-form .form-item--error input.form-control,
#block-vesta-theme-content .webform-submission-callback-form .form-item--error textarea.form-control,
#block-vesta-theme-content .webform-submission-callback-form input.form-control.error,
#block-vesta-theme-content .webform-submission-callback-form textarea.form-control.error {
    border-color: rgba(255, 80, 80, 0.95) !important;
    background: rgba(255, 80, 80, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.35) !important;
}

#block-vesta-theme-content .webform-submission-callback-form .form-item--error input.form-control::placeholder,
#block-vesta-theme-content .webform-submission-callback-form .form-item--error textarea.form-control::placeholder,
#block-vesta-theme-content .webform-submission-callback-form input.form-control.error::placeholder,
#block-vesta-theme-content .webform-submission-callback-form textarea.form-control.error::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

/* Подсветка чекбокса с ошибкой */
#block-vesta-theme-content .webform-submission-callback-form .form-item--error input[type="checkbox"].form-checkbox,
#block-vesta-theme-content .webform-submission-callback-form input[type="checkbox"].form-checkbox.error {
    border-color: rgba(255, 80, 80, 0.95) !important;
    background-color: rgba(255, 80, 80, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.35) !important;
}

/* При отмеченном чекбоксе возвращаем нормальную галочку */
#block-vesta-theme-content .webform-submission-callback-form input[type="checkbox"].form-checkbox.error:checked,
#block-vesta-theme-content .webform-submission-callback-form .form-item--error input[type="checkbox"].form-checkbox:checked {
    border-color: rgba(251, 251, 251, 0.5) !important;
    background-color: rgba(251, 251, 251, 0.25) !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.3 8L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 9px !important;
}

/* Кнопка */
#block-vesta-theme-content .webform-submission-callback-form .form-actions {
    margin-top: 5px;
}

#block-vesta-theme-content .webform-submission-callback-form .webform-button--submit,
#block-vesta-theme-content .webform-submission-callback-form .form-submit,
#block-vesta-theme-content .webform-submission-callback-form .btn-primary {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 10px;
    background: var(--feedback-white);

    color: var(--feedback-gray);
    font-size: 18px;
    line-height: 120%;
    font-weight: 400;

    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#block-vesta-theme-content .webform-submission-callback-form .webform-button--submit:hover,
#block-vesta-theme-content .webform-submission-callback-form .form-submit:hover,
#block-vesta-theme-content .webform-submission-callback-form .btn-primary:hover {
    background: #f2f2f2;
    color: #555;
    transform: translateY(-1px);
}

#block-vesta-theme-content .webform-submission-callback-form .webform-button--submit:active,
#block-vesta-theme-content .webform-submission-callback-form .form-submit:active,
#block-vesta-theme-content .webform-submission-callback-form .btn-primary:active {
    transform: translateY(0);
}

/* ================================
   CHECKOUT REVIEW LINKS
   Редактировать / Назад
================================ */

/* Заголовок блока на review-шаге: текст + ссылка редактирования */
#block-vesta-theme-content .commerce-checkout-flow .fieldset-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

/* Ссылка "Редактировать" */
#block-vesta-theme-content .commerce-checkout-flow .checkout-review-edit-link {
    flex: 0 0 auto;
    margin-left: auto;
    font-family: var(--font-family);
}

#block-vesta-theme-content .commerce-checkout-flow .checkout-review-edit-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 12px;
    border: 1px solid rgba(112, 112, 112, 0.24);
    border-radius: 8px;
    background: transparent;
    color: var(--gray);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    line-height: 120%;
    text-decoration: none;
    transition:
            color 0.2s ease,
            border-color 0.2s ease,
            background-color 0.2s ease;
}

#block-vesta-theme-content .commerce-checkout-flow .checkout-review-edit-link a:hover {
    border-color: var(--green);
    background: rgba(129, 145, 113, 0.08);
    color: var(--green);
    text-decoration: none;
}

/* Нижние кнопки review-шагa */
#block-vesta-theme-content .commerce-checkout-flow #edit-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

/* Ссылка "Назад" как вторичная кнопка */
#block-vesta-theme-content .commerce-checkout-flow .link--previous {
    order: -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 50px;
    padding: 0 24px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    background: transparent;
    color: var(--gray);
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 120%;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}

#block-vesta-theme-content .commerce-checkout-flow .link--previous:hover {
    border-color: var(--green);
    background: rgba(129, 145, 113, 0.08);
    color: var(--green);
    text-decoration: none;
    transform: translateY(-1px);
}

#block-vesta-theme-content .commerce-checkout-flow .link--previous:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 145, 113, 0.16);
}

/* ================================
   SEARCH PAGE
   Страница результатов поиска
================================ */

#block-vesta-theme-content .search-api-page-block-form-search {
    position: relative;
    margin: 0 auto 42px;
    padding: 34px 38px;
    border-radius: 24px;
    background: #f3f5f0;
    box-shadow: 0 10px 32px rgba(27, 33, 27, 0.06);
    font-family: var(--font-family);
}

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

#block-vesta-theme-content .search-api-page-block-form-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

#block-vesta-theme-content .search-api-page-block-form-search::before {
    grid-column: 1 / -1;
}

#block-vesta-theme-content .search-api-page-block-form-search input.form-search {
    width: 100%;
    height: 50px;
    padding: 0 18px;

    border: 1px solid var(--gray2);
    border-radius: 10px;
    background: var(--white);

    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    color: var(--black);

    box-shadow: none;
    outline: none;

    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;
}

#block-vesta-theme-content .search-api-page-block-form-search input.form-search::placeholder {
    color: var(--gray);
}

#block-vesta-theme-content .search-api-page-block-form-search input.form-search:focus {
    border-color: var(--green);
    background: #fbfcf8;
    box-shadow: 0 0 0 3px rgba(129, 145, 113, 0.14);
}

#block-vesta-theme-content .search-api-page-block-form-search .form-actions {
    margin: 0;
}

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 140px;
    height: 50px;
    padding: 0 26px;

    border: 0;
    border-radius: 10px;
    background: var(--gray);
    color: var(--white);

    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 120%;

    box-shadow: none;
    cursor: pointer;

    transition:
            background-color 0.2s ease,
            transform 0.2s ease;
}

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

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 145, 113, 0.18);
}


/* Заголовок "Результаты поиска" */

#block-vesta-theme-content .search-api-page-block-form-search ~ h2 {
    margin: 0 0 12px;

    font-family: var(--second-family);
    font-weight: 500;
    font-size: 36px;
    line-height: 130%;
    color: var(--black);
}


/* Текст "1 результат найден" */

#block-vesta-theme-content .search-api-page-block-form-search ~ h2 + p {
    margin: 0 0 24px;

    font-family: var(--font-family);
    font-size: 16px;
    line-height: 140%;
    color: var(--gray);
}


/* Карточка результата */

#block-vesta-theme-content .search-api-page-block-form-search ~ h3 {
    position: relative;

    margin: 0 0 18px;
    padding: 24px 28px;

    border: 1px solid var(--gray2);
    border-radius: 20px;
    background: var(--white);

    box-shadow: 0 8px 24px rgba(27, 33, 27, 0.05);

    transition:
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease;
}

#block-vesta-theme-content .search-api-page-block-form-search ~ h3:hover {
    border-color: var(--green);
    box-shadow: 0 14px 34px rgba(27, 33, 27, 0.09);
    transform: translateY(-3px);
}

#block-vesta-theme-content .search-api-page-block-form-search ~ h3 a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-family: var(--second-family);
    font-weight: 500;
    font-size: 26px;
    line-height: 130%;
    color: var(--black);
    text-decoration: none;

    transition: color 0.2s ease;
}

#block-vesta-theme-content .search-api-page-block-form-search ~ h3 a::after {
    content: "";
    width: 8px;
    height: 8px;

    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;

    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

#block-vesta-theme-content .search-api-page-block-form-search ~ h3:hover a {
    color: var(--green);
}

#block-vesta-theme-content .search-api-page-block-form-search ~ h3:hover a::after {
    transform: translateX(4px) rotate(-45deg);
}


/* Пустые описания после результата */

#block-vesta-theme-content .search-api-page-block-form-search ~ h3 + p:empty {
    display: none;
}


/* Если результатов нет */

#block-vesta-theme-content .search-api-page-block-form-search ~ .search-results-empty,
#block-vesta-theme-content .search-api-page-block-form-search ~ .view-empty {
    padding: 28px 32px;
    border-radius: 20px;
    background: #f3f5f0;
    color: var(--black);
    font-size: 16px;
    line-height: 150%;
}


/* Адаптив */



/* Мобильная версия */

/* PRODUCT PAGE STYLES*/


/* *** ADAPTIVE *** */




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

*,
*::before,
*::after {
    box-sizing: border-box;
}
/* ========================================================
   CONSOLIDATED RESPONSIVE LAYER
   Breakpoints: 1399 / 1199 / 991 / 767 / 565
   Весь адаптив собран в одном месте.
   ======================================================== */

@media screen and (max-width: 1399px) {
    /* Header */
    #header.site-header .header-info__inner {
        gap: 30px;
    }

    #header.site-header .header-top-nav .menu--main > ul.nav {
        gap: 20px;
    }

    #header.site-header .header-bottom-nav .menu--navigationbuttom > ul.navbar-nav {
        gap: 42px;
    }

    /* Main slider */
    #slider-block .slick-prev {
        left: 10px;
    }

    #slider-block .slick-next {
        right: 10px;
    }

    #slider-block .field--name-field-slide-title p {
        font-size: 42px;
    }

    /* Catalog / products */
    .catalog_block .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        gap: 24px;
    }

    .products_block .view-content {
        grid-template-columns: repeat(4, 270px);
        gap: 24px;
        width: 100%;
    }

    .view-id-tovary .view-content,
    .view-id-tovary.view-display-id-page_1 .view-content {
        gap: 13px;
        justify-content: center;
    }

    /* About */
    .about_top {
        grid-template-columns: 520px 1fr;
    }

    .about_top > .field--name-field-about-image,
    .about_top > .field--name-field-about-image img {
        width: 560px;
        height: 454px;
    }

    .about_buttom .field--name-field-about-advantages {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 100%;
    }

    .about_buttom .paragraph--type--advantages {
        width: 100%;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 235px 160px 190px minmax(220px, 1fr);
        column-gap: 46px;
    }

    .footer-bottom {
        column-gap: 80px;
    }
}

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

    .catalog_block .views-row:last-child {
        display: none;
    }

    .products_block .views-row:last-child {
        display: none;
    }

    /* Header */
    #header.site-header .header-info__inner {
        gap: 22px;
        padding-left: 12px;
        padding-right: 12px;
    }

    #header.site-header .header-main__inner {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    #header.site-header .header-top-nav .menu--main > ul.nav {
        gap: 14px;
    }

    #header.site-header .header-top-nav .menu--main > ul.nav > li.nav-item > a.nav-link {
        font-size: 14px;
    }

    #header.site-header .header-bottom-nav .menu--navigationbuttom > ul.navbar-nav {
        gap: 26px;
    }

    #header.site-header .header-bottom-nav .navbar-nav > .nav-item > a.nav-link {
        font-size: 16px;
    }

    #header.site-header .header-callback .field__item > a.btn {
        min-width: 160px;
        height: 42px;
        padding: 10px 14px;
        font-size: 16px;
    }

    #header.site-header .logo > a > img {
        max-width: 180px;
    }

    /* Common titles */
    .catalog_block .block-title,
    #block-vesta-theme-page-title h1,
    .products_block .block-title,
    .photogallery_block .block-title,
    .about_top > .field--name-field-about-title {
        font-size: 42px;
    }

    /* Main slider */
    #slider-block,
    .slider-block {
        border-radius: 0 0 20px 20px;
    }

    #slider-block .field--name-field-slide-title p {
        font-size: 40px;
    }

    #slider-block .field--name-body p {
        font-size: 20px;
    }

    #slider-block .slick-arrow,
    #slider-block .slick-arrow::before,
    #slider-block .slick-arrow::after {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        max-width: 50px;
        max-height: 50px;
        background-size: 50px 50px;
    }

    /* Catalog */
    .catalog_block {
        padding: 52px 0 90px;
    }

    .catalog_block .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    /* About */
    .about_top {
        grid-template-columns: minmax(0, 1fr) 430px;
        padding: 48px 0 58px;
    }

    .about_top > .field--name-field-about-text {
        max-width: 520px;
        font-size: 18px;
    }

    .about_top > .field--name-field-about-image {
        width: 450px;
        height: 365px;
        margin-top: -62px;
    }

    .about_top > .field--name-field-about-image img {
        width: 450px;
        height: 365px;
    }

    .about_buttom .field--name-field-about-advantages {
        gap: 16px;
    }

    .about_buttom .paragraph--type--advantages {
        min-height: 124px;
    }

    /* Product cards */
    .products_block {
        padding-bottom: 55px;
    }

    .products_block .view-content,
    .view-id-tovary .view-content,
    .view-id-tovary.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(3, 270px);
        gap: 30px;
        width: 100%;
        justify-content: center;
    }

    .products_block .block-views-blocktovary-block-2 {
        width: 100%;
    }

    /* Feedback */
    .feedback_block > .container {
        min-height: 440px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 245px 1fr 1fr;
        gap: 34px 46px;
    }

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

    .footer-bottom {
        grid-template-columns: repeat(3, auto);
        column-gap: 44px;
        justify-content: start;
    }

    /* Contacts */
    .page-contacts-wrapper {
        grid-template-columns: 1fr 1.3fr;
        gap: 32px;
        max-width: 100%;
    }

    /* Product page */
    article.product-view-full {
        grid-template-columns: minmax(0, 480px) minmax(300px, 1fr);
        gap: 20px 32px;
    }

    article.product-view-full .current-slide .element {
        height: 390px;
    }

    /* Galleries */
    .view-gallarys.view-display-id-page_1 .view-content {
        gap: 22px;
    }

    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery {
        gap: 18px;
    }

    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item {
        height: 230px;
    }

    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(1),
    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(6n) {
        height: 478px;
    }

    /* Checkout */
    #block-vesta-theme-content .layout-checkout-form,
    #block-vesta-theme-content .commerce-checkout-flow .layout-checkout-form {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 350px);
        gap: 24px;
    }
}

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

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

    .catalog_block .views-row:nth-child(3) {
        display: none;
    }

    .products_block .views-row:nth-child(3) {
        display: none;
    }

    #offcanvasNav {
        width: min(390px, 88vw);
        background: var(--white);
        color: var(--black);
        border: 0;
        border-radius: 0 24px 24px 0;
        box-shadow: 14px 0 40px rgba(27, 33, 27, 0.16);
        overflow: hidden;
    }

    #offcanvasNav,
    #offcanvasNav * {
        box-sizing: border-box;
    }

    #offcanvasNav .contextual {
        display: none !important;
    }

    #offcanvasNav .offcanvas-header {
        min-height: 76px;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(112, 112, 112, 0.14);
        background: var(--white);
    }

    #offcanvasNav .offcanvas-header .logo {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    #offcanvasNav .offcanvas-header .logo a {
        display: inline-flex;
        align-items: center;
        line-height: 0;
        text-decoration: none;
    }

    #offcanvasNav .offcanvas-header .logo img {
        display: block;
        width: auto;
        height: auto;
        max-width: 155px;
        max-height: 44px;
        object-fit: contain;
    }

    #offcanvasNav .btn-close {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border-radius: 12px;
        background-color: #f3f5f0;
        background-size: 13px;
        opacity: 1;
        box-shadow: none;
        transition:
                background-color 0.2s ease,
                transform 0.2s ease;
    }

    #offcanvasNav .btn-close:hover {
        background-color: var(--green2);
        transform: rotate(90deg);
    }

    #offcanvasNav .offcanvas-body {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 18px 20px 28px !important;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--green2) transparent;
    }

    #offcanvasNav .offcanvas-body::-webkit-scrollbar {
        width: 4px;
    }

    #offcanvasNav .offcanvas-body::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: var(--green2);
    }

    /* Search */
    #offcanvasNav .region-search,
    #offcanvasNav .search-api-page-block-form-search,
    #offcanvasNav .search-form {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #offcanvasNav .search-form form {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 76px;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #offcanvasNav .search-form .form-item,
    #offcanvasNav .search-form .form-actions {
        margin: 0;
    }

    #offcanvasNav .search-form input.form-search {
        width: 100%;
        height: 46px;
        padding: 0 15px;
        border: 1px solid rgba(129, 145, 113, 0.24);
        border-radius: 12px;
        background: #f3f5f0;
        color: var(--black);
        font-family: var(--font-family);
        font-size: 15px;
        line-height: 120%;
        box-shadow: none;
        outline: none;
    }

    #offcanvasNav .search-form input.form-search::placeholder {
        color: rgba(33, 38, 31, 0.55);
    }

    #offcanvasNav .search-form input.form-search:focus {
        border-color: var(--green);
        background: #fbfcf8;
        box-shadow: 0 0 0 3px rgba(129, 145, 113, 0.14);
    }

    #offcanvasNav .search-form .search-form__submit {
        width: 76px;
        height: 46px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: var(--gray);
        color: var(--white);
        font-family: var(--font-family);
        font-size: 14px;
        font-weight: 400;
        line-height: 120%;
        box-shadow: none;
        cursor: pointer;
        transition:
                background-color 0.2s ease,
                transform 0.2s ease;
    }

    #offcanvasNav .search-form .search-form__submit:hover {
        background: var(--green);
        color: var(--white);
        transform: translateY(-1px);
    }

    /* Section titles */
    #offcanvasNav .menu--main::before,
    #offcanvasNav .menu--navigationbuttom::before {
        display: block;
        margin: 0 0 10px;
        font-family: var(--second-family);
        font-size: 24px;
        font-weight: 500;
        line-height: 130%;
        color: var(--black);
    }

    #offcanvasNav .menu--main::before {
        content: "Меню";
    }

    #offcanvasNav .menu--navigationbuttom::before {
        content: "Каталог";
    }

    /* Navigation common */
    #offcanvasNav .region-navigation,
    #offcanvasNav .region-navigation-buttom,
    #offcanvasNav nav,
    #offcanvasNav nav .block,
    #offcanvasNav nav .region {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #offcanvasNav ul.nav,
    #offcanvasNav ul.navbar-nav,
    #offcanvasNav .menu--navigationbuttom ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #offcanvasNav li.nav-item {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #offcanvasNav a.nav-link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: 12px 14px;
        border: 1px solid rgba(129, 145, 113, 0.18);
        border-radius: 14px;
        background: #f3f5f0;
        color: var(--black);
        font-family: var(--font-family);
        font-size: 16px;
        font-weight: 400;
        line-height: 120%;
        text-decoration: none;
        white-space: normal;
        box-shadow: none;
        transition:
                background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
    }

    #offcanvasNav a.nav-link:hover,
    #offcanvasNav a.nav-link.is-active {
        border-color: var(--green);
        background: var(--green);
        color: var(--white);
        text-decoration: none;
        transform: translateX(3px);
    }

    /* Нижняя навигация / каталог */
    #offcanvasNav .menu--navigationbuttom {
        padding-top: 2px;
    }

    #offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item > a.nav-link {
        font-family: var(--second-family);
        font-size: 18px;
        font-weight: 500;
        line-height: 130%;
        background: #fbfcf8;
    }

    /*#offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item > a.dropdown-toggle::after {*/
    /*    content: "";*/
    /*    flex: 0 0 10px;*/
    /*    width: 10px;*/
    /*    height: 6px;*/
    /*    margin-left: 12px;*/
    /*    border: 0 !important;*/
    /*    background: url("/sites/all/themes/vesta_theme/image/arrow-bottom.svg") center / contain no-repeat;*/
    /*    transition: transform 0.2s ease;*/
    /*    opacity: 0.75;*/
    /*}*/

    .dropdown-toggle::after {
        display: none;
    }

    #offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item:hover > a.dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* Подменю каталога */
    #offcanvasNav .menu--navigationbuttom li.nav-item > ul {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 7px 0 4px;
        padding: 0 0 0 12px;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        list-style: none;
    }

    #offcanvasNav .menu--navigationbuttom li.nav-item > ul > li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #offcanvasNav .menu--navigationbuttom li.nav-item > ul > li > a {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: 10px 12px 10px 16px;
        border-left: 2px solid var(--green2);
        border-radius: 0 12px 12px 0;
        background: rgba(243, 245, 240, 0.72);
        color: var(--gray);
        font-family: var(--font-family);
        font-size: 14px;
        font-weight: 400;
        line-height: 130%;
        text-decoration: none;
        white-space: normal;
        transition:
                background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
    }

    #offcanvasNav .menu--navigationbuttom li.nav-item > ul > li > a:hover {
        border-color: var(--green);
        background: #f3f5f0;
        color: var(--green);
        text-decoration: none;
    }

    /* Contacts */
    #offcanvasNav .contact-item {
        width: 100%;
        margin: 0;
        padding: 16px;
        border: 1px solid rgba(129, 145, 113, 0.18);
        border-radius: 16px;
        background: #f3f5f0;
    }

    #offcanvasNav .contact-item-label {
        margin: 0 0 7px;
        color: var(--gray);
        font-family: var(--font-family);
        font-size: 13px;
        font-weight: 400;
        line-height: 120%;
    }

    #offcanvasNav .contact-item-el,
    #offcanvasNav .contact-item-el a {
        color: var(--black);
        font-family: var(--font-family);
        font-size: 16px;
        font-weight: 400;
        line-height: 140%;
        text-decoration: none;
    }

    #offcanvasNav .contact-item-el a:hover {
        color: var(--green);
    }

    /* Socials */
    #offcanvasNav > .offcanvas-body > .contact-item-label.w-100 {
        margin: 0 0 -10px;
        color: var(--gray);
        font-size: 13px;
        line-height: 120%;
    }

    #offcanvasNav .msngrs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

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

    #offcanvasNav .msngrs .item a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        height: 38px;
        padding: 0 14px;
        border-radius: 12px;
        background: var(--gray);
        color: var(--white);
        font-family: var(--font-family);
        font-size: 14px;
        font-weight: 500;
        line-height: 120%;
        text-decoration: none;
        transition:
                background-color 0.2s ease,
                transform 0.2s ease;
    }

    #offcanvasNav .msngrs .item a:hover {
        background: var(--green);
        color: var(--white);
        transform: translateY(-1px);
    }

    /* Backdrop */
    .offcanvas-backdrop.show {
        opacity: 0.42;
        background-color: #21261f;
    }

    /* ================================
       OFFCANVAS FIXES
       close position / softer hover / readable active
    ================================ */

    #offcanvasNav .offcanvas-header {
        position: relative;
        align-items: center;
        padding: 16px 68px 16px 20px;
    }

    #offcanvasNav .offcanvas-header .logo {
        max-width: 100%;
    }

    #offcanvasNav .btn-close {
        position: absolute;
        top: 14px;
        right: 14px;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin: 0;
        border-radius: 12px;
        background-color: #f3f5f0;
        background-size: 12px;
        opacity: 1;
        box-shadow: none;
        transform: none;
        transition:
                background-color 0.28s ease,
                box-shadow 0.28s ease,
                transform 0.28s ease;
    }

    #offcanvasNav .btn-close:hover {
        background-color: var(--green2);
        box-shadow: 0 4px 14px rgba(27, 33, 27, 0.08);
        transform: none;
    }

    #offcanvasNav .btn-close:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(129, 145, 113, 0.18);
    }

    /* Смягчаем резкие движения */
    #offcanvasNav a.nav-link,
    #offcanvasNav .search-form .search-form__submit,
    #offcanvasNav .msngrs .item a,
    #offcanvasNav .menu--navigationbuttom li.nav-item > ul > li > a {
        transition:
                background-color 0.28s ease,
                border-color 0.28s ease,
                color 0.28s ease,
                box-shadow 0.28s ease,
                transform 0.28s ease;
    }

    /* Hover больше не красит текст в белый */
    #offcanvasNav a.nav-link:hover {
        border-color: rgba(129, 145, 113, 0.42);
        background: var(--green2);
        color: var(--black);
        box-shadow: 0 4px 14px rgba(27, 33, 27, 0.06);
        transform: translateX(1px);
    }

    /* Активный пункт: читаемый, без белого текста */
    #offcanvasNav a.nav-link.is-active,
    #offcanvasNav a.nav-link[aria-current="page"] {
        border-color: var(--green);
        background: #eef3e8;
        color: var(--green);
        box-shadow: inset 3px 0 0 var(--green);
        transform: none;
    }

    #offcanvasNav a.nav-link.is-active:hover,
    #offcanvasNav a.nav-link[aria-current="page"]:hover {
        background: var(--green2);
        color: var(--black);
        transform: translateX(1px);
    }

    /* Каталог: hover тоже без белого текста */
    #offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item > a.nav-link:hover {
        border-color: rgba(129, 145, 113, 0.42);
        background: var(--green2);
        color: var(--black);
    }

    #offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item > a.nav-link.is-active,
    #offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item > a.nav-link[aria-current="page"] {
        border-color: var(--green);
        background: #eef3e8;
        color: var(--green);
    }

    #offcanvasNav .menu--navigationbuttom li.nav-item > ul > li > a:hover {
        border-color: var(--green);
        background: #eef3e8;
        color: var(--green);
        transform: none;
    }

    /* Кнопки поиска и соцсетей: оставляем контраст, но убираем резкий прыжок */
    #offcanvasNav .search-form .search-form__submit:hover,
    #offcanvasNav .msngrs .item a:hover {
        background: var(--green);
        color: var(--white);
        transform: none;
        box-shadow: 0 4px 14px rgba(27, 33, 27, 0.1);
    }

    /* Стрелка dropdown — мягче */
    /*#offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item > a.dropdown-toggle::after {*/
    /*    transition:*/
    /*            transform 0.32s ease,*/
    /*            opacity 0.28s ease;*/
    /*}*/

    #offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item:hover > a.dropdown-toggle::after {
        transform: rotate(180deg);
        opacity: 1;
    }


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

    #header-mob {
        top: 0;
        width: 100%;
        min-height: 64px;
        padding: 9px 15px;
        background: var(--white);
        color: var(--black);
        border-bottom: 1px solid rgba(112, 112, 112, 0.14);
        box-shadow: 0 6px 22px rgba(27, 33, 27, 0.08);
        z-index: 100;
        box-sizing: border-box;
    }

    #header-mob,
    #header-mob * {
        box-sizing: border-box;
    }

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

    #header-mob a {
        color: var(--black);
        text-decoration: none;
    }

    #header-mob .col-nav,
    #header-mob .col-cart {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #header-mob .col-nav > a,
    #header-mob .cart-block--link__expand {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: #f3f5f0;
        border: 1px solid rgba(129, 145, 113, 0.18);
        transition:
                background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
    }

    #header-mob .col-nav > a:hover,
    #header-mob .cart-block--link__expand:hover {
        background: var(--green2);
        border-color: rgba(129, 145, 113, 0.35);
        transform: translateY(-1px);
    }

    #header-mob .col-nav img {
        width: 21px;
        height: 21px;
        display: block;
        object-fit: contain;
    }

    #header-mob .col-logo {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
    }

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

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

    #header-mob .col-phone {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: 8px;
    }

    #header-mob .col-phone .contact-item {
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    #header-mob .col-phone a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 8px 12px;
        border-radius: 999px;
        background: #f3f5f0;
        border: 1px solid rgba(129, 145, 113, 0.18);
        color: var(--black);
        font-family: var(--font-family);
        font-size: 14px;
        font-weight: 400;
        line-height: 120%;
        white-space: nowrap;
        transition:
                background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
    }

    #header-mob .col-phone a:hover {
        background: var(--green);
        border-color: var(--green);
        color: var(--white);
    }

    #header-mob .region-cart,
    #header-mob .block-commerce-cart,
    #header-mob .cart--cart-block,
    #header-mob .cart-block--summary {
        margin: 0;
        padding: 0;
        line-height: 0;
    }

    #header-mob .cart-block--summary__icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }

    #header-mob .cart-block--summary__icon img {
        display: block;
        width: 25px;
        height: 25px;
        object-fit: contain;
        opacity: 0.78;
    }

    #header-mob .cart-block--summary__count {
        position: absolute;
        top: -10px;
        right: -12px;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--white);
        border-radius: 50px;
        background: var(--green);
        color: var(--white);
        font-family: var(--font-family);
        font-size: 12px;
        font-weight: 500;
        line-height: 1;
        box-sizing: border-box;
    }

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

    /* Offcanvas menu in the same visual system */
    .offcanvas {
        --bs-offcanvas-bg: var(--white);
        color: var(--black);
        border-right: 0;
        box-shadow: 10px 0 35px rgba(27, 33, 27, 0.12);
    }

    .offcanvas .offcanvas-header {
        padding: 18px 20px;
        border-bottom: 1px solid rgba(112, 112, 112, 0.14);
    }

    .offcanvas .offcanvas-title {
        margin: 0;
        color: var(--black);
        font-family: var(--second-family);
        font-size: 24px;
        font-weight: 500;
        line-height: 130%;
        text-transform: none;
    }

    .offcanvas .btn-close {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 12px;
        background-color: #f3f5f0;
        background-size: 13px;
        opacity: 1;
        box-shadow: none;
    }

    .offcanvas .offcanvas-body {
        padding: 18px 20px 24px;
    }

    /* Header / offcanvas */
    #header.site-header > .header-info,
    #header.site-header > .header-bottom {
        display: none;
    }

    #header.site-header > .header-main {
        height: auto;
        border-bottom: 1px solid #dedede;
    }

    #header.site-header .header-main__inner {
        height: auto;
        min-height: 64px;
        grid-template-columns: 1fr auto 1fr;
        padding-top: 0;
    }

    #header.site-header .header-main__left,
    #header.site-header .header-main__right {
        gap: 12px;
    }

    #header.site-header .header-top-nav {
        display: none;
    }

    #header.site-header .header-callback .field__item > a.btn {
        min-width: 140px;
        height: 40px;
        font-size: 15px;
    }

    #header.site-header .logo > a > img {
        max-width: 165px;
        max-height: 48px;
    }

    #offcanvasNav .nav .dropdown-menu {
        display: none;
        position: static;
        border: 0;
        background: transparent;
        padding: 10px 0;
        border-bottom: 1px solid #bdbdbd;
        box-shadow: none;
    }

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

    /* Slider */
    #slider-block .view-content,
    #slider-block .slick-list,
    #slider-block .slick-track,
    #slider-block .slick-slide,
    #slider-block .slick-slide > div,
    #slider-block .node--type-slide {
        height: 460px;
    }

    #slider-block .field--name-field-slide-title {
        max-width: 520px;
    }

    #slider-block .field--name-field-slide-title p {
        font-size: 36px;
    }

    #slider-block .field--name-body {
        max-width: 520px;
    }

    #slider-block .field--name-body p {
        font-size: 18px;
    }

    /* Catalog */
    .catalog_block {
        padding: 44px 0 74px;
    }

    .catalog_block .block-title,
    #block-vesta-theme-page-title h1,
    .products_block .block-title,
    .photogallery_block .block-title,
    .about_top > .field--name-field-about-title {
        font-size: 38px;
    }

    .catalog_block .block-title,
    #block-vesta-theme-page-title h1 {
        margin-bottom: 36px;
    }

    .catalog_block .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    /* About */
    .about_top {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 42px 0 52px;
    }

    .about_top > .field--name-field-about-title,
    .about_top > .field--name-field-about-text,
    .about_top > .field--name-field-about-btn,
    .about_top > .field--name-field-about-image {
        grid-column: auto;
        grid-row: auto;
    }

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

    .about_top > .field--name-field-about-image {
        align-self: center;
        width: min(100%, 520px);
        height: auto;
        margin-top: 10px;
    }

    .about_top > .field--name-field-about-image img {
        width: 100%;
        height: auto;
        max-width: 520px;
    }

    .about_buttom {
        margin-top: -15px;
    }

    .about_buttom .field--name-field-about-advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Product cards */
    .products_block {
        padding-bottom: 82px;
    }

    .products_block .more-link {
        top: 0;
    }

    .products_block .view-content,
    .view-id-tovary .view-content,
    .view-id-tovary.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(2, minmax(0, 270px));
        gap: 158px;
    }

    /* Feedback */
    .feedback_block > .container {
        min-height: 430px;
    }

    .feedback_block .field--name-field-feedback-title {
        font-size: 31px;
    }

    /* Footer */
    .site-footer .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 34px 42px;
    }

    .footer-brand {
        width: auto;
    }

    .footer-contacts {
        grid-column: auto;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 30px;
    }

    /* Gallery / contacts */
    .photogallery_block .item-list ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .view-gallarys.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-map {
        min-height: 360px;
    }

    /* Product page */
    article.product-view-full {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "info"
            "form"
            "description";
        gap: 20px;
        margin-top: 46px;
        margin-bottom: 70px;
    }

    article.product-view-full .product_left {
        max-width: 620px;
        margin: 0 auto;
    }

    article.product-view-full .product-teaser,
    article.product-view-full .product_right {
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
    }

    article.product-view-full .current-slide .element {
        height: 440px;
    }

    article.product-view-full .product_buttom {
        padding: 28px 30px;
    }

    /* Photogallery full */
    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item,
    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(1),
    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(6n),
    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(4n) {
        grid-column: auto;
        grid-row: auto;
        height: 260px;
    }

    /* Cart */
    #block-vesta-theme-content .cart.cart-form {
        margin-bottom: 80px;
    }

    #block-vesta-theme-content .cart.cart-form .views-form form {
        padding: 24px;
        border-radius: 20px;
    }

    #block-vesta-theme-content .cart.cart-form .table-responsive {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    #block-vesta-theme-content .cart.cart-form table.views-table {
        min-width: 760px;
    }

    #block-vesta-theme-content .cart.cart-form .field--name-title {
        font-size: 20px;
    }

    /* Checkout */
    #block-vesta-theme-content .layout-checkout-form,
    #block-vesta-theme-content .commerce-checkout-flow .layout-checkout-form {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "secondary"
            "footer";
        gap: 22px;
    }

    #block-vesta-theme-content .layout-region-checkout-main,
    #block-vesta-theme-content .layout-region-checkout-secondary {
        padding: 24px;
        border-radius: 20px;
    }

    #block-vesta-theme-content .commerce-checkout-flow .layout-region-checkout-secondary {
        min-width: 0;
        width: 100% !important;
    }
}

@media screen and (max-width: 767px) {
    /* Common */
    #block-vesta-theme-page-title {
        padding-top: 42px;
    }

    .catalog_block .block-title,
    #block-vesta-theme-page-title h1,
    .products_block .block-title,
    .photogallery_block .block-title,
    .about_top > .field--name-field-about-title {
        font-size: 34px;
    }

    /* Header */
    #header.site-header .header-main__inner {
        grid-template-columns: 1fr auto 1fr;
        min-height: 58px;
    }

    #header.site-header .header-callback {
        display: none;
    }

    #header.site-header .logo > a > img {
        max-width: 148px;
        max-height: 42px;
    }

    #scrollToTop {
        right: 20px;
        bottom: 94px;
        width: 42px;
        height: 42px;
    }

    /* Slider */
    #slider-block,
    .slider-block {
        border-radius: 0 0 18px 18px;
    }

    #slider-block .view-content,
    #slider-block .slick-list,
    #slider-block .slick-track,
    #slider-block .slick-slide,
    #slider-block .slick-slide > div,
    #slider-block .node--type-slide {
        height: 420px;
    }

    #slider-block .field--name-field-slide-title {
        margin-bottom: 14px;
    }

    #slider-block .field--name-field-slide-title p {
        font-size: 31px;
    }

    #slider-block .field--name-body {
        margin-bottom: 22px;
    }

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

    #slider-block .field--name-field-slide-link a {
        min-width: 175px;
        height: 46px;
        padding: 12px 18px;
        font-size: 16px;
    }

    #slider-block .slick-arrow,
    #slider-block .slick-arrow::before,
    #slider-block .slick-arrow::after {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
        background-size: 40px 40px;
    }

    #slider-block .slick-dots {
        bottom: 12px;
        gap: 8px;
    }

    #slider-block .slick-dots li,
    #slider-block .slick-dots li.slick-active button {
        width: 24px;
        height: 24px;
    }

    #slider-block .slick-dots button {
        width: 17px;
        height: 17px;
    }

    #slider-block .slick-dots button::after {
        width: 10px;
        height: 10px;
    }

    /* Catalog */
    .catalog_block {
        padding: 38px 0 60px;
    }

    .catalog_block .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .catalog_block .field--name-taxonomy-term-title a,
    #block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title a {
        font-size: 18px;
    }

    /* About */
    .about_top {
        padding: 36px 0 42px;
    }

    .about_top::before {
        bottom: -18px;
    }

    .about_top > .field--name-field-about-text {
        font-size: 17px;
    }

    .about_top > .field--name-field-about-btn a {
        height: 46px;
        font-size: 16px;
    }

    .about_buttom .field--name-field-about-advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .about_buttom .paragraph--type--advantages {
        border-radius: 16px;
        min-height: 118px;
    }

    .about_buttom .field--name-field-advantages-text {
        font-size: 16px;
    }

    /* Products */
    .products_block {
        padding-bottom: 10px;
    }

    .products_block .block-title {
        margin-bottom: 88px;
    }

    .products_block .more-link {
        top: 58px;
        left: 0;
        right: auto;
    }

    .products_block .more-link a {
        width: auto;
        min-width: 185px;
        height: 46px;
        padding: 12px 18px;
        font-size: 16px;
    }

    .products_block .view-content,
    .view-id-tovary .view-content,
    .view-id-tovary.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .products_block .views-row,
    .products_block .commerce-product--view-mode-teaser,
    .view-id-tovary .commerce-product--view-mode-teaser,
    .view-id-tovary.view-display-id-page_1 .commerce-product--view-mode-teaser,
    .view-id-tovary.view-display-id-page_1 .views-row {
        width: 100%;
    }

    .products_block .field--name-field-image-product-view,
    .products_block .field--name-field-image-product-view img,
    .view-id-tovary .field--name-field-image-product-view,
    .view-id-tovary.view-display-id-page_1 .field--name-field-image-product-view,
    .view-id-tovary.view-display-id-page_1 .field--name-field-image-product-view img {
        width: 100%;
    }

    .products_block .product_btn,
    .view-id-tovary .product_btn,
    .view-id-tovary.view-display-id-page_1 .product_btn {
        gap: 14px;
        margin: 16px;
        flex-wrap: wrap;
    }

    /* Feedback */
    .feedback_block {
        min-height: 0;
    }

    .feedback_block > .container {
        min-height: 0;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .feedback_block .region-feedback,
    .feedback_block form {
        max-width: 100%;
    }

    .feedback_block form {
        grid-template-columns: 1fr;
    }

    .feedback_block .field--name-field-feedback-title {
        font-size: 28px;
    }

    .feedback_block .form-item-privacy {
        align-items: flex-start;
    }

    /* Footer */
    .site-footer {
        padding-top: 34px;
    }

    .footer-top {
        gap: 26px;
    }

    .footer-logo img {
        width: 200px;
        max-width: 200px;
    }

    .footer-menu li,
    .footer-menu .nav-item {
        margin-bottom: 11px;
    }

    /* Gallery */
    .photogallery_block {
        padding: 36px 0 54px;
    }

    .photogallery_block .block-title {
        margin: 0 0 84px;
    }

    .photogallery_block .more-link {
        top: 56px;
        left: 0;
        right: auto;
        text-align: left;
    }

    .photogallery_block .more-link a {
        min-height: 46px;
        padding: 12px 18px;
        font-size: 16px;
    }

    .photogallery_block .item-list ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .view-gallarys.view-display-id-page_1 {
        margin: 42px auto 64px;
    }

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

    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full {
        margin: 42px auto 64px;
    }

    /* Contacts */
    .page-contacts-section {
        padding-bottom: 46px;
    }

    .page-contact {
        font-size: 16px;
    }

    .page-map {
        min-height: 320px;
    }

    /* Product page */
    article.product-view-full {
        margin-top: 38px;
        margin-bottom: 58px;
        padding: 0;
    }

    article.product-view-full .current-slide .element {
        height: 380px;
    }

    article.product-view-full .current-slide .slick-arrow,
    article.product-view-full .current-slide .slick-arrow::before,
    article.product-view-full .current-slide .slick-arrow::after {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        max-width: 42px;
        max-height: 42px;
        background-size: 42px 42px;
    }

    article.product-view-full .current-slide .slick-prev {
        left: 12px;
    }

    article.product-view-full .current-slide .slick-next {
        right: 12px;
    }

    article.product-view-full .field--name-price {
        font-size: 30px;
    }

    article.product-view-full .product_buttom {
        margin-top: 18px;
        padding: 24px;
        border-radius: 14px;
    }

    article.product-view-full .product_buttom::before {
        font-size: 26px;
    }

    /* Cart as cards */
    #block-vesta-theme-content .cart.cart-form {
        margin-bottom: 60px;
    }

    #block-vesta-theme-content .cart.cart-form .views-form form {
        padding: 18px;
        border-radius: 18px;
    }

    #block-vesta-theme-content .cart.cart-form .table-responsive {
        overflow: visible;
    }

    #block-vesta-theme-content .cart.cart-form table.views-table,
    #block-vesta-theme-content .cart.cart-form thead,
    #block-vesta-theme-content .cart.cart-form tbody,
    #block-vesta-theme-content .cart.cart-form tr,
    #block-vesta-theme-content .cart.cart-form th,
    #block-vesta-theme-content .cart.cart-form td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    #block-vesta-theme-content .cart.cart-form thead {
        display: none;
    }

    #block-vesta-theme-content .cart.cart-form table.views-table {
        border-spacing: 0;
        min-width: 0;
    }

    #block-vesta-theme-content .cart.cart-form tbody tr {
        margin-bottom: 16px;
        padding: 18px;
        border-radius: 18px;
    }

    #block-vesta-theme-content .cart.cart-form tbody td,
    #block-vesta-theme-content .cart.cart-form tbody td:first-child,
    #block-vesta-theme-content .cart.cart-form tbody td:last-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 10px 0;
        border-radius: 0;
        text-align: right;
    }

    #block-vesta-theme-content .cart.cart-form tbody td::before {
        content: attr(data-cart-label);
        flex: 0 0 auto;
        color: var(--gray);
        font-size: 14px;
        line-height: 120%;
        text-align: left;
    }

    #block-vesta-theme-content .cart.cart-form .views-field-purchased-entity::before {
        content: "Товар";
    }

    #block-vesta-theme-content .cart.cart-form .views-field-unit-price__number::before {
        content: "Цена";
    }

    #block-vesta-theme-content .cart.cart-form .views-field-edit-quantity::before {
        content: "Количество";
    }

    #block-vesta-theme-content .cart.cart-form .views-field-total-price__number::before {
        content: "Итого";
    }

    #block-vesta-theme-content .cart.cart-form .views-field-remove-button::before {
        content: "";
    }

    #block-vesta-theme-content .cart.cart-form .views-field-purchased-entity {
        display: block;
        min-width: 0;
        padding-top: 0;
        text-align: left;
    }

    #block-vesta-theme-content .cart.cart-form .views-field-purchased-entity::before {
        display: block;
        margin-bottom: 8px;
    }

    #block-vesta-theme-content .cart.cart-form .field--name-title {
        font-size: 20px;
    }

    #block-vesta-theme-content .cart.cart-form .views-field-remove-button {
        justify-content: flex-end;
        padding-bottom: 0;
    }

    #block-vesta-theme-content .cart.cart-form .delete-order-item {
        width: 100%;
        margin-top: 4px;
    }

    #block-vesta-theme-content .cart.cart-form [data-drupal-selector="order-total-summary"] {
        justify-content: stretch;
        margin-top: 18px;
    }

    #block-vesta-theme-content .cart.cart-form .field--name-total-price {
        max-width: none;
        padding: 20px;
        border-radius: 18px;
    }

    #block-vesta-theme-content .cart.cart-form #edit-actions,
    #block-vesta-theme-content .cart.cart-form [data-drupal-selector="edit-actions"],
    #block-vesta-theme-content .cart.cart-form .form-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    #block-vesta-theme-content .cart.cart-form #edit-actions .form-submit,
    #block-vesta-theme-content .cart.cart-form button.vesta-checkout-button,
    #block-vesta-theme-content .cart.cart-form button[data-drupal-selector="edit-checkout"],
    #block-vesta-theme-content .cart.cart-form button[name="op"][value="Оформление заказа"],
    #block-vesta-theme-content .cart.cart-form button.vesta-update-cart-button,
    #block-vesta-theme-content .cart.cart-form button[data-drupal-selector="edit-submit"],
    #block-vesta-theme-content .cart.cart-form button[name="update"] {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Checkout */
    #block-vesta-theme-content .commerce-checkout-flow {
        margin-bottom: 60px;
    }

    #block-vesta-theme-content .commerce-checkout-flow #edit-actions {
        display: block;
    }

    #block-vesta-theme-content .commerce-checkout-flow #edit-actions-next,
    #block-vesta-theme-content .commerce-checkout-flow .form-actions .form-submit {
        width: 100%;
    }

    /* Search */
    #block-vesta-theme-content .search-api-page-block-form-search {
        grid-template-columns: 1fr;
        padding: 26px 22px;
        border-radius: 20px;
        margin-bottom: 34px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search::before {
        font-size: 28px;
    }

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

    #block-vesta-theme-content .search-api-page-block-form-search ~ h2 {
        font-size: 30px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search ~ h3 {
        padding: 22px;
        border-radius: 18px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search ~ h3 a {
        font-size: 23px;
    }

    /* Cookie */
    #vpa-short-wrapper.vpa-wrapper {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        width: calc(100% - 16px);
        padding: 20px;
        border-radius: 24px;
    }

    #vpa-short-wrapper .vpa-content p {
        max-width: 100%;
        font-size: 16px;
    }

    #vpa-short-wrapper #vpa-btn-ok {
        width: 100%;
        height: 50px;
        font-size: 20px;
    }

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

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

    #offcanvasNav {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }

    #offcanvasNav .offcanvas-header {
        min-height: 66px;
        padding: 12px 14px;
    }

    #offcanvasNav .offcanvas-header .logo img {
        max-width: 132px;
        max-height: 38px;
    }

    #offcanvasNav .btn-close {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    #offcanvasNav .offcanvas-body {
        gap: 17px;
        padding: 15px 14px 24px !important;
    }

    #offcanvasNav .search-form form {
        grid-template-columns: 1fr 66px;
        gap: 7px;
    }

    #offcanvasNav .search-form input.form-search,
    #offcanvasNav .search-form .search-form__submit {
        height: 42px;
        border-radius: 11px;
        font-size: 14px;
    }

    #offcanvasNav .search-form .search-form__submit {
        width: 66px;
        font-size: 13px;
    }

    #offcanvasNav .menu--main::before,
    #offcanvasNav .menu--navigationbuttom::before {
        margin-bottom: 8px;
        font-size: 22px;
    }

    #offcanvasNav a.nav-link {
        min-height: 43px;
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 15px;
    }

    #offcanvasNav .menu--navigationbuttom > ul.navbar-nav > li.nav-item > a.nav-link {
        font-size: 17px;
    }

    #offcanvasNav .menu--navigationbuttom li.nav-item > ul {
        margin-top: 6px;
        padding-left: 8px;
    }

    #offcanvasNav .menu--navigationbuttom li.nav-item > ul > li > a {
        min-height: 38px;
        padding: 9px 10px 9px 13px;
        font-size: 13px;
    }

    #offcanvasNav .contact-item {
        padding: 14px;
        border-radius: 14px;
    }

    #offcanvasNav .contact-item-el,
    #offcanvasNav .contact-item-el a {
        font-size: 15px;
    }

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

    #offcanvasNav .btn-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    #offcanvasNav a.nav-link:hover,
    #offcanvasNav a.nav-link.is-active:hover,
    #offcanvasNav a.nav-link[aria-current="page"]:hover {
        transform: none;
    }

    #header-mob {
        min-height: 58px;
        padding: 8px 10px;
        gap: 7px;
    }

    #header-mob .col-nav,
    #header-mob .col-cart {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    #header-mob .col-nav > a,
    #header-mob .cart-block--link__expand {
        width: 39px;
        height: 39px;
        border-radius: 11px;
    }

    #header-mob .col-logo {
        padding: 0 4px;
    }

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

    #header-mob .col-phone {
        margin-right: 3px;
    }

    #header-mob .col-phone a {
        min-height: 32px;
        padding: 7px 8px;
        font-size: 12px;
        letter-spacing: -0.02em;
    }

    #header-mob .cart-block--summary__icon img {
        width: 23px;
        height: 23px;
    }

    #header-mob .cart-block--summary__count {
        top: -9px;
        right: -11px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    /* Common */
    .catalog_block .block-title,
    #block-vesta-theme-page-title h1,
    .products_block .block-title,
    .photogallery_block .block-title,
    .about_top > .field--name-field-about-title {
        font-size: 29px;
        line-height: 120%;
    }

    #block-vesta-theme-page-title h1 {
        margin-bottom: 28px;
    }

    /* Header */
    #header.site-header .header-main__inner {
        min-height: 54px;
    }

    #header.site-header .logo > a > img {
        max-width: 132px;
    }

    #header.site-header .header-search__region {
        position: fixed;
        left: 10px;
        right: 10px;
        top: 62px;
        width: auto;
        transform: none;
    }

    /* Slider */
    #slider-block .view-content,
    #slider-block .slick-list,
    #slider-block .slick-track,
    #slider-block .slick-slide,
    #slider-block .slick-slide > div,
    #slider-block .node--type-slide {
        height: 390px;
    }

    #slider-block .content.container {
        padding-left: 18px;
        padding-right: 18px;
    }

    #slider-block .field--name-field-slide-title p {
        font-size: 27px;
    }

    #slider-block .field--name-body p {
        font-size: 15px;
    }

    #slider-block .field--name-field-slide-link a {
        width: 100%;
        min-width: 0;
        max-width: 260px;
    }

    #slider-block .slick-arrow {
        display: none !important;
    }

    /* Catalog */
    .catalog_block {
        padding: 32px 0 48px;
    }

    .catalog_block .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        gap: 16px;
    }

    .catalog_block .taxonomy-term--view-mode-teaser,
    #block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term--view-mode-teaser {
        aspect-ratio: 16 / 11;
    }

    /* About */
    .about_top {
        padding: 30px 0 36px;
    }

    .about_top > .field--name-field-about-text {
        font-size: 16px;
    }

    .about_top > .field--name-field-about-btn,
    .about_top > .field--name-field-about-btn a {
        width: 100%;
    }

    .about_buttom .field--name-field-about-advantages {
        grid-template-columns: 1fr;
    }

    .about_buttom .field--name-field-advantages-icon img {
        width: 48px;
        height: 48px;
    }

    /* Products */
    .products_block .block-title {
        margin-bottom: 78px;
    }

    .products_block .view-content,
    .view-id-tovary .view-content,
    .view-id-tovary.view-display-id-page_1 .view-content {
        gap: 18px;
    }

    .view-id-tovary .field--name-title {
        font-size: 15px;
    }

    .products_block .commerce-product--view-mode-teaser,
    .view-id-tovary .commerce-product--view-mode-teaser,
    .view-id-tovary.view-display-id-page_1 .commerce-product--view-mode-teaser {
        max-width: 320px;
        height: auto;
        min-height: 390px;
        margin-right: auto;
    }

    .products_block .field--name-field-image-product-view,
    .products_block .field--name-field-image-product-view img,
    .view-id-tovary .field--name-field-image-product-view,
    .view-id-tovary.view-display-id-page_1 .field--name-field-image-product-view,
    .view-id-tovary.view-display-id-page_1 .field--name-field-image-product-view img {
        height: 240px;
    }

    .products_block .button--add-to-cart,
    .view-id-tovary .button--add-to-cart,
    .view-id-tovary.view-display-id-page_1 .button--add-to-cart {
        min-width: 0;
        flex: 1 1 auto;
    }

    /* Feedback / modal forms */
    .feedback_block > .container {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .feedback_block .field--name-field-feedback-title {
        font-size: 25px;
    }

    .feedback_block input.form-control,
    .feedback_block textarea.form-control,
    #drupal-bootstrap4-modal input.form-control,
    #drupal-bootstrap4-modal textarea.form-control,
    #block-vesta-theme-content .webform-submission-callback-form input.form-control,
    #block-vesta-theme-content .webform-submission-callback-form textarea.form-control {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 15px;
    }

    #drupal-bootstrap4-modal .modal-dialog,
    .ui-dialog {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin-left: auto;
        margin-right: auto;
    }

    #drupal-bootstrap4-modal .modal-header,
    #drupal-bootstrap4-modal .modal-body,
    #drupal-bootstrap4-modal .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    #drupal-bootstrap4-modal .modal-title {
        padding-right: 44px;
        font-size: 27px;
    }

    #drupal-bootstrap4-modal form,
    #block-vesta-theme-content .webform-submission-callback-form {
        grid-template-columns: 1fr;
    }

    #block-vesta-theme-content #webform-submission-callback-form-ajax {
        margin: 36px auto;
        padding: 28px 20px;
    }

    /* Footer */
    .footer-logo img {
        width: 180px;
        max-width: 180px;
    }

    .footer-socials {
        margin-top: 14px;
    }

    .footer-bottom a,
    .footer-copyright,
    .footer-menu a,
    .footer-menu .nav-link {
        font-size: 15px;
    }

    /* Gallery / contacts */
    .photogallery_block .block-title {
        margin-bottom: 76px;
    }

    /*.photogallery_block .item-list ul,*/
    /*#block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery {*/
    /*    grid-template-columns: 1fr;*/
    /*}*/

    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item,
    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(1),
    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(6n),
    #block-vesta-theme-content > article.node--type-photogallery.node--view-mode-full .field--name-field-gallery > .field__item:nth-child(4n) {
        height: 250px;
    }

    .view-gallarys.view-display-id-page_1 article.node--type-photogallery {
        min-height: 220px;
        padding: 24px 22px;
    }

    .view-gallarys.view-display-id-page_1 article.node--type-photogallery h2 {
        font-size: 24px;
    }

    .page-map {
        min-height: 280px;
    }

    /* Product page */
    article.product-view-full .current-slide .element {
        height: 310px;
    }

    article.product-view-full .nav-slide img {
        height: 70px;
    }

    article.product-view-full .field--name-price {
        font-size: 27px;
    }

    article.product-view-full .commerce-order-item-add-to-cart-form {
        gap: 16px;
    }

    article.product-view-full .field--name-quantity,
    article.product-view-full .button--add-to-cart {
        width: 100%;
    }

    article.product-view-full .field--name-quantity input {
        flex: 1 1 auto;
    }

    article.product-view-full .product_buttom {
        padding: 20px;
    }

    article.product-view-full .product_buttom::before {
        font-size: 24px;
    }

    /* Cart */
    #block-vesta-theme-content .cart.cart-form .views-form form {
        padding: 14px;
    }

    #block-vesta-theme-content .cart.cart-form tbody tr {
        padding: 16px;
    }

    #block-vesta-theme-content .cart.cart-form tbody td,
    #block-vesta-theme-content .cart.cart-form tbody td:first-child,
    #block-vesta-theme-content .cart.cart-form tbody td:last-child {
        align-items: flex-start;
        gap: 12px;
    }

    #block-vesta-theme-content .cart.cart-form .order-total-line {
        gap: 12px;
    }

    #block-vesta-theme-content .cart.cart-form .order-total-line__total .order-total-line-label {
        font-size: 22px;
    }

    #block-vesta-theme-content .cart.cart-form .order-total-line__total .order-total-line-value {
        font-size: 24px;
    }

    /* Checkout */
    #block-vesta-theme-content .layout-region-checkout-main,
    #block-vesta-theme-content .layout-region-checkout-secondary {
        padding: 18px;
        border-radius: 18px;
    }

    #block-vesta-theme-content .checkout-pane .fieldset-legend,
    #block-vesta-theme-content .field--name-field-address .fieldset-legend,
    #block-vesta-theme-content .layout-region-checkout-secondary h3 {
        font-size: 23px;
    }

    #block-vesta-theme-content .commerce-checkout-flow .fieldset-legend {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    #block-vesta-theme-content .commerce-checkout-flow .checkout-review-edit-link {
        margin-left: 0;
    }

    #block-vesta-theme-content .commerce-checkout-flow #edit-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #block-vesta-theme-content .commerce-checkout-flow .link--previous,
    #block-vesta-theme-content .commerce-checkout-flow #edit-actions-next {
        width: 100%;
    }

    #block-vesta-theme-content .checkout-order-summary table tr {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    #block-vesta-theme-content .checkout-order-summary td:nth-child(2),
    #block-vesta-theme-content .checkout-order-summary td.text-end {
        text-align: left !important;
    }

    #block-vesta-theme-content .checkout-order-summary .order-total-line {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #block-vesta-theme-content .checkout-order-summary .order-total-line-value {
        text-align: left;
    }

    /* Search */
    #block-vesta-theme-content .search-api-page-block-form-search {
        padding: 22px 18px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search::before {
        font-size: 25px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search input.form-search,
    #block-vesta-theme-content .search-api-page-block-form-search .search-form__submit {
        height: 48px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search ~ h2 {
        font-size: 27px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search ~ h3 a {
        font-size: 21px;
    }

    /* Cookie */
    #vpa-short-wrapper.vpa-wrapper {
        padding: 18px;
        border-radius: 20px;
    }

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

@media screen and (max-width: 470px) {
    .products_block .view-content, .view-id-tovary .view-content, .view-id-tovary.view-display-id-page_1 .view-content {
        grid-template-columns: 1fr;
    }

    .catalog_block .view-content, #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    #block-vesta-theme-content .cart.cart-form .order-total-line-value {
        font-size: 14px;
    }
}


/* ================================
   PRODUCT FULL PAGE ADAPTIVE FIX
   Вставить в конец CSS-файла
================================ */

article.product-view-full,
article.product-view-full * {
    box-sizing: border-box;
}

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

article.product-view-full .product_left,
article.product-view-full .product-teaser,
article.product-view-full .product_right,
article.product-view-full .product_buttom,
article.product-view-full .product-gallery,
article.product-view-full .current-slide,
article.product-view-full .nav-slide {
    min-width: 0;
}

article.product-view-full .product-gallery {
    width: 100%;
    max-width: 100%;
}

article.product-view-full .current-slide {
    width: 100%;
    max-width: 100%;
}

article.product-view-full .current-slide .slick-list {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

article.product-view-full .current-slide img {
    max-width: 100%;
}


/* ================================
   до 1200px
================================ */

@media (max-width: 1199.98px) {
    article.product-view-full {
        grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
        gap: 20px 32px;
    }

    article.product-view-full .product_left {
        max-width: 470px;
    }

    article.product-view-full .current-slide .element {
        height: 390px;
    }

    article.product-view-full .field--name-price {
        font-size: 30px;
    }
}


/* ================================
   планшет
================================ */

@media (max-width: 991.98px) {
    article.product-view-full {
        margin: 40px auto 60px;
        padding-left: 15px;
        padding-right: 15px;

        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "gallery"
            "info"
            "form"
            "description";

        gap: 20px;
    }

    article.product-view-full .product_left {
        grid-area: gallery;
        width: 100%;
        max-width: 100%;
    }

    article.product-view-full .product-teaser {
        grid-area: info;
        width: 100%;
        max-width: 100%;
        display: block;
        padding-top: 0;
    }

    article.product-view-full .product-teaser-info {
        width: 100%;
        max-width: 100%;
    }

    article.product-view-full .product_right {
        grid-area: form;
        width: 100%;
        max-width: 100%;
    }

    article.product-view-full .product_buttom {
        grid-area: description;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    article.product-view-full .current-slide .element {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    article.product-view-full .current-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    article.product-view-full .nav-slide.product-thumbs-static {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    article.product-view-full .nav-slide.product-thumbs-static .element {
        width: auto;
        flex: none;
        min-width: 0;
        padding: 0;
    }

    article.product-view-full .nav-slide img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    article.product-view-full .field--name-price {
        font-size: 30px;
    }

    article.product-view-full .commerce-order-item-add-to-cart-form {
        gap: 18px;
    }

    article.product-view-full .product_buttom {
        padding: 28px 30px;
    }

    article.product-view-full .product_buttom::before {
        font-size: 28px;
    }
}


/* ================================
   мобильные
================================ */

@media (max-width: 767.98px) {
    article.product-view-full {
        margin: 30px auto 50px;
        padding-left: 12px;
        padding-right: 12px;
        gap: 18px;
    }

    article.product-view-full .current-slide {
        margin-bottom: 10px;
        border-radius: 12px;
    }

    article.product-view-full .field--name-price {
        font-size: 27px;
    }

    article.product-view-full .field--name-sku {
        font-size: 12px;
    }

    article.product-view-full .field--name-quantity {
        width: 100%;
        max-width: 210px;
    }

    article.product-view-full .field--name-quantity .form-item {
        flex: 1 1 auto;
    }

    article.product-view-full .field--name-quantity input {
        width: 100%;
    }

    article.product-view-full .button--add-to-cart {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    article.product-view-full .current-slide .slick-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        max-width: 44px;
        max-height: 44px;
    }

    article.product-view-full .current-slide .slick-arrow::before,
    article.product-view-full .current-slide .slick-arrow::after {
        width: 44px;
        height: 44px;
        background-size: 44px 44px;
    }

    article.product-view-full .current-slide .slick-prev {
        left: 10px;
    }

    article.product-view-full .current-slide .slick-next {
        right: 10px;
    }

    article.product-view-full .product_buttom {
        padding: 24px 20px;
        border-radius: 14px;
    }

    article.product-view-full .product_buttom::before {
        margin-bottom: 12px;
        font-size: 24px;
    }

    article.product-view-full .product_buttom p {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.55;
    }
}


/* ================================
   маленькие мобильные
================================ */

@media (max-width: 575.98px) {
    article.product-view-full {
        margin: 24px auto 44px;
        padding-left: 10px;
        padding-right: 10px;
    }

    article.product-view-full .field--name-price {
        font-size: 25px;
    }

    article.product-view-full .field--name-quantity {
        max-width: 100%;
    }

    article.product-view-full .btn-minus,
    article.product-view-full .btn-plus {
        width: 46px;
        min-width: 46px;
        height: 44px;
    }

    article.product-view-full .field--name-quantity input {
        height: 44px;
    }

    article.product-view-full .button--add-to-cart {
        height: 46px;
        font-size: 15px;
    }

    article.product-view-full .nav-slide.product-thumbs-static {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    article.product-view-full .product_buttom {
        padding: 20px 16px;
    }
}

/* ================================
   BREADCRUMBS RESPONSIVE
================================ */

#block-vesta-theme-strokanavigacii {
    width: 100%;
    max-width: 100%;
    background: #fff;
}

#block-vesta-theme-strokanavigacii nav {
    width: 100%;
    max-width: 100%;
}

#block-vesta-theme-strokanavigacii .breadcrumb {
    max-width: 100%;
    min-width: 0;
}

#block-vesta-theme-strokanavigacii .breadcrumb-item {
    min-width: 0;
    max-width: 100%;
}

#block-vesta-theme-strokanavigacii .breadcrumb-item a,
#block-vesta-theme-strokanavigacii .breadcrumb-item:last-child {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}


/* ================================
   Планшеты
================================ */

@media (max-width: 991.98px) {
    #block-vesta-theme-strokanavigacii {
        padding: 22px 15px 0;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb {
        row-gap: 6px;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item {
        font-size: 14px;
        line-height: 130%;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 7px;
    }
}


/* ================================
   Мобильные
================================ */

@media (max-width: 767.98px) {
    #block-vesta-theme-strokanavigacii {
        padding: 18px 12px 0;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 5px;
        margin: 0;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item {
        display: inline-flex;
        align-items: center;
        font-size: 13px;
        line-height: 130%;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 6px;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item:last-child {
        flex: 1 1 100%;
        margin-top: 2px;
        color: var(--black);
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item:last-child::before {
        display: none;
    }
}


/* ================================
   Маленькие мобильные
================================ */

@media (max-width: 575.98px) {
    #block-vesta-theme-strokanavigacii {
        padding: 16px 10px 0;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item {
        font-size: 12px;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 5px;
    }

    #block-vesta-theme-strokanavigacii .breadcrumb-item:last-child {
        font-size: 13px;
        line-height: 135%;
    }
}

#edit-order-fieldscheckout-field-comment-0-value {
    resize: none !important;
}
