.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: #fdf8f2;
    color: #000;
    padding: 5px 5px;
    z-index: 50;
}

#header-mob .col-nav a img {
    filter: invert(0) brightness(0) !important;
}

#header-mob .col-phone .contact-item a {
    color: black !important;
}

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


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

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

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

:root {
    --font-family: "Roboto", sans-serif;
    --second-family: "Raleway", sans-serif;
}

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


/*HEADER STYLES*/

/* SLICK STYLES */
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*/

/*HEADER*/

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

.front-h1 {
    display: none;
}

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

/* Верхняя тонкая красная полоска */
.header-notice {
    background: #7c2b20;
    font-size: 11px;
    line-height: 1.2;
}

.header-notice__inner {
    padding: 4px 0;
    text-align: center;
    color: #fff;
    font-weight: 400;
    font-size: 14px;
}

.header-notice__inner .field__item p,
.header-notice__inner p {
    margin: 0;
}

/* Основная часть */
.header-main {
    background: #8f795e;
    padding: 16px 0 10px;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    gap: 65px;
}

/* =========================
   LOGO
========================= */

.header-logo,
.header-logo a {
    overflow: visible;
}

.header-logo {
    flex: 0 0 91px;
    width: 91px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.header-logo a {
    display: block;
    width: 91px;
    height: 79px;
}

.header-logo img {
    display: block;
    width: 91px;
    height: 100px;
    object-fit: contain;
    max-width: none;
    max-height: none;
    margin: 0;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.75));
}

/* =========================
   RIGHT PART
========================= */

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 97px;
    gap: 6px;
}

/* Верхняя линия */
.header-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.header-contacts {
    display: flex;
    align-items: flex-start;
    gap: 85px;
    flex-wrap: nowrap;
}

.header-contact {
    min-width: 110px;
    max-width: 235px;
}

.header-contact__label {
    font-weight: 400;
    font-size: 14px;
    color: #fff;
}

.header-contact__value {
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
}

.header-contact__value:hover {
    color: #fff;
}

.header-top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

/* =========================
   SOCIALS
========================= */

.header-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social {
    display: inline-block;
    width: 22px;
    height: 22px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    text-decoration: none;
    flex-shrink: 0;
}

.header-social--tg {
    background-image: url('/sites/all/themes/vesta_theme/image/svg/tg-white.svg');
}

.header-social--max {
    background-image: url('/sites/all/themes/vesta_theme/image/svg/max-white.svg');
}

/* =========================
   CALLBACK BUTTON
========================= */

.header-callback .field__item p,
.header-callback p {
    margin: 0;
}

.header-callback .btn,
.header-callback a,
.header-callback button,
.header-callback input[type="submit"] {
    background: #fff;
    color: #000;
    border: 0;
    border-radius: 5px;
    padding: 12px 14px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

.header-callback .btn:hover,
.header-callback a:hover,
.header-callback button:hover,
.header-callback input[type="submit"]:hover {
    background: #f2f2f2;
    color: #222;
}

/* =========================
   BOTTOM ROW
========================= */

.header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-nav {
    flex: 1;
}

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

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

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

.header-nav .nav > .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

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

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

.header-nav .nav-link,
.header-nav a {
    padding: 0;
    border: 0;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    color: #fff;
}

.header-nav .nav-link:hover,
.header-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Dropdown */
.header-nav .dropdown-menu {
    margin-top: 10px;
}

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

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

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    overflow: visible;
}

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

.header-search .form-item {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    margin: 0;
    z-index: 5;
}

.header-search .form-actions {
    position: relative;
    z-index: 6;
    margin: 0;
}

.header-search input[type="search"],
.header-search input[type="text"],
.header-search .form-search {
    display: block;
    width: 0;
    min-width: 0;
    opacity: 0;
    padding: 6px 0;
    border: 1px solid transparent;
    background: #fff;
    box-sizing: border-box;
    pointer-events: none;
    transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
}

.header-search .search-form__submit,
.header-search button,
.header-search input[type="submit"] {
    width: 22px;
    height: 22px;
    min-width: 18px;
    padding: 0;
    border: 0;
    background: url('/sites/all/themes/vesta_theme/image/svg/search-icon.svg') center center no-repeat !important;
    background-size: contain !important;
    font-size: 0;
    line-height: 0;
    color: transparent;
    box-shadow: none;
    cursor: pointer;
}

.header-search .search-form__submit::before,
.header-search .search-form__submit::after,
.header-search button::before,
.header-search button::after,
.header-search input[type="submit"]::before,
.header-search input[type="submit"]::after {
    display: none !important;
    content: none !important;
}

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

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

.site-header .block,
.site-header .region,
.site-header .field,
.site-header .field__item {
    margin-bottom: 0;
}

.site-header .contextual-region {
    min-height: auto;
}

.site-header .container-inline > div {
    margin: 0;
}

.site-header .form-control:focus,
.site-header .btn:focus,
.site-header button:focus,
.site-header input:focus,
.site-header a:focus {
    box-shadow: none;
    outline: none;
}

.front-top,
.front-top.has-front-bg {
    position: relative;
    overflow: hidden;
    height: 770px;
    min-height: 770px;
    background: #1f1f1f;
}

.front-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding-top: 24px;
}

.front-bg .region,
.front-bg .block,
.front-bg .field,
.front-bg .field__item,
.front-bg .media,
.front-bg picture {
    width: 100%;
    height: 100%;
    margin: 0;
}

.front-bg img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.front-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.front-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.front-bg .region,
.front-bg .block,
.front-bg .field,
.front-bg .field__item,
.front-bg .media,
.front-bg picture {
    height: 100%;
    margin: 0;
}

/* header и hero поверх фона */
.front-top #header,
.front-top #header-mob,
.front-top .hero {
    position: relative;
    z-index: 2;
}

/* сам header должен быть прозрачным */
.front-top #header,
.front-top #header-mob {
    background: transparent;
}

.front-top #header .header-main,
.front-top #header .header-inner,
.front-top #header .header-right,
.front-top #header .header-top-row,
.front-top #header .header-bottom-row {
    background: transparent;
}

.front-top #header .header-notice {
    position: relative;
    z-index: 3;
    background: #7d3028;
}

.hero {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 110px 0 70px;
}

.hero__content {
    color: #fff;
}

.hero__content .block {
    margin: 0;
}

.hero__content h1,
.hero__content h2,
.hero__content h3 {
    color: #fff;
    margin: 0 0 22px;
    font-size: 58px;
    line-height: 1.08;
    font-weight: 700;
    max-width: 950px;
}

.hero__content p {
    color: #fff;
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    max-width: 900px;
}

/* FOOTER */

/* FOOTER */

#footer.site-footer {
    background: #f3efea;
    color: #111;
}

#footer .footer-top {
    padding: 22px 0 16px;
}

#footer a {
    color: #111;
    text-decoration: none;
    transition: .2s ease;
}

#footer a:hover {
    color: #8d3023;
}

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

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

#footer .footer-logo {
    width: 135px;
    height: 116px;
    flex: 0 0 116px;
    margin-bottom: 37px;
}

#footer .footer-logo a {
    display: block;
    width: 135px;
    height: 116px;
}

#footer .footer-logo img {
    display: block;
    width: 135px;
    height: 116px;
    max-width: none;
    object-fit: contain;
}

#footer .footer-policy a {
    font-size: 14px;
    line-height: 1.3;
}

#footer .footer-center {
    display: flex;
    flex-direction: column;
}

#footer .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

#footer .footer-col .block,
#footer .footer-col nav {
    margin: 0;
}

#footer .footer-col .block-title,
#footer .footer-col h2 {
    display: none;
}

/* Общая логика для обоих меню */
#footer .footer-col ul,
#footer .footer-col .menu,
#footer .footer-col .nav,
#footer .footer-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer .footer-col li,
#footer .footer-col .nav-item,
#footer .footer-list li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#footer .footer-col a,
#footer .footer-col .nav-link,
#footer .footer-list a {
    display: inline-block;
    padding: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    transition: color .2s ease;
}

/* Hover одинаковый и для navigation_footer, и для navigation_services */
#footer .footer-col a:hover,
#footer .footer-col .nav-link:hover,
#footer .footer-list a:hover {
    color: #8d3023;
}

/* Отдельно фиксируем обе колонки, чтобы были одинаковые по ритму */
#footer .footer-col--nav .nav,
#footer .footer-col--nav .menu,
#footer .footer-col--nav ul,
#footer .footer-col--services .nav,
#footer .footer-col--services .menu,
#footer .footer-col--services ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer .footer-col--nav li,
#footer .footer-col--nav .nav-item,
#footer .footer-col--services li,
#footer .footer-col--services .nav-item {
    display: block;
    width: 100%;
    margin: 0;
}

#footer .footer-col--nav a,
#footer .footer-col--nav .nav-link,
#footer .footer-col--services a,
#footer .footer-col--services .nav-link {
    display: inline-block;
    padding: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    transition: color .2s ease;
}

#footer .footer-col--nav a:hover,
#footer .footer-col--nav .nav-link:hover,
#footer .footer-col--services a:hover,
#footer .footer-col--services .nav-link:hover {
    color: #8d3023;
}

/* Если есть вложенные dropdown'ы */
#footer .footer-col .dropdown-menu {
    position: static;
    display: block;
    float: none;
    min-width: 0;
    margin: 6px 0 0 0;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#footer .footer-col .dropdown-toggle::after {
    display: none;
}

#footer .footer-copy {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
}

#footer .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

#footer .footer-contact {
    font-size: 15px;
    line-height: 1.35;
}

#footer .footer-contact a {
    font-size: 15px;
    line-height: 1.35;
}

#footer .footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

#footer .footer-social {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#footer .footer-social--tg {
    background-image: url("../image/svg/tg.svg");
}

#footer .footer-social--max {
    background-image: url("../image/svg/max.svg");
}

#footer .footer-bottom-bar {
    width: 100%;
    background: #7d3028;
    text-align: center;
    padding: 10px 15px;
}

#footer .footer-bottom-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    display: inline-block;
}

#footer .footer-bottom-bar a:hover {
    color: #fff;
    opacity: .85;
}

#footer .footer-bottom-bar span {
    text-transform: uppercase;
}

#footer .contextual {
    display: none;
}

/* MAIN BLOCK */

section.main_block {
    position: relative;
    padding: 200px 0 80px;
}

section.main_block > .container {
    position: relative;
}

section.main_block .field--name-field-content-main-title,
section.main_block .field--name-field-content-main-text {
    margin: 0;
}

section.main_block .field--name-field-content-main-title h1 {
    font-family: var(--second-family);
    margin: 0 0 26px;
    font-size: 55px;
    font-weight: 700;
    color: #fff;
    max-width: 1045px;
    margin-bottom: 40px;
}

section.main_block .field--name-field-content-main-title .title-red {
    color: #7d3028;
}

section.main_block .field--name-field-content-main-title .title-green {
    color: #1d6a3c;
}

section.main_block .field--name-field-content-main-text {
    max-width: 1014px;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

section.main_block .field--name-field-content-main-text br {
    display: block;
}

section.main_block .contextual {
    z-index: 5;
}


/*BLOCK ABOUT*/

.front-workshop {
    padding: 0px 0 100px;
    background: #fdf8f2;
}

#block-vesta-block-about {
    color: #1f1f1f;
}

#block-vesta-block-about .workshop_top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 30px;
}

#block-vesta-block-about .field--name-field-workshop-title {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 40px;
    color: #000;
    max-width: 681px;
}

#block-vesta-block-about .field--name-field-workshop-title span {
    color: #7d3028;
}

#block-vesta-block-about .field--name-field-workshop-text {
    max-width: 453px;
    margin: 0;
    padding-top: 2px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
    color: #4a4a4a;
}

#block-vesta-block-about .workshop_main {
    display: grid;
    grid-template-columns: minmax(0, 515px) minmax(0, 1fr);
    grid-template-areas:
    "advantages image"
    "button image";
    align-items: start;
    column-gap: 56px;
    row-gap: 28px;
}

#block-vesta-block-about .field--name-field-workshop-advantages {
    grid-area: advantages;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#block-vesta-block-about .field--name-field-workshop-btn {
    grid-area: button;
    margin-top: 4px;
}

#block-vesta-block-about .field--name-field-workshop-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 5px;
    background: #1d6a3c;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.25s ease, transform 0.25s ease;
}

#block-vesta-block-about .field--name-field-workshop-btn a:hover {
    background: #175a30;
    transform: translateY(-1px);
}

#block-vesta-block-about .field--name-field-workshop-img {
    grid-area: image;
    display: flex;
    justify-content: flex-end;
}

#block-vesta-block-about .field--name-field-workshop-img img {
    display: block;
    width: 100%;
    max-width: 670px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Пункты преимуществ */
#block-vesta-block-about .field--name-field-workshop-img img {
    display: block;
    width: 100%;
    max-width: 670px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

#block-vesta-block-about .paragraph--type--product-param {
    display: grid;
    grid-template-columns: 42px 1fr;
    row-gap: 8px;
    align-items: start;
}

#block-vesta-block-about .field--name-field-benefit-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 42px;
    margin: 0;
}

#block-vesta-block-about .field--name-field-benefit-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

#block-vesta-block-about .field--name-field-benefit-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #000;
}

#block-vesta-block-about .field--name-field-benefit-text {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    max-width: 511px;
    font-size: 16px;
    color: #565656;
}

#block-vesta-block-about .paragraph--type--product-param > .field {
    margin: 0;
}

/* FEEDBACK */

.front-feedback {
    padding: 100px 0 100px;
    background: #fdf8f2;
}

.front-feedback .region-feedback {
    max-width: 912px;
    margin: 0 auto;
    text-align: center;
}

