/*
 * Раздел записей вебинаров.
 * Список и детальная — на штатной разметке новостей (b-content, b-boxContainer,
 * b-cardNews, b-newsDetail из news.css); здесь только то, чего у новостей нет.
 * Форма доступа повторяет форму страниц таможни (services-seo, .seo-form).
 */

/* ---------- Список ---------- */
.wb-cardNews-head_empty {
    background: #2b2b2b;
}
.wb-cardNews-placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(244, 148, 59, .28) 0, rgba(244, 148, 59, 0) 55%),
        linear-gradient(100deg, #2b2b2b 0%, #3d3d3d 100%);
}
.wb-cardNews-placeholder::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: #f4943b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 6.5v11l9-5.5z'/></svg>") 55% 50%/30px no-repeat;
}
.wb-cardNews-meta {
    margin: -8px 0 0;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #6e6a61;
}
.wb-empty {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}
.wb-empty a {
    color: #e58124;
}

/* ---------- Детальная: плеер ---------- */
/* ---------- Детальная: сетка ----------
 * Как YouTube: сверху видео, под ним название, дата и короткая информация,
 * справа — подписка на анонсы. Слева меню «Информация», как у новостей.
 * На телефоне видео во всю ширину под шапкой, меню раздела — в самом низу.
 */
.wb-watch {
    display: grid;
    grid-template-columns: 315px minmax(0, 1fr);
    grid-template-areas:
        "side screen"
        "side body";
    column-gap: 30px;
    align-items: start;
}
.wb-watch > .b-content-sidebar {
    grid-area: side;
    grid-row: 1 / span 2;
    width: auto;
    max-width: none;
    margin: 0;
    flex: none;
}
.wb-watch__screen {
    grid-area: screen;
    padding: 40px 48px 0;
    border-radius: 5px 5px 0 0;
    background: #fff;
}
.wb-watch__body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    padding: 24px 48px 44px;
    border-radius: 0 0 5px 5px;
    background: #fff;
}
/* расстояние между блоками задаёт gap — собственные внешние отступы гасим */
.wb-watch__body > * {
    margin-top: 0;
    margin-bottom: 0;
}
.wb-watch__body > .wb-back {
    align-self: flex-start;
}
.wb-info .wb-info__meta {
    margin-bottom: 0;
}
/* разделы — заголовок-метка как в карточках сайта */
.wb-section-label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6e6a61;
}
.wb-about > :first-child {
    margin-top: 0;
}
.wb-about > :last-child {
    margin-bottom: 0;
}

/* ---------- Детальная: название, дата, спикер ---------- */
.wb-info {
    min-width: 0;
}
.wb-info__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e58124;
}
.wb-info__eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: #f4943b;
}
.wb-watch .wb-info__title {
    margin: 0 0 16px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #2b2b2b;
}
.wb-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.wb-info__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f6f6f6;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #2b2b2b;
}
.wb-info__meta-item::before {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 0;
    background: center/16px no-repeat;
    transform: none;
}
.wb-info__meta-item_date::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4943b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M16 3v4M8 3v4M3 10h18'/></svg>");
}
.wb-info__meta-item_time::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4943b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
}
.wb-info__meta-item_lock::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4943b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V7a4 4 0 0 1 8 0v4'/></svg>");
}
.wb-info__meta-item_open {
    background: #eaf6ec;
    color: #1e5e31;
}
.wb-info__meta-item_open::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e9e4f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
}
/* ---------- Спикеры: по одному в строку, без фото и инициалов ----------
 * Имя с оранжевой чертой (как заголовки карточек новостей), справка серым.
 * Справка длиннее 110 знаков сворачивается под «Подробнее».
 */
