.intro-header {
    width: 100%;
    background: var(--login-bg);
}

.intro-header div {
    width: calc(100% - 2rem);
    max-width: 900px;
    padding: 0.5rem 1rem;
    border: 4px double var(--bg-color);
    border-radius: var(--radius);
    margin: 1rem auto;
    text-align: center;
}

.intro-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.intro-header p {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 500;
}

.intro-warn {
    width: 100%;
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--skin1c);
    background-color: var(--wrnng);
}

.intro-info {
    text-align: center;
}

/* banners & products > */
.intro-product-list, .adverts.top, .adverts.bottom {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(0, 216px));
    grid-auto-flow: row dense;
    grid-auto-rows: minmax(auto, 1fr);
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-banners {
    margin: 3rem auto;
    width: calc(100% - 4rem);
}

.carousel-banners a.no-pointer {
    cursor: auto !important;
}

.carousel-banners .tile {
    aspect-ratio: 570 / 275;
    margin-inline: 1rem;
    height: unset;
    max-height: 275px;
}

.carousel-banners .tile .tile-bg {
    background-image: var(--double-img-url);
    background-size: 100% 100%;
}

.intropromo-container {
    display: flex;
    align-self: center;
}

.selloff-first {
    display: flex;
    grid-column: span 2;
}

.selloff-first img {
    max-width: 100%;
    border-radius: var(--radius);
}

.selloff-tile {
    display: flex;
    align-self: center;
    margin-inline: 1px;
}

/* < banners & products */
.adverts {
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
    padding: 1rem;
}

.articles-head {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius);
    margin: 4rem 0 2rem 0;
    overflow: hidden;
    background: var(--sccss);
    color: var(--sccss-text);
}

.articles-head img {
    margin: 0 0.6rem 0.2rem 0;
    filter: var(--fc-3);
}

.articles-head span {
    vertical-align: middle;
    font-size: 1.1rem;
    font-weight: 700;
}

.articles {
    display: grid;
    gap: 1rem 2rem;
}

.article {
    display: flex;
    gap: 0.75rem;
}

.article-img {
    flex: 0 1 180px;
    min-width: 90px;
    height: max-content;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.article-image {
    width: 100%;
    transition: transform ease-in-out 0.5s;
}

a:hover .article-image {
    transform: scale(1.1);
}

.article-body {
    flex: 0 1 auto;
}

.article a.article-link {
    font-size: 1.1rem;
    font-weight: 700;
}

.article .article-text {
    margin-top: 0.75rem;
}

.article .article-text p {
    margin-bottom: 0;
}

.intropromo-box img {
    max-width: 216px;
    border-radius: var(--radius);
}

.advert-list {
    margin: 1rem auto 4rem auto;
    max-width: 80%;
}

dialog {
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.2);
}
dialog.hp-top {
    max-width: 900px;
    max-height: 900px;
    aspect-ratio: 1/1;
    padding: 0;
    & img.campaign {
        width: 100%;
        height: 100%;
    }
    & div {
        position: absolute;
        top: 0;
        right: 0;
        background: var(--bg-color);
        height: 3rem;
        width: 3rem;
        padding: 0.5rem;
        border-bottom-left-radius: var(--radius);
        & .btn-close {
            --icon: 2rem;
        }
    }
    &::backdrop {
        background-color: #000;
        opacity: 0.6;
    }
}

@media (max-width: 500px) {
    .selloff-first {
        place-self: stretch;
        grid-column: 1 / -1;
    }
}

/* sm */
@media (min-width: 576px) {
    .articles {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }

    .article-img {
        min-width: 180px;
    }
}

/* lg */
@media (min-width: 992px) {
    .intro-header div {
        width: calc(100% - 4rem);
        padding: 1rem 2rem;
        margin: 2rem auto;
    }

    .intro-header h1 {
        font-size: 2rem;
    }

    .carousel-banners {
        width: calc(592px) !important;
    }

    .carousel-banners a .tile {
        aspect-ratio: unset !important;
        height: var(--tile-size);
    }
}

@media (min-width: 1740px) {
    .carousel-banners {
        width: calc(592px * 2) !important;
    }
}
