

/* Start:/local/components/custom/block.banner.img/templates/.default/style.css?17915414827191*/
.banner-block-wrapper {
    width: 100%;
}

/* ===== ОБЫЧНЫЙ БАННЕР ===== */
.banner-item {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Видеофон для обычного баннера */
.banner-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.banner-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 480px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Расположение элементов внутри обычного баннера */
.banner-overlay.banner-align-left {
    justify-content: flex-start;
}
.banner-overlay.banner-align-center {
    justify-content: center;
}
.banner-overlay.banner-align-right {
    justify-content: flex-end;
}

.banner-content {
    color: #ffffff;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.banner-align-left .banner-content {
    text-align: left;
    margin: 0;
}
.banner-align-center .banner-content {
    text-align: center;
    margin: 0 auto;
}
.banner-align-right .banner-content {
    text-align: right;
    margin: 0 0 0 auto;
}

.banner-title {
    font-size: 56px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 16px 0;
    line-height: 1.1;
    color: #ffffff;
}
.banner-description {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .banner-item, 
    .banner-overlay {
        min-height: 320px;
    }
    
    .banner-title {
        font-size: 32px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    .banner-description {
        font-size: 16px;
    }
}

/* ===== HEADER-БАННЕР (hero), TYPE_BANNER = header ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background-color: #1a1f2e;
    border-radius: 14px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(14, 18, 28, 0.82) 0%,
        rgba(14, 18, 28, 0.60) 50%,
        rgba(14, 18, 28, 0.35) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    padding-left: clamp(30px, 5vw, 80px);
}

.hero__title {
    color: #ffffff;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    max-width: 700px;
}
.banner-carousel__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    will-change: transform;
    transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translate3d(0, 0, 0);
}

.hero__description {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 400;
    line-height: 1.55;
    max-width: 580px;
    margin-bottom: 8px;
}

.hero__price {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 400;
    line-height: 1.55;
    max-width: 580px;
    margin-bottom: 30px;
}

.hero__price strong {
    font-weight: 600;
    color: #ffffff;
}

/* Выравнивание элементов в HEADER-баннере (hero) */

/* Слева */
.hero.hero--align-left {
    justify-content: flex-start;
}
.hero.hero--align-left .hero__content {
    text-align: left;
    margin: 0 auto;
}
.hero.hero--align-left .hero__title,
.hero.hero--align-left .hero__description,
.hero.hero--align-left .hero__price {
    margin-left: 0;
    margin-right: auto;
}

/* По центру */
.hero.hero--align-center {
    justify-content: center;
}
.hero.hero--align-center .hero__content {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}
.hero.hero--align-center .hero__title,
.hero.hero--align-center .hero__description,
.hero.hero--align-center .hero__price {
    margin-left: auto;
    margin-right: auto;
}

/* Справа */
.hero.hero--align-right {
    justify-content: flex-end;
}
.hero.hero--align-right .hero__content {
    text-align: right;
    margin: 0 auto;
}
.hero.hero--align-right .hero__title,
.hero.hero--align-right .hero__description,
.hero.hero--align-right .hero__price {
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 768px) {
    .hero { min-height: 440px; }
    .hero__content { padding: 40px 24px; }
    .hero__btn { padding: 14px 30px; font-size: 15px; }
}

@media (max-width: 480px) {
    .hero { min-height: 400px; }
    .hero__content { padding: 32px 16px; }
    .hero__overlay {
        background: linear-gradient(90deg, rgba(14, 18, 28, 0.88) 0%, rgba(14, 18, 28, 0.70) 100%);
    }
}

/* ===== КАРУСЕЛЬ (несколько элементов в разделе) ===== */
.banner-block-wrapper--carousel {
    position: relative;
}

.banner-carousel {
    position: relative;
    width: 100%;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.banner-carousel__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.banner-carousel__viewport:active {
    cursor: grabbing;
}

.banner-carousel__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    will-change: transform;
    transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translate3d(0, 0, 0);
}
.banner-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Точки */
.banner-carousel__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.banner-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.banner-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.45);
}

.banner-carousel__dot.is-active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .banner-carousel__dots {
        bottom: 14px;
        gap: 8px;
    }

    .banner-carousel__dot {
        width: 8px;
        height: 8px;
    }
}
/* End */


/* Start:/local/components/custom/block.video/templates/.default/style.css?17915414834166*/
.video-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols-count, 1), 1fr);
    gap: 25px;
}

/* Стили для случая, когда видео одно */
.video-grid--single {
    display: flex;
    justify-content: center;
}
.video-grid--single .video-column {
    width: 100%;
    max-width: 800px; /* Комфортная ширина для одного видео */
}

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

.video-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Не считаем layout/paint для карточек за пределами экрана —
       заметно ускоряет рендер страницы со 100+ видео */
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/* Выделенный блок для заголовка над видео */
.video-header-top {
    padding: 15px 20px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}
.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

