.home-page .cont {
    float: none;
    width: auto;
}

.catalog-page.home-page .home-main {
    max-width: 1180px;
    margin: 14px auto 0;
    padding: 0 18px 42px;
    text-align: left;
}

.home-main,
.home-main * {
    box-sizing: border-box;
}

.home-main p {
    margin: 0;
    font-family: Arial, sans-serif;
}

.home-section {
    margin-bottom: 24px;
    padding: clamp(23px, 3.3vw, 38px);
    border: 1px solid var(--catalog-line);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(31, 54, 82, 0.075);
}

.home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 440px);
    gap: 32px;
    align-items: end;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7edf4;
}

.home-section-kicker {
    color: #1675d1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-section-heading h1,
.home-section-heading h2 {
    margin: 5px 0 0;
    color: var(--catalog-ink);
    font-family: Arial, sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.home-main .home-section-heading > p {
    color: var(--catalog-muted);
    font-size: 14px;
    line-height: 1.55;
}

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

.home-category-card,
.home-category-card:link,
.home-category-card:visited {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 14px;
    min-height: 174px;
    align-items: center;
    padding: 20px 17px 20px 21px;
    overflow: hidden;
    color: #172033;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #fff 58%, #f1f8ff 100%);
    box-shadow: 0 7px 18px rgba(32, 58, 88, 0.055);
    transition: transform 0.18s ease, border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.home-category-card:hover {
    color: #172033;
    border-color: #a8cee9;
    box-shadow: 0 13px 26px rgba(24, 89, 140, 0.13);
    transform: translateY(-3px);
}

.home-category-card:focus-visible,
.home-vendor-link:focus-visible,
.home-vendor-more > summary:focus-visible {
    outline: 3px solid rgba(22, 117, 209, 0.32);
    outline-offset: 3px;
}

.home-category-content {
    display: flex;
    min-width: 0;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
}

.home-category-label {
    margin-bottom: 7px;
    color: #778397;
    font: 700 10px/1.2 Arial, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-category-content strong {
    color: #1d2d43;
    font: 750 18px/1.24 Arial, sans-serif;
}

.home-category-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 15px;
    color: #1469b3;
    font: 700 12px/1.2 Arial, sans-serif;
}

.home-category-action::after {
    font-size: 17px;
    line-height: 0.8;
    content: "\2192";
    transition: transform 0.16s ease;
}

.home-category-card:hover .home-category-action::after {
    transform: translateX(3px);
}

.home-category-visual {
    display: grid;
    min-width: 0;
    align-content: center;
    justify-items: center;
    gap: 8px;
}

.home-category-example {
    color: #8a96a7;
    font: 600 9px/1.2 Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.home-category-visual img {
    display: block;
    width: auto;
    max-width: 100px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 7px 8px rgba(41, 67, 91, 0.14));
    transition: transform 0.18s ease;
}

.home-category-card:hover .home-category-visual img {
    transform: scale(1.035);
}

.home-category-placeholder {
    position: relative;
    display: block;
    width: 82px;
    height: 82px;
    border: 12px solid #d7e8f5;
    border-radius: 50%;
}

.home-category-placeholder::after {
    position: absolute;
    inset: 11px;
    border: 7px solid #bdd8eb;
    border-radius: 50%;
    content: "";
}

.home-empty-state {
    padding: 28px;
    color: #5f6e82;
    font: 14px/1.6 Arial, sans-serif;
    text-align: center;
    border: 1px dashed #c9d8e5;
    border-radius: 14px;
    background: #f8fbfe;
}

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

.home-vendor-link,
.home-vendor-link:link,
.home-vendor-link:visited {
    display: flex;
    min-width: 0;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px 10px 13px;
    color: #334a65;
    font: 700 12px/1.2 Arial, sans-serif;
    border: 1px solid #d8e3ed;
    border-radius: 11px;
    background: #f8fbfe;
    transition: color 0.15s ease, border-color 0.15s ease,
        background 0.15s ease, transform 0.15s ease;
}

.home-vendor-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-vendor-link small,
.home-vendor-more summary small {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    flex: 0 0 auto;
    place-items: center;
    color: #5a7691;
    font: 700 10px/1 Arial, sans-serif;
    border-radius: 999px;
    background: #e6f1fa;
}

.home-vendor-link:hover {
    color: #0c5c9f;
    border-color: #abd0ea;
    background: #eef8ff;
    transform: translateY(-1px);
}

.home-vendor-more {
    margin-top: 13px;
    overflow: hidden;
    border: 1px solid #dce5ee;
    border-radius: 13px;
    background: #fff;
}

.home-vendor-more > summary {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 12px 46px 12px 15px;
    color: #34516e;
    font: 700 12px/1.3 Arial, sans-serif;
    list-style: none;
    cursor: pointer;
    background: #f7fafc;
}

.home-vendor-more > summary::-webkit-details-marker {
    display: none;
}

.home-vendor-more > summary::after {
    position: absolute;
    right: 17px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #5a7691;
    border-bottom: 2px solid #5a7691;
    content: "";
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.16s ease;
}

.home-vendor-more[open] > summary::after {
    transform: translateY(-25%) rotate(225deg);
}

.home-vendor-more[open] > summary {
    border-bottom: 1px solid #e3eaf1;
}

.home-vendor-more .home-vendor-list {
    padding: 13px;
}

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

    .home-vendor-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .catalog-page.home-page .home-main {
        margin: 10px auto 0;
        padding: 0 10px 30px;
    }

    .home-section {
        padding: 22px 18px;
        border-radius: 17px;
    }

    .home-section-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        margin-bottom: 19px;
        padding-bottom: 16px;
    }

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

@media (max-width: 560px) {
    .home-category-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-category-card,
    .home-category-card:link,
    .home-category-card:visited {
        grid-template-columns: minmax(0, 1fr) 92px;
        min-height: 150px;
        padding: 17px;
    }

    .home-category-content strong {
        font-size: 17px;
    }

    .home-category-visual img {
        max-width: 86px;
        max-height: 86px;
    }

    .home-vendor-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-category-card,
    .home-category-action::after,
    .home-category-visual img,
    .home-vendor-link,
    .home-vendor-more > summary::after {
        transition: none;
    }
}
