/* ==========================================================================
   AUDIENCES — секция «Аудитории платформы»
   Слева — вкладки, справа — панели: текст + иллюстрация.
   Иллюстрация и пункты списка сменяются кроссфейдом при переключении.

   Токены берутся из глобальной темы (главный CSS сайта, блок :root):
   --color-lime / --color-primary  → акцент #C5FF41
   --color-primary-rgb             → 197, 255, 65
   --color-ink / --color-charcoal / --color-surface / --color-elevated
   --color-mist                    → основной текст #ECEEF2
   Шрифты: Urbanist (заголовки), Manrope (текст).
   У каждого var() есть fallback — файл работает и без глобальной темы.
   ========================================================================== */

/* ---------- локальные токены (скоуп .aud, глобальные не переопределяем) -- */
.aud {
    --aud-bg:          var(--color-ink, #0e0e0e);
    --aud-panel:       var(--color-charcoal, #191919);
    --aud-surface:     var(--color-surface, #1e1e1e);
    --aud-elevated:    var(--color-elevated, #2b2c2d);
    --aud-line:        rgba(255, 255, 255, 0.08);
    --aud-line-strong: rgba(255, 255, 255, 0.14);
    --aud-acc:         var(--color-primary, #c5ff41);
    --aud-acc-rgb:     var(--color-primary-rgb, 197, 255, 65);
    --aud-text:        var(--color-mist, #eceef2);
    --aud-body-text:   rgba(236, 238, 242, 0.88);
    --aud-muted:       var(--color-text-muted, #727373);
    --aud-dim:         #6f7070;
    --aud-radius-sm:   10px;
    --aud-radius:      12px;
    --aud-radius-lg:   16px;
    --aud-head:        "Urbanist", sans-serif;
    --aud-font:        "Manrope", "Urbanist", system-ui, sans-serif;

    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 48px var(--site-gutter, 15px) 20px;
    box-sizing: border-box;
    background-color: var(--color-dark, #191919);
    color: var(--aud-text);
    font-family: var(--aud-font);
}

.aud__frame {
    width: 100%;
    max-width: var(--site-content-max, 1503px);
    margin: 0 auto;
    padding: 36px 32px 32px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    box-sizing: border-box;
    border: 1px solid rgba(236, 238, 242, 0.18);
    border-radius: var(--radius-md, 16px);
    background:
        radial-gradient(ellipse 45% 60% at 70% 40%, rgba(var(--color-primary-rgb, 197, 255, 65), 0.06), transparent 68%),
        var(--color-dark, #191919);
}

.aud__heading {
    grid-column: 1 / -1;
    margin: 0 0 10px;
    color: var(--color-mist, #fff);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* скрытый спрайт (иконки вкладок, галочки, иллюстрации) */
.aud__sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   ВКЛАДКИ
   ========================================================================== */
.aud__tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aud__tab {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    font: 600 15px/1.3 var(--aud-head);
    letter-spacing: 0.01em;
    color: var(--aud-muted);
    background: var(--aud-panel);
    border: 1px solid var(--aud-line);
    border-radius: var(--aud-radius);
    transition:
        border-color 0.3s ease,
        color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    animation: aud-tab-in 0.5s ease backwards; /* backwards — не блокирует hover-transform */
}
.aud__tabs .aud__tab:nth-child(1) { animation-delay: 0.05s; }
.aud__tabs .aud__tab:nth-child(2) { animation-delay: 0.12s; }
.aud__tabs .aud__tab:nth-child(3) { animation-delay: 0.19s; }
.aud__tabs .aud__tab:nth-child(4) { animation-delay: 0.26s; }
.aud__tabs .aud__tab:nth-child(5) { animation-delay: 0.33s; }

.aud__tab:hover {
    border-color: var(--aud-line-strong);
    color: var(--aud-text);
    transform: translateX(4px);
}

.aud__tab:focus-visible {
    outline: 2px solid var(--aud-acc);
    outline-offset: 2px;
}

.aud__tab-icon {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--aud-dim);
    transition: color 0.3s ease;
}

.aud__tab-arrow {
    width: 16px;
    height: 16px;
    flex: none;
    margin-left: auto;
    color: var(--aud-dim);
    transform: rotate(-90deg); /* неактивная: стрелка вверх */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* активная вкладка — паттерн .hero-eco-card:hover из темы:
   лаймовая рамка, мягкая подсветка, тонкое кольцо-тень */
.aud__tab.is-active {
    background: linear-gradient(90deg, rgba(var(--aud-acc-rgb), 0.12), var(--aud-panel) 72%);
    border-color: rgba(var(--aud-acc-rgb), 0.55);
    color: var(--aud-text);
    box-shadow: 0 0 0 1px rgba(var(--aud-acc-rgb), 0.12);
    transform: none;
}
.aud__tab.is-active .aud__tab-icon,
.aud__tab.is-active .aud__tab-arrow {
    color: var(--aud-acc);
}
.aud__tab.is-active .aud__tab-arrow {
    transform: rotate(0deg); /* активная: стрелка вправо */
}

@keyframes aud-tab-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   ПАНЕЛИ — лежат стопкой в одной grid-ячейке: кроссфейд без скачков высоты
   ========================================================================== */
.aud__panes {
    display: grid;
    min-width: 0;
}

.aud__pane {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 0.95fr);
    gap: 40px;
    align-items: start;
    min-width: 0;
    opacity: 0;
    transform: translateY(14px);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0s 0.45s;
}

.aud__pane.is-active {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0s 0s;
}

/* панелями управляет класс .is-active; атрибут hidden не используем,
   чтобы не ломать стопку-кроссфейд (страховка на случай старого JS) */
.aud__pane[hidden] {
    display: grid;
}

/* ---------- контент панели ---------- */
.aud__title {
    margin: 0 0 12px;
    font: 700 clamp(22px, 2.2vw, 30px) / 1.15 var(--aud-head);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--aud-text);
}

.aud__lead {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--aud-muted);
}

.aud .aud__note.small.text-muted {
    margin: 15px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-text-muted-4, #b1b2b8) !important;
}

.aud__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* каскадный вход пунктов — паттерн .hero-glossary__item из темы */
.aud__item {
    display: flex;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--aud-body-text);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.aud__pane.is-active .aud__item {
    opacity: 1;
    transform: none;
}
.aud__pane.is-active .aud__item:nth-child(1) { transition-delay: 0.10s; }
.aud__pane.is-active .aud__item:nth-child(2) { transition-delay: 0.16s; }
.aud__pane.is-active .aud__item:nth-child(3) { transition-delay: 0.22s; }
.aud__pane.is-active .aud__item:nth-child(4) { transition-delay: 0.28s; }
.aud__pane.is-active .aud__item:nth-child(5) { transition-delay: 0.34s; }

.aud__item-icon {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 3px;
    color: var(--aud-acc);
}

/* ---------- изображение-заглушка ---------- */
.aud__ill {
    width: 80%;
    max-width: 300px;
    min-width: 0;
    justify-self: center;
    opacity: 0;
    transform: translateX(28px);
    transition:
        opacity 0.55s ease 0.05s,
        transform 0.55s ease 0.05s,
        filter 0.35s ease;
}
.aud__pane.is-active .aud__ill {
    opacity: 1;
    transform: none;
}
.aud__image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.aud__ill:hover .aud__image {
    transform: scale(1.04);
    filter: drop-shadow(0 0 18px rgba(var(--color-primary-rgb, 197, 255, 65), 0.35));
}

/* ==========================================================================
   АДАПТИВ — брейкпоинты темы: 1199.98 / 991.98 / 767.98 / 575.98
   ========================================================================== */
@media (max-width: 1199.98px) {
    .aud__frame {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .aud__tabs {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: var(--aud-elevated) transparent;
    }
    .aud__tab {
        min-width: 250px;
        scroll-snap-align: start;
    }
    .aud__tab:hover {
        transform: none; /* на тач-скролле сдвиг мешает */
    }
}

@media (max-width: 991.98px) {
    .aud {
        padding-top: 32px;
        padding-bottom: 16px;
    }
    .aud__frame {
        padding: 24px 16px 20px;
    }
    .aud__pane {
        gap: 28px;
    }
}

@media (max-width: 767.98px) {
    .aud__tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
    }
    .aud__tab {
        min-width: 0;
        padding: 12px;
        gap: 10px;
        align-items: flex-start;
    }
    .aud__tab > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .aud__tab-arrow {
        display: none;
    }
    .aud__pane {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .aud__ill {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .aud {
        padding-top: 28px;
        padding-bottom: 16px;
    }
    .aud__frame {
        padding: 20px 14px 18px;
    }
    .aud__tabs {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .aud__tab {
        min-width: 0;
        padding: 11px 9px;
        gap: 8px;
        font-size: 12px;
    }
    .aud__tab-icon {
        width: 18px;
        height: 18px;
    }
    .aud__title {
        font-size: 20px;
    }
    .aud__lead {
        font-size: 14px;
    }
    .aud__item {
        font-size: 13.5px;
    }
}

@media (max-width: 374.98px) {
    .aud__frame {
        padding: 16px 12px;
    }
    .aud__tabs {
        grid-template-columns: 1fr;
    }
    .aud__tab {
        min-height: 44px;
        padding: 12px;
        align-items: center;
        font-size: 13px;
    }
}

/* ==========================================================================
   НОВАЯ ВЕРСИЯ: СЕТКА 5 КАРТОЧЕК (4 в ряд + 5-я широкая под ними)
   (Код оставлен как копия — неактивен при таб-версии; .aud-cards grid
    используется только если в blade-е снова вернут карточки)
   ========================================================================== */
/* (old override for tabs disabled for original tabs-grid restored via grid-template-columns removed */

/* ---------- .aud-cards grid — АКТИВЕН внутри ВТОРОГО БЛОКА aud__frame--cards4 ---------- */
.aud__frame--cards4 {
    display: block !important;
    padding-top: 32px;
    padding-bottom: 32px;
}

/* -------- aud-step4: сетка 4 карточки-шага (паттерн steps-promo) -------- */
.aud-step4-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 22px;
    align-items: stretch;
}
.aud-step4-card--wide {
    /* 5-й блок 05 — НА ВСЮ ШИРИНУ сетки (как было изначально) + layout в ОДНУ СТРОКУ: 05 | А ТАКЖЕ: … */
    grid-column: 1 / -1;
    min-height: 112px;
    background: linear-gradient(180deg, rgba(24, 26, 29, 0.78), rgba(18, 20, 23, 0.82));
    backdrop-filter: blur(4px);
    /* flex-row = [бейдж 05 слева] [контент «А ТАКЖЕ: ...» справа] */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding: 20px 26px;
}
.aud-step4-card--wide::before { display: none !important; }
/* Wide-карточка: бейдж static-слева (не absolute-угол) — КРУПНЫЙ как на макете */
.aud-step4-card--wide .aud-step4-card__badge {
    position: static;
    width: 60px;
    height: 60px;
    font-size: 24px;
    font-weight: 900;
    flex: 0 0 auto;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
}
/* Контент wide-карточки: flex-row, заголовок + чипы в ОДНУ ЛИНИЮ */
.aud-step4-card--wide .aud-step4-card__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}
.aud-step4-card--wide .aud-step4-card__content::before { content: none; }
/* Внутри content один row05, который тоже nowrap */
.aud-step4-card__row05 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: start;
    gap: 18px 34px;
    width: 100%;
    min-width: 0;
}
.aud-step4-card__title--row05 {
    flex: 0 0 auto;
    font-size: clamp(16px, 1.35vw, 20px);
    letter-spacing: 0.05em;
    text-shadow: none;
    white-space: nowrap;
    margin: 0;
    font-weight: 900;
}
.aud-step4-card__chiprow05 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px 40px;
    flex: 1 1 auto;
    min-width: 0;
}
.aud-step4-card__chiprow05-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15.5px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
}
.aud-step4-card__check--row05 {
    margin-top: 0;
    width: 18px;
    height: 18px;
}
.aud-step4-card__list--wide {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 18px 28px;
    margin-top: 6px;
}
.aud-step4-card__list--wide .aud-step4-card__item {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}
.aud-step4-card__list--wide .aud-step4-card__check {
    width: 16px;
    height: 16px;
    margin-top: 1px;
}
.aud-step4-card {
    /* повтор .steps-promo__step */
    position: relative;
    min-width: 0;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px 18px;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius-sm, 10px);
    border: 1px solid rgba(236, 238, 242, 0.10);
    background:
        linear-gradient(180deg, rgba(20, 22, 26, 0.55), rgba(14, 16, 20, 0.92));
    transition:
        border-color 0.35s ease,
        transform 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}
.aud-step4-card:hover {
    border-color: rgba(var(--color-primary-rgb, 197, 255, 65), 0.45);
    transform: translateY(-4px);
    box-shadow:
        0 18px 38px -24px rgba(0, 0, 0, 0.75),
        0 0 28px -12px rgba(var(--color-primary-rgb, 197, 255, 65), 0.35);
}

/* картинка-фон как .steps-promo__media */
.aud-step4-card__media {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.32;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        filter 0.35s ease;
}
.aud-step4-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transition:
        transform 0.45s ease,
        filter 0.45s ease,
        opacity 0.45s ease;
}
.aud-step4-card:hover .aud-step4-card__media {
    opacity: 0.58;
    transform: scale(1.04);
    filter: drop-shadow(0 0 22px rgba(var(--color-primary-rgb, 197, 255, 65), 0.45));
    pointer-events: auto;
}
.aud-step4-card:hover .aud-step4-card__img {
    transform: none;
    filter: saturate(1.05);
    opacity: 1;
}

/* круглый лаймовый бейдж с номером — как .steps-promo__badge */
.aud-step4-card__badge {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-lime, #C5FF41);
    color: #0E0E0E;
    font-size: 18px;
    font-weight: 800;
    font-family: "Urbanist", sans-serif;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 0 rgba(var(--color-primary-rgb, 197, 255, 65), 0.45),
        0 8px 16px -10px rgba(var(--color-primary-rgb, 197, 255, 65), 0.7);
    animation: aud-step4-badge-pulse 2.8s ease-in-out infinite;
}

/* контент поверх картинки (.steps-promo__step-title / text) */
.aud-step4-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    flex: 1;
    margin-top: auto;
}
.aud-step4-card__title {
    margin: 0;
    color: #fff;
    font-size: clamp(15px, 1.1vw, 17px);
    font-weight: 800;
    font-family: "Urbanist", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    text-shadow: 0 1px 10px rgba(14, 14, 14, 0.92);
}
.aud-step4-card__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(14, 14, 14, 0.88);
}
.aud-step4-card__list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.aud-step4-card__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-mist, #fff);
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(14, 14, 14, 0.9);
}
.aud-step4-card__check {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: var(--color-primary, #c5ff41);
    filter: drop-shadow(0 0 6px rgba(var(--color-primary-rgb, 197, 255, 65), 0.65));
}

@keyframes aud-step4-badge-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(var(--color-primary-rgb, 197, 255, 65), 0.5),
            0 8px 16px -10px rgba(var(--color-primary-rgb, 197, 255, 65), 0.7);
    }
    70% {
        box-shadow:
            0 0 0 10px rgba(var(--color-primary-rgb, 197, 255, 65), 0),
            0 8px 16px -10px rgba(var(--color-primary-rgb, 197, 255, 65), 0.7);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(var(--color-primary-rgb, 197, 255, 65), 0),
            0 8px 16px -10px rgba(var(--color-primary-rgb, 197, 255, 65), 0.7);
    }
}