/* Блок описания */
.video-text {
    padding: 12px 20px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    flex-shrink: 0;
}
.video-text--top {
    border-bottom: 1px solid #e5e5e5;
}
.video-text--bottom {
    border-top: 1px solid #e5e5e5;
}

.video-container {
    width: 100%;
    background: linear-gradient(145deg, #1c1c1c 0%, #2a2a2a 100%);
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.video-container.video-container--started video {
    cursor: auto; /* после запуска — обычные controls видео сами меняют курсор */
}

/* Иконка play в стиле "liquid glass": матовое полупрозрачное стекло с бликом */
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22),
        inset 0 1px 1px rgba(255, 255, 255, 0.85),
        inset 0 -8px 12px rgba(0, 0, 0, 0.06);
    pointer-events: none; /* клики проходят сквозь неё прямо в <video> */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.video-play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 2px; /* оптическая центровка треугольника */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.video-container:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.26),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -8px 12px rgba(0, 0, 0, 0.07);
}
.video-container video {
    cursor: pointer; /* кликабельно и до, и после запуска — controls'ов больше нет */
}

.video-container.is-playing .video-play-icon {
    display: none;
}
.video-container.video-container--started video {
    cursor: auto;
}
.video-container:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .video-item {
        contain-intrinsic-size: 0 300px; /* уже, но и колонка одна — компромисс под 16:9 */
    }
}
/* End */


/* Start:/local/components/custom/block.audio.color.text/templates/.default/style.css?179154148220920*/
:root {
    --ref-bg: #fcfcfc;
    --ref-border: rgba(255, 255, 255, 0.25);
    --ref-accent: #1db3f4;
    --ref-radius: 16px;
    --glass-specular: rgba(255, 255, 255, 0.4);
}
.reference-container {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
/* Сетка карточек */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols-count, 3), minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
/* Если во всём инфоблоке только 1 элемент — не растягиваем его на всю ширину
   грида (иначе карточка выходит слишком широкой/приплюснутой), а показываем
   одну карточку нормальной ширины по центру контейнера */
.reference-grid.reference-grid--single {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: clamp(280px, 33vw, 420px);
    margin: 0 auto;
}
.reference-grid.reference-grid--single .reference-column {
    width: 100%;
}
.reference-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Если у карточки типа audio нет картинки */
.reference-card.reference-card--no-image {
    height: auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.reference-card.reference-card--no-image .reference-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}
/* Центрируем контент, когда кнопки нет */
.reference-card.reference-card--no-image .reference-card__body:not(:has(.reference-card__btn-wrap)) {
    justify-content: center;
    align-items: center;
}
/* Когда только картинка */
.reference-card--image-only .reference-card__body {
    display: none;
}
.reference-card__image-box--tall {
    aspect-ratio: 4 / 3;
}
/* Только текст */
.reference-card--text-only {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
}
.reference-card--text-only .reference-card__body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    text-align: center;
}
.reference-card--text-only .reference-card__desc {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
}
@media (max-width: 560px) {
    .reference-card__image-box--tall {
        aspect-ratio: 5 / 4;
    }
}
/* Автоматическая контрастность */
.reference-card.theme-light {
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --player-bg: rgba(0, 0, 0, 0.06);
    --player-text: #2c2c2c;
    --glass-glow: rgba(0, 0, 0, 0.03);
    border: 1px solid #e1e4e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.reference-card.theme-dark {
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --player-bg: rgba(255, 255, 255, 0.15);
    --player-text: #ffffff;
    --glass-glow: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.reference-card {
    border-radius: var(--ref-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 0;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: box-shadow;
    box-sizing: border-box;
}
.reference-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.reference-card.theme-light:hover {
    border-color: #d1d5db;
}
/* Контейнер картинки / SVG */
.reference-card__image-box {
    width: 100%;
    aspect-ratio: 16 / 10;          /* чуть мягче, чем 1.62 — меньше жёсткой обрезки */
    overflow: hidden;
    background: transparent;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--ref-border);
    position: relative;
}
.reference-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    transition: opacity 300ms, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
/* Фото / обложки (audio_image) — cover, но с более высоким боксом,
   чтобы меньше резало важные части */
.reference-card__image-box--photo {
    aspect-ratio: 16 / 11;
}
/* Натуральный размер — логотипы, иконки, SVG.
   Фиксированная высота зоны + contain, чтобы все карточки
   были примерно одного визуального уровня и ничего не раздувалось. */
.reference-card__image-box--natural {
    aspect-ratio: auto !important;
    height: auto;
    min-height: 120px;
    max-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    box-sizing: border-box;
    border-bottom: none;
}
.reference-card__image-box--natural .reference-card__image {
    width: auto !important;
    height: auto !important;
    max-width: var(--natural-img-max-w, 110%);
    max-height: var(--natural-img-max-h, 150%);
    object-fit: contain !important;
    transform: none !important; /* без hover-zoom у логотипов */
}
/* SVG-иконки / инлайн SVG */
.reference-card__svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.reference-card__svg svg {
    width: auto;
    height: auto;
    max-width: var(--natural-svg-max, 72px);
    max-height: var(--natural-svg-max, 72px);
    display: block;
}
.reference-card__image-box--natural .reference-card__svg svg {
    max-width: var(--natural-svg-max, 80px);
    max-height: var(--natural-svg-max, 80px);
}
@media (max-width: 560px) {
    .reference-card__image-box--natural {
        min-height: 100px;
        max-height: 140px;
        padding: 20px 16px;
    }
    .reference-card__image-box--natural .reference-card__image {
        max-height: var(--natural-img-max-h-mobile, 72px);
    }
    .reference-card__svg svg,
    .reference-card__image-box--natural .reference-card__svg svg {
        max-width: 64px;
        max-height: 64px;
    }
}
.reference-card__image.lazyloaded {
    transition: opacity 300ms, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Hover-zoom только у фото, не у логотипов/иконок */
.reference-card:hover .reference-card__image-box:not(.reference-card__image-box--natural) .reference-card__image {
    transform: scale(1.04);
}
/* Тело карточки */
.reference-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
    box-sizing: border-box;
}
.reference-card__content-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reference-card__audio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}
.modern-player {
    margin: 0;
}
/* КНОПКА ДЕЙСТВИЯ */
.reference-card .reference-card__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    background-color: var(--ref-accent) !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
.reference-card .reference-card__btn:hover {
    background-color: #008ecb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 162, 232, 0.2) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}
.reference-card .reference-card__btn:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}
.theme-dark .reference-card__btn {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}
.theme-dark .reference-card__btn:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    color: #1a1a1a !important;
}
/* ========== Позиционирование элементов ========== */