/* Заголовок */
.front-feedback .field--name-field-feedback-title .field__item {
    margin: 0 0 18px;
    font-weight: 700;
    font-size: clamp(32px, 3.2vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #111111;
}

.front-feedback .field--name-field-feedback-title .field__item span {
    color: #8d4338;
}

/* Подзаголовок */
.front-feedback .field--name-field-feedback-text.field__item {
    max-width: 500px;
    margin: 0 auto 42px;
    font-size: 16px;
    color: #565656;
}

.field--name-field-feedback-title {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 40px;
    color: #000;
    margin-bottom: 30px;
}

.field--name-field-feedback-title span {
    color: #7d3028;
}

/* Форма */
.front-feedback .block-webform {
    max-width: 789px;
    margin: 0 auto;
}

.front-feedback form.webform-submission-form {
    margin: 0;
}

/* Поля */
.front-feedback .form-item {
    margin: 0 0 16px;
}

.front-feedback .form-control,
.front-feedback input[type="text"],
.front-feedback input[type="email"] {
    width: 100%;
    height: 34px;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid #000;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    color: #565656;
    transition: border-color 0.25s ease, color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.front-feedback .form-control::placeholder,
.front-feedback input[type="text"]::placeholder,
.front-feedback input[type="email"]::placeholder {
    color: #6f6b66;
    opacity: 1;
}

.front-feedback .form-control:focus,
.front-feedback input[type="text"]:focus,
.front-feedback input[type="email"]:focus {
    outline: none;
    border-bottom-color: #4d4a45;
    background: transparent;
    box-shadow: none;
}

/* Чекбокс */
.front-feedback .form-item-privacy {
    margin: 14px 0 26px;
}

.front-feedback .form-item-privacy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    text-align: left;
}

.front-feedback .form-item-privacy .form-checkbox {
    width: 14px;
    height: 14px;
    margin: 3px 0 0;
    flex: 0 0 14px;
    accent-color: #1f7a3d;
    cursor: pointer;
}

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

.front-feedback .form-item-privacy .webform-element-description {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    font-size: 14px;
    color: #565656;
}

.front-feedback .form-item-privacy .webform-element-description span {
    display: inline;
}

.front-feedback .form-item-privacy .webform-element-description span:nth-child(2),
.front-feedback .form-item-privacy .webform-element-description span:nth-child(4) {
    text-decoration: underline;
}

/* Кнопка */
.front-feedback .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.front-feedback .webform-button--submit,
.front-feedback .btn.btn-primary,
.front-feedback button[type="submit"] {
    min-width: 198px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 5px;
    background: #1d6a3c;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.front-feedback .webform-button--submit:hover,
.front-feedback .btn.btn-primary:hover,
.front-feedback button[type="submit"]:hover {
    background: #176432;
}

.front-feedback .webform-button--submit:active,
.front-feedback .btn.btn-primary:active,
.front-feedback button[type="submit"]:active {
    transform: translateY(1px);
}

.front-feedback .webform-button--submit:focus,
.front-feedback .btn.btn-primary:focus,
.front-feedback button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.18);
}

/* Убираем лишние дефолтные стили Bootstrap/Drupal */
.front-feedback .form-control:focus,
.front-feedback .btn:focus,
.front-feedback .btn-primary:focus {
    box-shadow: none;
}

.front-feedback .description {
    color: inherit;
}

/* Скрыть текст ошибок */
.front-feedback .form-item--error-message,
.front-feedback strong.error,
.front-feedback label.error {
    display: none !important;
}

.front-feedback input[type="text"],
.front-feedback input[type="email"] {
    border: 0;
    border-bottom: 1px solid #8a857f;
    background: transparent;
    box-shadow: none;
    transition: border-color 0.25s ease;
}

.front-feedback input[type="text"].error,
.front-feedback input[type="email"].error,
.front-feedback .form-control.error {
    border-bottom: 1px solid #b33a2f !important;
    color: #2c2c2c;
    box-shadow: none !important;
}

.front-feedback input[type="text"].error:focus,
.front-feedback input[type="email"].error:focus,
.front-feedback .form-control.error:focus {
    border-bottom: 1px solid #b33a2f !important;
    box-shadow: none !important;
    outline: none;
}

.front-feedback input:invalid,
.front-feedback input.error,
.front-feedback .form-control.error {
    box-shadow: none !important;
}

/* Скрываем текст ошибки */
.front-feedback .form-item--error-message,
.front-feedback strong.error,
.front-feedback label.error {
    display: none !important;
}

/* Ошибка только на самом чекбоксе */
.front-feedback .form-item-privacy .form-checkbox.error {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 3px 0 0;
    border: 1px solid #8a857f;
    background: transparent;
    border-radius: 2px;
    box-sizing: border-box;
    vertical-align: top;
    position: relative;
}

/* Красная обводка при ошибке */
.front-feedback .form-item-privacy .form-checkbox.error {
    border: 1px solid #c53b30 !important;
    box-shadow: 0 0 0 1px #c53b30 inset;
    outline: none;
}

/* Текст согласия без подчеркивания/рамок */
.front-feedback .form-item-privacy .description,
.front-feedback .form-item-privacy .webform-element-description {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
}

/* На случай если старый стиль остался */
.front-feedback .form-item-privacy .form-checkbox.error + .description .webform-element-description {
    border: 0 !important;
    padding-bottom: 0 !important;
    display: block !important;
}

/* Нормальное выравнивание чекбокса и текста */
.front-feedback .form-item-privacy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    text-align: left;
}

.front-feedback .form-item-privacy .description {
    margin: 0;
    line-height: 1.4;
}

/* Убираем лишние отступы Drupal у field__item */
#block-vesta-block-about .field__item {
    margin-bottom: 0;
}

/* CONTACT BLOCK */

.front-map-contacts {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: #e9ecef;
}

.front-map-contacts__map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.front-map-contacts > .container {
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.front-map-contacts__contacts {
    min-height: 420px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.front-map-contacts__contacts .contacts-map-card {
    pointer-events: auto;
}

.front-map-contacts__map > * {
    width: 100%;
    height: 100%;
}

.front-map-contacts__map .region,
.front-map-contacts__map .block,
.front-map-contacts__map .contextual-region,
.front-map-contacts__map .field,
.front-map-contacts__map .field__item,
.front-map-contacts__map .text-formatted,
.front-map-contacts__map .clearfix,
.front-map-contacts__map .mapContainer {
    width: 100%;
    height: 100% !important;
}

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

.front-map-contacts > .container {
    position: relative;
    z-index: 5;
}

.front-map-contacts__contacts {
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 20px 0;
    pointer-events: none;
}

.front-map-contacts__contacts .contacts-map-card {
    pointer-events: auto;
}

.contacts-map-card {
    width: 270px;
    min-height: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-left: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.contacts-map-card__item + .contacts-map-card__item {
    margin-top: 20px;
}

.contacts-map-card__label {
    font-size: 14px;
    font-weight: 400;
    color: #565656;
}

.contacts-map-card__link,
.contacts-map-card__text {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
}

.contacts-map-card__link:hover {
    text-decoration: underline;
}

.contacts-map-card__text {
    max-width: 220px;
}

.contacts-map-card__chat {
    margin-top: 14px;
}

.contacts-map-card__chat-title {
    margin-bottom: 10px;
    font-size: 14px;
    color: #565656;
}

.contacts-map-card__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contacts-map-card .footer-social {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    text-decoration: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.contacts-map-card .footer-social--tg {
    background-image: url("../image/svg/tg.svg");
}

.contacts-map-card .footer-social--max {
    background-image: url("../image/svg/max.svg");
}

/* ===== Блок услуг ===== */
.front-services {
    padding: 100px 0;
    background: #fdf8f2;
}

/* Заголовок блока */
#block-vesta-theme-services-title {
    margin-bottom: 34px;
}

#block-vesta-theme-services-title .field--name-field-services-title {
    font-family: var(--second-family);
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #000;
}

#block-vesta-theme-services-title .field--name-field-services-title span {
    color: #7d3028;
}

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

#block-vesta-service-block-on-front .views-row {
    margin: 0;
    height: 100%;
}

/* Карточка */
#block-vesta-service-block-on-front .views-row > article.node--view-mode-teaser {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 430px;
    padding: 25px 25px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f1e9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

#block-vesta-service-block-on-front .views-row > article.node--view-mode-teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

/* Заголовок карточки */
#block-vesta-service-block-on-front .views-row > article.node--view-mode-teaser > h2 {
    margin: 0 0 10px;
    max-width: 216px;
    position: relative;
    z-index: 2;
}

#block-vesta-service-block-on-front .views-row > article.node--view-mode-teaser > h2 a {
    display: block;
    position: relative;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
}

#block-vesta-service-block-on-front .views-row > article.node--view-mode-teaser > h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

#block-vesta-service-block-on-front .views-row > article.node--view-mode-teaser > h2 a:hover {
    color: #8e3d31;
}

/* Скрываем лишнюю ссылку "Подробнее" внутри карточки */
#block-vesta-service-block-on-front .node__links {
    display: none;
}

/* Внутренний контент карточки */
#block-vesta-service-block-on-front .node__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Скрываем дублирующийся заголовок из field-service-title */
#block-vesta-service-block-on-front .field--name-field-service-title {
    display: none;
}

/* Блок текста */
#block-vesta-service-block-on-front .service_top {
    position: relative;
    padding-right: 56px; /* место под стрелку */
}

/* Текст */
#block-vesta-service-block-on-front .field--name-field-service-text {
    max-width: 256px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    color: #565656;
    font-size: 14px;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;

    word-break: break-word;
}

/* Стрелка — в правом верхнем углу */
#block-vesta-service-block-on-front .field--name-field-service-arrow {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 3;
    pointer-events: none;
}

#block-vesta-service-block-on-front .field--name-field-service-arrow img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Изображение — без пустого промежутка слева */
#block-vesta-service-block-on-front .field--name-field-service-img {
    margin-top: auto;
    margin-left: -25px;
    margin-right: -25px;
    width: calc(100% + 50px);
    align-self: stretch;
}

#block-vesta-service-block-on-front .field--name-field-service-img img {
    display: block;
    width: 100%;
    height: 216px;
    object-fit: cover;
    object-position: center;
}

/* Кнопка снизу */
#block-vesta-service-block-on-front .more-link {
    margin-top: 20px;
    text-align: center;
}

#block-vesta-service-block-on-front .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 5px;
    background: #1d6a3c;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 10px;
}

#block-vesta-service-block-on-front .more-link a:hover {
    background: #175a30;
    transform: translateY(-1px);
}

/* ===== ФОТОГАЛЕРЕЯ НА ГЛАВНОЙ ===== */

.front-gallery {
    background: #f2f1e9;
    padding: 100px 0 100px;
}

/* Заголовок */
#block-vesta-theme-gallery-title {
    margin-bottom: 30px;
}

#block-vesta-theme-gallery-title .field--name-field-gallery-title {
    font-family: var(--second-family);
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #000;
}

#block-vesta-theme-gallery-title .field--name-field-gallery-title span {
    color: #7d3028;
}

/* Сетка галереи */
#block-vesta-galleries-block-on-front .view-content .item-list ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#block-vesta-galleries-block-on-front .view-content .item-list ul li {
    margin: 0;
    padding: 0;
}

/* Ссылка-обертка фото */
#block-vesta-galleries-block-on-front .photoswipe-gallery,
#block-vesta-galleries-block-on-front .photoswipe-gallery a {
    display: block;
    width: 100%;
}

/* Карточка изображения */
#block-vesta-galleries-block-on-front .photoswipe-gallery a {
    border-radius: 12px;
    overflow: hidden;
    background: #d9d9d9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Эффект при наведении */
#block-vesta-galleries-block-on-front .photoswipe-gallery a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Изображения */
#block-vesta-galleries-block-on-front .image-style-gallery {
    display: block;
    width: 100%;
    aspect-ratio: 270 / 300;
    object-fit: cover;
    border-radius: 12px;
}

/* Кнопка "Больше примеров..." */
#block-vesta-galleries-block-on-front .more-link {
    margin-top: 26px;
    text-align: center;
}

#block-vesta-galleries-block-on-front .more-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 5px;
    background: #1d6a3c;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 10px;
}

#block-vesta-galleries-block-on-front .more-link a:hover {
    background: #175a30;
    transform: translateY(-1px);
}

#block-vesta-galleries-block-on-front .view-content {
    margin-bottom: 0;
}

/*MODAL FIX*/

html {
    overflow-y: scroll;
}

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

.modal {
    padding-right: 0 !important;
    padding-left: 0 !important;
    align-items: center;
    justify-content: center;
}

/* Пока Bootstrap держит display:block — сохраняем flex-центрирование */
.modal[style*="display: block"] {
    display: flex !important;
}

.modal.show {
    display: flex !important;
}

.modal-dialog {
    width: 100%;
    max-width: 640px;
    margin: 0 auto !important;
    pointer-events: none;
}

.modal-content {
    pointer-events: auto;
}

.modal.fade {
    transition: none !important;
}

.modal.fade .modal-dialog {
    transform: none !important;
    transition: none !important;
}

.modal.show .modal-dialog {
    transform: none !important;
}

/* Убираем мерцание backdrop */
.modal-backdrop {
    padding-right: 0 !important;
    background: rgba(17, 17, 17, 0.48) !important;
}

.modal-backdrop.fade {
    opacity: 0.48 !important;
    transition: none !important;
}

.modal-backdrop.show {
    opacity: 0.48 !important;
}

