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

.header-bottom {
    background: #ccc;
}

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

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

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

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

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

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

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

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

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

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

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

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


/*HEADER STYLES*/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* SLICK STYLES */

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

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

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

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

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

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

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

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

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

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


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

/* PRODUCT PAGE STYLES*/

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

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

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

:root {
    --font-family: "Inter", sans-serif;
    --second-family: "Play", sans-serif;

    --goluboy: #5d80b6;
    --siniy: #101e5b;
    --chernyy: #19191c;
    --hover: #2963ba;
    --fon: #f8f8fa;
}

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

/* HEADER */

/* ===== HEADER LIKE SCREENSHOT ===== */

.site-header {
    position: relative;
    z-index: 50;
    font-family: var(--font-family);
}

#header.site-header {
    background: #fff;
}

/* TOP BAR */
#header .header-top {
    background: #e5ecf6;
    border-bottom: 0;
    padding-top: 12px;
    padding-bottom: 12px;
}

#header .header-top__inner {
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#header .header-top__left,
#header .header-top__right {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

#header .header-address,
#header .header-mail,
#header .header-phone {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: var(--chernyy);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

#header .header-address {
    padding-left: 20px;
}

#header .header-mail,
#header .header-phone {
    padding-left: 20px;
}

#header .header-address::before,
#header .header-mail::before,
#header .header-phone::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
}

#header .header-address::before {
    background-image: url("/sites/all/themes/vesta_theme/image/Pin_fill.svg");
}

#header .header-mail::before {
    background-image: url("/sites/all/themes/vesta_theme/image/Mail.svg");
}

#header .header-phone::before {
    background-image:  url("/sites/all/themes/vesta_theme/image/Phone Fill.svg");
}

#header .header-mail,
#header .header-phone {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: var(--chernyy);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
    padding-left: 20px;
    transition: opacity 0.25s ease;
}

#header .header-mail::after,
#header .header-phone::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -2px;
    width: calc(100% - 20px);
    height: 1px;
    background: var(--chernyy);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#header .header-mail:hover::after,
#header .header-phone:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* MAIN BAR */
#header .header-main {
    background: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
}

#header .header-main__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

#header .logo {
    flex: 0 0 auto;
}

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

#header .logo img {
    display: block;
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

#header .header-nav {
    flex: 1 1 auto;
    min-width: 0;
}

#header .header-nav .nav,
#header .header-nav ul.menu,
#header .header-nav ul.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .header-nav .nav-item {
    margin: 0;
    padding: 0;
}

#header .header-nav .nav-link,
#header .header-nav a {
    padding: 0;
    border: 0;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--chernyy);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

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

/* optional dropdown arrow */
#header .header-nav .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: 2px;
}

/* ACTIONS */
#header .header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* SEARCH */
#header .header-search {
    position: relative;
    width: 22px;
    min-width: 22px;
    height: 22px;
}

#header .header-search form,
#header .header-search .search-block-form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

#header .header-search .form-item {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

#header .header-search .form-search {
    width: 0;
    opacity: 0;
    pointer-events: none;
    height: 34px;
    padding: 0;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
    transition: width 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}

#header .header-search:focus-within .form-search {
    width: 180px;
    opacity: 1;
    pointer-events: auto;
    padding: 0 12px;
}

#header .header-search .search-form__submit {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
    cursor: pointer;
    position: relative;
    font-size: 0;
    color: transparent;
}

#header .header-search .search-form__submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("/sites/all/themes/vesta_theme/image/search.svg");
}

/* CALLBACK BUTTON */
#header .header-callback .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 133px;
    height: 42px;
    padding: 0 24px 2px;
    border: 0;
    border-radius: 10px;
    background: var(--siniy);
    color: var(--fon);
    text-decoration: none;
    font-size: 18px;
    letter-spacing: -0.02em;
    font-weight: 400;
    box-shadow: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

#header .header-callback .btn:hover {
    background: var(--hover);
    color: var(--fon);
}

/* CART optional */
#header .header-cart {
    display: flex;
    align-items: center;
}

/* reset old bootstrap paddings if left in markup */
#header .header-top.p-3,
#header .header-bottom.p-1 {
    padding: 0 !important;
}

/* ===== FIX ALIGN LOGO / NAV / SEARCH ===== */

#header .header-main__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* все 3 колонки строго по центру */
#header .logo,
#header .header-nav,
#header .header-actions {
    display: flex;
    align-items: center;
}

/* убрать влияние line-height у логотипа */
#header .logo {
    flex: 0 0 auto;
    line-height: 0;
}

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

#header .logo img {
    display: block;
    max-height: 32px;
    width: auto;
    height: auto;
    vertical-align: middle;
}

/* Drupal-обертки навигации */
#header .header-nav > .region,
#header .header-nav .block,
#header .header-nav nav,
#header .header-nav ul.nav {
    display: flex;
    align-items: center;
    margin: 0;
}

#header .header-nav nav {
    line-height: 1;
}

#header .header-nav ul.nav {
    gap: 26px;
    padding: 0;
}

/* actions */
#header .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1;
}

/* search wrappers */
#header .header-search {
    display: flex;
    align-items: center;
    margin: 0;
}

/* кнопка поиска без внутреннего смещения */
#header .header-search {
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    padding: 0;
    margin: 0;
    line-height: 0;
}

/* callback тоже по центру */
#header .header-callback {
    display: flex;
    align-items: center;
    margin: 0;
}

/* HOVER для навигации */
#header .header-nav .nav-link,
#header .header-nav a {
    transition: color 0.2s ease;
}

#header .header-nav .nav-link:hover,
#header .header-nav a:hover,
#header .header-nav .nav-link:focus-visible,
#header .header-nav a:focus-visible,
#header .header-nav .nav-link.is-active,
#header .header-nav a.is-active {
    color: var(--hover);
}

/* HOVER для кнопки */
#header .header-callback .btn,
#header .header-callback a,
#header .header-callback button,
#header .header-callback input[type="submit"] {
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* FOOTER */

#footer.site-footer {
    background: var(--fon);
    color: #20232b;
    font-family: var(--font-family);
    border-top: 1px solid #e8e8e8;
}

#footer .footer-top {
    padding: 28px 0 18px;
}

#footer .footer-layout {
    display: grid;
    grid-template-columns: 340px 1fr 1fr 248px;
    gap: 34px;
    align-items: start;
}

/* LEFT BRAND */
#footer .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#footer .footer-logo {
    margin-bottom: 78px;
}

#footer .footer-logo a {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

#footer .footer-logo img {
    display: block;
    max-width: 178px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#footer .footer-copy {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

#footer .footer-policy a {
    font-size: 16px;
    line-height: 115%;
    color: var(--chernyy);
    letter-spacing: -0.02em;
    text-decoration: underline;
    transition: color 0.2s ease;
}

#footer .footer-policy a:hover {
    color: var(--siniy);
}

/* TITLES */
#footer .footer-title {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--goluboy);
    letter-spacing: -0.03em;
}

/* MENU REGIONS */
#footer .footer-col .region,
#footer .footer-col nav,
#footer .footer-col .block {
    margin: 0;
}

#footer .footer-col ul,
#footer .footer-col .menu,
#footer .footer-col .nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer .footer-col li,
#footer .footer-col .nav-item {
    margin: 0;
    padding: 0;
}

#footer .footer-col a,
#footer .footer-col .nav-link {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    font-size: 16px;
    line-height: 100%;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--chernyy);
    transition: color 0.2s ease;
}

#footer .footer-col a:hover,
#footer .footer-col .nav-link:hover {
    color: var(--siniy);
}

/* RIGHT SIDE */
#footer .footer-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}

/* CALLBACK BUTTON */
#footer .footer-callback .region,
#footer .footer-callback .block,
#footer .footer-callback .field__item {
    margin: 0;
}

#footer .footer-callback .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--siniy);
    border-radius: 10px;
    background: transparent;
    color: var(--siniy);
    text-decoration: none;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.02em;
    font-weight: 400;
    white-space: nowrap;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#footer .footer-callback .btn::after {
    content: "";
    width: 24px;
    height: 24px;
    margin-left: 10px;
    background-color: currentColor;
    -webkit-mask: url("/sites/all/themes/vesta_theme/image/arrow-up-right.svg") center/contain no-repeat;
    mask: url("/sites/all/themes/vesta_theme/image/arrow-up-right.svg") center/contain no-repeat;
}

#footer .footer-callback .btn:hover {
    background: #a7bfe2;
    color: var(--siniy);
}

/* CONTACTS */
#footer .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 23px;
    width: 100%;
}

#footer .footer-contact,
#footer .footer-contacts .contact-item,
#footer .footer-contacts .contact-item-el,
#footer .footer-contacts .field__item,
#footer .footer-contacts p {
    position: relative;
    margin: 0;
    padding: 0 0 0 25px;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

#footer .footer-contact a,
#footer .footer-contacts a {
    color: #2c313a;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .footer-contact a:hover,
#footer .footer-contacts a:hover {
    color: var(--chernyy);
}

/* fallback contact icons */
#footer .footer-contact--address::before,
#footer .footer-contact--mail::before,
#footer .footer-contact--phone::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.95;
}

#footer .footer-contact--address::before {
    background-image: url("/sites/all/themes/vesta_theme/image/Pin_fill.svg");
}

#footer .footer-contact--mail::before {
    background-image: url("/sites/all/themes/vesta_theme/image/Mail.svg");
}

#footer .footer-contact--phone::before {
    background-image: url("/sites/all/themes/vesta_theme/image/Phone Fill.svg");
}

/* if contacts region outputs plain paragraphs or links */
#footer .footer-contacts p::before,
#footer .footer-contacts .field__item::before {
    content: "";
}

/* BOTTOM BAR */
#footer .footer-bottom-bar {
    background: #e5ecf6;
    padding-top: 16px;
    padding-bottom: 16px;
}

#footer .footer-bottom-bar .container {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer .footer-bottom-bar a {
    color: var(--chernyy);
    text-decoration: none;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

#footer .footer-bottom-bar a:hover {
    color: var(--siniy);
}

#footer .row,
#footer .col-lg-2,
#footer .col-lg-3,
#footer .col-lg-4,
#footer .col-lg-7,
#footer .col-md-3,
#footer .col-md-9,
#footer .col-sm-4,
#footer .col-sm-6,
#footer .col-sm-8,
#footer .col-6,
#footer .order-1,
#footer .order-2,
#footer .order-3,
#footer .order-lg-2,
#footer .order-lg-3,
#footer .row-copiryght,
#footer .col-webvesta {
    margin: 0;
}

/* HOVER для ссылок в колонках футера */
#footer .footer-col a:hover,
#footer .footer-col .nav-link:hover {
    color: var(--hover);
}

/* HOVER для политики */
#footer .footer-policy a:hover {
    color: var(--hover);
}

/* Контакты: плавное подчеркивание при наведении */
#footer .footer-contact a,
#footer .footer-contacts a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #2c313a;
    transition: color 0.25s ease;
}

#footer .footer-contact a::after,
#footer .footer-contacts a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

#footer .footer-contact a:hover,
#footer .footer-contacts a:hover {
    color: var(--chernyy);
}

#footer .footer-contact a:hover::after,
#footer .footer-contacts a:hover::after {
    transform: scaleX(1);
}

:root {
    --container-max: 1170px;
    --container-pad: 15px;
}

.container {
    width: 100%;
    max-width: calc(var(--container-max) + (var(--container-pad) * 2));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
    box-sizing: border-box;
}

.block-content--type-main-content.block-content--view-mode-full.ds-2col {
    position: relative;
    left: 50%;
    margin-left: -50vw !important;
    width: 100vw;
    max-width: 100vw;

    display: grid !important;
    grid-template-columns: 54.5% 45.5%;
    overflow: hidden;
    background: #34479d;
}

.block-content--type-main-content.block-content--view-mode-full.ds-2col > .group-left,
.block-content--type-main-content.block-content--view-mode-full.ds-2col > .group-right {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* ЛЕВАЯ КОЛОНКА: фон full width, контент стоит по сетке контейнера */
.block-content--type-main-content .group-left {
    background: #34479d;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding-top: 72px;
    padding-bottom: 42px;
    padding-right: 56px;

    /* вот это и прижимает контент к существующему контейнеру */
    padding-left: max(24px, calc((100vw - min(100vw, var(--container-max))) / 2 + var(--container-pad)));
}

/* ПРАВАЯ ЧАСТЬ */
.block-content--type-main-content .group-right {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.block-content--type-main-content .field--name-field-main-img,
.block-content--type-main-content .field--name-field-main-img .field__item {
    height: 100%;
    margin: 0;
}

.block-content--type-main-content .field--name-field-main-img img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 650px;
    object-fit: cover;
}

/* Ограничение ширины контента слева */
.block-content--type-main-content .field--name-field-main-title {
    max-width: 430px;
}

.block-content--type-main-content .field--name-field-main-text {
    max-width: 380px;
}

.block-content--type-main-content .field--name-field-advantages {
    margin-top: auto;
    max-width: 520px;
}

/* ===== ЛЕВАЯ КОЛОНКА ===== */
.block-content--type-main-content .group-left {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Сброс лишних отступов Drupal */
.block-content--type-main-content .group-left .field,
.block-content--type-main-content .group-left .field__item,
.block-content--type-main-content .group-left .text-formatted {
    margin: 0;
    padding: 0;
}

/* ===== ЗАГОЛОВОК ===== */
.block-content--type-main-content .group-left .field--name-field-main-title {
    max-width: 630px;
    margin-bottom: 14px;
}

.block-content--type-main-content .group-left .field--name-field-main-title h1 {
    margin: 0;
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 51px;
    line-height: 100%;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #e5ecf6;
}

/* ===== ПОДЗАГОЛОВОК ===== */
.block-content--type-main-content .group-left .field--name-field-main-text {
    max-width: 475px;
    margin-bottom: 40px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 115%;
    color: #e5ecf6;
}

/* ===== КНОПКА ===== */
.block-content--type-main-content .group-left .field--name-field-main-feedback-btn {
    margin-bottom: 0;
}

.block-content--type-main-content .group-left .field--name-field-main-feedback-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 24px;
    background: var(--fon);
    border-radius: 8px;
    border: 1px solid var(--siniy);
    box-shadow: none;
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    color: var(--siniy);
    transition: 0.2s ease;
}

.block-content--type-main-content .group-left .field--name-field-main-feedback-btn a::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask: url('/sites/all/themes/vesta_theme/image/arrow-up-right.svg') center/contain no-repeat;
    mask: url('/sites/all/themes/vesta_theme/image/arrow-up-right.svg') center/contain no-repeat;
    flex-shrink: 0;
}

.block-content--type-main-content .group-left .field--name-field-main-feedback-btn a:hover {
    background: #a7bfe2;
}

/* ===== БЛОК ПРЕИМУЩЕСТВ ===== */
.block-content--type-main-content .group-left .field--name-field-advantages {
    padding-top: 120px;
    max-width: 630px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.block-content--type-main-content .group-left .field--name-field-advantages > .field__item {
    margin: 0;
}

.block-content--type-main-content .group-left .paragraph--type--advantage {
    min-height: 128px;
    padding: 14px 12px 14px;
    background: var(--goluboy);
    border-radius: 10px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.block-content--type-main-content .group-left .field--name-field-advantage-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin-bottom: 0;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}


.block-content--type-main-content .group-left .field--name-field-advantage-icon img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Текст карточек */
.block-content--type-main-content .group-left .field--name-field-opisanie {
    margin-top: auto;
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 110%;
    text-transform: uppercase;
    color: var(--fon);
    max-width: 170px;
}

/* ===== Блок условий ===== */

.conditions {
    padding-top: 80px;
    padding-bottom: 80px;
}

.region-conditions {
    margin: 0;
}

/* Родитель для абсолютного позиционирования кнопки */
.region-conditions #block-vesta-theme-conditions-on-front,
.region-conditions #block-vesta-theme-conditions_on_front {
    position: relative;
}

/* Убираем возможное позиционирование у view */
.region-conditions .view.view-conditions {
    position: static;
}

/* ===== Заголовок ===== */
.region-conditions .block-title {
    font-family: var(--second-family);
    margin: 0 180px 32px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 48px;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--chernyy);
}

/* ===== Кнопка Подробнее ===== */
.region-conditions .more-link {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
}

.region-conditions .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px 2px;
    border: 1px solid var(--siniy);
    border-radius: 10px;
    background: transparent;
    color: var(--siniy);
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.02em;
    font-weight: 400;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.region-conditions .more-link a:hover,
.region-conditions .more-link a:focus {
    background: var(--hover);
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--hover);
}

/* ===== Сетка карточек ===== */
.region-conditions .view-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* ===== Карточка ===== */
.region-conditions .views-row {
    position: relative;
    overflow: hidden;
    background: #dfe5ef;
    border-radius: 16px;
    padding: 22px 20px 20px;
    min-height: 204px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease, transform 0.2s ease;
}

