main.content {
    padding: 0;
}

.tool-home {
    min-height: calc(100vh - 135px);
    background: var(--home-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

.tool-home a,
.tool-home a:hover,
.tool-home a:focus {
    text-decoration: none;
}

.home-hero {
    padding: 32px 0 28px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--card-bg);
}

.home-hero__grid {
    max-width: 820px;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.home-hero__copy h1 {
    max-width: 780px;
    margin: 10px 0 10px;
    color: var(--text-main);
    font-size: 34px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
}

.home-hero__copy p {
    max-width: 680px;
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

.home-section {
    padding: 34px 0;
}

.home-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.home-section__head h2,
.home-catalog__bar h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 25px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.home-section__head p {
    max-width: 420px;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

.home-catalog {
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
    background: var(--page-bg-muted);
}

.home-catalog__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: end;
    margin-bottom: 16px;
}

.home-search {
    position: relative;
}

.home-search__input {
    width: 100%;
    height: 42px;
    padding: 0 70px 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.home-search__input:focus {
    border-color: var(--brand);
    box-shadow: none;
}

.home-search__clear {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 58px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    outline: none;
}

.home-search__clear:hover {
    background: var(--input-muted-bg);
    color: var(--text-sub);
}

.home-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.home-tab {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--border-main);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 700;
}

.home-tab:hover,
.home-tab.is-active {
    border-color: var(--brand-soft-border);
    background: var(--brand-soft);
    color: var(--brand);
}

.home-category {
    margin-bottom: 30px;
    scroll-margin-top: 82px;
}

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

.home-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-category__title {
    display: block;
}

.home-category__title h3 {
    margin: 0 0 3px;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

.home-category__title p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.home-category__head > span {
    color: var(--text-faint);
    font-size: 13px;
    white-space: nowrap;
}

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

.home-tool-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    min-height: 104px;
    padding: 16px;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-main);
    transition: border-color .18s, background-color .18s;
}

.home-tool-card:hover {
    border-color: var(--brand-soft-border);
    background: var(--brand-tint);
}

.home-tool-card__icon {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 9px;
    background: var(--brand-tint);
    color: var(--brand);
    overflow: hidden;
    font-size: 20px;
}

.home-tool-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-tool-card strong {
    display: block;
    min-width: 0;
    margin-bottom: 5px;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.35;
}

.home-tool-card em {
    display: -webkit-box;
    min-height: 39px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-empty {
    margin-bottom: 20px;
    padding: 28px;
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    background: var(--card-bg);
    text-align: center;
    color: var(--text-muted);
}

.home-empty strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
    font-size: 16px;
}

.home-empty span {
    display: block;
    font-size: 13px;
}

.home-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-notes p {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.home-notes strong {
    color: var(--text-main);
}

@media (max-width: 1199px) {
    .home-tool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .home-catalog__bar {
        grid-template-columns: 1fr;
    }

    .home-section__head {
        display: block;
    }

    .home-section__head p {
        max-width: none;
        margin-top: 9px;
        text-align: left;
    }

    .home-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-notes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .home-hero {
        padding: 26px 0 24px;
    }

    .home-hero__copy h1 {
        font-size: 28px;
    }

    .home-hero__copy p {
        font-size: 14px;
    }

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

    .home-section__head h2,
    .home-catalog__bar h2 {
        font-size: 22px;
    }

    .home-tool-grid {
        grid-template-columns: 1fr;
    }

    .home-tabs {
        flex-wrap: nowrap;
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px 3px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home-tabs::-webkit-scrollbar {
        display: none;
    }

    .home-tab {
        flex: 0 0 auto;
    }

    .home-category__head {
        align-items: flex-start;
    }

    .home-category__head > span {
        display: none;
    }
}