/* кнопка «УЗНАТЬ БОЛЬШЕ» в 2-м блоке не нужна (в blade её и так нет) */
.aud__frame--cards4 .aud-card__cta { display: none !important; }

/* ---------- адаптив aud-step4 ---------- */
@media (max-width: 1199.98px) {
    .aud-step4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aud-step4-card__list--wide {
        flex-wrap: wrap;
        gap: 14px 22px;
    }
    .aud-step4-card--wide {
        padding: 18px 20px;
        gap: 20px;
        min-height: 104px;
    }
    .aud-step4-card--wide .aud-step4-card__badge {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }
    .aud-step4-card--wide .aud-step4-card__content {
        gap: 14px;
    }
    .aud-step4-card__row05 {
        flex-wrap: wrap;
        gap: 12px 26px;
    }
    .aud-step4-card__chiprow05 {
        flex-wrap: wrap;
        gap: 12px 30px;
    }
    .aud-step4-card__chiprow05-item {
        font-size: 14.5px;
    }
}
@media (max-width: 899.98px) {
    .aud-step4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .aud-step4-card__list--wide {
        gap: 14px 22px;
    }
}
@media (max-width: 639.98px) {
    .aud__frame--cards4 { padding: 24px 14px 26px; }
    .aud-step4-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .aud-step4-card {
        min-height: 240px;
        padding: 12px 12px 16px;
    }
    .aud-step4-card--wide {
        min-height: auto;
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .aud-step4-card--wide .aud-step4-card__badge {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .aud-step4-card--wide .aud-step4-card__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .aud-step4-card__badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .aud-step4-card__list--wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .aud-step4-card__list--wide .aud-step4-card__item {
        white-space: normal;
    }
    .aud-step4-card__row05 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .aud-step4-card__chiprow05 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .aud-step4-card__chiprow05-item {
        white-space: normal;
    }
}

/* ---------- адаптив сетки карточек (старая aud-cards — не используется сейчас) ---------- */
@media (max-width: 1199.98px) {
    /* .aud__frame--cards4 .aud-cards … (legacy, сохранён как заглушка) */
}

/* ---------- карточка (базовая, 1/4 ширины) ---------- */
.aud-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px 18px 22px;
    border: 1px solid rgba(100, 210, 255, 0.24);
    border-radius: 18px;
    background:
        radial-gradient(ellipse 50% 40% at 10% 0%, rgba(var(--color-primary-rgb, 197, 255, 65), 0.06), transparent 65%),
        linear-gradient(180deg, rgba(18, 22, 26, 0.92), rgba(14, 16, 20, 0.98));
    overflow: hidden;
    transition:
        border-color 0.32s ease,
        box-shadow 0.32s ease,
        transform 0.32s ease,
        background-color 0.32s ease;
    animation: aud-card-in 0.55s ease backwards;
}
.aud-cards .aud-card:nth-child(1) { animation-delay: 0.05s; }
.aud-cards .aud-card:nth-child(2) { animation-delay: 0.12s; }
.aud-cards .aud-card:nth-child(3) { animation-delay: 0.19s; }
.aud-cards .aud-card:nth-child(4) { animation-delay: 0.26s; }
.aud-cards .aud-card:nth-child(5) { animation-delay: 0.33s; }

.aud-card::before {
    /* внутреннее мягкое свечение на hover */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(var(--color-primary-rgb, 197, 255, 65), 0) 0%,
        rgba(var(--color-primary-rgb, 197, 255, 65), 0) 55%,
        rgba(var(--color-primary-rgb, 197, 255, 65), 0.45) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.aud-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-primary-rgb, 197, 255, 65), 0.6);
    box-shadow:
        0 0 0 1px rgba(var(--color-primary-rgb, 197, 255, 65), 0.12),
        0 22px 44px -24px rgba(0, 0, 0, 0.75),
        0 0 36px -10px rgba(var(--color-primary-rgb, 197, 255, 65), 0.28);
}
.aud-card:hover::before {
    opacity: 1;
}