.region-conditions .views-row:hover {
    background: #d7deea;
}

/* ===== Иконка ===== */
.region-conditions .views-field-field-condition-image {
    margin-bottom: 22px;
}

.region-conditions .views-field-field-condition-image .field-content {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #5d7fbd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-conditions .views-field-field-condition-image img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

/* ===== Заголовок карточки ===== */
.region-conditions .views-field-field-condition-title {
    margin-top: auto;
    margin-bottom: 10px;
}

.views-field-field-condition-title {
    color: var(--chernyy);
    font-size: 24px;
    line-height: 100%;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-family: var(--second-family);
    text-decoration: none;
}

.region-conditions .views-row {
    position: relative;
}

.region-conditions .views-row > div {
    position: relative;
    z-index: 1;
}

.region-conditions .views-field-field-condition-title,
.region-conditions .views-field-field-condition-image,
.region-conditions .views-field-field-condition-text {
    pointer-events: none;
}

.region-conditions .views-field-field-condition-title a {
    display: block;
    color: #1f2128;
    text-decoration: none !important;
    pointer-events: auto;
}

.region-conditions .views-field-field-condition-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
}

.region-conditions .views-field-field-condition-title a:hover,
.region-conditions .views-field-field-condition-title a:focus,
.region-conditions .views-field-field-condition-title a:active {
    text-decoration: none !important;
    color: #1f2128;
}

.region-conditions .views-field-field-condition-title a:hover,
.region-conditions .views-field-field-condition-title a:focus,
.region-conditions .views-field-field-condition-title a:active {
    text-decoration: none;
    color: #1f2128;
}

.region-conditions .views-field-field-condition-text {
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

.region-conditions .views-row > div {
    position: relative;
    z-index: 3;
}

/* ========================================
   CONDITIONS PAGE
   /conditions
======================================== */

/* =========================================
   PAGE CONDITIONS — точечно под эту разметку
   вставить в САМЫЙ НИЗ css
========================================= */

/* отступы страницы */
main#main .wr_content {
    padding: 32px 0 80px;
}

/* =========================
   ХЛЕБНЫЕ КРОШКИ
========================= */
main#main #block-vesta-theme-strokanavigacii {
    margin: 0 0 20px;
}

main#main #block-vesta-theme-strokanavigacii nav[aria-label="breadcrumb"] {
    margin: 0;
}

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

main#main #block-vesta-theme-strokanavigacii .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: #8c93a3;
}

main#main #block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 10px;
    color: #b2b8c5;
}

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

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

/* =========================
   H1
========================= */
main#main #block-vesta-theme-page-title {
    margin: 0 0 32px;
}

main#main #block-vesta-theme-page-title h1 {
    margin: 0;
    font-family: var(--second-family);
    font-size: 48px;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--chernyy);
}

/* =========================
   КАРТОЧКИ CONDITIONS PAGE
========================= */
main#main .view.view-conditions.view-display-id-page_1 .view-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

main#main .view.view-conditions.view-display-id-page_1 .views-row {
    position: relative;
    overflow: hidden;
    background: #dfe5ef;
    border-radius: 16px;
    padding: 22px 20px 20px;
    min-height: 204px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease, transform 0.2s ease;
}

main#main .view.view-conditions.view-display-id-page_1 .views-row:hover {
    background: #d7deea;
    transform: translateY(-2px);
}

main#main .view.view-conditions.view-display-id-page_1 .views-row > div {
    position: relative;
    z-index: 2;
}

/* иконка */
main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-image {
    margin-bottom: 22px;
}

main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-image .field-content {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #5d7fbd;
    display: flex;
    align-items: center;
    justify-content: center;
}

main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-image img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

/* заголовок карточки */
main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-title {
    margin-top: auto;
    margin-bottom: 10px;
}

main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-title .field-content {
    font-family: var(--second-family);
    font-size: 24px;
    line-height: 100%;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--chernyy);
}

/* текст карточки */
main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-text,
main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-text .field-content {
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/* ========================================
   GALLERIES PAGE
   /galleries
   вставить в самый низ css
======================================== */

/* ===== GALLERIES PAGE ===== */

.view-galleries {
    margin-top: 32px;
}

.view-galleries .view-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.view-galleries .views-row {
    min-width: 0;
}

.view-galleries .node--type-photogallery.node--view-mode-teaser {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    padding: 22px 20px 20px;
    background: #dfe5ef;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.view-galleries .node--type-photogallery.node--view-mode-teaser:hover {
    background: #d7deea;
    transform: translateY(-2px);
}

/* скрыть лишнее */
.view-galleries .node__meta,
.view-galleries .node__submitted,
.view-galleries .profile,
.view-galleries .contextual {
    display: none !important;
}

/* заголовок */
.view-galleries h2 {
    margin: 0 0 16px;
    font-family: var(--second-family);
    font-size: 24px;
    line-height: 100%;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--chernyy);
}

.view-galleries h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-galleries h2 a:hover {
    color: var(--hover);
}

/* контент карточки */
.view-galleries .node__content {
    margin-top: auto;
}

.view-galleries .node__links {
    margin: 0;
}

.view-galleries .links.inline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.view-galleries .links.inline li {
    margin: 0;
    padding: 0;
}

/* кнопка */
.view-galleries .links.inline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--siniy);
    border-radius: 10px;
    background: transparent;
    color: var(--siniy);
    text-decoration: none;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.02em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.view-galleries .links.inline a:hover {
    background: var(--hover);
    color: #fff;
    border-color: var(--hover);
}

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

/* убрать строку "Опубликовано ..." */
.node--type-photogallery.node--view-mode-full .node__meta,
.node--type-photogallery.node--view-mode-full .node__submitted {
    display: none;
}

/* сетка галереи */
.photoswipe-gallery.field__items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

/* элемент галереи */
.photoswipe-gallery.field__items .field__item {
    min-width: 0;
}

/* ссылка-обертка */
.photoswipe-gallery.field__items .field__item a {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #dfe5ef;
}

/* картинка */
.photoswipe-gallery.field__items .field__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* hover */
.photoswipe-gallery.field__items .field__item a:hover img {
    transform: scale(1.04);
    filter: brightness(0.96);
}

/* ========================================
   CONTACTS PAGE
======================================== */

/* breadcrumbs */
#block-vesta-theme-strokanavigacii {
    margin: 0 0 20px;
}

#block-vesta-theme-strokanavigacii nav[aria-label="breadcrumb"] {
    margin: 0;
}

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

#block-vesta-theme-strokanavigacii .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: #8c93a3;
}

#block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 10px;
    color: #b2b8c5;
}

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

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

/* title */
#block-vesta-theme-page-title {
    margin: 0 0 32px;
}

#block-vesta-theme-page-title h1 {
    margin: 0;
    font-family: var(--second-family);
    font-size: 48px;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--chernyy);
}

/* скрыть пустой блок */
#block-vesta-theme-bloknastranicekontakty {
    display: none;
}

/* layout */
.feedback-section {
    padding: 0 0 80px;
}

.feedback-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.feedback-left {
    flex: 0 0 34%;
    border-radius: 18px;
}

.feedback-right {
    flex: 0 0 calc(66% - 32px);
    max-width: calc(66% - 32px);
}

/* contacts */
.feedback-left .field-tel,
.feedback-left .field-mail {
    margin: 0;
}

.feedback-left .field-mail {
    margin-top: 18px;
}

.feedback-left .field-tel a,
.feedback-left .field-mail a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-left: 30px;
    color: var(--chernyy);
    text-decoration: none;
    font-size: 22px;
    line-height: 120%;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.feedback-left .field-tel a:hover,
.feedback-left .field-mail a:hover {
    color: var(--hover);
}

.feedback-left .field-tel a::before,
.feedback-left .field-mail a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.feedback-left .field-tel a::before {
    background-image: url("/sites/all/themes/vesta_theme/image/Phone Fill.svg");
}

.feedback-left .field-mail a::before {
    background-image: url("/sites/all/themes/vesta_theme/image/Mail.svg");
}

/* map */
.feedback-right .region-map,
.feedback-right .block,
.feedback-right .field,
.feedback-right .field__item {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.feedback-right .text-formatted {
    margin: 0;
}

.feedback-right .mapContainer {
    width: 100% !important;
    height: 100% !important;
    min-height: 420px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e2e7f0;
    background: #f8f8fa;
}

.feedback-right iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 420px;
    border: 0;
}

/* скрыть help, если мешает дизайну */
.feedback-right .mapHelp {
    display: none !important;
}

/* CATALOG */

.catalog {
    padding-top: 80px;
    padding-bottom: 80px;
}

.catalog #block-block-catalog-on-front {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    row-gap: 32px;
    align-items: start;
}

.catalog #block-block-catalog-on-front > .block-title {
    grid-column: 1;
    font-family: var(--second-family);
    margin: 0;
    padding-top: 0;
    font-weight: 700;
    font-size: 48px;
    line-height: 100%;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--chernyy);
}

/* block-level contextual не должен влиять на поток */
.catalog #block-block-catalog-on-front > .contextual {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
}

/* внешняя Drupal-обертка view */
.catalog #block-block-catalog-on-front > div:last-child {
    grid-column: 1 / -1;
    min-width: 0;
}

/* view как нормальный контейнер */
.catalog #block-block-catalog-on-front .view.view-catalog {
    position: relative;
    min-width: 0;
}

/* contextual внутри view убираем из потока */
.catalog #block-block-catalog-on-front .view.view-catalog > .contextual {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 15;
}

/* кнопка "Смотреть все" */
.catalog .more-link {
    position: absolute;
    top: -74px;
    right: 0;
    margin: 0;
    z-index: 5;
}

.catalog .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px 2px;
    border: 1px solid var(--siniy);
    border-radius: 10px;
    background: transparent;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    color: var(--siniy);
    text-decoration: none;
    transition: all 0.3s ease;
}

.catalog .more-link a:hover {
    background: var(--hover);
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--hover);
}

/* сетка карточек */
.catalog .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.catalog .view-content > .views-row {
    min-width: 0;
    height: 100%;
}

/* карточка */
.catalog .view-content > .views-row > .taxonomy-term {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 270px;
    aspect-ratio: 1 / 1;
    background: #dfe4ec;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.catalog .view-content > .views-row > .taxonomy-term:hover {
    box-shadow: 0 0 15px 0 rgba(16, 30, 91, 0.5);
}

.catalog .view-content > .views-row > .taxonomy-term::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 30, 91, 0) 0%, rgba(0, 5, 25, 0.93) 100%);
    z-index: 1;
    pointer-events: none;
}

/* картинка */
.catalog .field--name-field-catalog-image {
    position: absolute;
    inset: 0;
}

.catalog .field--name-field-catalog-image,
.catalog .field--name-field-catalog-image .field__item,
.catalog .field--name-field-catalog-image a {
    display: block;
    height: 100%;
}

.catalog .field--name-field-catalog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

/* заголовок карточки */
.catalog .field--name-taxonomy-term-title {
    position: absolute;
    left: 20px;
    right: 84px;
    bottom: 18px;
    z-index: 2;
}

.catalog .field--name-taxonomy-term-title h2 {
    margin: 0;
}

.catalog .field--name-taxonomy-term-title a {
    font-family: var(--second-family);
    display: block;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.catalog .taxonomy-term:hover .field--name-taxonomy-term-title a {
    color: #9cc3ff;
}

/* кнопка-иконка карточки */
.catalog .field--name-taxonomy-term-link {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
}

.catalog .field--name-taxonomy-term-link a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    background: var(--fon);
    text-decoration: none;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.14);
    transition: background 0.3s ease, transform 0.3s ease;
}

.catalog .field--name-taxonomy-term-link a::before {
    content: "";
    width: 24px;
    height: 24px;
    background-color: #2d3f7a;
    -webkit-mask: url('/sites/all/themes/vesta_theme/image/arrow-up-right.svg') center / contain no-repeat;
    mask: url('/sites/all/themes/vesta_theme/image/arrow-up-right.svg') center / contain no-repeat;
    transition: background-color 0.3s ease;
}

.catalog .taxonomy-term:hover .field--name-taxonomy-term-link a {
    background: #3f67d7;
}

.catalog .taxonomy-term:hover .field--name-taxonomy-term-link a::before {
    background-color: #fff;
}

/* contextual внутри карточки убираем из потока */
.catalog .taxonomy-term > .contextual {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

/* на всякий случай убираем clearfix-псевдоэлементы именно у карточки */
.catalog .taxonomy-term::before {
    content: none !important;
    display: none !important;
}

/* PAGE CATALOG */

#block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

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

#block-vesta-theme-content .view-catalog.view-display-id-page .view-content > .views-row > .taxonomy-term {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 270px;
    aspect-ratio: 1 / 1;
    background: #dfe4ec;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .view-content > .views-row > .taxonomy-term:hover {
    box-shadow: 0 0 15px 0 rgba(16, 30, 91, 0.5);
}

#block-vesta-theme-content .view-catalog.view-display-id-page .view-content > .views-row > .taxonomy-term::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 30, 91, 0) 0%, rgba(0, 5, 25, 0.93) 100%);
    z-index: 1;
    pointer-events: none;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-image {
    position: absolute;
    inset: 0;
}

#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 {
    display: block;
    height: 100%;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-field-catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

/* Если нужен зум картинки при ховере — раскомментируй
#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term:hover .field--name-field-catalog-image img {
    transform: scale(1.05);
}
*/

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

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title h2 {
    margin: 0;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title a {
    display: block;
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term:hover .field--name-taxonomy-term-title a {
    color: #9cc3ff;
}

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

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-link a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    background: var(--fon);
    text-decoration: none;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.14);
    transition: background 0.3s ease, transform 0.3s ease;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-link a::before {
    content: "";
    width: 24px;
    height: 24px;
    background-color: #2d3f7a;
    -webkit-mask: url('/sites/all/themes/vesta_theme/image/arrow-up-right.svg') center / contain no-repeat;
    mask: url('/sites/all/themes/vesta_theme/image/arrow-up-right.svg') center / contain no-repeat;
    transition: background-color 0.3s ease;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term:hover .field--name-taxonomy-term-link a {
    background: #3f67d7;
}

#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term:hover .field--name-taxonomy-term-link a::before {
    background-color: #fff;
}

/* Чтобы не ломались contextual links в админке */
#block-vesta-theme-content .view-catalog.view-display-id-page .taxonomy-term > .contextual {
    position: relative;
    z-index: 5;
}

/* Apartments */

.block_apartments {
    padding-top: 80px;
    padding-bottom: 80px;
    background: #eef2f8;
}

/* Основной блок */
#block-block-apartments-on-front {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    row-gap: 28px;
    align-items: start;
}

/* block contextual не должен участвовать в сетке */
#block-block-apartments-on-front > .contextual {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
}

/* Заголовок */
#block-block-apartments-on-front .block-title {
    grid-column: 1;
    margin: 0;
    font-weight: 700;
    font-size: 48px;
    letter-spacing: -0.03em;
    color: var(--chernyy);
    text-transform: uppercase;
}

/* Внешняя Drupal-обёртка с view */
#block-block-apartments-on-front > div:last-child {
    grid-column: 1 / -1;
    min-width: 0;
}

/* View */
#block-block-apartments-on-front .view.view-tovary {
    position: relative;
    min-width: 0;
}

/* ===== Кнопка "Смотреть все" ===== */
#block-block-apartments-on-front .more-link {
    position: absolute;
    top: -70px;
    right: 0;
    margin: 0;
    z-index: 5;
}

#block-block-apartments-on-front .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid var(--siniy);
    border-radius: 10px;
    background: transparent;
    font-size: 18px;
    font-weight: 400;
    color: var(--siniy);
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

#block-block-apartments-on-front .more-link a:hover {
    background: var(--hover);
    color: #fff;
    border: 1px solid var(--hover);
}

/* ===== Сетка карточек ===== */
#block-block-apartments-on-front .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* ===== Карточка ===== */
#block-block-apartments-on-front .views-row {
    height: 100%;
}

#block-block-apartments-on-front .views-row > .commerce-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#block-block-apartments-on-front .views-row:hover > .commerce-product {
    box-shadow: 0 0 15px 0 rgba(16, 30, 91, 0.5);
}

/* ===== Изображение ===== */
#block-block-apartments-on-front .field--name-field-image-product-view {
    margin: 0;
}

#block-block-apartments-on-front .field--name-field-image-product-view img {
    display: block;
    width: 100%;
    height: 215px;
    object-fit: cover;
}

/* ===== Цена ===== */
#block-block-apartments-on-front .field--name-field-price {
    padding: 18px 16px 0;
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--chernyy);
}

#block-block-apartments-on-front .field--name-field-price span {
    font-weight: 700;
    font-size: 22px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/* ===== Тип / площадь / вместимость ===== */
#block-block-apartments-on-front .types {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 16px;
    margin: 0 0 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: #606060;
}