.modal {
    --bs-modal-width: 640px;
    padding: 20px;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.show .modal-dialog {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   MODAL FEEDBACK
========================= */

.modal {
    --bs-modal-width: 640px;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.modal-content {
    border: 0;
    border-radius: 12px;
    background: #fdf8f2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    font-family: var(--font-family);
}

.modal-backdrop.show {
    opacity: 1;
    background: rgba(17, 17, 17, 0.48);
    backdrop-filter: blur(2px);
}

.modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 20px;
    border-bottom: 1px solid #e3ddd6;
    background: transparent;
}

.modal-title {
    margin: 0;
    font-family: var(--second-family);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    color: #000;
}

.modal-title::first-letter {
    color: #7d3028;
}

.modal-header .btn-close,
.modal-header .close {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none;
    opacity: 1;
    cursor: pointer;
}

.modal-header .btn-close::before,
.modal-header .btn-close::after,
.modal-header .close::before,
.modal-header .close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1.5px;
    background: #111;
    transform-origin: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-header .btn-close::before,
.modal-header .close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-header .btn-close::after,
.modal-header .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-header .btn-close:hover::before,
.modal-header .btn-close:hover::after,
.modal-header .close:hover::before,
.modal-header .close:hover::after {
    background: #7d3028;
}

.modal-body {
    padding: 28px 32px 12px;
    color: #565656;
}

.modal-body .contextual,
.modal-body .ajax-progress,
.modal-body .webform-ajax-form-wrapper .contextual {
    display: none !important;
}

.modal-body form.webform-submission-form {
    margin: 0;
}

/* Поля */
.modal-body .form-item {
    margin: 0 0 18px;
}

.modal-body .form-control,
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="tel"] {
    width: 100%;
    height: 46px;
    padding: 0 0 0 2px;
    border: 0;
    border-bottom: 1px solid #8a857f;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    color: #2b2b2b;
    transition: border-color 0.25s ease, color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.modal-body .form-control::placeholder,
.modal-body input[type="text"]::placeholder,
.modal-body input[type="email"]::placeholder,
.modal-body input[type="tel"]::placeholder {
    color: #6f6b66;
    opacity: 1;
}

.modal-body .form-control:focus,
.modal-body input[type="text"]:focus,
.modal-body input[type="email"]:focus,
.modal-body input[type="tel"]:focus {
    outline: none;
    border-bottom-color: #1d6a3c;
    background: transparent;
    box-shadow: none;
}

/* Ошибки */
.modal-body .form-item--error-message,
.modal-body strong.error,
.modal-body label.error {
    display: none !important;
}

.modal-body input[type="text"].error,
.modal-body input[type="email"].error,
.modal-body input[type="tel"].error,
.modal-body .form-control.error {
    border-bottom: 1px solid #b33a2f !important;
    color: #2c2c2c;
    box-shadow: none !important;
}

.modal-body input[type="text"].error:focus,
.modal-body input[type="email"].error:focus,
.modal-body input[type="tel"].error:focus,
.modal-body .form-control.error:focus {
    border-bottom: 1px solid #b33a2f !important;
    box-shadow: none !important;
    outline: none;
}

/* Чекбокс */
.modal-body .form-item-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 10px;
    text-align: left;
}

.modal-body .form-item-privacy .form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 3px 0 0;
    flex: 0 0 14px;
    border: 1px solid #8a857f;
    border-radius: 2px;
    background: transparent;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}

.modal-body .form-item-privacy .form-checkbox:checked {
    border-color: #1d6a3c;
    background: #1d6a3c;
}

.modal-body .form-item-privacy .form-checkbox:checked::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.modal-body .form-item-privacy .form-checkbox.error {
    border: 1px solid #c53b30 !important;
    box-shadow: 0 0 0 1px #c53b30 inset;
}

.modal-body .form-item-privacy .description {
    margin: 0;
}

.modal-body .form-item-privacy .webform-element-description {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    font-size: 14px;
    line-height: 1.45;
    color: #565656;
}

.modal-body .form-item-privacy .webform-element-description span:nth-child(2),
.modal-body .form-item-privacy .webform-element-description span:nth-child(4) {
    text-decoration: underline;
}

/* Скрываем встроенную кнопку формы, оставляем footer-кнопку */
.modal-body .form-actions {
    display: none !important;
}

.modal-footer {
    display: flex;
    justify-content: center;
    padding: 10px 32px 32px;
    border-top: 0;
    background: transparent;
}

.modal-footer .webform-button--submit,
.modal-footer .btn.btn-primary,
.modal-footer button[type="button"] {
    min-width: 220px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 5px;
    background: #1d6a3c;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    box-shadow: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-footer .webform-button--submit:hover,
.modal-footer .btn.btn-primary:hover,
.modal-footer button[type="button"]:hover {
    background: #176432;
    color: #fff;
}

.modal-footer .webform-button--submit:active,
.modal-footer .btn.btn-primary:active,
.modal-footer button[type="button"]:active {
    transform: translateY(1px);
}

.modal-footer .webform-button--submit:focus,
.modal-footer .btn.btn-primary:focus,
.modal-footer button[type="button"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.18);
}

/* =========================
   HEADER DROPDOWN
========================= */

.header-bottom-row,
.header-nav,
.region-navigation,
.region-navigation nav,
.header-nav .nav {
    overflow: visible;
}

.header-nav .nav > .nav-item.dropdown {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.header-nav .nav > .nav-item.dropdown > .dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 0;
}

.header-nav .nav > .nav-item.dropdown > .dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-left: 0;
    vertical-align: middle;
    border: 0 !important;
    background: url('/sites/all/themes/vesta_theme/image/down-arrow.svg') center center no-repeat;
    background-size: contain;
    transition: transform 0.22s ease;
}

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

.header-nav .nav > .nav-item.dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    margin: 0;
    padding: 10px 0;
    display: block !important;
    list-style: none;
    border: 1px solid #e7dfd7;
    border-radius: 12px;
    background: #fdf8f2;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 60;
}

.header-nav .nav > .nav-item.dropdown.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-nav .nav > .nav-item.dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 26px;
    width: 14px;
    height: 14px;
    background: #fdf8f2;
    border-top: 1px solid #e7dfd7;
    border-left: 1px solid #e7dfd7;
    transform: rotate(45deg);
}

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

.header-nav .nav > .nav-item.dropdown > .dropdown-menu > .nav-item + .nav-item {
    border-top: 1px solid rgba(125, 48, 40, 0.08);
}

.header-nav .nav > .nav-item.dropdown > .dropdown-menu .dropdown-item {
    display: block;
    padding: 14px 20px;
    background: transparent;
    color: #111;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    white-space: normal;
}

.header-nav .nav > .nav-item.dropdown > .dropdown-menu .dropdown-item:hover,
.header-nav .nav > .nav-item.dropdown > .dropdown-menu .dropdown-item:focus {
    background: rgba(125, 48, 40, 0.06);
    color: #7d3028;
    padding-left: 24px;
}

/* =========================================
   PAGE SERVICES — карточки как на главной
========================================= */

/* Общая зона контента */
.wr_content .region-content {
    padding: 32px 0 90px;
}

/* -----------------------------------------
   BREADCRUMBS
----------------------------------------- */

.wr_content #block-vesta-theme-strokanavigacii {
    margin-bottom: 22px;
}

.wr_content #block-vesta-theme-strokanavigacii nav[aria-label="breadcrumb"] {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 10px 18px;
    border: 1px solid #e7dfd7;
    border-radius: 999px;
    background: #f2f1e9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

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

.wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #565656;
}

.wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item {
    margin-left: 10px;
    padding-left: 18px;
}

.wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #7d3028;
    border-right: 1.5px solid #7d3028;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.75;
}

.wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item::before {
    display: none !important;
}

.wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item a {
    color: #565656;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item a:hover {
    color: #7d3028;
}

.wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item:last-child {
    color: #7d3028;
    font-weight: 500;
}

/* -----------------------------------------
   PAGE TITLE
----------------------------------------- */

.wr_content #block-vesta-theme-page-title {
    margin-bottom: 38px;
}

.wr_content #block-vesta-theme-page-title h1 {
    margin: 0;
    font-family: var(--second-family);
    font-size: 40px;
    line-height: 1.08;
    font-weight: 700;
    color: #000;
}

.wr_content #block-vesta-theme-page-title h1::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: #7d3028;
}

/* =========================================
   SERVICES GRID — стиль как на главной
========================================= */

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

.wr_content .view-services.view-display-id-page_1 .views-row {
    margin: 0;
    height: 100%;
}

/* Карточка */
.wr_content .view-services.view-display-id-page_1 article.node--type-service.node--view-mode-teaser {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 430px;
    padding: 25px 25px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f1e9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.wr_content .view-services.view-display-id-page_1 article.node--type-service.node--view-mode-teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

/* Заголовок карточки */
.wr_content .view-services.view-display-id-page_1 article.node--type-service.node--view-mode-teaser > h2 {
    margin: 0 0 10px;
    max-width: 216px;
    position: relative;
    z-index: 2;
}

.wr_content .view-services.view-display-id-page_1 article.node--type-service.node--view-mode-teaser > h2 a {
    display: block;
    position: relative;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.wr_content .view-services.view-display-id-page_1 article.node--type-service.node--view-mode-teaser > h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.wr_content .view-services.view-display-id-page_1 article.node--type-service.node--view-mode-teaser > h2 a:hover {
    color: #8e3d31;
}

/* Скрываем дублирующийся заголовок */
.wr_content .view-services.view-display-id-page_1 .field--name-field-service-title {
    display: none;
}

/* Скрываем "Подробнее" */
.wr_content .view-services.view-display-id-page_1 .node__links {
    display: none;
}

/* Внутренний контент */
.wr_content .view-services.view-display-id-page_1 .node__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Блок текста */
.wr_content .view-services.view-display-id-page_1 .service_top {
    position: relative;
    padding-right: 56px; /* место под стрелку */
}

/* Текст */
.wr_content .view-services.view-display-id-page_1 .field--name-field-service-text {
    max-width: 256px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    color: #565656;
    font-size: 14px;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;

    word-break: break-word;
}

/* Стрелка */
.wr_content .view-services.view-display-id-page_1 .field--name-field-service-arrow {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 3;
    pointer-events: none;
}

.wr_content .view-services.view-display-id-page_1 .field--name-field-service-arrow img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Изображение */
.wr_content .view-services.view-display-id-page_1 .field--name-field-service-img {
    margin-top: auto;
    margin-left: -25px;
    margin-right: -25px;
    width: calc(100% + 50px);
    align-self: stretch;
}

.wr_content .view-services.view-display-id-page_1 .field--name-field-service-img img {
    display: block;
    width: 100%;
    height: 216px;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   SERVICE PAGE
========================================= */

.wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Основной контейнер */
.wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full > .node__content {
    display: block;
}

/* Верхний блок: текст слева, изображение справа */
.wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .page_content_top {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(460px, 1.25fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

/* Текст */
.wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-text-servise {
    min-width: 0;
}

/* Изображение */
.wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-service-img {
    width: 100%;
    max-width: 620px;
    margin-top: 0;
    justify-self: end;
    overflow: hidden;
    border-radius: 18px;
}

/* Само изображение */
.wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-service-img img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

/* Нижний текст */
.wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-field-text-servise-bottom {
    width: 100%;
    margin-top: 40px;
}

/* Планшет */
@media (max-width: 992px) {
    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .page_content_top {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 32vw);
        gap: 24px;
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-service-img {
        max-width: 100%;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .page_content_top {
        grid-template-columns: 1fr;
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-service-img {
        max-width: 420px;
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-service-img {
        max-width: 100%;
    }
}

/* =========================================
   GALLERIES PAGE
   Стилизация как страница услуг
========================================= */

/* Сетка карточек галерей */
.wr_content .view-galleries.view-display-id-galleries_page .view-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.wr_content .view-galleries.view-display-id-galleries_page .views-row {
    height: 100%;
    margin: 0;
}

/* Карточка */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    height: 100%;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e8e1d8;
    background: #f2f1e9;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    border-color: #ddd2c7;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #7d3028 0%, #1d6a3c 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser:hover::after {
    opacity: 1;
}

/* Заголовок */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 {
    margin: 0 0 24px;
    padding-right: 20px;
    font-family: var(--second-family);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    color: #111;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 a:hover {
    color: #7d3028;
}

/* Скрываем мета-информацию Drupal */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__meta,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__submitted,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .profile {
    display: none;
}

/* Контент карточки */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__content {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-end;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links {
    width: 100%;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links ul.links,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links ul.inline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links li {
    margin: 0;
    padding: 0;
}

/* Кнопка "Подробнее" */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 44px 10px 18px;
    border-radius: 5px;
    background: #1d6a3c;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: background 0.25s ease, transform 0.2s ease;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a:hover {
    background: #175a30;
    color: #fff;
    transform: translateY(-1px);
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

/* Убираем лишние Drupal-отступы */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .field,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .field__item {
    margin-bottom: 0;
}

/* =========================================
   INNER GALLERY PAGE / PORTFOLIO FULL
   Ровная сетка по всей ширине контейнера
========================================= */

/* Общий блок статьи */
.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

/* Скрываем служебную мету Drupal */
.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full .node__meta,
.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full .node__submitted,
.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full .profile {
    display: none;
}

/* Контент */
.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full > .node__content {
    margin-top: 6px;
}

/* Сетка галереи на всю ширину контейнера */
.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.field--name-field-gallery-item {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Каждая карточка */
.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.field--name-field-gallery-item > .field__item {
    position: relative;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #d9d9d9;
    aspect-ratio: 270 / 300;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover */
.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.field--name-field-gallery-item > .field__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Изображения */
.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.field--name-field-gallery-item > .field__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Убираем лишние Drupal-отступы */
.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full .field,
.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full .field__item {
    margin-bottom: 0;
}

/* *** ADAPTIVE *** */
/* =========================================
   RESPONSIVE PATCH
   Добавить в самый конец файла
========================================= */

:root {
    --section-space-lg: 100px;
    --section-space-md: 72px;
    --section-space-sm: 56px;
    --section-space-xs: 40px;
}

/* Базовые ограничения */
body {
    min-width: 320px;
    font-size: 16px;
    line-height: 1.45;
}

img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.header-notice__inner,
.header-contact__label,
.header-contact__value,
.header-nav .nav-link,
.header-nav a,
#footer .footer-policy a,
#footer .footer-copy,
#footer .footer-contact,
#footer .footer-contact a,
#footer .footer-col a,
#footer .footer-col .nav-link,
.contacts-map-card__label,
.contacts-map-card__link,
.contacts-map-card__text,
.front-feedback .form-control,
.front-feedback input[type="text"],
.front-feedback input[type="email"],
.front-feedback .webform-element-description,
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="tel"],
.modal-body .webform-element-description,
.wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item,
#offcanvasNav .dropdown-menu a,
#offcanvasNav .contact-item-el,
#offcanvasNav .contact-item-el a,
#offcanvasNav .contact-item a {
    font-size: max(12px, 0.875rem);
}

/* Чтобы контент не прилипал к краям */
@media screen and (max-width: 1199px) {
    .container,
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-inner {
        gap: 32px;
    }

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

    .header-contact {
        min-width: 0;
        max-width: none;
    }

    .hero__content h1,
    .hero__content h2,
    .hero__content h3 {
        font-size: clamp(42px, 4.6vw, 52px);
        max-width: 850px;
    }

    .hero__content p {
        font-size: 17px;
        max-width: 760px;
    }

    section.main_block {
        padding: 175px 0 72px;
    }

    section.main_block .field--name-field-content-main-title h1 {
        font-size: clamp(42px, 4.8vw, 50px);
        max-width: 900px;
    }

    section.main_block .field--name-field-content-main-text {
        font-size: clamp(18px, 2.2vw, 22px);
        max-width: 860px;
    }

    #block-vesta-block-about .workshop_top {
        gap: 32px;
    }

    #block-vesta-block-about .workshop_main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 32px;
    }

    #block-vesta-block-about .field--name-field-workshop-advantages {
        gap: 20px;
    }

    #block-vesta-service-block-on-front .views-row {
        min-height: 400px;
    }

    #block-vesta-galleries-block-on-front .view-content .item-list ul {
        gap: 20px;
    }

    #block-vesta-block-about .field--name-field-workshop-text {
        max-width: 355px;
    }

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

    #footer .footer-columns {
        gap: 32px;
    }
}

@media screen and (max-width: 991px) {
    .front-bg {
        padding: 0;
    }

    body {
        font-size: 15px;
    }

    .container,
    .container-fluid {
        padding-left: 18px;
        padding-right: 18px;
    }

    #header {
        display: none;
    }

    #header-mob {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
    }

    .front-top,
    .front-top.has-front-bg {
        min-height: auto;
    }

    .hero {
        min-height: auto;
        padding: 96px 0 56px;
    }

    .hero__content h1,
    .hero__content h2,
    .hero__content h3 {
        font-size: clamp(34px, 5.5vw, 42px);
        line-height: 1.1;
        margin-bottom: 18px;
        max-width: 100%;
    }

    .hero__content p {
        font-size: 16px;
        max-width: 100%;
    }

    section.main_block {
        padding: 195px 0 64px;
    }

    section.main_block .field--name-field-content-main-title h1 {
        font-size: clamp(34px, 5.8vw, 44px);
        margin-bottom: 28px;
        max-width: 100%;
    }

    section.main_block .field--name-field-content-main-text {
        font-size: 18px;
        max-width: 100%;
    }

    .front-workshop,
    .front-services,
    .front-gallery,
    .front-feedback {
        padding-bottom: var(--section-space-md);
    }

    .front-services,
    .front-gallery,
    .front-feedback {
        padding-top: var(--section-space-md);
    }

    #block-vesta-block-about .workshop_top {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    #block-vesta-block-about .field--name-field-workshop-title {
        max-width: none;
        font-size: clamp(30px, 5vw, 36px);
    }

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

    #block-vesta-block-about .workshop_main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "advantages"
            "button";
        row-gap: 15px;
    }

    #block-vesta-block-about .field--name-field-workshop-img {
        justify-content: flex-start;
    }

    #block-vesta-block-about .field--name-field-workshop-img img {
        max-width: 70%;
    }

    #block-vesta-theme-services-title .field--name-field-services-title,
    #block-vesta-theme-gallery-title .field--name-field-gallery-title,
    .field--name-field-feedback-title,
    .wr_content #block-vesta-theme-page-title h1 {
        font-size: clamp(30px, 4.8vw, 36px);
    }

    #block-vesta-service-block-on-front .views-row {
        min-height: 380px;
    }

    #block-vesta-galleries-block-on-front .view-content .item-list ul {
        grid-template-columns: repeat(4, 1fr);
    }

    .front-map-contacts {
        min-height: auto;
    }

    .front-map-contacts__map {
        position: relative;
        min-height: 360px;
    }

    .front-map-contacts > .container {
        position: static;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .front-map-contacts__contacts {
        min-height: auto;
        align-items: flex-start;
        padding: 0;
    }

    .contacts-map-card {
        width: 100%;
        max-width: 360px;
        min-height: auto;
        padding: 28px;
    }

    #footer .footer-top {
        padding: 32px 0 20px;
    }

    #footer .footer-layout {
        grid-template-columns: 175px 1fr 190px;
        gap: 28px;
    }

    #footer .footer-brand {
        align-items: flex-start;
    }

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

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

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

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full {
        max-width: 100%;
    }

    #block-vesta-service-block-on-front .view-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .front-map-contacts {
        position: relative;
        min-height: 460px;
    }

    .front-map-contacts__map {
        position: absolute;
        inset: 0;
        min-height: 0;
    }

    .front-map-contacts__map .mapContainer {
        height: 100% !important;
    }

    .front-map-contacts__map iframe {
        width: 100%;
        height: 100%;
        display: block;
    }

    .front-map-contacts > .container {
        position: relative;
        z-index: 2;
        min-height: 460px;
        display: flex;
        align-items: center;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .front-map-contacts__contacts {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
        min-height: 100%;
    }

    .contacts-map-card {
        width: 100%;
        max-width: 360px;
        min-height: auto;
        padding: 28px;
    }

    .contacts-map-card {
        transform: translateX(90px);
    }

    .wr_content .view-services.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .view-services.view-display-id-page_1 .node--type-service h2 {
        font-size: 21px;
    }

    .view-services.view-display-id-page_1 .node--type-service.node--view-mode-teaser {
        padding: 24px 20px;
    }

    .node--type-service.node--view-mode-full .node__content {
        grid-template-columns: 1fr 340px;
        gap: 24px;
        padding: 24px;
        border-radius: 20px;
    }

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

    .node--type-service.node--view-mode-full .field--name-field-service-text {
        font-size: 16px;
        line-height: 1.55;
    }

    .node--type-service.node--view-mode-full .field--name-field-service-img img {
        height: 260px;
        border-radius: 16px;
    }
}