/* Текст сверху — текст + плеер идут компактно друг за другом */
.reference-card__body.text-top {
    justify-content: flex-start !important;
}

.reference-card__body.text-top .reference-card__content-top {
    order: 1;
}

.reference-card__body.text-top .reference-card__audio-list {
    order: 2;
    margin-top: 0 !important;   /* ← главное: не даём уехать вниз */
}

.reference-card__body.text-top .reference-card__btn-wrap {
    order: 3;
    margin-top: auto;
}

/* Текст снизу */
.reference-card__body.text-bottom .reference-card__audio-list {
    order: 1;
}

.reference-card__body.text-bottom .reference-card__content-top {
    order: 2;
}

.reference-card__body.text-bottom .reference-card__btn-wrap {
    order: 3;
    margin-top: auto;
}
/* Описание */
.reference-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}
/* ========== СТИЛЬ ПЛЕЕРОВ ========== */
.modern-player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.theme-dark .modern-player {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modern-player__play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ref-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, background-color 0.2s;
}
.modern-player__play-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
}
.modern-player__play-btn svg {
    width: 14px;
    height: 14px;
}
/* Ползунки */
.modern-player__timeline,
.modern-player__volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.15);
    outline: none;
    cursor: pointer;
    transition: background 0.1s ease;
}
.theme-dark .modern-player__timeline,
.theme-dark .modern-player__volume-slider {
    background: rgba(255, 255, 255, 0.2);
}
.modern-player__timeline::-webkit-slider-thumb,
.modern-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ref-accent);
    transition: transform 0.15s ease;
    border: none;
}
.modern-player__timeline:hover::-webkit-slider-thumb,
.modern-player__volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}
.modern-player__timeline::-moz-range-thumb,
.modern-player__volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: var(--ref-accent);
    transition: transform 0.15s ease;
}
.modern-player__timeline {
    flex-grow: 1;
    min-width: 0;
    width: auto;
}
.modern-player__volume-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.modern-player__volume-slider {
    width: 40px;
    flex-shrink: 0;
}
.modern-player__volume-icon {
    color: #2c2c2c;
    font-size: 12px;
    user-select: none;
    opacity: 0.7;
}
.theme-dark .modern-player__volume-icon {
    color: #ffffff;
}
.modern-player__time {
    font-size: 11px;
    color: #2c2c2c;
    min-width: max(48px, 4.5ch);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}
