.smart-page {
    background: transparent;
}

.drugs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.drug-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(13, 37, 104, .07);
    border-radius: 16px;
    background: linear-gradient(160deg, #fff, #fbfdff);
    box-shadow: 0 14px 40px rgba(13, 37, 104, .075);
    transition: transform .32s cubic-bezier(.2, .75, .25, 1),
                box-shadow .32s cubic-bezier(.2, .75, .25, 1),
                border-color .32s cubic-bezier(.2, .75, .25, 1);
}

.drug-card:hover {
    transform: translateY(-7px);
    border-color: rgba(47, 111, 237, .15);
    box-shadow: 0 24px 58px rgba(13, 37, 104, .14);
}

.drug-card:focus-visible {
    outline: 3px solid rgba(47, 111, 237, .35);
    outline-offset: 3px;
}

.drug-thumb {
    position: relative;
    aspect-ratio: 1271 / 570;
    overflow: hidden;
    background: linear-gradient(145deg, #edf4ff, #dce9ff);
}

.drug-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 72% 18%, rgba(255, 255, 255, .22), transparent 35%);
}

.drug-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.drug-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 18px 18px 19px;
}

.drug-name {
    color: #0d1b33;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.012em;
}

.btn-go {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    min-height: 28px;
    margin-top: auto;
    color: #2158d1;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: gap .2s;
}

.btn-go::after {
    content: '';
    position: absolute;
    right: 100%;
    bottom: -2px;
    left: 0;
    height: 1px;
    background: currentColor;
    transition: right .28s cubic-bezier(.2, .75, .25, 1);
}

.drug-card:hover .btn-go {
    gap: 11px;
}

.drug-card:hover .btn-go::after {
    right: 0;
}

.btn-go svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1280px) {
    .drugs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .drugs-grid {
        grid-template-columns: 1fr;
    }

    .drug-body {
        padding: 17px 17px 18px;
    }
}