.wb-speakers__list {
    margin: 0;
    padding: 0;
    border-top: 1px solid #eceef0;
    list-style: none;
}
.wb-speakers__list li::before {
    display: none;
}
.wb-speaker {
    display: grid;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
    gap: 4px 28px;
    align-items: baseline;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #eceef0;
}
.wb-speaker__name {
    position: relative;
    padding-left: 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #2b2b2b;
}
.wb-speaker__name::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: #f4943b;
}
.wb-speaker__role {
    font-size: 15px;
    line-height: 1.5;
    color: #6e6a61;
}
.wb-speaker__role-text {
    display: block;
}
/* справка о спикере — не длиннее двух строк, пока не нажали «Подробнее» */
.wb-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.wb-more[hidden] {
    display: none;
}
.wb-speaker__role .wb-more {
    margin: 2px 0 0;
}
.wb-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #e58124;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.wb-more::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s, margin .15s;
}
.wb-more[aria-expanded="true"]::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}
.wb-more:hover {
    color: #f4943b;
}
.wb-more:focus-visible {
    outline: 2px solid rgba(244, 148, 59, .5);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---------- Оценка под видео ---------- */
.wb-rate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 16px 0 0;
}
.wb-rate__label {
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
}
.wb-rate__stars {
    display: inline-flex;
    gap: 2px;
}
.wb-rate__star {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9ccd1' stroke-width='1.6' stroke-linejoin='round'><path d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/></svg>") center/26px no-repeat;
    cursor: pointer;
    transition: transform .12s, background-color .12s;
}
.wb-rate__star_on,
.wb-rate__stars:hover .wb-rate__star,
.wb-rate__star:focus-visible {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f4943b' stroke='%23f4943b' stroke-width='1.6' stroke-linejoin='round'><path d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/></svg>");
}
/* при наведении подсвечиваем звёзды до курсора, а после неё — гасим */
.wb-rate__stars:hover .wb-rate__star:hover ~ .wb-rate__star {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9ccd1' stroke-width='1.6' stroke-linejoin='round'><path d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/></svg>");
}
.wb-rate__star:hover {
    transform: scale(1.12);
}
.wb-rate__star:focus-visible {
    outline: 3px solid rgba(244, 148, 59, .45);
    outline-offset: 1px;
}
.wb-rate_busy .wb-rate__stars {
    opacity: .6;
    pointer-events: none;
}
.wb-rate__summary {
    font-size: 14px;
    color: #6e6a61;
}
.wb-rate__summary b {
    color: #2b2b2b;
    font-size: 16px;
}
.wb-rate__error {
    flex-basis: 100%;
    font-size: 13px;
    color: #d93025;
}

/* ---------- Низ детальной: вопрос и подписка рядом ----------
 * Две карточки одной высоты; подписка не нужна — вопрос во всю ширину.
 */
.wb-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 8px;
}
.wb-bottom_single {
    grid-template-columns: minmax(0, 1fr);
}
/* 1024–1199: рядом с сайдбаром колонка контента узкая — две карточки сжимают форму вопроса */
@media (max-width: 1199.98px) {
    .wb-bottom {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- «Остались вопросы?» ---------- */
.wb-ask {
    padding: 28px;
    border-radius: 12px;
    background: #f6f6f6;
}
.wb-ask__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.wb-ask__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4943b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/><path d='M9.5 9.5a2.5 2.5 0 1 1 3.3 2.4c-.5.2-.8.6-.8 1.1v.5M12 16.5h.01'/></svg>") center/24px no-repeat;
}
.wb-ask__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    color: #2b2b2b;
}
.wb-ask__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4d4d4d;
}
.wb-ask .wb-field__input {
    background: #fff;
}
/* выше по специфичности, чем .wb-field__input (там высота 48px и отступ 0 14px) */
.wb-field__input.wb-field__input_area {
    height: auto;
    min-height: 120px;
    padding: 13px 16px;
    line-height: 1.5;
    resize: vertical;
}
.wb-ask__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.wb-ask__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    grid-column: 1 / -1;
    margin-top: 2px;
}
.wb-fields .wb-ask__submit {
    width: auto;
    min-width: 220px;
    margin: 0;
}
.wb-ask__note {
    font-size: 13px;
    line-height: 1.4;
    color: #6e6a61;
}
.wb-ask__error {
    grid-column: 1 / -1;
    margin: 0;
}
.wb-ask__done {
    padding: 14px 16px;
    border-left: 4px solid #2e9e4f;
    border-radius: 8px;
    background: #eaf6ec;
    font-size: 14px;
    line-height: 1.5;
    color: #1e5e31;
}
.wb-ask__done b {
    display: block;
    margin-bottom: 2px;
}
.wb-ask__done a {
    color: #1e5e31;
    font-weight: 700;
    white-space: nowrap;
}
.wb-subscribe__legal {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #c9ccd1;
}
.wb-subscribe__legal a {
    color: #f4a861;
}

