/* =========================
   Category page
========================= */

.category-page {
    padding: 42px 0 70px;
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: end;
    margin-bottom: 26px;
}

.category-hero__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e3e8f2;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.category-hero__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #eaf0ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.category-hero__card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    color: #111827;
}

.category-hero__card span {
    display: block;
    font-size: 14px;
    color: #687386;
}

/* Filter */

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.category-filter__item {
    padding: 9px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e3e8f2;
    color: #4b5563;
    font-size: 14px;
    transition: 0.2s ease;
}

.category-filter__item:hover,
.category-filter__item_active {
    background: #eef2ff;
    border-color: #bfccff;
    color: #1d4ed8;
}

/* Sections */

.category-section {
    margin-bottom: 48px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Top cards */

.category-tool-card {
    position: relative;
    display: block;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e3e8f2;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.045);
    transition: 0.2s ease;
}

.category-tool-card:hover {
    transform: translateY(-3px);
    border-color: #bfccff;
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.08);
}

.category-tool-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: #eaf0ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.category-tool-card__content h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #111827;
}

.category-tool-card__content p {
    font-size: 15px;
    color: #687386;
}

.category-tool-card__badge {
    display: inline-block;
    margin-top: 16px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #687386;
    font-size: 13px;
    font-weight: 600;
}

/* Tool rows */

.tools-list {
    display: grid;
    gap: 12px;
}

.tool-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e3e8f2;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.035);
    transition: 0.2s ease;
}

.tool-row:hover {
    transform: translateY(-2px);
    border-color: #bfccff;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.07);
}

.tool-row__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eaf0ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.tool-row__title {
    margin-bottom: 4px;
    font-size: 18px;
    color: #111827;
}

.tool-row__text {
    color: #687386;
    font-size: 14px;
}

.tool-row__tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #687386;
    font-size: 13px;
    white-space: nowrap;
}

/* Info */

.category-info {
    margin-top: 22px;
}

.category-info__content {
    max-width: 920px;
    padding: 30px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e3e8f2;
}

.category-info__content h2 {
    margin-bottom: 14px;
    font-size: 26px;
    color: #111827;
}

.category-info__content p {
    margin-bottom: 14px;
    color: #687386;
}

.category-info__content p:last-child {
    margin-bottom: 0;
}

/* Adaptive */

@media (max-width: 980px) {
    .category-hero {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .category-page {
        padding: 32px 0 54px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-hero__card {
        align-items: flex-start;
    }

    .tool-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .tool-row__tag {
        grid-column: 2;
        width: fit-content;
    }

    .category-info__content {
        padding: 24px;
    }
}