/* Clearer entry points, typography and touch targets. Keeps existing actions and rules. */
body:not(.app-subview) :is(.home118,.category-section,.home-demand,.results-section,.easy-guide){width:min(1200px,calc(100% - 48px))}
body:not(.app-subview) .home118.ui8-home{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;gap:32px!important;padding:36px 0 24px!important}
.home118 .home118-copy{display:flex!important;flex-direction:column;align-items:stretch;justify-content:center;gap:0}
.home118 .home-telegram-heading{margin:0 0 10px!important;align-items:flex-start}
.home118 #homeTitle118{font-size:clamp(28px,3vw,40px)!important;line-height:1.15!important;letter-spacing:-.035em!important}
.easy-home-lead{margin:0 0 20px;color:#514b5d;font-size:16px;line-height:1.5;max-width:470px}
.home118 .home118-search{min-height:60px!important;border:1px solid #a7a1b3!important;background:#fff!important}
.home118 .home118-search input{font-size:16px!important}
.home118 .home118-search .btn{min-height:48px!important;font-size:16px!important}
.home118 .hunter-launch{margin-top:5px!important}
.home118 .hunter-launch-btn strong{font-size:15px!important}
.home118 .home118-features{grid-template-columns:1fr!important;gap:10px!important}
.home118 .home118-feature{padding:18px 20px!important;border:1px solid #e3deea!important;border-radius:10px!important;min-width:0}
.home118 .home118-feature h2{font-size:18px!important;line-height:1.3!important}
.home118 .home118-feature>p:not(.feature-label){font-size:15px!important;line-height:1.45!important;color:#514b5d;margin:0 0 10px!important}
.home118 .feature-actions{flex-wrap:wrap!important;gap:4px 12px!important}
.home118 .feature-primary,.home118 .feature-link{min-height:44px!important;font-size:14px!important;white-space:normal!important}
.home118 .feature-link-short{display:none!important}.home118 .feature-link-long{display:inline!important}
.easy-guide{border:1px solid #ded8e7;border-radius:10px;background:#faf9fc;margin:0 auto 32px!important;overflow:hidden}
.easy-guide>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:12px 18px;list-style:none;cursor:pointer;color:#4d3076;font-size:16px;font-weight:700}
.easy-guide>summary::-webkit-details-marker{display:none}.easy-guide[open]>summary span:last-child{transform:rotate(180deg)}
.easy-guide-content{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:4px 18px 20px}
.easy-guide-content strong{font-size:15px;color:#292631}.easy-guide-content p{font-size:14px;line-height:1.5;color:#514b5d;margin:5px 0 0}
body.category-page .easy-guide,body.app-subview .easy-guide{display:none}
.category-section>.section-heading h2,.results-section .result-heading h2,.home-demand-heading h2{font-size:22px!important}
#categoryList .category-editorial-label strong{font-size:15px!important}
body:not(.app-subview) .results-section .catalog-card .card-title{font-size:16px!important;line-height:1.4}
body:not(.app-subview) .results-section .catalog-card .card-meta :is(.card-city,time){font-size:14px!important;line-height:1.4}
body:not(.app-subview) .results-section .catalog-card .card-price{font-size:19px!important}
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #5a388a!important;outline-offset:2px}
@media(min-width:1101px){.header-actions .nav-label{display:block!important;font-size:12px;line-height:1.2}.header-actions .nav-btn{min-width:60px;min-height:56px;gap:3px}.topbar{gap:16px!important}}
@media(max-width:760px){
 body:not(.app-subview) :is(.home118,.category-section,.home-demand,.results-section,.easy-guide){width:calc(100% - 32px)}
 body:not(.app-subview) .home118.ui8-home{grid-template-columns:1fr!important;gap:18px!important;padding:24px 0 18px!important}
 .home118 .home-telegram-heading{align-items:center}.home118 #homeTitle118{font-size:26px!important;line-height:1.2!important}
 .easy-home-lead{font-size:15px;margin:0 0 14px}
 .home118 .home118-search{min-height:56px!important}.home118 .home118-search .btn{min-height:46px!important}
 .home118 .home118-actions{margin:4px 0 0!important;align-self:flex-start}
 .home118 .home118-action strong,.home118 .hunter-launch-btn strong{font-size:15px!important}
 .home118 .home118-features{grid-template-columns:1fr!important;gap:8px!important}
 .home118 .home118-feature{padding:16px!important}.home118 .home118-feature h2{font-size:17px!important}
 .home118 .home118-feature>p:not(.feature-label){font-size:15px!important}
 .home118 .feature-primary,.home118 .feature-link{font-size:14px!important}
 .easy-guide{margin-bottom:24px!important}.easy-guide>summary{font-size:15px;padding:12px 14px}.easy-guide-content{grid-template-columns:1fr;gap:16px;padding:4px 14px 18px}
 #categoryList .category-editorial-label strong{font-size:14px!important}
 .home-demand-card h3{font-size:14px!important;white-space:normal!important;overflow:visible!important}
 body:not(.app-subview) .results-section .catalog-card .card-title{font-size:15px!important}
 body:not(.app-subview) .results-section .catalog-card .card-price{font-size:18px!important}
}
@media(prefers-color-scheme:dark){.easy-home-lead,.home118 .home118-feature>p:not(.feature-label),.easy-guide-content p{color:#dcd7e4}.easy-guide{background:#25222b;border-color:#5b526a}.easy-guide>summary{color:#e0dae9}.easy-guide-content strong{color:#fff}.home118 .home118-feature{border-color:#5b526a}.home118 .home118-search{background:#292630!important;border-color:#81778e!important}.home118 .home118-search input{color:#fff!important}}
@media(prefers-reduced-motion:reduce){.easy-guide>summary span{transition:none}}

/* Listings-first layout: the full category list remains one click away. */
@media(min-width:761px){
 body:not(.app-subview) .home118.ui8-home{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important;gap:24px!important;padding:20px 0 16px!important}
 .home118 #homeTitle118{font-size:30px!important}.home118 .home-telegram-heading{margin-bottom:4px!important}
 .easy-home-lead{margin-bottom:10px;font-size:15px}.home118 .home118-search{min-height:52px!important}
 .home118 .home118-search .btn{min-height:44px!important}
 .home118 .home118-features{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .home118 .home118-feature{padding:14px!important}.home118 .home118-feature h2{font-size:16px!important}
 .home118 .home118-feature>p:not(.feature-label){font-size:14px!important;line-height:1.35!important;margin-bottom:6px!important}
 .home118 .feature-actions{gap:0 8px!important}.home118 .feature-primary,.home118 .feature-link{padding:7px 9px!important}
 .home118 .feature-actions .feature-link{padding:7px 2px!important}
 .easy-guide{margin-bottom:14px!important}.easy-guide>summary{min-height:46px;padding:9px 14px;font-size:15px}
 .category-section .home-category-expand:not([hidden]){display:inline-flex;align-items:center;gap:5px;min-height:44px}
 .category-section .home-all-results{display:none!important}
 #categoryList:not([data-expanded="true"]) .kupio-category-tile:not([data-home-primary="true"]){display:none}
 #categoryList .kupio-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 #categoryList .kupio-category-tile{min-height:62px;padding:8px 12px}
 #categoryList .kupio-category-tile img,#categoryList .kupio-category-symbol{width:36px;height:36px;flex-basis:36px}
 .category-section{margin-bottom:14px!important}
}
@media(max-width:760px){
 body:not(.app-subview) .home118.ui8-home{gap:10px!important;padding:14px 0 12px!important}
 .home118 #homeTitle118{font-size:23px!important}.easy-home-lead{margin-bottom:8px;font-size:14px}
 .home118 .home118-search{min-height:50px!important}
 .home118 .home118-features{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .home118 .home118-feature{padding:12px!important}.home118 .home118-feature h2{font-size:16px!important}
 .home118 .home118-feature>p:not(.feature-label){font-size:14px!important;line-height:1.35!important;margin-bottom:6px!important}
 .home118 .feature-actions{flex-wrap:wrap!important;gap:0 8px!important}.home118 .feature-primary,.home118 .feature-link{padding:7px 8px!important}
 .home118 .feature-actions .feature-link{padding:7px 2px!important}.easy-guide{margin-bottom:12px!important}
 .easy-guide>summary{min-height:44px;padding:8px 12px;font-size:14px}
}

@media(max-width:760px){
 #categoryList:not([data-expanded="true"]) .kupio-category-tile[data-home-primary="true"]:not([data-category="Электроника"]):not([data-category="Транспорт"]){display:none}
 .home118 .home118-feature>p:not(.feature-label){line-height:1.3!important}
}

@media(min-width:761px) and (max-width:950px){
 body.app-subview .topbar{height:auto!important;flex-wrap:wrap!important;gap:8px 12px!important}
 body.app-subview .topbar .searchbar{order:4;flex:0 0 100%;width:100%;max-width:none}
}

/* Mobile: clear actions without pushing the catalogue down. */
.easy-lead-mobile{display:none}
@media(max-width:760px){
 .easy-lead-full{display:none}.easy-lead-mobile{display:inline}
 body:not(.app-subview) .home118.ui8-home{padding:12px 0 10px!important;gap:8px!important}
 .home118 .home118-copy{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:0 12px;justify-content:stretch}
 .home118 .home-telegram-heading{grid-column:1/-1;grid-row:1;margin:0 0 4px!important}
 .home118 #homeTitle118{font-size:22px!important}
 .easy-home-lead{grid-column:1/-1;grid-row:2;margin:0 0 8px;font-size:14px;line-height:1.35}
 .home118 .home118-search{grid-column:1/-1;grid-row:3;min-height:50px!important}
 .home118 .home118-actions{grid-column:1;grid-row:4;margin:4px 0 0!important;align-self:center}
 .home118 .hunter-launch{grid-column:2;grid-row:4;margin:4px 0 0!important;align-self:center;min-width:0}
 .home118 .home118-action,.home118 .home118-action.is-primary{min-height:44px!important}
 .home118 .hunter-launch-btn{min-height:44px!important;text-align:left;white-space:normal}
 .home118 .hunter-launch-btn strong{font-size:14px!important;line-height:1.3}
 .home118 .home118-features{align-items:stretch!important}
 .home118 .home118-feature{padding:10px 12px!important;justify-content:flex-start}
 .home118 .home118-feature h2{font-size:15px!important;margin:0 0 4px!important}
 .home118 .home118-feature>p:not(.feature-label){display:none}
 .home118 .feature-actions{width:100%;display:flex;flex-direction:column;align-items:flex-start!important;gap:0!important}
 .home118 .feature-primary,.home118 .feature-link{min-height:44px!important}
 .home118 .feature-exchange .feature-link{margin-top:0!important}
 .easy-guide>summary{font-size:0!important}
 .easy-guide>summary .easy-guide-label{font-size:0}
 .easy-guide>summary .easy-guide-label:after{content:'Как пользоваться сайтом';font-size:14px}
 .easy-guide>summary span:last-child{font-size:16px}
 .easy-guide[open]>summary span:last-child{transform:rotate(180deg)}
 .easy-guide[open]>summary .easy-guide-label{transform:none}
}

@media(max-width:760px){
 .home118 .feature-actions .feature-primary,.home118 .feature-actions .feature-link,.home118 .feature-exchange .feature-link{max-width:100%;white-space:normal!important;overflow-wrap:anywhere;line-height:1.25;text-align:left}
 .home118 .feature-actions .feature-primary{font-size:14px!important}
}

/* Keep category labels inside their tiles at tablet widths. */
@media (min-width:761px) and (max-width:950px){
 #categoryList .kupio-category-tile{gap:7px!important;padding:8px!important}
 #categoryList .kupio-category-title{min-width:0;overflow-wrap:anywhere!important}
 #categoryList .kupio-category-arrow{display:none!important}
}