/* ---------- Постраничка списка ---------- */
.wb-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 44px;
}
.wb-pager__list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wb-pager__list li {
    margin: 0;
    padding: 0;
}
.wb-pager__list li::before {
    display: none;
}
.wb-pager__page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #e1e3e6;
    border-radius: 10px;
    background: #fff;
    color: #2b2b2b;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background-color .15s;
}
a.wb-pager__page:hover {
    border-color: #f4943b;
    color: #e58124;
}
.wb-pager__page_active {
    border-color: #f4943b;
    background: #f4943b;
    color: #fff;
    box-shadow: 0 6px 16px rgba(244, 148, 59, .3);
}
.wb-pager__gap {
    min-width: 24px;
    color: #9a9ea5;
    text-align: center;
}
.wb-pager__arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #e1e3e6;
    border-radius: 10px;
    background: #fff;
    color: #2b2b2b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
a.wb-pager__arrow:hover {
    border-color: #f4943b;
    color: #e58124;
}
.wb-pager__arrow_disabled {
    opacity: .4;
    cursor: default;
}
.wb-pager__arrow-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}
.wb-pager__arrow_prev .wb-pager__arrow-icon {
    transform: rotate(135deg);
}
.wb-pager__arrow_next .wb-pager__arrow-icon {
    transform: rotate(-45deg);
}
a.wb-pager__page:focus-visible,
a.wb-pager__arrow:focus-visible {
    outline: 3px solid rgba(244, 148, 59, .45);
    outline-offset: 2px;
}
.wb-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Детальная: подписка на анонсы ---------- */
.wb-subscribe {
    position: relative;
    overflow: hidden;
    padding: 28px 24px 24px 30px;
    border-radius: 12px;
    background: linear-gradient(160deg, #2b2b2b 0%, #3d3d3d 100%);
    color: #fff;
}
.wb-subscribe::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #f4943b;
}
.wb-subscribe__eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f4943b;
}
.wb-subscribe__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.wb-subscribe__text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #d4d6da;
}
.wb-subscribe__form {
    display: grid;
    gap: 14px;
    margin: 0;
}
.wb-subscribe .wb-field__label {
    color: #fff;
}
.wb-subscribe .wb-field__input {
    border-color: transparent;
    background: #fff;
}
.wb-subscribe .wb-field__error,
.wb-subscribe .wb-check .wb-field__error {
    color: #ff8a80;
}
.wb-subscribe .wb-field_error .wb-field__input {
    border-color: #ff8a80;
}
.wb-consents_compact {
    gap: 10px;
    margin: 0;
}
.wb-subscribe .wb-check__box {
    border-color: rgba(255, 255, 255, .45);
    background: transparent;
}
.wb-subscribe .wb-check__text {
    font-size: 12.5px;
    color: #c9ccd1;
}
.wb-subscribe .wb-check__text a {
    color: #f4a861;
}
.wb-subscribe .wb-check.wb-field_error .wb-check__box {
    border-color: #ff8a80;
    background: transparent;
}
.wb-subscribe .wb-submit {
    margin-top: 2px;
}
.wb-subscribe__done {
    padding: 14px 16px;
    border-left: 4px solid #2e9e4f;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: 14px;
    line-height: 1.5;
    color: #e6e8eb;
}
.wb-subscribe__done b {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}
.wb-subscribe__note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #a9adb3;
}
.wb-player {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: #2b2b2b;
    aspect-ratio: 16 / 9;
}
.wb-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.wb-player_empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.wb-player__message {
    font-size: 16px;
    color: #d4d6da;
    text-align: center;
}
.wb-player_locked {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.wb-player__lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 24px;
    border: 0;
    /* на постере свой крупный текст — глушим его, чтобы надпись читалась */
    background: rgba(28, 28, 28, .74);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.wb-player__play {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: #f4943b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 6.5v11l9-5.5z'/></svg>") 55% 50%/34px no-repeat;
    box-shadow: 0 8px 20px rgba(244, 148, 59, .4);
    transition: transform .15s, background-color .15s;
}
.wb-player__lock:hover .wb-player__play {
    background-color: #e58124;
    transform: scale(1.06);
}
.wb-player__lock:focus-visible {
    outline: 3px solid rgba(244, 148, 59, .6);
    outline-offset: -3px;
}
.wb-player__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.wb-player__hint {
    font-size: 14px;
    line-height: 1.4;
    color: #d4d6da;
}

/* ---------- Детальная: материалы ---------- */
.wb-materials {
    margin: 32px 0 0;
}
.wb-materials__title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.wb-materials__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wb-materials__list li {
    margin: 0;
    padding: 0;
}
.wb-materials__list li::before {
    display: none;
}
.wb-materials__file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid #e6e8eb;
    border-left: 4px solid #f4943b;
    border-radius: 6px;
    color: #303030;
    text-decoration: none;
    transition: box-shadow .15s, border-color .15s;
}
.wb-materials__file:hover {
    border-color: #f4943b;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    color: #303030;
}
.wb-materials__ext {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #fdebd3;
    color: #e58124;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
}
.wb-materials__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.wb-materials__size {
    flex: 0 0 auto;
    font-size: 13px;
    color: #6e6a61;
}

