/* Public homepage only. Loaded after the shared stylesheet and homepage styles. */
:root {
    --home-red: #ce0921;
    --home-paper: #fffdf9;
    --home-line: #eae3da;
    --home-shadow: 0 5px 16px rgba(91, 55, 22, .09);
}
.bright-home { background: var(--home-paper); color: #24221c; }
.bright-home .container { width: min(92%, 1280px); max-width: none; padding-inline: 0; }
.bright-home .header, .bright-home .header.header-scrolled {
    top: 7px; height: 62px; border: 0; box-shadow: none; background: transparent;
    backdrop-filter: none; pointer-events: none;
}
.header .header-inner {
    pointer-events: auto; padding-inline: clamp(14px, 2vw, 32px);
    border: 1px solid var(--home-line); border-radius: 19px;
    background: #fff; box-shadow: var(--home-shadow); gap: 12px;
}
.header .nav { gap: 3px; }
.header .nav-link { padding: 7px 10px; border-radius: 30px; font-size: .87rem; }
.header .nav-link.active, .btn-primary { background: linear-gradient(#fa4147, #d40419); color: #fff; }
.header .nav-link::after { display: none; }
.logo-img { max-width: min(20vw, 215px); object-fit: contain; }
.bright-home .hero {
    padding: 94px 0 44px; min-height: 0;
    background: radial-gradient(ellipse at 4% 15%, #fff0c9, transparent 40%), linear-gradient(135deg, #fff8ef, #fffaf7 52%, #fff1e0);
}
.hero::before, .hero::after { pointer-events: none; animation: none; filter: none; }
.hero::before { inset: auto auto -45px -75px; width: 310px; height: 96px; transform: rotate(18deg); background: #f3293c; opacity: 1; }
.hero::after { inset: auto -5% -41px; width: 110%; height: 56px; background: var(--home-paper); opacity: 1; }
.hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(18px, 3vw, 46px); align-items: center; text-align: left; }
.hero-content { padding-left: 3%; }
.hero-content::before { display: none; }
.home-label { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 4px 15px; background: #ffdb24; color: #241c00; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.hero-title { margin: 13px 0 24px; font-size: clamp(2.8rem, 4.65vw, 4.65rem); line-height: .94; letter-spacing: -.06em; }
.hero-title span { position: relative; background: none; -webkit-text-fill-color: var(--home-red); color: var(--home-red); }
.hero-title span::after { content: ''; position: absolute; bottom: -7px; left: 0; width: 63%; height: 5px; border-radius: 90%; background: #f4c900; transform: rotate(-2deg); }
.hero-description { margin: 0 0 16px; font-size: 1rem; line-height: 1.4; max-width: 45ch; }
.hero-buttons { justify-content: flex-start; gap: 10px; margin: 0; flex-wrap: wrap; }
.hero-buttons .btn { padding: 10px 18px; font-size: .94rem; }
.hero-buttons .btn-outline { color: var(--home-red); border-color: var(--home-red); background: white; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.stat-item { min-width: 0; padding: 12px 8px; display: grid; grid-template-columns: auto 1fr; gap: 0 7px; align-content: center; border-radius: 15px; box-shadow: var(--home-shadow); }
.stat-item i { grid-row: span 2; color: var(--home-red); align-self: center; }
.stat-item .stat-value { font-size: 1.5rem; color: var(--home-red); }
.stat-item:nth-child(2) i { color: #35790c; }
.stat-item .stat-label { margin-top: 2px; font-size: .75rem; }
.hero-image { display: block; width: 100%; max-width: none; margin: 0; padding: 12px; isolation: isolate; }
.hero-image::before { inset: 4% 3%; background: #f83839; border-radius: 15% 12%; transform: rotate(-7deg); box-shadow: 10px 9px 0 #ffce30; opacity: 1; }
.hero-image::after { content: 'Широкий выбор товаров для дома и всей семьи'; inset: auto 1% 8% auto; width: min(66%, 310px); padding: 10px 15px; line-height: 1.16; color: white; background: linear-gradient(120deg,#508f12,#277009); border: 2px solid white; border-radius: 16px; transform: rotate(-2deg); animation: none; pointer-events: none; }
.hero-media-mode-carousel .hero-image::after, .hero-media-mode-video .hero-image::after { display: none; }
.hero-image > .hero-image-main, .hero-carousel, .hero-video-frame {
    width: 100%; aspect-ratio: 1.38; height: auto; border: 5px solid white; border-radius: 11% 13% 10% 12%;
    overflow: hidden; box-shadow: 0 9px 23px #58270824;
}
.hero-image > .hero-image-main { object-fit: cover; transform: rotate(2deg); }
.hero-image:hover > .hero-image-main { transform: rotate(2deg); }
.hero-video-frame .hero-video-main { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: contain; background: #191d16; transform: none; }
.hero-carousel .hero-image-main { transform: none; }
.bright-home .section { padding: 25px 0 14px; scroll-margin-top: 80px; }
.bright-home .section:nth-of-type(even):not(.hero) { background: var(--home-paper); }
.section .section-header { text-align: left; margin-bottom: 14px; }
.section-title { display: inline-block; font-size: clamp(1.8rem, 3vw, 2.85rem); line-height: 1.05; margin-bottom: 4px; }
.section-title::after { display: inline-block; width: .54em; height: .45em; margin: 0 0 0 .12em; vertical-align: top; background: linear-gradient(120deg,transparent 28%,#e11a30 29% 43%,transparent 44%),linear-gradient(145deg,transparent 58%,#519e20 59% 73%,transparent 74%); }
.section-subtitle { font-size: .94rem; margin: 0; }
.home-sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.category-section { padding: 0; border: 0; background: none; box-shadow: none; }
.category-tree-accordion { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.accordion-item { min-width: 0; border-radius: 14px; }
.accordion-item .accordion-header { min-height: 48px; padding: 10px; font-size: .88rem; background: white; }
.accordion-title { min-width: 0; gap: 7px; overflow-wrap: anywhere; }
.filters { margin: 12px 0; padding: 0; border: 0; box-shadow: none; background: none; }
.filters-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto; gap: 10px; }
.filters-grid > * { min-width: 0; width: 100%; }
.products-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.products-grid .product-card { display: flex; flex-direction: column; min-width: 0; background: white; border-radius: 16px; color: inherit; text-decoration: none; box-shadow: var(--home-shadow); }
.product-image { aspect-ratio: 1.26; background: linear-gradient(135deg,#fff0de,#fff9ef); }
.product-image img, .product-card:hover .product-image img { object-fit: contain; transform: none; }
.product-content { position: relative; flex: 1; padding: 10px 12px 38px; }
.product-content::after { content: '→'; position: absolute; right: 10px; bottom: 9px; padding: 1px 8px; border-radius: 6px; color: white; background: var(--home-red); }
.product-category { font-size: .68rem; letter-spacing: 0; margin-bottom: 4px; }
.product-title { font-size: .92rem; overflow: visible; display: block; line-height: 1.25; overflow-wrap: anywhere; }
.product-price { flex-wrap: wrap; gap: 4px 8px; }
.price-current { color: var(--home-red); font-size: 1.1rem; }
.bright-home #promotions { background: linear-gradient(110deg,#fff1dc,#fffaf5); }
#promotions .container { display: grid; grid-template-columns: minmax(185px,1fr) minmax(0,3fr); gap: 22px; align-items: start; }
.promotions-grid { grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 12px; }
.promotion-card { background: white; }
.promotion-image { height: 135px; }
.promotion-image img { object-fit: contain; background: #fff5e1; }
.promotion-content,.news-content { padding: 12px; }
.promotion-title,.news-title { font-size: 1rem; line-height: 1.23; }
.promotion-description,.news-content p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.retail-points-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.retail-card { min-width: 0; padding: 14px; overflow-wrap: anywhere; background: white; }
.home-store-cover { display: block; width: calc(100% + 28px); max-width: none; height: clamp(85px,8vw,125px); margin: -14px -14px 12px; object-fit: cover; }
.retail-icon { width: 32px; height: 32px; flex: none; font-size: .9rem; }
.retail-info-item { font-size: .85rem; }
.news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.news-grid .news-card { display: grid!important; grid-template-columns: 32% 1fr; align-items: center; padding: 9px; background: white; }
.news-card .news-image { height: 96px; border-radius: 10px; overflow: hidden; }
.news-content { min-width: 0; }
.bright-home .footer { background: linear-gradient(120deg,#183e2d,#0c3324); padding-top: 30px; }
.footer-logo-img { background: white; border-radius: 8px; padding: 4px; }
.bright-home :focus-visible { outline: 3px solid #16669a; outline-offset: 2px; }
@media (max-width: 1100px) {
    .header .nav { display: none; }
    .header .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .bright-home .mobile-nav.active { display: flex; }
    .category-tree-accordion { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; gap: 18px; }
    .hero-content { padding: 0; }
    .hero-image { max-width: 540px; margin: auto; }
    .products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .retail-points-grid,.news-grid,.filters-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    #promotions .container { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
    .bright-home .container { width: 94%; }
    .bright-home .header,.bright-home .header.header-scrolled { height: 54px; }
    .header-inner { gap: 5px; }
    .header .logo { min-width: 0; }
    .header .logo-img { max-width: min(40vw,155px); height: auto; max-height: 42px; }
    .header .header-cta > a { display: none; }
    .bright-home .hero { padding: 85px 0 22px; }
    .hero-title { font-size: clamp(2.6rem,10vw,3.4rem); }
    .hero-buttons .btn { width: auto; flex: 1 1 140px; padding-inline: 9px; }
    .hero-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
    .stat-item { min-width: 0; padding: 9px 5px; column-gap: 3px; }
    .stat-label { overflow-wrap: anywhere; }
    .products-grid,.category-tree-accordion { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .product-content { padding-inline: 9px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > * { min-width: 0; overflow-wrap: anywhere; }
}
.home-order { display:flex; align-items:center; gap:9px; margin:0 0 14px; font-size:.86rem; }
.home-order .filter-select { width:auto; min-height:40px; }
.bright-home [hidden] { display:none!important; }
.home-category-offer {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    position: relative; isolation: isolate; overflow: hidden; min-height: 135px;
    padding: 17px; border-radius: 20px; text-decoration: none; background: #357619; color: #fff;
}
.home-category-offer:last-child { background: #ffda54; color: #392900; }
.home-category-offer img { position:absolute; z-index:-2; right:0; top:0; width:57%; height:100%; object-fit:cover; }
.home-category-offer::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#357619 32%,transparent 90%); }
.home-category-offer:last-child::before { background:linear-gradient(90deg,#ffda54 32%,transparent 90%); }
.home-category-offer strong { max-width:65%; line-height:1.1; font-size:1.2rem; overflow-wrap:anywhere; }
.home-category-offer small { font-weight:700; margin-bottom:4px; }
@media (min-width:801px) {
    .promotions-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