.theme-dark .modern-player__time {
    color: #ffffff;
}
/* Иконка скачивания */
.modern-player__download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #1db3f4;
    opacity: 1;
    transition: color 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    margin-left: 2px;
}
.modern-player__download:hover {
    color: #008ecb;
}
.modern-player__download svg {
    width: 16px;
    height: 16px;
}
.theme-dark .modern-player__download {
    color: #1db3f4;
}
.theme-dark .modern-player__download:hover {
    color: #008ecb;
}
/* Режим text_button */
.body-text-button {
    justify-content: center;
    gap: 0 !important;
}
.text-button-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
}
.modern-player.mini-play-only {
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-shrink: 0;
    overflow: visible;
}
.modern-player.mini-play-only .modern-player__play-btn {
    width: 40px;
    height: 40px;
}
.modern-player.mini-play-only .modern-player__play-btn svg {
    width: 16px;
    height: 16px;
}
/* Кнопка всегда внизу */
.reference-card__btn-wrap {
    order: 99 !important;
    margin-top: auto !important;
    padding-top: 16px;
    width: 100%;
    text-align: center;
    flex-shrink: 0;
}
.reference-card__btn-wrap .red-main-button-banner,
.reference-card__btn-wrap .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    margin: 0 auto;
}
/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 1440px) {
    .modern-player__volume-slider {
        display: none !important;
    }
}
@media (max-width: 1300px) {
    .modern-player__volume-wrapper {
        display: none !important;
    }
}
@media (max-width: 1199px) {
    .reference-grid {
        gap: 20px;
    }
    .reference-card__body {
        padding: 20px;
    }
    .modern-player__timeline {
        display: none !important;
    }
    .modern-player {
        justify-content: space-between;
    }
}
@media (max-width: 991px) {
    .reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .reference-card.reference-card--no-image {
        align-self: stretch;
    }
    .modern-player__timeline {
        display: block !important;
    }
}
@media (max-width: 768px) {
    .reference-card__body {
        padding: 16px;
        gap: 12px;
    }
    .modern-player__volume-wrapper {
        display: none !important;
    }
    .modern-player {
        padding: 8px 10px;
    }
    .reference-card {
        height: auto;
    }
}
@media (max-width: 560px) {
    .reference-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .reference-grid.reference-grid--single {
        max-width: 100%;
    }

    /* Карточки не растягиваем по высоте колонки — фиксит смешанные типы на мобилке */
    .reference-card,
    .reference-card.reference-card--no-image,
    .reference-card--text-only,
    .reference-card--image-only {
        height: auto !important;
        flex: 0 0 auto;
        align-self: stretch;
    }

    .reference-card.reference-card--no-image {
        align-self: stretch;
        height: auto;
    }
    .reference-card__image-box {
        aspect-ratio: 16 / 10;
    }
    .reference-card__image-box--photo {
        aspect-ratio: 16 / 11;
    }
    .modern-player__volume-wrapper {
        display: flex !important;
    }
    .modern-player__volume-slider {
        display: none !important;
    }
    .modern-player__timeline {
        display: block !important;
    }
}
@media (max-width: 375px) {
    .reference-card__body {
        padding: 12px;
    }
    .modern-player__volume-wrapper {
        display: none !important;
    }
    .modern-player__time {
        font-size: 10px;
        min-width: auto;
    }
    .text-button-row {
        gap: 10px;
    }
}

/* ==========================================================================
   ШИРОКИЕ КАРТОЧКИ (TEXT_POSITION = left / right)
   Карточка на всю ширину, COLUMN_INDEX игнорируется.
   Слева/справа — блок «картинка + аудио», с другой стороны — текст.
   Настройка размеров через переменные:
     --wide-media-w     ширина колонки «картинка + плеер»
     --wide-img-max-w   максимальная ширина картинки внутри неё
   ========================================================================== */
.reference-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.reference-rows > .reference-grid,
.reference-rows > .reference-wide {
    width: 100%;
    min-width: 0;
}
.reference-wide {
    --wide-media-w: 260px;
    --wide-img-max-w: 160px;
    display: flex;
    flex-direction: column;
}

.reference-card.reference-card--wide {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    padding: 24px;
    width: 100%;
}
/* Текст слева — медиа-блок уезжает вправо */
.reference-card.reference-card--text-left {
    flex-direction: row-reverse;
}