#block-block-apartments-on-front .types .field {
    display: inline-flex;
    align-items: center;
}

#block-block-apartments-on-front .types .field:not(:last-child)::after {
    content: "•";
    margin: 0 8px;
    color: var(--goluboy);
}

/* ===== Адрес ===== */
#block-block-apartments-on-front .field--name-field-address {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

#block-block-apartments-on-front .field--name-field-address::before {
    content: "";
    flex: 0 0 14px;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('/sites/all/themes/vesta_theme/image/Pin_fill.svg');
}

/* ===== Кнопка в карточке ===== */
#block-block-apartments-on-front .field--name-field-detail {
    margin-top: auto;
    padding: 0 16px 16px;
}

#block-block-apartments-on-front .field--name-field-detail a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    border-radius: 10px;
    background: var(--siniy);
    font-size: 18px;
    font-weight: 400;
    color: var(--fon);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: background 0.25s ease;
}

#block-block-apartments-on-front .field--name-field-detail a:hover {
    background: #0f1b57;
}

/* Чтобы не ломались contextual links в админке */
#block-block-apartments-on-front .commerce-product > .contextual {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

/* APARTMENTS PAGE */

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .views-row {
    height: 100%;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .views-row > .commerce-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .views-row:hover > .commerce-product {
    box-shadow: 0 0 15px 0 rgba(16, 30, 91, 0.5);
}

/* Изображение */
#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-image-product-view {
    margin: 0;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-image-product-view img {
    display: block;
    width: 100%;
    height: 215px;
    object-fit: cover;
}

/* Цена */
#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-price {
    padding: 18px 16px 0;
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--chernyy);
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-price span {
    font-weight: 700;
    font-size: 22px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/* Тип / площадь / вместимость */
#block-vesta-theme-content .view-tovary.view-display-id-page_1 .types {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 16px;
    margin: 0 0 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: #606060;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .types .field {
    display: inline-flex;
    align-items: center;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .types .field:not(:last-child)::after {
    content: "•";
    margin: 0 8px;
    color: var(--goluboy);
}

/* Адрес */
#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-address {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-address::before {
    content: "";
    flex: 0 0 14px;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('/sites/all/themes/vesta_theme/image/Pin_fill.svg');
}

/* Кнопка */
#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-detail {
    margin-top: auto;
    padding: 0 16px 16px;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-detail a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    border-radius: 10px;
    background: var(--siniy);
    font-size: 18px;
    font-weight: 400;
    color: var(--fon);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: background 0.25s ease;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-detail a:hover {
    background: #0f1b57;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .views-row > .commerce-product {
    position: relative;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_1 .commerce-product > .contextual {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

/* ===== APARTMENTS PAGE 2 ===== */

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .view-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .views-row {
    height: 100%;
}

/* Карточка */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .views-row > .product-teaser.flex {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .views-row:hover > .product-teaser.flex {
    box-shadow: 0 0 15px 0 rgba(16, 30, 91, 0.5);
}

/* Внутренняя обёртка с полями */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .views-row > .product-teaser.flex > div:not(.contextual) {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

/* Contextual links */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .views-row > .product-teaser.flex > .contextual {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

/* Изображение */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-image-product-view {
    margin: 0;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-image-product-view img {
    display: block;
    width: 100%;
    height: 215px;
    object-fit: cover;
}

/* Цена */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-price {
    padding: 18px 16px 0;
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--chernyy);
}

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-price span {
    font-weight: 700;
    font-size: 22px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/* Тип / площадь / вместимость */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .types {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 16px;
    margin: 0 0 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: #606060;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .types .field {
    display: inline-flex;
    align-items: center;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .types .field:not(:last-child)::after {
    content: "•";
    margin: 0 8px;
    color: var(--goluboy);
}

/* Адрес */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-address {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-address::before {
    content: "";
    flex: 0 0 14px;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('/sites/all/themes/vesta_theme/image/Pin_fill.svg');
}

/* Кнопка */
#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-detail {
    margin-top: auto;
    padding: 0 16px 16px;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-detail a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    border-radius: 10px;
    background: var(--siniy);
    font-size: 18px;
    font-weight: 400;
    color: var(--fon);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: background 0.25s ease;
}

#block-vesta-theme-content .view-tovary.view-display-id-page_2 .field--name-field-detail a:hover {
    background: #0f1b57;
}

/* ===== Apartment full page ===== */

/*#block-vesta-theme-content article.product-view-full {*/
/*    max-width: 1440px;*/
/*    margin: 0 auto;*/
/*    padding: 40px 16px 80px;*/
/*}*/

/* Общий layout: фото слева, инфо справа */
#block-vesta-theme-content article.product-view-full .product-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 420px;
    gap: 32px;
    align-items: start;
}

/* Левая колонка с галереей */
#block-vesta-theme-content article.product-view-full .product-teaser-image {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 30, 91, 0.08);
}

/* Правая колонка */
#block-vesta-theme-content article.product-view-full .product-teaser-info {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 30, 91, 0.08);
}

/* Заголовок */
#block-vesta-theme-content article.product-view-full .product-teaser-info .field--name-title {
    margin: 0;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--chernyy);
}

/* Описание */
#block-vesta-theme-content article.product-view-full .field--name-field-description-apartments {
    font-size: 16px;
    line-height: 1.75;
    color: #606060;
}

#block-vesta-theme-content article.product-view-full .field--name-field-description-apartments > div + div {
    margin-top: 10px;
}

/* Цена */
#block-vesta-theme-content article.product-view-full .field--name-field-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e6eaf2;
    font-size: 18px;
    line-height: 1.35;
    color: #606060;
}

#block-vesta-theme-content article.product-view-full .field--name-field-price span {
    font-weight: 700;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--siniy);
}

/* Прячем исходное поле фото, JS сам соберёт галерею */
#block-vesta-theme-content article.product-view-full .field--name-field-photo-apartment {
    display: none;
}

/* ===== Main slider ===== */
#block-vesta-theme-content article.product-view-full .current-slide {
    position: relative;
}

#block-vesta-theme-content article.product-view-full .current-slide .gallery-slide {
    outline: none;
}

#block-vesta-theme-content article.product-view-full .current-slide .gallery-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 620px;
    overflow: hidden;
    background: #f4f6fb;
    border-radius: 16px;
}

#block-vesta-theme-content article.product-view-full .current-slide .gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Thumbnails ===== */
#block-vesta-theme-content article.product-view-full .nav-slide {
    margin-top: 14px;
}

#block-vesta-theme-content article.product-view-full .nav-slide .gallery-thumb {
    padding: 0 6px;
    cursor: pointer;
    outline: none;
}

#block-vesta-theme-content article.product-view-full .nav-slide .gallery-thumb img {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: 0.2s ease;
}

#block-vesta-theme-content article.product-view-full .nav-slide .slick-current img {
    border-color: var(--siniy);
    transform: scale(1.02);
}

/* ===== Slick arrows ===== */
#block-vesta-theme-content article.product-view-full .slick-prev,
#block-vesta-theme-content article.product-view-full .slick-next {
    z-index: 3;
    width: 44px;
    height: 44px;
}

#block-vesta-theme-content article.product-view-full .slick-prev:before,
#block-vesta-theme-content article.product-view-full .slick-next:before {
    font-size: 24px;
    opacity: 1;
    color: var(--siniy);
}

#block-vesta-theme-content article.product-view-full .slick-prev {
    left: 12px;
}

#block-vesta-theme-content article.product-view-full .slick-next {
    right: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    #block-vesta-theme-content article.product-view-full .product-teaser {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    #block-vesta-theme-content article.product-view-full .current-slide .gallery-slide a {
        height: 540px;
    }
}

@media (max-width: 992px) {
    #block-vesta-theme-content article.product-view-full .product-teaser {
        grid-template-columns: 1fr;
    }

    #block-vesta-theme-content article.product-view-full .product-teaser-info {
        position: static;
    }

    #block-vesta-theme-content article.product-view-full .current-slide .gallery-slide a {
        height: 420px;
    }
}

@media (max-width: 576px) {
    #block-vesta-theme-content article.product-view-full {
        padding: 24px 12px 60px;
    }

    #block-vesta-theme-content article.product-view-full .product-teaser-image {
        padding: 12px;
    }

    #block-vesta-theme-content article.product-view-full .product-teaser-info {
        padding: 20px 16px;
    }

    #block-vesta-theme-content article.product-view-full .product-teaser-info .field--name-title {
        font-size: 30px;
    }

    #block-vesta-theme-content article.product-view-full .current-slide .gallery-slide a {
        height: 300px;
    }

    #block-vesta-theme-content article.product-view-full .nav-slide .gallery-thumb img {
        height: 66px;
    }

    #block-vesta-theme-content article.product-view-full .field--name-field-price span {
        font-size: 34px;
    }
}


/* ABOUT */

.about {
    padding-bottom: 80px;
}

.wr_front_content * {
    box-sizing: border-box;
}

#block-vesta-theme-block-about .block-content--type-block-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 42px;
    align-items: start;
}

#block-vesta-theme-block-about .group-left {
    padding-top: 33px;
    min-width: 0;
}

#block-vesta-theme-block-about .about_top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 40px;
}

#block-vesta-theme-block-about .field--name-field-about-title {
    margin: 0;
    font-size: 48px;
    line-height: 100%;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--chernyy);
    font-family: var(--second-family);
}

#block-vesta-theme-block-about .field--name-field-about-btn {
    margin: 0;
}

#block-vesta-theme-block-about .field--name-field-about-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--siniy);
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    color: var(--siniy);
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#block-vesta-theme-block-about .field--name-field-about-btn a:hover {
    background: var(--hover);
    color: #fff;
    border-color: var(--hover);
}

#block-vesta-theme-block-about .field--name-field-about-text {
    max-width: 770px;
    margin: 0;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

#block-vesta-theme-block-about .field--name-field-achievements {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 40px;
}

#block-vesta-theme-block-about .field--name-field-achievements > .field__item {
    min-width: 0;
    padding: 0 22px 0 0;
}

#block-vesta-theme-block-about .field--name-field-achievements > .field__item + .field__item {
    border-left: 2px solid #cbc6c3;
    padding-left: 12px;
}

#block-vesta-theme-block-about .paragraph--type--achievement {
    display: flex;
    flex-direction: column;
}

#block-vesta-theme-block-about .field--name-field-achievement-title {
    font-family: var(--second-family);
    margin: 0 0 12px;
    font-size: 56px;
    line-height: 100%;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--goluboy);
}

#block-vesta-theme-block-about .field--name-field-achievement-text {
    margin: 0;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

#block-vesta-theme-block-about .group-right {
    width: 370px;
}

#block-vesta-theme-block-about .field--name-field-achievement-img,
#block-vesta-theme-block-about .field--name-field-achievement-img .field__item {
    height: 100%;
}

#block-vesta-theme-block-about .image-style-about-img {
    display: block;
    width: 100%;
    height: 334px;
    object-fit: cover;
    border-radius: 18px;
}

/* Чтобы админские contextual-элементы не ломали визуал */
#block-vesta-theme-block-about .contextual {
    position: absolute;
}

#block-vesta-theme-block-about .field--name-field-achievements > .field__item:first-child {
    border-left: 2px solid #cbc6c3;
    padding-left: 12px;
}

.ds-2col > .group-left {
    width: 100%;
}

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

/* page spacing */
main#main .wr_content {
    padding: 32px 0 80px;
}

/* breadcrumbs */
#block-vesta-theme-strokanavigacii {
    margin: 0 0 20px;
}

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

#block-vesta-theme-strokanavigacii .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: #8c93a3;
}

#block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: #b2b8c5;
}

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

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

/* title */
#block-vesta-theme-page-title {
    margin: 0 0 32px;
}

#block-vesta-theme-page-title h1 {
    margin: 0;
    font-family: var(--second-family);
    font-size: 48px;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--chernyy);
}

/* ========================================
   SEARCH FORM
   scoped only to content search block
======================================== */

#block-vesta-theme-content > form.search-api-page-block-form-search {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid #e2e7f0;
    border-radius: 18px;
    background: var(--fon);
}

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

#block-vesta-theme-content > form.search-api-page-block-form-search .form-search {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: var(--chernyy);
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 52px;
    letter-spacing: -0.02em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#block-vesta-theme-content > form.search-api-page-block-form-search .form-search::placeholder {
    color: #8c93a3;
    opacity: 1;
}

#block-vesta-theme-content > form.search-api-page-block-form-search .form-search:focus {
    outline: none;
    border-color: #c8d3e4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(93, 128, 182, 0.10);
}

#block-vesta-theme-content > form.search-api-page-block-form-search .form-actions {
    flex: 0 0 auto;
    margin: 0;
}

#block-vesta-theme-content > form.search-api-page-block-form-search .search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--siniy);
    color: var(--fon);
    font-size: 18px;
    line-height: 100%;
    font-weight: 400;
    letter-spacing: -0.02em;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}

#block-vesta-theme-content > form.search-api-page-block-form-search .search-form__submit:hover {
    background: var(--hover);
    color: var(--fon);
}

#block-vesta-theme-content > form.search-api-page-block-form-search .search-form__submit:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 30, 91, 0.12);
}

/* ========================================
   SEARCH RESULTS
======================================== */

#block-vesta-theme-content > form.search-api-page-block-form-search + h2 {
    margin: 0 0 10px;
    font-family: var(--second-family);
    font-size: 32px;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--chernyy);
}

#block-vesta-theme-content > form.search-api-page-block-form-search + h2 + p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: #6e7687;
}

/* result card top */
#block-vesta-theme-content > h3 {
    margin: 0;
    padding: 24px 24px 24px;
    background: #dfe5ef;
    border-radius: 18px;
    transition: background 0.2s ease;
}

#block-vesta-theme-content > h3:not(:first-of-type) {
    margin-top: 18px;
}

#block-vesta-theme-content > h3 a {
    display: inline-block;
    color: var(--chernyy);
    text-decoration: none;
    font-family: var(--second-family);
    font-size: 28px;
    line-height: 100%;
    font-weight: 700;
    letter-spacing: -0.03em;
    transition: color 0.2s ease;
}

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

/* result card bottom */
#block-vesta-theme-content > h3 + p {
    margin: 0;
    padding: 0 24px 24px;
    background: #dfe5ef;
    border-radius: 0 0 18px 18px;
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/* empty description */
#block-vesta-theme-content > h3 + p:empty {
    min-height: 18px;
    display: none;
}

/* hover whole card */
#block-vesta-theme-content > h3:hover,
#block-vesta-theme-content > h3:hover + p {
    background: #d7deea;
}

/* no results */
#block-vesta-theme-content .search-api-page-results-empty {
    padding: 24px;
    border: 1px solid #e2e7f0;
    border-radius: 18px;
    background: var(--fon);
    font-size: 16px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/* FEEDBACK BLOCK */

.feedback-section {
    padding: 0 0 80px;
}


.feedback-left {
    flex: 0 0 46%;
}

.feedback-right {
    flex: 0 0 54%;
    max-width: 54%;
}

/* Левая часть */
.feedback-title {
    font-family: var(--second-family);
    margin: 0 0 34px;
    font-size: 48px;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--chernyy);
    letter-spacing: -0.03em;
}

.feedback-contact + .feedback-contact {
    margin-top: 18px;
}

.feedback-contact a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1f2027;
    text-decoration: none;
}

.feedback-contact__icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.feedback-contact--mail .feedback-contact__icon {
    background-image: url("../image/Mail.svg");
}

.feedback-contact--phone .feedback-contact__icon {
    background-image: url("../image/Phone Fill.svg");
}

.feedback-contact__icon svg,
.feedback-contact__icon img {
    display: block;
    width: 18px;
    height: 18px;
}

.feedback-contact__text {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 500;
    color: #1f2027;
}

/* Правая часть */
.feedback-right .region-feedback {
    width: 100%;
}

.feedback-right .block-webform {
    margin: 0;
}

.feedback-right .contextual,
.feedback-right .contextual-links,
.feedback-right button.trigger.contextual {
    display: none !important;
}

/* Форма */
.feedback-right .webform-submission-form {
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 18px;
    padding: 12px 12px 14px;
    box-shadow: none;
}

/* Общие отступы элементов */
.feedback-right .form-item {
    margin: 0 0 10px;
}

.feedback-right .webform-flexbox {
    margin: 0 0 10px;
}

.feedback-right .webform-flexbox > .webform-flex {
    margin: 0;
}

.feedback-right .webform-flexbox > .webform-flex + .webform-flex {
    margin-left: 10px;
}