/* ---------- хедер: номер + линия ---------- */
.aud-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.aud-card__num {
    font: 800 18px/1 "Urbanist", sans-serif;
    letter-spacing: 0.08em;
    color: var(--color-primary, #c5ff41);
}
.aud-card__num-line {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(100, 210, 255, 0.85), rgba(100, 210, 255, 0));
    border-radius: 2px;
}

/* ---------- медиа: картинка + угловая иконка ---------- */
.aud-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 18px;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(20, 30, 40, 0.08), rgba(10, 14, 20, 0.85)),
        rgba(20, 24, 30, 0.6);
}
.aud-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.45s ease,
        filter 0.45s ease,
        opacity 0.45s ease;
    opacity: 0.96;
}
.aud-card:hover .aud-card__img {
    transform: scale(1.05);
    opacity: 1;
    filter:
        saturate(1.08)
        drop-shadow(0 0 20px rgba(var(--color-primary-rgb, 197, 255, 65), 0.35));
}

.aud-card__icon {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg,
            rgba(var(--color-primary-rgb, 197, 255, 65), 0.22),
            rgba(100, 210, 255, 0.12));
    border: 1px solid rgba(var(--color-primary-rgb, 197, 255, 65), 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}
.aud-card:hover .aud-card__icon {
    transform: translateY(-3px);
    background:
        linear-gradient(135deg,
            rgba(var(--color-primary-rgb, 197, 255, 65), 0.42),
            rgba(100, 210, 255, 0.2));
    box-shadow:
        0 0 0 1px rgba(var(--color-primary-rgb, 197, 255, 65), 0.25),
        0 12px 24px -10px rgba(var(--color-primary-rgb, 197, 255, 65), 0.45);
}
.aud-card__icon-svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary, #c5ff41);
}

