.ya-ad-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.45;
    user-select: none;
    pointer-events: none;
    margin-bottom: 5px;
}

.ya-ad-label::before,
.ya-ad-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border, rgba(139,148,158,0.15));
}


.ya-ad-inline {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.ya-ad-inline.ad-visible {
    opacity: 1;
    transform: translateY(0);
}

.ya-ad-inline__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.45;
    user-select: none;
    pointer-events: none;
    margin-bottom: 5px;
}

.ya-ad-inline__label::before,
.ya-ad-inline__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border, rgba(139,148,158,0.15));
}

.ya-ad-inline__wrap {
    min-height: 100px;
    border-radius: 12px;
    overflow: hidden;
    contain: layout;
    outline: 1px solid var(--border, rgba(139,148,158,0.1));
}

@media (max-width: 600px) {
    .ya-ad-inline          { margin: 14px 0; }
    .ya-ad-inline__wrap    { min-height: 80px; border-radius: 8px; }
}


.ya-ad-strip {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 20px 16px;
    text-align: center;
}

.ya-ad-strip__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.4;
    user-select: none;
    margin-bottom: 6px;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.ya-ad-strip__label::before,
.ya-ad-strip__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border, rgba(139,148,158,0.15));
}

.ya-ad-strip > div[id^="yandex_rtb"] {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
}


.ya-ad-float {
    display: none;
    position: fixed;
    top: 130px;
    z-index: 50;
    width: 160px;
    pointer-events: auto;
    opacity: 0;
    animation: adFloatIn 0.5s ease 0.8s forwards;
}

.ya-ad-float__label {
    font-size: 9px;
    font-weight: 500;
    color: var(--muted, #8b949e);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0.35;
    user-select: none;
    pointer-events: none;
    text-align: center;
    display: block;
    margin-bottom: 6px;
}

.ya-ad-float__inner {
    border-radius: 10px;
    overflow: hidden;
    outline: 1px solid var(--border, rgba(139,148,158,0.1));
}

@keyframes adFloatIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1500px) {
    .ya-ad-float            { display: block; }
    .ya-ad-float--left      { right: calc(50% + 510px); }
    .ya-ad-float--right     { left:  calc(50% + 510px); }
}

@media (min-width: 1640px) {
    .ya-ad-float--left      { right: calc(50% + 560px); }
    .ya-ad-float--right     { left:  calc(50% + 560px); }
}

@media (min-width: 1760px) {
    .ya-ad-float--left      { right: calc(50% + 600px); }
    .ya-ad-float--right     { left:  calc(50% + 600px); }
}