/**
 * Vanilla Blocks - Стили блоков
 * 
 * Стили согласно "Памятке по стилю"
 * 
 * ЦВЕТА:
 * --vb-color-bg: #fff          (фон)
 * --vb-color-btn-text: #fff    (белый)
 * --vb-color-gray: #EEF1F2     (Gray)
 * --vb-color-dgray: #D4DEE8    (DGray)
 * --vb-color-heading: #000     (заголовки)
 * --vb-color-text: #3B4450     (текст)
 *
 *
 * ОТСТУПЫ (Desktop ≥1200px):
 * Block padding: 5rem / 6rem (~ 100px / 120px)
 * Gap: 40px
 * Card L: 34px, Card M: 28px
 * Button L: 22px/40px, Button M: 18px/32px, Button S: 9px/22px
 * Button radius: 100px, Block radius: 4px
 * 
 * ОТСТУПЫ (Mobile <1200px):
 * Block padding: 70px / 5%
 * Gap: 30px
 * Card L: 30px, Card M: 24px
 * Button L: 20px/32px, Button M: 16px/28px, Button S: 9px/22px
 */

:root {
    /* Цвета из памятки */
    --vb-color-bg: #fff;
    --vb-color-btn-text: #fff;
    --vb-color-gray: #EEF1F2;
    --vb-color-dgray: #D4DEE8;
    --vb-color-heading: #000;
    --vb-color-text: #3B4450;

    /* Отступы Desktop */
    --vb-block-padding-y: 5rem;
    --vb-block-padding-x: 6rem;
    --vb-gap: 40px;
    --vb-card-l-padding: 34px;
    --vb-card-m-padding: 28px;
    --vb-btn-l-padding: 22px 40px;
    --vb-btn-m-padding: 18px 32px;
    --vb-btn-s-padding: 9px 22px;

    /* Скругления */
    --vb-radius-btn: 100px;
    --vb-radius-block: 4px;
    --vb-radius-form: 4px;
}