/* ---------- тело карточки: заголовок / описание / список / кнопка ---------- */
.aud-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 2px 4px 0;
    min-height: 0;
    flex: 1;
}
.aud-card__title {
    margin: 0;
    font: 800 clamp(20px, 1.5vw, 26px) / 1.1 "Urbanist", sans-serif;
    letter-spacing: 0.01em;
    color: #fff;
    text-transform: none;
}
.aud-card__desc {
    margin: 0;
    font: 400 14.5px/1.55 "Manrope", sans-serif;
    color: rgba(236, 238, 242, 0.78);
}

.aud-card__list {
    list-style: none;
    padding: 0;
    margin: 2px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aud-card__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font: 500 13.5px/1.45 "Manrope", sans-serif;
    color: rgba(236, 238, 242, 0.85);
}
.aud-card__item-check {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--color-primary, #c5ff41);
    filter: drop-shadow(0 0 6px rgba(var(--color-primary-rgb, 197, 255, 65), 0.5));
}

/* кнопка */
.aud-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid rgba(var(--color-primary-rgb, 197, 255, 65), 0.55);
    border-radius: 999px;
    background: transparent;
    font: 700 14px/1 "Urbanist", sans-serif;
    letter-spacing: 0.06em;
    color: var(--color-primary, #c5ff41);
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    align-self: flex-start;
}
.aud-card__cta-arrow {
    width: 18px;
    height: 18px;
    color: currentColor;
    transition: transform 0.3s ease;
}
.aud-card__cta:hover {
    background: rgba(var(--color-primary-rgb, 197, 255, 65), 0.12);
    border-color: rgba(var(--color-primary-rgb, 197, 255, 65), 0.95);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(var(--color-primary-rgb, 197, 255, 65), 0.2),
        0 0 24px -8px rgba(var(--color-primary-rgb, 197, 255, 65), 0.55);
}
.aud-card__cta:hover .aud-card__cta-arrow {
    transform: translateX(4px);
}

