/* =====================================================
   РЕКЛАМНЫЕ МЕСТА (js/ads.js)
   Высота задана заранее, чтобы текст не прыгал, когда баннер догрузится
   ===================================================== */

.ad-slot {
    --ad-line: var(--border, #e3e6e8);
    --ad-muted: var(--text-muted, #737b82);
    --ad-soft: #f7f7f5;

    position: relative;
    display: block;
    margin: 40px auto;
    font-family: "Inter", Arial, sans-serif;
}

.ad-slot[hidden] { display: none; }

.ad-slot--wide {
    max-width: 970px;
    min-height: 120px;
}

.ad-slot--inline {
    max-width: var(--pf-col, 700px);
    min-height: 250px;
    margin: 36px auto 40px;
}

/* «Реклама» над блоком — маркировка по закону */
.ad-slot__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ad-muted);
}

.ad-slot__unit { width: 100%; }

.ad-slot .ad-slot__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: inherit;
    height: 100%;
    padding: 24px 16px;
    border: 1px dashed var(--ad-line);
    border-radius: 6px;
    background: var(--ad-soft);
    color: var(--ad-muted);
    text-align: center;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.ad-slot--wide .ad-slot__placeholder { min-height: 120px; }
.ad-slot--inline .ad-slot__placeholder { min-height: 250px; }

.ad-slot__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main, #171717);
}

/* рубрика: страница без общей обёртки main, место стоит между блоками */
.ad-slot--section {
    width: calc(100% - 48px);
}

@media (max-width: 760px) {
    .ad-slot { margin: 28px auto; }
    .ad-slot--wide,
    .ad-slot--wide .ad-slot__placeholder { min-height: 100px; }
    .ad-slot--section { width: calc(100% - 28px); }
}

@media print {
    .ad-slot { display: none !important; }
}