/* Mobile breakpoint (<1200px) */
@media (max-width: 1199px) {
    :root {
        --vb-block-padding-y: 70px;
        --vb-block-padding-x: 5%;
        --vb-gap: 30px;
        --vb-card-l-padding: 30px;
        --vb-card-m-padding: 24px;
        --vb-btn-l-padding: 20px 32px;
        --vb-btn-m-padding: 16px 28px;
    }
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */

@font-face {
    font-family: 'vb-client-icons';
    src: url('../fonts/SFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.vb-icon-font,
.vb-slider__nav::before,
.vb-modal__close::before,
.vb-faq__plus::before {
    font-family: 'vb-client-icons' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.vb-has-block-bg {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    isolation: isolate;
}

.vb-has-block-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: var(--vb-block-bg-color, transparent);
    background-image:
        linear-gradient(rgba(0, 0, 0, var(--vb-block-bg-overlay, 0)), rgba(0, 0, 0, var(--vb-block-bg-overlay, 0))),
        var(--vb-block-bg-image, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.vb-has-block-bg > * {
    position: relative;
    z-index: 1;
}

.vb-section {
    padding: var(--vb-block-padding-y) var(--vb-block-padding-x);
    font-family: var(--vb-font-family, inherit);
    font-size: var(--vb-font-size, inherit);
    color: var(--vb-color-text);
    background: var(--vb-color-bg);
}

/* Принудительно наследуем шрифт для всех элементов внутри,
   чтобы перебить дефолтные стили Vanilla Framework (h1, h2, input и т.д.) */
.vb-section h1,
.vb-section h2,
.vb-section h3,
.vb-section h4,
.vb-section h5,
.vb-section h6 {
    font-family: var(--vb-font-family, inherit) !important;
    color: var(--vb-color-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.vb-section h1 {
    font-size: var(--vb-font-h1, 48px);
}

.vb-section h2 {
    font-size: var(--vb-font-h2, 36px);
}

.vb-section h3 {
    font-size: var(--vb-font-h3, 24px);
}

/* Mobile headers */
@media (max-width: 768px) {
    .vb-section h1 {
        font-size: calc(var(--vb-font-h1, 48px) * 0.7);
    }

    .vb-section h2 {
        font-size: calc(var(--vb-font-h2, 36px) * 0.75);
    }

    .vb-section h3 {
        font-size: calc(var(--vb-font-h3, 24px) * 0.8);
    }
}

.vb-section p,
.vb-section span,
.vb-section a,
.vb-section button,
.vb-section input,
.vb-section textarea,
.vb-slider,
.vb-modal,
.vb-qa {
    font-family: var(--vb-font-family, inherit) !important;
}

/* Глобальный line-height для текста */
.vb-section p,
.vb-section li {
    line-height: 1.5;
}

/* Убираем подчеркивание у всех ссылок */
.vb-section a {
    text-decoration: none;
}

.vb-section a:hover {
    text-decoration: none;
}

/* На всякий случай: убираем подчеркивание во всех внутренних компонентах плагина */
.vb-section a,
.vb-section a:hover,
.vb-modal a,
.vb-modal a:hover,
.vb-lightbox a,
.vb-lightbox a:hover,
.vb-consent a,
.vb-consent a:hover,
.vb-contact-item__value a,
.vb-contact-item__value a:hover,
.vb-slider a:hover {
    text-decoration: none !important;
}

/* Ссылка-кнопка (подробнее) */
.vb-link,
.vb-btn-link {
    text-decoration: none !important;
    color: var(--vb-color-heading, #000);
    transition: color 0.3s ease;
}

.vb-link:hover,
.vb-btn-link:hover {
    color: var(--vb-color-secondary);
    text-decoration: none !important;
}

.vb-section--alt {
    background: var(--vb-color-gray);
}

.vb-section--dark {
    background: var(--vb-color-dgray);
    color: var(--vb-color-text);
}

.vb-section--gradient {
    background: var(--vb-gradient);
    color: #fff;
}

.vb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.vb-section-header {
    text-align: center;
    margin-bottom: var(--vb-gap);
}

.vb-section-title {
    font-size: var(--vb-font-h2);
    font-weight: 700;
    color: var(--vb-color-heading, #000);
    /*
     * Клиентский запрос: убрать отступ между заголовком и подзаголовком
     * во всех блоках (как в «Наши работы»).
     */
    margin: 0;
}

.vb-section--dark .vb-section-title,
.vb-section--gradient .vb-section-title {
    color: #fff;
}

.vb-section-subtitle {
    font-size: var(--vb-font-size, inherit);
    max-width: 600px;
    margin: 0 auto;

    line-height: 1.5;
}

/* Без отступа между заголовком и подзаголовком */
.vb-section-header--no-gap .vb-section-title {
    margin-bottom: 0;
}

/* Галерея - подпись под картинкой */
.vb-gallery__caption {
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: var(--vb-color-text);
    line-height: 1.4;
}

/* Кнопки */
.vb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--vb-btn-m-padding);
    font-family: var(--vb-font-family, inherit);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    border-radius: var(--vb-radius-btn);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vb-section a.vb-btn,
.vb-section a.vb-btn:hover,
.vb-section a.vb-btn:focus,
.vb-section a.vb-btn:focus-visible,
.vb-section a.vb-btn:active,
.vb-modal a.vb-btn,
.vb-modal a.vb-btn:hover,
.vb-modal a.vb-btn:focus,
.vb-modal a.vb-btn:focus-visible,
.vb-modal a.vb-btn:active {
    text-decoration: none !important;
}

/* Размер M для кнопок */
.vb-btn--m {
    padding: var(--vb-btn-m-padding);
    font-size: 0.875rem;
}

.vb-btn--primary {
    background: var(--vb-color-primary);
    color: var(--vb-color-btn-text) !important;
}

.vb-btn--primary:hover {
    background: var(--vb-color-secondary);
    color: var(--vb-color-btn-text) !important;
    transform: translateY(-2px);
}

.vb-btn--accent {
    background: var(--vb-gradient);
    color: var(--vb-color-btn-text) !important;
    box-shadow: 0 10px 24px rgba(7, 51, 153, 0.18);
}

.vb-btn--accent:hover {
    color: var(--vb-color-btn-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(7, 51, 153, 0.22);
}

.vb-btn--success {
    background: var(--vb-color-success);
    color: var(--vb-color-btn-text);
}

.vb-btn--secondary,
.vb-btn--outline {
    background: transparent;
    border: 1px solid var(--vb-color-primary);
    color: var(--vb-color-heading, #000) !important;
}

.vb-btn--secondary:hover,
.vb-btn--outline:hover {
    background: var(--vb-color-primary) !important;
    color: #fff !important;
}

.vb-btn--white {
    background: var(--vb-color-bg, #fff);
    color: var(--vb-color-heading, #000) !important;
}

/* Карточки */
.vb-card {
    background: var(--vb-color-bg);
    border-radius: var(--vb-radius-block);
    padding: var(--vb-card-l-padding);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vb-card--m {
    padding: var(--vb-card-m-padding);
}

/* Поля форм */
.vb-input,
.vb-textarea,
.vb-select {
    border-radius: var(--vb-radius-form);
    border: 1px solid var(--vb-color-dgray);
    padding: 12px 16px;
    font-family: var(--vb-font-family, inherit);
    font-size: 1rem;
    color: var(--vb-color-text);
    background: var(--vb-color-bg);
    transition: border-color 0.3s ease;
}

.vb-input:focus,
.vb-textarea:focus,
.vb-select:focus {
    outline: none;
    border-color: var(--vb-color-primary);
}

/* ========================================
   1. СЛАЙДЕР / БАННЕР
   ======================================== */

/* WordPress block wrapper */
.wp-block-vanilla-blocks-slider {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.vb-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.vb-slider__container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.vb-slider__slide {
    min-width: 100%;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: start;
    text-align: left;
    padding: 3rem 6rem;
    box-sizing: border-box;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* Альтернативный вариант: изображение через <img> с object-fit */
.vb-slider__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* default, can be overridden by inline style */
    object-position: center;
    z-index: 0;
}

/* Для contain режима добавляем фон */
.vb-slider__slide--contain-bg {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Dark overlay ONLY for slides with background images */
.vb-slider__slide[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Gradient overlay for slides without images */
.vb-slider__slide--gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--vb-gradient);
    opacity: 0.9;
}

.vb-slider__content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 500px;
}

.vb-slider__title {
    font-size: var(--vb-font-h1);
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
    text-align:left;
}

.vb-slider__text {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0 0 2rem;
    text-align:left;
}

.vb-slider__button {
    background: var(--vb-color-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(20, 138, 255, 0.22);
}

.vb-slider__button:hover {
    background: #0f78de !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(20, 138, 255, 0.28);
}

.vb-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff !important;
    border: none !important;
    border-radius: 50%;
    color: #000 !important;
    font-size: 0.9rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease, color 0.2s ease;
    z-index: 10;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    cursor: pointer !important;
}

.vb-slider__nav::after {
    content: none !important;
}

.vb-slider__nav::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    box-sizing: border-box;
}

.vb-slider__nav--prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.vb-slider__nav--next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.vb-slider__nav:hover {
    color: var(--vb-color-accent) !important;
    box-shadow: 0px 0px 10px 1px rgba(34, 60, 80, 0.2) !important;
}

.vb-slider__nav:focus,
.vb-slider__nav:focus-visible,
.vb-slider__nav:active {
    outline: none !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
}

.vb-slider__nav--prev {
    left: 2rem;
}

.vb-slider__nav--next {
    right: 2rem;
}

.vb-slider__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

/* Testimonials slider - dots positioned below content */
.vb-testimonials-slider .vb-slider__dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    margin-top: 24px;
}

/* Reset all button styles to ensure round bullets */
.vb-slider__dot,
button.vb-slider__dot,
.vb-slider__dots button,
.vb-slider__dots .vb-slider__dot {
    all: unset !important;
    width: 2rem !important;
    height: .3rem !important;
    min-width: 2rem !important;
    max-width: 2rem !important;
    min-height: .3rem !important;
    max-height: .3rem !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-width: 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    flex: 0 0 12px !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: 12px !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
    cursor: pointer !important;
    transition: background 0.3s, opacity 0.3s !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.vb-slider__dot.active,
button.vb-slider__dot.active,
.vb-slider__dots button.active,
.vb-slider__dots .vb-slider__dot.active {
    background: #fff !important;
}

/* Testimonials dots - dark color for light background */
.vb-testimonials-slider .vb-slider__dot,
.vb-testimonials-slider button.vb-slider__dot {
    background: var(--vb-color-primary, #333) !important;
    opacity: 0.6 !important;
}

.vb-testimonials-slider .vb-slider__dot.active,
.vb-testimonials-slider button.vb-slider__dot.active {
    opacity: 1 !important;
}

/* ========================================
   1.5. ОТЗЫВЫ (TESTIMONIALS)
   ======================================== */

.vb-testimonial {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--vb-gap) 0;
}

.vb-testimonial__card {
    background: var(--vb-color-bg);
    border-radius: var(--vb-radius-block);
    padding: var(--vb-card-l-padding);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.vb-testimonial__rating {
    color: #FF9500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.vb-testimonial__text {
    font-size: 1.125rem;
    font-style: normal;
    color: var(--vb-color-text);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.vb-testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.vb-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.vb-testimonial__avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vb-color-dgray);
    color: var(--vb-color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.vb-testimonial__name {
    font-weight: 600;
    color: var(--vb-color-heading);
    text-align: left;
}

.vb-testimonial__role {
    font-size: 0.875rem;
    color: var(--vb-color-text);
    text-align: left;
}

/* ========================================
   2. О ПРОДУКТЕ / УСЛУГЕ
   ======================================== */

.vb-about-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--vb-gap);
    align-items: center;
}

.vb-about-product--reverse {
    direction: rtl;
}

.vb-about-product--reverse>* {
    direction: ltr;
}

.vb-about-product__image img {
    width: 100%;
    border-radius: var(--vb-radius-block);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.vb-about-product__title {
    color: var(--vb-color-heading, #000);
    margin: 0 0 1rem;
}

.vb-about-product__text {
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.vb-about-product__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.vb-about-product__list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
}

.vb-about-product__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vb-color-success);
    font-weight: bold;
}

/* ========================================
   3. ГАЛЕРЕЯ / ПРИМЕРЫ РАБОТ
   ======================================== */

.vb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vb-gallery__item {
    position: relative;
    border-radius: var(--vb-radius);
    overflow: hidden;
    cursor: pointer;
}

.vb-gallery__item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s;
}

.vb-gallery__item:hover img {
    transform: scale(1.05);
}

.vb-gallery__overlay {
    position: absolute;
    inset: 0;
    background: var(--vb-color-primary);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.vb-gallery__item:hover .vb-gallery__overlay {
    opacity: 0.8;
}

.vb-gallery__overlay span {
    color: #fff;
    font-size: 2rem;
}

/* Кастомная иконка лупы */
.vb-gallery__zoom-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Галерея с подписями */
.vb-gallery__item {
    display: flex;
    flex-direction: column;
}

/* Лайтбокс */
.vb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.vb-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.vb-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--vb-radius);
}

.vb-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.vb-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ========================================
   4. ПРЕИМУЩЕСТВА / ПРОДУКТЫ / УСЛУГИ
   ======================================== */

/* Max 3 карточки в строку, остальное — на вторую строку */
.vb-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--vb-gap);
}

/* На широких экранах — макс 3 колонки */
@media (min-width: 1200px) {
    .vb-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vb-feature {
    text-align: center;
    padding: var(--vb-card-l-padding);
    background: var(--vb-color-bg);
    border-radius: var(--vb-radius-block);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vb-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.vb-feature__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: var(--vb-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

/* Иконка-изображение внутри преимущества */
.vb-feature__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

/* SVG внутри иконки */
.vb-feature__icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.vb-feature__title {
    font-size: var(--vb-font-h3);
    color: var(--vb-color-heading);
    margin: 0 0 0.5rem;
}

.vb-feature__text {
    color: var(--vb-color-text);
    margin: 0;
}

/* Карточки продуктов/услуг (расширенный вариант) */
.vb-product-card {
    display: flex;
    flex-direction: column;
    background: var(--vb-color-bg);
    border-radius: var(--vb-radius-block);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vb-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.vb-product-card__image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.vb-product-card__content {
    padding: var(--vb-card-m-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vb-product-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vb-color-heading);
    margin: 0 0 0.5rem;
}

.vb-product-card__text {
    color: var(--vb-color-text);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.vb-product-card__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vb-color-heading, #000);
    margin: 0 0 1rem;
}

.vb-product-card__btn {
    margin-top: auto;
}

/* ========================================
   5. СХЕМА РАБОТЫ
   ======================================== */

/* Max 7 шагов в строку, остальное — на вторую строку */
.vb-workflow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--vb-gap);
    justify-content: center;
    max-width: 100%;
}

/* На широких экранах — макс 7 колонок */
@media (min-width: 1200px) {
    .vb-workflow {
        grid-template-columns: repeat(7, 1fr);
    }
}

.vb-workflow__step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.vb-workflow__number {
    width: 56px;
    height: 56px;
    background: var(--vb-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.vb-workflow__step:not(:last-child)::after {
    content: '🡒';
    position: absolute;
    top: 3rem;
    right: -2rem;
}

.vb-workflow__title {
    font-size: 1.25rem;
    color: var(--vb-color-heading, #000);
    margin: 0 0 0.5rem;
}

.vb-workflow__text {
    color: var(--vb-color-text);
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   6. ОТЗЫВЫ
   ======================================== */

.vb-testimonials-slider {
    position: relative;
    overflow: hidden;
}

.vb-testimonials__container {
    display: flex;
    transition: transform 0.5s ease;
}

.vb-testimonial {
    min-width: 100%;
    padding: 0 3rem;
}

/* 2 отзыва на экранах >1200px */
@media (min-width: 1200px) {
    /* Отзывы: показываем по 2 карточки одновременно */
    .vb-testimonials-slider .vb-testimonial.vb-slider__slide {
        flex: 0 0 50%;
        width: 50%;
        min-width: 50%;
        padding: 0 1.5rem;
        min-height: auto;
    }

    .vb-testimonials-slider .vb-testimonial__card {
        max-width: 100%;
    }

    /* На больших экранах стрелки навигации не нужны (если вдруг есть в теме) */
    .vb-testimonials-slider .vb-slider__nav {
        display: none !important;
    }
}


@media (min-width: 1200px) {
    .vb-testimonials-slider.vb-testimonials-slider--single-per-view .vb-testimonial.vb-slider__slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        padding: 0 3rem;
    }
}

/* ========================================
   7. О КОМПАНИИ
   ======================================== */

.vb-about-company {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.vb-about-company__image img {
    width: 100%;
    border-radius: var(--vb-radius);
}

.vb-about-company__title {
    color: var(--vb-color-heading, #000);
    margin: 0 0 1rem;
}

.vb-about-company__text {
    color: var(--vb-color-text);
    line-height: 1.5;
    margin: 0 0 2rem;
}

.vb-about-company__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.vb-stat {
    text-align: center;
    padding: 1rem;
    background: var(--vb-color-bg-alt);
    border-radius: var(--vb-radius);
}

.vb-stat__number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--vb-color-heading, #000);
}

.vb-stat__label {
    font-size: 0.9rem;
    color: var(--vb-color-text);
    line-height: 1.5;
}

/* ========================================
   8. КОМАНДА
   ======================================== */

.vb-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--vb-gap);
}

/* На экранах <1200px - горизонтальный скролл */
@media (max-width: 1199px) {
    .vb-team {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .vb-team-member {
        flex: 0 0 280px;
        min-width: 280px;
        scroll-snap-align: start;
    }
}

.vb-team-member {
    text-align: center;
    /* Убираем белый фон, тени, отступы */
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s;
}

.vb-team-member:hover {
    transform: translateY(-5px);
}

/* Фото с пропорцией 2:3 */
.vb-team-member__photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--vb-radius-block);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 0 1rem;
    border: none;
}

.vb-team-member__photo-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--vb-radius-block);
    margin: 0 0 1rem;
    background: var(--vb-color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vb-color-text);
    font-size: 3rem;
    font-weight: bold;
    border: none;
}

.vb-team-member__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vb-color-heading);
    margin: 0 0 0.25rem;
}

.vb-team-member__position {
    color: var(--vb-color-text);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   9. ПРИЗЫВ К ДЕЙСТВИЮ (CTA)
   ======================================== */

.vb-cta {
    --vb-cta-title-color: #fff;
    --vb-cta-text-color: rgba(255, 255, 255, 0.9);
    --vb-cta-field-border: rgba(255, 255, 255, 0.3);
    --vb-cta-field-bg: rgba(255, 255, 255, 0.1);
    --vb-cta-field-color: #fff;
    --vb-cta-placeholder-color: rgba(255, 255, 255, 0.58);
    --vb-cta-focus-border: #fff;
    --vb-cta-focus-bg: rgba(255, 255, 255, 0.2);
    --vb-cta-consent-color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 5rem 2rem;
    background: var(--vb-gradient);
    border-radius: var(--vb-radius-block);
    position: relative;
    overflow: hidden;
}

.vb-cta--surface-light {
    --vb-cta-title-color: var(--vb-color-primary, #073399);
    --vb-cta-text-color: rgba(59, 68, 80, 0.92);
    --vb-cta-field-border: rgba(59, 68, 80, 0.16);
    --vb-cta-field-bg: #fff;
    --vb-cta-field-color: var(--vb-color-text, #3B4450);
    --vb-cta-placeholder-color: rgba(59, 68, 80, 0.65);
    --vb-cta-focus-border: var(--vb-color-primary, #073399);
    --vb-cta-focus-bg: #fff;
    --vb-cta-consent-color: var(--vb-color-text, #3B4450);
}

/* CTA с фоновым изображением */
.vb-cta--with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vb-cta--with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.vb-cta--with-bg>* {
    position: relative;
    z-index: 1;
}

/* Кнопка CTA наследует основные цвета */
.vb-cta .vb-btn {
    background: var(--vb-color-primary) !important;
    color: #fff !important;
}

.vb-cta .vb-btn:hover {
    background: var(--vb-color-secondary);
}

.vb-cta__title {
    font-size: var(--vb-font-h2);
    color: var(--vb-cta-title-color);
    margin: 0 0 1rem;
}

.vb-cta__text {
    font-size: 1.25rem;
    color: var(--vb-cta-text-color);
    margin: 0 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vb-cta__form {
    max-width: 500px;
    margin: 0 auto;
}

.vb-cta__form .vb-form-group {
    margin-bottom: 1rem;
}

.vb-cta__form .vb-form-group--captcha {
    display: flex;
    justify-content: center;
}

.vb-smartcaptcha {
    width: 100%;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.vb-smartcaptcha iframe {
    max-width: 100%;
}

.vb-cta__form input[type="text"],
.vb-cta__form input[type="email"],
.vb-cta__form input[type="tel"],
.vb-cta__form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--vb-font-family, inherit);
    font-size: 1rem;
    border: 2px solid var(--vb-cta-field-border);
    border-radius: var(--vb-radius);
    background: var(--vb-cta-field-bg);
    color: var(--vb-cta-field-color);
    box-sizing: border-box;
}

/* Убрать подсветку автозаполнения браузера, чтобы все поля выглядели одинаково */
.vb-cta__form input:-webkit-autofill,
.vb-cta__form input:-webkit-autofill:hover,
.vb-cta__form input:-webkit-autofill:focus,
.vb-cta__form textarea:-webkit-autofill,
.vb-cta__form textarea:-webkit-autofill:hover,
.vb-cta__form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--vb-cta-field-color) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--vb-cta-field-bg) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Normalize placeholder color for all CTA fields against theme/browser overrides */
.vb-cta__form input::placeholder,
.vb-cta__form input::-webkit-input-placeholder,
.vb-cta__form input::-moz-placeholder,
.vb-cta__form input:-ms-input-placeholder,
.vb-cta__form input::-ms-input-placeholder,
.vb-cta__form textarea::placeholder,
.vb-cta__form textarea::-webkit-input-placeholder,
.vb-cta__form textarea::-moz-placeholder,
.vb-cta__form textarea:-ms-input-placeholder,
.vb-cta__form textarea::-ms-input-placeholder {
    color: var(--vb-cta-placeholder-color) !important;
    -webkit-text-fill-color: var(--vb-cta-placeholder-color) !important;
    opacity: 1 !important;
}

.vb-cta__form input[type="text"]:focus,
.vb-cta__form input[type="email"]:focus,
.vb-cta__form input[type="tel"]:focus,
.vb-cta__form textarea:focus {
    outline: none;
    border-color: var(--vb-cta-focus-border);
    background: var(--vb-cta-focus-bg);
}

.vb-cta .vb-consent,
.vb-cta .vb-consent span,
.vb-cta .vb-consent a,
.vb-cta__privacy {
    color: var(--vb-cta-consent-color) !important;
}

.vb-cta .vb-consent a {
    text-decoration: underline;
}

.vb-cta__privacy {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 12px;
    text-align: center;
}

.vb-form-consent {
    margin: 0.75rem 0 0.75rem;
}

.vb-consent {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 12px;
    color: var(--vb-color-text, #3B4450) !important;
    opacity: 0.85;
    line-height: 1.3;
}

.vb-consent input[type="checkbox"] {
    margin-top: 0.15rem;
}

.vb-consent a {
    color: inherit;
    text-decoration: none;
}

.vb-consent a:hover {
    text-decoration: none;
}

/* Явно задаём цвет текста для подписи чекбокса, чтобы он не пропадал
   из-за наследования цвета от родителя/темы. */
.vb-consent span {
    color: currentColor;
}

.vb-cta__form .vb-consent,
.vb-cta__form .vb-consent span,
.vb-cta__form .vb-consent a {
    color: var(--vb-color-text, #3B4450) !important;
}

.vb-popup__content .vb-consent,
.vb-popup__content .vb-consent span,
.vb-popup__content .vb-consent a,
.vb-popup__content .wpcf7-list-item-label,
.vb-popup__content input[type="checkbox"] + span,
.vb-popup__content input[type="checkbox"] + label,
.vb-modal__consent-row,
.vb-modal__consent-row label,
.vb-modal__consent-row span,
.vb-modal__consent-row a {
    color: var(--vb-color-text, #3B4450);
}

/* ========================================
   10. FAQ / ЧАСТЫЕ ВОПРОСЫ
   ======================================== */

.vb-faq {
    max-width: 980px;
    margin: 0 auto;
}

.vb-faq__item {
    margin-bottom: 20px;
    background: var(--vb-color-bg, #fff);
    border-radius: var(--vb-radius-block, 14px);
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vb-faq__item.active {
    box-shadow: 0 14px 28px -18px rgba(21, 27, 39, 0.45), 0 12px 22px -20px rgba(77, 58, 248, 0.35);
}

.vb-faq__question {
    position: relative;
    display: block;
    width: 100%;
    padding: 30px 88px 30px 24px;
    background: var(--vb-color-bg, #fff);
    border: none;
    text-align: left;
    font-family: var(--vb-font-family, inherit);
    font-size: clamp(1.125rem, 0.98rem + 0.55vw, 1.55rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--vb-color-heading, #151b27);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.vb-faq__question:hover {
    background: var(--vb-color-gray, #DDE1EC);
}

.vb-faq__question:focus,
.vb-faq__question:focus-visible,
.vb-faq__question:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.vb-faq__question-text {
    display: block;
}

.vb-faq__plus {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    display: block;
    color: var(--vb-color-heading, #151b27);
}

.vb-faq__plus::before {
    content: none;
}

.vb-faq__line {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    border-top: 1px solid currentColor;
    transform-origin: center center;
}

.vb-faq__line--horizontal {
    transform: translate(-50%, -50%);
}

.vb-faq__line--vertical {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.2s ease;
}

.vb-faq__item.active .vb-faq__line--vertical {
    transform: translate(-50%, -50%) rotate(0deg);
}

.vb-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    color: var(--vb-color-text, #646d8b);
}

.vb-faq__answer-content {
    padding: 0 24px 24px;
    color: var(--vb-color-text, #646d8b);
    line-height: 1.6;
    font-size: 1rem;
}

.vb-faq__answer-content > *:first-child {
    margin-top: 0;
}

.vb-faq__answer-content > *:last-child {
    margin-bottom: 0;
}

.vb-faq__answer-content p {
    color: inherit;
}


@media (max-width: 1024px) {
    .vb-faq__line {
        width: 17px;
    }
}

@media (max-width: 680px) {
    .vb-faq__question {
        padding-right: 72px;
        padding-left: 20px;
    }

    .vb-faq__plus {
        width: 42px;
        height: 42px;
    }

    .vb-faq__line {
        width: 20px;
    }

    .vb-faq__answer-content {
        padding: 0 20px 20px;
    }
}

/* ========================================
   11. КОНТАКТЫ
   ======================================== */

.vb-contacts {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.vb-contacts__info {
    padding: 2rem;
}

.vb-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vb-contact-item__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vb-contact-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vb-contact-item__label {
    font-size: 0.9rem;
    color: var(--vb-color-text);
    margin-bottom: 0.25rem;
}

.vb-contact-item__value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--vb-color-text);
}

.vb-contact-item__value a {
    color: var(--vb-color-heading, #000);
    text-decoration: none;
}

.vb-contact-item__value a:hover {
    text-decoration: none;
}

.vb-contacts__map {
    min-height: 400px;
    border-radius: var(--vb-radius);
    overflow: hidden;
}

.vb-contacts__map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

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

.vb-callback-block {
    background: transparent !important;
}

.vb-callback-block__inner {
    display: flex;
    justify-content: center;
}

.vb-modal-shell[hidden] {
    display: none !important;
}

.vb-modal-shell {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vb-modal-shell.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.vb-modal-open,
body.vb-modal-open {
    overscroll-behavior: contain;
}

.vb-modal {
    position: relative;
    width: min(100%, 720px);
    min-height: min(600px, calc(100vh - 80px));
    min-height: min(600px, calc(100dvh - 80px));
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--vb-radius-block, 24px);
    background: var(--vb-color-bg, #fff);
    color: var(--vb-color-text, #3B4450);
    box-shadow: 0 24px 64px rgba(21, 27, 39, 0.18);
    transform: translateY(24px);
    transition: transform 0.3s ease;
    overscroll-behavior: contain;
}

.vb-modal-shell.active .vb-modal {
    transform: translateY(0);
}

.vb-modal__body {
    min-height: 100%;
    padding: 36px 32px 32px;
    box-sizing: border-box;
}

.vb-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    background: var(--vb-color-gray, #eef1f2);
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    color: var(--vb-color-text);
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
    border: none !important;
}

.vb-modal__close::before {
    content: "\e913";
    display: block;
    font-size: 14px;
    color: currentColor;
}

.vb-modal__close:hover {
    background: var(--vb-color-dgray, #DDE1EC) !important;
    color: var(--vb-color-heading, #000) !important;
}

.vb-modal__close:focus,
.vb-modal__close:focus-visible,
.vb-modal__close:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.vb-modal__close::after {
    content: none !important;
}

.vb-modal__title {
    font-size: clamp(1.625rem, 1.2rem + 1vw, 2.2rem);
    color: var(--vb-color-heading, #000);
    margin: 0 0 0.75rem;
}

.vb-modal__subtitle {
    color: var(--vb-color-text);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.vb-modal__form .vb-form-group {
    margin-bottom: 1rem;
}

.vb-modal__form input,
.vb-modal__form textarea,
.vb-modal__form select {
    width: 100%;
    padding: 0.95rem 1rem;
    font-family: var(--vb-font-family, inherit);
    font-size: 1rem;
    border: 1px solid var(--vb-color-dgray, #d6deec);
    border-radius: var(--vb-radius-form, 12px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--vb-color-bg, #fff);
}

.vb-modal__form input:focus,
.vb-modal__form textarea:focus,
.vb-modal__form select:focus {
    outline: none;
    border-color: var(--vb-color-primary);
    box-shadow: none;
}

.vb-modal__consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.vb-modal__consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.vb-modal__consent-row label {
    font-size: 14px;
    line-height: 1.45;
    color: var(--vb-color-text);
}

.vb-modal__privacy {
    font-size: 12px;
    color: var(--vb-color-text-muted);
    margin: 12px 0 0;
    text-align: center;
}

.vb-modal__privacy a {
    text-decoration: none;
}

.vb-callback-btn {
    position: fixed;
    right: calc(2rem + var(--vb-scrollbar-compensation, 0px));
    bottom: 2rem;
    z-index: 9999;
    box-shadow: 0 10px 24px rgba(7, 51, 153, 0.18);
}

.vb-callback-btn:hover {
    transform: translateY(-2px);
}

.vb-callback-btn.vb-btn--secondary,
.vb-callback-btn.vb-btn--outline {
    background: var(--vb-color-bg, #fff);
}

.vb-callback-btn.vb-btn--secondary:hover,
.vb-callback-btn.vb-btn--outline:hover {
    background: var(--vb-color-primary) !important;
}

@media (max-width: 680px) {
    .vb-modal-shell {
        align-items: flex-start;
        padding: calc(env(safe-area-inset-top, 0px) + 50px) 16px 16px;
    }

    .vb-modal {
        width: 100%;
        min-height: min(600px, calc(100vh - env(safe-area-inset-top, 0px) - 66px));
        min-height: min(600px, calc(100dvh - env(safe-area-inset-top, 0px) - 66px));
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 66px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 66px);
        border-radius: 18px;
    }

    .vb-modal__body {
        padding: 28px 20px 22px;
    }

    .vb-callback-btn {
        right: calc(1rem + var(--vb-scrollbar-compensation, 0px));
        bottom: 1rem;
        width: calc(100% - 2rem - var(--vb-scrollbar-compensation, 0px));
        justify-content: center;
    }
}

.vb-popup__content > :first-child {
    margin-top: 0;
}

.vb-popup__content > :last-child {
    margin-bottom: 0;
}

.vb-popup__content .wp-block-buttons {
    margin-bottom: 0;
}

.vb-popup__content .wp-block-image img {
    height: auto;
}

.vb-modal-shell.modal-center {
    align-items: center;
    justify-content: center;
}

.vb-modal-shell.modal-wide .vb-modal {
    width: min(100%, 960px);
}

.vb-modal-shell.modal-narrow .vb-modal {
    width: min(100%, 420px);
}

.vb-modal-shell.modal-bottom {
    align-items: flex-end;
    justify-content: center;
    padding: 24px 24px 0;
}

.vb-modal-shell.modal-bottom .vb-modal {
    width: min(100%, 760px);
    min-height: min(600px, calc(100vh - 24px));
    min-height: min(600px, calc(100dvh - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 24px 24px 0 0;
    transform: translateY(32px);
}

.vb-modal-shell.active.modal-bottom .vb-modal {
    transform: translateY(0);
}

.vb-modal-shell.modal-side,
.vb-modal-shell.modal-right,
.vb-modal-shell.modal-left {
    padding: 0;
    align-items: stretch;
}

.vb-modal-shell.modal-side,
.vb-modal-shell.modal-right {
    justify-content: flex-end;
}

.vb-modal-shell.modal-left {
    justify-content: flex-start;
}

.vb-modal-shell.modal-side .vb-modal,
.vb-modal-shell.modal-right .vb-modal,
.vb-modal-shell.modal-left .vb-modal {
    height: 100vh;
    max-height: 100vh;
    width: min(100%, 460px);
    border-radius: 0;
}

.vb-modal-shell.modal-side .vb-modal,
.vb-modal-shell.modal-right .vb-modal {
    transform: translateX(32px);
}

.vb-modal-shell.modal-left .vb-modal {
    transform: translateX(-32px);
}

.vb-modal-shell.active.modal-side .vb-modal,
.vb-modal-shell.active.modal-right .vb-modal,
.vb-modal-shell.active.modal-left .vb-modal {
    transform: translateX(0);
}

@media (max-width: 680px) {
    .vb-modal-shell.modal-side,
    .vb-modal-shell.modal-right,
    .vb-modal-shell.modal-left {
        padding: 0;
    }

    .vb-modal-shell.modal-side .vb-modal,
    .vb-modal-shell.modal-right .vb-modal,
    .vb-modal-shell.modal-left .vb-modal {
        width: 100%;
    }

    .vb-modal-shell.modal-bottom {
        padding: calc(env(safe-area-inset-top, 0px) + 50px) 0 0;
        align-items: flex-end;
    }

    .vb-modal-shell.modal-bottom .vb-modal {
        width: 100%;
        min-height: min(600px, calc(100vh - env(safe-area-inset-top, 0px) - 50px));
        min-height: min(600px, calc(100dvh - env(safe-area-inset-top, 0px) - 50px));
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 50px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 50px);
        border-radius: 20px 20px 0 0;
    }
}

@media (max-width: 680px) and (max-height: 600px) {
    .vb-modal {
        min-height: 0;
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 66px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 66px);
    }

    .vb-modal-shell.modal-bottom .vb-modal {
        min-height: 0;
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 50px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 50px);
    }
}

/* ========================================
   TOAST УВЕДОМЛЕНИЯ
   ======================================== */

.vb-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--vb-color-secondary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--vb-radius);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
}

.vb-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.vb-toast--success {
    background: var(--vb-color-success);
}

.vb-toast--error {
    background: #c7162b;
}

/* ========================================
   АНИМАЦИИ
   ======================================== */

.vb-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vb-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 768px) {
    .vb-section {
        padding: calc(var(--vb-spacing-section) * 0.6) 0;
    }

    .vb-section-title {
        font-size: calc(var(--vb-font-h2) * 0.75);
    }

    .vb-about-product,
    .vb-about-company,
    .vb-contacts {
        grid-template-columns: 1fr;
    }

    .vb-about-product--reverse {
        direction: ltr;
    }

    .vb-slider__slide {
        min-height: 400px;
        justify-content: center;
        text-align: center;
        padding: 1rem;
    }

    .vb-slider__title {
        font-size: calc(var(--vb-font-h1) * 0.6);
        text-align: center;
    }
    .vb-slider__text {
        text-align: center;
        font-size: 1rem;
    }
    .vb-slider__nav {
        top:80%;
    }
    .vb-slider__nav--prev {
        left: 8rem;
    }
    .vb-slider__nav--next {
        right: 8rem;
    }
    .vb-workflow__step::after {
        display: none;
    }

    .vb-cta {
        padding: 3rem 1.5rem;
    }

    .vb-about-company__stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Mobile fixes (Testimonials & Workflow)
   ============================================================ */

@media (max-width: 600px) {

    /* Testimonials: reduce inner padding so text doesn't become a tall "column" */
    .vb-testimonial {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .vb-testimonial__card {
        padding: 1.5rem 1.25rem;
    }

    /* Ensure author avatar/placeholder stays perfectly round */
    .vb-testimonial__avatar,
    .vb-testimonial__avatar-placeholder {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
        flex: 0 0 64px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        overflow: hidden;
    }
}

@media (max-width: 768px) {

    /* Workflow: allow horizontal swipe instead of squeezing into a tight grid */
    .vb-workflow {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        /* Центрируем первый блок */
        padding: 0.25rem 0.75rem 0.75rem calc(50% - 120px);
    }

    .vb-workflow__step {
        flex: 0 0 80%;
        min-width: 240px;
        max-width: 320px;
        scroll-snap-align: start;
    }

    /* Keep the connector line short inside the scroll gap */
    .vb-workflow__step:not(:last-child)::after {
        right: -0.75rem;
        width: 1.5rem;
    }
}