@media screen and (max-width: 767px) {
    .container,
    .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding: 72px 0 44px;
    }

    .hero__content h1,
    .hero__content h2,
    .hero__content h3 {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 16px;
    }

    .hero__content p {
        font-size: 14px;
        line-height: 1.5;
    }

    section.main_block {
        padding: 180px 0 55px;
    }

    section.main_block .field--name-field-content-main-title h1 {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 24px;
    }

    section.main_block .field--name-field-content-main-text {
        font-size: 16px;
        line-height: 1.45;
    }

    .front-services,
    .front-gallery,
    .front-feedback {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    #block-vesta-block-about .paragraph--type--product-param {
        grid-template-columns: 36px 1fr;
        row-gap: 6px;
    }

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

    #block-vesta-block-about .field--name-field-benefit-text {
        font-size: 14px;
    }

    #block-vesta-service-block-on-front .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #block-vesta-service-block-on-front .views-row {
        min-height: auto;
    }

    #block-vesta-service-block-on-front .views-field-field-service-text .field-content {
        max-width: none;
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }

    #block-vesta-service-block-on-front .views-field-field-service-img img {
        height: 220px;
        object-fit: initial;
    }

    #block-vesta-galleries-block-on-front .view-content .item-list ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .front-feedback .field--name-field-feedback-text.field__item {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .front-feedback .webform-button--submit,
    .front-feedback .btn.btn-primary,
    .front-feedback button[type="submit"] {
        min-width: 180px;
        height: 46px;
        font-size: 15px;
    }

    .front-map-contacts {
        background: #f2f1e9;
    }

    .front-map-contacts__map {
        min-height: 300px;
    }

    .front-map-contacts__contacts {
        padding-top: 16px;
    }

    .contacts-map-card {
        max-width: 300px;
        transform: translateX(60px);
        padding: 24px;
    }

    .contacts-map-card__item + .contacts-map-card__item {
        margin-top: 16px;
    }

    #footer .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #footer .footer-copy {
        text-align: left;
    }

    .modal {
        padding: 16px;
    }

    .modal-header {
        padding: 22px 20px 16px;
    }

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

    .modal-body {
        padding: 22px 20px 10px;
    }

    .modal-footer {
        padding: 10px 20px 24px;
    }

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

    #footer .footer-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        text-align: center;
    }

    #footer .footer-brand,
    #footer .footer-center,
    #footer .footer-contacts {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

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

    #footer .footer-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        justify-items: center;
    }

    #footer .footer-col {
        width: 100%;
    }

    #footer .footer-col .nav,
    #footer .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    #footer .footer-col .nav-item {
        width: 100%;
        text-align: center;
    }

    #footer .footer-col .nav-link {
        display: inline-block;
    }

    #footer .footer-copy {
        text-align: center;
        margin-top: 4px;
    }

    #footer .footer-contacts {
        gap: 12px;
        text-align: center;
    }

    #footer .footer-contact {
        text-align: center;
    }

    #footer .footer-socials {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
    }

    .wr_content .view-services.view-display-id-page_1 article h2 {
        font-size: 22px;
    }

    .wr_content .view-services.view-display-id-page_1 article .node__links a {
        padding: 10px 35px 10px 18px
    }

    .wr_content .view-services.view-display-id-page_1 article.node--type-service {
        min-height: 240px;
    }

    #block-vesta-service-block-on-front .view-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #block-vesta-service-block-on-front .views-row {
        min-height: auto;
        padding: 20px 20px 0;
    }

    /* Убираем фиксированную ширину текстового блока */
    #block-vesta-service-block-on-front .views-field-field-service-text {
        max-width: 100%;
        margin-bottom: 14px;
    }

    /* Явно повторяем обрезку текста для мобильных */
    #block-vesta-service-block-on-front .views-field-field-service-text .field-content {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        overflow: hidden;
        word-break: break-word;
    }

    #block-vesta-service-block-on-front .views-field-field-service-img {
        margin: 0 -20px;
    }

    #block-vesta-service-block-on-front .views-field-field-service-img img {
        height: 200px;
    }
}

@media screen and (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .header-notice__inner {
        font-size: 12px;
        padding-left: 10px;
        padding-right: 10px;
    }

    #header-mob {
        min-height: 60px;
        padding: 8px 10px;
    }

    #header-mob .col-nav > a {
        width: 40px;
        height: 40px;
    }

    #header-mob .col-logo a {
        max-width: 88px;
    }

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

    #header-mob .col-phone a {
        font-size: 12px;
    }

    .hero {
        padding: 64px 0 40px;
    }

    .hero__content h1,
    .hero__content h2,
    .hero__content h3 {
        font-size: 28px;
        line-height: 1.12;
    }

    .hero__content p {
        font-size: 14px;
    }

    section.main_block {
        padding: 136px 0 45px;
    }

    section.main_block .field--name-field-content-main-title h1 {
        font-size: 28px;
    }

    section.main_block .field--name-field-content-main-text {
        font-size: 14px;
    }

    #block-vesta-block-about .field--name-field-workshop-title,
    #block-vesta-theme-services-title .field--name-field-services-title,
    #block-vesta-theme-gallery-title .field--name-field-gallery-title,
    .field--name-field-feedback-title,
    .wr_content #block-vesta-theme-page-title h1 {
        font-size: 28px;
    }

    #block-vesta-service-block-on-front .views-row {
        padding: 20px 20px 0;
    }

    #block-vesta-service-block-on-front .views-field-field-service-title a {
        font-size: 18px;
    }

    #block-vesta-service-block-on-front .views-field-field-service-text .field-content {
        font-size: 13px;
    }

    #block-vesta-service-block-on-front .views-field-field-service-arrow a,
    #block-vesta-service-block-on-front .views-field-field-service-arrow img {
        width: 36px;
        height: 36px;
    }

    #block-vesta-service-block-on-front .more-link a,
    #block-vesta-galleries-block-on-front .more-link a,
    #block-vesta-block-about .field--name-field-workshop-btn a,
    .front-feedback .webform-button--submit,
    .front-feedback .btn.btn-primary,
    .front-feedback button[type="submit"],
    .modal-footer .webform-button--submit,
    .modal-footer .btn.btn-primary,
    .modal-footer button[type="button"],
    .wr_content .view-services.view-display-id-page_1 article .node__links a,
    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a {
        min-width: 0;
        padding-left: 18px;
        padding-right: 35px;
        font-size: 14px;
    }

    #block-vesta-galleries-block-on-front .view-content .item-list ul {
        grid-template-columns: 1fr;
    }

    .front-feedback .form-item-privacy .webform-element-description,
    .modal-body .form-item-privacy .webform-element-description,
    .wr_content #block-vesta-theme-strokanavigacii .breadcrumb-item,
    #footer .footer-policy a,
    #footer .footer-copy,
    #offcanvasNav .dropdown-menu a,
    #offcanvasNav .contact-item-el,
    #offcanvasNav .contact-item-el a,
    #offcanvasNav .contact-item a {
        font-size: 12px;
    }

    .front-feedback input[type="text"],
    .front-feedback input[type="email"],
    .modal-body input[type="text"],
    .modal-body input[type="email"],
    .modal-body input[type="tel"] {
        font-size: 14px;
    }

    .contacts-map-card {
        padding: 20px;
    }

    .contacts-map-card__link,
    .contacts-map-card__text {
        font-size: 14px;
    }

    #footer .footer-contact,
    #footer .footer-contact a,
    #footer .footer-col a,
    #footer .footer-col .nav-link {
        font-size: 14px;
    }

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

    .modal-footer .webform-button--submit,
    .modal-footer .btn.btn-primary,
    .modal-footer button[type="button"] {
        min-width: 100%;
        height: 46px;
        font-size: 14px;
    }

    #block-vesta-service-block-on-front .view-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
    }

    #block-vesta-service-block-on-front .views-row {
        width: 100%;
        max-width: 320px;
        min-height: auto;
        padding: 18px 18px 0;
    }

    #block-vesta-service-block-on-front .views-field-field-service-img img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    #block-vesta-service-block-on-front .views-field-field-service-title a {
        font-size: 17px;
        line-height: 1.2;
    }

    #block-vesta-service-block-on-front .views-field-field-service-text .field-content {
        font-size: 13px;
        line-height: 1.35;
    }

    #block-vesta-galleries-block-on-front .view-content .item-list ul {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
    }

    #block-vesta-galleries-block-on-front .view-content .item-list ul li {
        width: 100%;
        max-width: 320px; /* ширина карточки */
    }

    #block-vesta-galleries-block-on-front .view-content .item-list ul li a,
    #block-vesta-galleries-block-on-front .view-content .item-list ul li img {
        display: block;
        width: 100%;
    }

    #block-vesta-galleries-block-on-front .view-content .item-list ul li img {
        height: 220px; /* высота картинки */
        object-fit: cover;
    }

    .front-map-contacts {
        background: #f2f1e9;
        min-height: auto;
    }

    .front-map-contacts__map {
        display: none;
    }

    .front-map-contacts > .container {
        position: static;
        min-height: auto;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .front-map-contacts__contacts {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 0;
    }

    .contacts-map-card {
        width: 100%;
        max-width: 300px;
        transform: none;
        margin: 0 auto;
        padding: 20px;
    }

    .wr_content .view-services.view-display-id-page_1 .view-content {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .wr_content .view-services.view-display-id-page_1 article.node--type-service {
        max-width: 400px;
    }
}

/* =========================================
   FIX WHITE LINES / RIGHT OVERFLOW
========================================= */

html,
body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden !important;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip !important;
    }
}