/* ---------- 5-я КАРТОЧКА: ШИРОКАЯ (под 4-мя, на всю длину) ---------- */
.aud-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 28px;
    padding: 22px 26px 26px;
    align-items: stretch;
    background:
        radial-gradient(ellipse 40% 60% at 15% 50%, rgba(var(--color-primary-rgb, 197, 255, 65), 0.09), transparent 70%),
        linear-gradient(180deg, rgba(18, 22, 26, 0.94), rgba(14, 16, 20, 0.98));
}

.aud-card--wide .aud-card__head {
    grid-column: 1 / -1;
    margin-bottom: 0;
}
.aud-card--wide .aud-card__media {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    aspect-ratio: 5 / 4;
    margin: 0;
}
.aud-card--wide .aud-card__icon {
    width: 70px;
    height: 70px;
    left: 18px;
    bottom: 18px;
}
.aud-card--wide .aud-card__icon-svg {
    width: 34px;
    height: 34px;
}

.aud-card--wide .aud-card__body {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    padding: 4px 6px 0;
    justify-content: center;
    gap: 16px;
}
.aud-card--wide .aud-card__title {
    font-size: clamp(22px, 1.8vw, 30px);
}
.aud-card--wide .aud-card__desc {
    font-size: 15px;
}
.aud-card--wide .aud-card__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 26px;
}