.wb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 16px;
    font-weight: 500;
    color: #e58124;
    text-decoration: none;
}
.wb-back::before {
    content: "←";
}
.wb-back:hover {
    color: #f4943b;
}

/* Кнопка в правой колонке — <button>, у новостей там <a>. */
.wb-section button.b-btn {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

/* ---------- Окно доступа ---------- */
html.wb-modal-open,
html.wb-modal-open body {
    overflow: hidden;
}
/* кнопка чата сайта (z-index выше окна) перекрывает кнопку отправки */
html.wb-modal-open .chatbot {
    display: none;
}
.wb-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wb-modal[hidden] {
    display: none;
}
.wb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, .72);
}
.wb-modal__dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    border-radius: 16px;
    overscroll-behavior: contain;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.wb-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    transition: background-color .15s;
}
.wb-modal__close::before,
.wb-modal__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    margin: -1px 0 0 -8px;
    border-radius: 1px;
    background: #fff;
    transform: rotate(45deg);
}
.wb-modal__close::after {
    transform: rotate(-45deg);
}
.wb-modal__close:hover {
    background: #f4943b;
}
.wb-modal__close:focus-visible {
    outline: 3px solid rgba(244, 148, 59, .6);
    outline-offset: 2px;
}

/* Тёмная панель с оранжевой кромкой — как блок формы на страницах таможни. */
.wb-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: start;
    padding: 44px 44px 40px;
    background: linear-gradient(100deg, #2b2b2b 0%, #333 45%, #3d3d3d 100%);
}
.wb-form::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #f4943b;
}
.wb-form__eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f4943b;
}
.wb-form__title {
    margin: 0 0 16px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
}
.wb-form__text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: #d4d6da;
}
.wb-form__points {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.wb-form__points li {
    position: relative;
    margin: 0;
    padding: 1px 0 0 34px;
    font-size: 15px;
    line-height: 1.45;
    color: #fff;
}
.wb-form__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #f4943b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/14px no-repeat;
    transform: none;
}
.wb-form__phone {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 14px;
    line-height: 1.5;
    color: #a9adb3;
}
.wb-form__phone a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.wb-form__phone a:hover {
    color: #f4943b;
}
.wb-form__card {
    position: relative;
    padding: 26px 26px 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

/* ---------- Поля ---------- */
.wb-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin: 0;
}
.wb-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wb-field_full,
.wb-consents,
.wb-fields .wb-submit,
.wb-required-note {
    grid-column: 1 / -1;
}
.wb-field__label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #2b2b2b;
}
.wb-field__req {
    margin-left: 2px;
    color: #e58124;
    font-weight: 700;
}
.wb-field__opt {
    font-weight: 400;
    color: #9a9ea5;
}
.wb-field__input {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #e1e3e6;
    border-radius: 10px;
    background: #f6f6f6;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    line-height: normal;
    color: #2b2b2b;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
    -webkit-appearance: none;
    appearance: none;
}
.wb-field__input::placeholder {
    color: #9a9ea5;
}
.wb-field__input:hover {
    border-color: #c9ccd1;
}
.wb-field__input:focus {
    outline: none;
    border-color: #f4943b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(244, 148, 59, .18);
}
.wb-field__input_code {
    height: 56px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .4em;
    text-align: center;
}
.wb-field__error {
    font-size: 12.5px;
    line-height: 1.35;
    color: #d93025;
}
.wb-field__error:empty {
    display: none;
}
.wb-field_error .wb-field__error {
    margin-top: 6px;
}
.wb-field_error .wb-field__input {
    border-color: #d93025;
    background: #fff6f5;
}
.wb-field_error .wb-field__input:focus {
    box-shadow: 0 0 0 3px rgba(217, 48, 37, .15);
}