/* Колонка: картинка + плеер */
.reference-card--wide .reference-card__media {
    flex: 0 0 var(--wide-media-w, 260px);
    width: var(--wide-media-w, 260px);
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.reference-card--wide .reference-card__media .reference-card__audio-list {
    width: 100%;
}

/* Картинка — без обрезки, компактно, по центру колонки */
.reference-card--wide .reference-card__image-box {
    aspect-ratio: auto !important;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reference-card--wide .reference-card__image-box .reference-card__image {
    width: auto !important;
    height: auto !important;
    max-width: var(--wide-img-max-w, 160px) !important;
    max-height: 260px !important;
    object-fit: contain !important;
    transform: none !important;
}
.reference-card--wide .reference-card__image-box a {
    display: flex;
    justify-content: center;
}
.reference-card--wide .reference-card__svg svg {
    max-width: var(--natural-svg-max, 80px);
    max-height: var(--natural-svg-max, 80px);
}

/* Плеер в узкой колонке: таймлайн виден всегда, ползунок громкости скрыт */
.reference-card--wide .modern-player__timeline {
    display: block !important;
}
.reference-card--wide .modern-player__volume-slider {
    display: none !important;
}
.reference-card--wide .modern-player__volume-wrapper {
    display: flex !important;
}

/* Текст + кнопка */
.reference-card--wide .reference-card__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    justify-content: center;
    text-align: left;
}
.reference-card--wide .reference-card__desc {
    font-size: 15px;
}
.reference-card--wide .reference-card__btn-wrap {
    margin-top: 0 !important;
    padding-top: 0;
    width: auto;
    text-align: left;
}
.reference-card--wide .reference-card__btn-wrap .red-main-button-banner,
.reference-card--wide .reference-card__btn-wrap .btn {
    margin: 0;
}

/* Планшеты и мобильные: колонки схлопываются, сначала медиа, затем текст */
@media (max-width: 768px) {
    .reference-card.reference-card--wide,
    .reference-card.reference-card--text-left {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    .reference-card--wide .reference-card__media {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* End */


/* Start:/local/components/custom/block.audio.portfolio/templates/.default/style.css?17915414828909*/
:root {
    --ref-bg: #fcfcfc;
    --ref-border: rgba(255, 255, 255, 0.25);
    --ref-accent: #1db3f4;
    --ref-radius: 16px;
    --badge-bg: #e74b40;
}

.audio-examples-section { 
    padding: 20px 0; 
}

.audio-item__title {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    padding-left: 12px;
    line-height: 1.3;
}

/* ========== СЕТКА ========== */
.audio-grid { 
    display: grid; 
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 30px; 
    align-items: stretch;
    width: 100%;
}

.audio-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ========== КАРТОЧКА ========== */
.pricing-card {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #e1e4e8;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
}

/* ========== ШАПКА ========== */
.pricing-card__header {
    text-align: center;
    padding: 30px 30px 20px;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pricing-card__header--custom {
    color: #ffffff;
}

.pricing-card__header--custom .pricing-card__title,
.pricing-card__header--custom .pricing-card__description {
    color: #ffffff;
}

.pricing-card__picture {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card__picture img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pricing-card__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.pricing-card__description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #555;
}

/* ========== ТЕЛО ========== */
.pricing-card__body {
    padding: 0 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ========== БЭЙДЖ ========== */
.pricing-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--badge-bg);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 18px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 14px;
    z-index: 5;
    line-height: 1;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.12);
}

/* ========== ЦЕНА ========== */
.pricing-card__price {
    width: 100%;
    text-align: center;
    margin: 20px 0 15px;
}

.pricing-card__amount {
    font-size: 48px;
    font-weight: 800;
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
}

.pricing-card__currency {
    font-size: 0.55em;
    vertical-align: middle;
    font-weight: 600;
    margin-left: 3px;
}

.pricing-card__old-price {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
    white-space: nowrap;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 15px auto 20px;
    display: table;
    text-align: left;
}

.pricing-card__features li {
    padding: 6px 0 6px 28px !important;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.pricing-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--ref-accent);
    border-radius: 2px;
}

.audio-column__divider { 
    height: 1px; 
    background: #e0e0e0; 
    margin: 15px 0 20px 0; 
    width: 100%;
}

.audio-item { 
    margin-bottom: 12px; 
    display: flex; 
    flex-direction: column; 
    width: 100%;
    min-width: 0;
}

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

/* ========== ПЛЕЕР ========== */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.custom-audio-player__play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ref-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, background-color 0.2s;
}

.custom-audio-player__play-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.custom-audio-player__play-btn svg { 
    width: 14px; 
    height: 14px; 
}

.custom-audio-player__timeline,
.custom-audio-player__volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--ref-accent) 0%, var(--ref-accent) 0%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%);
    outline: none;
    cursor: pointer;
}

.custom-audio-player__timeline::-webkit-slider-thumb,
.custom-audio-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ref-accent);
    transition: transform 0.15s ease;
    border: none;
}

.custom-audio-player__timeline:hover::-webkit-slider-thumb,
.custom-audio-player__volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.custom-audio-player__timeline::-moz-range-thumb,
.custom-audio-player__volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: var(--ref-accent);
    transition: transform 0.15s ease;
}

.custom-audio-player__timeline {
    flex-grow: 1;
    min-width: 0;
    width: 0;
}

.custom-audio-player__volume-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    flex-shrink: 0;
}

.custom-audio-player__volume-slider { 
    width: 40px; 
    flex-shrink: 0;
}

.custom-audio-player__volume-icon { 
    color: #2c2c2c; 
    font-size: 12px; 
    user-select: none; 
    opacity: 0.7; 
    cursor: pointer;
}

