.home-discovery, .home-features, .home-offers, .home-strip {
    --home-ink: #20232a;
    --home-muted: #535965;
    --home-accent: #bb0740;
    --home-accent-hover: #980636;
    --home-line: #dee3e8;
    color: var(--home-ink);
}
.home-discovery { padding-block: 16px 0; }
.home-discovery-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: "categories welcome"; gap: 16px; }
.home-discovery-grid.has-no-categories { grid-template-columns: minmax(0, 1fr); grid-template-areas: "welcome"; }
.home-category-menu {
    grid-area: categories; min-width: 0; align-self: start; margin: 0;
    padding: 2px 10px 6px; border: 1px solid var(--home-line); border-radius: 8px; background: #fff;
}
.home-category-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 7px 4px; }
.home-category-header h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--home-ink); font-size: 15px; font-weight: 700; }
.home-category-header h2 i { color: var(--home-accent); }
.home-category-header a { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; color: var(--home-accent); font-size: 13px; font-weight: 650; }
.home-category-list, .home-category-more ul { margin: 0; padding: 0; list-style: none; }
.home-category-list > li { position: relative; display: flex; align-items: center; gap: 3px; border-top: 1px solid #edf0f2; }
.home-category-list > li > a { display: flex; flex: 1; min-width: 0; min-height: 37px; align-items: center; gap: 8px; padding: 4px; color: var(--home-muted); font-size: 13px; line-height: 1.3; }
.home-category-list img { width: 27px; height: 27px; flex: none; border-radius: 4px; object-fit: cover; }
.home-category-list span { overflow-wrap: anywhere; }
.home-category-list a:hover, .home-category-more summary:hover { color: var(--home-accent); }
.home-category-more summary { display: grid; width: 30px; height: 30px; place-items: center; color: var(--home-muted); cursor: pointer; list-style: none; }
.home-category-more summary::-webkit-details-marker { display: none; }
.home-category-more[open] summary i { transform: rotate(90deg); }
.home-category-more ul {
    position: absolute; z-index: 6; top: calc(100% + 2px); right: 0; width: min(240px, 100%); max-height: 200px;
    overflow: auto; padding: 5px; background: #fff; border: 1px solid var(--home-line); border-radius: 6px;
    box-shadow: 0 8px 18px #20232a14;
}
.home-category-more ul a { display: block; padding: 7px 8px; color: var(--home-muted); font-size: 13px; overflow-wrap: anywhere; }
.home-discovery a:focus-visible, .home-discovery summary:focus-visible, .home-offers a:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }

.home-welcome {
    grid-area: welcome; position: relative; isolation: isolate; display: flex; align-items: center; min-width: 0; min-height: 388px;
    padding: 30px 38px; border: 1px solid #efdce4; border-radius: 8px; overflow: hidden; background: #fff6f9;
}
.home-welcome-image {
    position: absolute; inset: 6px 3% 6px auto; z-index: -1; display: block;
    width: min(52%, 385px); height: calc(100% - 12px); object-fit: contain; object-position: center;
}
.home-welcome-copy { width: min(43%, 390px); min-width: 0; }
.home-welcome h1 { margin: 0 0 12px; color: var(--home-ink); font-size: 46px; font-weight: 750; line-height: 1.12; letter-spacing: 0; overflow-wrap: anywhere; }
.home-welcome p { margin: 0 0 22px; color: var(--home-muted); font-size: 16px; line-height: 1.52; }
.home-welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; }
.home-catalog-link, .home-download-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.home-catalog-link { padding: 8px 13px; color: #fff; background: var(--home-accent); border-radius: 6px; }
.home-catalog-link:hover { color: #fff; background: var(--home-accent-hover); }
.home-download-link { color: var(--home-accent); }
.home-download-link:hover { color: var(--home-accent-hover); text-decoration: underline; }

.home-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 12px; }
.home-feature {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 108px;
    padding: 6px 14px; border: 1px solid var(--home-line); border-radius: 8px; background: #fff;
}
.home-feature img { display: block; width: 96px; height: 96px; object-fit: contain; }
.home-feature h2 { margin: 0 0 4px; color: var(--home-ink); font-size: 17px; font-weight: 700; line-height: 1.25; }
.home-feature p { margin: 0; color: var(--home-muted); font-size: 13px; line-height: 1.45; }
.home-new-products { padding-top: 28px; }
.home-offers { padding-top: 28px; }
.home-offers h2 { margin: 0 0 14px; font-size: 24px; }
.home-offers ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.home-offers a { display: block; border: 1px solid var(--home-line); border-radius: 8px; background: #fff; }
.home-offers img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; border-radius: inherit; }

.home-strip-wrap { padding-top: 20px; }
.home-strip {
    display: grid; grid-template-columns: minmax(0, 1fr) min(35%, 348px);
    align-items: center; gap: 18px; padding: 12px 16px 12px 24px;
    border: 1px solid var(--home-line); border-radius: 8px; background: #fff;
}
.home-strip--app { background: #fff6f9; border-color: #efdce4; }
.home-strip h2 { margin: 0 0 8px; color: var(--home-ink); font-size: 24px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.home-strip p { margin: 0 0 10px; color: var(--home-muted); font-size: 14px; }
.home-strip-art { display: block; width: 100%; height: 144px; object-fit: contain; border-radius: 6px; }
.home-strip--app .home-strip-art {
    justify-self: end; width: min(100%, 286px); height: auto; aspect-ratio: 1.9;
    object-fit: cover; object-position: center bottom;
}
.home-strip a:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }

@media (min-width: 851px) and (max-height: 899px) {
    .home-category-list > li > a { min-height: 31px; }
    .home-category-list img { width: 23px; height: 23px; }
    .home-welcome { min-height: 340px; }
    .home-feature { grid-template-columns: 72px minmax(0, 1fr); min-height: 84px; }
    .home-feature img { width: 72px; height: 72px; }
    .home-new-products { padding-top: 20px; }
}
@media (max-width: 1050px) {
    .home-discovery-grid { grid-template-columns: 225px minmax(0, 1fr); }
    .home-welcome { padding-inline: 24px; }
    .home-welcome h1 { font-size: 38px; }
}
@media (max-width: 850px) {
    .home-discovery { padding-top: 10px; }
    .home-discovery-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "welcome" "categories"; gap: 10px; }
    .home-welcome { min-height: 260px; }
    .home-category-menu { padding-bottom: 4px; }
    .home-category-list { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 6px; }
    .home-category-list > li { flex: none; border: 1px solid var(--home-line); border-radius: 6px; }
    .home-category-list > li > a { max-width: 185px; padding-inline: 6px; }
    .home-category-more { display: none; }
}
@media (max-width: 550px) {
    .home-welcome { min-height: 0; padding: 18px 15px; }
    .home-welcome-image { inset: auto 2px 48px auto; width: 38%; height: auto; aspect-ratio: 1; }
    .home-welcome-copy { width: 100%; }
    .home-welcome h1 { font-size: 29px; margin-bottom: 8px; }
    .home-welcome p { width: 61%; margin-bottom: 14px; font-size: 13px; }
    .home-welcome-actions { gap: 4px 9px; }
    .home-catalog-link, .home-download-link { font-size: 12px; min-height: 38px; }
    .home-features { gap: 8px; padding-top: 9px; }
    .home-feature { grid-template-columns: 44px minmax(0, 1fr); gap: 5px; min-height: 64px; padding: 5px; }
    .home-feature img { width: 44px; height: 44px; }
    .home-feature h2 { margin-bottom: 0; font-size: 13px; }
    .home-feature p { font-size: 12px; }
    .home-new-products { padding-top: 18px; }
    .home-strip-wrap { padding-top: 14px; }
    .home-strip { grid-template-columns: minmax(0, 1fr) min(37%, 132px); gap: 8px; padding: 10px; }
    .home-strip h2 { font-size: 17px; }
    .home-strip p { font-size: 12px; line-height: 1.35; }
    .home-strip-art { height: 80px; }
    body:has(.home-discovery) .wp-floating-btn { right: 8px; bottom: 66px; width: 48px; height: 48px; }
    body:has(.home-discovery) .wp-floating-btn .wp-icon { width: 40px; height: 40px; }
}
@media (max-width: 430px) {
    .home-feature p { display: none; }
}