/* Поля */
.feedback-right input[type="text"],
.feedback-right input[type="email"],
.feedback-right input[type="tel"],
.feedback-right textarea {
    display: block;
    width: 100%;
    padding: 0 16px;
    background: #f2f2f2;
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: none;
    color: #828282;
    font-size: 16px;
    letter-spacing: -0.02em;
    font-weight: 400;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

/* Высота инпутов */
.feedback-right input[type="text"],
.feedback-right input[type="email"],
.feedback-right input[type="tel"] {
    height: 40px;
    line-height: 40px;
}

/* textarea */
.feedback-right textarea {
    min-height: 66px;
    max-height: 160px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.35;
}

/* placeholder */
.feedback-right input::placeholder,
.feedback-right textarea::placeholder {
    color: #8e8e8e;
    opacity: 1;
}

/* focus */
.feedback-right input:focus,
.feedback-right textarea:focus {
    outline: none;
    border-color: #c9c9c9;
    background: #f2f2f2;
    box-shadow: none;
}

/* Убираем лишние bootstrap-эффекты Drupal */
.feedback-right .form-control:focus {
    box-shadow: none;
}

/* Checkbox блок */
.feedback-right .form-item-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 18px;
}

.feedback-right .form-item-privacy > input.form-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    box-sizing: border-box;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    cursor: pointer;

    width: 20px;
    height: 18px;
    background: #fff;
    border: 1px solid var(--goluboy);
    border-radius: 2px;
}

.feedback-right .form-item-privacy > input.form-checkbox:checked {
    background: #fff;
    border-color: var(--siniy);
}

.feedback-right .form-item-privacy > input.form-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 13px;
    height: 9px;
    background-color: var(--siniy);

    -webkit-mask: url("data:image/svg+xml,%3Csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4697 0.21967C11.7626 -0.0732233 12.2373 -0.0732233 12.5302 0.21967C12.8231 0.512563 12.8231 0.987324 12.5302 1.28022L5.03022 8.78022C4.73732 9.07311 4.26256 9.07311 3.96967 8.78022L0.21967 5.03022C-0.0732233 4.73732 -0.0732233 4.26256 0.21967 3.96967C0.512563 3.67678 0.987324 3.67678 1.28022 3.96967L4.49994 7.1894L11.4697 0.21967Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4697 0.21967C11.7626 -0.0732233 12.2373 -0.0732233 12.5302 0.21967C12.8231 0.512563 12.8231 0.987324 12.5302 1.28022L5.03022 8.78022C4.73732 9.07311 4.26256 9.07311 3.96967 8.78022L0.21967 5.03022C-0.0732233 4.73732 -0.0732233 4.26256 0.21967 3.96967C0.512563 3.67678 0.987324 3.67678 1.28022 3.96967L4.49994 7.1894L11.4697 0.21967Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

#edit-privacy:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 47, 122, 0.15);
}

.feedback-right .form-item-privacy .description {
    margin: 0;
}

.feedback-right .form-item-privacy .webform-element-description {
    font-size: 14px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/*.feedback-right .form-item-privacy .webform-element-description span:last-child {*/
/*    text-decoration: underline;*/
/*}*/

/* ссылка в тексте согласия */
.webform-element-description a {
    position: relative;
    display: inline-block;
    color: var(--siniy);
    text-decoration: none;
    transition: color 0.25s ease;
}

.webform-element-description a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.webform-element-description a:hover {
    color: var(--hover);
}

.webform-element-description a:hover::after {
    transform: scaleX(1);
    background: currentColor;
}

/* Кнопка */
.feedback-right .form-actions {
    margin: 0;
    text-align: center;
}

.feedback-right .webform-button--submit,
.feedback-right .button--primary,
.feedback-right .form-submit {
    min-width: 125px;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--siniy);
    color: var(--fon);
    font-size: 18px;
    line-height: 42px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    box-shadow: none;
    transition: background 0.2s ease;
}

.feedback-right .webform-button--submit:hover,
.feedback-right .button--primary:hover,
.feedback-right .form-submit:hover {
    background: #162866;
}

.feedback-right .webform-button--submit:focus,
.feedback-right .button--primary:focus,
.feedback-right .form-submit:focus {
    outline: none;
    box-shadow: none;
}

/* Немного уже сообщение, как на скрине */
.feedback-right .js-form-item-message textarea {
    min-height: 66px;
}

.feedback-right .webform-flexbox {
    display: flex;
    gap: 10px;
    margin: 0 0 10px !important;
}

.feedback-right .webform-flexbox > .webform-flex {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
}

.feedback-right .webform-flexbox > .webform-flex > .webform-flex--container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.feedback-right .webform-flexbox .form-item {
    margin: 0;
}

.feedback-right .form-item--error-message,
.feedback-right strong.error,
.feedback-right label.error {
    display: none !important;
}

.feedback-right input.form-control.error,
.feedback-right textarea.form-control.error,
.feedback-right input.form-text.error,
.feedback-right input.form-email.error,
.feedback-right .js-webform-input-mask.error {
    border: 1px solid #d94b4b !important;
    background: #fff6f6 !important;
    box-shadow: none !important;
    color: inherit;
}

.feedback-right textarea.error {
    border: 1px solid #d94b4b !important;
    background: #fff6f6 !important;
    box-shadow: none !important;
}

.feedback-right .form-item-privacy > input.form-checkbox.error {
    border: 1px solid #d94b4b !important;
    background: #fff6f6 !important;
}

.feedback-right input.error:focus,
.feedback-right textarea.error:focus,
.feedback-right input.form-checkbox.error:focus {
    border-color: #d94b4b !important;
    box-shadow: 0 0 0 2px rgba(217, 75, 75, 0.12) !important;
    outline: none;
}

.feedback-right .webform-flexbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px !important;
}

.feedback-right .webform-flexbox > .webform-flex {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feedback-right .webform-flexbox > .webform-flex > .webform-flex--container,
.feedback-right .webform-flexbox > .webform-flex .form-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* На случай, если у телефона есть дополнительная Drupal/Webform-обертка */
.feedback-right .webform-flexbox .form-item input,
.feedback-right .webform-flexbox .form-item .form-control,
.feedback-right .webform-flexbox .form-item .js-webform-input-mask,
.feedback-right .webform-flexbox .form-item .iti,
.feedback-right .webform-flexbox .form-item .intl-tel-input {
    margin-top: 0 !important;
}

.feedback-map {
    margin-top: 40px;
    width: 100%;
}

.feedback-map .region-map,
.feedback-map .block,
.feedback-map .field,
.feedback-map .field__item {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.feedback-map .mapContainer {
    width: 100% !important;
    height: 350px !important;
    overflow: hidden;
    border-radius: 12px;
}

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

/* PAGE FORM */

/* =========================
   ОБЩИЕ СТИЛИ ДЛЯ ДВУХ ФОРМ
   ========================= */

.feedback-right .webform-submission-form,
.webform-submission-reserve-room-form {
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 18px;
    padding: 12px 12px 14px;
    box-shadow: none;
}

/* Общие отступы */
.feedback-right .form-item,
.webform-submission-reserve-room-form .form-item {
    margin: 0 0 10px;
}

/* Flex-блок */
.feedback-right .webform-flexbox,
.webform-submission-reserve-room-form .webform-flexbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px !important;
}

.feedback-right .webform-flexbox > .webform-flex,
.webform-submission-reserve-room-form .webform-flexbox > .webform-flex {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feedback-right .webform-flex--container,
.webform-submission-reserve-room-form .webform-flex--container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.feedback-right .webform-flexbox .form-item,
.webform-submission-reserve-room-form .webform-flexbox .form-item {
    margin: 0;
}

/* Поля */
.feedback-right input[type="text"],
.feedback-right input[type="email"],
.feedback-right input[type="tel"],
.feedback-right textarea,
.feedback-right .js-webform-input-mask,
.webform-submission-reserve-room-form input[type="text"],
.webform-submission-reserve-room-form input[type="email"],
.webform-submission-reserve-room-form input[type="tel"],
.webform-submission-reserve-room-form textarea,
.webform-submission-reserve-room-form .js-webform-input-mask {
    display: block;
    width: 100%;
    padding: 0 16px;
    background: #f2f2f2;
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: none;
    color: #828282;
    font-size: 16px;
    letter-spacing: -0.02em;
    font-weight: 400;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

/* Высота input */
.feedback-right input[type="text"],
.feedback-right input[type="email"],
.feedback-right input[type="tel"],
.feedback-right .js-webform-input-mask,
.webform-submission-reserve-room-form input[type="text"],
.webform-submission-reserve-room-form input[type="email"],
.webform-submission-reserve-room-form input[type="tel"],
.webform-submission-reserve-room-form .js-webform-input-mask {
    height: 40px;
    line-height: 40px;
}

/* textarea */
.feedback-right textarea,
.webform-submission-reserve-room-form textarea {
    min-height: 66px;
    max-height: 160px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: none !important;
    line-height: 1.35;
}

/* placeholder */
.feedback-right input::placeholder,
.feedback-right textarea::placeholder,
.webform-submission-reserve-room-form input::placeholder,
.webform-submission-reserve-room-form textarea::placeholder {
    color: #8e8e8e;
    opacity: 1;
}

/* focus */
.feedback-right input:focus,
.feedback-right textarea:focus,
.webform-submission-reserve-room-form input:focus,
.webform-submission-reserve-room-form textarea:focus {
    outline: none;
    border-color: #c9c9c9;
    background: #f2f2f2;
    box-shadow: none;
}

.feedback-right .form-control:focus,
.webform-submission-reserve-room-form .form-control:focus {
    box-shadow: none !important;
}

/* Сообщение */
.feedback-right .js-form-item-message textarea,
.webform-submission-reserve-room-form .js-form-item-message textarea {
    min-height: 66px;
}

/* =========================
   ОШИБКИ
   ========================= */

/* Верхний alert */
.feedback-right .alert,
.feedback-right .alert-danger,
.feedback-right .alert-error,
.feedback-right .alert-dismissible,
.webform-submission-reserve-room-form .alert,
.webform-submission-reserve-room-form .alert-danger,
.webform-submission-reserve-room-form .alert-error,
.webform-submission-reserve-room-form .alert-dismissible {
    display: none !important;
}

/* Текст ошибок под полями */
.feedback-right .form-item--error-message,
.feedback-right .form-item--error-message strong,
.feedback-right strong.error,
.feedback-right label.error,
.webform-submission-reserve-room-form .form-item--error-message,
.webform-submission-reserve-room-form .form-item--error-message strong,
.webform-submission-reserve-room-form strong.error,
.webform-submission-reserve-room-form label.error {
    display: none !important;
}

/* Чтобы не ломалась сетка */
.feedback-right .form-item--error,
.webform-submission-reserve-room-form .form-item--error {
    margin-bottom: 10px !important;
}

/* Ошибочные поля */
.feedback-right input.error,
.feedback-right textarea.error,
.feedback-right input[aria-invalid="true"],
.feedback-right textarea[aria-invalid="true"],
.feedback-right input.form-control.error,
.feedback-right textarea.form-control.error,
.feedback-right input.form-text.error,
.feedback-right input.form-email.error,
.feedback-right .js-webform-input-mask.error,
.feedback-right .js-webform-input-mask[aria-invalid="true"],
.webform-submission-reserve-room-form input.error,
.webform-submission-reserve-room-form textarea.error,
.webform-submission-reserve-room-form input[aria-invalid="true"],
.webform-submission-reserve-room-form textarea[aria-invalid="true"],
.webform-submission-reserve-room-form input.form-control.error,
.webform-submission-reserve-room-form textarea.form-control.error,
.webform-submission-reserve-room-form input.form-text.error,
.webform-submission-reserve-room-form input.form-email.error,
.webform-submission-reserve-room-form .js-webform-input-mask.error,
.webform-submission-reserve-room-form .js-webform-input-mask[aria-invalid="true"] {
    border: 1px solid #d94b4b !important;
    background: #fff6f6 !important;
    box-shadow: none !important;
    color: inherit !important;
}

/* focus у ошибочных */
.feedback-right input.error:focus,
.feedback-right textarea.error:focus,
.feedback-right input[aria-invalid="true"]:focus,
.feedback-right textarea[aria-invalid="true"]:focus,
.feedback-right .js-webform-input-mask.error:focus,
.feedback-right .js-webform-input-mask[aria-invalid="true"]:focus,
.webform-submission-reserve-room-form input.error:focus,
.webform-submission-reserve-room-form textarea.error:focus,
.webform-submission-reserve-room-form input[aria-invalid="true"]:focus,
.webform-submission-reserve-room-form textarea[aria-invalid="true"]:focus,
.webform-submission-reserve-room-form .js-webform-input-mask.error:focus,
.webform-submission-reserve-room-form .js-webform-input-mask[aria-invalid="true"]:focus {
    border-color: #d94b4b !important;
    box-shadow: 0 0 0 2px rgba(217, 75, 75, 0.12) !important;
    outline: none;
}

/* =========================
   CHECKBOX
   ========================= */

.feedback-right .form-item-privacy,
.webform-submission-reserve-room-form .form-item-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 18px;
}

.feedback-right .form-item-privacy > input.form-checkbox,
.webform-submission-reserve-room-form .form-item-privacy > input.form-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 18px;
    background: #fff;
    border: 1px solid var(--goluboy);
    border-radius: 2px;
    flex: 0 0 auto;
}

.feedback-right .form-item-privacy > input.form-checkbox:checked,
.webform-submission-reserve-room-form .form-item-privacy > input.form-checkbox:checked {
    background: #fff;
    border-color: var(--siniy);
}

.feedback-right .form-item-privacy > input.form-checkbox:checked::after,
.webform-submission-reserve-room-form .form-item-privacy > input.form-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 13px;
    height: 9px;
    background-color: var(--siniy);
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4697 0.21967C11.7626 -0.0732233 12.2373 -0.0732233 12.5302 0.21967C12.8231 0.512563 12.8231 0.987324 12.5302 1.28022L5.03022 8.78022C4.73732 9.07311 4.26256 9.07311 3.96967 8.78022L0.21967 5.03022C-0.0732233 4.73732 -0.0732233 4.26256 0.21967 3.96967C0.512563 3.67678 0.987324 3.67678 1.28022 3.96967L4.49994 7.1894L11.4697 0.21967Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4697 0.21967C11.7626 -0.0732233 12.2373 -0.0732233 12.5302 0.21967C12.8231 0.512563 12.8231 0.987324 12.5302 1.28022L5.03022 8.78022C4.73732 9.07311 4.26256 9.07311 3.96967 8.78022L0.21967 5.03022C-0.0732233 4.73732 -0.0732233 4.26256 0.21967 3.96967C0.512563 3.67678 0.987324 3.67678 1.28022 3.96967L4.49994 7.1894L11.4697 0.21967Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

.feedback-right .form-item-privacy > input.form-checkbox:focus-visible,
.webform-submission-reserve-room-form .form-item-privacy > input.form-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 47, 122, 0.15);
}

/* Ошибка checkbox */
.feedback-right .form-item-privacy > input.form-checkbox.error,
.feedback-right .form-item-privacy > input.form-checkbox[aria-invalid="true"],
.webform-submission-reserve-room-form .form-item-privacy > input.form-checkbox.error,
.webform-submission-reserve-room-form .form-item-privacy > input.form-checkbox[aria-invalid="true"] {
    border: 1px solid #d94b4b !important;
    background: #fff6f6 !important;
}

.feedback-right .form-item-privacy .description,
.webform-submission-reserve-room-form .form-item-privacy .description {
    margin: 0;
}

.feedback-right .form-item-privacy .webform-element-description,
.webform-submission-reserve-room-form .form-item-privacy .webform-element-description {
    font-size: 14px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/* Ссылка в тексте согласия */
.feedback-right .webform-element-description a,
.webform-submission-reserve-room-form .webform-element-description a {
    position: relative;
    display: inline-block;
    color: var(--siniy);
    text-decoration: none;
    transition: color 0.25s ease;
}

.feedback-right .webform-element-description a::after,
.webform-submission-reserve-room-form .webform-element-description a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.feedback-right .webform-element-description a:hover,
.webform-submission-reserve-room-form .webform-element-description a:hover {
    color: var(--hover);
}

.feedback-right .webform-element-description a:hover::after,
.webform-submission-reserve-room-form .webform-element-description a:hover::after {
    background: currentColor;
}

/* =========================
   КНОПКА
   ========================= */

.feedback-right .form-actions,
.webform-submission-reserve-room-form .form-actions {
    margin: 0;
    text-align: center;
}

.feedback-right .webform-button--submit,
.feedback-right .button--primary,
.feedback-right .form-submit,
.webform-submission-reserve-room-form .webform-button--submit,
.webform-submission-reserve-room-form .button--primary,
.webform-submission-reserve-room-form .form-submit {
    min-width: 125px;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--siniy);
    color: var(--fon);
    font-size: 18px;
    line-height: 42px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    box-shadow: none;
    transition: background 0.2s ease;
}

.feedback-right .webform-button--submit:hover,
.feedback-right .button--primary:hover,
.feedback-right .form-submit:hover,
.webform-submission-reserve-room-form .webform-button--submit:hover,
.webform-submission-reserve-room-form .button--primary:hover,
.webform-submission-reserve-room-form .form-submit:hover {
    background: #162866;
}