.custom-audio-player__time {
    font-size: 11px;
    color: #2c2c2c;
    min-width: max(48px, 4.5ch);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========== ПРОМО-ПОДПИСЬ ========== */
.promo-note {
    margin-top: 30px;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.promo-note span {
    color: var(--ref-accent);
    font-weight: 600;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1440px) {
    .custom-audio-player__volume-slider {
        display: none !important;
    }
}

@media (max-width: 1250px) {
    .custom-audio-player__volume-wrapper {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .audio-grid { 
        gap: 20px; 
    }
    
    .pricing-card__header { 
        padding: 20px 20px 15px; 
    }
    
    .pricing-card__body { 
        padding: 0 20px 20px; 
    }
    
    .pricing-card__title { 
        font-size: 20px; 
    }
    
    .pricing-card__description { 
        font-size: 13px; 
    }
    
    .pricing-card__amount { 
        font-size: 36px; 
    }
    
    .custom-audio-player {
        justify-content: space-between;
    }
}

/* Планшеты — максимум 2 колонки */
@media (max-width: 992px) {
    .audio-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 24px; 
    }
    
    .pricing-card__header { 
        padding: 24px 24px 15px; 
    }
    
    .pricing-card__body { 
        padding: 0 24px 24px; 
    }
    
    .pricing-card__amount { 
        font-size: 40px; 
    }
}

/* Мобилки — 1 колонка */
@media (max-width: 640px) {
    .audio-grid { 
        grid-template-columns: minmax(0, 1fr) !important; 
        gap: 20px; 
    }
    
    .pricing-card__header { 
        padding: 20px 15px 15px; 
    }
    
    .pricing-card__body { 
        padding: 0 15px 20px; 
    }
    
    .pricing-card__title { 
        font-size: 20px; 
    }
    
    .pricing-card__amount { 
        font-size: 32px; 
    }
    
    .pricing-card__description { 
        font-size: 13px; 
    }
    
    .pricing-card__features li {
        font-size: 13px;
        padding-left: 24px !important;
    }
    
    .custom-audio-player__volume-wrapper {
        display: none !important;
    }
}
/* End */


/* Start:/local/components/custom/block.custom.banner.action/templates/.default/style.css?17915414825304*/
/* ==========================================================================
   1. БАННЕР WAVES (b-waves-*)
   ========================================================================== */
.b-waves-section {
    padding: 60px 0 110px;
    position: relative;
    overflow: hidden;
    min-height: 460px;
}

.b-waves-canvas-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    max-height: 220px;
    pointer-events: none;
    z-index: 1;
}

.b-waves-canvas-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.b-waves-container {
    position: relative;
    z-index: 3;
    padding: 0 30px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.b-waves-grid {
    display: grid;
    grid-template-columns: 1fr 340px 1fr;
    gap: 40px;
    align-items: center;
}

.b-waves-left {
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.b-waves-right {
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
}

.b-waves-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 80px;
    min-height: 200px;
}

.b-waves-logo {
    position: relative;
    width: 100%;
    /* Увеличиваем максимальную ширину (было 300px) */
    max-width: 450px; 
    /* Фиксируем максимальную высоту, чтобы лого не растягивало весь баннер */
    max-height: 180px; 
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 6s ease-in-out infinite;
}

.b-waves-logo svg,
.b-waves-logo img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    display: block;
    object-fit: contain; /* Сохраняет пропорции без искажений */
    filter: drop-shadow(0 12px 35px rgba(29,179,244,0.35));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-waves-text-block {
    line-height: 1.75;
    max-width: 420px;
}

/* ==========================================================================
   2. БАННЕР RIPPLE (b-ripple-*)
   ========================================================================== */
.b-ripple-section {
    border-radius: 10px;
    background: #000000;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    padding: 60px 20px;
}

.b-ripple-canvas-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.b-ripple-canvas-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Круги Ряби */
.b-ripple-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.b-ripple-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(29, 179, 244, 0.3);
    animation: rippleEffect 8s ease-out infinite;
    opacity: 0;
}

.b-ripple-circle:nth-child(1) { width: 100px; height: 100px; top: 20%; left: 15%; animation-delay: 0s; }
.b-ripple-circle:nth-child(2) { width: 150px; height: 150px; top: 60%; left: 75%; animation-delay: 2s; }
.b-ripple-circle:nth-child(3) { width: 120px; height: 120px; top: 40%; left: 85%; animation-delay: 4s; }
.b-ripple-circle:nth-child(4) { width: 180px; height: 180px; top: 70%; left: 25%; animation-delay: 3s; }
.b-ripple-circle:nth-child(5) { width: 130px; height: 130px; top: 30%; left: 50%; animation-delay: 5s; }

.b-ripple-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.b-ripple-content {
    text-align: center;
    max-width: 900px;
}

.b-ripple-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.2;
    color: #ffffff;
}

.b-ripple-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 30px 0;
    line-height: 1.4;
    color: #ffffff;
}

.b-ripple-description {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto 40px;
    max-width: 800px;
    color: #ffffff;
}

