.advertisement-section {
    padding: 28px 0;
}

.advertisement-slot {
    position: relative;
    width: 100%;
    aspect-ratio: var(--advertisement-ratio, 6 / 1);
    min-height: 132px;
    max-height: 240px;
    overflow: hidden;
    border: 1px solid #d7e5ed;
    border-radius: 22px;
    background: #eaf4f8;
    box-shadow: 0 14px 36px rgba(14, 54, 77, .08);
}

.advertisement-slot--vertical {
    width: min(100%, 300px);
    min-height: 0;
    max-height: none;
    justify-self: center;
}

.advertisement-slot > img,
.advertisement-slot__link,
.advertisement-slot__link > img {
    display: block;
    width: 100%;
    height: 100%;
}

.advertisement-slot img {
    object-fit: cover;
}

.advertisement-slot.is-placeholder {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 1;
}

.advertisement-slot--vertical.is-placeholder {
    aspect-ratio: 941 / 1672;
}

.advertisement-slot__link {
    cursor: pointer;
}

.advertisement-slot__link:focus-visible {
    outline: 3px solid #0b89bd;
    outline-offset: -5px;
}

.advertisement-slot__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    background: rgba(8, 32, 48, .68);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.workspace-main > .advertisement-slot {
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .advertisement-section {
        padding: 20px 0;
    }

    .advertisement-slot {
        min-height: 118px;
        max-height: 170px;
        border-radius: 16px;
    }

    .advertisement-slot--vertical {
        min-height: 0;
        max-height: none;
    }

    .advertisement-slot.is-placeholder {
        min-height: 0;
        max-height: none;
    }
}