html {
    overflow-y: auto !important;
}

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

#header-mob {
    width: 100% !important;
    max-width: 100% !important;
    left: 0;
    right: 0;
    box-sizing: border-box !important;
    overflow: hidden;
}

#header-mob .col-nav,
#header-mob .col-logo,
#header-mob .col-phone,
#header-mob .col-cart {
    min-width: 0;
}

#header-mob .col-logo a,
#header-mob .col-phone,
#header-mob .col-phone .contact-item,
#header-mob .col-phone a {
    min-width: 0;
    max-width: 100%;
}

#header-mob .col-phone a {
    overflow: hidden;
    text-overflow: ellipsis;
}

#offcanvasNav,
#offcanvasNav.offcanvas,
#offcanvasNav.offcanvas-start,
#offcanvasNav.show {
    border-right: 0 !important;
    border-left: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-clip: padding-box;
}

#offcanvasNav::before,
#offcanvasNav::after,
#offcanvasNav .offcanvas-header::before,
#offcanvasNav .offcanvas-header::after,
#offcanvasNav .offcanvas-body::before,
#offcanvasNav .offcanvas-body::after {
    content: none !important;
    display: none !important;
}

#offcanvasNav,
#offcanvasNav .offcanvas-header,
#offcanvasNav .offcanvas-body,
#offcanvasNav nav,
#offcanvasNav ul,
#offcanvasNav li,
#offcanvasNav a,
#offcanvasNav .contact-item,
#offcanvasNav .contact-item-el,
#offcanvasNav .msngrs,
#offcanvasNav .msngrs .item {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.offcanvas-backdrop,
.offcanvas-backdrop.fade,
.offcanvas-backdrop.show {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(17, 17, 17, 0.48) !important;
}

body[style],
html[style] {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

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

    body,
    .site-header,
    .front-top,
    #header,
    #header-mob,
    .dialog-offcanvas-main-canvas {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    #offcanvasNav.offcanvas {
        width: min(92vw, 390px);
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    #offcanvasNav.offcanvas {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* =========================================
   RESTORE MOBILE HEADER + BURGER STYLING
   добавить в самый конец файла
========================================= */

@media screen and (max-width: 991px) {
    /* ---------- MOBILE HEADER ---------- */
    #header-mob {
        position: sticky;
        top: 0;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 68px;
        width: 100%;
        padding: 10px 14px;
        color: #fff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    }

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

    #header-mob a {
        color: #fff !important;
        text-decoration: none;
    }

    #header-mob .col-nav,
    #header-mob .col-cart,
    #header-mob .col-phone {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

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

    #header-mob .col-logo a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 120px;
    }

    #header-mob .col-logo img {
        display: block;
        width: auto;
        max-height: 54px;
        object-fit: contain;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.45));
    }

    /* ---------- BURGER BUTTON ---------- */
    #header-mob .col-nav > a,
    #header-mob .col-nav > button,
    #header-mob .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: none !important;
        transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }

    #header-mob .col-nav > a:hover,
    #header-mob .col-nav > a:focus,
    #header-mob .col-nav > button:hover,
    #header-mob .col-nav > button:focus,
    #header-mob .navbar-toggler:hover,
    #header-mob .navbar-toggler:focus {
        background: rgba(125, 48, 40, 0.18) !important;
        border-color: rgba(125, 48, 40, 0.45) !important;
        transform: translateY(-1px);
        outline: none;
    }

    #header-mob .col-nav > a img,
    #header-mob .col-nav > button img {
        display: block;
        width: 20px;
        height: 20px;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

    /* fallback если бургер рисуется span'ами */
    #header-mob .navbar-toggler-icon,
    #header-mob .menu-icon,
    #header-mob .hamburger {
        width: 20px;
        height: 20px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

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

    #header-mob .col-phone a {
        display: inline-block;
        font-size: 14px;
        line-height: 1;
        font-weight: 500;
        white-space: nowrap;
        color: #fff !important;
    }

    /* ---------- CART ---------- */
    #header-mob .col-cart {
        margin-left: 2px;
    }

    #header-mob .col-cart .cart-block--summary,
    #header-mob .col-cart .cart-block--link__expand {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #header-mob .col-cart a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        min-height: 32px;
    }

    #header-mob .cart-block--summary .cart-block--summary__count {
        background: #7d3028 !important;
        border-color: #000 !important;
        color: #fff !important;
    }

    /* ---------- OFFCANVAS ---------- */
    #offcanvasNav.offcanvas,
    #offcanvasNav.offcanvas-start,
    #offcanvasNav {
        width: min(92vw, 390px);
        max-width: 100%;
        background: #fdf8f2 !important;
        color: #111 !important;
        border-right: 1px solid #e7dfd7 !important;
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.14) !important;
    }

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

    #offcanvasNav .offcanvas-header .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    #offcanvasNav .offcanvas-header .logo a {
        display: inline-flex;
        align-items: center;
        color: #000 !important;
        text-decoration: none;
        font-family: var(--second-family);
        font-weight: 700;
        font-size: 22px;
        line-height: 1;
    }

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

    /* ---------- CLOSE BUTTON ---------- */
    #offcanvasNav .btn-close,
    #offcanvasNav button.btn-close,
    #offcanvasNav .offcanvas-header .close {
        position: relative;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border: 1px solid #ddd2c7 !important;
        border-radius: 50%;
        background: transparent !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }

    #offcanvasNav .btn-close::before,
    #offcanvasNav .btn-close::after,
    #offcanvasNav .offcanvas-header .close::before,
    #offcanvasNav .offcanvas-header .close::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 1.5px;
        background: #111;
        transform-origin: center;
        transition: background 0.2s ease;
    }

    #offcanvasNav .btn-close::before,
    #offcanvasNav .offcanvas-header .close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    #offcanvasNav .btn-close::after,
    #offcanvasNav .offcanvas-header .close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    #offcanvasNav .btn-close:hover::before,
    #offcanvasNav .btn-close:hover::after,
    #offcanvasNav .offcanvas-header .close:hover::before,
    #offcanvasNav .offcanvas-header .close:hover::after {
        background: #7d3028;
    }

    /* ---------- BODY ---------- */
    #offcanvasNav .offcanvas-body {
        display: flex;
        flex-direction: column;
        padding: 18px 20px 24px;
        overflow-y: auto;
    }

    #offcanvasNav .offcanvas-body > *:last-child {
        margin-bottom: 0;
    }

    /* ---------- SEARCH ---------- */
    #offcanvasNav .search-block-form,
    #offcanvasNav form {
        position: relative;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    #offcanvasNav .form-item {
        margin: 0;
    }

    #offcanvasNav input[type="search"],
    #offcanvasNav input[type="text"],
    #offcanvasNav .form-search {
        width: 100%;
        height: 46px;
        padding: 0 46px 0 14px;
        border: 1px solid #d8cec4;
        border-radius: 10px;
        background: #fff;
        font-size: 14px;
        color: #2b2b2b;
        box-shadow: none;
        -webkit-appearance: none;
        appearance: none;
    }

    #offcanvasNav input[type="search"]::placeholder,
    #offcanvasNav input[type="text"]::placeholder,
    #offcanvasNav .form-search::placeholder {
        color: #7a746d;
        opacity: 1;
    }

    #offcanvasNav input[type="search"]:focus,
    #offcanvasNav input[type="text"]:focus,
    #offcanvasNav .form-search:focus {
        outline: none;
        border-color: #1d6a3c;
        box-shadow: 0 0 0 3px rgba(29, 106, 60, 0.08);
    }

    #offcanvasNav .form-actions {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        margin: 0;
    }

    #offcanvasNav .search-form__submit,
    #offcanvasNav button,
    #offcanvasNav input[type="submit"] {
        box-shadow: none;
    }

    #offcanvasNav .search-form__submit,
    #offcanvasNav .form-actions button,
    #offcanvasNav .form-actions input[type="submit"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        padding: 0;
        border: 0 !important;
        background: url('/sites/all/themes/vesta_theme/image/svg/search-icon.svg') center center no-repeat !important;
        background-size: contain !important;
        font-size: 0;
        color: transparent;
    }

    /* ---------- NAV ---------- */
    #offcanvasNav .region-navigation,
    #offcanvasNav nav,
    #offcanvasNav ul.menu,
    #offcanvasNav ul.nav {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #offcanvasNav ul.menu,
    #offcanvasNav ul.nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 18px;
        border-top: 1px solid #e7dfd7;
    }

    #offcanvasNav li,
    #offcanvasNav .nav-item {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e7dfd7;
    }

    #offcanvasNav .nav-link,
    #offcanvasNav a {
        color: #111;
        text-decoration: none;
    }

    #offcanvasNav .nav > .nav-item > a,
    #offcanvasNav .menu > li > a,
    #offcanvasNav .nav > .nav-item > .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 15px 0;
        background: transparent;
        border: 0;
        font-size: 16px;
        line-height: 1.35;
        font-weight: 500;
        color: #111 !important;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    #offcanvasNav .nav > .nav-item > a:hover,
    #offcanvasNav .menu > li > a:hover,
    #offcanvasNav .nav > .nav-item > .dropdown-toggle:hover {
        color: #7d3028 !important;
        padding-left: 4px;
    }

    /* ---------- DROPDOWN ARROW ---------- */
    #offcanvasNav .dropdown-toggle::after {
        content: "";
        flex: 0 0 10px;
        width: 10px;
        height: 10px;
        margin-left: auto;
        border: 0 !important;
        background: url('/sites/all/themes/vesta_theme/image/down-arrow.svg') center center no-repeat;
        background-size: contain;
        transition: transform 0.22s ease;
    }

    #offcanvasNav .dropdown.show > .dropdown-toggle::after,
    #offcanvasNav .dropdown.is-open > .dropdown-toggle::after,
    #offcanvasNav .nav-item.show > .dropdown-toggle::after,
    #offcanvasNav .nav-item.is-open > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* ---------- SUBMENU ---------- */
    #offcanvasNav .nav .dropdown-menu {
        display: none;
        position: static;
        float: none;
        min-width: 100%;
        margin: 0;
        padding: 0 0 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #offcanvasNav .dropdown.show > .dropdown-menu,
    #offcanvasNav .dropdown.is-open > .dropdown-menu,
    #offcanvasNav .nav-item.show > .dropdown-menu,
    #offcanvasNav .nav-item.is-open > .dropdown-menu {
        display: block;
    }

    #offcanvasNav .dropdown-menu .nav-item,
    #offcanvasNav .dropdown-menu li {
        border-bottom: 0;
    }

    #offcanvasNav .dropdown-menu .dropdown-item,
    #offcanvasNav .dropdown-menu a {
        display: block;
        padding: 10px 0 10px 16px;
        border-left: 2px solid rgba(125, 48, 40, 0.14);
        background: transparent;
        font-size: 14px;
        line-height: 1.4;
        color: #565656 !important;
        transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
        white-space: normal;
    }

    #offcanvasNav .dropdown-menu .dropdown-item:hover,
    #offcanvasNav .dropdown-menu a:hover {
        color: #7d3028 !important;
        border-left-color: #7d3028;
        padding-left: 20px;
        background: transparent;
    }

    /* ---------- CONTACTS ---------- */
    #offcanvasNav .contact-item {
        margin-bottom: 16px;
    }

    #offcanvasNav .contact-item-label {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
        line-height: 1.3;
        color: #7a746d;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    #offcanvasNav .contact-item-el,
    #offcanvasNav .contact-item-el a,
    #offcanvasNav .contact-item a {
        font-size: 15px;
        line-height: 1.45;
        color: #111 !important;
        text-decoration: none;
    }

    #offcanvasNav .contact-item-el a:hover,
    #offcanvasNav .contact-item a:hover {
        color: #7d3028 !important;
    }

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

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

    #offcanvasNav .msngrs .item a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 10px 14px;
        border: 1px solid #ddd2c7;
        border-radius: 999px;
        background: #fff;
        color: #111 !important;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

    #offcanvasNav .msngrs .item a:hover {
        color: #7d3028 !important;
        border-color: rgba(125, 48, 40, 0.35);
        background: rgba(125, 48, 40, 0.04);
        transform: translateY(-1px);
    }

    /* ---------- CTA BUTTONS IN OFFCANVAS ---------- */
    #offcanvasNav .btn,
    #offcanvasNav .button,
    #offcanvasNav .webform-button--submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 10px 18px;
        border: 0;
        border-radius: 5px;
        background: #1d6a3c;
        color: #fff !important;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    #offcanvasNav .btn:hover,
    #offcanvasNav .button:hover,
    #offcanvasNav .webform-button--submit:hover {
        background: #175a30;
        color: #fff !important;
        transform: translateY(-1px);
    }


}

@media screen and (max-width: 576px) {
    #header-mob {
        min-height: 62px;
        padding: 8px 10px;
        gap: 8px;
    }

    #header-mob .col-logo a {
        max-width: 92px;
    }

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

    #header-mob .col-phone a {
        font-size: 12px;
    }

    #header-mob .col-nav > a,
    #header-mob .col-nav > button,
    #header-mob .navbar-toggler {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    #offcanvasNav.offcanvas,
    #offcanvasNav.offcanvas-start,
    #offcanvasNav {
        width: 100vw !important;
        max-width: 100vw !important;
    }

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

    #offcanvasNav .offcanvas-body {
        padding: 16px 16px 22px;
    }

    #offcanvasNav .nav > .nav-item > a,
    #offcanvasNav .menu > li > a,
    #offcanvasNav .nav > .nav-item > .dropdown-toggle {
        font-size: 15px;
        padding: 14px 0;
    }

    #offcanvasNav .dropdown-menu .dropdown-item,
    #offcanvasNav .dropdown-menu a,
    #offcanvasNav .msngrs .item a,
    #offcanvasNav .contact-item-el,
    #offcanvasNav .contact-item-el a,
    #offcanvasNav .contact-item a {
        font-size: 12px;
    }
}