.b-ripple-contacts {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.b-ripple-phone {
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: 1px;
}

.b-ripple-email {
    font-size: 16px;
    text-decoration: none;
    color: #ffffff;
}

/* Анимации */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rippleEffect {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
}

/* Адаптив */
@media (max-width: 1024px) {
    .b-waves-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .b-waves-left, .b-waves-right {
        justify-content: center;
        padding: 0;
    }
    .b-ripple-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .b-ripple-title { font-size: 28px; }
    .b-ripple-subtitle { font-size: 18px; }
    .b-ripple-phone { font-size: 24px; }
}
/* End */


/* Start:/local/components/custom/block.img.text/templates/.default/style.css?179154148210200*/
/* ==========================================
   БАЗОВЫЕ СТИЛИ
   ========================================== */
.flexible-block {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.flexible-block__container {
    width: 100%;
    margin: 0 auto;
}
/* ==========================================
   СЕТКА ДЛЯ НЕСКОЛЬКИХ ЭЛЕМЕНТОВ В РАЗДЕЛЕ
   ========================================== */
.custom-blocks-wrapper--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* максимум 2 в ряд */
    gap: 40px;
}

@media (max-width: 768px) {
    .custom-blocks-wrapper--grid {
        grid-template-columns: 1fr; /* на мобильных — по одному */
    }
}

/* чтобы карточки одинаковой высоты хорошо смотрелись в сетке */
.custom-blocks-wrapper--grid .flexible-block {
    height: 100%;
}

.custom-blocks-wrapper--grid .flexible-block__container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-blocks-wrapper--grid .flexible-block__body {
    flex: 1 1 auto;
}

.flexible-block__title {
    margin-bottom: 28px;
    text-align: center; /* заголовок всегда по центру */
}

.flexible-block__body {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.flexible-block__text {
    font-size: 16px;
    line-height: 1.65;
}

.flexible-block__image {
    display: flex;
    flex-shrink: 0;
}

.flexible-block__image-item {
    width: 100%;
}

/* Картинка / видео */
.flexible-block__image-link,
.flexible-block__image-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
}

.flexible-block__image img,
.flexible-block__video {
    width: 100%;
    max-width: 420px;
    max-height: 480px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    transition: transform 0.35s ease;
}

.flexible-block__image-link:hover img,
.flexible-block__image-wrapper:hover img {
    transform: scale(1.04);
}

/* ==========================================
   ПОЗИЦИЯ (IMAGE_POS)
   ========================================== */

/* СЛЕВА */
.flexible-block.img-pos-left .flexible-block__body {
    flex-direction: row-reverse;
}
.flexible-block.img-pos-left .flexible-block__image {
    flex: 0 0 400px;
    max-width: 38%;
}
.flexible-block.img-pos-left .flexible-block__image img,
.flexible-block.img-pos-left .flexible-block__video {
    max-width: 100%;
}

/* СПРАВА */
.flexible-block.img-pos-right .flexible-block__body {
    flex-direction: row;
}
.flexible-block.img-pos-right .flexible-block__image {
    flex: 0 0 400px;
    max-width: 38%;
}
.flexible-block.img-pos-right .flexible-block__image img,
.flexible-block.img-pos-right .flexible-block__video {
    max-width: 100%;
}

/* СВЕРХУ */
.flexible-block.img-pos-top .flexible-block__body {
    flex-direction: column-reverse;
    gap: 28px;
}
.flexible-block.img-pos-top .flexible-block__image {
    width: 100%;
}
.flexible-block.img-pos-top .flexible-block__image-item {
    max-width: 720px;
}
.flexible-block.img-pos-top .flexible-block__video {
    max-width: 720px;
}

/* СНИЗУ */
.flexible-block.img-pos-bottom .flexible-block__body {
    flex-direction: column;
    gap: 28px;
}
.flexible-block.img-pos-bottom .flexible-block__image {
    width: 100%;
}
.flexible-block.img-pos-bottom .flexible-block__image-item {
    max-width: 720px;
}
.flexible-block.img-pos-bottom .flexible-block__video {
    max-width: 720px;
}

/* ==========================================
   ВЫРАВНИВАНИЕ (IMAGE_ALIGN)
   ========================================== */

/* ----- left / right ----- */
.flexible-block.img-pos-left.img-align-left .flexible-block__body,
.flexible-block.img-pos-right.img-align-left .flexible-block__body {
    justify-content: flex-start;
}
.flexible-block.img-pos-left.img-align-left .flexible-block__text,
.flexible-block.img-pos-right.img-align-left .flexible-block__text {
    flex: 1 1 auto;
}

.flexible-block.img-pos-left.img-align-center .flexible-block__body,
.flexible-block.img-pos-right.img-align-center .flexible-block__body {
    justify-content: center;
}
.flexible-block.img-pos-left.img-align-center .flexible-block__text,
.flexible-block.img-pos-right.img-align-center .flexible-block__text {
    flex: 0 1 auto;
    max-width: 480px; /* чтобы пара красиво центрировалась */
}

.flexible-block.img-pos-left.img-align-right .flexible-block__body,
.flexible-block.img-pos-right.img-align-right .flexible-block__body {
    justify-content: flex-end;
}
.flexible-block.img-pos-left.img-align-right .flexible-block__text,
.flexible-block.img-pos-right.img-align-right .flexible-block__text {
    flex: 0 1 auto;
    max-width: 480px;
}

/* ----- top / bottom ----- */
.flexible-block.img-pos-top .flexible-block__image,
.flexible-block.img-pos-bottom .flexible-block__image {
    justify-content: center;
}
.flexible-block.img-pos-top.img-align-left .flexible-block__image,
.flexible-block.img-pos-bottom.img-align-left .flexible-block__image {
    justify-content: flex-start;
}
.flexible-block.img-pos-top.img-align-center .flexible-block__image,
.flexible-block.img-pos-bottom.img-align-center .flexible-block__image {
    justify-content: center;
}
.flexible-block.img-pos-top.img-align-right .flexible-block__image,
.flexible-block.img-pos-bottom.img-align-right .flexible-block__image {
    justify-content: flex-end;
}

/* ==========================================
   КНОПКА
   ========================================== */
.flexible-block__action {
    margin-top: 28px;
    text-align: center;
}
.flexible-block__btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1db3f4;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.flexible-block__btn:hover {
    background-color: #1693cb;
    color: #fff;
}

/* ==========================================
   АДАПТИВ
   ========================================== */
@media (max-width: 900px) {
    .flexible-block.img-pos-left .flexible-block__image,
    .flexible-block.img-pos-right .flexible-block__image {
        flex: 0 0 340px;
        max-width: 42%;
    }
}

@media (max-width: 768px) {
    .flexible-block__body {
        gap: 24px;
    }

    .flexible-block.img-pos-left .flexible-block__body,
    .flexible-block.img-pos-right .flexible-block__body {
        flex-direction: column-reverse;
        justify-content: flex-start !important;
    }

    .flexible-block.img-pos-left .flexible-block__image,
    .flexible-block.img-pos-right .flexible-block__image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .flexible-block.img-pos-left .flexible-block__text,
    .flexible-block.img-pos-right .flexible-block__text {
        flex: 1 1 auto !important;
        max-width: 100% !important;
    }

    .flexible-block.img-pos-top .flexible-block__image-item,
    .flexible-block.img-pos-bottom .flexible-block__image-item,
    .flexible-block.img-pos-top .flexible-block__video,
    .flexible-block.img-pos-bottom .flexible-block__video {
        max-width: 100%;
    }
}
/* ===== Точное центрирование при top / bottom ===== */
.flexible-block.img-pos-top .flexible-block__image,
.flexible-block.img-pos-bottom .flexible-block__image {
    display: flex;
    width: 100%;
}

.flexible-block.img-pos-top .flexible-block__image-item,
.flexible-block.img-pos-bottom .flexible-block__image-item {
    width: auto;               /* важно! убираем 100% */
    max-width: 720px;
    margin: 0;                 /* на всякий случай */
}
/* Базовый размер SVG */
.flexible-block__svg {
    max-width: 160px;
    max-height: 160px;
}

/* Когда картинка слева или справа — чуть побольше */
.flexible-block.img-pos-left .flexible-block__svg,
.flexible-block.img-pos-right .flexible-block__svg {
    max-width: 200px;
    max-height: 200px;
}

/* Когда сверху/снизу — можно ещё меньше */
.flexible-block.img-pos-top .flexible-block__svg,
.flexible-block.img-pos-bottom .flexible-block__svg {
    max-width: 140px;
    max-height: 140px;
}
/* Выравнивание */
.flexible-block.img-pos-top.img-align-left .flexible-block__image,
.flexible-block.img-pos-bottom.img-align-left .flexible-block__image {
    justify-content: flex-start;
}

.flexible-block.img-pos-top.img-align-center .flexible-block__image,
.flexible-block.img-pos-bottom.img-align-center .flexible-block__image {
    justify-content: center;
}

.flexible-block.img-pos-top.img-align-right .flexible-block__image,
.flexible-block.img-pos-bottom.img-align-right .flexible-block__image {
    justify-content: flex-end;
}

/* Картинка внутри тоже не растягивается лишнего */
.flexible-block.img-pos-top .flexible-block__image img,
.flexible-block.img-pos-bottom .flexible-block__image img,
.flexible-block.img-pos-top .flexible-block__video,
.flexible-block.img-pos-bottom .flexible-block__video {
    max-width: 100%;
    width: auto;
    margin: 0 auto;            /* дополнительная страховка */
}
/* Текст всегда как в HTML — не центрируем его */
.flexible-block__text {
    text-align: left;          /* или start */
    text-align: start;
}

.flexible-block__text * {
    text-align: inherit;       /* сохраняем выравнивание, которое задано внутри HTML */
}

/* На всякий случай — убираем центрирование с body и container */
.flexible-block.img-align-center .flexible-block__body,
.flexible-block.img-align-center .flexible-block__container {
    text-align: left;
    text-align: start;
}

/* Заголовок можно оставить по центру (если нужно) */
.flexible-block__title {
    text-align: center;
}
/* End */
/* /local/components/custom/block.banner.img/templates/.default/style.css?17915414827191 */
/* /local/components/custom/block.video/templates/.default/style.css?17915414834166 */
/* /local/components/custom/block.audio.color.text/templates/.default/style.css?179154148220920 */
/* /local/components/custom/block.audio.portfolio/templates/.default/style.css?17915414828909 */
/* /local/components/custom/block.custom.banner.action/templates/.default/style.css?17915414825304 */
/* /local/components/custom/block.img.text/templates/.default/style.css?179154148210200 */