/* ---------- Согласия ---------- */
.wb-consents {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}
.wb-check__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}
.wb-check__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.wb-check__box {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid #c9ccd1;
    border-radius: 6px;
    background: #fff;
    transition: background-color .15s, border-color .15s;
}
.wb-check__box::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity .12s;
}
.wb-check__input:checked + .wb-check__box {
    border-color: #f4943b;
    background: #f4943b;
}
.wb-check__input:checked + .wb-check__box::before {
    opacity: 1;
}
.wb-check__input:focus-visible + .wb-check__box {
    box-shadow: 0 0 0 3px rgba(244, 148, 59, .25);
}
.wb-check__label:hover .wb-check__box {
    border-color: #f4943b;
}
.wb-check__text {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.45;
    color: #4d4d4d;
}
.wb-check__text a {
    color: #e58124;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wb-check.wb-field_error .wb-check__box {
    border-color: #d93025;
    background: #fff6f5;
}
.wb-check .wb-field__error {
    padding-left: 30px;
}

/* ---------- Кнопки, сообщения ---------- */
.wb-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    margin: 6px 0 0;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: #f4943b;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 8px 20px rgba(244, 148, 59, .32);
    cursor: pointer;
    transition: background-color .15s, transform .15s, box-shadow .15s;
}
.wb-submit:hover {
    background: #e58124;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(244, 148, 59, .38);
}
.wb-submit:focus-visible {
    outline: 3px solid rgba(244, 148, 59, .45);
    outline-offset: 2px;
}
.wb-submit_busy {
    opacity: .7;
    pointer-events: none;
}
.wb-required-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #9a9ea5;
}
.wb-alert {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-left: 4px solid;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.45;
}
.wb-alert_error {
    border-color: #d93025;
    background: #fdecea;
    color: #8c1d13;
}
.wb-alert_success {
    border-color: #2e9e4f;
    background: #eaf6ec;
    color: #1e5e31;
}
.wb-code__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    color: #2b2b2b;
}
.wb-code__text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #4d4d4d;
}
.wb-code__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 16px;
}
.wb-code__actions form {
    margin: 0;
}
.wb-link {
    padding: 0;
    border: 0;
    background: none;
    color: #e58124;
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.wb-link:disabled {
    color: #9a9ea5;
    text-decoration: none;
    cursor: default;
}

/* Телефон и планшет: сайдбар у сайта здесь сворачивается в оранжевую кнопку
   «Информация» — уводим её под контент, чтобы первым экраном был сам раздел. */
@media (max-width: 1023.98px) {
    .wb-section.b-content {
        display: flex;
        flex-direction: column;
    }
    .wb-section.b-content > .b-content-sidebar {
        order: 2;
        margin-top: 24px;
    }

    .wb-watch {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .wb-watch__screen {
        order: 1;
        /* во всю ширину экрана, вплотную к шапке */
        margin: -16px calc(50% - 50vw) 0;
        padding: 0;
        border-radius: 0;
        background: #000;
    }
    .wb-watch__screen .wb-player {
        border-radius: 0;
    }
    .wb-watch__body {
        order: 2;
        gap: 24px;
        margin-top: 12px;
        padding: 20px 16px 24px;
        border-radius: 5px;
    }
    .wb-watch > .b-content-sidebar {
        order: 3;
        margin-top: 24px;
    }
    /* крошки над видео на телефоне не нужны: назад ведёт ссылка в карточке */
    body:has(.wb-watch) .l-main-head {
        display: none;
    }
    .wb-watch .wb-info__title {
        font-size: 22px;
        line-height: 1.25;
    }
    .wb-speaker {
        grid-template-columns: minmax(0, 1fr);
    }
    .wb-speaker__role {
        padding-left: 16px;
    }
    .wb-bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .wb-ask {
        padding: 20px 16px;
    }
    .wb-ask__title {
        font-size: 19px;
    }
    .wb-fields .wb-ask__submit {
        width: 100%;
    }
    .wb-subscribe {
        padding: 24px 16px 20px 22px;
    }
    /* оценка на тёмной подложке видео: подпись светлая */
    .wb-rate {
        padding: 12px 16px 14px;
    }
    .wb-rate__label,
    .wb-rate__summary b {
        color: #fff;
    }
    .wb-rate__summary {
        color: #c9ccd1;
    }
}

@media (max-width: 991.98px) {
    .wb-form {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wb-form__points {
        display: none;
    }
    .wb-form__phone {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .wb-modal {
        padding: 0;
        align-items: stretch;
    }
    .wb-modal__dialog {
        width: 100%;
        max-height: none;
        border-radius: 0;
    }
    .wb-form {
        min-height: 100%;
        align-content: start;
        padding: 28px 16px calc(18px + var(--wb-cookie, 0px)) 22px;
    }
    .wb-form__title {
        margin-bottom: 10px;
        padding-right: 40px;
        font-size: 24px;
    }
    .wb-form__text {
        margin-bottom: 0;
        font-size: 14px;
    }
    .wb-form__card {
        padding: 18px 16px 16px;
    }
    .wb-fields {
        grid-template-columns: 1fr;
    }
    .wb-modal__close {
        top: 10px;
        right: 10px;
    }
    /* на телефоне в закрытом плеере только кнопка: пояснение и «Смотреть запись» — под видео */
    .wb-player__title,
    .wb-player__hint {
        display: none;
    }
    .wb-player__play {
        width: 56px;
        height: 56px;
        background-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wb-submit,
    .wb-player__play {
        transition: none;
    }
    .wb-submit:hover,
    .wb-player__lock:hover .wb-player__play {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .wb-pager {
        gap: 6px;
    }
    .wb-pager__arrow {
        width: 44px;
        padding: 0;
        justify-content: center;
    }
    .wb-pager__arrow-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .wb-pager__page {
        min-width: 40px;
        height: 40px;
    }
}