@keyframes aud-card-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- адаптив сетки карточек ---------- */
@media (max-width: 1199.98px) {
    .aud-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aud-card--wide {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
        gap: 22px;
    }
    .aud-card--wide .aud-card__list { grid-template-columns: 1fr; }
}
@media (max-width: 899.98px) {
    .aud-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .aud-card--wide {
        grid-template-columns: 1fr;
    }
    .aud-card--wide .aud-card__media {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }
    .aud-card--wide .aud-card__body {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}
@media (max-width: 639.98px) {
    .aud-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .aud-card { padding: 16px 14px 20px; border-radius: 16px; }
    .aud-card--wide { padding: 18px 14px 22px; }
    .aud-card__media { aspect-ratio: 16 / 10; margin-bottom: 14px; border-radius: 12px; }
    .aud-card--wide .aud-card__icon { width: 60px; height: 60px; left: 14px; bottom: 14px; }
    .aud-card--wide .aud-card__icon-svg { width: 28px; height: 28px; }
    .aud-card__cta { align-self: stretch; justify-content: center; }
}

/* ==========================================================================
   КОПИЯ-БЛОК 05 — «А также — эксперты, аудиторы и консультанты»
   В ОДНУ СТРОКУ (горизонтальные чипы), без кнопки «Узнать больше».
   ========================================================================== */
.aud__frame--copy05 {
    /* повторяет рамку .aud__frame, но без grid колонок — флекс-контейнер по содержимому */
    display: block !important;
    padding-top: 28px;
    padding-bottom: 28px;
}
.aud-copy05 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    overflow: visible;
}
.aud-copy05__num {
  font: 800 18px/1 "Urbanist", sans-serif;
  letter-spacing: 0.08em;
  color: var(--color-primary, #c5ff41);
}
.aud-copy05__num-line {
    flex: none;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, rgba(100, 210, 255, 0.9), rgba(100, 210, 255, 0));
    border-radius: 2px;
}
.aud-copy05__title {
    flex: none;
    margin: 0;
    font: 800 clamp(18px, 1.5vw, 24px) / 1.05 "Urbanist", sans-serif;
    letter-spacing: 0.01em;
    color: #fff;
    max-width: 440px;
    padding-right: 10px;
}
.aud-copy05__chips {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}
.aud-copy05__chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--color-primary-rgb, 197, 255, 65), 0.35);
    border-radius: 999px;
    background:
        radial-gradient(ellipse 80% 120% at 0% 100%, rgba(var(--color-primary-rgb, 197, 255, 65), 0.14), transparent 70%),
        rgba(22, 26, 32, 0.62);
    font: 600 13.5px/1 "Manrope", sans-serif;
    color: rgba(236, 238, 242, 0.92);
    white-space: nowrap;
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}
.aud-copy05__chip:hover {
    border-color: rgba(var(--color-primary-rgb, 197, 255, 65), 0.85);
    background:
        radial-gradient(ellipse 80% 120% at 0% 100%, rgba(var(--color-primary-rgb, 197, 255, 65), 0.26), transparent 70%),
        rgba(26, 32, 40, 0.82);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(var(--color-primary-rgb, 197, 255, 65), 0.18),
        0 10px 22px -14px rgba(var(--color-primary-rgb, 197, 255, 65), 0.55);
    color: #fff;
}
.aud-copy05__chip:hover .aud-copy05__chip-check {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(var(--color-primary-rgb, 197, 255, 65), 0.7));
}
.aud-copy05__chip-check {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--color-primary, #c5ff41);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.aud-copy05__chip--last {
    flex: 0 1 auto;
    max-width: 34%;
}

/* ---------- адаптив КОПИИ 05 ---------- */
@media (max-width: 1299.98px) {
    .aud-copy05__title { max-width: 360px; }
}
@media (max-width: 1199.98px) {
    .aud__frame--copy05 { padding: 22px 16px 26px; }
    .aud-copy05 {
        flex-wrap: wrap;
        row-gap: 16px;
    }
    .aud-copy05__title { flex: 1 1 100%; max-width: none; padding-right: 0; order: 2; }
    .aud-copy05__num,
    .aud-copy05__num-line { order: 1; }
    .aud-copy05__chips {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .aud-copy05__chip--last { max-width: none; }
}
@media (max-width: 575.98px) {
    .aud__frame--copy05 { padding: 18px 14px 20px; margin-top: 20px !important; }
    .aud-copy05 { gap: 12px; }
    .aud-copy05__num { font-size: 18px; }
    .aud-copy05__num-line { width: 48px; }
    .aud-copy05__chips { gap: 8px; }
    .aud-copy05__chip { padding: 8px 10px; font-size: 12.5px; gap: 6px; }
}

/* ==========================================================================
   REDUCED MOTION — тот же паттерн, что в теме
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .aud,
    .aud * {
        animation: none !important;
        transition: none !important;
    }
}