#scrollToTop {
    width: 56px;
    height: 56px;
    right: 24px;
    bottom: 24px;
    padding: 0;
}

#scrollToTop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 991px) {
    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .page_content_top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-service-img {
        max-width: 100%;
        justify-self: start;
    }

    #scrollToTop {
        width: 48px;
        height: 48px;
        right: 18px;
        bottom: 18px;
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full > .node__content {
        grid-template-columns: minmax(0, 1fr) 220px;
    }
}

@media (max-width: 767px) {
    #scrollToTop {
        width: 42px;
        height: 42px;
        right: 14px;
        bottom: 14px;
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full {
        max-width: 100%;
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full > .node__content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "img";
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .service_top {
        padding: 16px;
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-service-img {
        height: auto;
    }

    .wr_content #block-vesta-theme-content article.node--type-service.node--view-mode-full .field--name-field-service-img img {
        height: auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    #scrollToTop {
        width: 36px;
        height: 36px;
        right: 12px;
        bottom: 12px;
    }
}

/* =========================================
   INNER GALLERY PAGE — RESPONSIVE FIX
========================================= */

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.field--name-field-gallery-item {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.field--name-field-gallery-item > .field__item {
    position: relative;
    min-width: 0;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #d9d9d9;
    aspect-ratio: 270 / 300;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.field--name-field-gallery-item > .field__item > a {
    display: block;
    width: 100%;
    height: 100%;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.field--name-field-gallery-item > .field__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1199px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .field--name-field-gallery-item {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 991px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .field--name-field-gallery-item {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media screen and (max-width: 576px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .field--name-field-gallery-item {
        gap: 16px;
        justify-items: center;
    }

    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .field--name-field-gallery-item > .field__item {
        width: 100%;
        max-width: 320px;
    }
}

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

/* Базово делаем карточки галерей максимально похожими на услуги */
.wr_content .view-galleries.view-display-id-galleries_page .view-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.wr_content .view-galleries.view-display-id-galleries_page .views-row {
    height: 100%;
    margin: 0;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    height: 100%;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e8e1d8;
    background: #f2f1e9;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    border-color: #ddd2c7;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #7d3028 0%, #1d6a3c 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser:hover::after {
    opacity: 1;
}

/* Заголовок */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 {
    margin: 0 0 24px;
    padding-right: 20px;
    font-family: var(--second-family);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    color: #111;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 a:hover {
    color: #7d3028;
}

/* Скрываем служебку Drupal */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__meta,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__submitted,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .profile,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .contextual {
    display: none;
}

/* Контент карточки */
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__content {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-end;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links {
    width: 100%;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links ul.links,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links ul.inline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links li {
    margin: 0;
    padding: 0;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 44px 10px 18px;
    border-radius: 5px;
    background: #1d6a3c;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: background 0.25s ease, transform 0.2s ease;
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a:hover {
    background: #175a30;
    color: #fff;
    transform: translateY(-1px);
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .field,
.wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .field__item {
    margin-bottom: 0;
}


@media screen and (max-width: 991px) {
    .wr_content .view-galleries.view-display-id-galleries_page .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser {
        padding: 24px 20px;
    }

    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 {
        font-size: 21px;
    }
}

@media screen and (max-width: 767px) {
    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 {
        font-size: 22px;
    }

    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a {
        padding: 10px 35px 10px 18px;
    }

    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser {
        min-height: 240px;
    }
}

@media screen and (max-width: 576px) {
    .wr_content .view-galleries.view-display-id-galleries_page .view-content {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .wr_content .view-galleries.view-display-id-galleries_page .views-row {
        display: flex;
        justify-content: center;
    }

    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser {
        width: 100%;
        max-width: 400px;
        min-height: 220px;
        padding: 20px 18px;
    }

    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser h2 {
        font-size: 20px;
        margin-bottom: 20px;
        padding-right: 0;
    }

    .wr_content .view-galleries.view-display-id-galleries_page article.node--type-portfolio.node--view-mode-teaser .node__links a {
        min-width: 0;
        padding-left: 18px;
        padding-right: 35px;
        font-size: 14px;
    }
}

/* =========================================
   INNER GALLERY PAGE
========================================= */

.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full .node__meta,
.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full .node__submitted,
.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full .profile {
    display: none;
}

.wr_content #block-vesta-theme-content article.node--type-portfolio.node--view-mode-full > .node__content {
    margin-top: 6px;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: start;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item > .field__item {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item > .field__item > a {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #d9d9d9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item > .field__item > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item > .field__item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full .field,
.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full .field__item {
    margin-bottom: 0;
}


@media screen and (max-width: 1199px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 991px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media screen and (max-width: 767px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media screen and (max-width: 576px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }

    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item > .field__item {
        width: 100%;
        max-width: 320px;
    }
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item > .field__item {
    min-width: 0;
    margin: 0;
    aspect-ratio: 270 / 300;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item > .field__item > a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #d9d9d9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item > .field__item > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.wr_content #block-vesta-theme-content
article.node--type-portfolio.node--view-mode-full
.photoswipe-gallery.field--name-field-gallery-item > .field__item img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 12px;
}

/* adaptive */
@media screen and (max-width: 1199px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 991px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media screen and (max-width: 576px) {
    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }

    .wr_content #block-vesta-theme-content
    article.node--type-portfolio.node--view-mode-full
    .photoswipe-gallery.field--name-field-gallery-item > .field__item {
        width: 100%;
        max-width: 320px;
    }
}

/* =========================================
   SEARCH PAGE
   Стилизация страницы поиска под Vesta
   Добавить в самый конец CSS
========================================= */

/* Общий контейнер страницы поиска */
#block-vesta-theme-content:has(.search-api-page-block-form-search) {
    padding: 18px 0 70px;
}

/* Форма поиска */
#block-vesta-theme-content .search-api-page-block-form-search {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin: 0 0 34px;
    padding: 24px;
    border: 1px solid #e7dfd7;
    border-radius: 16px;
    background: #fdf8f2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

/* Поле */
#block-vesta-theme-content .search-api-page-block-form-search .form-item-keys {
    flex: 1 1 auto;
    margin: 0;
}

#block-vesta-theme-content .search-api-page-block-form-search .form-search,
#block-vesta-theme-content .search-api-page-block-form-search input[type="search"] {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #d8cec4;
    border-radius: 10px;
    background: #fff;
    color: #2b2b2b;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    -webkit-appearance: none;
    appearance: none;
}

#block-vesta-theme-content .search-api-page-block-form-search .form-search::placeholder,
#block-vesta-theme-content .search-api-page-block-form-search input[type="search"]::placeholder {
    color: #7a746d;
    opacity: 1;
}

#block-vesta-theme-content .search-api-page-block-form-search .form-search:focus,
#block-vesta-theme-content .search-api-page-block-form-search input[type="search"]:focus {
    outline: none;
    border-color: #1d6a3c;
    box-shadow: 0 0 0 3px rgba(29, 106, 60, 0.10);
}

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

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit,
#block-vesta-theme-content .search-api-page-block-form-search button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    background: #1d6a3c;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit:hover,
#block-vesta-theme-content .search-api-page-block-form-search button[type="submit"]:hover {
    background: #175a30;
    color: #fff;
    transform: translateY(-1px);
}

#block-vesta-theme-content .search-api-page-block-form-search .search-form__submit:focus,
#block-vesta-theme-content .search-api-page-block-form-search button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 106, 60, 0.16);
}

/* Заголовок результатов */
#block-vesta-theme-content > h2 {
    margin: 0 0 10px;
    font-family: var(--second-family);
    font-size: 40px;
    line-height: 1.08;
    font-weight: 700;
    color: #000;
}

#block-vesta-theme-content > h2::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: #7d3028;
}

/* Счетчик результатов */
#block-vesta-theme-content > p:first-of-type {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0 0 26px;
    padding: 8px 16px;
    border: 1px solid #e7dfd7;
    border-radius: 999px;
    background: #f2f1e9;
    color: #565656;
    font-size: 14px;
    line-height: 1.35;
}

/* Карточки результатов */
#block-vesta-theme-content > h3 {
    position: relative;
    margin: 0 0 10px;
    padding: 28px 28px 0;
    border: 1px solid #e8e1d8;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #f2f1e9;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

#block-vesta-theme-content > h3 a {
    display: block;
    color: #111;
    text-decoration: none;
    font-family: var(--second-family);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    transition: color 0.2s ease;
}

#block-vesta-theme-content > h3 a:hover {
    color: #7d3028;
}

/* Текст результата */
#block-vesta-theme-content > h3 + p {
    margin: 0 0 18px;
    padding: 0 28px 28px;
    border: 1px solid #e8e1d8;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #f2f1e9;
    color: #565656;
    font-size: 15px;
    line-height: 1.5;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Hover на карточку целиком */
#block-vesta-theme-content > h3:hover,
#block-vesta-theme-content > h3:hover + p {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    border-color: #ddd2c7;
}

/* Нижняя цветная полоска */
#block-vesta-theme-content > h3 + p {
    position: relative;
    overflow: hidden;
}

#block-vesta-theme-content > h3 + p::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #7d3028 0%, #1d6a3c 100%);
}

#block-vesta-theme-content > h3 + p:empty {
    display: none;
}

/* Если после заголовка пустой p — делаем h3 полноценной карточкой */
#block-vesta-theme-content > h3:has(+ p:empty) {
    padding: 28px;
    border: 1px solid #e8e1d8;
    border-radius: 14px;
    background: #f2f1e9;
    overflow: hidden;
    position: relative;
}

#block-vesta-theme-content > h3:has(+ p:empty)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #7d3028 0%, #1d6a3c 100%);
}

/* Ссылки внутри описания */
#block-vesta-theme-content > h3 + p a {
    color: #1d6a3c;
    text-decoration: none;
}

#block-vesta-theme-content > h3 + p a:hover {
    color: #7d3028;
    text-decoration: underline;
}

/* Адаптив */
@media screen and (max-width: 991px) {
    #block-vesta-theme-content .search-api-page-block-form-search {
        padding: 20px;
    }

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

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

@media screen and (max-width: 767px) {
    #block-vesta-theme-content .search-api-page-block-form-search {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search .search-form__submit,
    #block-vesta-theme-content .search-api-page-block-form-search button[type="submit"] {
        width: 100%;
        min-width: 0;
    }

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

    #block-vesta-theme-content > h3 {
        padding: 22px 20px 0;
    }

    #block-vesta-theme-content > h3 + p {
        padding: 0 20px 22px;
    }

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

@media screen and (max-width: 576px) {
    #block-vesta-theme-content {
        padding-bottom: 50px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search {
        border-radius: 12px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search .form-search,
    #block-vesta-theme-content .search-api-page-block-form-search input[type="search"] {
        height: 48px;
        font-size: 14px;
    }

    #block-vesta-theme-content .search-api-page-block-form-search .search-form__submit,
    #block-vesta-theme-content .search-api-page-block-form-search button[type="submit"] {
        height: 48px;
        font-size: 14px;
    }

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

    #block-vesta-theme-content > h2::after {
        width: 72px;
        margin-top: 12px;
    }

    #block-vesta-theme-content > p:first-of-type {
        font-size: 13px;
        padding: 7px 14px;
    }

    #block-vesta-theme-content > h3 {
        padding: 18px 16px 0;
    }

    #block-vesta-theme-content > h3 + p {
        padding: 0 16px 18px;
    }

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

/* =========================================
   MOBILE HEADER + DRUPAL TOOLBAR FIX
   вставить в самый конец файла
========================================= */

:root {
    --mobile-header-height: 68px;
    --drupal-toolbar-offset: 0px;
}

@media screen and (max-width: 991px) {
    html {
        scroll-padding-top: calc(var(--mobile-header-height) + var(--drupal-toolbar-offset));
    }

    body {
        padding-top: calc(var(--mobile-header-height) + var(--drupal-toolbar-offset)) !important;
    }

    #header-mob {
        position: fixed !important;
        top: var(--drupal-toolbar-offset) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box !important;
    }

    body.toolbar-fixed.toolbar-horizontal {
        --drupal-toolbar-offset: 39px;
    }

    body.toolbar-fixed.toolbar-horizontal.toolbar-tray-open {
        --drupal-toolbar-offset: 79px;
    }

    body.toolbar-fixed.toolbar-vertical {
        --drupal-toolbar-offset: 39px;
    }

    #header-mob::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #f6f0e8;
        z-index: -1;
    }

    body #header-mob,
    .front-top #header-mob {
        position: fixed !important;
        top: var(--drupal-toolbar-offset) !important;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --mobile-header-height: 62px;
    }
}

/* =========================================
   MOBILE HEADER / OFFCANVAS LAYERS FIX
========================================= */

:root {
    --mobile-header-height: 68px;
    --drupal-toolbar-offset: 0px;
}

/* ---------- MOBILE HEADER ---------- */
@media screen and (max-width: 991px) {
    html {
        scroll-padding-top: calc(var(--mobile-header-height) + var(--drupal-toolbar-offset));
    }

    body {
        padding-top: calc(var(--mobile-header-height) + var(--drupal-toolbar-offset)) !important;
    }

    #header-mob {
        position: fixed !important;
        top: var(--drupal-toolbar-offset) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box !important;
        z-index: 1030 !important; /* ниже offcanvas */
    }

    #header-mob::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
    }

    /* Drupal toolbar */
    body.toolbar-fixed.toolbar-horizontal {
        --drupal-toolbar-offset: 39px;
    }

    body.toolbar-fixed.toolbar-horizontal.toolbar-tray-open {
        --drupal-toolbar-offset: 79px;
    }

    body.toolbar-fixed.toolbar-vertical {
        --drupal-toolbar-offset: 39px;
    }

    #offcanvasNav,
    #offcanvasNav.offcanvas,
    #offcanvasNav.offcanvas-start,
    #offcanvasNav.show,
    #offcanvasNav.showing,
    #offcanvasNav.hiding {
        z-index: 2000 !important;
    }

    .offcanvas-backdrop,
    .offcanvas-backdrop.fade,
    .offcanvas-backdrop.show {
        z-index: 1990 !important;
    }

    #header-mob .col-nav,
    #header-mob .col-nav > a,
    #header-mob .col-nav > button,
    #header-mob .navbar-toggler {
        position: relative;
        z-index: 1031;
    }

    .front-top #header-mob,
    body #header-mob {
        position: fixed !important;
        top: var(--drupal-toolbar-offset) !important;
        z-index: 1030 !important;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --mobile-header-height: 62px;
    }
}

