/**
 * Плашка на всю ширину.
 * Одна полоса: картинка в край, текст по центру высоты, без полей темы.
 * Стили: simple, accent, soft, dark, outline.
 */

.plate {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 16px 0;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
    line-height: 1.4;
}

.plate_image_right {
    flex-direction: row-reverse;
}

.plate__media {
    position: relative;
    flex: 0 0 100px;
    width: 100px;
    min-height: 100px;
    align-self: stretch;
}

.plate__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plate__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 14px 48px 14px 16px;
}

.plate_image_right .plate__body {
    padding: 14px 16px 14px 48px;
}

.plate__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.plate__text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

/* Визивиг не должен тащить размеры h1–h3 и поля абзацев из темы. */
.plate__text p,
.plate__text h1,
.plate__text h2,
.plate__text h3,
.plate__text h4,
.plate__text ul,
.plate__text ol,
.plate__text li {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.plate__text p + p,
.plate__text ul + p,
.plate__text p + ul {
    margin-top: 6px;
}

.plate__text strong,
.plate__text b {
    font-weight: 600;
}

.plate__text a {
    color: inherit;
    text-decoration: underline;
}

.plate__text img {
    max-width: 100%;
    height: auto;
}

.plate__link {
    align-self: flex-start;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.plate__link:hover {
    text-decoration: underline;
}

.plate__close {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    appearance: none;
}

.plate_image_right .plate__close {
    right: auto;
    left: 10px;
}

.plate__close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.plate__close:focus-visible {
    outline: 2px solid #c9011e;
    outline-offset: 2px;
}

/* Простой: одна светлая полоса, красный только у ссылки */
.plate_style_simple {
    background: #fafafa;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    box-shadow: none;
    color: #3a3a3a;
}

.plate_style_simple .plate__title {
    color: #161616;
}

.plate_style_simple .plate__link {
    color: #c9001e;
}

.plate_style_simple .plate__close {
    color: #8d8d8d;
}

.plate_style_simple .plate__media {
    background: #eee;
}

/* Акцент */
.plate_style_accent {
    background: #fff;
    border: 1px solid #f0d0d4;
    border-left: 4px solid #c9001e;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(201, 0, 30, 0.08);
    color: #333;
}

.plate_image_right.plate_style_accent {
    border-left: 1px solid #f0d0d4;
    border-right: 4px solid #c9001e;
}

.plate_style_accent .plate__title,
.plate_style_accent .plate__link {
    color: #c9001e;
}

.plate_style_accent .plate__close {
    color: #c9001e;
}

/* Мягкий */
.plate_style_soft {
    background: #fff8f6;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(80, 20, 20, 0.06);
    color: #5c4a4a;
}

.plate_style_soft .plate__title {
    color: #3a2a2a;
    font-weight: 500;
}

.plate_style_soft .plate__link,
.plate_style_soft .plate__close {
    color: #c9001e;
}

/* Тёмный */
.plate_style_dark {
    background: #1c1c1c;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: #f3f3f3;
}

.plate_style_dark .plate__title {
    color: #fff;
}

.plate_style_dark .plate__link,
.plate_style_dark .plate__close {
    color: #ff8a98;
}

.plate_style_dark .plate__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Контур */
.plate_style_outline {
    background: #fff;
    border: 1.5px solid #c9001e;
    border-radius: 10px;
    box-shadow: none;
    color: #222;
}

.plate_style_outline .plate__title {
    color: #111;
}

.plate_style_outline .plate__link,
.plate_style_outline .plate__close {
    color: #c9001e;
}

@media (max-width: 640px) {
    .plate__media {
        flex-basis: 72px;
        width: 72px;
        min-height: 72px;
    }

    .plate__body {
        padding: 12px 42px 12px 12px;
    }

    .plate_image_right .plate__body {
        padding: 12px 12px 12px 42px;
    }

    .plate__title {
        font-size: 15px;
    }

    .plate__text,
    .plate__link {
        font-size: 13px;
    }
}