.feedback-right .webform-button--submit:focus,
.feedback-right .button--primary:focus,
.feedback-right .form-submit:focus,
.webform-submission-reserve-room-form .webform-button--submit:focus,
.webform-submission-reserve-room-form .button--primary:focus,
.webform-submission-reserve-room-form .form-submit:focus {
    outline: none;
    box-shadow: none;
}

/* FIX: выравниваем именно телефон и почту */
.feedback-right #edit-flexbox,
.webform-submission-reserve-room-form #edit-flexbox {
    display: flex;
    align-items: stretch !important;
}

.feedback-right #edit-flexbox > .webform-flex,
.webform-submission-reserve-room-form #edit-flexbox > .webform-flex {
    display: flex;
    align-items: stretch !important;
}

.feedback-right #edit-flexbox > .webform-flex > .webform-flex--container,
.webform-submission-reserve-room-form #edit-flexbox > .webform-flex > .webform-flex--container {
    display: flex;
    width: 100%;
}

.feedback-right .js-form-item-phone,
.feedback-right .js-form-item-email,
.webform-submission-reserve-room-form .js-form-item-phone,
.webform-submission-reserve-room-form .js-form-item-email {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 40px;
    position: relative;
    top: 0 !important;
}

.feedback-right #edit-phone,
.feedback-right #edit-email,
.webform-submission-reserve-room-form #edit-phone,
.webform-submission-reserve-room-form #edit-email {
    display: block;
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    line-height: 40px !important;
    box-sizing: border-box;
    vertical-align: top;
    -webkit-appearance: none;
    appearance: none;
}

/* === FIX DRUPAL WEBFORM: телефон и почта всегда одной высоты === */

.feedback-right [data-drupal-selector="edit-flexbox"],
.webform-submission-reserve-room-form [data-drupal-selector="edit-flexbox"] {
    display: flex;
    align-items: flex-start !important;
    gap: 10px;
}

.feedback-right [data-drupal-selector="edit-flexbox"] > .webform-flex,
.webform-submission-reserve-room-form [data-drupal-selector="edit-flexbox"] > .webform-flex {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start !important;
}

.feedback-right [data-drupal-selector="edit-flexbox"] .webform-flex--container,
.webform-submission-reserve-room-form [data-drupal-selector="edit-flexbox"] .webform-flex--container {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Контейнеры именно двух полей */
.feedback-right .js-form-item-phone,
.feedback-right .js-form-item-email,
.webform-submission-reserve-room-form .js-form-item-phone,
.webform-submission-reserve-room-form .js-form-item-email {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 40px !important;
    box-sizing: border-box;
}

/* Ошибка не должна менять размер контейнера */
.feedback-right .js-form-item-phone.form-item--error,
.feedback-right .js-form-item-email.form-item--error,
.webform-submission-reserve-room-form .js-form-item-phone.form-item--error,
.webform-submission-reserve-room-form .js-form-item-email.form-item--error {
    margin: 0 !important;
    min-height: 40px !important;
}

/* Сами input — и обычное, и ошибочное состояние */
.feedback-right input[data-drupal-selector="edit-phone"],
.feedback-right input[data-drupal-selector="edit-email"],
.feedback-right input[data-drupal-selector="edit-phone"].error,
.feedback-right input[data-drupal-selector="edit-email"].error,
.feedback-right input[data-drupal-selector="edit-phone"][aria-invalid="true"],
.feedback-right input[data-drupal-selector="edit-email"][aria-invalid="true"],
.webform-submission-reserve-room-form input[data-drupal-selector="edit-phone"],
.webform-submission-reserve-room-form input[data-drupal-selector="edit-email"],
.webform-submission-reserve-room-form input[data-drupal-selector="edit-phone"].error,
.webform-submission-reserve-room-form input[data-drupal-selector="edit-email"].error,
.webform-submission-reserve-room-form input[data-drupal-selector="edit-phone"][aria-invalid="true"],
.webform-submission-reserve-room-form input[data-drupal-selector="edit-email"][aria-invalid="true"] {
    display: block;
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 16px !important;
    line-height: 40px !important;
    box-sizing: border-box !important;
    border-width: 1px !important;
    margin: 0 !important;
    vertical-align: top;
    flex-shrink: 0;
}

/* Даже если Drupal рендерит текст ошибки, он не должен ломать линию */
.feedback-right .js-form-item-phone .form-item--error-message,
.feedback-right .js-form-item-email .form-item--error-message,
.webform-submission-reserve-room-form .js-form-item-phone .form-item--error-message,
.webform-submission-reserve-room-form .js-form-item-email .form-item--error-message {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================
   MODAL CALLBACK FORM FIX
   ========================= */

.webform-submission-callback-form [data-drupal-selector="edit-flexbox"] {
    display: flex;
    align-items: flex-start !important;
    gap: 10px;
    margin: 0 0 10px !important;
}

.webform-submission-callback-form [data-drupal-selector="edit-flexbox"] > .webform-flex {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    display: flex;
    align-items: flex-start !important;
}

.webform-submission-callback-form [data-drupal-selector="edit-flexbox"] .webform-flex--container {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Контейнеры телефона и почты */
.webform-submission-callback-form .js-form-item-phone,
.webform-submission-callback-form .js-form-item-email {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 40px !important;
    box-sizing: border-box;
}

/* Ошибка не должна ломать высоту */
.webform-submission-callback-form .js-form-item-phone.form-item--error,
.webform-submission-callback-form .js-form-item-email.form-item--error {
    margin: 0 !important;
    min-height: 40px !important;
}

/* Сами поля */
.webform-submission-callback-form input[data-drupal-selector="edit-phone"],
.webform-submission-callback-form input[data-drupal-selector="edit-email"],
.webform-submission-callback-form input[data-drupal-selector="edit-phone"].error,
.webform-submission-callback-form input[data-drupal-selector="edit-email"].error,
.webform-submission-callback-form input[data-drupal-selector="edit-phone"][aria-invalid="true"],
.webform-submission-callback-form input[data-drupal-selector="edit-email"][aria-invalid="true"] {
    display: block;
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    line-height: 40px !important;
    box-sizing: border-box !important;
    border-width: 1px !important;
    vertical-align: top;
    flex-shrink: 0;
}

/* Если Drupal выводит текст ошибки, не даём ему двигать строку */
.webform-submission-callback-form .js-form-item-phone .form-item--error-message,
.webform-submission-callback-form .js-form-item-email .form-item--error-message {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Общий error-margin внутри строки телефона/почты убираем */
.webform-submission-callback-form [data-drupal-selector="edit-flexbox"] .form-item--error {
    margin-bottom: 0 !important;
}

/* =========================
   МОДАЛЬНОЕ ОКНО CALLBACK
   ========================= */

/* Окно */
.modal .modal-content {
    border: 1px solid #dddddd;
    border-radius: 18px;
    box-shadow: none;
    overflow: hidden;
}

.modal .modal-header {
    padding: 18px 20px 10px;
    border-bottom: 0;
    align-items: center;
}

.modal .modal-title {
    margin: 0;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: -0.03em;
    font-weight: 400;
    color: var(--chernyy);
}

.modal .modal-header .btn-close,
.modal .modal-header .close {
    box-shadow: none;
    outline: none;
}

/* Тело модалки */
.modal .modal-body {
    padding: 0 20px 0;
}

/* Форма */
.webform-submission-callback-form {
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 18px;
    padding: 12px 12px 14px;
    box-shadow: none;
}

/* Общие отступы */
.webform-submission-callback-form .form-item {
    margin: 0 0 10px;
}

/* Flex-блок */
.webform-submission-callback-form .webform-flexbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px !important;
}

.webform-submission-callback-form .webform-flexbox > .webform-flex {
    flex: 1 1 0;
    min-width: 0;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.webform-submission-callback-form .webform-flex--container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.webform-submission-callback-form .webform-flexbox .form-item {
    margin: 0;
}

/* Поля */
.webform-submission-callback-form input[type="text"],
.webform-submission-callback-form input[type="email"],
.webform-submission-callback-form input[type="tel"],
.webform-submission-callback-form textarea,
.webform-submission-callback-form .js-webform-input-mask {
    display: block;
    width: 100%;
    padding: 0 16px;
    background: #f2f2f2;
    border: 1px solid #dddddd;
    border-radius: 10px;
    box-shadow: none;
    color: #828282;
    font-size: 16px;
    letter-spacing: -0.02em;
    font-weight: 400;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

/* Высота input */
.webform-submission-callback-form input[type="text"],
.webform-submission-callback-form input[type="email"],
.webform-submission-callback-form input[type="tel"],
.webform-submission-callback-form .js-webform-input-mask {
    height: 40px;
    line-height: 40px;
}

/* textarea */
.webform-submission-callback-form textarea {
    min-height: 66px;
    max-height: 160px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: none !important;
    line-height: 1.35;
}

/* placeholder */
.webform-submission-callback-form input::placeholder,
.webform-submission-callback-form textarea::placeholder {
    color: #8e8e8e;
    opacity: 1;
}

/* focus */
.webform-submission-callback-form input:focus,
.webform-submission-callback-form textarea:focus {
    outline: none;
    border-color: #c9c9c9;
    background: #f2f2f2;
    box-shadow: none;
}

.webform-submission-callback-form .form-control:focus {
    box-shadow: none !important;
}

/* Ошибки */
.webform-submission-callback-form .alert,
.webform-submission-callback-form .alert-danger,
.webform-submission-callback-form .alert-error,
.webform-submission-callback-form .alert-dismissible,
.webform-submission-callback-form .form-item--error-message,
.webform-submission-callback-form .form-item--error-message strong,
.webform-submission-callback-form strong.error,
.webform-submission-callback-form label.error {
    display: none !important;
}

.webform-submission-callback-form .form-item--error {
    margin-bottom: 10px !important;
}

.webform-submission-callback-form input.error,
.webform-submission-callback-form textarea.error,
.webform-submission-callback-form input[aria-invalid="true"],
.webform-submission-callback-form textarea[aria-invalid="true"],
.webform-submission-callback-form input.form-control.error,
.webform-submission-callback-form textarea.form-control.error,
.webform-submission-callback-form .js-webform-input-mask.error,
.webform-submission-callback-form .js-webform-input-mask[aria-invalid="true"] {
    border: 1px solid #d94b4b !important;
    background: #fff6f6 !important;
    box-shadow: none !important;
    color: inherit !important;
}

.webform-submission-callback-form input.error:focus,
.webform-submission-callback-form textarea.error:focus,
.webform-submission-callback-form input[aria-invalid="true"]:focus,
.webform-submission-callback-form textarea[aria-invalid="true"]:focus,
.webform-submission-callback-form .js-webform-input-mask.error:focus,
.webform-submission-callback-form .js-webform-input-mask[aria-invalid="true"]:focus {
    border-color: #d94b4b !important;
    box-shadow: 0 0 0 2px rgba(217, 75, 75, 0.12) !important;
    outline: none;
}

/* Checkbox */
.webform-submission-callback-form .form-item-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 18px;
}

.webform-submission-callback-form .form-item-privacy > input.form-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 18px;
    background: #fff;
    border: 1px solid var(--goluboy);
    border-radius: 2px;
    flex: 0 0 auto;
}

.webform-submission-callback-form .form-item-privacy > input.form-checkbox:checked {
    background: #fff;
    border-color: var(--siniy);
}

.webform-submission-callback-form .form-item-privacy > input.form-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 13px;
    height: 9px;
    background-color: var(--siniy);
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4697 0.21967C11.7626 -0.0732233 12.2373 -0.0732233 12.5302 0.21967C12.8231 0.512563 12.8231 0.987324 12.5302 1.28022L5.03022 8.78022C4.73732 9.07311 4.26256 9.07311 3.96967 8.78022L0.21967 5.03022C-0.0732233 4.73732 -0.0732233 4.26256 0.21967 3.96967C0.512563 3.67678 0.987324 3.67678 1.28022 3.96967L4.49994 7.1894L11.4697 0.21967Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.4697 0.21967C11.7626 -0.0732233 12.2373 -0.0732233 12.5302 0.21967C12.8231 0.512563 12.8231 0.987324 12.5302 1.28022L5.03022 8.78022C4.73732 9.07311 4.26256 9.07311 3.96967 8.78022L0.21967 5.03022C-0.0732233 4.73732 -0.0732233 4.26256 0.21967 3.96967C0.512563 3.67678 0.987324 3.67678 1.28022 3.96967L4.49994 7.1894L11.4697 0.21967Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

.webform-submission-callback-form .form-item-privacy > input.form-checkbox.error,
.webform-submission-callback-form .form-item-privacy > input.form-checkbox[aria-invalid="true"] {
    border: 1px solid #d94b4b !important;
    background: #fff6f6 !important;
}

.webform-submission-callback-form .form-item-privacy .description {
    margin: 0;
}

.webform-submission-callback-form .form-item-privacy .webform-element-description {
    font-size: 14px;
    line-height: 115%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

/* Ссылки */
.webform-submission-callback-form .webform-element-description a {
    position: relative;
    display: inline-block;
    color: var(--siniy);
    text-decoration: none;
    transition: color 0.25s ease;
}

.webform-submission-callback-form .webform-element-description a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: currentColor;
}

.webform-submission-callback-form .webform-element-description a:hover {
    color: var(--hover);
}

/* Скрываем кнопку внутри формы */
.webform-submission-callback-form .form-actions {
    display: none;
}

/* Footer модалки */
.modal .modal-footer {
    border-top: 0;
    justify-content: center;
    padding: 16px 20px 20px;
}

/* Кнопка в footer */
.modal .modal-footer .webform-button--submit,
.modal .modal-footer .button--primary,
.modal .modal-footer .form-submit {
    min-width: 125px;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--siniy);
    color: var(--fon);
    font-size: 18px;
    line-height: 42px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    box-shadow: none;
    transition: background 0.2s ease;
}

.modal .modal-footer .webform-button--submit:hover,
.modal .modal-footer .button--primary:hover,
.modal .modal-footer .form-submit:hover {
    background: #162866;
}

.modal .modal-footer .webform-button--submit:focus,
.modal .modal-footer .button--primary:focus,
.modal .modal-footer .form-submit:focus {
    outline: none;
    box-shadow: none;
}

#header .header-search.is-open {
    width: 180px;
    opacity: 1;
    pointer-events: auto;
}

#header .header-search .form-search:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #d9dee7 !important;
}

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

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

#main {
    flex: 1 0 auto;
}

#footer {
    margin-top: auto;
}

#edit-message {
    resize: none;
    margin-bottom: 20px;
}

/* ========================================
   COOKIE DISCLAIMER
   вставить в самый низ css
======================================== */

#vpa-short-wrapper.vpa-wrapper {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

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

    max-width: 1170px;
    margin: 0 auto;

    padding: 18px 20px;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(16, 30, 91, 0.14);

    color: var(--chernyy);
    font-family: var(--font-family);
}

/* если плагин добавляет внутренние отступы/ширины */
#vpa-short-wrapper .vpa-content,
#vpa-short-wrapper .vpa-actions {
    margin: 0;
    padding: 0;
}

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

#vpa-short-wrapper .vpa-content p {
    margin: 0;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.02em;
    color: var(--chernyy);
}

#vpa-short-wrapper .vpa-content a {
    position: relative;
    color: var(--siniy);
    text-decoration: none;
    transition: color 0.2s ease;
}

#vpa-short-wrapper .vpa-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s ease;
}

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

#vpa-short-wrapper .vpa-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* кнопка */
#vpa-short-wrapper #vpa-btn-ok,
#vpa-short-wrapper .btn,
#vpa-short-wrapper .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 125px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--siniy);
    color: var(--fon);
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

#vpa-short-wrapper #vpa-btn-ok:hover,
#vpa-short-wrapper .btn:hover,
#vpa-short-wrapper .btn-primary:hover {
    background: var(--hover);
    color: var(--fon);
}

/* зона закрытия */
#vpa-short-wrapper .vpa-close-zone {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
}

#vpa-short-wrapper .vpa-close-zone:hover {
    background: #eef2f8;
}

#vpa-short-wrapper .vpa-close-el {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
}

#vpa-short-wrapper .vpa-close-el::before,
#vpa-short-wrapper .vpa-close-el::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 14px;
    height: 1.5px;
    background: #7d8798;
    border-radius: 2px;
}

#vpa-short-wrapper .vpa-close-el::before {
    transform: rotate(45deg);
}

#vpa-short-wrapper .vpa-close-el::after {
    transform: rotate(-45deg);
}

/* animation helper */
#vpa-short-wrapper.vpa-slide {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#vpa-short-wrapper.vpa-visible {
    opacity: 1;
    transform: translateY(0);
}

#header .header-actions {
    position: relative;
    overflow: visible;
}

#header .header-search {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    overflow: visible;
    z-index: 40;
}

/* все внутренние обертки не должны ломать позиционирование */
#header .header-search .region,
#header .header-search .block,
#header .header-search .search-block-form,
#header .header-search form {
    position: static;
    margin: 0;
}