/* =========================================
   COOKIE BANNER — VESTA STYLE
   Подставить в самый конец CSS
========================================= */

.vpa-wrapper {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2100;
    width: auto;
    max-width: none;
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #e7dfd7;
    border-radius: 12px;
    background: #fdf8f2;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    font-family: var(--font-family);
    color: #111;
    animation: vpaCookieSlideIn 0.35s ease;
}

/* если у вас баннер скрывается классом */
.vpa-wrapper:not(.vpa-visible) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
}

.vpa-wrapper.vpa-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vpa-content {
    flex: 1 1 auto;
    padding: 20px 20px 18px;
}

.vpa-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #565656;
}

/* акцентная верхняя полоска как в фирменных блоках */
.vpa-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #7d3028 0%, #1d6a3c 100%);
}

/* ссылка на политику */
.vpa-content a {
    color: #7d3028;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.vpa-content a:hover {
    color: #1d6a3c;
    text-decoration: underline;
}

/* зона кнопки */
.vpa-actions {
    display: flex;
    align-items: flex-end;
    padding: 20px 20px 18px 0;
    flex: 0 0 auto;
}

/* кнопка */
.vpa-actions .btn,
.vpa-actions .btn-primary,
#vpa-btn-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 5px;
    background: #1d6a3c;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.vpa-actions .btn:hover,
.vpa-actions .btn-primary:hover,
#vpa-btn-ok:hover {
    background: #175a30;
    color: #fff;
    transform: translateY(-1px);
}

.vpa-actions .btn:active,
.vpa-actions .btn-primary:active,
#vpa-btn-ok:active {
    transform: translateY(1px);
}

.vpa-actions .btn:focus,
.vpa-actions .btn-primary:focus,
#vpa-btn-ok:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 106, 60, 0.16);
}

/* крестик, если используется */
.vpa-close-zone {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.vpa-close-el {
    position: relative;
    width: 18px;
    height: 18px;
}

.vpa-close-el::before,
.vpa-close-el::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.5px;
    background: #111;
    transform-origin: center;
    transition: background 0.2s ease;
}

.vpa-close-el::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.vpa-close-el::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.vpa-close-zone:hover .vpa-close-el::before,
.vpa-close-zone:hover .vpa-close-el::after {
    background: #7d3028;
}

/* если крестик не нужен */
.vpa-close-zone[aria-hidden="true"] {
    display: none;
}

/* адаптив */
@media screen and (max-width: 767px) {
    .vpa-wrapper {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        flex-direction: column;
        border-radius: 12px;
    }

    .vpa-content {
        padding: 18px 18px 12px;
    }

    .vpa-content p {
        font-size: 13px;
        line-height: 1.45;
        padding-right: 0;
    }

    .vpa-actions {
        padding: 0 18px 18px;
    }

    .vpa-actions .btn,
    .vpa-actions .btn-primary,
    #vpa-btn-ok {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .vpa-wrapper {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

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

/* =========================================
   CALLBACK PAGE / WEBFORM
   Стилизация формы обратной связи
========================================= */

/* Обертка формы */
#block-vesta-theme-content .webform-ajax-form-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 38px 36px;
    border: 1px solid #e7dfd7;
    border-radius: 16px;
    background: #fdf8f2;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Верхняя акцентная полоска */
#block-vesta-theme-content .webform-ajax-form-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7d3028 0%, #1d6a3c 100%);
}

/* Сама форма */
#block-vesta-theme-content .webform-submission-form {
    margin: 0;
}

/* Убираем служебные элементы */
#block-vesta-theme-content .contextual,
#block-vesta-theme-content .ajax-progress {
    display: none !important;
}

/* Заголовок страницы, если есть */
#block-vesta-theme-page-title,
#block-vesta-theme-content h1.page-title,
#block-vesta-theme-content > h1 {
    margin-bottom: 28px;
}

#block-vesta-theme-page-title h1,
#block-vesta-theme-content h1.page-title,
#block-vesta-theme-content > h1 {
    margin: 0;
    font-family: var(--second-family);
    font-size: 40px;
    line-height: 1.08;
    font-weight: 700;
    color: #000;
}

#block-vesta-theme-page-title h1::after,
#block-vesta-theme-content h1.page-title::after,
#block-vesta-theme-content > h1::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: #7d3028;
}

/* Поля */
#block-vesta-theme-content .webform-submission-form .form-item {
    margin: 0 0 18px;
}

#block-vesta-theme-content .webform-submission-form .form-control,
#block-vesta-theme-content .webform-submission-form input[type="text"],
#block-vesta-theme-content .webform-submission-form input[type="email"],
#block-vesta-theme-content .webform-submission-form input[type="tel"] {
    width: 100%;
    height: 50px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid #8a857f;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    color: #2b2b2b;
    transition: border-color 0.25s ease, color 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Placeholder */
#block-vesta-theme-content .webform-submission-form .form-control::placeholder,
#block-vesta-theme-content .webform-submission-form input[type="text"]::placeholder,
#block-vesta-theme-content .webform-submission-form input[type="email"]::placeholder,
#block-vesta-theme-content .webform-submission-form input[type="tel"]::placeholder {
    color: #6f6b66;
    opacity: 1;
}

/* Focus */
#block-vesta-theme-content .webform-submission-form .form-control:focus,
#block-vesta-theme-content .webform-submission-form input[type="text"]:focus,
#block-vesta-theme-content .webform-submission-form input[type="email"]:focus,
#block-vesta-theme-content .webform-submission-form input[type="tel"]:focus {
    outline: none;
    border-bottom-color: #1d6a3c;
    background: transparent;
    box-shadow: none;
}

/* Автозаполнение */
#block-vesta-theme-content .webform-submission-form input:-webkit-autofill,
#block-vesta-theme-content .webform-submission-form input:-webkit-autofill:hover,
#block-vesta-theme-content .webform-submission-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #2b2b2b;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: inset 0 0 0 1000px #fdf8f2;
}

/* Ошибки */
#block-vesta-theme-content .webform-submission-form .form-item--error-message,
#block-vesta-theme-content .webform-submission-form strong.error,
#block-vesta-theme-content .webform-submission-form label.error {
    display: none !important;
}

#block-vesta-theme-content .webform-submission-form input.error,
#block-vesta-theme-content .webform-submission-form .form-control.error {
    border-bottom: 1px solid #b33a2f !important;
    color: #2c2c2c;
    box-shadow: none !important;
}

#block-vesta-theme-content .webform-submission-form input.error:focus,
#block-vesta-theme-content .webform-submission-form .form-control.error:focus {
    border-bottom: 1px solid #b33a2f !important;
    box-shadow: none !important;
    outline: none;
}

/* Checkbox block */
#block-vesta-theme-content .webform-submission-form .form-item-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 24px;
    text-align: left;
}

#block-vesta-theme-content .webform-submission-form .form-item-privacy .form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 3px 0 0;
    flex: 0 0 14px;
    border: 1px solid #8a857f;
    border-radius: 2px;
    background: transparent;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}

#block-vesta-theme-content .webform-submission-form .form-item-privacy .form-checkbox:checked {
    border-color: #1d6a3c;
    background: #1d6a3c;
}

#block-vesta-theme-content .webform-submission-form .form-item-privacy .form-checkbox:checked::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

#block-vesta-theme-content .webform-submission-form .form-item-privacy .form-checkbox.error {
    border: 1px solid #c53b30 !important;
    box-shadow: 0 0 0 1px #c53b30 inset;
}

#block-vesta-theme-content .webform-submission-form .form-item-privacy .description {
    margin: 0;
}

#block-vesta-theme-content .webform-submission-form .form-item-privacy .webform-element-description {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    font-size: 14px;
    line-height: 1.45;
    color: #565656;
}

#block-vesta-theme-content .webform-submission-form .form-item-privacy .webform-element-description span {
    display: inline;
}

#block-vesta-theme-content .webform-submission-form .form-item-privacy .webform-element-description span:nth-child(2),
#block-vesta-theme-content .webform-submission-form .form-item-privacy .webform-element-description span:nth-child(4) {
    text-decoration: underline;
}

/* Кнопка */
#block-vesta-theme-content .webform-submission-form .form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0;
}

#block-vesta-theme-content .webform-submission-form .webform-button--submit,
#block-vesta-theme-content .webform-submission-form .btn.btn-primary,
#block-vesta-theme-content .webform-submission-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 5px;
    background: #1d6a3c;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#block-vesta-theme-content .webform-submission-form .webform-button--submit:hover,
#block-vesta-theme-content .webform-submission-form .btn.btn-primary:hover,
#block-vesta-theme-content .webform-submission-form button[type="submit"]:hover {
    background: #176432;
    color: #fff;
    transform: translateY(-1px);
}

#block-vesta-theme-content .webform-submission-form .webform-button--submit:active,
#block-vesta-theme-content .webform-submission-form .btn.btn-primary:active,
#block-vesta-theme-content .webform-submission-form button[type="submit"]:active {
    transform: translateY(1px);
}

#block-vesta-theme-content .webform-submission-form .webform-button--submit:focus,
#block-vesta-theme-content .webform-submission-form .btn.btn-primary:focus,
#block-vesta-theme-content .webform-submission-form button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.18);
}

/* Ссылки в тексте согласия */
#block-vesta-theme-content .webform-submission-form a {
    color: #7d3028;
    text-decoration: none;
    transition: color 0.2s ease;
}

#block-vesta-theme-content .webform-submission-form a:hover {
    color: #1d6a3c;
    text-decoration: underline;
}

/* Сообщения после отправки */
#block-vesta-theme-content .messages,
#block-vesta-theme-content .alert {
    max-width: 760px;
    margin: 0 auto 24px;
    border: 1px solid #e7dfd7;
    border-radius: 12px;
    background: #fdf8f2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

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

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

    #block-vesta-theme-content .webform-ajax-form-wrapper {
        max-width: 100%;
        padding: 28px 24px 30px;
        border-radius: 14px;
    }

    #block-vesta-theme-page-title h1,
    #block-vesta-theme-content h1.page-title,
    #block-vesta-theme-content > h1 {
        font-size: 34px;
    }
}

@media screen and (max-width: 767px) {
    #block-vesta-theme-content .webform-ajax-form-wrapper {
        padding: 24px 20px 24px;
    }

    #block-vesta-theme-page-title h1,
    #block-vesta-theme-content h1.page-title,
    #block-vesta-theme-content > h1 {
        font-size: 30px;
    }

    #block-vesta-theme-content .webform-submission-form .form-control,
    #block-vesta-theme-content .webform-submission-form input[type="text"],
    #block-vesta-theme-content .webform-submission-form input[type="email"],
    #block-vesta-theme-content .webform-submission-form input[type="tel"] {
        height: 46px;
        font-size: 14px;
    }

    #block-vesta-theme-content .webform-submission-form .webform-button--submit,
    #block-vesta-theme-content .webform-submission-form .btn.btn-primary,
    #block-vesta-theme-content .webform-submission-form button[type="submit"] {
        min-width: 100%;
        height: 46px;
        font-size: 15px;
    }

    #block-vesta-theme-content .webform-submission-form .form-actions {
        justify-content: stretch;
    }
}

@media screen and (max-width: 576px) {
    #block-vesta-theme-content {
        padding: 16px 0 44px;
    }

    #block-vesta-theme-content .webform-ajax-form-wrapper {
        padding: 20px 16px 20px;
        border-radius: 12px;
    }

    #block-vesta-theme-page-title h1,
    #block-vesta-theme-content h1.page-title,
    #block-vesta-theme-content > h1 {
        font-size: 28px;
    }

    #block-vesta-theme-page-title h1::after,
    #block-vesta-theme-content h1.page-title::after,
    #block-vesta-theme-content > h1::after {
        width: 72px;
        margin-top: 12px;
    }

    #block-vesta-theme-content .webform-submission-form .form-item {
        margin-bottom: 16px;
    }

    #block-vesta-theme-content .webform-submission-form .form-item-privacy .webform-element-description {
        font-size: 12px;
        line-height: 1.4;
    }

    #block-vesta-theme-content .webform-submission-form .webform-button--submit,
    #block-vesta-theme-content .webform-submission-form .btn.btn-primary,
    #block-vesta-theme-content .webform-submission-form button[type="submit"] {
        font-size: 14px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.front-map-contacts.contacts-page-map {
    background: #fff;
    overflow: visible;
    padding-top: 50px;
}

.front-map-contacts.contacts-page-map > .container {
    display: block;
}

.front-map-contacts.contacts-page-map .front-map-contacts__contacts {
    display: block;
    min-height: 0;
    padding: 0;
    pointer-events: auto;
}

.front-map-contacts.contacts-page-map .contacts-map-card {
    max-width: 760px;
    margin: 0;
}

