.header-promo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(580px, 48vw);
    margin: 0 0 0 auto;
    text-align: center;
}

.header-promo__plaque {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    background: linear-gradient(145deg, #e8edf2 0%, #d8e0e8 48%, #e2e9ef 100%);
    box-shadow:
        0 3px 10px rgba(17, 92, 162, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.header-promo__plaque--with-photo {
    max-width: 100%;
}

[data-bs-theme="dark"] .header-promo__plaque:not(.header-promo__plaque--scroll):not(.header-promo__plaque--sheet-br):not(.header-promo__plaque--sheet-tr) {
    background: linear-gradient(145deg, #3a424a 0%, #2e353c 48%, #353d44 100%);
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.header-promo__bolt {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    font-size: 0.72rem;
    color: #7a8794;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 -1px 1px rgba(0, 0, 0, 0.28);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.header-promo__bolt--tl { top: 0.1rem; left: 0.1rem; transform: rotate(-12deg); }
.header-promo__bolt--tr { top: 0.1rem; right: 0.1rem; transform: rotate(18deg); }
.header-promo__bolt--bl { bottom: 0.1rem; left: 0.1rem; transform: rotate(8deg); }
.header-promo__bolt--br { bottom: 0.1rem; right: 0.1rem; transform: rotate(-15deg); }

[data-bs-theme="dark"] .header-promo__bolt {
    color: #9aa5b0;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12),
        0 -1px 1px rgba(0, 0, 0, 0.45);
}

.header-promo__inner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem;
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 14%),
        linear-gradient(165deg, #f5f7fa 0%, #eef2f6 50%, #e8edf2 100%);
    border: 2px solid var(--primary-color, #0d9488);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.9),
        inset 0 1px 4px rgba(17, 92, 162, 0.04);
}

[data-bs-theme="dark"] .header-promo__inner {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 14%),
        linear-gradient(165deg, #2a3139 0%, #252b32 50%, #222830 100%);
    border-color: var(--primary-color, #2dd4bf);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 6px rgba(0, 0, 0, 0.15);
}

.header-promo__plaque--photo-only .header-promo__inner {
    justify-content: center;
}

.header-promo__plaque--photo-only .header-promo__photo-col {
    border-left: none;
    padding-left: 0;
    width: 100%;
}

.header-promo__promo-col {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    text-align: center;
}

.header-promo__photo-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(17, 92, 162, 0.12);
}

[data-bs-theme="dark"] .header-promo__photo-col {
    border-left-color: rgba(255, 255, 255, 0.1);
}

.header-promo__badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
}

.header-promo__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color, #0d9488);
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(17, 92, 162, 0.25);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header-promo__cta:hover,
.header-promo__badge:hover {
    color: #fff;
    background: var(--primary-color, #0d9488);
    border-color: var(--primary-dark, #0f766e);
    box-shadow: none;
}

[data-bs-theme="dark"] .header-promo__badge {
    color: var(--primary-color, #2dd4bf);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .header-promo__badge:hover,
[data-bs-theme="dark"] .header-promo__cta:hover {
    color: #fff;
    background: var(--primary-color, #0d9488);
    border-color: var(--primary-dark, #0f766e);
    box-shadow: none;
}

.header-promo__headline {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 800;
    line-height: 1.22;
    color: #1a3a4a;
    letter-spacing: 0.01em;
}

[data-bs-theme="dark"] .header-promo__headline {
    color: rgba(255, 255, 255, 0.95);
}

.header-promo__subtext {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #5a7080;
    max-width: 38ch;
}

[data-bs-theme="dark"] .header-promo__subtext {
    color: rgba(255, 255, 255, 0.72);
}

.header-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-color, #0d9488);
    text-decoration: none;
    border: 1px solid rgba(17, 92, 162, 0.25);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

[data-bs-theme="dark"] .header-promo__cta {
    color: var(--primary-color, #2dd4bf);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.12);
}

/* Предложение дня внутри таблички */
.header-promo__photo-col .header-best-photos {
    flex: 0 0 auto;
    max-width: none;
    margin: 0;
    text-align: center;
}

.header-promo__photo-col .header-best-photos__title {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color, #0d9488);
    margin: 0 0 0.35rem;
    text-align: center;
}

.header-promo__photo-col .header-best-photos__grid {
    display: flex;
    justify-content: center;
    gap: 0;
}

.header-promo__photo-col .header-best-photos__thumb {
    width: 120px;
    height: 80px;
    border-radius: 4px;
    box-shadow:
        0 2px 6px rgba(17, 92, 162, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.header-promo__photo-col .header-best-photos__thumb:hover {
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px rgba(17, 92, 162, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

[data-bs-theme="dark"] .header-promo__photo-col .header-best-photos__title {
    color: var(--primary-color, #2dd4bf);
}

[data-bs-theme="dark"] .header-promo__photo-col .header-best-photos__thumb {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ----- Варианты оформления рамки ----- */
.header-promo__plaque--scroll,
.header-promo__plaque--sheet-br,
.header-promo__plaque--sheet-tr {
    border-radius: 0;
    background-color: transparent;
    box-shadow: 0 4px 16px rgba(17, 92, 162, 0.14);
}

.header-promo__plaque--scroll {
    position: relative;
    isolation: isolate;
    min-height: 0;
    padding: 0.05rem 1.65rem;
    background: transparent;
    box-shadow: none;
}

.header-promo__plaque--scroll::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: -0.45rem -0.12rem;
    background: url('/assets/images/header-promo/scroll.png') center / 108% 132% no-repeat;
    filter: drop-shadow(0 4px 16px rgba(17, 92, 162, 0.14));
    pointer-events: none;
}

.header-promo__plaque--sheet-br {
    position: relative;
    min-height: 0;
    padding: 0.2rem 0.95rem 0.25rem;
    background: linear-gradient(145deg, #eef4f8 0%, #d9e7ef 52%, #c5d9e5 100%);
    border: 1px solid rgba(18, 107, 133, 0.14);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.4rem), calc(100% - 2.4rem) 100%, 0 100%);
}

.header-promo__plaque--sheet-br::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 2.4rem;
    height: 2.4rem;
    background: linear-gradient(315deg, #ffffff 0%, #e8f0f5 55%, #d0e0ea 100%);
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
    box-shadow: -2px -2px 5px rgba(17, 92, 162, 0.12);
    pointer-events: none;
}

.header-promo__plaque--sheet-tr {
    position: relative;
    min-height: 0;
    padding: 0.25rem 1.1rem 0.2rem 0.85rem;
    background: linear-gradient(145deg, #eef4f8 0%, #d9e7ef 52%, #c5d9e5 100%);
    border: 1px solid rgba(18, 107, 133, 0.14);
    clip-path: polygon(0 0, calc(100% - 2.4rem) 0, 100% 2.4rem, 100% 100%, 0 100%);
}

.header-promo__plaque--sheet-tr::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2.4rem;
    height: 2.4rem;
    background: linear-gradient(225deg, #ffffff 0%, #e8f0f5 55%, #d0e0ea 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    box-shadow: -2px 2px 5px rgba(17, 92, 162, 0.12);
    pointer-events: none;
}

.header-promo__plaque--scroll .header-promo__inner,
.header-promo__plaque--sheet-br .header-promo__inner,
.header-promo__plaque--sheet-tr .header-promo__inner {
    background: transparent;
    border: none;
    box-shadow: none;
}

.header-promo__plaque--scroll .header-promo__inner {
    position: relative;
    z-index: 1;
    padding: 0.05rem 0.1rem;
}

.header-promo__plaque--scroll .header-promo__promo-col,
.header-promo__plaque--sheet-br .header-promo__promo-col,
.header-promo__plaque--sheet-tr .header-promo__promo-col {
    gap: 0.08rem;
    padding-top: 0;
    padding-bottom: 0;
}

.header-promo__plaque--scroll .header-promo__headline,
.header-promo__plaque--sheet-br .header-promo__headline,
.header-promo__plaque--sheet-tr .header-promo__headline {
    line-height: 1.12;
}

.header-promo__plaque--scroll .header-promo__subtext,
.header-promo__plaque--sheet-br .header-promo__subtext,
.header-promo__plaque--sheet-tr .header-promo__subtext {
    line-height: 1.32;
}

.header-promo__plaque--scroll .header-promo__cta,
.header-promo__plaque--sheet-br .header-promo__cta,
.header-promo__plaque--sheet-tr .header-promo__cta {
    margin-top: 0;
}

.header-promo__plaque--sheet-br .header-promo__inner,
.header-promo__plaque--sheet-tr .header-promo__inner {
    position: relative;
    z-index: 1;
    padding: 0.05rem 0.45rem;
}

.header-promo__plaque--scroll .header-promo__badge,
.header-promo__plaque--sheet-br .header-promo__badge,
.header-promo__plaque--sheet-tr .header-promo__badge,
.header-promo__plaque--scroll .header-promo__cta,
.header-promo__plaque--sheet-br .header-promo__cta,
.header-promo__plaque--sheet-tr .header-promo__cta {
    color: var(--primary-dark, #0f766e);
    border-color: rgba(17, 92, 162, 0.25);
    background: rgba(255, 255, 255, 0.82);
}

.header-promo__plaque--scroll .header-promo__badge:hover,
.header-promo__plaque--sheet-br .header-promo__badge:hover,
.header-promo__plaque--sheet-tr .header-promo__badge:hover,
.header-promo__plaque--scroll .header-promo__cta:hover,
.header-promo__plaque--sheet-br .header-promo__cta:hover,
.header-promo__plaque--sheet-tr .header-promo__cta:hover {
    color: #fff;
    background: var(--primary-dark, #0f766e);
    border-color: var(--primary-dark, #0f766e);
    box-shadow: none;
}

[data-bs-theme="dark"] .header-promo__plaque--scroll .header-promo__badge,
[data-bs-theme="dark"] .header-promo__plaque--sheet-br .header-promo__badge,
[data-bs-theme="dark"] .header-promo__plaque--sheet-tr .header-promo__badge,
[data-bs-theme="dark"] .header-promo__plaque--scroll .header-promo__cta,
[data-bs-theme="dark"] .header-promo__plaque--sheet-br .header-promo__cta,
[data-bs-theme="dark"] .header-promo__plaque--sheet-tr .header-promo__cta {
    color: var(--primary-dark, #0f766e);
    border-color: rgba(17, 92, 162, 0.25);
    background: rgba(255, 255, 255, 0.82);
}

[data-bs-theme="dark"] .header-promo__plaque--scroll .header-promo__badge:hover,
[data-bs-theme="dark"] .header-promo__plaque--sheet-br .header-promo__badge:hover,
[data-bs-theme="dark"] .header-promo__plaque--sheet-tr .header-promo__badge:hover,
[data-bs-theme="dark"] .header-promo__plaque--scroll .header-promo__cta:hover,
[data-bs-theme="dark"] .header-promo__plaque--sheet-br .header-promo__cta:hover,
[data-bs-theme="dark"] .header-promo__plaque--sheet-tr .header-promo__cta:hover {
    color: #fff;
    background: var(--primary-dark, #0f766e);
    border-color: var(--primary-dark, #0f766e);
    box-shadow: none;
}

.header-promo__plaque--scroll .header-promo__photo-col,
.header-promo__plaque--sheet-br .header-promo__photo-col,
.header-promo__plaque--sheet-tr .header-promo__photo-col {
    border-left-color: rgba(18, 107, 133, 0.18);
}

[data-bs-theme="dark"] .header-promo__plaque--scroll,
[data-bs-theme="dark"] .header-promo__plaque--sheet-br,
[data-bs-theme="dark"] .header-promo__plaque--sheet-tr {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .header-promo__plaque--scroll {
    box-shadow: none;
}

[data-bs-theme="dark"] .header-promo__plaque--scroll::before {
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

[data-bs-theme="dark"] .header-promo__plaque--scroll .header-promo__headline,
[data-bs-theme="dark"] .header-promo__plaque--sheet-br .header-promo__headline,
[data-bs-theme="dark"] .header-promo__plaque--sheet-tr .header-promo__headline {
    color: #1a3a4a;
}

[data-bs-theme="dark"] .header-promo__plaque--scroll .header-promo__subtext,
[data-bs-theme="dark"] .header-promo__plaque--sheet-br .header-promo__subtext,
[data-bs-theme="dark"] .header-promo__plaque--sheet-tr .header-promo__subtext {
    color: #4a6270;
}

.header-promo__plaque--scroll .header-promo__badge,
.header-promo__plaque--sheet-br .header-promo__badge,
.header-promo__plaque--sheet-tr .header-promo__badge {
    padding: 0.08rem 0.5rem;
}

.header-promo__plaque--scroll .header-promo__photo-col .header-best-photos__title,
.header-promo__plaque--sheet-br .header-promo__photo-col .header-best-photos__title,
.header-promo__plaque--sheet-tr .header-promo__photo-col .header-best-photos__title {
    color: var(--primary-dark, #0f766e);
    margin-bottom: 0.15rem;
}

[data-bs-theme="dark"] .header-promo__plaque--scroll .header-promo__photo-col .header-best-photos__title,
[data-bs-theme="dark"] .header-promo__plaque--sheet-br .header-promo__photo-col .header-best-photos__title,
[data-bs-theme="dark"] .header-promo__plaque--sheet-tr .header-promo__photo-col .header-best-photos__title {
    color: var(--primary-dark, #0f766e);
}

@media (max-width: 991.98px) {
    .header-promo {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin-top: 0.5rem;
    }

    .header-promo__plaque {
        width: 100%;
    }

    .header-promo__inner {
        flex-direction: column;
        padding: 0.65rem 0.85rem;
    }

    .header-promo__promo-col {
        padding: 0.25rem 0.5rem 0.5rem;
    }

    .header-promo__photo-col {
        padding: 0.65rem 0 0;
        border-left: none;
        border-top: 1px solid rgba(17, 92, 162, 0.12);
        width: 100%;
    }

    [data-bs-theme="dark"] .header-promo__photo-col {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 575.98px) {
    .header-promo__headline {
        font-size: 0.95rem;
    }

    .header-promo__subtext {
        font-size: 0.76rem;
    }

    .header-promo__bolt {
        width: 1rem;
        height: 1rem;
        font-size: 0.65rem;
    }

    .header-promo__photo-col .header-best-photos__thumb {
        width: 120px;
        height: 80px;
    }

    .header-promo__plaque--scroll {
        padding: 0.05rem 1.05rem;
    }

    .header-promo__plaque--scroll::before {
        inset: -0.35rem -0.08rem;
        background-size: 110% 136%;
    }

    .header-promo__plaque--sheet-br,
    .header-promo__plaque--sheet-tr {
        min-height: 0;
        padding: 0.15rem 0.65rem 0.2rem;
    }
}

/* Стиль надписи «Пропись» — рукописный Caveat */
.header-promo__plaque--text-propis .header-promo__headline {
    font-family: 'Caveat', cursive !important;
    font-weight: 700 !important;
    font-size: clamp(1.45rem, 2.8vw, 2rem) !important;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: var(--dark-color, #134e4a) !important;
}

.header-promo__plaque--text-propis .header-promo__subtext {
    font-family: 'Caveat', cursive !important;
    font-weight: 600 !important;
    font-size: clamp(1rem, 1.9vw, 1.2rem) !important;
    line-height: 1.25;
    color: #3d5c58 !important;
}

[data-bs-theme="dark"] .header-promo__plaque--text-propis .header-promo__headline {
    color: var(--dark-color, #134e4a) !important;
}

[data-bs-theme="dark"] .header-promo__plaque--text-propis .header-promo__subtext {
    color: #4a6270 !important;
}

.header-promo__plaque--text-propis.header-promo__plaque:not(.header-promo__plaque--scroll):not(.header-promo__plaque--sheet-br):not(.header-promo__plaque--sheet-tr) .header-promo__headline {
    color: var(--dark-color, #134e4a) !important;
}

[data-bs-theme="dark"] .header-promo__plaque--text-propis.header-promo__plaque:not(.header-promo__plaque--scroll):not(.header-promo__plaque--sheet-br):not(.header-promo__plaque--sheet-tr) .header-promo__headline {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-bs-theme="dark"] .header-promo__plaque--text-propis.header-promo__plaque:not(.header-promo__plaque--scroll):not(.header-promo__plaque--sheet-br):not(.header-promo__plaque--sheet-tr) .header-promo__subtext {
    color: rgba(255, 255, 255, 0.72) !important;
}