/* инпут выносим поверх остальных элементов */
#header .header-search .form-item {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    margin: 0;
    z-index: 45;
}

/* закрытое состояние */
#header .header-search .form-search {
    display: block;
    width: 0;
    opacity: 0;
    pointer-events: none;
    height: 40px;
    padding: 0;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 30, 91, 0.10);
    transition:
            width 0.25s ease,
            opacity 0.25s ease,
            padding 0.25s ease;
}

/* открытое состояние — поле ложится поверх */
#header .header-search:focus-within .form-search,
#header .header-search.is-open .form-search {
    width: 240px;
    opacity: 1;
    pointer-events: auto;
    padding: 0 14px;
}

/* кнопка поиска всегда на месте */
#header .header-search .search-form__submit {
    position: relative;
    z-index: 50;
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
    cursor: pointer;
    font-size: 0;
    color: transparent;
}

/* чтобы input не уезжал за header */
#header .header-main,
#header .header-main__inner,
#header .header-actions {
    overflow: visible;
}

/* focus style */
#header .header-search .form-search:focus {
    outline: none;
    border-color: #c7d4e8;
    box-shadow: 0 8px 24px rgba(16, 30, 91, 0.10);
}

/* ========================================
   HEADER DROPDOWN - CUSTOM STYLE
======================================== */

@media screen and (min-width: 992px) {
    #header .header-nav .nav-item.dropdown {
        position: relative;
    }

    #header .header-nav .nav-item.dropdown > .nav-link {
        position: relative;
        display: block;
        padding-right: 22px;
    }

    /* убираем bootstrap-стрелку */
    #header .header-nav .nav-item.dropdown > .nav-link.dropdown-toggle::before {
        content: none !important;
        display: none !important;
    }

    #header .header-nav .nav-item.dropdown > .nav-link.dropdown-toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 16px;
        height: 16px;
        margin: 0;
        border: 0 !important;
        background-color: currentColor;
        -webkit-mask: url("/sites/all/themes/vesta_theme/image/chevron-down.svg") center / contain no-repeat;
        mask: url("/sites/all/themes/vesta_theme/image/chevron-down.svg") center / contain no-repeat;
        transform: translateY(-50%) rotate(0deg);
        transform-origin: center;
        transition: transform 0.25s ease, opacity 0.25s ease;
        opacity: 0.9;
    }

    #header .header-nav .nav-item.dropdown > .dropdown-menu {
        display: block;
        position: absolute;
        top: calc(100% + 14px);
        left: 0;
        min-width: 260px;
        margin: 0;
        padding: 10px;
        border: 1px solid #dfe5ef;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(16, 30, 91, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        z-index: 30;
    }

    #header .header-nav .nav-item.dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        height: 16px;
    }

    #header .header-nav .nav-item.dropdown:hover > .dropdown-menu,
    #header .header-nav .nav-item.dropdown:focus-within > .dropdown-menu,
    #header .header-nav .nav-item.dropdown.show > .dropdown-menu,
    #header .header-nav .nav-item.dropdown > .nav-link[aria-expanded="true"] + .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    #header .header-nav .nav-item.dropdown:hover > .nav-link.dropdown-toggle::after,
    #header .header-nav .nav-item.dropdown:focus-within > .nav-link.dropdown-toggle::after,
    #header .header-nav .nav-item.dropdown.show > .nav-link.dropdown-toggle::after,
    #header .header-nav .nav-item.dropdown > .nav-link[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }

    #header .header-nav .dropdown-menu .nav-item {
        margin: 0;
    }

    #header .header-nav .dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 10px;
        background: transparent;
        font-family: var(--font-family);
        font-size: 16px;
        line-height: 115%;
        font-weight: 500;
        letter-spacing: -0.02em;
        color: var(--chernyy);
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
        white-space: nowrap;
    }

    #header .header-nav .dropdown-menu .dropdown-item:hover,
    #header .header-nav .dropdown-menu .dropdown-item:focus {
        background: #e5ecf6;
        color: var(--hover);
        text-decoration: none;
    }
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.modal-open {
    padding-right: 0 !important;
}

/* ========================================
   MOBILE HEADER + BURGER MENU
   вставить в самый низ css
======================================== */

/* ===== MOBILE HEADER ===== */
#header-mob {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 68px;
    padding: 10px var(--container-pad);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #dfe5ef;
    box-shadow: 0 6px 20px rgba(16, 30, 91, 0.04);
}

#header-mob > div {
    display: flex;
    align-items: center;
    min-width: 0;
}

#header-mob .col-nav {
    flex: 0 0 40px;
}

#header-mob .col-logo {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

#header-mob .col-phone {
    flex: 0 1 auto;
    justify-content: flex-end;
}

#header-mob .col-cart {
    flex: 0 0 auto;
    justify-content: flex-end;
}

/* burger button */
#header-mob .col-nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    background: #f8f8fa;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#header-mob .col-nav > a:hover,
#header-mob .col-nav > a:focus-visible {
    background: #e5ecf6;
    border-color: #c7d4e8;
    outline: none;
}

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

/* logo */
#header-mob .col-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    max-width: 100%;
}

#header-mob .col-logo img {
    display: block;
    max-height: 30px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* phone */
#header-mob .col-phone .contact-item {
    margin: 0;
}

#header-mob .col-phone .contact-item a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f8f8fa;
    border: 1px solid #d9dee7;
    color: var(--chernyy);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#header-mob .col-phone .contact-item a:hover,
#header-mob .col-phone .contact-item a:focus-visible {
    background: #e5ecf6;
    border-color: #c7d4e8;
    color: var(--hover);
    outline: none;
}

/* cart */
#header-mob .col-cart .cart-block--summary {
    position: relative;
    display: flex;
    align-items: center;
}

#header-mob .col-cart .cart-block--summary a,
#header-mob .col-cart .cart--cart-block a,
#header-mob .col-cart .cart-block--link__expand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f8fa;
    border: 1px solid #d9dee7;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#header-mob .col-cart .cart-block--summary a:hover,
#header-mob .col-cart .cart--cart-block a:hover,
#header-mob .col-cart .cart-block--link__expand:hover {
    background: #e5ecf6;
    border-color: #c7d4e8;
}

#header-mob .col-cart .cart-block--summary__count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--siniy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

/* ===== OFFCANVAS ===== */
#offcanvasNav.offcanvas {
    width: min(92vw, 390px);
    border-right: 0;
    background: var(--fon);
    color: var(--chernyy);
    box-shadow: 12px 0 30px rgba(16, 30, 91, 0.12);
}

#offcanvasNav .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px var(--container-pad) 14px;
    border-bottom: 1px solid #dfe5ef;
    background: #fff;
}

#offcanvasNav .offcanvas-header .logo {
    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;
    max-height: 32px;
    width: auto;
    max-width: 170px;
}

/* close button */
#offcanvasNav .btn-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    background-color: #f8f8fa;
    background-size: 14px 14px;
    opacity: 1;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#offcanvasNav .btn-close:hover,
#offcanvasNav .btn-close:focus-visible {
    background-color: #e5ecf6;
    border-color: #c7d4e8;
    outline: none;
}

/* body */
#offcanvasNav .offcanvas-body {
    padding: 18px var(--container-pad) 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== SEARCH IN MENU ===== */
#offcanvasNav .search-block-form,
#offcanvasNav form.search-form,
#offcanvasNav form[role="search"] {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding-top: 20px;
}

#offcanvasNav .search-block-form .form-search,
#offcanvasNav form.search-form .form-search,
#offcanvasNav form[role="search"] .form-search {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    background: #fff;
    color: var(--chernyy);
    font-size: 15px;
    box-shadow: none;
}

#offcanvasNav .search-block-form .form-search:focus,
#offcanvasNav form.search-form .form-search:focus,
#offcanvasNav form[role="search"] .form-search:focus {
    outline: none;
    border-color: #c7d4e8;
    box-shadow: 0 0 0 4px rgba(93, 128, 182, 0.10);
}

#offcanvasNav .search-block-form .search-form__submit,
#offcanvasNav form.search-form .search-form__submit,
#offcanvasNav form[role="search"] .search-form__submit,
#offcanvasNav .search-block-form .form-submit,
#offcanvasNav form.search-form .form-submit,
#offcanvasNav form[role="search"] .form-submit {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: var(--siniy);
    color: #fff;
    font-size: 14px;
    transition: background 0.2s ease;
}

#offcanvasNav .search-block-form .search-form__submit:hover,
#offcanvasNav form.search-form .search-form__submit:hover,
#offcanvasNav form[role="search"] .search-form__submit:hover,
#offcanvasNav .search-block-form .form-submit:hover,
#offcanvasNav form.search-form .form-submit:hover,
#offcanvasNav form[role="search"] .form-submit:hover {
    background: var(--hover);
}

/* ===== NAVIGATION ===== */
#offcanvasNav .region-navigation,
#offcanvasNav .region-navigation .block,
#offcanvasNav .region-navigation nav {
    margin: 0;
}

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

#offcanvasNav .nav-item,
#offcanvasNav li {
    margin: 0;
    padding: 0;
}

#offcanvasNav .nav-link,
#offcanvasNav .menu a,
#offcanvasNav .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    color: var(--chernyy);
    text-decoration: none;
    font-size: 16px;
    line-height: 115%;
    font-weight: 500;
    letter-spacing: -0.02em;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#offcanvasNav .nav-link:hover,
#offcanvasNav .menu a:hover,
#offcanvasNav .nav a:hover,
#offcanvasNav .nav-link:focus-visible,
#offcanvasNav .menu a:focus-visible,
#offcanvasNav .nav a:focus-visible {
    background: #e5ecf6;
    color: var(--hover);
    border-color: #d6dfec;
    outline: none;
}

#offcanvasNav .nav-link.is-active,
#offcanvasNav .menu a.is-active,
#offcanvasNav .nav a.is-active {
    background: #dfe5ef;
    color: var(--siniy);
}

/* dropdown items */
#offcanvasNav .nav-item.dropdown > .nav-link.dropdown-toggle,
#offcanvasNav .menu-item--expanded > a {
    position: relative;
    padding-right: 42px;
}

#offcanvasNav .nav-item.dropdown > .nav-link.dropdown-toggle::after,
#offcanvasNav .menu-item--expanded > a::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-color: currentColor;
    -webkit-mask: url("/sites/all/themes/vesta_theme/image/chevron-down.svg") center / contain no-repeat;
    mask: url("/sites/all/themes/vesta_theme/image/chevron-down.svg") center / contain no-repeat;
    opacity: 0.8;
}

/* submenu */
#offcanvasNav .dropdown-menu,
#offcanvasNav .menu .menu {
    display: none;
    margin: 6px 0 4px;
    padding: 8px;
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

#offcanvasNav .dropdown-menu.show,
#offcanvasNav .menu-item--expanded > ul,
#offcanvasNav .menu-item--expanded > .menu {
    display: block;
}

#offcanvasNav .dropdown-menu .dropdown-item,
#offcanvasNav .menu .menu a {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--chernyy);
    text-decoration: none;
}

#offcanvasNav .dropdown-menu .dropdown-item:hover,
#offcanvasNav .menu .menu a:hover {
    background: #eef2f8;
    color: var(--hover);
}

/* ===== CONTACTS ===== */
#offcanvasNav .contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
}

#offcanvasNav .contact-item + .contact-item {
    margin-top: -8px;
}

#offcanvasNav .contact-item-label {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--goluboy);
}

#offcanvasNav .contact-item-el,
#offcanvasNav .contact-item-el a {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--chernyy);
    text-decoration: none;
    letter-spacing: -0.02em;
}

#offcanvasNav .contact-item-el a:hover {
    color: var(--hover);
}

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

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

#offcanvasNav .msngrs .item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d9dee7;
    color: var(--siniy);
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#offcanvasNav .msngrs .item a:hover {
    background: #e5ecf6;
    border-color: #c7d4e8;
    color: var(--hover);
}