/* Если нужно оставить как на скрине — без плашки и рамок */
.front-map-contacts.contacts-page-map .contacts-map-card {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.front-map-contacts.contacts-page-map .contacts-map-card::before {
    display: none;
}

/* Между строками контактов */
.front-map-contacts.contacts-page-map .contacts-map-card__item {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

.front-map-contacts.contacts-page-map .contacts-map-card__item:last-of-type {
    margin-bottom: 0;
}

/* Если подписи не нужны — скрываем */
.front-map-contacts.contacts-page-map .contacts-map-card__label {
    display: none;
}

.front-map-contacts.contacts-page-map .contacts-map-card__link,
.front-map-contacts.contacts-page-map .contacts-map-card__text {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
    color: #111;
    word-break: break-word;
}

.front-map-contacts.contacts-page-map .contacts-map-card__link {
    color: #0056b3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.front-map-contacts.contacts-page-map .contacts-map-card__link:hover {
    opacity: 0.8;
}

/* Блок чатов */
.front-map-contacts.contacts-page-map .contacts-map-card__chat {
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-height: auto;
}

.front-map-contacts.contacts-page-map .contacts-map-card__chat-title {
    display: none;
}

.front-map-contacts.contacts-page-map .contacts-map-card__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0;
}

/* Только иконки, без фона */
.front-map-contacts.contacts-page-map .footer-social {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.front-map-contacts.contacts-page-map .footer-social:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

/* Карта снизу */
.front-map-contacts.contacts-page-map .front-map-contacts__map {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 400px;
    min-height: 400px;
    margin-top: 0;
    overflow: hidden;
    background: #f5f5f5;
    pointer-events: auto;
}

.front-map-contacts.contacts-page-map .front-map-contacts__map * {
    pointer-events: auto;
}

.front-map-contacts.contacts-page-map .front-map-contacts__map > * {
    width: 100%;
    height: 100%;
}

.front-map-contacts.contacts-page-map .front-map-contacts__map .region,
.front-map-contacts.contacts-page-map .front-map-contacts__map .block,
.front-map-contacts.contacts-page-map .front-map-contacts__map .contextual-region,
.front-map-contacts.contacts-page-map .front-map-contacts__map .field,
.front-map-contacts.contacts-page-map .front-map-contacts__map .field__item,
.front-map-contacts.contacts-page-map .front-map-contacts__map .text-formatted,
.front-map-contacts.contacts-page-map .front-map-contacts__map .clearfix,
.front-map-contacts.contacts-page-map .front-map-contacts__map .mapContainer {
    width: 100%;
    height: 400px !important;
}

.front-map-contacts.contacts-page-map .front-map-contacts__map iframe {
    display: block;
    width: 100%;
    height: 400px !important;
    border: 0;
    pointer-events: auto;
}

.front-map-contacts.contacts-page-map .front-map-contacts__map .mapHelp {
    display: none;
}

/* Адаптив */
@media screen and (max-width: 991px) {
    .front-map-contacts.contacts-page-map .front-map-contacts__contacts {
        margin-bottom: 36px;
    }

    .front-map-contacts.contacts-page-map .front-map-contacts__map,
    .front-map-contacts.contacts-page-map .front-map-contacts__map iframe,
    .front-map-contacts.contacts-page-map .front-map-contacts__map .mapContainer {
        height: 400px !important;
        min-height: 400px;
    }

    .front-map-contacts.contacts-page-map .contacts-map-card__link,
    .front-map-contacts.contacts-page-map .contacts-map-card__text {
        font-size: 15px;
    }
}

@media screen and (max-width: 767px) {
    .front-map-contacts.contacts-page-map {
        padding-top: 16px;
    }

    .front-map-contacts.contacts-page-map .front-map-contacts__contacts {
        margin-bottom: 28px;
    }

    .front-map-contacts.contacts-page-map .contacts-map-card__socials {
        gap: 8px;
    }

    .front-map-contacts.contacts-page-map .footer-social {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .front-map-contacts.contacts-page-map .front-map-contacts__map,
    .front-map-contacts.contacts-page-map .front-map-contacts__map iframe,
    .front-map-contacts.contacts-page-map .front-map-contacts__map .mapContainer {
        height: 400px !important;
        min-height: 400px;
    }
}

/* Links only on contacts page */
.front-map-contacts.contacts-page-map .contacts-map-card a {
    color: #111;
    text-decoration: none;
}

.front-map-contacts.contacts-page-map .contacts-map-card a:visited {
    color: #111;
}

.front-map-contacts.contacts-page-map .contacts-map-card a:hover,
.front-map-contacts.contacts-page-map .contacts-map-card a:focus,
.front-map-contacts.contacts-page-map .contacts-map-card a:active {
    color: #111;
    text-decoration: none;
    opacity: 0.75;
    outline: none;
}

/* =========================================
   CONTACTS MAP CARD
========================================= */

/* =========================================
   CONTACTS PAGE WITH BACKGROUND MAP
========================================= */

.contacts_content {
    padding: 0;
}

.front-map-contacts.contacts-page-map {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background: #f5f5f5;
}

.front-map-contacts__map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.front-map-contacts__map > * {
    width: 100%;
    height: 100%;
}

.front-map-contacts__map .region,
.front-map-contacts__map .block,
.front-map-contacts__map .contextual-region,
.front-map-contacts__map .field,
.front-map-contacts__map .field__item,
.front-map-contacts__map .text-formatted,
.front-map-contacts__map .clearfix,
.front-map-contacts__map .mapContainer {
    width: 100%;
    height: 100% !important;
}

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

.front-map-contacts > .container {
    position: relative;
    z-index: 5;
}

.front-map-contacts__contacts {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Ensure content stays on the left */
    padding: 32px 0;
    pointer-events: none;
}

.front-map-contacts__contacts .contacts-map-card {
    pointer-events: auto;
    margin-left: 0;
    width: 270px;
    min-height: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Ensure the map and contacts are aligned */
.front-map-contacts__map,
.front-map-contacts__contacts {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px; /* Ensures space between map and card */
}

/* =========================================
   CONTACTS MAP CARD
========================================= */

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

.contacts-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 38px 36px;
    border: 1px solid #e7dfd7;
    border-radius: 16px;
    background: #fdf8f2;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.contacts-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7d3028 0%, #1d6a3c 100%);
}

.contacts-card__item {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e7dfd7;
}

.contacts-card__item:last-of-type {
    margin-bottom: 0;
}

.contacts-card__label {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    color: #565656;
}

.contacts-card__link,
.contacts-card__text {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    word-break: break-word;
}

.contacts-card__link {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.contacts-card__link:hover {
    color: #111;
    opacity: 0.72;
    text-decoration: none;
}

.contacts-card__text {
    max-width: 420px;
}

/* Правая колонка с чатами */
.contacts-card__chat {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    padding: 18px 20px;
    border: 1px solid #e7dfd7;
    border-radius: 12px;
    background: #f2f1e9;
    min-height: 100%;
}

.contacts-card__chat-title {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #565656;
}

.contacts-card__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Иконки оставить прежними по виду */
.contacts-card .footer-social {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.contacts-card .footer-social:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

.contacts-card .footer-social--tg {
    background-image: url("../image/svg/tg.svg");
}

.contacts-card .footer-social--max {
    background-image: url("../image/svg/max.svg");
}

/* ---------- tablet ---------- */
@media screen and (max-width: 991px) {
    .contacts-card {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
        padding: 28px 24px 30px;
        border-radius: 14px;
    }

    .contacts-card__item {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .contacts-card__link,
    .contacts-card__text {
        font-size: 16px;
    }

    .contacts-card__chat {
        min-height: auto;
        padding: 16px 18px;
    }
}

/* ---------- mobile ---------- */
@media screen and (max-width: 767px) {
    .contacts-card {
        padding: 24px 20px;
    }

    .contacts-card__label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .contacts-card__link,
    .contacts-card__text {
        font-size: 15px;
        line-height: 1.4;
    }

    .contacts-card__chat-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .contacts-card .footer-social {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
}

/* ---------- small mobile ---------- */
@media screen and (max-width: 576px) {
    .contacts-card {
        padding: 20px 16px 20px;
        border-radius: 12px;
    }

    .contacts-card__item {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .contacts-card__label {
        font-size: 12px;
    }

    .contacts-card__link,
    .contacts-card__text {
        font-size: 14px;
    }

    .contacts-card__chat {
        padding: 14px 16px;
        border-radius: 10px;
    }

    .contacts-card__socials {
        gap: 8px;
    }
}

.contacts_content {
    padding-top: 100px;
    padding-bottom: 64px;
}

.modal-body .form-item-privacy .description a,
.modal-body .form-item-privacy .webform-element-description a,
.modal-body .form-item-privacy .description a span,
.modal-body .form-item-privacy .webform-element-description a span {
    color: #565656 !important;
    text-decoration: underline;
}

.modal-body .form-item-privacy .description a:hover,
.modal-body .form-item-privacy .webform-element-description a:hover,
.modal-body .form-item-privacy .description a:hover span,
.modal-body .form-item-privacy .webform-element-description a:hover span {
    color: #7d3028 !important;
}

.front-feedback .form-item-privacy .description a,
.front-feedback .form-item-privacy .webform-element-description a,
.front-feedback .form-item-privacy .description a span,
.front-feedback .form-item-privacy .webform-element-description a span {
    color: #565656 !important;
    text-decoration: underline;
}

.front-feedback .form-item-privacy .description a:hover,
.front-feedback .form-item-privacy .webform-element-description a:hover,
.front-feedback .form-item-privacy .description a:hover span,
.front-feedback .form-item-privacy .webform-element-description a:hover span {
    color: #7d3028 !important;
}

/* =========================================
   HERO / FRONT BG STRETCH FIX
========================================= */

.front-top,
.front-top.has-front-bg {
    position: relative;
    min-height: 770px;
    height: auto !important;
    overflow: hidden;
    background: #1f1f1f;
}

.front-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.front-bg,
.front-bg .region,
.front-bg .block,
.front-bg .field,
.front-bg .field__item,
.front-bg .media,
.front-bg picture {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.front-bg img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.front-top #header,
.front-top #header-mob,
.front-top .hero,
section.main_block {
    position: relative;
}

/* =========================================
   GLOBAL CONTAINER FIX
========================================= */

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    max-width: 1200px !important; /* 1170 + 15 + 15 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .container,
    .container-sm {
        max-width: 1200px !important;
    }
}

@media (min-width: 768px) {
    .container,
    .container-sm,
    .container-md {
        max-width: 1200px !important;
    }
}

@media (min-width: 992px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg {
        max-width: 1200px !important;
    }
}

@media (min-width: 1200px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl {
        max-width: 1200px !important;
    }
}

@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1200px !important;
    }
}

/* =========================================
   FRONT BG HEIGHT FIX
   вставить в самый конец файла
========================================= */

:root {
    --front-top-min-height: clamp(420px, 72vh, 770px);
    --hero-pt: clamp(90px, 10vw, 150px);
    --hero-pb: clamp(40px, 6vw, 80px);
    --main-block-pt: clamp(120px, 14vw, 200px);
    --main-block-pb: clamp(40px, 6vw, 80px);
}

.front-top,
.front-top.has-front-bg {
    position: relative;
    min-height: var(--front-top-min-height) !important;
    height: auto !important;
    overflow: hidden;
    background: #1f1f1f;
}

/* Сам фон */
.front-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.front-bg,
.front-bg .region,
.front-bg .block,
.front-bg .field,
.front-bg .field__item,
.front-bg .media,
.front-bg picture {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

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

.front-top #header,
.front-top #header-mob,
.front-top .hero,
.front-top section.main_block {
    position: relative;
}

/*.hero {*/
/*    min-height: auto !important;*/
/*    padding-top: var(--hero-pt) !important;*/
/*    padding-bottom: var(--hero-pb) !important;*/
/*}*/

/*section.main_block {*/
/*    padding-top: var(--main-block-pt) !important;*/
/*    padding-bottom: var(--main-block-pb) !important;*/
/*}*/

@media screen and (max-width: 991px) {
    :root {
        --front-top-min-height: clamp(360px, 60vh, 560px);
        --hero-pt: clamp(80px, 8vw, 110px);
        --hero-pb: clamp(32px, 5vw, 56px);
        --main-block-pt: clamp(90px, 10vw, 140px);
        --main-block-pb: clamp(32px, 5vw, 56px);
    }

    .front-top,
    .front-top.has-front-bg {
        min-height: var(--front-top-min-height) !important;
    }
}

@media screen and (max-width: 767px) {
    :root {
        --front-top-min-height: clamp(300px, 52vh, 460px);
        --hero-pt: 72px;
        --hero-pb: 32px;
        --main-block-pt: 72px;
        --main-block-pb: 32px;
    }

    .hero__content h1,
    .hero__content h2,
    .hero__content h3,
    section.main_block .field--name-field-content-main-title h1 {
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --front-top-min-height: clamp(260px, 46vh, 400px);
        --hero-pt: 64px;
        --hero-pb: 24px;
        --main-block-pt: 64px;
        --main-block-pb: 24px;
    }
}

html,
body {
    height: 100%;
}

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

.front-top {
    flex-shrink: 0;
}

#main {
    flex: 1 0 auto;
}

#footer {
    flex-shrink: 0;
}

/* =========================================
   MOBILE HEADER + DRUPAL TOOLBAR FIX
   Один блок на всю мобильную ширину.
   Удалить все предыдущие версии выше/ниже.
========================================= */

:root {
    --mobile-header-height: 68px;
    --drupal-toolbar-offset: 0px;
}

@media screen and (max-width: 991px) {
    html {
        scroll-padding-top: calc(var(--mobile-header-height) + var(--drupal-toolbar-offset));
    }

    body {
        padding-top: calc(var(--mobile-header-height) + var(--drupal-toolbar-offset)) !important;
    }

    #header-mob {
        position: fixed !important;
        top: var(--drupal-toolbar-offset) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: var(--mobile-header-height);
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box !important;
        z-index: 1030 !important;
    }

    #header-mob::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #f6f0e8;
        z-index: -1;
    }

    /* Drupal toolbar */
    body.toolbar-fixed.toolbar-horizontal {
        --drupal-toolbar-offset: 39px;
    }

    body.toolbar-fixed.toolbar-horizontal.toolbar-tray-open {
        --drupal-toolbar-offset: 79px;
    }

    body.toolbar-fixed.toolbar-vertical {
        --drupal-toolbar-offset: 39px;
    }

    /* Offcanvas поверх хедера */
    #offcanvasNav.offcanvas,
    #offcanvasNav.show,
    #offcanvasNav.showing,
    #offcanvasNav.hiding {
        z-index: 2000 !important;
    }

    .offcanvas-backdrop,
    .offcanvas-backdrop.show {
        z-index: 1990 !important;
    }

    /* Кнопка меню */
    #header-mob .col-nav,
    #header-mob .col-nav > a,
    #header-mob .col-nav > button {
        position: relative;
        z-index: 1031;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --mobile-header-height: 62px;
    }
}

html {
    height: auto;
}

body {
    min-height: 100vh;
}