.article-index {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 6% 22%, rgba(255, 205, 24, .13), transparent 22%),
        radial-gradient(circle at 92% 78%, rgba(255, 205, 24, .12), transparent 24%),
        linear-gradient(180deg, #fbf7ef, #f5eddf);
}

.article-index::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image:
        radial-gradient(#e5b91b 1px, transparent 1px),
        linear-gradient(135deg, transparent 48%, rgba(229, 185, 27, .15) 49%, transparent 50%);
    background-position: right 30px top 30px, left bottom;
    background-size: 18px 18px, 260px 260px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 5%, #000 18%, #000 82%, transparent 95%);
    mask-image: linear-gradient(90deg, transparent 0 5%, #000 18%, #000 82%, transparent 95%);
}

.article-index > .container {
    position: relative;
}

.article-grid {
    gap: 26px;
}

.article-card,
.article-card-featured {
    position: relative;
    isolation: isolate;
    grid-column: auto;
    min-height: 410px;
    overflow: hidden;
    padding: 42px;
    border: 1px solid rgba(171, 143, 92, .28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 42%, rgba(255, 220, 92, .18), transparent 31%),
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 251, 243, .93));
    box-shadow:
        0 24px 55px rgba(85, 61, 21, .09),
        inset 0 0 0 1px rgba(255, 255, 255, .72);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.article-card-featured {
    grid-column: 1 / -1;
    min-height: 430px;
    padding: 48px;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 170, 28, .52);
    box-shadow: 0 34px 70px rgba(85, 61, 21, .15);
}

.article-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 56%;
    height: 72%;
    right: -1%;
    top: 13%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: saturate(.96) contrast(1.02) drop-shadow(0 20px 25px rgba(120, 83, 18, .08));
    opacity: .97;
    transition: transform .3s ease;
}

.article-card:hover::before {
    transform: translateY(-5px) scale(1.025);
}

.article-card:nth-child(1)::before { background-image: url("./advice-short-number.webp"); }
.article-card:nth-child(2)::before { background-image: url("./advice-sms-email.webp"); }
.article-card:nth-child(3)::before { background-image: url("./advice-payment.webp"); }
.article-card:nth-child(4)::before { background-image: url("./advice-appointment.webp"); }
.article-card:nth-child(5)::before { background-image: url("./advice-api.webp"); }

.article-card-featured::before {
    width: 47%;
    height: 82%;
    right: 2%;
    top: 7%;
}

.article-card::after {
    content: "";
    position: absolute;
    z-index: -2;
    width: 250px;
    height: 250px;
    right: -100px;
    bottom: -120px;
    border: 1px solid rgba(229, 178, 21, .27);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(229, 178, 21, .035), 0 0 0 68px rgba(229, 178, 21, .025);
}

.article-card-top {
    position: relative;
    z-index: 1;
    justify-content: flex-end;
}

.article-card-top em {
    padding: 10px 15px;
    border-radius: 10px;
    color: #403c32;
    background: rgba(246, 238, 222, .9);
    letter-spacing: .11em;
    font-weight: 850;
}

.article-card h2,
.article-card p {
    position: relative;
    z-index: 1;
    width: 56%;
    max-width: 620px;
}

.article-card h2 {
    margin: 58px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3vw, 49px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.article-card p {
    color: #5f605a;
    font-size: 15px;
    line-height: 1.7;
}

.article-card-featured h2 {
    font-size: clamp(42px, 4.4vw, 66px);
}

.article-card-bottom {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 22px;
    border-color: rgba(51, 46, 35, .14);
    font-size: 13px;
}

.article-card-bottom > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.article-card-bottom > span::before {
    content: "◷";
    color: #d7a700;
    font-size: 23px;
    line-height: 1;
}

.article-card-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    border-radius: 12px;
    background: #ffd51f;
    box-shadow: 0 10px 24px rgba(218, 161, 0, .18);
    font-size: 13px;
    transition: transform .2s ease, background .2s ease;
}

.article-card-bottom a:hover {
    transform: translateX(3px);
    background: #ffca05;
}

@media (max-width: 920px) {
    .article-grid { grid-template-columns: 1fr; }
    .article-card-featured { grid-column: auto; }
    .article-card,
    .article-card-featured { min-height: 390px; padding: 34px; }
    .article-card::before { width: 48%; opacity: .72; }
    .article-card h2,
    .article-card p { width: 61%; }
}

@media (max-width: 620px) {
    .article-card,
    .article-card-featured { min-height: 430px; padding: 28px; }
    .article-card::before {
        width: 68%;
        height: 45%;
        right: -7%;
        top: 18%;
        opacity: .34;
    }
    .article-card-top { justify-content: flex-start; }
    .article-card h2,
    .article-card p { width: 100%; }
    .article-card h2,
    .article-card-featured h2 { margin-top: 52px; font-size: 36px; }
    .article-card p { font-size: 14px; }
    .article-card-bottom { gap: 12px; }
    .article-card-bottom a { padding: 11px 13px; }
}