/* *** ADAPTIVE *** */
/* ========================================
   ADAPTIVE
   вставить в самый низ css
======================================== */

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

    #header .header-search:focus-within .form-search,
    #header .header-search.is-open .form-search {
        width: 210px;
    }

    :root {
        --container-pad: 20px;
    }

    #scrollToTop {
        right: 24px;
        bottom: 24px;
        width: 42px;
        height: 42px;
    }

    /* HEADER */
    #header .header-top {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #header .header-top__inner {
        gap: 16px;
    }

    #header .header-top__left,
    #header .header-top__right {
        gap: 18px;
    }

    #header .header-address,
    #header .header-mail,
    #header .header-phone {
        font-size: 14px;
        line-height: 1.3;
    }

    #header .header-main {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #header .header-main__inner {
        gap: 20px;
    }

    #header .logo img {
        max-height: 30px;
    }

    #header .header-nav .nav,
    #header .header-nav ul.menu,
    #header .header-nav ul.nav {
        gap: 18px;
    }

    #header .header-nav .nav-link,
    #header .header-nav a {
        font-size: 16px;
    }

    #header .header-callback .btn {
        min-width: 120px;
        height: 40px;
        padding: 0 18px 2px;
        font-size: 16px;
    }

    #header .header-search:focus-within .form-search,
    #header .header-search.is-open .form-search {
        width: 150px;
    }

    /* FOOTER */
    #footer .footer-top {
        padding: 24px 0 18px;
    }

    #footer .footer-layout {
        grid-template-columns: 260px 1fr 1fr 220px;
        gap: 24px;
    }

    #footer .footer-logo {
        margin-bottom: 42px;
    }

    #footer .footer-copy,
    #footer .footer-policy a,
    #footer .footer-col a,
    #footer .footer-col .nav-link,
    #footer .footer-contact,
    #footer .footer-contacts .contact-item,
    #footer .footer-contacts .contact-item-el,
    #footer .footer-contacts .field__item,
    #footer .footer-contacts p,
    #footer .footer-bottom-bar a {
        font-size: 15px;
    }

    #footer .footer-callback .btn {
        font-size: 16px;
    }

    /* HERO */
    .block-content--type-main-content.block-content--view-mode-full.ds-2col {
        min-height: 560px;
        grid-template-columns: 52% 48%;
    }

    .block-content--type-main-content .group-left {
        padding-top: 56px;
        padding-bottom: 36px;
        padding-right: 36px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-title h1 {
        font-size: 46px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-text {
        max-width: 430px;
        margin-bottom: 28px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-feedback-btn a {
        min-height: 44px;
        padding: 0 20px;
        font-size: 16px;
    }

    .block-content--type-main-content .group-left .field--name-field-advantages {
        padding-top: 72px;
        max-width: 100%;
        gap: 14px;
    }

    .block-content--type-main-content .group-left .paragraph--type--advantage {
        min-height: 116px;
    }

    .block-content--type-main-content .group-left .field--name-field-opisanie {
        font-size: 14px;
        max-width: 150px;
    }

    .block-content--type-main-content .field--name-field-main-img img {
        min-height: 560px;
    }

    /* COMMON TITLES */
    .region-conditions .block-title,
    .catalog #block-block-catalog-on-front > .block-title,
    #block-block-apartments-on-front .block-title,
    #block-vesta-theme-block-about .field--name-field-about-title,
    .feedback-title,
    main#main #block-vesta-theme-page-title h1,
    #block-vesta-theme-page-title h1 {
        font-size: 40px;
    }

    /* CONDITIONS */
    .conditions {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .region-conditions .block-title {
        margin-right: 160px;
        margin-bottom: 24px;
    }

    .region-conditions .view-content {
        gap: 16px;
    }

    .region-conditions .views-row {
        padding: 20px 18px 18px;
        min-height: 190px;
    }

    .views-field-field-condition-title {
        font-size: 22px;
    }

    /* CONDITIONS PAGE */
    main#main .view.view-conditions.view-display-id-page_1 .view-content {
        gap: 16px;
    }

    main#main .view.view-conditions.view-display-id-page_1 .views-row {
        padding: 20px 18px 18px;
        min-height: 190px;
    }

    main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-title .field-content {
        font-size: 22px;
    }

    /* CATALOG */
    .catalog {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .catalog #block-block-catalog-on-front > .block-title {
        margin-right: 180px;
    }

    .catalog .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .catalog .view-content > .views-row > .taxonomy-term,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content > .views-row > .taxonomy-term {
        min-height: 240px;
        border-radius: 20px;
    }

    .catalog .field--name-taxonomy-term-title a,
    #block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title a {
        font-size: 22px;
    }

    /* APARTMENTS */
    .block_apartments {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    #block-block-apartments-on-front .block-title {
        margin-right: 180px;
        font-size: 40px;
    }

    #block-block-apartments-on-front .view-content,
    #block-vesta-theme-content .view-tovary.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    #block-block-apartments-on-front .field--name-field-image-product-view img,
    #block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-image-product-view img {
        height: 200px;
    }

    /* ABOUT */
    .about {
        padding-bottom: 64px;
    }

    #block-vesta-theme-block-about .block-content--type-block-about {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }

    #block-vesta-theme-block-about .group-right {
        width: 300px;
    }

    #block-vesta-theme-block-about .field--name-field-about-title {
        font-size: 40px;
    }

    #block-vesta-theme-block-about .field--name-field-about-text {
        max-width: none;
    }

    #block-vesta-theme-block-about .field--name-field-achievement-title {
        font-size: 44px;
    }

    #block-vesta-theme-block-about .image-style-about-img {
        height: 300px;
    }

    /* GALLERIES */
    .view-galleries .view-content {
        gap: 16px;
    }

    .view-galleries h2 {
        font-size: 22px;
    }

    .photoswipe-gallery.field__items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    /* CONTACTS / FEEDBACK */
    .feedback-section {
        padding-bottom: 64px;
    }

    .feedback-layout {
        gap: 24px;
    }

    .feedback-left {
        flex: 0 0 40%;
    }

    .feedback-right {
        flex: 0 0 calc(60% - 24px);
        max-width: calc(60% - 24px);
    }

    .feedback-title {
        margin-bottom: 26px;
        font-size: 40px;
    }

    .feedback-left .field-tel a,
    .feedback-left .field-mail a {
        font-size: 20px;
    }

    .feedback-contact__text {
        font-size: 18px;
    }

    /* SEARCH */
    #block-vesta-theme-content > form.search-api-page-block-form-search .search-form__submit {
        min-width: 120px;
        padding: 0 20px;
        font-size: 16px;
    }

    #block-vesta-theme-content > h3 a {
        font-size: 24px;
    }

    /* PRODUCT PAGE */
    .product-teaser {
        gap: 24px;
    }

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

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

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

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

    #vpa-short-wrapper.vpa-wrapper {
        left: 18px;
        right: 18px;
        bottom: 18px;
        padding: 16px 18px;
        gap: 16px;
        border-radius: 16px;
    }

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

    #vpa-short-wrapper #vpa-btn-ok,
    #vpa-short-wrapper .btn,
    #vpa-short-wrapper .btn-primary {
        min-width: 112px;
        height: 40px;
        font-size: 16px;
    }

    #header .header-search .form-item {
        right: 28px;
    }

    #header .header-search:focus-within .form-search,
    #header .header-search.is-open .form-search {
        width: 180px;
    }

    :root {
        --container-pad: 18px;
    }

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

    /* HEADER */
    #header .header-top {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #header .header-top__inner {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
    }

    #header .header-top__left,
    #header .header-top__right {
        flex-wrap: wrap;
        gap: 12px 18px;
        width: 100%;
    }

    #header .header-address,
    #header .header-mail,
    #header .header-phone {
        white-space: normal;
    }

    #header .header-main__inner {
        flex-wrap: wrap;
        gap: 14px 16px;
    }

    #header .logo {
        order: 1;
        flex: 0 0 auto;
    }

    #header .header-actions {
        order: 2;
        margin-left: auto;
        gap: 12px;
    }

    #header .header-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    #header .header-nav > .region,
    #header .header-nav .block,
    #header .header-nav nav {
        width: 100%;
        min-width: 0;
    }

    #header .header-nav .nav,
    #header .header-nav ul.menu,
    #header .header-nav ul.nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #header .header-nav .nav::-webkit-scrollbar,
    #header .header-nav ul.menu::-webkit-scrollbar,
    #header .header-nav ul.nav::-webkit-scrollbar {
        display: none;
    }

    #header .header-nav .nav-link,
    #header .header-nav a {
        white-space: nowrap;
        font-size: 15px;
    }

    #header .header-search:focus-within .form-search,
    #header .header-search.is-open .form-search {
        width: 140px;
    }

    #header .header-callback .btn {
        min-width: 112px;
        height: 38px;
        font-size: 15px;
        padding: 0 16px 2px;
    }

    #offcanvasNav .nav .dropdown-menu {
        display: none;
        position: static;
        border: 0;
        background: transparent;
        padding: 10px 0;
        border-bottom: 1px solid #BDBDBD;
        box-shadow: none;
    }

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

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

    /* FOOTER */
    #footer .footer-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
    }

    #footer .footer-brand,
    #footer .footer-side {
        grid-column: auto;
    }

    #footer .footer-logo {
        margin-bottom: 24px;
    }

    #footer .footer-side {
        gap: 20px;
    }

    /* HERO */
    .block-content--type-main-content.block-content--view-mode-full.ds-2col {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .block-content--type-main-content .group-left {
        padding: 48px 32px 32px;
    }

    .block-content--type-main-content .group-right {
        min-height: 360px;
        border-left: 0;
        border-top: 2px solid rgba(255, 255, 255, 0.35);
    }

    .block-content--type-main-content .field--name-field-main-img img {
        min-height: 360px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-title,
    .block-content--type-main-content .group-left .field--name-field-main-text,
    .block-content--type-main-content .field--name-field-main-title,
    .block-content--type-main-content .field--name-field-main-text,
    .block-content--type-main-content .field--name-field-advantages {
        max-width: none;
    }

    .block-content--type-main-content .group-left .field--name-field-main-title h1 {
        font-size: 40px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-text {
        margin-bottom: 24px;
    }

    .block-content--type-main-content .group-left .field--name-field-advantages {
        padding-top: 40px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .block-content--type-main-content .group-left .field--name-field-opisanie {
        max-width: none;
    }

    /* COMMON TITLES */
    .region-conditions .block-title,
    .catalog #block-block-catalog-on-front > .block-title,
    #block-block-apartments-on-front .block-title,
    #block-vesta-theme-block-about .field--name-field-about-title,
    .feedback-title,
    main#main #block-vesta-theme-page-title h1,
    #block-vesta-theme-page-title h1,
    main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-title .field-content,
    .views-field-field-condition-title {
        font-size: 36px;
    }

    /* CONDITIONS */
    .conditions {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .region-conditions .block-title {
        margin: 0 0 20px;
        min-height: 0;
    }

    .region-conditions .more-link {
        position: static;
        margin: 20px 0 20px;
    }

    .region-conditions .view-content {
        grid-template-columns: 1fr;
    }

    /* CONDITIONS PAGE */
    main#main .wr_content {
        padding: 24px 0 56px;
    }

    main#main #block-vesta-theme-page-title,
    #block-vesta-theme-page-title {
        margin-bottom: 24px;
    }

    main#main .view.view-conditions.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-title .field-content {
        font-size: 22px;
    }

    .views-field-field-condition-title {
        font-size: 22px;
    }

    /* GALLERIES */
    .view-galleries {
        margin-top: 24px;
    }

    .view-galleries .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photoswipe-gallery.field__items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* CONTACTS PAGE / FEEDBACK */
    .feedback-section {
        padding-bottom: 56px;
    }

    .feedback-layout {
        flex-direction: column;
        gap: 24px;
    }

    .feedback-left,
    .feedback-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .feedback-right .mapContainer,
    .feedback-right iframe,
    .feedback-map .mapContainer {
        min-height: 340px;
        height: 340px !important;
    }

    /* CATALOG */
    .catalog {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .catalog #block-block-catalog-on-front > .block-title {
        margin: 0 0 20px;
        padding-top: 0;
    }

    .catalog .more-link {
        position: static;
        margin: 20px 0 20px;
    }

    .catalog .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* APARTMENTS */
    .block_apartments {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    #block-block-apartments-on-front .block-title {
        font-size: 36px;
    }

    #block-block-apartments-on-front .more-link {
        position: static;
        margin: 20px 0 20px;
    }

    #block-block-apartments-on-front .view-content,
    #block-vesta-theme-content .view-tovary.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    /* ABOUT */
    .about {
        padding-bottom: 56px;
    }

    #block-vesta-theme-block-about .block-content--type-block-about {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #block-vesta-theme-block-about .group-left,
    #block-vesta-theme-block-about .group-right {
        width: 100%;
        padding-top: 0;
    }

    #block-vesta-theme-block-about .about_top {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    #block-vesta-theme-block-about .field--name-field-achievements {
        margin-top: 24px;
    }

    #block-vesta-theme-block-about .image-style-about-img {
        height: 360px;
        width: 400px;
    }

    .feedback-right .webform-submission-feedback-form .webform-flexbox,
    .feedback-right .webform-submission-feedback-form [data-drupal-selector="edit-flexbox"] {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: flex-start;
        gap: 10px;
    }

    .feedback-right .webform-submission-feedback-form .webform-flexbox > .webform-flex,
    .feedback-right .webform-submission-feedback-form [data-drupal-selector="edit-flexbox"] > .webform-flex {
        flex: 1 1 0 !important;
        min-width: 0;
        max-width: none;
    }

    .feedback-right .webform-submission-feedback-form .webform-flex--container,
    .feedback-right .webform-submission-feedback-form .form-item-phone,
    .feedback-right .webform-submission-feedback-form .form-item-mail,
    .feedback-right .webform-submission-feedback-form .js-form-item-phone,
    .feedback-right .webform-submission-feedback-form .js-form-item-mail {
        width: 100%;
        min-width: 0;
    }

    .feedback-right .webform-submission-feedback-form input[data-drupal-selector="edit-phone"],
    .feedback-right .webform-submission-feedback-form input[data-drupal-selector="edit-mail"] {
        width: 100%;
    }

    /* SEARCH */
    #block-vesta-theme-content > form.search-api-page-block-form-search {
        padding: 14px;
        gap: 10px;
    }

    #block-vesta-theme-content > form.search-api-page-block-form-search .form-search {
        height: 48px;
    }

    #block-vesta-theme-content > form.search-api-page-block-form-search .search-form__submit {
        min-width: 110px;
        height: 48px;
    }

    #block-vesta-theme-content > h3 {
        padding: 20px 20px 16px;
    }

    #block-vesta-theme-content > h3 + p {
        padding: 0 20px 20px;
    }

    /* PRODUCT PAGE */
    .product-teaser {
        flex-direction: column;
        gap: 20px;
    }

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

    .product-teaser .product-teaser-image .field.field--name-field-variation-image.field--type-image .elements .current-slide.slick-initialized.slick-slider .slick-list.draggable .slick-track .element.slick-slide img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        max-height: none;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

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

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

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

    #block-vesta-theme-content article.product-view-full {
        max-width: 100%;
    }

    /* FORMS */
    .feedback-right .webform-flexbox,
    .webform-submission-reserve-room-form .webform-flexbox,
    .webform-submission-callback-form .webform-flexbox,
    .feedback-right [data-drupal-selector="edit-flexbox"],
    .webform-submission-reserve-room-form [data-drupal-selector="edit-flexbox"],
    .webform-submission-callback-form [data-drupal-selector="edit-flexbox"] {
        flex-wrap: wrap;
    }

    .feedback-right .webform-flexbox > .webform-flex,
    .webform-submission-reserve-room-form .webform-flexbox > .webform-flex,
    .webform-submission-callback-form .webform-flexbox > .webform-flex {
        flex: 0 0 100%;
    }
}

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

    #vpa-short-wrapper.vpa-wrapper {
        left: 14px;
        right: 14px;
        bottom: 14px;

        flex-direction: column;
        align-items: stretch;
        gap: 14px;

        padding: 16px 14px 14px;
        border-radius: 14px;
    }

    #vpa-short-wrapper .vpa-content {
        padding-right: 24px;
    }

    #vpa-short-wrapper .vpa-content p {
        font-size: 14px;
        line-height: 135%;
    }

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

    #vpa-short-wrapper #vpa-btn-ok,
    #vpa-short-wrapper .btn,
    #vpa-short-wrapper .btn-primary {
        width: 100%;
        min-width: 0;
        height: 40px;
        font-size: 15px;
        border-radius: 10px;
    }

    #vpa-short-wrapper .vpa-close-zone {
        top: 8px;
        right: 8px;
    }

    :root {
        --container-pad: 16px;
    }

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

    /* HEADER */
    #header .header-top {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #header .header-top__inner {
        gap: 10px;
    }

    #header .header-top__left,
    #header .header-top__right {
        gap: 10px;
    }

    #header .header-address,
    #header .header-mail,
    #header .header-phone {
        font-size: 13px;
        padding-left: 18px;
    }

    #header .header-address::before,
    #header .header-mail::before,
    #header .header-phone::before {
        width: 14px;
        height: 14px;
    }

    #header .header-main {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #header .logo img {
        max-height: 28px;
    }

    #header .header-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    #header .header-search:focus-within .form-search,
    #header .header-search.is-open .form-search {
        width: 130px;
    }

    #header .header-callback .btn {
        min-width: 104px;
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
    }

    #header .header-nav .nav,
    #header .header-nav ul.menu,
    #header .header-nav ul.nav {
        gap: 12px;
    }

    #header .header-nav .nav-link,
    #header .header-nav a {
        font-size: 14px;
    }

    /* PAGE SPACING */
    main#main .wr_content,
    .feedback-section,
    .conditions,
    .catalog,
    .block_apartments,
    .about {
        padding-bottom: 48px;
    }

    .conditions,
    .catalog,
    .block_apartments {
        padding-top: 48px;
    }

    /* BREADCRUMBS / TITLES */
    main#main #block-vesta-theme-strokanavigacii .breadcrumb-item,
    #block-vesta-theme-strokanavigacii .breadcrumb-item {
        font-size: 14px;
    }

    .region-conditions .block-title,
    .catalog #block-block-catalog-on-front > .block-title,
    #block-block-apartments-on-front .block-title,
    #block-vesta-theme-block-about .field--name-field-about-title,
    .feedback-title,
    main#main #block-vesta-theme-page-title h1,
    #block-vesta-theme-page-title h1 {
        font-size: 32px;
    }

    /* FOOTER */
    #footer .footer-top {
        padding: 20px 0 16px;
    }

    #footer .footer-layout {
        gap: 24px;
    }

    #footer .footer-brand,
    #footer .footer-col,
    #footer .footer-side {
        width: 100%;
    }

    #footer .footer-logo {
        margin-bottom: 16px;
    }

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

    #footer .footer-col ul,
    #footer .footer-col .menu,
    #footer .footer-col .nav {
        gap: 10px;
    }

    #footer .footer-side {
        gap: 16px;
    }

    #footer .footer-callback .btn {
        width: 100%;
        justify-content: center;
    }

    #footer .footer-contacts {
        gap: 14px;
    }

    #footer .footer-bottom-bar {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* HERO */
    .block-content--type-main-content .group-left {
        padding: 32px 20px 24px;
    }

    .block-content--type-main-content .group-right {
        min-height: 280px;
    }

    .block-content--type-main-content .field--name-field-main-img img {
        min-height: 280px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-title {
        margin-bottom: 12px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-title h1 {
        font-size: 34px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-feedback-btn a {
        width: 100%;
        min-height: 42px;
        font-size: 15px;
    }

    .block-content--type-main-content .group-left .field--name-field-advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-top: 28px;
    }

    .block-content--type-main-content .group-left .paragraph--type--advantage {
        min-height: 104px;
        border-radius: 8px;
    }

    .block-content--type-main-content .group-left .field--name-field-advantage-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .block-content--type-main-content .group-left .field--name-field-advantage-icon img {
        width: 22px;
        height: 22px;
    }

    .block-content--type-main-content .group-left .field--name-field-opisanie {
        font-size: 14px;
    }

    .region-conditions .views-row,
    main#main .view.view-conditions.view-display-id-page_1 .views-row {
        min-height: 180px;
    }

    .views-field-field-condition-title,
    main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-title .field-content {
        font-size: 20px;
    }

    /* GALLERIES */
    .view-galleries .view-content {
        grid-template-columns: 1fr;
    }

    .view-galleries .node--type-photogallery.node--view-mode-teaser {
        min-height: 150px;
        padding: 18px 16px 16px;
    }

    .view-galleries h2 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .view-galleries .links.inline a {
        min-height: 40px;
        font-size: 16px;
    }

    .photoswipe-gallery.field__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* CATALOG */
    .catalog .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog .view-content > .views-row > .taxonomy-term,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content > .views-row > .taxonomy-term {
        min-height: 220px;
        border-radius: 18px;
    }

    .catalog .field--name-taxonomy-term-title,
    #block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title {
        left: 16px;
        right: 68px;
        bottom: 16px;
    }

    .catalog .field--name-taxonomy-term-title a,
    #block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-title a {
        font-size: 20px;
    }

    .catalog .field--name-taxonomy-term-link,
    #block-vesta-theme-content .view-catalog.view-display-id-page .field--name-taxonomy-term-link {
        right: 16px;
        bottom: 16px;
    }

    /* APARTMENTS */
    #block-block-apartments-on-front .view-content,
    #block-vesta-theme-content .view-tovary.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #block-block-apartments-on-front .field--name-field-image-product-view img,
    #block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-image-product-view img,
    #block-vesta-theme-content article.product-view-full > .field--name-field-image-product-view img {
        height: 190px;
    }

    #block-block-apartments-on-front .field--name-field-price span,
    #block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-price span,
    #block-vesta-theme-content article.product-view-full > .field--name-field-price span {
        font-size: 20px;
    }

    #block-block-apartments-on-front .field--name-field-detail a,
    #block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-detail a,
    #block-vesta-theme-content article.product-view-full > .field--name-field-detail a {
        min-height: 40px;
        font-size: 16px;
    }

    /* ABOUT */
    #block-vesta-theme-block-about .field--name-field-about-btn a {
        width: 100%;
        height: 40px;
        font-size: 16px;
    }

    #block-vesta-theme-block-about .field--name-field-achievements {
        gap: 18px;
    }

    #block-vesta-theme-block-about .field--name-field-achievements > .field__item,
    #block-vesta-theme-block-about .field--name-field-achievements > .field__item + .field__item,
    #block-vesta-theme-block-about .field--name-field-achievements > .field__item:first-child {
        border-left: 0;
        padding: 0;
    }

    #block-vesta-theme-block-about .field--name-field-achievement-title {
        margin-bottom: 8px;
        font-size: 36px;
    }

    #block-vesta-theme-block-about .image-style-about-img {
        height: 280px;
    }

    /* CONTACTS / FEEDBACK */
    .feedback-title {
        margin-bottom: 20px;
    }

    .feedback-left .field-tel a,
    .feedback-left .field-mail a {
        font-size: 18px;
    }

    .feedback-contact__text {
        font-size: 16px;
    }

    .feedback-right .webform-submission-form,
    .webform-submission-reserve-room-form,
    .webform-submission-callback-form {
        padding: 10px;
        border-radius: 14px;
    }

    .feedback-right .webform-flexbox,
    .webform-submission-reserve-room-form .webform-flexbox,
    .webform-submission-callback-form .webform-flexbox {
        gap: 8px;
        margin-bottom: 8px !important;
    }

    .feedback-right input[type="text"],
    .feedback-right input[type="email"],
    .feedback-right input[type="tel"],
    .feedback-right textarea,
    .feedback-right .js-webform-input-mask,
    .webform-submission-reserve-room-form input[type="text"],
    .webform-submission-reserve-room-form input[type="email"],
    .webform-submission-reserve-room-form input[type="tel"],
    .webform-submission-reserve-room-form textarea,
    .webform-submission-reserve-room-form .js-webform-input-mask,
    .webform-submission-callback-form input[type="text"],
    .webform-submission-callback-form input[type="email"],
    .webform-submission-callback-form input[type="tel"],
    .webform-submission-callback-form textarea,
    .webform-submission-callback-form .js-webform-input-mask {
        font-size: 15px;
    }

    .feedback-right .webform-button--submit,
    .feedback-right .button--primary,
    .feedback-right .form-submit,
    .webform-submission-reserve-room-form .webform-button--submit,
    .webform-submission-reserve-room-form .button--primary,
    .webform-submission-reserve-room-form .form-submit,
    .modal .modal-footer .webform-button--submit,
    .modal .modal-footer .button--primary,
    .modal .modal-footer .form-submit {
        min-width: 100%;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }

    .feedback-right .mapContainer,
    .feedback-right iframe,
    .feedback-map .mapContainer {
        min-height: 280px;
        height: 280px !important;
    }

    /* SEARCH */
    #block-vesta-theme-content > form.search-api-page-block-form-search {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

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

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

    #block-vesta-theme-content > form.search-api-page-block-form-search + h2 {
        font-size: 26px;
    }

    #block-vesta-theme-content > h3 a {
        font-size: 22px;
    }

    /* MODAL */
    .modal .modal-header {
        padding: 16px 16px 10px;
    }

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

    .modal .modal-body {
        padding: 0 16px;
    }

    .modal .modal-footer {
        padding: 14px 16px 16px;
    }
}

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

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

    #block-block-apartments-on-front .view-content, #block-vesta-theme-content .view-tovary.view-display-id-page_1 .view-content {
        grid-template-columns: 1fr;
    }

    #footer .footer-layout {
        grid-template-columns: 1fr;
    }

    :root {
        --container-pad: 14px;
    }

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

    /* HEADER */
    #header .header-top {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    #header .header-address,
    #header .header-mail,
    #header .header-phone {
        font-size: 12px;
        line-height: 1.35;
    }

    #header .header-main__inner {
        gap: 12px;
    }

    #header .logo {
        flex: 0 0 100%;
    }

    #header .logo a {
        justify-content: center;
        width: 100%;
    }

    #header .header-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    #header .header-search {
        width: 100%;
        min-width: 100%;
        height: auto;
    }

    #header .header-search form,
    #header .header-search .search-block-form {
        width: 100%;
        justify-content: flex-start;
    }

    #header .header-search .form-item {
        position: static;
        transform: none;
        width: calc(100% - 34px);
        margin-right: 8px;
    }

    #header .header-search .form-search,
    #header .header-search:focus-within .form-search,
    #header .header-search.is-open .form-search {
        width: 100%;
        opacity: 1;
        pointer-events: auto;
        height: 36px;
        padding: 0 12px;
    }

    #header .header-search .search-form__submit {
        width: 22px;
        min-width: 22px;
        height: 22px;
    }

    #header .header-callback {
        width: 100%;
    }

    #header .header-callback .btn {
        width: 100%;
        min-width: 0;
    }

    #header .header-nav .nav-link,
    #header .header-nav a {
        font-size: 13px;
    }

    /* PAGE TITLES */
    .region-conditions .block-title,
    .catalog #block-block-catalog-on-front > .block-title,
    #block-block-apartments-on-front .block-title,
    #block-vesta-theme-block-about .field--name-field-about-title,
    .feedback-title,
    main#main #block-vesta-theme-page-title h1,
    #block-vesta-theme-page-title h1 {
        font-size: 28px;
    }

    main#main #block-vesta-theme-strokanavigacii .breadcrumb-item,
    #block-vesta-theme-strokanavigacii .breadcrumb-item {
        font-size: 13px;
    }

    /* FOOTER */
    #footer .footer-copy,
    #footer .footer-policy a,
    #footer .footer-col a,
    #footer .footer-col .nav-link,
    #footer .footer-contact,
    #footer .footer-contacts .contact-item,
    #footer .footer-contacts .contact-item-el,
    #footer .footer-contacts .field__item,
    #footer .footer-contacts p,
    #footer .footer-bottom-bar a {
        font-size: 14px;
    }

    #footer .footer-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    #footer .footer-callback .btn {
        min-height: 38px;
        padding: 0 14px;
        font-size: 15px;
        border-radius: 8px;
    }

    #footer .footer-callback .btn::after {
        width: 20px;
        height: 20px;
        margin-left: 8px;
    }

    #footer .footer-contact,
    #footer .footer-contacts .contact-item,
    #footer .footer-contacts .contact-item-el,
    #footer .footer-contacts .field__item,
    #footer .footer-contacts p {
        padding-left: 24px;
    }

    #footer .footer-contact--address::before,
    #footer .footer-contact--mail::before,
    #footer .footer-contact--phone::before {
        width: 18px;
        height: 18px;
    }

    #footer .footer-contacts {
        gap: 12px;
    }

    /* HERO */
    .block-content--type-main-content .group-left {
        padding: 24px 16px 20px;
    }

    .block-content--type-main-content .group-right {
        min-height: 220px;
    }

    .block-content--type-main-content .field--name-field-main-img img {
        min-height: 220px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-title h1 {
        font-size: 28px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-text {
        font-size: 14px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-feedback-btn a {
        min-height: 40px;
        font-size: 14px;
        padding: 0 16px;
    }

    .block-content--type-main-content .group-left .field--name-field-main-feedback-btn a::after {
        width: 20px;
        height: 20px;
    }

    .block-content--type-main-content .group-left .field--name-field-advantages {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .block-content--type-main-content .group-left .paragraph--type--advantage {
        min-height: 96px;
        padding: 12px 10px;
    }

    /* CONDITIONS */
    .region-conditions .views-row,
    main#main .view.view-conditions.view-display-id-page_1 .views-row {
        padding: 18px 16px 16px;
        min-height: 170px;
        border-radius: 14px;
    }

    .region-conditions .views-field-field-condition-image,
    main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-image {
        margin-bottom: 16px;
    }

    .views-field-field-condition-title,
    main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-title .field-content {
        font-size: 18px;
    }

    .region-conditions .views-field-field-condition-text,
    main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-text,
    main#main .view.view-conditions.view-display-id-page_1 .views-field-field-condition-text .field-content {
        font-size: 14px;
    }

    /* GALLERIES */
    .photoswipe-gallery.field__items {
        grid-template-columns: 1fr;
    }

    /* CATALOG */
    .catalog .view-content,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content {
        grid-template-columns: 1fr;
    }

    .catalog .view-content > .views-row > .taxonomy-term,
    #block-vesta-theme-content .view-catalog.view-display-id-page .view-content > .views-row > .taxonomy-term {
        min-height: 240px;
    }

    /* APARTMENTS */
    #block-block-apartments-on-front .field--name-field-image-product-view img,
    #block-vesta-theme-content .view-tovary.view-display-id-page_1 .field--name-field-image-product-view img,
    #block-vesta-theme-content article.product-view-full > .field--name-field-image-product-view img {
        height: 210px;
    }

    #block-vesta-theme-content article.product-view-full {
        max-width: none;
        width: 100%;
        border-radius: 16px;
    }

    /* ABOUT */
    #block-vesta-theme-block-about .field--name-field-achievement-title {
        font-size: 30px;
    }

    #block-vesta-theme-block-about .field--name-field-achievement-text,
    #block-vesta-theme-block-about .field--name-field-about-text {
        font-size: 14px;
    }

    #block-vesta-theme-block-about .image-style-about-img {
        height: 220px;
        border-radius: 14px;
    }

    /* CONTACTS / FEEDBACK */
    .feedback-title {
        margin-bottom: 16px;
    }

    .feedback-left .field-tel a,
    .feedback-left .field-mail a {
        font-size: 16px;
        padding-left: 26px;
    }

    .feedback-right .webform-submission-form,
    .webform-submission-reserve-room-form,
    .webform-submission-callback-form {
        padding: 8px;
        border-radius: 12px;
    }

    .feedback-right input[type="text"],
    .feedback-right input[type="email"],
    .feedback-right input[type="tel"],
    .feedback-right .js-webform-input-mask,
    .webform-submission-reserve-room-form input[type="text"],
    .webform-submission-reserve-room-form input[type="email"],
    .webform-submission-reserve-room-form input[type="tel"],
    .webform-submission-reserve-room-form .js-webform-input-mask,
    .webform-submission-callback-form input[type="text"],
    .webform-submission-callback-form input[type="email"],
    .webform-submission-callback-form input[type="tel"],
    .webform-submission-callback-form .js-webform-input-mask {
        height: 38px;
        line-height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }

    .feedback-right textarea,
    .webform-submission-reserve-room-form textarea,
    .webform-submission-callback-form textarea {
        min-height: 88px;
        padding: 12px;
        font-size: 14px;
    }

    .feedback-right .webform-button--submit,
    .feedback-right .button--primary,
    .feedback-right .form-submit,
    .webform-submission-reserve-room-form .webform-button--submit,
    .webform-submission-reserve-room-form .button--primary,
    .webform-submission-reserve-room-form .form-submit,
    .modal .modal-footer .webform-button--submit,
    .modal .modal-footer .button--primary,
    .modal .modal-footer .form-submit {
        height: 38px;
        line-height: 38px;
        font-size: 15px;
    }

    .feedback-right .form-item-privacy .webform-element-description,
    .webform-submission-reserve-room-form .form-item-privacy .webform-element-description,
    .webform-submission-callback-form .form-item-privacy .webform-element-description {
        font-size: 13px;
    }

    .feedback-right .mapContainer,
    .feedback-right iframe,
    .feedback-map .mapContainer {
        min-height: 220px;
        height: 220px !important;
        border-radius: 12px;
    }

    /* SEARCH */
    #block-vesta-theme-content > form.search-api-page-block-form-search {
        padding: 10px;
        border-radius: 14px;
    }

    #block-vesta-theme-content > form.search-api-page-block-form-search .form-search {
        height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }

    #block-vesta-theme-content > form.search-api-page-block-form-search .search-form__submit {
        height: 42px;
        font-size: 15px;
    }

    #block-vesta-theme-content > form.search-api-page-block-form-search + h2 {
        font-size: 22px;
    }

    #block-vesta-theme-content > h3 {
        padding: 16px 16px 12px;
        border-radius: 14px;
    }

    #block-vesta-theme-content > h3 a {
        font-size: 20px;
    }

    #block-vesta-theme-content > h3 + p {
        padding: 0 16px 16px;
        font-size: 14px;
        border-radius: 0 0 14px 14px;
    }

    /* PRODUCT PAGE */
    .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,
    .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: 72px;
        min-width: 72px;
        max-height: 72px;
        min-height: 72px;
    }

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

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

    /* MODAL */
    .modal .modal-content {
        border-radius: 14px;
    }

    .modal .modal-header {
        padding: 14px 14px 8px;
    }

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

    .modal .modal-body {
        padding: 0 14px;
    }

    .modal .modal-footer {
        padding: 12px 14px 14px;
    }
}

/* 1. Отсекаем горизонтальный overflow */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

/* 2. Убираем проблемную схему с 100vw */
.block-content--type-main-content.block-content--view-mode-full.ds-2col {
    position: relative;
    left: auto;
    width: auto;
    max-width: none;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    /*min-height: 650px;*/
    display: grid !important;
    grid-template-columns: 54.5% 45.5%;
    overflow: hidden;
    background: #34479d;
}

/* fix white strip on offcanvas open */
body[style*="padding-right"] {
    padding-right: 0 !important;
}

body[style*="overflow: hidden"] {
    padding-right: 0 !important;
}

/* ========================================
   MODAL DIALOG (jQuery UI) СТИЛИЗАЦИЯ ПОД САЙТ
   ======================================== */

/* Основное окно */
.ui-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: calc(100% - 40px) !important;
    width: auto !important;
    min-width: 280px;
    max-height: calc(100% - 40px) !important;
    border: 1px solid #dfe5ef !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 20px 35px -12px rgba(16, 30, 91, 0.25) !important;
    font-family: var(--font-family), sans-serif !important;
    padding: 0 !important;
    overflow: hidden !important;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Заголовок */
.ui-dialog .ui-dialog-titlebar {
    background: var(--fon) !important;
    border: 0 !important;
    border-bottom: 1px solid #e8ecf3 !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 18px 24px 14px 24px !important;
    margin: 0 !important;
    font-weight: normal !important;
    color: var(--chernyy) !important;
}

/* Текст заголовка */
.ui-dialog .ui-dialog-title {
    font-family: var(--second-family), var(--font-family), sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    color: var(--chernyy) !important;
    text-transform: none !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

/* Кнопка закрытия */
.ui-dialog .ui-dialog-titlebar-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 32px !important;
    height: 32px !important;
    background: #f1f4f9 !important;
    border: 1px solid #dfe5ef !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    background: #e5ecf6 !important;
    border-color: #c7d4e8 !important;
}

/* Убираем стандартные иконки jQuery UI */
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon {
    display: none !important;
}

/* Создаём свою иконку закрытия */
.ui-dialog .ui-dialog-titlebar-close::before,
.ui-dialog .ui-dialog-titlebar-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    background: #6c7a91;
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: background 0.2s ease;
}

.ui-dialog .ui-dialog-titlebar-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ui-dialog .ui-dialog-titlebar-close:hover::before,
.ui-dialog .ui-dialog-titlebar-close:hover::after {
    background: var(--siniy);
}

/* Содержимое модального окна */
.ui-dialog .ui-dialog-content {
    padding: 24px 24px 28px 24px !important;
    background: #fff !important;
    font-family: var(--font-family), sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    letter-spacing: -0.02em !important;
    color: var(--chernyy) !important;
    overflow-y: auto !important;
}

/* Текст подтверждения внутри контента (если нет дополнительной обёртки) */
.ui-dialog .webform-confirmation-modal--content {
    font-size: 16px;
    line-height: 1.45;
    color: var(--chernyy);
    text-align: center;
    padding: 8px 0 4px;
}

/* Адаптация под мобильные */
@media screen and (max-width: 640px) {
    .ui-dialog {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        left: 16px !important;
        right: 16px !important;
        transform: translate(0, -50%) !important;
        margin: 0 auto !important;
    }

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

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

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

    .ui-dialog .ui-dialog-content {
        padding: 18px 18px 22px 18px !important;
        font-size: 15px !important;
    }
}

@media screen and (max-width: 480px) {
    .ui-dialog {
        width: calc(100% - 24px) !important;
        left: 12px !important;
        right: 12px !important;
    }

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

    .ui-dialog .ui-dialog-content {
        padding: 16px 16px 20px 16px !important;
        font-size: 14px !important;
    }
}
