/* PercUnTirgo — Classifieds Platform */
@font-face{font-family:'Pradock Sans';src:url('../fonts/Pradock-Bold.otf') format('opentype');font-weight:700;font-style:normal;font-display:swap}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
    --primary:#0f172a;--primary-light:#1e293b;
    --accent:#00ad65;--accent-hover:#009457;
    --brand:#00ad65;--brand-dark:#009457;
    --peach:#f6a06b;--peach-dark:#ee8a52;
    --surface:#fff;--surface-2:#f8fafc;--surface-3:#f1f5f9;
    --border:#e2e8f0;--border-dark:#cbd5e1;
    --text:#0f172a;--text-2:#475569;--text-3:#94a3b8;
    --success:#16a34a;--danger:#dc2626;
    --radius-sm:3px;--radius:4px;--radius-lg:8px;--radius-pill:50px;
    --shadow-sm:0 1px 2px rgba(0,0,0,.05);--shadow:0 1px 3px rgba(0,0,0,.08);
    --shadow-lg:0 4px 12px rgba(0,0,0,.1);--transition:150ms ease;
}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'Inter',sans-serif;color:var(--text);background:var(--surface);line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{max-width:1240px;margin:0 auto;padding:0 20px}

/* Nav */
/* ── Header: two-tier (kufar-style) ── */
.site-header{position:relative;z-index:100;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 1px 3px rgba(0,0,0,.04)}
.topbar{background:#474747;color:#fff}
.topbar-inner{display:flex;align-items:center;height:46px;gap:28px}
.topbar-cats{display:inline-flex;align-items:center;gap:10px;background:none;border:none;color:#fff;font-family:inherit;font-size:.92rem;font-weight:700;cursor:pointer;padding:6px 0;white-space:nowrap;flex-shrink:0}
.topbar-cats:hover,.topbar-cats.active{color:#c9f2de}
.nav-cats-icon{display:flex;flex-direction:column;gap:3px}
.nav-cats-icon span{width:17px;height:2px;background:currentColor;border-radius:1px}
.topbar-links{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:0 26px;height:22px;overflow:hidden;margin-left:30px}
.topbar-links a{color:#fff;font-size:.9rem;line-height:22px;white-space:nowrap;transition:color var(--transition)}
.topbar-links a:hover{color:#c9f2de}
.topbar-right{display:flex;align-items:center;gap:26px;flex-shrink:0}
.topbar-fav{color:#fff;display:flex;transition:color var(--transition)}
.topbar-fav:hover{color:#ff8fa3}
.lang-switcher{display:flex;gap:12px}
.lang-btn{font-size:.95rem;font-weight:700;color:rgba(255,255,255,.65);transition:color var(--transition);letter-spacing:.02em}
.lang-btn:hover,.lang-btn.active{color:#fff}

.nav{background:#fff}
.nav-inner{display:flex;align-items:center;height:76px;gap:28px}
.nav-logo{font-weight:800;font-size:1.15rem;color:var(--brand);letter-spacing:-.02em;flex-shrink:0}
.nav-search{flex:1;min-width:0;max-width:620px;position:relative;display:flex}
.nav-search-input{flex:1;min-width:0;height:46px;padding:0 50px 0 18px;border:1px solid transparent;border-radius:8px;background:#efefef;font-family:inherit;font-size:.95rem;color:var(--text);outline:none;transition:all var(--transition)}
.nav-search-input::placeholder{color:#8a8a8a}
.nav-search-input:focus{background:#fff;border-color:var(--brand)}
.nav-search-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:none;border:none;color:#8a8a8a;cursor:pointer;border-radius:6px;transition:color var(--transition)}
.nav-search-btn:hover{color:var(--brand)}
.nav-right{display:flex;align-items:center;gap:14px;margin-left:auto;flex-shrink:0}
.nav-links{display:flex;gap:4px}
.nav-link{font-size:.9rem;font-weight:500;color:var(--text-2);transition:color var(--transition)}
.nav-link:hover{color:var(--brand)}
.nav .btn-post{display:inline-flex;align-items:center;gap:10px;background:var(--brand);color:#fff;height:46px;padding:0 22px;font-weight:700;font-size:.95rem;border-radius:8px;border:none;transition:background var(--transition)}
.nav .btn-post:hover{background:var(--brand-dark)}
.btn-post-plus{font-size:1.5rem;font-weight:400;line-height:1;margin-top:-2px}
.nav .btn-login{display:inline-flex;align-items:center;background:#fff;color:var(--brand);height:46px;padding:0 18px;font-weight:700;font-size:.95rem;border:1px solid var(--brand);border-radius:8px;transition:all var(--transition)}
.nav .btn-login:hover{background:#eefaf4}
.nav-burger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.nav-burger span{width:20px;height:2px;background:var(--text)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 18px;font-size:.88rem;font-weight:600;font-family:inherit;border:1px solid transparent;border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);white-space:nowrap}
.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}
.btn-outline{background:transparent;border-color:var(--border-dark);color:var(--text-2)}.btn-outline:hover{border-color:var(--text-2);color:var(--text)}
.btn-danger{background:var(--danger);color:#fff}
.btn-sm{padding:6px 14px;font-size:.82rem}.btn-xs{padding:4px 10px;font-size:.78rem}.btn-block{width:100%}

/* Hero */
/* ── Pre-nav image strip (top slice of the hero image above the white nav bar) ── */
.pre-nav-strip{height:56px;background-image:url('../img/hero.jpg');background-size:cover;background-position:center top;position:relative;overflow:hidden;border-bottom:1px solid rgba(0,0,0,.05)}

/* ── Mega hero — image shows more with taller container ── */
.mega-hero{position:relative;overflow:hidden;background-image:url('../img/hero.jpg');background-size:cover;background-position:center 72%;background-repeat:no-repeat;min-height:440px;display:flex;align-items:center}
.mega-hero-img{display:none}
.mega-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1) 0%,rgba(0,0,0,0) 45%,rgba(0,0,0,.2) 100%);z-index:1;pointer-events:none}
.mega-hero-content{position:relative;z-index:2;width:100%;padding:30px 0}
.mega-hero-tagline{font-family:'Times','Times New Roman',serif;font-style:italic;font-weight:600;font-size:3.4rem;color:#fff;margin-bottom:34px;letter-spacing:-.005em;text-shadow:0 2px 14px rgba(0,0,0,.55),0 1px 4px rgba(0,0,0,.5);line-height:1.15;text-align:left;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Hero tabs (4 buttons — currently "Кнопка" placeholders, move.ru-style pill tabs) */
.hero-tabs{display:flex;justify-content:flex-start;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.hero-tab{padding:10px 26px;background:rgba(28,37,53,.72);color:#fff;border:none;border-radius:24px;font-family:inherit;font-size:.95rem;font-weight:500;cursor:pointer;transition:all var(--transition)}
.hero-tab:hover{background:rgba(28,37,53,.88)}
.hero-tab.active{background:#fff;color:var(--primary)}

/* Hero search wrapper — filter bar on top, action buttons underneath aligned right */
.hero-search-wrapper{max-width:1240px;margin:0;display:flex;flex-direction:column;gap:18px}
.hero-filter-bar{display:flex;background:var(--surface);border-radius:3px;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.22);align-items:stretch}
.hero-filter-select{flex:0 0 220px;padding:18px 38px 18px 22px;border:none;border-right:1px solid var(--border);font-size:1rem;font-family:inherit;color:var(--text);outline:none;background:var(--surface);cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b95a5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}
.hero-filter-price{flex:0 0 260px;display:flex;align-items:center;border-right:1px solid var(--border);padding:0 10px;gap:6px}
.hero-filter-input{flex:1;min-width:0;padding:18px 8px;border:none;font-size:1rem;font-family:inherit;color:var(--text);outline:none}
.hero-filter-input::placeholder{color:var(--text-3)}
.hero-filter-dash{color:var(--text-3);font-weight:400;padding:0 4px}
.hero-filter-search{flex:1;min-width:240px;padding:18px 22px;border:none;font-size:1.02rem;font-family:inherit;color:var(--text);outline:none}

/* Action buttons below filter bar, right-aligned like move.ru */
.hero-actions{display:flex;justify-content:flex-end;gap:14px}
.hero-actions-centered{justify-content:center}
.btn-hero-orange{border-radius:2px;padding:15px 44px;background:#f26522;color:#fff;border:none;font-family:inherit;font-weight:700;font-size:1.02rem;cursor:pointer;transition:background var(--transition);white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(0,0,0,.28)}
.btn-hero-orange:hover{background:#d24f10}
.btn-hero-blue{border-radius:2px;padding:15px 44px;background:#2078d4;color:#fff;border:none;font-family:inherit;font-weight:700;font-size:1rem;cursor:pointer;transition:background var(--transition);white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.22)}
.btn-hero-blue:hover{background:#1863b5}
/* Inline variant for the search button attached to the filter bar — no border radius, no shadow (it's inside the pill) */
.btn-hero-blue-inline{border-radius:0;box-shadow:none;padding:18px 38px;font-size:1rem;letter-spacing:.02em}

/* Category grid */
.home-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:20px;align-items:start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.home-cat-block{display:flex;flex-direction:column;padding:14px 18px 12px;background:transparent;border:none;border-radius:0;transition:all var(--transition)}
.home-cat-block:hover{background:transparent}
.home-cat-header{display:flex;align-items:center;gap:8px;padding-bottom:7px;margin-bottom:7px;border-bottom:1px solid var(--border-dark)}
.home-cat-header:hover .home-cat-name{color:var(--accent)}
.home-cat-icon{font-size:1.1rem;line-height:1;flex-shrink:0}
.home-cat-name{font-size:.82rem;font-weight:800;color:var(--primary);text-transform:uppercase;letter-spacing:.04em;transition:color var(--transition)}
.home-cat-subs{list-style:none;display:flex;flex-direction:column;flex:1}
.home-sub-link{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:2px 0;font-size:.85rem;line-height:1.45;color:var(--text-2);transition:color var(--transition)}
.home-sub-link:hover{color:var(--accent)}
.home-sub-count{font-size:.74rem;color:var(--text-3);flex-shrink:0}
.home-sub-count.zero{color:var(--border-dark)}
.home-sub-more{font-weight:600;color:var(--accent);font-size:.82rem;margin-top:2px}
.home-sub-more:hover{color:var(--accent-hover)}
.home-cat-viewall{margin-top:8px;padding-top:7px;border-top:1px solid var(--border);font-size:.78rem;font-weight:600;color:var(--text-3);transition:color var(--transition)}
.home-cat-viewall:hover{color:var(--accent)}

/* Section */
.section{padding:32px 0}
.section-gray{background:var(--surface-2)}
.section-title{font-size:1.3rem;font-weight:700;margin-bottom:20px}
.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.section-header h1{font-size:1.5rem;font-weight:800}

/* Listing grid */
.listing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.listing-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:all var(--transition);display:flex;flex-direction:column}
.listing-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.listing-card-img{aspect-ratio:4/3;overflow:hidden;background:var(--surface-3);flex-shrink:0}
.listing-card-img img{width:100%;height:100%;object-fit:cover}
.listing-card-body{padding:12px 14px;display:flex;flex-direction:column;flex:1}
.listing-card-title{font-size:.92rem;font-weight:700;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.listing-card-meta{font-size:.8rem;color:var(--text-3);margin-bottom:8px}
.listing-card-bottom{margin-top:auto;padding-top:8px;border-top:1px solid var(--border)}
.listing-card-price{font-size:1.05rem;font-weight:800;color:var(--accent)}
.listing-card-price.free{color:var(--success)}
.listing-card-price.neg{color:var(--text-2);font-size:.9rem}

/* Browse page */
.browse-header{margin-bottom:20px}
.breadcrumb{font-size:.84rem;color:var(--text-3);margin-bottom:8px}
.breadcrumb a{color:var(--text-3);transition:color var(--transition)}.breadcrumb a:hover{color:var(--accent)}
.results-count{font-size:.88rem;color:var(--text-3)}
/* Drill-down: flat list (brand / model / generation) — ss.com multi-column */
.drill-list{columns:3;column-gap:36px;margin-top:10px}
.drill-row{display:block;padding:5px 2px;font-size:.9rem;color:var(--text-2);line-height:1.3;break-inside:avoid;transition:color var(--transition)}
.drill-row:hover{color:var(--accent)}
@media(max-width:768px){.drill-list{columns:2}}
@media(max-width:480px){.drill-list{columns:1}}
/* Drill-down: grouped (parts) — ss.com multi-column style */
.drill-groups{display:flex;flex-direction:column;gap:22px}
.drill-group-title{font-size:1rem;font-weight:700;color:var(--text);margin-bottom:10px;padding-bottom:6px;border-bottom:2px solid var(--accent);display:inline-block}
.drill-group-items{columns:3;column-gap:28px}
.drill-item{display:block;font-size:.88rem;color:var(--text-2);padding:3px 0;break-inside:avoid;transition:color var(--transition)}
.drill-item:hover{color:var(--accent)}
@media(max-width:768px){.drill-group-items{columns:2}}
@media(max-width:480px){.drill-group-items{columns:1}}

.subcat-landing{columns:3;column-gap:36px;margin-top:10px}
.subcat-row{display:block;padding:5px 2px;font-size:.9rem;color:var(--text-2);line-height:1.3;break-inside:avoid;transition:color var(--transition)}
.subcat-row:hover{color:var(--accent)}
.subcat-row-count{font-size:.78rem;color:var(--text-3);margin-left:6px}
@media(max-width:768px){.subcat-landing{columns:2}}
@media(max-width:480px){.subcat-landing{columns:1}}
/* Category-landing filter panel (mockup design) */
.cfp{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:18px}
.cfp-search-row{display:flex;gap:10px;margin-bottom:12px}
.cfp-search{flex:1;padding:11px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.92rem;font-family:inherit;color:var(--text);background:var(--surface);outline:none}
.cfp-search:focus{border-color:var(--accent)}
.cfp-search-btn{background:var(--accent);color:#fff;padding:11px 28px;font-weight:600;border-radius:var(--radius-sm)}
.cfp-search-btn:hover{background:var(--accent-hover)}
.cfp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.cfp-cell{min-width:0}
.cfp-select{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.88rem;font-family:inherit;color:var(--text);background:var(--surface);outline:none;cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b95a5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:28px}
.cfp-select:focus{border-color:var(--accent)}
.cfp-range{display:flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:0 8px}
.cfp-range input{flex:1;min-width:0;padding:10px 4px;border:none;font-size:.88rem;font-family:inherit;color:var(--text);outline:none;background:transparent}
.cfp-range input::placeholder{color:var(--text-3)}
.cfp-dash{color:var(--text-3);flex-shrink:0}
.cfp-cascade{animation:cfpFade .2s ease}
@keyframes cfpFade{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.cfp-actions{display:flex;align-items:center;gap:18px;margin-top:12px}
.cfp-more{background:none;border:none;color:var(--success);font-family:inherit;font-size:.88rem;font-weight:600;cursor:pointer;padding:0;display:inline-flex;align-items:center;gap:5px}
.cfp-more:hover{color:#15803d}
.cfp-more-caret{font-size:.7rem}
.cfp-reset{font-size:.88rem;color:var(--text-3);white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.cfp-reset:hover{color:var(--accent)}
.cfp-photo{display:inline-flex;align-items:center;gap:7px;font-size:.88rem;color:var(--text-2);cursor:pointer;user-select:none}
.cfp-photo input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}
.cfp-features{margin-top:12px;padding-top:14px;border-top:1px solid var(--border)}
.cfp-features-title{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-3);margin-bottom:10px}
.cfp-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 18px}
.cfp-feat{display:flex;align-items:center;gap:8px;font-size:.86rem;color:var(--text-2);cursor:pointer;user-select:none}
.cfp-feat input{width:15px;height:15px;accent-color:var(--accent);cursor:pointer;flex-shrink:0}
@media(max-width:768px){.cfp-features-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.cfp-features-grid{grid-template-columns:1fr}}

/* ── Custom dropdowns (Kufar-style) ── */
.cdd{position:relative;min-width:0}
.cdd-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.88rem;font-family:inherit;color:var(--text);cursor:pointer;text-align:left;line-height:1.2}
.cdd-btn:hover{border-color:var(--text-3)}
.cdd.open .cdd-btn{border-color:var(--accent)}
.cdd-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cdd-val.ph{color:var(--text-3)}
.cdd-chev{width:18px;height:18px;flex-shrink:0;color:var(--text-3);transition:transform .15s}
.cdd.open .cdd-chev{transform:rotate(180deg)}
.cdd-pop{position:absolute;top:calc(100% + 4px);left:0;right:0;min-width:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:0 8px 24px rgba(15,23,42,.14);z-index:60;max-height:300px;overflow-y:auto;display:none;padding:4px}
.cdd.open .cdd-pop{display:block}
.cdd-item{padding:9px 12px;font-size:.88rem;color:var(--text-2);cursor:pointer;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background var(--transition)}
.cdd-item:hover{background:var(--surface-2);color:var(--accent)}
.cdd-item.sel{color:var(--accent);font-weight:600}
.cdd-check{display:flex;align-items:center;gap:9px;padding:8px 12px;font-size:.88rem;color:var(--text-2);cursor:pointer;border-radius:4px}
.cdd-check:hover{background:var(--surface-2)}
.cdd-check input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;flex-shrink:0}
.cdd-swatch{width:15px;height:15px;border-radius:3px;border:1px solid rgba(0,0,0,.18);flex-shrink:0;display:inline-block}
.cdd-check-metallic{border-bottom:1px solid var(--border);margin-bottom:4px;padding-bottom:10px;font-weight:600}
.cdd.open .cdd-pop-range{display:flex}
.cdd-pop-range{align-items:center;gap:8px;padding:12px;min-width:240px;overflow:visible}
.cdd-pop-range input{width:100%;min-width:0;padding:9px 10px;border:1px solid var(--border);border-radius:4px;font-size:.88rem;font-family:inherit;color:var(--text);background:var(--surface);outline:none}
.cdd-pop-range input:focus{border-color:var(--accent)}
.cdd-r-dash{color:var(--text-3);flex-shrink:0}
@media(max-width:860px){.cfp-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.cfp-grid{grid-template-columns:1fr}}

/* Browse layout — 2 cols normally, 3 when advanced is open (option B) */
.browse-layout{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start}
.browse-layout.advanced-open{grid-template-columns:260px 240px 1fr}
.browse-advanced{display:none;position:sticky;top:72px}
.browse-layout.advanced-open .browse-advanced{display:block}
.advanced-card{background:var(--surface);border:1px solid var(--accent);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:10px}
.adv-toggle{margin-top:2px}
.adv-caret{font-size:.7rem}
.adv-checkbox{display:flex;align-items:center;gap:8px;font-size:.86rem;color:var(--text-2);cursor:pointer}
.adv-checkbox input{width:auto!important}
.filters-title{font-size:.72rem;font-weight:800;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em;padding-bottom:8px;margin-bottom:4px;border-bottom:1px solid var(--border)}
.reset-link{display:block;text-align:center;font-size:.82rem;color:var(--text-3);margin-top:4px}
.reset-link:hover{color:var(--accent)}
.browse-sidebar{position:sticky;top:72px;max-height:calc(100vh - 88px);overflow-y:auto;scrollbar-width:thin}
.sidebar-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:12px;overflow:hidden}
.sub-link{display:flex;justify-content:space-between;padding:8px 14px;font-size:.85rem;color:var(--text-2);transition:all var(--transition);border-bottom:1px solid var(--surface-3)}
.sub-link:last-child{border-bottom:none}
.sub-link:hover{background:var(--surface-3);color:var(--text)}
.sub-link.active{background:rgba(37,99,235,.06);color:var(--accent);font-weight:600}
.sub-count{font-size:.78rem;color:var(--text-3)}
.sidebar-filters{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:8px}
.filter-section{display:flex;flex-direction:column;gap:4px}
.filter-label{font-size:.72rem;font-weight:700;color:var(--text-3);text-transform:uppercase;letter-spacing:.05em}
.filter-section select,.filter-section input{padding:6px 8px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.84rem;font-family:inherit;color:var(--text);width:100%}
.filter-section select:focus,.filter-section input:focus{outline:none;border-color:var(--accent)}
.filter-row{display:flex;gap:6px}
.filter-row input{flex:1}
.sort-bar{display:flex;justify-content:flex-end;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.sort-options{display:flex;gap:4px}
.sort-link{padding:4px 10px;font-size:.8rem;font-weight:500;color:var(--text-3);border-radius:var(--radius-sm);transition:all var(--transition)}
.sort-link:hover{color:var(--text);background:var(--surface-3)}
.sort-link.active{color:var(--accent);background:rgba(37,99,235,.06)}

/* Listing detail */
.listing-detail-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:start;margin-top:16px}
.gallery-main{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--surface-3);aspect-ratio:4/3}
.gallery-main img{width:100%;height:100%;object-fit:cover}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;background:rgba(0,0,0,.5);color:#fff;border:none;border-radius:var(--radius-sm);font-size:1.4rem;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
.gallery-arrow:hover{background:rgba(0,0,0,.7)}
.gallery-prev{left:8px}.gallery-next{right:8px}
.gallery-counter{position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.6);color:#fff;padding:2px 10px;border-radius:var(--radius-sm);font-size:.78rem;display:none}
.gallery-thumbs{display:flex;gap:6px;margin-top:8px;overflow-x:auto}
.gallery-thumb{width:68px;height:52px;border-radius:var(--radius-sm);cursor:pointer;border:2px solid transparent;overflow:hidden;flex-shrink:0;transition:border-color var(--transition)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.gallery-thumb.active{border-color:var(--accent)}
.listing-desc-box{margin-top:16px;padding:16px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius)}
.listing-desc-box h3{font-size:.95rem;font-weight:700;margin-bottom:6px}
.listing-desc-box p{font-size:.9rem;color:var(--text-2);line-height:1.7}
.listing-info-panel h1{font-size:1.5rem;font-weight:800;margin-bottom:4px}
.listing-price{font-size:1.8rem;font-weight:800;color:var(--accent);margin-bottom:12px}
.listing-price.free{color:var(--success)}
.listing-meta-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}
.spec-chip{padding:5px 12px;background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.82rem;font-weight:500;color:var(--text-2)}
.contact-card{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-top:16px}
.contact-card h3{font-size:.95rem;font-weight:700;margin-bottom:10px}
.seller-name{font-weight:600;margin-bottom:10px}
.contact-card .btn{margin-top:6px}
.owner-actions{margin-top:12px}
.similar-section{margin-top:40px;padding-top:28px;border-top:1px solid var(--border)}
.similar-section h2{font-size:1.2rem;font-weight:700;margin-bottom:16px}

/* Auth */
.auth-page{max-width:400px}
.auth-page h1{font-size:1.5rem;font-weight:800;margin-bottom:20px}
.auth-form{display:flex;flex-direction:column;gap:12px}
.auth-alt{margin-top:16px;font-size:.88rem;color:var(--text-3)}.auth-alt a{color:var(--accent)}

/* Forms */
.form-group{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.form-group label{font-size:.82rem;font-weight:600;color:var(--text-2)}
.form-group input,.form-group select,.form-group textarea{padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.9rem;font-family:inherit;color:var(--text);transition:border-color var(--transition)}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--accent)}
.form-row{display:flex;gap:12px}.form-row .form-group{flex:1}
.form-actions{display:flex;gap:8px;margin-top:12px}
.post-form{max-width:720px}

/* My listings */
.my-listings-list{display:flex;flex-direction:column;gap:8px}
.my-listing-row{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border:1px solid var(--border);border-radius:var(--radius);transition:background var(--transition)}
.my-listing-row:hover{background:var(--surface-2)}
.my-listing-title{font-weight:600;color:var(--text);transition:color var(--transition)}.my-listing-title:hover{color:var(--accent)}
.my-listing-meta{font-size:.82rem;color:var(--text-3);margin-top:2px}
.my-listing-actions{display:flex;gap:4px}
.status-active{color:var(--success)}.status-expired{color:var(--danger)}
.free-counter{font-size:.88rem;color:var(--text-3);margin-bottom:16px}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:4px;margin-top:28px}
.page-btn{display:flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 8px;font-size:.86rem;font-weight:500;border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-2);transition:all var(--transition)}
.page-btn:hover{border-color:var(--accent);color:var(--accent)}
.page-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.page-dots{color:var(--text-3);padding:0 4px}

/* Empty */
.empty-state{text-align:center;padding:48px 20px}
.empty-state h3{font-size:1.1rem;margin-bottom:6px}
.empty-state p{color:var(--text-3)}

/* Flash */
.flash-container{padding-top:10px}
.flash{padding:12px 16px;border-radius:8px;font-size:.9rem;font-weight:600;margin-bottom:6px}
.flash-success{background:#eaf8f1;color:#007a47}.flash-error{background:#fee2e2;color:#991b1b}

/* Legal */
.legal-page{max-width:760px}.legal-page h1{font-size:1.6rem;font-weight:800;margin-bottom:16px}.legal-page p{color:var(--text-2);line-height:1.7}

/* Footer */
.footer{background:#474747;color:rgba(255,255,255,.75);padding:40px 0 0;margin-top:32px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding-bottom:24px}
.footer-logo{font-weight:700;font-size:2rem;color:#fff;margin-bottom:8px}
.footer-logo.nav-logo-serif,.footer-logo.nav-logo-serif span{color:#fff !important;opacity:1;font-family:'Times','Times New Roman',Georgia,serif;margin-left:0}
.footer-col h4{color:#fff;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px}
.footer-col a{display:block;font-size:.86rem;padding:2px 0;transition:color var(--transition)}.footer-col a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:12px 0;font-size:.8rem;color:rgba(255,255,255,.4)}

/* Responsive */
@media(max-width:1100px){
    .home-cat-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
    .nav-links{display:none}.nav-burger{display:flex}.nav-search{display:none}.topbar-links{display:none}.topbar-right{margin-left:auto}
    .nav-logo-brand{font-size:1.6rem}
    .mega-hero{padding:44px 0 32px;min-height:auto}
    .mega-hero-tagline{font-size:1.6rem;margin-bottom:18px}
    .hero-tabs{gap:4px;margin-bottom:10px}
    .hero-tab{padding:7px 14px;font-size:.78rem}
    .hero-filter-bar{flex-direction:column}
    .hero-filter-select,.hero-filter-search{flex:1 1 100%;border-right:none;border-bottom:1px solid var(--border)}
    .hero-filter-price{flex:1 1 100%;border-right:none;border-bottom:1px solid var(--border)}
    .hero-actions{justify-content:stretch}
    .btn-hero-orange,.btn-hero-blue{flex:1;padding:12px 20px}
    .home-cat-grid{grid-template-columns:1fr 1fr;gap:10px}
    .browse-layout{grid-template-columns:1fr}
    .browse-sidebar{position:static;max-height:none}
    .listing-detail-layout{grid-template-columns:1fr}
    .listing-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
    .footer-grid{grid-template-columns:1fr;gap:20px}
    .form-row{flex-direction:column;gap:0}
}
@media(max-width:480px){
    .mega-hero-tagline{font-size:1.25rem}
    .home-cat-grid{grid-template-columns:1fr}
    .listing-grid{grid-template-columns:1fr}
}


/* ═══════════════════════════════════════════════════════
   v43 — brand logo, full-page Категории, city picker, page polish
   ═══════════════════════════════════════════════════════ */
.nav-logo-brand{font-family:'Pradock Sans','Roboto',sans-serif;font-weight:700;font-size:2.15rem;color:var(--brand);letter-spacing:-.01em;line-height:1;white-space:nowrap;flex-shrink:0}
.footer-logo.nav-logo-brand{color:#fff;font-size:1.9rem;margin-bottom:10px}

/* Категории button: grey pill on hover, darker pill + ✕ when open */
.topbar-cats{padding:7px 14px;margin-left:-14px;border-radius:8px;transition:background var(--transition)}
.topbar-cats:hover{color:#fff;background:rgba(255,255,255,.12)}
.topbar-cats.active{color:#fff;background:#6b6b6b}
.nav-cats-icon span{transition:transform .2s ease,opacity .15s ease}
.topbar-cats.active .nav-cats-icon span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.topbar-cats.active .nav-cats-icon span:nth-child(2){opacity:0}
.topbar-cats.active .nav-cats-icon span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

/* Full-page mega-menu */
.mega-menu{position:fixed;left:0;right:0;background:#fff;z-index:90;overflow-y:auto;border-top:1px solid var(--border);animation:megaIn .16s ease}
.mega-menu[hidden]{display:none}
@keyframes megaIn{from{opacity:0}to{opacity:1}}
body.mega-open{overflow:hidden}
.mega-menu-inner{display:grid;grid-template-columns:280px 1fr;min-height:100%}
.mega-cats{border-right:1px solid var(--border);padding:16px 14px 16px 0}
.mega-cat{display:flex;align-items:center;gap:12px;padding:9px 14px;font-size:.93rem;color:var(--text);border-radius:8px;cursor:pointer;transition:background var(--transition),color var(--transition)}
.mega-cat .cat-icon{width:20px;height:20px;flex-shrink:0;color:var(--text-2)}
.mega-cat:hover,.mega-cat.active{background:#eaf8f1;color:var(--brand)}
.mega-cat:hover .cat-icon,.mega-cat.active .cat-icon{color:var(--brand)}
.mega-panels{padding:18px 0 40px 32px}
.mega-panel{display:none}
.mega-panel.active{display:block}
.mega-panel-head{display:flex;align-items:baseline;gap:18px;margin-bottom:18px}
.mega-panel-head h3{font-size:1.35rem;font-weight:800;color:var(--text)}
.mega-viewall{font-size:.88rem;font-weight:600;color:var(--brand)}
.mega-viewall:hover{text-decoration:underline}
.mega-panel-grid{columns:4;column-gap:28px}
.mega-col{break-inside:avoid;display:inline-block;width:100%;margin-bottom:16px}
.mega-sub-head{display:block;font-size:.98rem;font-weight:700;color:var(--text);margin-bottom:5px;transition:color var(--transition)}
.mega-sub-head:hover{color:var(--brand)}
.mega-subsub{display:block;font-size:.88rem;color:var(--text-2);padding:2px 0;transition:color var(--transition)}
.mega-subsub:hover{color:var(--brand)}
@media(max-width:1024px){.mega-panel-grid{columns:3}}
@media(max-width:768px){.mega-menu-inner{grid-template-columns:1fr}.mega-cats{border-right:none;border-bottom:1px solid var(--border);padding:10px 0;display:flex;flex-wrap:wrap;gap:4px}.mega-cat{padding:7px 10px;font-size:.85rem}.mega-panels{padding:16px 0 30px}.mega-panel-grid{columns:2}}
@media(max-width:480px){.mega-panel-grid{columns:1}}

.nav-inner{gap:20px}

/* ── Shared bits ── */
.page-title{font-size:1.65rem;font-weight:800;letter-spacing:-.01em;color:var(--text)}
.page-title-sub{font-weight:600;color:var(--text-2)}
.btn{border-radius:8px}
.btn-lg{height:46px;padding:0 24px;font-size:.95rem;font-weight:700}
.btn-sm{padding:7px 14px;font-size:.84rem}
.btn-primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn-primary:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.btn-outline{background:#fff;border-color:var(--border-dark);color:var(--text)}
.btn-outline:hover{border-color:var(--brand);color:var(--brand)}
.btn-primary .btn-post-plus{font-size:1.4rem;font-weight:400;line-height:1;margin-top:-2px}
.breadcrumb{margin-bottom:14px}
.breadcrumb span{margin:0 2px}
.breadcrumb-current{color:var(--text-2)}
.form-group input,.form-group select,.form-group textarea{height:44px;padding:0 13px;border:1px solid var(--border-dark);border-radius:8px;font-family:inherit;font-size:.93rem;color:var(--text);background:#fff;transition:border-color var(--transition),box-shadow var(--transition)}
.form-group textarea{height:auto;padding:11px 13px;line-height:1.55;resize:vertical}
.form-group select{-webkit-appearance:none;appearance:none;cursor:pointer;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a8a8a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.form-group select:disabled{background-color:var(--surface-2);color:var(--text-3);cursor:not-allowed}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(0,173,101,.12)}
.form-group label{font-size:.84rem;font-weight:600;color:var(--text-2)}
.form-group{gap:6px;margin-bottom:14px}
.form-row{gap:14px}
.empty-state{padding:64px 20px;color:var(--text-3)}
.empty-state svg{color:#c4cbc8;margin-bottom:12px}
.empty-state h3{color:var(--text);font-size:1.15rem}

/* ── Listing cards (kufar: price first) ── */
.listing-card{border-radius:10px;border-color:var(--border);transition:box-shadow var(--transition),transform var(--transition)}
.listing-card:hover{box-shadow:0 8px 22px rgba(0,0,0,.09);transform:translateY(-2px)}
.listing-card-img{background:#f1f3f2}
.listing-card-body{padding:11px 14px 13px;gap:3px}
.listing-card-price{font-size:1.12rem;font-weight:800;color:var(--text);order:0}
.listing-card-price.free{color:var(--brand)}
.listing-card-price.neg{font-size:.95rem;color:var(--text-2)}
.listing-card-title{font-size:.9rem;font-weight:500;color:var(--text);margin:0;line-height:1.35}
.listing-card:hover .listing-card-title{color:var(--brand)}
.listing-card-meta{margin:auto 0 0;padding-top:6px;display:flex;justify-content:space-between;font-size:.78rem;color:var(--text-3)}

/* ── Listing detail ── */
.ld-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start}
.ld-main .gallery-main{border-radius:12px;aspect-ratio:4/3;background:#f1f3f2}
.ld-main .gallery-main img{object-fit:contain;background:#f1f3f2}
.gallery-arrow{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--text);font-size:1.6rem;box-shadow:0 2px 8px rgba(0,0,0,.15);border:none}
.gallery-arrow:hover{background:#fff;color:var(--brand)}
.gallery-prev{left:14px}.gallery-next{right:14px}
.gallery-counter{bottom:14px;right:14px;border-radius:20px;padding:3px 12px;font-size:.8rem}
.gallery-thumbs{gap:8px;margin-top:10px}
.gallery-thumb{width:84px;height:63px;border-radius:8px;border-width:2px}
.gallery-thumb.active{border-color:var(--brand)}
.ld-block{margin-top:28px;padding-top:24px;border-top:1px solid var(--border)}
.ld-block h2{font-size:1.2rem;font-weight:800;margin-bottom:10px}
.ld-desc{font-size:.97rem;line-height:1.7;color:var(--text);white-space:pre-line}
.ld-footnote{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:22px;padding-top:16px;border-top:1px solid var(--border);font-size:.82rem;color:var(--text-3)}
.ld-side{position:sticky;top:20px;display:flex;flex-direction:column;gap:14px}
.ld-price.free{color:var(--brand)}
.ld-price.neg{font-size:1.4rem;color:var(--text-2)}
.ld-loc{display:flex;align-items:center;gap:5px;font-size:.9rem;color:var(--text-2);margin-bottom:6px}
.ld-loc svg{color:var(--brand)}
.ld-avatar{width:46px;height:46px;border-radius:50%;background:#eaf8f1;color:var(--brand);font-weight:800;font-size:1.15rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ld-seller-name{font-weight:700;color:var(--text)}
.ld-safety{display:flex;gap:12px;padding:14px 16px;background:#f6f7f6;border-radius:12px;color:var(--text-2)}
.ld-safety svg{color:var(--brand);flex-shrink:0;margin-top:2px}
.ld-safety strong{font-size:.88rem;color:var(--text)}
.ld-safety p{font-size:.82rem;line-height:1.5;margin-top:2px}
.similar-section{margin-top:48px}
.similar-section h2{font-size:1.3rem;font-weight:800}
@media(max-width:900px){.ld-layout{grid-template-columns:1fr}.ld-side{position:static}}

/* ── Post / edit form ── */
.pf-page .page-title{margin-bottom:20px}
.pf-layout{display:grid;grid-template-columns:minmax(0,760px) 1fr;gap:28px;align-items:start}
.pf-form{display:flex;flex-direction:column;gap:16px}
.pf-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:22px 24px 10px}
.pf-card-title{font-size:1.08rem;font-weight:800;margin-bottom:16px;color:var(--text)}
.pf-hint{font-size:.84rem;color:var(--text-3);margin:-10px 0 12px}
.pf-tabs{display:flex;gap:4px;margin-bottom:-1px;position:relative}
.pf-tab{background:none;border:1px solid transparent;border-bottom:none;border-radius:8px 8px 0 0;padding:8px 18px;font-family:inherit;font-weight:700;font-size:.85rem;color:var(--text-3);cursor:pointer;position:relative}
.pf-tab.active{background:#fff;border-color:var(--border-dark);color:var(--text)}
.pf-tab.filled::after{content:'';position:absolute;top:7px;right:7px;width:6px;height:6px;border-radius:50%;background:var(--brand)}
.pf-desc{display:none;width:100%;margin-bottom:14px;padding:12px 14px;border:1px solid var(--border-dark);border-radius:0 8px 8px 8px;font-family:inherit;font-size:.93rem;line-height:1.6;color:var(--text);resize:vertical;min-height:150px}
.pf-desc.active{display:block}
.pf-desc:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(0,173,101,.12)}
.pf-actions{display:flex;gap:10px}
.pf-tips{position:sticky;top:20px;background:#f6f7f6;border-radius:12px;padding:20px 22px}
.pf-tips h3{font-size:.98rem;font-weight:800;margin-bottom:12px}
.pf-tips ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.pf-tips li{position:relative;padding-left:22px;font-size:.88rem;line-height:1.5;color:var(--text-2)}
.pf-tips li::before{content:'';position:absolute;left:0;top:5px;width:12px;height:7px;border-left:2px solid var(--brand);border-bottom:2px solid var(--brand);transform:rotate(-45deg)}
.pf-free{margin-top:16px;padding-top:14px;border-top:1px solid var(--border);font-size:.86rem;font-weight:600;color:var(--brand)}
@media(max-width:900px){.pf-layout{grid-template-columns:1fr}.pf-tips{position:static;order:-1}}

/* ── My listings ── */
.ml-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:22px}
.ml-sub{font-size:.9rem;color:var(--text-3);margin-top:4px}
.ml-list{display:flex;flex-direction:column;gap:10px}
.ml-row{display:flex;align-items:center;gap:18px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff;transition:box-shadow var(--transition)}
.ml-row:hover{box-shadow:0 4px 16px rgba(0,0,0,.06)}
.ml-thumb{width:120px;height:90px;border-radius:8px;overflow:hidden;flex-shrink:0;background:#f1f3f2}
.ml-thumb img{width:100%;height:100%;object-fit:cover}
.ml-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ml-title{font-weight:600;font-size:.98rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-title:hover{color:var(--brand)}
.ml-price{font-weight:800;font-size:1.02rem;color:var(--text)}
.ml-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:.8rem;color:var(--text-3)}
.ml-status{padding:2px 9px;border-radius:20px;font-weight:700;font-size:.74rem}
.ml-status-active{background:#eaf8f1;color:var(--brand)}
.ml-status-expired{background:#fdecec;color:var(--danger)}
.ml-actions{display:flex;gap:8px;flex-shrink:0;padding-right:6px}
.ml-delete{background:#fff;color:var(--danger);border:1px solid #f3c4c4}
.ml-delete:hover{background:#fdecec}
@media(max-width:640px){.ml-head{flex-direction:column;align-items:flex-start}.ml-row{flex-wrap:wrap}.ml-thumb{width:90px;height:68px}.ml-actions{width:100%;justify-content:flex-end}}

/* ── Auth ── */
.auth-section{background:#f6f7f6;padding:56px 16px 72px;flex:1}
.auth-card{max-width:440px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:14px;padding:34px 36px 28px;box-shadow:0 6px 24px rgba(0,0,0,.05)}
.auth-brand{font-size:1.5rem;margin-bottom:22px;text-align:center}
.auth-card h1{font-size:1.5rem;font-weight:800;text-align:center}
.auth-sub{text-align:center;color:var(--text-3);font-size:.9rem;margin:4px 0 24px}
.auth-form{gap:0}
.auth-form .btn{margin-top:6px}
.auth-alt{text-align:center;margin-top:20px;font-size:.88rem}
.auth-alt a{color:var(--brand);font-weight:700}

/* ── Search results / 404 / legal ── */
.sr-head{display:flex;align-items:baseline;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.nf-page{max-width:520px;text-align:center;padding:56px 0 40px}
.nf-code{font-family:'Pradock Sans','Roboto',sans-serif;font-size:6rem;font-weight:700;line-height:1;color:var(--brand);letter-spacing:-.02em}
.nf-page h1{font-size:1.5rem;font-weight:800;margin:10px 0 6px}
.nf-page p{color:var(--text-3)}
.nf-search{display:flex;gap:8px;margin:26px 0 16px}
.nf-search input{flex:1;height:46px;padding:0 16px;border:1px solid var(--border-dark);border-radius:8px;font-family:inherit;font-size:.95rem}
.nf-search input:focus{outline:none;border-color:var(--brand)}
.nf-search .btn{height:46px}
.nf-home{color:var(--brand);font-weight:700;font-size:.92rem}
.legal-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:32px 36px}
.legal-card h1{font-size:1.6rem;font-weight:800;margin-bottom:14px}
.legal-card p{color:var(--text-2);line-height:1.7}
body:has(.auth-section) .footer{margin-top:0}

/* ── Mobile header (kufar-style: search gets its own row) ── */
@media(max-width:768px){
    .nav-burger{display:none !important}
    .nav-inner{flex-wrap:wrap;height:auto;padding-top:10px;padding-bottom:10px;gap:10px 12px}
    .nav-search{display:flex !important;order:3;flex:1 1 100%;max-width:none}
    .nav-search-input{height:42px}
    .nav-right{gap:8px}
    .nav-right .nav-link{display:none}
    .nav .btn-post{height:40px;padding:0 13px}
    .nav .btn-post .btn-post-txt{display:none}
    .nav .btn-login{height:40px;padding:0 13px;font-size:.88rem}
    .nav-logo-brand{font-size:1.55rem}
    .topbar-inner{height:42px}
    /* listing detail: price + phone right after the photos */
    .ld-layout{display:flex;flex-direction:column;gap:16px}
    .ld-main{display:contents}
    .ld-side{order:1}
    .ld-block,.ld-footnote{order:2;margin-top:0}
    .similar-section{margin-top:32px}
    .auth-card{padding:28px 22px 22px}
}


/* ═══════════════════════════════════════════════════════
   v44: bigger search, avatar menu, favourites, kufar listing page, account area
   ═══════════════════════════════════════════════════════ */
.nav-search{max-width:none}
.nav-search-input{height:48px;font-size:1rem}
.topbar-fav{position:relative}
.topbar-badge{position:absolute;top:-6px;right:-10px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--brand);color:#fff;font-size:.68rem;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1}
.topbar-badge[hidden]{display:none}

/* avatar dropdown */
.nav-user{position:relative}
.nav-avatar{width:46px;height:46px;border-radius:50%;border:1px solid var(--border-dark);background:#eaf8f1;color:var(--brand);font-family:inherit;font-size:1.1rem;font-weight:800;cursor:pointer;transition:box-shadow var(--transition)}
.nav-avatar:hover{box-shadow:0 0 0 3px rgba(0,173,101,.18)}
.nav-user-pop{position:absolute;top:calc(100% + 8px);right:0;width:250px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.14);padding:6px;z-index:130}
.nav-user-pop[hidden]{display:none}
.nav-user-head{padding:10px 12px 12px;border-bottom:1px solid var(--border);margin-bottom:4px}
.nav-user-name{font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-user-mail{font-size:.8rem;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-user-pop a{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;border-radius:8px;font-size:.92rem;color:var(--text)}
.nav-user-pop a:hover{background:var(--surface-2);color:var(--brand)}
.nav-user-count{font-size:.78rem;font-weight:700;color:var(--text-3)}
.nav-user-pop .nav-user-out{color:var(--text-3);border-top:1px solid var(--border);border-radius:0 0 8px 8px;margin-top:4px}

/* cards: heart button sits over the photo */
.listing-card{position:relative}
.listing-card-link{display:flex;flex-direction:column;flex:1;color:inherit}
.card-fav{position:absolute;top:10px;right:10px;width:36px;height:36px;border-radius:50%;border:none;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.15);transition:transform .12s ease}
.card-fav:hover{transform:scale(1.08)}
.card-fav svg path,.card-fav-lg svg path{fill:none;stroke:#555;stroke-width:1.9}
.card-fav.on svg path,.card-fav-lg.on svg path{fill:#ff3b5c;stroke:#ff3b5c}
.listing-card.fav-gone{opacity:0;transform:scale(.96);transition:all .25s ease}

/* ── Listing page (kufar layout) ── */
.ld-owner-note{background:#fff7e6;border:1px solid #ffe0a3;color:#8a5a00;border-radius:10px;padding:11px 16px;font-size:.9rem;font-weight:600;margin-bottom:16px}
.ld-layout{grid-template-columns:minmax(0,1fr) 340px;gap:36px}
.ld-gallery{display:block}
.ld-gallery.has-thumbs{display:grid;grid-template-columns:158px minmax(0,1fr);gap:12px}
.ld-thumbs{display:flex;flex-direction:column;gap:10px;max-height:min(540px,62vw);overflow-y:auto;scrollbar-width:thin;padding:2px}
/* v269 (Alex): the SIDE thumbnails of an opened ad are the ones that grow; result-list previews stay at 92x69 */
.ld-thumb{flex-shrink:0;width:152px;height:152px;padding:0;border:2px solid transparent;border-radius:9px;overflow:hidden;cursor:pointer;background:#f1f3f2;opacity:.75;transition:opacity var(--transition),border-color var(--transition)}
.ld-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ld-thumb:hover{opacity:1}
.ld-thumb.active{border-color:var(--brand);opacity:1}
.ld-main .gallery-main{position:relative;max-height:540px;border-radius:12px}
.ld-img-actions{position:absolute;top:12px;right:12px;display:flex;gap:8px;z-index:3}
.ld-img-btn{width:40px;height:40px;border-radius:9px;border:none;background:rgba(255,255,255,.94);color:#333;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 5px rgba(0,0,0,.15)}
.ld-img-btn:hover{color:var(--brand)}
.ld-toast{position:absolute;top:60px;right:12px;background:#333;color:#fff;font-size:.82rem;font-weight:600;padding:7px 12px;border-radius:8px;opacity:0;transform:translateY(-4px);transition:all .2s ease;pointer-events:none;z-index:3}
.ld-toast.show{opacity:1;transform:none}
.ld-block{margin-top:32px;padding-top:0;border-top:none}
.ld-block h2{font-size:1.3rem;font-weight:800;margin-bottom:14px}
.ld-specs{display:grid;grid-template-columns:minmax(140px,240px) 1fr;column-gap:24px}
.ld-specs dt,.ld-specs dd{padding:8px 0;font-size:.96rem;border-bottom:1px solid #f0f1f0}
.ld-specs dt{color:var(--text-3)}
.ld-specs dd{color:var(--text)}
.ld-specs dd a{color:var(--brand)}
.ld-specs dd a:hover{text-decoration:underline}
.ld-side{gap:16px}
.ld-info{display:flex;flex-direction:column;gap:4px}
.ld-kicker{font-size:.76rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.ld-price{font-size:1.85rem;font-weight:800;color:var(--text);letter-spacing:-.01em;line-height:1.15}
.ld-title{font-size:1.3rem;font-weight:700;line-height:1.3;color:var(--text);margin-top:2px}
.ld-sub{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;font-size:.88rem;color:var(--text-3);margin-top:6px}
.ld-favcount{display:inline-flex;align-items:center;gap:4px}
.ld-actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.ld-btn-solid,.ld-btn-line{height:48px;width:100%;font-size:.98rem;font-weight:700;gap:8px}
.ld-btn-solid{background:var(--brand);color:#fff;border-color:var(--brand)}
.ld-btn-solid:hover{background:var(--brand-dark)}
.ld-btn-line{background:#fff;color:var(--brand);border:1.5px solid var(--brand)}
.ld-btn-line:hover{background:#eefaf4}
.ld-btn-line.shown{letter-spacing:.03em}
.ld-seller{border:1px solid var(--border);border-radius:12px;padding:16px 18px 6px;background:#fff}
.ld-seller-top{display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--border);color:inherit}
.ld-seller-top:hover .ld-seller-name{color:var(--brand)}
.ld-seller-name{font-weight:700;color:var(--text);transition:color var(--transition)}
.ld-seller-since{font-size:.82rem;color:var(--text-3)}
.ld-avatar{width:56px;height:56px;border-radius:12px;font-size:1.35rem}
.ld-seller-all{display:flex;justify-content:space-between;align-items:center;padding:12px 0;color:var(--brand);font-weight:600;font-size:.93rem}
.ld-seller-all svg{color:var(--text-3)}
.ld-footnote{margin-top:28px}
@media(max-width:900px){.ld-layout{grid-template-columns:1fr}}
@media(max-width:768px){
    .ld-gallery.has-thumbs{display:flex;flex-direction:column-reverse;gap:10px}
    .ld-thumbs{flex-direction:row;max-height:none;overflow-x:auto}
    .ld-thumb{width:128px;height:128px}
    .ld-specs{grid-template-columns:1fr 1.2fr}
    .ld-gallery{order:0}
}

/* ── Account area (Личный кабинет) ── */
.acc-page{background:#f6f7f6;flex:1;padding-bottom:56px}
body:has(.acc-page) .footer{margin-top:0}
.acc-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}
.acc-side{position:sticky;top:20px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px}
.acc-user{display:flex;align-items:center;gap:12px;padding:4px 4px 16px;border-bottom:1px solid var(--border);margin-bottom:10px}
.acc-avatar{width:48px;height:48px;border-radius:12px;background:#eaf8f1;color:var(--brand);font-weight:800;font-size:1.25rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.acc-user-text{min-width:0}
.acc-user-name{font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acc-user-since{font-size:.78rem;color:var(--text-3)}
.acc-nav{display:flex;flex-direction:column;gap:2px}
.acc-nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:9px;color:var(--text);font-size:.94rem;font-weight:500;transition:background var(--transition)}
.acc-nav a svg{color:var(--text-3);flex-shrink:0}
.acc-nav a span{flex:1}
.acc-nav a em{font-style:normal;font-size:.8rem;font-weight:700;color:var(--text-3)}
.acc-nav a:hover{background:var(--surface-2)}
.acc-nav a.active{background:#eaf8f1;color:var(--brand);font-weight:700}
.acc-nav a.active svg,.acc-nav a.active em{color:var(--brand)}
.acc-free{margin:12px 4px 0;padding:12px 0 0;border-top:1px solid var(--border);font-size:.82rem;font-weight:600;color:var(--brand)}
.acc-logout{display:block;margin:8px 4px 2px;font-size:.88rem;color:var(--text-3)}
.acc-logout:hover{color:var(--danger)}
.acc-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;min-height:46px}
.acc-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:6px 20px 20px;margin-bottom:16px}
.acc-tabs{display:flex;gap:26px;border-bottom:1px solid var(--border);margin:0 -20px 16px;padding:0 20px}
.acc-tabs a{padding:14px 0 12px;font-weight:700;font-size:.97rem;color:var(--text-3);border-bottom:2px solid transparent;margin-bottom:-1px}
.acc-tabs a em{font-style:normal;font-weight:600;margin-left:3px}
.acc-tabs a:hover{color:var(--text)}
.acc-tabs a.active{color:var(--text);border-bottom-color:var(--brand)}
.acc-empty{padding:40px 20px 30px}
.acc-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.acc-form{padding:22px 24px 24px}
.acc-narrow{max-width:calc(50% - 7px)}
.form-note{font-size:.78rem;color:var(--text-3)}
.form-group input:disabled{background:var(--surface-2);color:var(--text-3)}
.ml-row{border-color:#eceeed}
.ml-row.is-off .ml-thumb,.ml-row.is-off .ml-info{opacity:.6}
.ml-status-off{background:#f0f1f0;color:var(--text-3)}
.ml-actions form{display:flex}
.ml-delete{padding:7px 10px}
@media(max-width:900px){
    .acc-layout{grid-template-columns:1fr;gap:16px}
    .acc-side{position:static;padding:12px}
    .acc-nav{flex-direction:row;overflow-x:auto}
    .acc-nav a{white-space:nowrap}
    .acc-free,.acc-logout{display:none}
    .acc-user{padding-bottom:12px}
    .acc-narrow{max-width:none}
}

/* ── Seller page ── */
.sl-head{display:flex;align-items:center;gap:18px;padding:22px 24px;border:1px solid var(--border);border-radius:14px;margin-bottom:28px}
.sl-avatar{width:72px;height:72px;font-size:1.8rem;border-radius:16px}
.sl-meta{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.9rem;color:var(--text-3);margin-top:4px}
.sl-title{font-size:1.2rem;font-weight:800;margin-bottom:16px}

@media(max-width:768px){
    .nav-avatar{width:40px;height:40px;font-size:1rem}
    .nav-search-input{height:42px}
}
/* account + auth pages: grey all the way down (no white band on short pages, flash sits on grey) */
body:has(.acc-page),body:has(.auth-section){background:#f6f7f6}
@media(max-width:900px){
    .acc-layout{grid-template-columns:minmax(0,1fr)}
    .acc-side,.acc-main{min-width:0}
}
@media(max-width:768px){
    .ld-layout{align-items:stretch}
    .acc-head .btn{display:none}
    .acc-card{padding:4px 12px 12px}
    .acc-tabs{margin:0 -12px 12px;padding:0 12px}
    .ml-row{gap:12px}
    .ml-info{flex:1 1 calc(100% - 110px)}
    .ml-actions{flex-wrap:wrap;width:100%;justify-content:flex-start;padding:0}
    .ml-meta{gap:2px 10px}
}
@media(max-width:768px){.cfp-actions{flex-wrap:wrap;gap:10px 18px}}
.cfp-search{min-width:0}@media(max-width:480px){.cfp-search-btn{padding:11px 18px}}

/* third-level chips (Продажа квартир → 1-комнатные …) */
.subsub-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 20px}
.subsub-chip{padding:7px 14px;border:1px solid var(--border-dark);border-radius:20px;font-size:.88rem;color:var(--text);background:#fff;transition:all var(--transition)}
.subsub-chip em{font-style:normal;color:var(--text-3);font-size:.8rem;margin-left:2px}
.subsub-chip:hover{border-color:var(--brand);color:var(--brand)}
.subsub-chip.active{background:var(--brand);border-color:var(--brand);color:#fff}
.subsub-chip.active em{color:rgba(255,255,255,.8)}
.form-group[hidden]{display:none}

/* ── v48: kufar-style per-category filters ── */
.cfp-bool{display:flex;align-items:center;gap:9px;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.88rem;color:var(--text);cursor:pointer;user-select:none;line-height:1.2;min-width:0}
.cfp-bool:hover{border-color:var(--text-3)}
.cfp-bool input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;flex-shrink:0;margin:0}
.cfp-bool span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cfp-bool:has(input:checked){border-color:var(--accent);background:rgba(0,173,101,.06)}
.cdd{min-width:0}
.cdd-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cdd-pop-range input{min-width:0}
.subsub-chips + .cfp{margin-top:0}
.pf-card[hidden]{display:none}
.spec-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}
.spec-grid .form-group{min-width:0}
.spec-bool{justify-content:flex-end}
.spec-check{display:flex !important;align-items:center;gap:8px;font-size:.9rem;font-weight:500;color:var(--text);cursor:pointer;user-select:none;margin:0}
.spec-check input{width:16px;height:16px;accent-color:var(--accent);margin:0;flex-shrink:0}
.spec-bool .spec-check{min-height:42px}
.spec-check-inline{margin-top:8px !important;font-size:.84rem;color:var(--text-2)}
.spec-cascade{margin-bottom:4px}
.spec-cascade .form-group{min-width:0}
.spec-features{margin:4px 0 16px}
.spec-features-title{font-size:.86rem;font-weight:600;color:var(--text-2);margin-bottom:10px}
@media(max-width:860px){.spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.spec-grid{grid-template-columns:minmax(0,1fr)}.spec-bool .spec-check{min-height:0;margin-bottom:6px}}
.pf-layout > *{min-width:0}
.pf-form select,.pf-form input{max-width:100%;min-width:0}
.pf-field-hint{font-size:.8rem;color:var(--text-3);margin:6px 0 0}
.pf-desc.invalid{border-color:#d93636 !important;box-shadow:0 0 0 3px rgba(217,54,54,.12)}
.pf-error{color:#d93636;font-size:.86rem;font-weight:500;margin:8px 0 4px}
.pf-error[hidden]{display:none}

/* ══════════ v50: kufar-style category pages ══════════ */
.subtabs{background:#fff;border-bottom:1px solid var(--border)}
.subtabs-inner{display:flex;gap:30px;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.subtabs-inner::-webkit-scrollbar{display:none}
.subtab{position:relative;padding:14px 0 13px;font-size:.92rem;color:var(--text);text-decoration:none;flex-shrink:0}
.subtab:hover{color:var(--accent)}
.subtab.active{font-weight:600}
.subtab.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--accent);border-radius:2px}

.kf.section{padding-top:16px}
.kf .breadcrumb{margin-bottom:6px}
.kf-title{font-size:1.65rem;font-weight:800;letter-spacing:-.01em;margin:6px 0 14px}
.kf-title-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.kf-h2{font-size:1.5rem;font-weight:800;letter-spacing:-.01em;margin:30px 0 16px}
.kf-sep{border-top:1px solid var(--border);margin:22px 0 4px}

/* image tiles */
.kf-tiles{display:grid;gap:12px}
.kf-tiles-big{grid-template-columns:repeat(5,minmax(0,1fr))}
.kf-tiles-small{grid-template-columns:repeat(var(--n,8),minmax(0,1fr));margin-top:12px}
.kf-tile{position:relative;display:block;height:200px;background:#f4f4f5;border-radius:16px;overflow:hidden;text-decoration:none;color:#1f1f1f;transition:background .15s}
.kf-tile:hover{background:#ebebed}
.kf-tile-name{position:relative;z-index:1;display:block;padding:16px 16px 0;font-size:1.02rem;font-weight:700;line-height:1.25}
.kf-tile-small .kf-tile-name{padding:14px 12px 0;font-size:.98rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.kf-tile-img{position:absolute;right:0;bottom:0;max-width:88%;max-height:72%;object-fit:contain;object-position:right bottom;transition:transform .2s}
.kf-tile-small .kf-tile-img{right:50%;transform:translateX(50%);max-width:92%;max-height:62%;object-position:center bottom;bottom:8px}
.kf-tile:hover .kf-tile-img{transform:scale(1.04)}
.kf-tile-small:hover .kf-tile-img{transform:translateX(50%) scale(1.04)}
.kf-tile-ph{position:absolute;right:14px;bottom:12px;color:var(--accent);opacity:.28}
.kf-tile-ph .cat-icon{width:84px;height:84px;stroke-width:1.2}
.kf-tile-small .kf-tile-ph{right:50%;transform:translateX(50%)}
.kf-tile-small .kf-tile-ph .cat-icon{width:64px;height:64px}

/* popular brands / types columns */
.kf-links{columns:4;column-gap:24px}
.kf-link{display:block;break-inside:avoid;padding:4px 0;font-size:1rem;color:#1f1f1f;text-decoration:none;line-height:1.35}
.kf-link em{font-style:normal;color:var(--text-3);font-size:.9rem;margin-left:2px}
.kf-link:hover{color:var(--accent)}
.kf-link.active{color:var(--accent);font-weight:600}
.kf-link-more{display:none}
.kf-links.expanded .kf-link-more{display:block}
.kf-showall{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:4px 0;background:none;border:0;font:inherit;font-weight:700;font-size:.92rem;color:var(--accent);cursor:pointer}
.kf-showall .cdd-chev{width:16px;height:16px;transition:transform .2s}
.kf-showall.open .cdd-chev{transform:rotate(180deg)}

/* filter panel */
.kf-panel.cfp{background:#e9f7ef;border:0;border-radius:16px;padding:16px;margin:4px 0 24px}
.kf-panel .cdd-btn,.kf-panel .cfp-bool{background:#fff;border:1px solid transparent;border-radius:8px;padding:11px 14px;font-size:.92rem}
.kf-panel .cdd-btn:hover,.kf-panel .cfp-bool:hover{border-color:#cfe3d8}
.kf-panel .cdd.open .cdd-btn{border-color:var(--accent)}
.kf-panel .cdd-val.ph{color:#333}
.kf-panel .cfp-features{border-top-color:#cfe3d8}
.kf-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}
.kf-actions-left{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.kf-actions-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.kf-panel .cfp-more{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;font:inherit;font-weight:700;font-size:.92rem;color:var(--accent);cursor:pointer}
.kf-panel .cfp-more .cdd-chev{width:16px;height:16px;transition:transform .2s}
.kf-panel .cfp-more.open .cdd-chev{transform:rotate(180deg)}
.kf-panel .cfp-reset{font-size:.92rem;font-weight:600;color:#7a7f87;text-decoration:none}
.kf-panel .cfp-reset:hover{color:var(--text)}
.kf-save{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;background:#fff;border:0;border-radius:8px;font:inherit;font-weight:700;font-size:.92rem;color:var(--accent);cursor:pointer}
.kf-save svg{width:18px;height:18px}
.kf-save:hover{background:#f6fbf8}
.kf-save.done{color:#1f1f1f}
.kf-show{padding:11px 18px;background:var(--accent);border:0;border-radius:8px;font:inherit;font-weight:700;font-size:.92rem;color:#fff;cursor:pointer}
.kf-show:hover{background:var(--accent-hover)}
.kf-results-title{display:flex;align-items:baseline;gap:12px;margin-top:8px}
.kf-results-title .results-count{font-size:.95rem;font-weight:500;color:var(--text-3)}

/* saved searches */
.ss-list{padding:6px 0}
.ss-row{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--border)}
.ss-row:last-child{border-bottom:0}
.ss-main{flex:1;min-width:0;text-decoration:none;color:var(--text)}
.ss-title{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ss-meta{display:block;font-size:.84rem;color:var(--text-3);margin-top:2px}
.ss-row form{margin:0}
.ss-del{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text-3);cursor:pointer}
.ss-del:hover{color:#d93636;border-color:#f0c4c4}

@media(max-width:1100px){
    .kf-tiles-small{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
    .kf-tiles-big{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
    .kf-tiles-big{grid-template-columns:repeat(2,minmax(0,1fr))}
    .kf-tiles-small{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
    .kf-tile{height:150px;border-radius:14px}
    .kf-tile-small{height:130px}
    .kf-tile-name{font-size:.95rem;padding:12px 12px 0}
    .kf-tile-small .kf-tile-name{font-size:.84rem;padding:10px 9px 0}
    .kf-tile-ph .cat-icon{width:60px;height:60px}
    .kf-tile-small .kf-tile-ph .cat-icon{width:44px;height:44px}
    .kf-links{columns:2}
    .kf-h2{font-size:1.3rem;margin-top:24px}
    .kf-actions,.kf-actions-right{width:100%}
    .kf-actions-right{display:grid;grid-template-columns:1fr 1fr}
    .kf-save,.kf-show{justify-content:center;text-align:center}
    .ss-row{padding:12px 14px}
}

/* v52: tile pictures sized like kufar (fill the tile width, sit on the bottom edge) */
.kf-tile-big .kf-tile-img{width:100%;max-width:none;max-height:78%;height:auto;right:0;bottom:0;object-position:right bottom}
.kf-tile-small .kf-tile-img{width:100%;max-width:none;max-height:66%;height:auto;bottom:4px}
.kf-tile-small .kf-tile-name{font-size:.94rem}
@media(max-width:700px){
    .kf-tiles-big .kf-tile:last-child:nth-child(odd){grid-column:span 2}
    .kf-tiles-big .kf-tile:last-child:nth-child(odd) .kf-tile-img{width:auto;max-height:82%}
    .kf-tile-small .kf-tile-name{font-size:.82rem}
    .kf-tile-small .kf-tile-img{max-height:60%}
}

/* ══════════ v56: Недвижимость landing (kufar base + city24 chips + move.ru buttons) ══════════ */
.re-nav{flex:1;display:flex;align-items:center;gap:22px;min-width:0;margin-left:18px}
.re-nav-title{font-size:1.55rem;font-weight:800;color:#1f1f1f;text-decoration:none;letter-spacing:-.01em;white-space:nowrap;margin-right:10px}
.re-nav-item{position:relative}
.re-nav-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:6px 0;font:inherit;font-size:.98rem;color:#1f1f1f;cursor:pointer;white-space:nowrap}
.re-nav-btn:hover,.re-nav-item.open .re-nav-btn{color:var(--accent)}
.re-nav-btn svg{transition:transform .15s}
.re-nav-item.open .re-nav-btn svg{transform:rotate(180deg)}
.re-nav-pop{display:none;position:absolute;top:calc(100% + 8px);left:-12px;min-width:260px;background:#fff;border-radius:12px;box-shadow:0 10px 32px rgba(15,23,42,.16);padding:8px;z-index:80}
.re-nav-item.open .re-nav-pop{display:block}
.re-nav-pop a{display:block;padding:9px 12px;border-radius:8px;font-size:.92rem;color:#1f1f1f;text-decoration:none}
.re-nav-pop a:hover{background:#f2f7f4;color:var(--accent)}

.re-page{padding:20px 0 40px}
.re-banner{position:relative;border-radius:16px;overflow:hidden;padding:48px 64px 38px;color:#fff;
  background:linear-gradient(90deg,#00ad65 0%,#00ad65 30%,rgba(0,173,101,.72) 55%,rgba(0,173,101,.18) 100%),var(--hero) center 70%/cover no-repeat}
.re-banner-text h1{font-size:2.9rem;font-weight:800;line-height:1.1;letter-spacing:-.02em;margin:0 0 10px;max-width:760px}
.re-banner-text p{font-size:1.45rem;font-weight:500;margin:0 0 34px;opacity:.95;max-width:760px}

.re-search{position:relative;max-width:1190px}
.re-tabs{display:flex;align-items:flex-end;gap:4px}
.re-tab{padding:12px 30px;border:0;border-radius:10px 10px 0 0;background:rgba(0,70,40,.45);color:#fff;font:inherit;font-weight:700;font-size:.95rem;cursor:pointer}
.re-tab:hover{background:rgba(0,70,40,.6)}
.re-tab.active{background:#fff;color:#1f1f1f}
.re-loc{margin-left:10px;align-self:center}
.re-loc .re-loc-btn{background:none;border:0;color:#fff;padding:8px 6px;font-weight:700;gap:6px;justify-content:flex-start}
.re-loc .re-loc-btn .cdd-val,.re-loc .re-loc-btn .cdd-val.ph{color:#fff}
.re-loc .cdd-pop{min-width:220px;color:var(--text)}

.re-box{display:grid;grid-template-columns:240px minmax(0,1fr) 210px 210px auto;gap:10px;background:#fff;padding:12px;border-radius:0 12px 12px 12px;box-shadow:0 8px 28px rgba(0,0,0,.12)}
.re-box .cdd-btn{height:42px;border:1px solid #d9dde3;border-radius:8px;background:#fff;color:#1f1f1f;font-size:.93rem}
.re-box .cdd-val.ph{color:#333}
.re-box .cdd-item em{font-style:normal;color:var(--text-3);font-size:.82rem;margin-left:4px}
.re-input{height:42px;border:1px solid #d9dde3;border-radius:8px;padding:0 14px;font:inherit;font-size:.93rem;min-width:0;outline:none}
.re-input:focus{border-color:var(--accent)}
.re-more{height:42px;padding:0 18px;border:1px solid #d9dde3;border-radius:8px;background:#fff;font:inherit;font-weight:700;font-size:.93rem;color:#1e9bf0;cursor:pointer;white-space:nowrap}
.re-more:hover{border-color:#1e9bf0}
.cdd.disabled .cdd-btn{opacity:.45;cursor:default}

.re-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:16px}
.re-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.re-chip .cdd-btn{height:auto;padding:7px 14px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:.86rem;font-weight:600;gap:6px}
.re-chip .cdd-btn:hover{background:rgba(255,255,255,.22);border-color:#fff}
.re-chip .cdd-val,.re-chip .cdd-val.ph{color:#fff}
.re-chip .cdd-chev{width:14px;height:14px;color:#fff}
.re-chip .cdd-pop{min-width:230px;color:var(--text)}
.re-chip .cdd-pop-range{min-width:260px}
.re-toggle{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;background:rgba(0,60,35,.45);color:#fff;font-size:.86rem;font-weight:600;cursor:pointer;user-select:none}
.re-toggle input{position:absolute;opacity:0;pointer-events:none}
.re-switch{position:relative;width:34px;height:20px;border-radius:999px;background:rgba(255,255,255,.35);transition:background .15s}
.re-switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.re-toggle input:checked + .re-switch{background:#7c3aed}
.re-toggle input:checked + .re-switch::after{transform:translateX(14px)}
.re-reset{background:none;border:1px solid rgba(255,255,255,.6);border-radius:6px;padding:6px 12px;color:#fff;font:inherit;font-size:.8rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;cursor:pointer}
.re-reset:hover{background:rgba(255,255,255,.15)}

.re-actions{display:flex;gap:10px}
.re-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:190px;padding:13px 22px;border:0;border-radius:6px;font:inherit;font-size:1rem;font-weight:600;color:#fff;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.15);transition:filter .15s}
.re-btn:hover{filter:brightness(1.07)}
.re-btn-map{background:linear-gradient(180deg,#f9733a,#e2511f)}
.re-btn-show{background:linear-gradient(180deg,#2cacff,#108ef0)}
.re-soon{position:absolute;right:0;bottom:-42px;background:rgba(17,24,39,.92);color:#fff;font-size:.86rem;padding:8px 14px;border-radius:8px}
.re-soon[hidden]{display:none}

.re-h2{display:flex;align-items:center;gap:10px;font-size:1.6rem;font-weight:800;letter-spacing:-.01em;margin:38px 0 18px}
.re-h2-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.re-all{font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap}
.re-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.re-card{position:relative}
.re-card-img{display:block;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#f1f2f4;margin-bottom:10px}
.re-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.re-card-body{display:block;text-decoration:none;color:#1f1f1f}
.re-card-fav{flex-shrink:0;width:30px;height:30px;display:grid;place-items:center;background:none;border:0;padding:0;cursor:pointer}
.re-card-fav svg path{fill:none;stroke:#8a8f98;stroke-width:1.8}
.re-card-fav:hover svg path{stroke:#e0245e}
.re-card-fav.on svg path{fill:#e0245e;stroke:#e0245e}
.re-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.re-card:hover .re-card-img img{transform:scale(1.03)}
.re-card-price{font-size:1.25rem;font-weight:800;color:#1f1f1f;text-decoration:none}
.re-card-price span{font-size:.92rem;font-weight:400;color:#8a8f98;margin-left:4px}
.re-card-line{font-size:1.02rem;font-weight:700;margin-top:2px}
.re-card-title{font-size:.92rem;color:#4b5058;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.re-card-meta{font-size:.84rem;color:#8a8f98;margin-top:4px}

@media(max-width:1100px){
  .re-box{grid-template-columns:repeat(2,minmax(0,1fr))}
  .re-box .re-input{grid-column:span 2}
  .re-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .re-nav{gap:14px}
  .re-nav-title{font-size:1.25rem}
}
@media(max-width:860px){
  .re-nav-item{display:none}
}
@media(max-width:700px){
  .re-page{padding-top:12px}
  .re-banner{padding:26px 16px 22px;border-radius:14px;background:linear-gradient(180deg,rgba(0,173,101,.93),rgba(0,173,101,.85)),var(--hero) center/cover}
  .re-banner-text h1{font-size:1.7rem}
  .re-banner-text p{font-size:1.02rem;margin-bottom:20px}
  .re-tab{padding:10px 14px;font-size:.88rem}
  .re-tabs{flex-wrap:wrap}
  .re-loc{margin-left:0}
  .re-box{grid-template-columns:minmax(0,1fr);border-radius:0 12px 12px 12px}
  .re-box .re-input{grid-column:auto}
  .re-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .re-btn{min-width:0;padding:12px 10px;font-size:.92rem}
  .re-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .re-card-price{font-size:1.05rem}
  .re-card-line{font-size:.9rem}
  .re-h2{font-size:1.3rem;margin-top:28px}
}

/* v56 fixes: header fit, one-row bottom bar, mobile */
.re-nav{gap:16px;margin-left:24px}
.re-nav-title{font-size:1.35rem;margin-right:6px}
.re-nav-btn{font-size:.94rem}
.re-bottom{flex-wrap:nowrap;align-items:flex-start}
.re-chips{flex:1;min-width:0}
.re-actions{flex-shrink:0}
.re-btn{min-width:0}
@media(max-width:1100px){.re-bottom{flex-wrap:wrap}}
@media(max-width:700px){
  .re-nav{display:none}
  .re-card-price span{display:block;margin-left:0;font-size:.8rem}
}

/* ══════════ v57: Недвижимость hero = photo + city24 filter in move.ru colours ══════════ */
.re-hero{position:relative;border-radius:16px;overflow:hidden;padding:40px 48px 36px;background:var(--hero) center 62%/cover no-repeat}
.re-hero-title{text-align:center;color:#fff;font-size:2.4rem;font-weight:800;letter-spacing:-.01em;margin:0 0 24px;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.re-glass{position:relative;max-width:1100px;margin:0 auto;padding:10px;border-radius:10px;background:rgba(32,34,48,.38);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

.re-types{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.re-types.dim{opacity:.5;pointer-events:none}
.re-type{position:relative;height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 6px 6px;border:0;border-radius:6px;background:rgba(255,255,255,.22);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;font:inherit;cursor:pointer;transition:background .15s}
.re-type:hover{background:rgba(255,255,255,.34)}
.re-type-ico{width:30px;height:30px}
.re-type-name{font-size:.88rem;font-weight:600;line-height:1.15;text-align:center}
.re-type-count{position:absolute;top:6px;right:9px;font-size:.78rem;font-weight:700;opacity:.95}
.re-type.active{background:#fff;color:#1e9bf0}
.re-type.active .re-type-count{color:#1f1f1f}
.re-type.active::after{content:"";position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);border:7px solid transparent;border-bottom:0;border-top-color:#fff}

.re-row{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;gap:8px;margin-top:14px}
.re-deals{display:flex;background:#fff;border-radius:6px;overflow:hidden}
.re-deal{height:50px;padding:0 20px;border:0;border-bottom:3px solid transparent;background:none;font:inherit;font-size:1rem;font-weight:600;color:#333;cursor:pointer}
.re-deal + .re-deal{border-left:1px solid #e6e8ec}
.re-deal.active{color:#1e9bf0;border-bottom-color:#1e9bf0}
.re-loc{margin:0}
.re-loc .cdd-btn{height:50px;padding:0 16px;border:0;border-radius:6px;background:#fff;color:#1e9bf0;font-weight:700;font-size:.95rem;gap:8px}
.re-loc .cdd-val,.re-loc .cdd-val.ph{color:#1e9bf0}
.re-loc .cdd-pop{min-width:220px}
.re-row .re-input{height:50px;border:0;border-radius:6px;padding:0 16px;font-size:.95rem}
.re-row .re-btn{height:50px;min-width:0;padding:0 20px;border-radius:6px;font-size:1rem;font-weight:700;box-shadow:none;gap:8px;white-space:nowrap}
.re-btn-find{background:linear-gradient(180deg,#2cacff,#108ef0)}

.re-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}
.re-chips .re-chip .cdd-btn,.re-chip-btn{height:32px;padding:0 10px;border:0;border-radius:4px;background:rgba(255,255,255,.28);color:#fff;font:inherit;font-size:.9rem;font-weight:600;gap:6px;cursor:pointer}
.re-chips .re-chip .cdd-btn:hover,.re-chip-btn:hover{background:rgba(255,255,255,.4)}
.re-chip-btn{display:inline-flex;align-items:center}
.re-chips .re-chip.disabled .cdd-btn{opacity:.45;cursor:default}
.re-chips .re-toggle{height:32px;padding:0 12px 0 5px;border-radius:999px;background:rgba(30,155,240,.6);font-size:.9rem}
.re-chips .re-toggle input:checked + .re-switch{background:#fff}
.re-chips .re-toggle input:checked + .re-switch::after{background:#1e9bf0}
.re-clear{height:32px;padding:0 10px;border:1px solid rgba(255,255,255,.75);border-radius:4px;background:none;color:#fff;font:inherit;font-size:.82rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;cursor:pointer}
.re-clear:hover{background:rgba(255,255,255,.15)}
.re-glass .re-soon{right:10px;bottom:-44px}

@media(max-width:1100px){
  .re-row{grid-template-columns:auto auto minmax(0,1fr)}
  .re-row .re-btn{grid-column:span 1}
  .re-row .re-btn-map{grid-column:1 / 3}
}
@media(max-width:700px){
  .re-hero{padding:22px 10px 14px;border-radius:14px}
  .re-hero-title{font-size:1.5rem;margin-bottom:14px}
  .re-glass{padding:8px}
  .re-types{display:flex;overflow-x:auto;scrollbar-width:none;padding-bottom:8px}
  .re-types::-webkit-scrollbar{display:none}
  .re-type{flex:0 0 96px;height:84px}
  .re-row{grid-template-columns:1fr 1fr;margin-top:6px}
  .re-deals,.re-row .re-input{grid-column:1 / -1}
  .re-loc{grid-column:1 / -1}
  .re-loc .cdd-btn{width:100%;justify-content:space-between}
  .re-deal{flex:1;padding:0 8px;font-size:.92rem}
  .re-row .re-btn-map{grid-column:auto}
  .re-row .re-btn{padding:0 10px;font-size:.9rem;justify-content:center}
}
/* v57 fixes: let dropdowns hang out of the photo; header menus only where they fit */
.re-hero{overflow:visible}
@media(max-width:1100px){.re-nav-item{display:none}}
/* v58: no map button, search fills the row, chips stretch across the whole panel */
.re-row{grid-template-columns:auto auto minmax(0,1fr) auto}
.re-chips{flex-wrap:nowrap}
.re-chips > *{flex:1 1 0;min-width:0}
.re-chips .re-chip .cdd-btn{width:100%;justify-content:space-between}
.re-chips .re-toggle{justify-content:center;flex:1.4 1 0;white-space:nowrap}
.re-chip-btn{justify-content:center;white-space:nowrap}
.re-clear{flex:0.8 1 0}
@media(max-width:1100px){
  .re-row{grid-template-columns:auto auto minmax(0,1fr)}
  .re-row .re-btn-find{grid-column:1 / -1}
  .re-chips{flex-wrap:wrap}
  .re-chips > *{flex:1 1 30%}
}
@media(max-width:700px){
  .re-row .re-btn-find{grid-column:1 / -1}
  .re-chips > *{flex:1 1 40%}
}
.re-switch{flex-shrink:0}
.re-chips .re-chip-btn{flex:1.3 1 0}
@media(max-width:1100px){
  .re-chips .re-toggle{flex:1 1 100%;justify-content:flex-start}
  .re-chips .re-chip-btn,.re-clear{flex:1 1 40%}
}
.re-chip-btn svg{flex-shrink:0;margin-right:4px}

/* ══════════ v59: homepage category carousel ══════════ */
.hc-section{padding:22px 0 0}
.hc{position:relative;height:112px}
.hc-slide{position:absolute;inset:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility 0s linear .6s}
.hc-slide.active{opacity:1;visibility:visible;transition:opacity .6s ease .15s,visibility 0s}
.hc-card{display:flex;align-items:center;gap:14px;min-width:0;text-decoration:none;color:#1f1f1f;border-radius:14px;padding:4px;transition:background .15s}
.hc-card:hover{background:#f6f7f8}
.hc-card:hover .hc-name{color:var(--accent)}
.hc-img{flex-shrink:0;width:100px;height:100px;border-radius:14px;background:#f1f2f4;display:grid;place-items:center;overflow:hidden}
.hc-img img{width:92%;height:92%;object-fit:contain;transition:transform .25s}
.hc-card:hover .hc-img img{transform:scale(1.06)}
.hc-img .cat-icon{width:46px;height:46px;color:var(--accent);opacity:.55}
.hc-name{font-size:1.25rem;font-weight:500;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hc-dots{display:flex;justify-content:center;gap:8px;margin-top:10px}
.hc-dot{width:8px;height:8px;border-radius:50%;border:0;padding:0;background:#d5d8dd;cursor:pointer;transition:background .2s,width .2s}
.hc-dot.active{width:22px;border-radius:4px;background:var(--accent)}
@media(max-width:1100px){
  .hc-img{width:72px;height:72px}
  .hc-name{font-size:1rem}
  .hc{height:84px}
}
@media(max-width:700px){
  .hc{height:118px}
  .hc-slide{gap:6px}
  .hc-card{flex-direction:column;gap:6px;padding:2px;text-align:center}
  .hc-img{width:62px;height:62px;border-radius:12px}
  .hc-name{font-size:.74rem;font-weight:600}
}
/* v59: fit long single-word names (Недвижимость, Компьютерная) */
.hc-img{width:86px;height:86px}
.hc-card{gap:12px}
.hc-name{font-size:1.1rem;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
.hc{height:98px}
@media(max-width:1100px){.hc-img{width:66px;height:66px}.hc-name{font-size:.95rem}.hc{height:78px}}
@media(max-width:700px){.hc{height:116px}.hc-img{width:60px;height:60px}.hc-name{font-size:.7rem}}
.hc-name{font-size:1.02rem;overflow-wrap:normal;hyphens:manual;-webkit-hyphens:manual}
@media(max-width:1100px){.hc-name{font-size:.9rem}}
@media(max-width:700px){.hc-name{font-size:.64rem;letter-spacing:-.01em}}
@media(min-width:1101px){.hc-img{width:80px;height:80px}.hc-card{gap:10px}.hc{height:92px}}

/* ══════════ v60: carousel = sliding ring of all categories ══════════ */
.hc{--per:5;position:relative;height:auto}
.hc-viewport{overflow:hidden}
.hc-track{display:flex;column-gap:16px;will-change:transform}
.hc-track .hc-card{flex:0 0 calc((100% - 16px * (var(--per) - 1)) / var(--per));padding:4px}
.hc-section .hc-img{width:104px;height:104px;border-radius:16px}
.hc-section .hc-img .cat-icon{width:50px;height:50px}
.hc-section .hc-name{font-size:1.12rem;font-weight:500;display:block;-webkit-line-clamp:unset;overflow:visible;hyphens:manual}
.hc-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:#1f1f1f;box-shadow:0 2px 10px rgba(0,0,0,.15);display:grid;place-items:center;cursor:pointer;transition:color .15s}
/* v196 (Alex): the arrows show at all times (were only on hover) */
.hc-arrow:hover{color:var(--accent)}
.hc-prev{left:-14px}
.hc-next{right:-14px}
.hc-dots{display:none}
.home-sub-more .home-sub-name{color:var(--accent);font-weight:600}
@media(max-width:1100px){
  .hc{--per:4}
  .hc-section .hc-img{width:76px;height:76px}
  .hc-section .hc-name{font-size:.98rem}
}
@media(max-width:700px){
  .hc{--per:4}
  .hc-track{column-gap:8px}
  .hc-track .hc-card{flex-basis:calc((100% - 8px * (var(--per) - 1)) / var(--per));flex-direction:column;text-align:center;gap:6px}
  .hc-section .hc-img{width:68px;height:68px}
  .hc-section .hc-name{font-size:.72rem;font-weight:600;letter-spacing:0}
  .hc-arrow{display:none}
}

/* v60b: carousel names fit without clipping */
.hc-section .hc-img{width:88px;height:88px}
.hc-track .hc-card{gap:12px}
.hc-section .hc-name{font-size:1.04rem;min-width:0}
@media(max-width:1100px){.hc-section .hc-img{width:70px;height:70px}.hc-section .hc-name{font-size:.92rem}}
@media(max-width:700px){.hc-track .hc-card{gap:6px}.hc-section .hc-img{width:64px;height:64px}.hc-section .hc-name{font-size:.66rem}}
@media(hover:none){.hc-card:hover{background:none}}
@media(min-width:1101px){.hc-section .hc-img{width:84px;height:84px}.hc-track .hc-card{gap:10px}.hc-section .hc-name{font-size:1rem}}

/* v61: dateks-style top bar: vertical gradient that lands on our grey + cement grain (tile lifted from dateks) */
.topbar{
    position:relative;
    background:linear-gradient(180deg,#5e5e5e 0%,#535353 55%,#474747 100%);
}
.topbar::before{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:url("../img/topbar-grain.png") repeat 0 0;
}
.topbar-inner{position:relative}

/* v62: home carousel = slow endless marquee, draggable */
.hc-viewport{cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.hc-viewport.dragging{cursor:grabbing}
.hc-viewport.dragging .hc-card{pointer-events:none}
.hc-track{transition:none!important}
.hc-card img{-webkit-user-drag:none}
.hc-viewport{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 48px,#000 calc(100% - 48px),transparent 100%)}
.hc-arrow{z-index:3}

/* v65: carousel hover = 2px asphalt outline instead of grey fill (inset shadow, so nothing shifts) */
.hc-card:hover,.hc-section .hc-card:hover{background:none;box-shadow:inset 0 0 0 1px #9a9ea4}
.hc-card:focus-visible{outline:none;box-shadow:inset 0 0 0 1px #9a9ea4}
.hc-card{transition:box-shadow .15s}
@media(hover:none){.hc-card:hover{box-shadow:none}}

/* ═══════════ v67: maps (Leaflet) ═══════════ */
.leaflet-container{font-family:inherit;background:#eef0f2}
.pm-pin{background:none;border:none}
.pm-pin svg{display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}
.pm-cluster{background:none;border:none}
.pm-cluster span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:var(--brand);color:#fff;
    font-weight:700;font-size:.85rem;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.25);box-sizing:border-box}
.pm-cluster.hover span{background:#1f1f1f}
.pm-price{background:none;border:none;width:auto!important;height:auto!important}
.pm-price span{display:inline-block;transform:translate(-50%,-100%);white-space:nowrap;background:#fff;color:#1f1f1f;font-weight:700;font-size:.8rem;
    padding:5px 9px;border-radius:999px;box-shadow:0 1px 4px rgba(0,0,0,.28);transition:background .12s,color .12s;position:relative}
.pm-price span::after{content:"";position:absolute;left:50%;bottom:-5px;margin-left:-5px;border:5px solid transparent;border-bottom:0;border-top-color:#fff}
.pm-price:hover span,.pm-price.hover span,.pm-price.active span{background:var(--brand);color:#fff}
.pm-price:hover span::after,.pm-price.hover span::after,.pm-price.active span::after{border-top-color:var(--brand)}
.pm-price.active{z-index:1000!important}

/* post form picker */
.loc-search{display:flex;gap:8px}
.loc-search input{flex:1;min-width:0}
.loc-search .btn{flex-shrink:0;white-space:nowrap}
.loc-map{height:300px;border-radius:10px;overflow:hidden;border:1px solid var(--border,#e2e5e9);margin-top:4px;cursor:crosshair}
.loc-clear{margin-top:10px;background:none;border:none;color:#d03b3b;font:inherit;font-size:.88rem;cursor:pointer;padding:0}
.loc-clear:hover{text-decoration:underline}

/* listing page */
.ld-loc-addr{display:flex;align-items:center;gap:8px;color:#3a3d40;margin-bottom:12px}
.ld-loc-addr svg{color:var(--brand);flex-shrink:0}
.ld-map{height:240px;border-radius:12px;overflow:hidden;border:1px solid #e2e5e9}
.ld-loc-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.ld-loc-actions .btn{flex:0 0 auto}
.ld-maplink{color:var(--accent);text-decoration:none;border-bottom:1px dashed currentColor}
.mm{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:24px}
.mm[hidden]{display:none}
.mm-backdrop{position:absolute;inset:0;background:rgba(20,22,24,.55)}
.mm-box{position:relative;background:#fff;border-radius:14px;overflow:hidden;width:min(1100px,100%);height:min(760px,100%);display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.mm-head{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid #eceef0}
.mm-title{flex:1;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-title span{display:block;font-weight:400;color:#6b7075;font-size:.88rem}
.mm-close{width:38px;height:38px;border-radius:8px;border:none;background:#3a3d40;color:#fff;font-size:1.1rem;cursor:pointer;flex-shrink:0}
.mm-map{flex:1}
body.mm-open{overflow:hidden}

/* browse: map preview above the results (kufar) */
.kf-mapbox{position:relative;height:230px;border-radius:12px;overflow:hidden;margin:6px 0 18px;box-shadow:0 1px 6px rgba(0,0,0,.12)}
.kf-mapbox-map{position:absolute;inset:0;filter:saturate(.85)}
.kf-mapbox-btn{position:absolute;left:16px;right:16px;bottom:14px;z-index:500;display:flex;align-items:center;justify-content:center;gap:8px;
    height:42px;border-radius:8px;background:#fff;color:#1f1f1f;font-weight:600;text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.18);transition:background .15s}
.kf-mapbox-btn:hover{background:#f6f7f8}
.kf-mapbox-btn svg{color:var(--brand)}

/* browse: full map view */
body:has(.mv) .footer{display:none}
.mv{display:grid;grid-template-columns:440px 1fr;height:calc(100vh - 140px);border-top:1px solid #eceef0}
.mv-side{display:flex;flex-direction:column;min-height:0;border-right:1px solid #eceef0;background:#fff}
.mv-head{display:flex;align-items:center;gap:10px;padding:16px 18px 12px}
.mv-title{font-size:1.2rem;font-weight:700;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.mv-count{color:#8a8f94;font-weight:700;font-size:1.2rem;flex-shrink:0}
.mv-filters{margin-left:auto;flex-shrink:0;width:38px;height:38px;border:1px solid #d9dde1;border-radius:8px;display:grid;place-items:center;color:#1f1f1f}
.mv-filters:hover{border-color:#9a9ea4}
.mv-list{flex:1;overflow-y:auto;padding:4px 14px 18px;display:flex;flex-direction:column;gap:12px}
.mv-card{display:flex;gap:12px;text-decoration:none;color:#1f1f1f;border-radius:12px;padding:6px;transition:background .12s,box-shadow .12s}
.mv-card:hover{box-shadow:inset 0 0 0 1px #9a9ea4}
.mv-card.active{background:#fff7e6;box-shadow:inset 0 0 0 1px #f2c46d}
.mv-thumb{flex:0 0 150px;height:150px;border-radius:10px;overflow:hidden;background:#f1f2f4}
.mv-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mv-body{display:flex;flex-direction:column;gap:4px;min-width:0;padding-top:2px}
.mv-price{font-size:1.15rem;font-weight:800}
.mv-title-sm,.mv-body .mv-title{font-size:.92rem;font-weight:600;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mv-meta{color:#8a8f94;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mv-empty{color:#8a8f94;text-align:center;padding:40px 10px}
.mv-mapwrap{position:relative;min-height:0}
.mv-map{position:absolute;inset:0}
.mv-follow{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:600;display:flex;align-items:center;gap:8px;background:#fff;
    padding:9px 14px;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.15);font-size:.92rem;cursor:pointer;white-space:nowrap}
.mv-follow input{accent-color:var(--brand);width:18px;height:18px;margin:0}
.mv-close{position:absolute;top:14px;right:16px;z-index:600;width:42px;height:42px;border-radius:8px;background:#3a3d40;color:#fff;display:grid;place-items:center}
.mv-close:hover{background:#1f1f1f}
.mv-popup .leaflet-popup-content{margin:8px}
.mv-popup .mv-card{padding:0}
.mv-popup .mv-thumb{flex-basis:100px;height:100px}
.mv-popup .leaflet-popup-content-wrapper{border-radius:12px}
@media(max-width:900px){
    .mv{grid-template-columns:1fr;grid-template-rows:55vh auto;height:auto!important}
    .mv-mapwrap{order:-1;height:55vh}
    .mv-side{border-right:none}
    .mv-list{overflow:visible}
    .mv-thumb{flex-basis:110px;height:110px}
    .mv-follow{font-size:.8rem;top:10px;left:10px;transform:none;max-width:calc(100% - 70px);white-space:normal}
    .mm{padding:0}.mm-box{border-radius:0;height:100%}
}
.mm-head .btn.mm-route{width:auto;height:40px;padding:0 18px;flex:0 0 auto}
.ld-loc-actions .btn{width:auto;padding:0 22px}
.ld-map,.kf-mapbox,.loc-map,.mv-mapwrap,.mm-map{isolation:isolate}
@media(max-width:900px){.mv-follow{left:54px;max-width:calc(100% - 118px)}}

/* ═══════════ v69: kufar side layout (left column + rows / grid) ═══════════ */
.sd{padding:22px 0 48px}
.sd-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:32px;align-items:start}
.sd-side{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto;padding-right:14px;scrollbar-width:thin}
.sd-side-head{display:none}
/* category tree (+ ss.com style counts) */
.sd-tree{display:flex;flex-direction:column;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #e6e8eb}
.sd-node{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:3px 0;font-size:.9rem;color:#2b2f33;text-decoration:none;line-height:1.3}
.sd-node:hover{color:var(--accent)}
.sd-node em{font-style:normal;color:#a0a6ad;font-size:.8rem;flex-shrink:0}
.sd-node.bold{font-weight:700}
.sd-node.d1{padding-left:10px}.sd-node.d2{padding-left:20px}
.sd-node.d0.bold{padding-left:0}
.sd-node.active{color:var(--accent);font-weight:700}
.sd-node-all{font-weight:700;color:#1f1f1f}
/* filters */
.sd-block{margin-bottom:16px}
.sd-h{font-size:.92rem;font-weight:700;margin:0 0 8px;color:#1f1f1f}
.sd-range{display:grid;grid-template-columns:1fr 1fr;border:1px solid #d9dde1;border-radius:8px;overflow:hidden}
.sd-range input{border:none;padding:11px 12px;font:inherit;font-size:.9rem;min-width:0;outline:none;background:#fff}
.sd-range input+input{border-left:1px solid #d9dde1}
.sd-range:focus-within{border-color:#9a9ea4}
.sd-search{display:flex;align-items:center;gap:8px;border:1px solid #d9dde1;border-radius:8px;padding:0 12px;color:#8a8f94}
.sd-search input{border:none;outline:none;font:inherit;font-size:.9rem;padding:11px 0;flex:1;min-width:0;background:none}
.sd-search:focus-within{border-color:#9a9ea4}
.sd-select{width:100%;padding:11px 12px;border:1px solid #d9dde1;border-radius:8px;font:inherit;font-size:.9rem;background:#fff;outline:none;cursor:pointer}
.sd-chips{display:flex;flex-wrap:wrap;gap:8px}
.sd-chip{cursor:pointer;user-select:none}
.sd-chip input{position:absolute;opacity:0;pointer-events:none}
.sd-chip span{display:inline-block;padding:9px 15px;border:1px solid #d9dde1;border-radius:999px;font-size:.88rem;color:#1f1f1f;transition:all .12s}
.sd-chip:hover span{border-color:#9a9ea4}
.sd-chip input:checked+span{background:#474747;border-color:#474747;color:#fff}
.sd-chip input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.sd-opts{display:flex;flex-direction:column;gap:2px}
.sd-check{display:flex;align-items:center;gap:10px;padding:4px 0;font-size:.9rem;color:#2b2f33;cursor:pointer;user-select:none}
.sd-check input{width:18px;height:18px;margin:0;accent-color:var(--accent);flex-shrink:0;cursor:pointer}
.sd-check-line{padding:6px 0}
.sd-swatch{width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.15);flex-shrink:0}
.sd-collapsible:not(.open):not(.searching) .sd-hide{display:none}
.sd-list .sd-miss{display:none!important}
.sd-list.searching .sd-showall{display:none}
.sd-showall{background:none;border:none;padding:6px 0 0;color:var(--accent);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer}
.sd-find{width:100%;padding:8px 10px;border:1px solid #d9dde1;border-radius:8px;font:inherit;font-size:.86rem;margin-bottom:6px;outline:none}
.sd-more{border-top:1px solid #e6e8eb;padding-top:12px;margin-bottom:12px}
.sd-more summary{cursor:pointer;font-weight:700;color:var(--accent);font-size:.92rem;list-style:none;margin-bottom:12px}
.sd-more summary::-webkit-details-marker{display:none}
.sd-more summary::after{content:" ▾"}
.sd-more[open] summary::after{content:" ▴"}
.sd-flags{border-top:1px solid #e6e8eb;padding-top:10px}
.sd-actions{position:sticky;bottom:0;background:#fff;padding:10px 0 4px;display:flex;flex-direction:column;align-items:center;gap:10px}
.sd-show{width:100%;height:46px;border:none;border-radius:8px;background:var(--brand);color:#fff;font:inherit;font-weight:700;font-size:.95rem;cursor:pointer;transition:background .15s}
.sd-show:hover{background:var(--accent-hover)}
.sd-reset{color:#1f1f1f;font-weight:600;font-size:.9rem;text-decoration:none}
.sd-reset:hover{color:#d03b3b}
/* right column */
.sd-title{font-size:1.55rem;font-weight:800;margin:0 0 10px;line-height:1.2}
.sd-title span{color:#a0a6ad;font-weight:700}
.sd-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.sd-filter-btn{display:none;align-items:center;gap:8px;height:40px;padding:0 14px;border:1px solid #d9dde1;border-radius:8px;background:#fff;font:inherit;font-weight:600;cursor:pointer;position:relative}
.sd-filter-btn i{width:8px;height:8px;border-radius:50%;background:var(--brand);position:absolute;top:7px;right:7px}
.sd-views{display:flex;gap:4px}
.sd-view{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;color:#a0a6ad}
.sd-view:hover{color:#474747;background:#f4f5f6}
.sd-view.active{color:#1f1f1f}
.sd-sort{display:flex;align-items:center;gap:6px;color:#1f1f1f}
.sd-sort select{border:none;background:none;font:inherit;font-weight:600;font-size:.92rem;cursor:pointer;outline:none;padding:6px 0}
.sd-save{margin-left:auto}
.sd .kf-tiles-big{grid-template-columns:repeat(var(--n,5),minmax(0,1fr))}
.sd .kf-tile-big{height:150px}
.sd .kf-tile-small{height:128px}
.sd .kf-tiles{margin-bottom:12px}
.sd .kf-tiles-small{margin-bottom:30px}
.sd-fh-title{font-size:1.5rem;font-weight:800;margin:0 0 14px}
.sd-switch{display:grid;grid-template-columns:repeat(3,1fr);background:#f1f2f4;border-radius:999px;padding:4px;margin-bottom:16px}
.sd-switch-btn{text-align:center;padding:9px;border-radius:999px;color:#6b7075;text-decoration:none;font-size:.92rem;transition:background .15s,color .15s}
.sd-switch-btn:hover{color:#1f1f1f}
.sd-switch-btn.active{background:#fff;color:#1f1f1f;box-shadow:0 1px 4px rgba(0,0,0,.1)}
.sd-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.sd-scrim{display:none}

/* result rows: big photo, price, title, description snippet (ss.com), meta line */
.lr-list{display:flex;flex-direction:column}
.lr{position:relative;display:grid;grid-template-columns:200px minmax(0,1fr);gap:18px;padding:14px 0;border-bottom:1px solid #eceef0}
.lr-img{display:block;height:170px;border-radius:12px;overflow:hidden;background:#f1f2f4}
.lr-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.lr:hover .lr-img img{transform:scale(1.03)}
.lr-fav{top:22px;left:154px;right:auto}
.lr-body{display:flex;flex-direction:column;gap:5px;min-width:0;text-decoration:none;color:#1f1f1f;padding-top:2px}
.lr-price{font-size:1.3rem;font-weight:800;line-height:1.2}
.lr-perm2{font-style:normal;font-weight:500;font-size:.85rem;color:#8a8f94;margin-left:10px}
.lr-title{font-weight:700;font-size:1rem;line-height:1.3}
.lr:hover .lr-title{color:var(--accent)}
.lr-desc{color:#6b7075;font-size:.88rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lr-bottom{margin-top:auto;display:flex;flex-direction:column;gap:2px;padding-top:6px}
.lr-meta{color:#8a8f94;font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lr-foot{display:flex;justify-content:space-between;gap:12px;color:#8a8f94;font-size:.86rem}
.lr-foot span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lr-foot span:last-child{flex-shrink:0}

/* job rows */
.jr-list{display:flex;flex-direction:column;gap:12px}
.jr{position:relative;border:1px solid #e6e8eb;border-radius:12px;background:#fff;transition:box-shadow .15s,border-color .15s}
.jr:hover{border-color:#cfd3d8;box-shadow:0 4px 16px rgba(0,0,0,.06)}
.jr-link{display:flex;flex-direction:column;gap:7px;padding:16px 56px 14px 18px;text-decoration:none;color:#1f1f1f}
.jr-top{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap}
.jr-title{font-weight:700;font-size:1.08rem;line-height:1.3}
.jr:hover .jr-title{color:var(--accent)}
.jr-salary{font-weight:800;font-size:1.08rem;white-space:nowrap}
.jr-salary.neg{color:#8a8f94;font-weight:600;font-size:.95rem}
.jr-who{display:flex;gap:10px;flex-wrap:wrap;font-size:.88rem;color:#6b7075}
.jr-who b{color:#2b2f33;font-weight:600}
.jr-tags{display:flex;flex-wrap:wrap;gap:6px}
.jr-tag{background:#eefaf4;color:#0b7a4b;font-size:.78rem;font-weight:600;padding:4px 9px;border-radius:6px}
.jr-desc{color:#6b7075;font-size:.88rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.jr-foot{display:flex;justify-content:space-between;color:#a0a6ad;font-size:.84rem}
.jr-fav{top:12px;right:12px}
.jr-compact .jr-desc,.jr-compact .jr-tags{display:none}
.jr-compact .jr-link{padding:12px 50px 12px 14px;gap:5px}

/* jobs landing */
.jb-hero{background:linear-gradient(180deg,#eefaf4 0%,#fff 100%);padding:34px 0 26px}
.jb-title{font-size:2rem;font-weight:800;margin:0}
.jb-sub{color:#6b7075;margin:6px 0 20px}
.jb-box{background:#fff;border-radius:16px;box-shadow:0 6px 30px rgba(0,60,30,.10);padding:16px 18px 14px;border:1px solid #e3efe8}
.jb-tabs{display:flex;gap:6px;margin-bottom:12px}
.jb-tab{cursor:pointer}
.jb-tab input{position:absolute;opacity:0;pointer-events:none}
.jb-tab span{display:inline-block;padding:8px 16px;border-radius:999px;font-weight:600;color:#6b7075;font-size:.95rem}
.jb-tab span em{font-style:normal;color:#a0a6ad;font-weight:500;margin-left:4px}
.jb-tab input:checked+span{background:var(--brand);color:#fff}
.jb-tab input:checked+span em{color:rgba(255,255,255,.8)}
.jb-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) auto;gap:10px}
.jb-field{display:flex;align-items:center;gap:8px;border:1px solid #d9dde1;border-radius:10px;padding:0 12px;background:#fff;color:#8a8f94;height:52px}
.jb-field:focus-within{border-color:var(--brand)}
.jb-field input,.jb-field select{border:none;outline:none;font:inherit;font-size:.96rem;width:100%;min-width:0;background:none;color:#1f1f1f;height:100%;cursor:pointer}
.jb-field input{cursor:text}
.jb-go{height:52px;padding:0 26px;border:none;border-radius:10px;background:var(--brand);color:#fff;font:inherit;font-weight:700;font-size:1rem;cursor:pointer;white-space:nowrap}
.jb-go:hover{background:var(--accent-hover)}
.jb-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}
.jb-chip{cursor:pointer;user-select:none}
.jb-chip input{position:absolute;opacity:0;pointer-events:none}
.jb-chip span{display:inline-block;padding:7px 13px;border-radius:999px;border:1px solid #d9dde1;font-size:.86rem;color:#2b2f33;background:#fff;transition:all .12s}
.jb-chip:hover span{border-color:#9a9ea4}
.jb-chip input:checked+span{background:#eefaf4;border-color:var(--brand);color:#0b7a4b;font-weight:600}
.jb-chips-sep{width:1px;height:22px;background:#d9dde1;margin:0 4px}
.jb-h2{font-size:1.3rem;font-weight:800;margin:30px 0 14px}
.jb-h2row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.jb-all{color:var(--accent);font-weight:600;text-decoration:none;font-size:.92rem}
.jb-all-block{display:block;margin-top:12px}
.jb-spheres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.jb-sphere{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border:1px solid #e6e8eb;border-radius:12px;text-decoration:none;color:#1f1f1f;font-weight:600;font-size:.92rem;transition:border-color .15s,box-shadow .15s}
.jb-sphere:hover{border-color:var(--brand);box-shadow:0 2px 10px rgba(0,173,101,.12)}
.jb-sphere em{font-style:normal;color:#a0a6ad;font-weight:500;flex-shrink:0}
.jb-cols{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start;padding-bottom:40px}

@media(max-width:1000px){
    .jb-row{grid-template-columns:1fr 1fr}
    .jb-kw{grid-column:1/-1}
    .jb-go{grid-column:1/-1}
    .jb-spheres{grid-template-columns:repeat(2,minmax(0,1fr))}
    .jb-cols{grid-template-columns:1fr}
}
@media(max-width:900px){
    .sd-layout{grid-template-columns:1fr}
    .sd-side{position:fixed;top:0;left:0;bottom:0;width:min(360px,88vw);max-height:none;background:#fff;z-index:2500;padding:0 16px 16px;
        transform:translateX(-105%);transition:transform .25s ease;box-shadow:4px 0 30px rgba(0,0,0,.2)}
    .sd-side.open{transform:none}
    .sd-side-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fff;padding:14px 0;z-index:2;font-weight:800;font-size:1.1rem;border-bottom:1px solid #eceef0;margin-bottom:12px}
    .sd-side-close{width:36px;height:36px;border:none;border-radius:8px;background:#f1f2f4;font-size:1rem;cursor:pointer}
    .sd-scrim{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:2400}
    .sd-scrim.on{display:block}
    body.sd-lock{overflow:hidden}
    .sd-filter-btn{display:inline-flex}
    .sd-save span{display:none}
    .sd-title{font-size:1.25rem}
    .lr{grid-template-columns:120px minmax(0,1fr);gap:12px}
    .lr-img{height:120px}
    .lr-fav{left:84px;top:18px;width:30px;height:30px}
    .lr-price{font-size:1.1rem}
    .lr-desc{display:none}
    .sd .kf-tiles-big{grid-template-columns:repeat(3,minmax(0,1fr))}
    .sd .kf-tile-big,.sd .kf-tile-small{height:118px}
}
@media(max-width:560px){
    .jb-row{grid-template-columns:1fr}
    .jb-title{font-size:1.5rem}
    .sd-switch-btn{font-size:.84rem;padding:8px 4px}
    .sd-views{display:none}
}
@media(max-width:900px){
    .sd-toolbar{flex-wrap:nowrap;gap:10px}
    .sd-sort{min-width:0}
    .sd-sort select{max-width:120px;text-overflow:ellipsis}
    .sd-save{flex-shrink:0;padding:0 4px}
}
.sd .kf-tile-big .kf-tile-img{max-height:66%}
.sd .kf-tile-big{height:160px}.sd .kf-tile-big .kf-tile-img{max-height:76%}
/* v72: auto-applied filters + left column scroll */
.sd-main{transition:opacity .15s}
.sd-loading{opacity:.45;pointer-events:none}
.sd-side{overscroll-behavior:contain}
/* v72: jobs page, less round, a bit more "serious" */
.jb-hero{background:#f3f7f5;border-bottom:1px solid #e3ebe7;padding:30px 0 28px}
.jb-box{border-radius:8px;box-shadow:0 2px 14px rgba(0,40,20,.08);border-color:#dde6e1;padding:0 0 14px}
.jb-tabs{gap:0;margin:0 0 14px;border-bottom:1px solid #e6ebe8}
.jb-tab span{border-radius:0;padding:13px 20px;border-bottom:3px solid transparent;margin-bottom:-1px}
.jb-tab input:checked+span{background:none;color:#1f1f1f;border-bottom-color:var(--brand)}
.jb-tab input:checked+span em{color:#8a8f94}
.jb-row,.jb-chips{padding:0 16px}
.jb-field{border-radius:6px;height:48px}
.jb-go{border-radius:6px;height:48px}
.jb-chip span{border-radius:6px;padding:6px 11px}
.jb-sphere{border-radius:6px;padding:13px 14px;border-left:3px solid transparent}
.jb-sphere:hover{border-left-color:var(--brand);box-shadow:none;background:#f8fbf9}
.jr{border-radius:8px}
.jr-tag{border-radius:4px}
.jb-h2{font-size:1.2rem}
.jb-sphere{border-left:1px solid #e6e8eb}
.jb-sphere:hover{border-color:#cfd8d3;box-shadow:inset 3px 0 0 var(--brand)}

/* ═══════════ v74 ═══════════ */
:root{--deep:#153043;--deep-hover:#21465f}
/* deep sea blue logo + post button */
.nav .nav-logo-brand{color:var(--deep)}
.nav .btn-post{background:var(--deep)}
.nav .btn-post:hover{background:var(--deep-hover)}
/* "Легковые авто" breathes black <-> green, stops on green while hovered */
@keyframes pct-breathe{0%,100%{color:#1f1f1f}50%{color:var(--brand)}}
.breathe,.breathe .home-sub-name{animation:pct-breathe 2.6s ease-in-out infinite}
.breathe:hover,.breathe:hover .home-sub-name{animation:none;color:var(--brand)}
.mega-sub-head.breathe{animation-name:pct-breathe}
/* bigger homepage category list */
.home-cat-name{font-size:.95rem}
.home-sub-link{font-size:.98rem;line-height:1.5;padding:3px 0}
.home-sub-count{font-size:.82rem}
/* simple filter bar (ss.com style) + advanced toggle */
.sb{margin-bottom:22px}
.sb-row{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap;background:#f6f7f8;border:1px solid #e3e6e9;border-radius:8px;padding:10px}
.sb-field{display:flex;align-items:center;background:#fff;border:1px solid #d9dde1;border-radius:6px;height:44px;min-width:0;color:#8a8f94}
.sb-field:focus-within{border-color:#9a9ea4}
.sb-field input,.sb-field select{border:none;outline:none;background:none;font:inherit;font-size:.92rem;color:#1f1f1f;height:100%;min-width:0;width:100%}
.sb-q{flex:2 1 220px;padding:0 12px;gap:8px}
.sb-pair{flex:1.3 1 200px}
.sb-pair input{padding:0 12px}
.sb-pair input+input{border-left:1px solid #e3e6e9}
.sb-sel{flex:1 1 160px;padding:0 6px 0 10px}
.sb-sel select{cursor:pointer}
.sb-go{flex:0 0 auto;height:44px;padding:0 22px;border:none;border-radius:6px;background:var(--brand);color:#fff;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.sb-go:hover{background:var(--accent-hover)}
.sb-under{display:flex;align-items:center;gap:18px;margin:10px 2px 0}
.sb-adv{display:inline-flex;align-items:center;gap:7px;background:none;border:none;padding:0;font:inherit;font-weight:600;font-size:.92rem;color:var(--deep);cursor:pointer}
.sb-adv:hover{color:var(--brand)}
.sb-reset{font-size:.9rem;color:#6b7075;text-decoration:none}
.sb-reset:hover{color:#d03b3b}
.sb-cats{columns:4 200px;column-gap:28px;margin-top:16px;padding-top:14px;border-top:1px solid #eceef0}
.sb-cat{display:flex;justify-content:space-between;gap:8px;padding:3px 0;font-size:.92rem;color:#2b2f33;text-decoration:none;break-inside:avoid}
.sb-cat:hover{color:var(--accent)}
.sb-cat em{font-style:normal;color:#a0a6ad;font-size:.82rem}
.sb-cat.bold{font-weight:700}
.sb-cat.active{color:var(--accent);font-weight:700}
.sd-simple-btn{display:block;background:none;border:none;padding:0 0 12px;margin-bottom:12px;border-bottom:1px solid #e6e8eb;width:100%;text-align:left;font:inherit;font-weight:600;font-size:.9rem;color:var(--deep);cursor:pointer}
.sd-simple-btn:hover{color:var(--brand)}
@media(min-width:901px){
    .sd:not(.adv) .sd-layout{grid-template-columns:minmax(0,1fr)}
    .sd:not(.adv) .sd-side{display:none}
    .sd.adv .sb{display:none}
}
@media(max-width:900px){
    .sb,.sd-simple-btn{display:none}
}
/* jobs: all professions A-Z */
.jb-az{position:relative;max-height:330px;overflow:hidden;border:1px solid #e6e8eb;border-radius:8px;padding:16px 18px;transition:max-height .35s ease}
.jb-az.open{max-height:none}
.jb-az-cols{columns:4 210px;column-gap:28px}
.jb-az-grp{break-inside:avoid;margin-bottom:12px}
.jb-az-letter{font-weight:800;color:var(--deep);font-size:1rem;margin-bottom:4px;padding-bottom:2px;border-bottom:1px solid #eceef0}
.jb-az-item{display:flex;justify-content:space-between;gap:8px;padding:2px 0;font-size:.9rem;color:#2b2f33;text-decoration:none}
.jb-az-item:hover{color:var(--accent)}
.jb-az-item em{font-style:normal;color:var(--brand);font-weight:600;font-size:.82rem}
.jb-az-item.zero{color:#a0a6ad}
.jb-az-fade{position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(rgba(255,255,255,0),#fff);pointer-events:none}
.jb-az.open .jb-az-fade{display:none}
.jb-az-btn{display:block;margin:10px auto 0;background:#fff;border:1px solid #d9dde1;border-radius:6px;padding:10px 18px;font:inherit;font-weight:600;color:var(--deep);cursor:pointer}
.jb-az-btn:hover{border-color:var(--brand);color:var(--brand)}
/* v75: A-Z letters flow across (А Б В / Г Д Е ...) instead of down the columns */
.jb-az-cols{columns:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));column-gap:28px;row-gap:6px;align-items:start}
.jb-az-grp{margin-bottom:6px}
/* A-Z: full-width letter header, its jobs run across in rows */
.jb-az-cols{display:block}
.jb-az-grp{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));column-gap:28px;margin-bottom:14px}
.jb-az-letter{grid-column:1/-1;margin-bottom:6px}
.jb-az-item{padding:3px 0}

/* ═══════════ v77 ═══════════ */
/* post button back to green; logo a lighter, clearly-blue deep sea tone */
:root{--deep:#1d4a6b;--deep-hover:#2a5f86}
.nav .btn-post{background:var(--brand)}
.nav .btn-post:hover{background:var(--accent-hover)}
/* Недвижимость: the hero used to clip its dropdowns (overflow hidden) so they looked like they went under the listings */
.re-hero{overflow:visible;z-index:20}
.re-glass{z-index:2}
.re-glass .cdd-pop,.re-glass .re-nav-pop{z-index:50}
/* "Без посредников" looks like the other grey chips */
.re-chips .re-toggle{height:32px;padding:0 10px 0 6px;border-radius:4px;background:rgba(255,255,255,.28);font-size:.9rem}
.re-chips .re-toggle:hover{background:rgba(255,255,255,.4)}
.re-chips .re-toggle .re-switch{width:30px;height:18px;background:rgba(255,255,255,.4)}
.re-chips .re-toggle .re-switch::after{width:14px;height:14px}
.re-chips .re-toggle input:checked + .re-switch{background:var(--brand)}
/* v79: hand-placed Авто tile pictures (layouts.TILE_BOXES), desktop only */
@media(min-width:901px){
    .kf-tile .kf-tile-img.boxed{left:var(--l);top:var(--t);width:var(--w);height:var(--h);right:auto;bottom:auto;
        max-width:none;max-height:none;object-fit:contain;object-position:center bottom;transform:none;transform-origin:center bottom}
    .kf-tile:hover .kf-tile-img.boxed{transform:scale(1.04)}
}

/* ── v93: Работа и бизнес landing, business block (Готовый бизнес / Оборудование для бизнеса) ── */
.jb-biz{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.jb-biz-col{border:1px solid #e6e8eb;border-radius:6px;padding:4px 16px 12px}
.jb-biz-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0 10px;border-bottom:1px solid #eef0f2;margin-bottom:8px;text-decoration:none;color:#1f1f1f;font-weight:700;font-size:1rem}
.jb-biz-head:hover{color:var(--brand)}
.jb-biz-head em,.jb-biz-list em{font-style:normal;color:#a0a6ad;font-weight:500;flex-shrink:0}
.jb-biz-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.jb-biz-list a{display:flex;justify-content:space-between;gap:8px;padding:5px 0;text-decoration:none;color:#333;font-size:.9rem}
.jb-biz-list a:hover{color:var(--brand)}
@media (max-width:760px){
    .jb-biz,.jb-biz-list{grid-template-columns:1fr}
}

/* v95: three business columns (Готовый бизнес, Оборудование, Деловые услуги shortcut) */
.jb-biz{grid-template-columns:repeat(3,minmax(0,1fr))}
.jb-biz-list{grid-template-columns:1fr}
@media (max-width:960px){ .jb-biz{grid-template-columns:1fr} }

/* v99: "Все профессии" as one flat grid, A-Z across each row, no letter headers */
.jb-az-flat{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));column-gap:28px;row-gap:2px;align-items:start}

/* v100: Эко-продукты stands out everywhere it is listed: bold + brand green */
.mega-sub-head.eco,.subtab.eco,.eco .home-sub-name,.sd-node.eco>span:first-child,.sb-cat.eco>span:first-child{color:var(--brand) !important;font-weight:700 !important}
.mega-sub-head.eco:hover,.subtab.eco:hover,.eco:hover .home-sub-name,.sd-node.eco:hover>span:first-child,.sb-cat.eco:hover>span:first-child{color:#009457 !important}

/* ═══════════ v101: sticky header ═══════════ */
:root{--hdr:0px}
.site-header{position:sticky;top:0;z-index:1000;transition:box-shadow .2s}
.site-header.stuck{box-shadow:0 2px 12px rgba(0,0,0,.08)}
.sd-side{top:calc(var(--hdr) + 12px);max-height:calc(100vh - var(--hdr) - 24px)}
.ld-side,.pf-tips,.acc-side{top:calc(var(--hdr) + 20px)}
.browse-sidebar,.browse-advanced{top:calc(var(--hdr) + 16px)}
html{scroll-padding-top:calc(var(--hdr) + 12px)}
.mv{height:calc(100vh - var(--hdr))}
/* phones: the slide-in filter panel and modals must still cover the sticky header */
@media(max-width:900px){ .sd-side{top:0;max-height:none;z-index:2500} .sd-scrim{z-index:2400} }
.mm{z-index:3000}

/* ═══════════ v101: car pages = lists left, filter column right; tighter spacing ═══════════ */
.kf.section{padding-top:14px}
.kf .breadcrumb{margin-bottom:2px}
.kf-title{margin:2px 0 12px}
.kf .kf-h2{font-size:1.3rem;margin:20px 0 10px}
.kf-split{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start;margin-top:6px}
.kf-split-main .kf-h2:first-child{margin-top:0}
.kf-split .kf-links{columns:4;column-gap:20px}
.kf-split .kf-link{padding:3px 0}
.kf-split .drill-groups{margin-top:0}
.kf-panel.kf-panel-side{margin:0;padding:12px;border-radius:12px}
.kf-panel-side .cfp-grid{grid-template-columns:1fr;gap:8px}
.kf-panel-side .cdd-btn{padding:10px 13px}
.kf-panel-side .cfp-bool{padding:10px 13px}
.kf-panel-side .cdd-pop{min-width:100%}
.kf-panel-side .cfp-features{margin-top:8px}
.kf-side-more{display:flex !important;margin:12px 2px 0}
.kf-side-actions{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.kf-side-actions .kf-show{width:100%;height:44px;font-size:.95rem}
.kf-side-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kf-clear{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;border-radius:8px;background:#fff;
    border:1px solid transparent;color:#3a3d40;font-weight:700;font-size:.86rem;text-decoration:none;transition:color .15s,border-color .15s}
.kf-clear:hover{color:#d03b3b;border-color:#f0c4c4}
.kf-side-row .kf-save{height:40px;justify-content:center;padding:0 8px;font-size:.86rem;gap:6px;white-space:nowrap}
.kf-side-row .kf-save svg{width:16px;height:16px;flex-shrink:0}
.cdd-off .cdd-btn{opacity:.5;cursor:not-allowed}
@media(max-width:1100px){
    .kf-split{grid-template-columns:minmax(0,1fr) 270px;gap:22px}
    .kf-split .kf-links{columns:3}
}
@media(max-width:860px){
    .kf-split{grid-template-columns:1fr}
    .kf-split-side{order:-1}
    .kf-split .kf-links{columns:2}
}

/* ═══════════ v101: everything shrinks a bit on smaller windows ═══════════
   Text is in rem, so a fluid root size scales all of it: 16px at ~1400px+ wide, down to 13.5px at ~900px.
   Phones keep 16px (their own layout already handles size). The fixed sizes below are rem so they follow. */
@media(min-width:861px){
    html{font-size:clamp(13.5px, calc(8.6px + 0.52vw), 16px)}
    .topbar-inner{height:2.875rem}
    .nav-inner{height:4.75rem}
    .nav-search-input{height:3rem}
    .nav .btn-post,.nav .btn-login{height:2.875rem}
    .kf-tile{height:12.5rem}
    .kf-tile-small{height:12.5rem}
    .sd .kf-tile-big{height:10rem}
    .sd .kf-tile-small{height:8rem}
    .hc-section .hc-img{width:5.25rem;height:5.25rem}
    .lr{grid-template-columns:12.5rem minmax(0,1fr)}
    .lr-img{height:10.6rem}
    .kf-split{grid-template-columns:minmax(0,1fr) 18.75rem}
}

@media(max-width:860px){ .site-header{top:calc(-1 * var(--tb, 0px))} }
.kf-tiles + .kf-split{margin-top:24px}

/* ═══════════ v102 ═══════════ */
/* side gaps on every screen except phones: they grow with the window (room for side ads later) */
@media(min-width:861px){
    :root{--gut:clamp(28px, 5vw, 96px)}
    .container{max-width:calc(1240px + 2 * var(--gut));padding-left:var(--gut);padding-right:var(--gut)}
}
/* page titles under the breadcrumb: dark grey, a little quieter */
.kf-title,.sd-title,.sd-fh-title,.page-title{color:#3d4247;font-weight:700}
.sd-title span{color:#a7adb3}
/* car pages: the four main fields in a row above the brands */
.kf-toprow.kf-panel.cfp{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 18px;padding:10px;border-radius:12px}
.kf-toprow .cdd-btn{padding:10px 13px}
.kf-toprow .cdd-pop-range{min-width:240px}
/* the form is now the grid itself */
form.kf-split{margin-top:6px}
.kf-tiles + form.kf-split{margin-top:24px}
/* Комплектация inside the narrow column: one per line, text wraps inside the box */
.kf-panel-side .cfp-features-grid{grid-template-columns:1fr;gap:7px}
.kf-panel-side .cfp-feat{align-items:flex-start;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.kf-panel-side .cfp-feat input{margin-top:1px}
/* "Показать" a bit calmer */
.kf-show{font-weight:600}
.kf-side-actions .kf-show{height:40px;font-size:.92rem;border-radius:8px}
@media(max-width:1100px){ .kf-toprow.kf-panel.cfp{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:860px){ .kf-toprow.kf-panel.cfp{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:12px} }
@media(max-width:860px){
    .kf-split-main{display:contents}
    .kf-split-main > *{order:3}
    .kf-split-main > .kf-toprow{order:1}
    .kf-split-side{order:2}
}
@media(max-width:860px){ .kf-toprow.kf-panel.cfp{margin-bottom:-10px} }

/* v103: bigger side gaps that stay big on small screens too (room for side ads); phones keep their own */
@media(min-width:861px){ :root{--gut:clamp(72px, 8vw, 170px)} }
/* job pages, simple filter: profession list */
.sb-prof-head{font-weight:700;font-size:.95rem;color:#3d4247;margin:16px 0 8px;padding-top:14px;border-top:1px solid #eceef0}
.sb-prof.jb-az{max-height:210px;border:0;padding:0}
.sb-prof.jb-az.open{max-height:none}
.sb-prof .jb-az-item.active{color:var(--accent);font-weight:700}
.sb-prof + .jb-az-btn{margin:8px 0 0}
/* simple bar: fit one line on laptop widths now that the side gaps are bigger */
.sb-q{flex:1.3 1 150px}
.sb-pair{flex:1.2 1 190px}
.sb-sel{flex:1 1 130px}
.sb-go{padding:0 18px}
.sb-pair input{padding:0 10px}
.sb-pair input::placeholder{font-size:.88rem}
.sb-pair input{flex:1 1 0;width:auto}.sb-pair input:first-child{flex:1.5 1 0}
/* v104: profession lists read like the brand list: count right after the name, narrower columns */
.jb-az-flat{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));column-gap:22px}
.jb-az-item{display:block;padding:3px 0;line-height:1.35}
.jb-az-item span{display:inline}
.jb-az-item em{margin-left:5px;font-size:.8rem}
.jb-az-flat{grid-template-columns:repeat(auto-fill,minmax(195px,1fr))}

/* ═══════════ v105 ═══════════ */
@media(min-width:861px){
    /* top row and the side column join into one green L shape */
    .kf-split .kf-toprow.kf-panel.cfp{margin-right:-32px;padding-right:42px;border-radius:12px 0 0 12px}
    .kf-split .kf-toprow + *{margin-top:0}
    form.kf-split:has(.kf-toprow) .kf-panel-side{border-top-left-radius:0}
    /* Марка / Модель / Поколение open sideways to the left, in columns, instead of dropping over the filter */
    .kf-panel-side .cdd[data-kind=nav] .cdd-pop{left:auto;right:calc(100% + 14px);top:-6px;width:min(520px, 46vw);min-width:0;
        max-height:430px;columns:3 140px;column-gap:6px;padding:8px;z-index:80}
    .kf-panel-side .cdd[data-kind=nav] .cdd-item{break-inside:avoid}
    .kf-panel-side .cdd[data-kind=nav].few .cdd-pop{width:auto;min-width:220px;columns:1}
}
@media(max-width:1100px) and (min-width:861px){ .kf-split .kf-toprow.kf-panel.cfp{margin-right:-22px;padding-right:32px} }

/* ═══════════ v107: wide panel folds to one row (picked generation) ═══════════ */
.cfp-hid{display:none !important}

/* ═══════════ v110: tavex-style car filter (Alex, Oct 2026) ═══════════
   light grey panel, 1px corners, soft shadow on the right + bottom only, no box around the dropdowns,
   just a thin line under each one; popups are square with the same right/bottom shadow and grey hover rows. */
.kf-panel.cfp{background:#f5f6f7;border:0;border-radius:1px;padding:12px 18px 14px;box-shadow:3px 3px 7px rgba(0,0,0,.10)}
.kf-panel .cfp-grid{gap:6px 20px}
.kf-panel .cdd-btn,.kf-panel .cfp-bool{background:transparent;border:0;border-bottom:1px solid #c6c9ce;border-radius:0;
    padding:11px 2px 9px;font-size:.93rem;color:#1f2125}
.kf-panel .cdd-btn:hover,.kf-panel .cfp-bool:hover{border-color:transparent;border-bottom-color:#7d838c}
.kf-panel .cdd.open .cdd-btn{border-color:transparent;border-bottom-color:#2b2f36}
.kf-panel .cfp-bool:has(input:checked){background:transparent;border-color:transparent;border-bottom-color:var(--accent)}
.kf-panel .cdd-btn .cdd-chev{color:#b9bdc3}
.kf-panel .cdd-val.ph{color:#2b2f36}
.kf-panel .cfp-features{border-top-color:#e2e4e7}
.kf-panel .cdd-pop{border:0;border-radius:0;padding:0;box-shadow:3px 3px 8px rgba(0,0,0,.22),0 0 1px rgba(0,0,0,.18)}
.kf-panel .cdd-item{border-radius:0;padding:12px 18px;color:#2b2735;font-size:.93rem}
.kf-panel .cdd-item:hover{background:#f0f0f0;color:#2b2735}
.kf-panel .cdd-item.sel{color:#2b2735;font-weight:600;background:#f7f7f7}
.kf-panel .cdd-pop-range{padding:12px}
.kf-panel .kf-save,.kf-panel .kf-clear{border-radius:1px;box-shadow:0 0 0 1px #e2e4e7}
.kf-panel .kf-show{border-radius:1px}

/* the L: top row ends exactly at the side column (which is painted over its shadow), no inner corners */
.kf-toprow.kf-panel.cfp{gap:6px 20px;padding:4px 18px 8px;border-radius:1px}
.kf-toprow .cdd-btn{padding:11px 2px 9px}
.kf-panel.kf-panel-side{padding:12px 18px 14px;border-radius:1px}
.kf-panel-side .cfp-grid{gap:4px}
.kf-panel-side .cdd-btn,.kf-panel-side .cfp-bool{padding:11px 2px 9px}
@media(min-width:861px){
    .kf-split .kf-toprow.kf-panel.cfp{margin-right:-32px;padding-right:0;border-radius:1px 0 0 1px;box-shadow:0 3px 7px rgba(0,0,0,.10)}
    .kf-panel-side .cdd[data-kind=nav] .cdd-pop{padding:0;column-gap:0}
}
@media(max-width:1100px) and (min-width:861px){ .kf-split .kf-toprow.kf-panel.cfp{margin-right:-22px} }

/* ═══════════ v111: lighter panel, white boxes back, slimmer sides, no seam in the L, full brand list ═══════════ */
.kf-panel.cfp{background:#fafafb;padding:10px 10px 12px;box-shadow:4px 4px 7px -2px rgba(0,0,0,.12)}
.kf-panel .cfp-grid{gap:8px 10px}
.kf-panel .cdd-btn,.kf-panel .cfp-bool{background:#fff;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;padding:10px 12px}
.kf-panel .cdd-btn:hover,.kf-panel .cfp-bool:hover{border-color:#e7e9ec;border-bottom-color:#7d838c}
.kf-panel .cdd.open .cdd-btn{border-color:#e7e9ec;border-bottom-color:#2b2f36}
.kf-panel .cfp-bool:has(input:checked){background:#fff;border-color:#e7e9ec;border-bottom-color:var(--accent)}
.kf-toprow.kf-panel.cfp{gap:8px 10px;padding:10px 10px 10px}
.kf-toprow .cdd-btn{padding:10px 12px}
.kf-panel.kf-panel-side{padding:10px 10px 12px}
.kf-panel-side .cfp-grid{gap:8px}
.kf-panel-side .cdd-btn,.kf-panel-side .cfp-bool{padding:10px 12px}
.kf-toprow .cdd-pop,.kf-panel .cdd-pop{z-index:90}
@media(min-width:861px){
    /* shadows only go right/down (negative spread), so nothing bleeds onto the other half of the L */
    .kf-split .kf-toprow.kf-panel.cfp{padding-right:0;box-shadow:0 4px 7px -3px rgba(0,0,0,.12)}
    /* Марка: the whole A-Z list at once, no inner scrollbar */
    .kf-panel-side #ddBrand .cdd-pop{max-height:none;overflow:visible;width:min(640px, 50vw);columns:4 130px}
}

/* ═══════════ v112: Марка/Модель in the top row, their lists drop over the brand list; list lines up with the boxes ═══════════ */
@media(min-width:861px){
    .kf-split-main{position:relative}
    .kf-split-main > .kf-h2,.kf-split-main > .kf-links,.kf-split-main > .drill-groups,.kf-split-main > .kf-showall{padding-left:10px}
    .kf-toprow .cdd.kf-wide{position:static}
    .kf-toprow .cdd.kf-wide .cdd-pop{top:auto;left:0;right:0;width:auto;margin-top:16px;max-height:none;overflow:visible;
        columns:4 150px;column-gap:0;padding:6px 0}
    .kf-toprow .cdd.kf-wide .cdd-item{break-inside:avoid}
}

/* ═══════════ v113: no shadow on the grey panel; the list text lines up with the text inside the boxes ═══════════ */
.kf-panel.cfp,.kf-split .kf-toprow.kf-panel.cfp{box-shadow:none}
@media(min-width:861px){
    .kf-split-main > .kf-h2,.kf-split-main > .kf-links,.kf-split-main > .drill-groups,.kf-split-main > .kf-showall{padding-left:23px}
}

/* ═══════════ v114: Работа и бизнес as columns (landing + Категории menu) ═══════════ */
.wb{padding:18px 0 48px}
.wb-title{font-size:1.75rem;font-weight:800;color:#1a1d21;margin:2px 0 22px}
.wb-cols,.mega-cols{display:grid;grid-template-columns:minmax(150px,.7fr) repeat(3,minmax(0,1fr));gap:22px 34px;align-items:start}
.wb-col,.mega-col-jobs,.mega-cols .mega-col{display:flex;flex-direction:column;min-width:0;margin:0}
.wb-head{font-size:1.12rem;font-weight:700;color:#1a1d21;line-height:1.45;margin-bottom:10px}
.wb-col-jobs .wb-head{margin-bottom:16px}
.wb-head:hover,.wb-link:hover{color:var(--brand)}
.wb-link{font-size:1rem;color:#4a4f57;line-height:1.45;padding:4px 0}
.mega-cols .mega-head{display:block;font-size:.98rem;font-weight:700;color:var(--text);margin-bottom:6px;line-height:1.4}
.mega-cols .mega-col-jobs .mega-head{margin-bottom:12px}
.mega-cols .mega-link{display:block;font-size:.88rem;color:var(--text-2);padding:3px 0;line-height:1.4}
.mega-cols .mega-head:hover,.mega-cols .mega-link:hover{color:var(--brand)}
@media(max-width:900px){ .wb-cols,.mega-cols{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:480px){ .wb-cols,.mega-cols{grid-template-columns:1fr} }
/* menu: "На главную" + "Категории" heading when inside the site */
.mega-home{display:flex;align-items:center;gap:8px;padding:9px 14px;font-size:.93rem;font-weight:600;color:var(--brand);border-radius:8px}
.mega-home:hover{background:#eaf8f1}
.mega-cats-title{padding:12px 14px 6px;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3)}
@media(max-width:768px){ .mega-home{width:100%} .mega-cats-title{width:100%;padding:6px 10px 2px} }

/* ═══════════ v114: job pages' simple bar (Alex's mockup: white rounded boxes) ═══════════ */
.jf-row{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
.jf-dd{position:relative;flex:1 1 180px;min-width:0}
.jf-btn{width:100%;height:46px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px;
    background:#fff;border:1px solid #e3e5e8;border-radius:8px;font:inherit;font-size:.98rem;color:#1f2125;cursor:pointer;text-align:left}
.jf-btn:hover{border-color:#c9ccd1}
.jf-dd.open .jf-btn{border-color:#9aa0a8}
.jf-val{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jf-val.on{font-weight:600}
.jf-chev{width:16px;height:16px;flex-shrink:0;color:#3d4247;transition:transform .2s}
.jf-dd.open .jf-chev{transform:rotate(180deg)}
.jf-pop{display:none;position:absolute;top:calc(100% + 6px);left:0;min-width:100%;max-height:360px;overflow-y:auto;background:#fff;
    border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.14),0 0 0 1px #e3e5e8;padding:6px 0;z-index:70}
.jf-dd.open .jf-pop{display:block}
.jf-opt{display:block;padding:9px 16px;font-size:.92rem;color:#2b2f36;cursor:pointer;white-space:nowrap}
.jf-opt:hover{background:#f3f4f6}
.jf-opt.sel{font-weight:600;color:var(--brand)}
.jf-opt em{font-style:normal;color:var(--text-3);font-size:.82rem;margin-left:4px}
.jf-pop-wide{min-width:320px}
.jf-pop-form{min-width:300px;padding:12px 16px 16px}
.jf-label{font-size:.8rem;font-weight:600;color:var(--text-3);margin:10px 0 5px}
.jf-label:first-child{margin-top:0}
.jf-pair{display:flex;gap:8px}
.jf-pair input,.jf-pop-form select{width:100%;height:38px;padding:0 10px;border:1px solid #e3e5e8;border-radius:6px;font:inherit;font-size:.9rem;background:#fff}
.jf-go{flex:0 0 auto;height:46px;border-radius:8px}

/* ═══════════ v114: one horizontal car filter (Alex's mockup), list under it ═══════════ */
.kf-hpanel.kf-panel.cfp{margin:6px 0 22px;padding:10px 12px 12px}
.kf-hpanel .kf-row{display:flex;flex-wrap:wrap;gap:8px}
.kf-hpanel .kf-row > *{flex:1 1 auto;min-width:0}
.kf-hpanel .kf-row > .kf-x > *{width:100%}
.kf-hpanel .cdd-btn,.kf-hpanel .cfp-bool{padding:10px 11px;font-size:.9rem}
.kf-hpanel .cdd-val{white-space:nowrap}
.kf-hpanel .cdd-btn{gap:10px}
.kf-hpanel .kf-actions{margin-top:12px}
.kf-hpanel .cdd-pop{min-width:max(100%, 200px)}
.kf-hpanel #ddBrand .cdd-pop{width:min(760px, 80vw);max-height:none;overflow:visible;columns:4 150px;column-gap:0;padding:6px 0}
.kf-hpanel #ddBrand .cdd-item{break-inside:avoid}
.kf-hpanel .cdd-off .cdd-btn{opacity:.5;cursor:not-allowed}
.kf-hpanel + .kf-h2,.kf-hpanel ~ .kf-links{margin-top:0}
@media(max-width:860px){ .kf-hpanel .kf-row > *{flex-basis:calc(50% - 4px)} .kf-hpanel #ddBrand .cdd-pop{width:calc(100vw - 56px);columns:2} }

/* ═══════════ v115: login/register logo bigger and properly blue ═══════════ */
.auth-brand.nav-logo-brand{font-size:2.6rem;color:var(--deep);line-height:1.1;margin-bottom:18px}

/* ═══════════ v117: kufar-style menu head, bigger login logo ═══════════ */
.mega-home{color:#2b2f36;font-weight:500;gap:12px}
.mega-home svg{color:#5b616b}
.mega-home:hover{background:#f3f4f6;color:#1a1d21}
.mega-cats-title{padding:16px 14px 8px;font-size:1.2rem;font-weight:700;letter-spacing:0;text-transform:none;color:#1a1d21}
.auth-brand.nav-logo-brand{font-size:3.4rem;margin-bottom:10px}

/* ═══════════ v120: big-screen zoom (base.html sets html zoom + --unzoom) ═══════════ */
.leaflet-container{zoom:var(--unzoom, 1)}

/* ═══════════ v120: stricter homepage grid ═══════════ */
.home-cat-header{border-bottom:2px solid #8f949b}
.home-sub-link .home-sub-name{color:#22262b}
.home-sub-link:hover .home-sub-name{color:var(--brand)}
.home-sub-more .home-sub-name{color:var(--accent)}
/* v120: car filter boxes all the same width; they wrap into even rows instead of stretching */
.kf-hpanel .kf-row{display:grid;grid-template-columns:repeat(auto-fill, minmax(128px, 1fr));gap:8px}
.kf-hpanel .kf-row > *{min-width:0}
.kf-hpanel .cdd-val{overflow:hidden;text-overflow:ellipsis}
.kf-hpanel .cdd-pop{min-width:max(100%, 220px)}
@media(max-width:860px){ .kf-hpanel .kf-row{grid-template-columns:repeat(2, minmax(0, 1fr))} }
/* wide: all 9 in one row (labels just fit); medium: two even rows of 5 */
@media(min-width:861px){
    .kf-hpanel .kf-row{grid-template-columns:repeat(5, minmax(0, 1fr))}
}
@media(min-width:1400px){
    .kf-hpanel .kf-row{grid-template-columns:repeat(9, minmax(0, 1fr));gap:6px}
    .kf-hpanel .cdd-btn,.kf-hpanel .cfp-bool{padding:10px 8px;font-size:.84rem;gap:4px}
    .kf-hpanel .cdd-chev{width:13px;height:13px}
}

/* ═══════════ v120: rows / grid switch on every listing page ═══════════ */
.sort-bar{display:flex;align-items:center;gap:18px}
.sort-bar .sd-views{margin-right:auto}
.sr-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.sr-head .sd-views,.acc-head .sd-views{margin-left:auto;align-self:center}
.acc-head{display:flex;align-items:center;gap:14px}
.view-row{display:flex;justify-content:flex-end;margin:0 0 10px}

/* ═══════════ v124 ═══════════ */
/* homepage: subcategories closer together, no counts */
.home-sub-link{padding:1px 0;line-height:1.38}
/* header buttons a bit lower */
@media(min-width:861px){ .nav .btn-post,.nav .btn-login{height:2.5rem} }
.nav .btn-post,.nav .btn-login{height:40px}

/* ═══════════ v125 ═══════════ */
/* header: logo bigger */
.nav .nav-logo-brand{font-size:2.5rem}
@media(max-width:860px){ .nav .nav-logo-brand{font-size:1.7rem} }
/* narrower side gaps, a wider page (was 1240px + 72-170px gutters) */
@media(min-width:861px){
    :root{--gut:clamp(32px, 4vw, 80px)}
    .container{max-width:calc(1480px + 2 * var(--gut))}
}
/* homepage: carousel gaps = the search box's gap to the header's bottom edge */
.hc-section{padding-top:14px}
.hc-section + .section{padding-top:45px}
.hc-section + .section .home-cat-grid{margin-top:0}
/* homepage grid: 4 columns on wide screens, divider as long as the widest line in its block, sitting right under the title */
/* columns size to their content (auto), so a long sub name takes room from the short columns instead of wrapping */
@media(min-width:1101px){ .home-cat-grid{grid-template-columns:repeat(3, auto);justify-content:space-between} }
@media(min-width:1300px){ .home-cat-grid{grid-template-columns:repeat(4, auto)} }
.home-cat-block{width:fit-content;max-width:100%;min-width:0}
.home-cat-header{padding-bottom:3px}
.home-cat-name{line-height:1.15}

/* ═══════════ v126 ═══════════ */
/* header buttons: 1px dark outline around the letters (stroke is centred on the glyph edge, paint-order keeps the inner half under the fill) */
.nav .btn-post,.nav .btn-login{-webkit-text-stroke:2px #1f2328;paint-order:stroke fill}
/* category sub tab bar: fade + arrow on the side with more tabs (main.js) */
.subtabs-bar{position:relative}
.subtabs-bar.fade-r .subtabs-inner{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 90px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 90px),transparent)}
.subtabs-bar.fade-l .subtabs-inner{-webkit-mask-image:linear-gradient(90deg,transparent,#000 90px);mask-image:linear-gradient(90deg,transparent,#000 90px)}
.subtabs-bar.fade-l.fade-r .subtabs-inner{-webkit-mask-image:linear-gradient(90deg,transparent,#000 90px,#000 calc(100% - 90px),transparent);mask-image:linear-gradient(90deg,transparent,#000 90px,#000 calc(100% - 90px),transparent)}
.subtabs-arrow{position:absolute;top:50%;z-index:2;width:30px;height:30px;margin-top:-15px;display:grid;place-items:center;padding:0;
    border:1px solid var(--border);border-radius:50%;background:#fff;color:#3d4247;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.subtabs-arrow:hover{color:var(--accent);border-color:#c6c9ce}
.subtabs-arrow[hidden]{display:none}
.subtabs-arrow.prev{left:0}
.subtabs-arrow.next{right:0}

/* ═══════════ v127 ═══════════ */
/* header buttons: letter outline thinner (~0.2px shows outside the glyph) */
.nav .btn-post,.nav .btn-login{-webkit-text-stroke:.4px #1f2328}
/* homepage grid: 4 columns from 1200px (1280x720 TVs had 3), tighter block sides below 1400px so long names fit */
@media(min-width:1200px){ .home-cat-grid{grid-template-columns:repeat(4, auto)} }
@media(min-width:1200px) and (max-width:1399px){ .home-cat-block{padding-left:10px;padding-right:10px} }

/* ═══════════ v131 ═══════════ */
/* every horizontal filter panel is #f6f6f6 (car panel, tyre panel, simple bar, job bar) */
.kf-panel.cfp,.sb-row{background:#f6f6f6}
/* Шины / Диски panel (partials/tyre_panel.html) = the car panel + two tab buttons and a Новые / Б/у toggle box.
   The old dark strip / glass / round ticks (v120-v130) are gone. */
.sb .typ.kf-hpanel{margin:0}
.kf-hpanel.typ[hidden]{display:none}
.typ-tab{display:flex;align-items:center;justify-content:center;min-width:0;padding:10px 8px;background:#fff;
    border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;font:inherit;font-size:.9rem;font-weight:700;
    letter-spacing:.05em;text-transform:uppercase;color:#2b2f36;cursor:pointer;opacity:.4;transition:opacity .15s}
.typ-tab:hover{opacity:.7}
.typ-tab.on{opacity:1;cursor:default}
.typ-pair{display:flex;min-width:0;background:#fff;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px}
.typ-tg{position:relative;flex:1 1 0;min-width:0;display:flex;cursor:pointer;user-select:none}
.typ-tg + .typ-tg{border-left:1px solid #e7e9ec}
.typ-tg input{position:absolute;opacity:0;pointer-events:none}
.typ-tg span{flex:1;display:flex;align-items:center;justify-content:center;padding:0 6px;font-size:.9rem;color:#2b2f36;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.typ-tg:hover span{background:#f6f7f8}
.typ-tg input:checked + span{color:var(--brand);font-weight:700;background:#eefaf4;box-shadow:inset 0 -2px 0 var(--brand)}
.typ-tab:focus-visible,.typ-tg input:focus-visible + span{outline:2px solid var(--brand);outline-offset:-2px}
@media(min-width:1400px){ .typ-tab,.typ-tg span{font-size:.84rem} }
.typ-tab{line-height:1.2}
/* the two tabs are short words: they give some width to the dropdowns, so "Производитель" / "Кол-во болтов" fit at 1400px */
@media(min-width:1400px){ .typ.kf-hpanel .kf-row{grid-template-columns:repeat(2, minmax(0, .72fr)) repeat(7, minmax(0, 1fr))} }
/* "Больше фильтров" row: its own grid of equal boxes under the main row */
.typ-more{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px}
.typ-more.cfp-hid{display:none}
@media(min-width:861px){ .typ-more{grid-template-columns:repeat(5, minmax(0, 1fr))} }
@media(min-width:1400px){ .typ-more{grid-template-columns:repeat(8, minmax(0, 1fr));gap:6px} }
/* phones: a bit less air inside the boxes so "Производитель" fits at 390px */
@media(max-width:860px){ .typ .cdd-btn{gap:4px;padding-left:9px;padding-right:9px} }
/* 1400px+: the extras row uses the main row's columns (its first box covers the two tab columns), so the edges line up */
@media(min-width:1400px){
    .typ-more{grid-template-columns:repeat(2, minmax(0, .72fr)) repeat(7, minmax(0, 1fr))}
    .typ-more > :first-child{grid-column:span 2}
}
/* phones: Цена is the 9th box, it takes the whole last row instead of sitting next to a gap */
@media(max-width:860px){ .typ .kf-row > .cdd[data-kind=range]{grid-column:1 / -1} }

/* ═══════════ v132 ═══════════ */
/* Транспорт catalogue: section names are long, small tiles show up to 4 lines instead of cutting after 2 */
.kf-tile-small .kf-tile-name{-webkit-line-clamp:4}

/* ═══════════ v133 ═══════════ */
/* homepage grid: every column (and its title divider) the same width again; long names wrap between phrases
   ("Грузовые автомобили," / "коммерческий транспорт" / "и спецтехника", app.py name_phrases) instead of widening their column */
@media(min-width:1101px){ .home-cat-grid{grid-template-columns:repeat(3, minmax(0, 1fr));justify-content:normal} }
@media(min-width:1200px){ .home-cat-grid{grid-template-columns:repeat(4, minmax(0, 1fr))} }
.home-cat-block{width:auto}
.home-sub-name .ph{display:inline-block}
/* simple filter: the subsection list sits above the bar now */
.sb > .sb-cats:first-child{margin:0 0 16px;padding:0 0 14px;border-top:0;border-bottom:1px solid #eceef0}
/* phones: tiles are too narrow for the forced line break (it made 3 lines over the picture), wrap naturally there;
   a long single word in a small tile breaks instead of being cut */
@media(max-width:860px){
    .kf-tile-name br{display:none}
    .kf-tile-small .kf-tile-name{overflow-wrap:anywhere;hyphens:auto}
}

/* ═══════════ v134 ═══════════ */
/* no left filter column any more: every side-layout page has one horizontal panel (partials/side_panel.html) */
.sd-layout{grid-template-columns:minmax(0, 1fr)}
.sb .kf-hpanel.sdp{margin:0}
.sdp.kf-hpanel .kf-row{grid-template-columns:repeat(auto-fill, minmax(11.5rem, 1fr))}
.sdp-q{grid-column:span 2;display:flex;align-items:center;gap:8px;min-width:0;padding:0 11px;background:#fff;
    border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;color:#8a8f94;cursor:text}
.sdp-q:focus-within{border-bottom-color:#2b2f36}
.sdp-q input{flex:1;min-width:0;height:100%;min-height:2.3rem;padding:0;border:0;outline:0;background:none;font:inherit;font-size:.9rem;color:#1f2125}
/* long dropdown lists (brands, professions) get a search box on top (panel.js) */
.cdd-find{display:block;width:calc(100% - 16px);height:34px;margin:8px;padding:0 10px;border:1px solid #e7e9ec;border-radius:1px;font:inherit;font-size:.88rem}
.cdd-find:focus{outline:0;border-color:#9aa0a8}
.cdd-check[hidden]{display:none}
/* phones: the panel (and the subsection list) show there too, 2 boxes per row */
@media(max-width:900px){ .sb{display:block} }
@media(max-width:860px){ .sdp.kf-hpanel .kf-row{grid-template-columns:repeat(2, minmax(0, 1fr))} }

/* ═══════════ v136 ═══════════ */
/* homepage carousel: its own compositor layer (the drift is a Web Animation now, see index.html) */
.hc-track{backface-visibility:hidden;transform:translateZ(0)}

/* ═══════════ v137 ═══════════ */
/* homepage grid: a bit bigger text and titles; a hovered subcategory goes bold (and green) */
.home-cat-name{font-size:1.04rem}
.home-sub-link{font-size:1.06rem}
/* drawn bold (a thin stroke in the text colour): looks bold, takes no extra width, so nothing moves or re-wraps.
   A real font-weight change made long names re-wrap, and reserving the bold width left gaps between phrases. */
.home-sub-link:hover .home-sub-name{-webkit-text-stroke:.6px currentColor}

/* ═══════════ v138 ═══════════ */
/* Roboto everywhere, like reklama.lv (Alex): 400 normal, 700 bold. base.html loads only 400..700, so the old 800s show as 700.
   Homepage category titles (uppercase) 600. */
body{font-family:'Roboto',sans-serif}
.home-cat-name{font-weight:600}

/* ═══════════ v139 ═══════════ */
/* homepage grid: bigger titles and subcategories; hover and "Ещё N" in the logo's deep blue instead of green (homepage only) */
.home-cat-name{font-size:1.3rem}
.home-sub-link{font-size:1.14rem}
.home-cat-header:hover .home-cat-name,
.home-sub-link:hover .home-sub-name,
.home-sub-more .home-sub-name,
.home-sub-more:hover .home-sub-name{color:var(--deep)}

/* ═══════════ v140 ═══════════ */
/* homepage grid (Alex): hover / "Ещё N" in the dark green of "Подать объявление" on hover (not the logo blue any more);
   a hovered subcategory gets a square background in Войти's hover colour, across the whole column
   (6px past the text on both sides, so the text doesn't touch its edge) */
.home-cat-header:hover .home-cat-name,
.home-sub-link:hover .home-sub-name,
.home-sub-more .home-sub-name,
.home-sub-more:hover .home-sub-name{color:var(--accent-hover)}
.home-sub-link{margin:0 -6px;padding-left:6px;padding-right:6px;border-radius:0;transition:background .12s}
.home-sub-link:hover{background:#eefaf4}

/* ═══════════ v143 ═══════════ */
/* homepage: a hovered category title gets bolder (600 -> 700), animated (Roboto is a variable font, so the weight glides) */
.home-cat-name{transition:color var(--transition), font-weight .18s ease}
.home-cat-header:hover .home-cat-name{font-weight:700}

/* ═══════════ v144 ═══════════ */
/* homepage: a hovered category title also gets bigger (Alex: "bigger bold"). A scale, not font-size, so nothing below moves;
   it grows from its bottom-left corner, so it never runs into the divider */
.home-cat-name{display:inline-block;transform-origin:left bottom;
    transition:color var(--transition), font-weight .18s ease, transform .18s ease}
.home-cat-header:hover .home-cat-name{transform:scale(1.08)}

/* ═══════════ v146 ═══════════ */
/* the subsection list above the filter wraps long names between phrases too, like the homepage
   ("Транспорт для инвалидов" / "и специальный транспорт") */
.sb-cat > span .ph{display:inline-block}

/* ═══════════ v148 ═══════════ */
/* phones: small Транспорт tiles have 3-line names now (Специальная и строительная техника), pictures a bit lower */
@media(max-width:860px){ .kf-tile-small .kf-tile-img{max-height:50%} }

/* ═══════════ v152 ═══════════ */
/* homepage grid (Alex): more room between the categories, title divider ~1 cm shorter than the column */
.home-cat-grid{column-gap:2.25rem;row-gap:1.25rem}
.home-cat-header{margin-right:2.4rem}
/* "Ещё N" is a button now (opens the rest in place) */
button.home-sub-link{width:calc(100% + 12px);border:0;background:none;font-family:inherit;font-size:1.14rem;text-align:left;cursor:pointer;color:inherit}
.home-sub-extra[hidden]{display:none}
/* phones: big tile pictures a little lower so 2-line names (Транспортные услуги) stay clear */
@media(max-width:860px){ .kf-tile-big .kf-tile-img{max-height:66%} }

/* ═══════════ v154 ═══════════ */
/* Транспорт landing (Alex's mockup): 2 rows of 5 big tiles + a mixed row on a 15-unit grid (wide tiles span 3 = the columns
   above, narrow ones span 2, so 3 narrow tiles share the width of 2 big ones) */
.kf-tiles + .kf-tiles{margin-top:12px}
.kf-tiles-mix{grid-template-columns:repeat(15, minmax(0, 1fr))}
.kf-tiles-mix > .kf-tile{grid-column:span var(--span, 3)}
@media(max-width:860px){
    .kf-tiles-mix{grid-template-columns:repeat(3, minmax(0, 1fr))}
    .kf-tiles-mix > .kf-tile{grid-column:auto}
}
/* phones: the mixed row is 3 small tiles per line, so its wide tiles take the small-tile text + picture size too */
@media(max-width:860px){
    .kf-tiles-mix .kf-tile{height:130px}
    .kf-tiles-mix .kf-tile-name{font-size:.84rem;padding:10px 9px 0;overflow-wrap:anywhere;hyphens:auto}
    .kf-tiles-mix .kf-tile-img{max-height:50%}
}

/* ═══════════ v155 ═══════════ */
/* Запчасти page: kufar-style parts-type tiles above the sub-section list */
.sd-part-tiles{margin-bottom:18px}
.sd .sd-part-tiles .kf-tile{height:12.5rem}
@media(max-width:860px){ .sd .sd-part-tiles .kf-tile{height:150px} }
@media(max-width:860px){
    .sd .sd-part-tiles{grid-template-columns:repeat(2, minmax(0, 1fr))}
    .sd .sd-part-tiles .kf-tile:last-child:nth-child(odd){grid-column:span 2}
    .sd .sd-part-tiles .kf-tile .kf-tile-img{max-height:52%}
}

/* ═══════════ v156 ═══════════ */
/* Недвижимость landing search box in OUR panel style (Alex: the blue frosted glass stuck out): #f6f6f6 panel, white boxes
   with the grey underline, green for the active type / deal, green "Показать (N)". realty.HERO_PHOTO switches the city photo. */
.re-hero-plain{background:none;padding:0;border-radius:0;overflow:visible}
.re-hero-plain .re-hero-title{text-align:left;color:#3d4247;font-size:1.75rem;font-weight:700;text-shadow:none;margin:4px 0 14px}
.re-glass{background:#f6f6f6;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:1px;padding:12px}
.re-hero-plain .re-glass{max-width:none}
.re-hero:not(.re-hero-plain) .re-glass{box-shadow:0 8px 24px rgba(0,0,0,.18)}
/* type cards */
.re-type{background:#fff;color:#2b2f36;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;backdrop-filter:none;-webkit-backdrop-filter:none}
.re-type:hover{background:#fff;border-bottom-color:#7d838c}
.re-type-ico{color:#3d4247}
.re-type-count{color:#8a8f94;font-weight:600;opacity:1}
.re-type.active{background:#eefaf4;color:var(--brand);box-shadow:inset 0 -2px 0 var(--brand)}
.re-type.active .re-type-ico,.re-type.active .re-type-count{color:var(--brand)}
.re-type.active::after{display:none}
/* deal toggle, location, keyword, button */
.re-row{gap:8px;margin-top:8px}
.re-deals{background:#fff;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px}
.re-deal{height:40px;border-bottom:0;color:#2b2f36;font-size:.95rem}
.re-deal.active{color:var(--brand);background:#eefaf4;box-shadow:inset 0 -2px 0 var(--brand)}
.re-loc .cdd-btn{height:40px;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;background:#fff;color:#2b2f36;font-weight:400}
.re-loc .cdd-btn:hover{border-bottom-color:#7d838c}
.re-loc .cdd-val,.re-loc .cdd-val.ph{color:#2b2f36}
.re-row .re-input{height:40px;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px}
.re-row .re-input:focus{border-color:#e7e9ec;border-bottom-color:#2b2f36}
.re-row .re-btn{height:40px;border-radius:1px;font-size:.95rem}
.re-btn-find{background:var(--brand)}
.re-btn-find:hover{background:var(--accent-hover);filter:none}
/* chips row = our dropdown boxes */
.re-chips{gap:8px;margin-top:8px}
.re-chips .re-chip .cdd-btn{height:36px;padding:0 10px;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;background:#fff;color:#2b2f36;font-weight:400}
.re-chips .re-chip .cdd-btn:hover{background:#fff;border-bottom-color:#7d838c}
.re-chips .re-chip.open .cdd-btn{border-bottom-color:#2b2f36}
.re-chip .cdd-val,.re-chip .cdd-val.ph{color:#2b2f36}
.re-chip .cdd-chev{color:#b9bdc3}
.re-chips .re-toggle{height:36px;border-radius:1px;background:#fff;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;color:#2b2f36;font-weight:400;padding:0 12px 0 6px}
.re-switch{background:#d5d8dc}
.re-chips .re-toggle input:checked + .re-switch{background:var(--brand)}
.re-chips .re-toggle input:checked + .re-switch::after{background:#fff}
.re-chip-btn{height:36px;background:none;border:0;color:var(--brand);font-weight:700}
.re-chip-btn:hover{background:none;color:var(--accent-hover)}
.re-clear{height:36px;border:0;background:none;color:#7a7f87;font-weight:600;text-transform:none;letter-spacing:0}
.re-clear:hover{background:none;color:var(--text)}
/* popups like the other panels: square, shadow, grey hover rows */
.re-glass .cdd-pop{border:0;border-radius:0;padding:0;box-shadow:3px 3px 8px rgba(0,0,0,.22),0 0 1px rgba(0,0,0,.18)}
.re-glass .cdd-item{border-radius:0;padding:11px 16px;color:#2b2735}
.re-glass .cdd-item:hover{background:#f0f0f0;color:#2b2735}
.re-glass .cdd-item.sel{color:#2b2735;font-weight:600;background:#f7f7f7}
.re-glass .cdd-pop-range{padding:12px}
.re-chips .re-toggle .re-switch{background:#d5d8dc}
.re-chips .re-toggle input:checked + .re-switch{background:var(--brand)}
.re-chips .re-toggle{justify-content:flex-start;gap:8px}
.re-clear{font-size:.92rem}
@media(max-width:860px){ .re-hero-plain .re-hero-title{font-size:1.3rem;margin:2px 0 10px} }

/* ═══════════ v157 ═══════════ */
/* /c/darbs (Alex): the columns sit at equal distances: each is as wide as its longest line, the free space is shared out
   evenly between them (the Категории menu keeps its own grid) */
@media(min-width:901px){ .wb-cols{grid-template-columns:repeat(4, auto);justify-content:start;column-gap:4.5rem} }   /* v158: closer, same gaps */

/* ═══════════ v161 ═══════════ */
/* Недвижимость landing = tiles like Транспорт: 5 columns, row 1 ends with a piece of the city photo, row 2 starts with one;
   the pieces are windows onto one photo (background sized to the whole grid) */
.re-tiles{display:grid;grid-template-columns:repeat(5, minmax(0, 1fr));gap:12px;margin:6px 0 30px}
.re-photo{border-radius:16px;background:var(--hero) no-repeat;background-size:500% 200%;min-height:12.5rem}
.re-photo-a{background-position:100% 0}
.re-photo-b{background-position:0 100%}
.re-tile-ph .re-type-ico{width:84px;height:84px;stroke-width:1.2}
@media(max-width:860px){
    .re-tiles{grid-template-columns:repeat(2, minmax(0, 1fr))}
    .re-photo{display:none}
    .re-tile-ph .re-type-ico{width:60px;height:60px}
}
/* section pages: Тип сделки buttons take the whole first row of the panel */
.sdp .sdp-deal{grid-column:1 / -1;min-height:2.4rem}
.sdp .sdp-deal .typ-tg span{padding:0 10px}
/* the deal buttons are their own row above the field grid */
.sdp .sdp-deal{display:flex;margin-bottom:8px}
@media(max-width:860px){
    .sdp .sdp-deal{flex-wrap:wrap}
    .sdp .sdp-deal .typ-tg{flex:1 1 33%;min-height:2.4rem;border-bottom:1px solid #e7e9ec}
    .sdp .sdp-deal .typ-tg + .typ-tg{border-left:0}
    .sdp .sdp-deal .typ-tg:not(:nth-child(3n+1)){border-left:1px solid #e7e9ec}
    .sdp .sdp-deal .typ-tg span{white-space:normal;text-align:center;line-height:1.2;font-size:.82rem;padding:4px 6px}
}

/* ═══════════ v162 ═══════════ */
/* /c/darbs (Alex's mockup): sections + city picker left, "ads on the map" right */
.jm{display:grid;grid-template-columns:minmax(220px, 300px) minmax(0, 1fr);gap:2.5rem;align-items:start;padding-bottom:40px}
.jm-head .wb-title{margin-bottom:10px}
.jm-city{position:relative;margin-bottom:18px}
.jm-city-btn{display:inline-flex;align-items:center;gap:8px;padding:6px 0;border:0;background:none;font:inherit;font-size:1.25rem;font-weight:700;color:var(--brand);cursor:pointer}
.jm-city-btn:hover,.jm-city.open .jm-city-btn{color:var(--accent-hover)}
.jm-chev{transition:transform .2s}
.jm-city.open .jm-chev{transform:rotate(180deg)}
.jm-city-pop{position:absolute;z-index:500;top:100%;left:0;min-width:220px;max-height:360px;overflow-y:auto;background:#fff;
    box-shadow:3px 3px 8px rgba(0,0,0,.22),0 0 1px rgba(0,0,0,.18)}
.jm-city-pop[hidden]{display:none}
.jm-city-opt{display:block;width:100%;padding:10px 16px;border:0;background:none;font:inherit;font-size:.95rem;text-align:left;color:#2b2735;cursor:pointer}
.jm-city-opt:hover{background:#f0f0f0}
.jm-city-opt.sel{font-weight:600;background:#f7f7f7}
.jm-list{display:flex;flex-direction:column}
.jm-link{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 0;border-bottom:1px solid #eceef0;
    font-size:1.08rem;font-weight:600;color:#1a1d21;text-decoration:none}
.jm-link:hover{color:var(--brand)}
.jm-link em{font-style:normal;font-weight:400;font-size:.9rem;color:#8a8f94}
.jm-map-box{background:#f6f6f6;border-radius:16px;padding:14px}
.jm-map-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.jm-map-title{font-size:1.1rem;font-weight:700;color:#1a1d21;margin:0}
.jm-map-hint{font-size:.88rem;color:#6b7075;margin:2px 0 0}
.jm-chips{display:flex;flex-wrap:wrap;gap:6px}
.jm-chip{position:relative;cursor:pointer;user-select:none}
.jm-chip input{position:absolute;opacity:0;pointer-events:none}
.jm-chip span{display:inline-block;padding:6px 12px;border:1px solid #d9dde1;border-radius:999px;background:#fff;font-size:.86rem;color:#4a4f57}
.jm-chip:hover span{border-color:#9aa0a8}
.jm-chip input:checked + span{background:#eefaf4;border-color:var(--brand);color:var(--brand);font-weight:600}
.jm-chip input:focus-visible + span{outline:2px solid var(--brand);outline-offset:1px}
.jm-map{height:30rem;border-radius:12px;overflow:hidden;zoom:var(--unzoom, 1)}
.jm-bubble{cursor:pointer}
.jm-bubble.on{filter:drop-shadow(0 0 0 #fff) drop-shadow(0 0 4px rgba(0,0,0,.35))}
.jm-popup .leaflet-popup-content{margin:10px 12px}
.jm-pop-city{font-weight:700;font-size:1rem;margin-bottom:6px}
.jm-pop-line{display:flex;justify-content:space-between;gap:14px;padding:6px 0;border-top:1px solid #eceef0;color:#1a1d21;font-size:.92rem;text-decoration:none}
.jm-pop-line:hover{color:var(--brand)}
.jm-pop-line b{color:var(--brand)}
@media(max-width:900px){
    .jm{grid-template-columns:1fr;gap:1.2rem}
    .jm-map{height:22rem}
}
.jm-popup .jm-pop-line,.jm-popup .jm-pop-line:visited{color:#1a1d21}
.jm-popup .jm-pop-line:hover{color:var(--brand)}
@media(max-width:900px){ .jm-bubble{transform-origin:center} .jm-map .pm-cluster.jm-bubble span{font-size:.8rem} }

/* ═══════════ v163 ═══════════ */
/* /c/darbs map: "Открыть карту" = full screen with a city list on the left; scroll-zoom works */
.jm-map-top{flex-wrap:wrap}
.jm-map-head{flex:1 1 auto;min-width:0}
.jm-open{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border:0;border-radius:8px;background:var(--brand);
    color:#fff;font:inherit;font-size:.92rem;font-weight:700;cursor:pointer;white-space:nowrap}
.jm-open:hover{background:var(--accent-hover)}
.jm-close{display:none;width:38px;height:38px;border:0;border-radius:50%;background:#fff;font-size:1.1rem;color:#3d4247;cursor:pointer;
    box-shadow:0 1px 4px rgba(0,0,0,.15)}
.jm-close:hover{color:var(--brand)}
.jm-map-top .jm-chips{flex-basis:100%;order:3}
.jm-body{display:block}
.jm-cities{display:none}
.jm-map-box.open{position:fixed;inset:0;z-index:2000;border-radius:0;padding:14px 18px;display:flex;flex-direction:column}
.jm-map-box.open .jm-open{display:none}
.jm-map-box.open .jm-close{display:block}
.jm-map-box.open .jm-body{flex:1;min-height:0;display:grid;grid-template-columns:260px minmax(0, 1fr);gap:14px}
.jm-map-box.open .jm-map{height:100%}
.jm-map-box.open .jm-cities{display:flex;flex-direction:column;overflow-y:auto;background:#fff;border-radius:12px;padding:6px}
.jm-city-row{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border:0;border-radius:8px;background:none;font:inherit;
    font-size:.95rem;color:#1a1d21;text-align:left;cursor:pointer}
.jm-city-row:hover{background:#eefaf4;color:var(--brand)}
.jm-city-row.on{font-weight:700}
.jm-city-row b{color:var(--brand)}
.jm-empty{padding:12px;color:#8a8f94}
body.jm-lock{overflow:hidden}
@media(max-width:900px){
    .jm-map-box.open{padding:10px}
    .jm-map-box.open .jm-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0, 1fr)}
    .jm-map-box.open .jm-cities{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:4px}
    .jm-map-box.open .jm-city-row{flex:0 0 auto;gap:6px}
}
.jm-map-box.open .jm-close{position:absolute;top:12px;right:14px;z-index:5}
.jm-map-box.open .jm-map-head{padding-right:48px}

/* ═══════════ v164 ═══════════ */
/* /c/darbs map in our style: square corners like the filter panels, one-at-a-time section buttons (typ-pair) */
.jm-map-box{border-radius:1px}
.jm-map,.jm-map-box.open .jm-cities{border-radius:1px}
.jm-open{border-radius:1px;height:38px}
.jm-close{border-radius:1px;box-shadow:none;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce}
.jm-chips.typ-pair{display:flex;flex-wrap:wrap;gap:0;min-height:2.4rem}
.jm-chips .typ-tg{flex:1 1 auto}
.jm-chips .typ-tg span{padding:0 14px;min-height:2.4rem}
.jm-city-row{border-radius:0}
.jm-city-pop{border-radius:0}
.jm-popup .leaflet-popup-content-wrapper{border-radius:1px;box-shadow:3px 3px 8px rgba(0,0,0,.22),0 0 1px rgba(0,0,0,.18)}
@media(max-width:900px){
    .jm-chips .typ-tg{flex:1 1 33%;border-bottom:1px solid #e7e9ec}
    .jm-chips .typ-tg span{white-space:normal;text-align:center;line-height:1.2;font-size:.82rem;padding:4px 6px}
}

/* ═══════════ v165 ═══════════ */
/* region / Rīga apkaime pickers (partials/place_dd.html) */
.cdd-district-box[hidden],.cdd-pop .cdd-item[hidden],.cdd-group[hidden]{display:none !important}
.cdd-group{padding:10px 16px 4px;font-size:.74rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8a8f94;cursor:default}
.cdd-city .cdd-pop,.cdd-district .cdd-pop{max-height:360px;overflow-y:auto;min-width:max(100%, 240px)}
.cdd-wrap{min-width:0}
.cdd-wrap > .cdd{width:100%}
/* jobs map areas: count labels in the middle of each area, name tooltip, popup subtitle */
.jm-num{background:none;border:0}
.jm-num span{display:inline-block;transform:translate(-50%, -50%);padding:1px 6px;border-radius:1px;background:rgba(255,255,255,.92);
    font:700 .78rem/1.3 Roboto, sans-serif;color:#1a1d21;box-shadow:0 1px 2px rgba(0,0,0,.18);white-space:nowrap}
.jm-tip{border-radius:1px;font-weight:600;padding:3px 8px}
.jm-pop-city small{display:block;font-weight:400;font-size:.78rem;color:#8a8f94}
.jm-pop-none{margin:4px 0 0;color:#8a8f94;font-size:.9rem}
.jm-city-pop{max-height:420px}

/* ═══════════ v166 ═══════════ */
/* job pages (Alex's mockup): green "Вся Латвия" first in the panel, "Категории" button opens the job fields list */
.cdd-loc .cdd-btn{justify-content:flex-start}
.cdd-loc .cdd-btn .cdd-chev{margin-left:auto}
.cdd-loc .cdd-pin{flex:0 0 auto;color:var(--brand)}
.kf-panel .cdd-loc .cdd-val,.kf-panel .cdd-loc .cdd-val.ph{color:var(--brand);font-weight:700;font-size:.98rem}
.kf-panel .cdd-loc .cdd-btn:hover .cdd-val{color:var(--accent-hover)}
.sdp-cats-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;font:inherit;font-weight:700;font-size:1.05rem;
    color:var(--accent);cursor:pointer}
.sdp-cats-btn:hover{color:var(--accent-hover)}
.sdp-cats-btn .cdd-chev{width:16px;height:16px;transition:transform .2s}
.sdp-cats-btn.open .cdd-chev{transform:rotate(180deg)}
.sdp .sdp-cats{margin:14px 0 4px;padding:12px 0 2px;border-top:1px solid #e3e5e8}
.sdp .sdp-cats[hidden]{display:none}
/* profession list under the panel: 5 columns so names fit on one line (was 6) */
@media(min-width:1101px){ .sb-prof .jb-az-flat{grid-template-columns:repeat(5,minmax(0,1fr))} }
@media(min-width:861px) and (max-width:1100px){ .sb-prof .jb-az-flat{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media(max-width:860px){ .kf-panel .cdd-loc .cdd-val,.kf-panel .cdd-loc .cdd-val.ph{font-size:.88rem} .cdd-loc .cdd-btn{gap:5px} }
/* map landings (Работа и бизнес, Недвижимость, Услуги): a long section list (Услуги) is lighter and tighter */
.jm-list.many .jm-link{padding:6px 0;font-size:.97rem;font-weight:400;border-bottom-color:#f1f2f4}
.jm-list.many .jm-link em{font-size:.84rem}
/* Услуги: one dropdown picks the section the map counts */
.jm-pick{position:relative;flex-basis:100%;order:3}
.jm-pick-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-width:min(26rem, 100%);max-width:100%;height:2.6rem;
    padding:0 14px;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;background:#fff;font:inherit;font-size:.95rem;
    font-weight:700;color:#1a1d21;cursor:pointer;text-align:left}
.jm-pick-btn:hover,.jm-pick.open .jm-pick-btn{border-bottom-color:#2b2f36}
.jm-pick.on .jm-pick-val{color:var(--brand)}
.jm-pick-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-pick.open .jm-chev{transform:rotate(180deg)}
.jm-pick-pop{position:absolute;z-index:600;top:100%;left:0;min-width:min(26rem, 100%);max-height:380px;overflow-y:auto;background:#fff;
    box-shadow:3px 3px 8px rgba(0,0,0,.22),0 0 1px rgba(0,0,0,.18)}
.jm-pick-pop[hidden]{display:none}
.jm-pick-opt{display:block;cursor:pointer}
.jm-pick-opt input{position:absolute;opacity:0;pointer-events:none}
.jm-pick-opt span{display:block;padding:9px 16px;font-size:.93rem;color:#2b2735}
.jm-pick-opt:hover span{background:#f0f0f0}
.jm-pick-opt input:checked + span{font-weight:700;color:var(--brand);background:#f7f7f7}
.jm-pick-opt input:focus-visible + span{outline:2px solid var(--brand);outline-offset:-2px}
/* popups with many sections scroll instead of covering the map */
.jm-pop{max-height:min(320px, 55vh);overflow-y:auto}
/* Leaflet's zoom buttons sit at z-index 1000: keep the open dropdowns above the map */
.jm-pick{z-index:1100}
.jm-side .jm-city{z-index:1100}
.jm-side{min-width:0}
@media(max-width:900px){ .jm{grid-template-columns:minmax(0, 1fr)} }
.jm-pick{min-width:0;max-width:100%}
.jm-pick-btn{width:auto}
@media(max-width:900px){ .jm-pick-btn{width:100%;min-width:0} .jm-pick-pop{right:0;min-width:0} }

/* ═══════════ v167 ═══════════ */
/* map landings (Работа и бизнес, Недвижимость, Услуги): section lists read like the homepage grid (Alex): regular Roboto
   1.14rem, tight lines, square #eefaf4 hover background 6px past the text, the hovered name goes a bit bolder + dark green */
.jm-list .jm-link,.jm-list.many .jm-link{margin:0 -6px;padding:1px 6px;border:0;font-size:1.14rem;font-weight:400;line-height:1.38;
    color:#22262b;transition:background .12s}
.jm-list .jm-link:hover{background:#eefaf4;color:var(--accent-hover)}
.jm-list .jm-link:hover > span{-webkit-text-stroke:.6px currentColor}
.jm-list .jm-link em,.jm-list.many .jm-link em{font-size:.82rem;color:#8a8f94}
.jm-link .ph{display:inline-block}
.jm-city{margin-bottom:10px}

/* ═══════════ v168 ═══════════ */
/* map landings: their own stacking layer, so the map's zoom buttons / attribution and our open dropdowns (z 1000-1100)
   stay under the sticky header (1000) and the Категории menu (90). The full-screen map lifts the whole layer up. */
.jm{position:relative;z-index:0;isolation:isolate}
body.jm-lock .jm{z-index:2000}
/* popup: the place name stays put, only the section lines scroll, with room between the numbers and the scrollbar */
.jm-pop{max-height:none;overflow:visible}
.jm-pop-lines{max-height:min(270px, 48vh);overflow-y:auto;padding-right:12px;margin-right:-6px;scrollbar-width:thin}
/* popup lines + the Категории menu's sub-sections: the homepage hover (square #eefaf4, dark green, a bit bolder) */
.jm-popup .jm-pop-line{margin:0 -6px;padding:6px;transition:background .12s}
.jm-popup .jm-pop-line:hover{background:#eefaf4;color:var(--accent-hover)}
.jm-popup .jm-pop-line:hover span{-webkit-text-stroke:.5px currentColor}
.mega-subsub,.mega-cols .mega-link{margin:0 -6px;padding-left:6px;padding-right:6px;transition:background .12s}
.mega-subsub:hover,.mega-cols .mega-link:hover{background:#eefaf4;color:var(--accent-hover);-webkit-text-stroke:.5px currentColor}

/* ═══════════ v169 ═══════════ */
/* map landings: a little air between the section lines (Alex: too close) */
.jm-list .jm-link,.jm-list.many .jm-link{padding-top:4px;padding-bottom:4px}
/* job pages: the profession list ("Вакансии") always open, 4 columns, homepage look (1.08rem, #22262b, square #eefaf4 hover) */
.sb-prof-head{font-size:1.25rem;font-weight:700;color:#1a1d21;margin:18px 0 10px;padding-top:16px}
.sb-prof.jb-az,.sb-prof.jb-az.open{max-height:none;overflow:visible}
.sb-prof .jb-az-flat{column-gap:2rem;row-gap:0}
@media(min-width:861px){ .sb-prof .jb-az-flat{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media(max-width:860px){ .sb-prof .jb-az-flat{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.2rem} }
.sb-prof .jb-az-item{margin:0 -6px;padding:3px 6px;font-size:1.08rem;line-height:1.38;color:#22262b;transition:background .12s}
.sb-prof .jb-az-item:hover{background:#eefaf4;color:var(--accent-hover)}
.sb-prof .jb-az-item:hover span{-webkit-text-stroke:.5px currentColor}
.sb-prof .jb-az-item em{font-size:.84rem}
.sb-prof .jb-az-item.active{color:var(--accent)}
.sd-layout[hidden]{display:none !important}

/* ═══════════ v170 ═══════════ */
/* job pages: the profession list reads A-Z DOWN each column, then the next column (Alex), not across the rows */
.sb-prof .jb-az-flat{display:block;columns:4;column-gap:2rem}
.sb-prof .jb-az-item{break-inside:avoid}
@media(max-width:860px){ .sb-prof .jb-az-flat{columns:2;column-gap:1.2rem} }
/* ss.com-style results (partials/ss_results.html): green header bar, a table ('rows', jobs) or tight album cards ('grid') */
.st{width:100%;border-collapse:collapse;margin-top:6px;font-size:.95rem;background:#fff}
.st thead th{background:var(--brand);color:#fff;font-weight:700;font-size:.9rem;padding:8px 10px;text-align:center;white-space:nowrap;
    border-left:1px solid rgba(255,255,255,.35)}
.st thead th.st-h-main{text-align:left;border-left:0;width:100%}
.st-h-ads{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.st thead a,.st-bar a{color:#fff;text-decoration:none}
.st thead a:hover,.st-bar a:hover{text-decoration:underline}
.st-date{font-weight:400;text-decoration:underline !important}
.st-date.on,.st-sort.on{text-decoration:underline !important;text-underline-offset:3px}
.st td{padding:6px 10px;border-bottom:1px dashed #d3d6da;vertical-align:middle;text-align:center}
.st td.st-c{border-left:1px dashed #e3e5e8;white-space:nowrap;color:#1a1d21}
.st-row:hover{background:#f4fbf7}
.st-main{text-align:left}
.st-ad{display:grid;grid-template-columns:auto 92px minmax(0, 1fr);align-items:center;gap:10px}
.st-ad.noimg{grid-template-columns:auto minmax(0, 1fr)}
.st-img img{display:block;width:92px;height:69px;object-fit:cover;background:#f2f3f5}
.st-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500;line-height:1.35;color:#1a1d21}
.st-title:hover{color:var(--accent-hover)}
.st-loc{display:block;margin-top:3px;font-size:.84rem;color:#8a8f94}
.st-when::before{content:" · "}
.st-price,.st-salary{font-weight:700}
.st-price small{display:block;font-weight:400;font-size:.76rem;color:#8a8f94}
.st-company{font-weight:600}
.card-fav.st-fav,.card-fav.sa-fav{position:static;width:30px;height:30px;background:none;box-shadow:none}
.st-jobs .st-title{font-weight:700}
/* album */
.st-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:6px;padding:8px 10px;background:var(--brand);
    color:#fff;font-weight:700;font-size:.9rem}
.st-bar .st-h-ads{flex:1}
.st-bar-cols{display:flex;flex-wrap:wrap;justify-content:flex-end}
.st-bar-col + .st-bar-col{margin-left:9px;padding-left:9px;border-left:1px solid rgba(255,255,255,.4)}
.sa-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));gap:14px;margin-top:14px}
.sa{display:flex;flex-direction:column;padding:3px;border:1px solid #d3d6da;background:#fff}
.sa:hover{border-color:var(--brand)}
.sa-img img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#f2f3f5}
.sa-name{padding:8px 6px;background:#e9ebee;text-align:center;font-size:.95rem;color:#1a1d21;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sa-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:8px 8px 4px;font-weight:500;line-height:1.35;color:#1a1d21}
.sa-title:hover{color:var(--accent-hover)}
.sa-specs{margin:0;padding:2px 8px}
.sa-specs div{display:flex;gap:8px;font-size:.9rem;line-height:1.5}
.sa-specs dt{min-width:5.2em;color:#8a8f94}
.sa-specs dd{margin:0;font-weight:500;color:#1a1d21}
.sa-specs dd small{display:none}
.sa-loc{margin-top:auto;padding:4px 8px;font-size:.84rem;color:#8a8f94}
.sa-price{position:relative;display:flex;align-items:center;justify-content:center;min-height:2.5rem;padding:6px 34px;background:#e9ebee;
    font-weight:700;font-size:1.05rem;color:#1a1d21}
.sa-fav{position:absolute !important;left:3px;top:50%;transform:translateY(-50%)}
/* phones: each table row folds into a card; the header bar wraps its sort links */
@media(max-width:760px){
    .st,.st thead,.st tbody{display:block}
    .st thead tr{display:flex;flex-wrap:wrap;align-items:center;background:var(--brand)}
    .st thead th{display:block;border:0;padding:7px 8px}
    .st thead th.st-h-main{width:100%;padding-bottom:2px}
    .st tbody tr{display:flex;flex-wrap:wrap;align-items:baseline;padding:8px 2px;border-bottom:1px dashed #d3d6da}
    .st td{display:block;border:0;padding:2px 6px;text-align:left}
    .st td.st-main{width:100%;padding-bottom:6px}
    .st td.st-c{border:0;font-size:.88rem}
    .st td.st-c::before{content:attr(data-label) " ";color:#8a8f94}
    .st td.st-price,.st td.st-salary{margin-left:auto;font-size:1rem}
    .st td.st-price::before,.st td.st-salary::before{content:none}
    .st-ad{grid-template-columns:auto 84px minmax(0, 1fr);gap:8px}
    .st-img img{width:84px;height:63px}
    .sa-grid{grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px}
    .st-bar{flex-wrap:wrap}
    .st-bar-cols{justify-content:flex-start}
}
.st td.st-main{text-align:left}
@media(max-width:760px){ .st td.st-model{display:none} }

/* ═══════════ v171 ═══════════ */
/* breadcrumbs everywhere (partials/crumbs.html) */
.acc-crumbs{padding-bottom:0}
.acc-crumbs .breadcrumb{margin-bottom:6px}
.mv-side .breadcrumb{margin:0 0 6px}
/* results in OUR style (Alex: less ss.com; same table / album logic): no green bar, dark header text over a grey line,
   the sorted column green with a green underline (like the typ-pair buttons), plain row lines, homepage hover */
.st thead th{background:none;color:#3d4247;font-size:.84rem;font-weight:700;padding:8px 10px 9px;border-left:0;border-bottom:2px solid #e3e5e8}
.st thead a,.st-bar a{color:#3d4247}
.st thead a:hover,.st-bar a:hover{color:var(--accent-hover);text-decoration:none}
.st-date{font-weight:400;color:#8a8f94 !important;text-decoration:none !important}
.st-date.on,.st-sort.on{color:var(--brand) !important;text-decoration:none !important;box-shadow:inset 0 -2px 0 var(--brand);padding-bottom:3px}
.st td{border-bottom:1px solid #eceef0}
.st td.st-c{border-left:0}
.st-row:hover{background:#eefaf4}
.st-row:hover .st-title{color:var(--accent-hover)}
.st-img img{border-radius:1px}
.st-price,.st-salary{color:#1a1d21}
.st-bar{background:none;color:#3d4247;font-size:.84rem;padding:8px 2px 9px;border-bottom:2px solid #e3e5e8}
.st-bar-col + .st-bar-col{border-left:1px solid #d3d6da}
.sa{padding:0;border:1px solid #e7e9ec;border-radius:1px;transition:border-color .12s}
.sa:hover{border-color:var(--brand)}
.sa:hover .sa-title{color:var(--accent-hover)}
.sa-name{padding:9px 10px 0;background:none;text-align:left;font-size:.8rem;color:#8a8f94}
.sa-title{padding:3px 10px 6px;font-weight:700}
.sa-specs{padding:0 10px}
.sa-loc{padding:6px 10px}
.sa-price{justify-content:space-between;margin:0 10px;padding:8px 0;background:none;border-top:1px solid #eceef0;font-size:1.08rem}
.sa-price span{order:1}
.sa-fav{position:static !important;order:2;transform:none;margin-right:-6px}
@media(max-width:760px){
    .st thead tr{background:none;border-bottom:2px solid #e3e5e8}
    .st thead th{border:0}
    .st tbody tr{border-bottom:1px solid #eceef0}
}
/* post / edit form: photos (static/js/photos.js) */
.ph-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ph-drop{display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 16px;border:2px dashed #d3d6da;border-radius:1px;
    background:#fafafb;text-align:center;color:#6b7075;transition:border-color .12s, background .12s}
.ph-drop svg{color:#a0a6ad}
.ph-drop p{margin:0}
.ph-pick{color:var(--brand);font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ph-pick:hover{color:var(--accent-hover)}
.ph-hint{font-size:.84rem;color:#8a8f94;max-width:34rem}
#phCard.over .ph-drop{border-color:var(--brand);background:#eefaf4}
.ph-drop.full{opacity:.55}
.ph-error{margin:8px 0 0;color:#d33;font-size:.9rem}
.ph-list{display:grid;grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));gap:10px;margin-top:12px}
.ph-list:empty{display:none}
.ph-item{position:relative;aspect-ratio:4/3;border:1px solid #e3e5e8;background:#f2f3f5;cursor:grab;overflow:hidden}
.ph-item img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.ph-item.main{outline:2px solid var(--brand);outline-offset:-2px}
.ph-item.dragging{opacity:.4}
.ph-main{position:absolute;left:0;bottom:0;padding:2px 8px;background:var(--brand);color:#fff;font-size:.74rem;font-weight:700}
.ph-del{position:absolute;top:4px;right:4px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;
    font-size:.8rem;line-height:1;cursor:pointer}
.ph-del:hover{background:#d33}
.ph-item.busy::after{content:attr(data-busy);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    background:rgba(255,255,255,.75);font-size:.8rem;font-weight:700;color:#3d4247}

/* ═══════════ v172 ═══════════ */
/* category pages (Alex's screenshots): the title over the section list + the list in the map-landing / homepage style */
.sd-cat-head{margin:0 0 12px;padding-bottom:9px;border-bottom:2px solid #e3e5e8}
.sd-cat-title{display:inline-block;margin:0;font-size:1.9rem;font-weight:700;line-height:1.2;color:#1a1d21}
a.sd-cat-title:hover{color:var(--accent-hover)}
.sd-cat-head + .sb-cats{margin-top:0;padding-top:0;border-top:0}
.sb .sb-cats{column-gap:2.5rem;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #eceef0}
.sb .sb-cats .sb-cat{margin:0 -6px;padding:3px 6px;font-size:1.08rem;line-height:1.38;color:#22262b;transition:background .12s;break-inside:avoid}
.sb .sb-cats .sb-cat:hover{background:#eefaf4;color:var(--accent-hover)}
.sb .sb-cats .sb-cat:hover > span{-webkit-text-stroke:.5px currentColor}
.sb .sb-cats .sb-cat em{font-size:.82rem;color:#8a8f94}
.sb .sb-cats .sb-cat.active{color:var(--brand);font-weight:700}
@media(min-width:1200px){ .sb .sb-cats{columns:4} }
@media(min-width:861px) and (max-width:1199px){ .sb .sb-cats{columns:3} }
@media(max-width:860px){ .sb .sb-cats{columns:2;column-gap:1.2rem} .sd-cat-title{font-size:1.5rem} }
@media(max-width:860px){ .sb .sb-cats .sb-cat{font-size:.98rem} }
/* admin (v172): the "acting as" bar, the admin box on an ad page, /admin tables; who saved an ad */
.admin-bar{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;padding:7px 16px;background:var(--brand);color:#fff;font-size:.9rem}
.admin-bar button{border:1px solid #fff;background:none;color:#fff;font:inherit;font-weight:700;padding:3px 12px;border-radius:1px;cursor:pointer}
.admin-bar button:hover{background:#fff;color:var(--brand)}
.nav-user-admin{color:var(--brand) !important;font-weight:700}
.ld-admin{margin-top:14px;padding:12px;border:1px dashed var(--brand);background:#f6fcf9}
.ld-admin-head{font-size:.8rem;font-weight:700;color:var(--brand);text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px}
.ld-admin-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ld-admin-btns form{margin:0}
.ld-admin-btns .btn{width:100%}
.ld-btn-danger{color:#d33 !important;border-color:#f1b5b5 !important}
.ld-btn-danger:hover{background:#fdeeee !important}
.ld-saved{margin-top:14px;padding:12px 14px;border:1px solid #e7e9ec;background:#fff}
.ld-saved-head{font-weight:700;color:#1a1d21;margin-bottom:6px}
.ld-saved-head em{font-style:normal;color:var(--brand);margin-left:4px}
.ld-saved-row{display:flex;justify-content:space-between;gap:10px;margin:0 -6px;padding:4px 6px;color:#22262b;font-size:.92rem}
.ld-saved-row:hover{background:#eefaf4;color:var(--accent-hover)}
.ld-saved-row time{color:#8a8f94;font-size:.82rem;white-space:nowrap}
.ld-saved-none{margin:0;color:#8a8f94;font-size:.9rem}
.ml-saves{display:inline-flex;align-items:center;gap:4px;color:#d33}
.ml-saves svg{flex:0 0 auto}
.adm-h{margin:26px 0 10px;font-size:1.25rem}
.adm-search{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.adm-search input{flex:1 1 260px;padding:9px 12px;border:1px solid #e3e5e8;border-radius:1px;font:inherit}
.adm-search select{padding:9px 10px;border:1px solid #e3e5e8;border-radius:1px;font:inherit;background:#fff}
.adm-table{width:100%;border-collapse:collapse;font-size:.92rem;background:#fff}
.adm-table th{text-align:left;padding:8px 10px;color:#3d4247;font-size:.82rem;border-bottom:2px solid #e3e5e8}
.adm-table td{padding:8px 10px;border-bottom:1px solid #eceef0;vertical-align:middle}
.adm-table tr:hover td{background:#f8fbf9}
.adm-table tr.off td{color:#8a8f94}
.adm-table small{display:block;color:#8a8f94;font-size:.78rem}
.adm-title{font-weight:600;color:#1a1d21}
.adm-title:hover{color:var(--accent-hover)}
.adm-acts{white-space:nowrap}
.adm-acts form{display:inline}
.adm-del{color:#d33}
.adm-badge{display:inline-block;padding:0 6px;background:var(--brand);color:#fff;font-size:.7rem;font-weight:700;border-radius:1px}
.adm-note,.adm-empty{color:#8a8f94;font-size:.86rem}
@media(max-width:860px){ .adm-table{display:block;overflow-x:auto} }
/* v172 video: tile in the form, player on the ad page */
.ph-video{display:grid;grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));gap:10px;margin-top:10px}
.ph-video[hidden]{display:none}
.ph-vid{cursor:default;background:#1a1d21}
.ph-vid video{width:100%;height:100%;object-fit:cover;display:block}
.ph-play{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.55);
    color:#fff;display:flex;align-items:center;justify-content:center;font-size:.9rem;pointer-events:none}
.ld-video video{display:block;width:100%;max-height:520px;background:#000}

/* ═══════════ v173 ═══════════ */
/* appliance categories (list_landing.html): title + sections, the map-landing list without the map (Alex's RE clip) */
.ll{padding-bottom:48px}
.ll-title{margin:6px 0 26px}
.ll-list{display:block;max-width:300px}
.ll-list.ll-cols{max-width:none;columns:3 260px;column-gap:4rem}
.ll-list .jm-link{break-inside:avoid}
.ll-list .jm-link.zero em{color:#c3c7cc}
@media(max-width:860px){ .ll-list,.ll-list.ll-cols{max-width:none;columns:1} }
.sb-prof .jb-az-item.zero{color:#a0a6ad}
.sb-prof .jb-az-item.zero em{color:#c3c7cc}
.sb-prof .jb-az-item.zero:hover{color:var(--accent-hover)}

/* ═══════════ v174 ═══════════ */
/* Услуги map landing: "Просмотр по категориям" above "Открыть карту" (the section-list look), opens the menu-style panel */
.jm-top-btns{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.jm-cats-btn{display:inline-flex;align-items:center;gap:6px;margin:0 -6px;padding:4px 6px;border:0;background:none;font:inherit;font-size:1.14rem;
    line-height:1.38;color:#22262b;cursor:pointer;transition:background .12s}
.jm-cats-btn:hover,.jm-cats-btn.open{background:#eefaf4;color:var(--accent-hover)}
.jm-cats-btn:hover > span,.jm-cats-btn.open > span{-webkit-text-stroke:.5px currentColor}
.jm-cats-btn.open .jm-chev{transform:rotate(180deg)}
.jm-map-box.open .jm-cats-btn{display:none}
/* the panel: fixed under the sticky header, page dimmed behind it (inside .jm's layer: above the map, under the header) */
.jm-cats{position:fixed;left:0;right:0;top:var(--hdr, 0px);bottom:0;z-index:1500;background:rgba(20,24,28,.32)}
.jm-cats[hidden]{display:none}
.jm-cats-panel{max-height:100%;overflow-y:auto;background:#fff;border-top:1px solid var(--border);box-shadow:0 10px 24px rgba(0,0,0,.14);
    padding:22px 0 34px;animation:megaIn .16s ease}
body.jm-cats-lock{overflow:hidden}
@media(max-width:900px){ .jm-top-btns{flex-direction:row-reverse;flex-wrap:wrap;justify-content:flex-end;align-items:center} }
.jm-cats .mega-panel-head{align-items:center}
.jm-cats-x{margin-left:auto;width:38px;height:38px;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;background:#fff;
    font-size:1.05rem;color:#3d4247;cursor:pointer}
.jm-cats-x:hover{color:var(--accent-hover);background:#eefaf4}

/* ═══════════ v175 ═══════════ */
/* "Просмотр по категориям" outside the grey box, just above it on the right (in line with "Открыть карту"); the box keeps
   its place (the button hangs above it, next to the breadcrumb line) */
.jm-right{position:relative;min-width:0}
.jm-right > .jm-cats-btn{position:absolute;right:14px;bottom:100%;margin-bottom:6px;white-space:nowrap}
@media(max-width:900px){ .jm-right > .jm-cats-btn{position:static;margin:0 -6px 8px auto;display:flex;width:max-content} }

/* ═══════════ v176 ═══════════ */
/* Услуги map: the service dropdown + its sub-section dropdown side by side (the second greyed until a service is picked) */
.jm-picks{display:flex;flex-wrap:wrap;gap:10px;flex-basis:100%;order:3}
.jm-picks .jm-pick{flex:0 1 auto;order:0;flex-basis:auto}
.jm-pick-sub .jm-pick-btn{min-width:min(18rem, 100%)}
.jm-pick.off .jm-pick-btn{opacity:.5;cursor:default}
.jm-pick.off .jm-pick-btn:hover{border-bottom-color:#c6c9ce}
@media(max-width:900px){ .jm-picks{flex-direction:column} .jm-picks .jm-pick,.jm-pick-sub .jm-pick-btn{width:100%} }
@media(min-width:901px){
    .jm-picks .jm-pick-btn{width:24rem;min-width:0}
    .jm-picks .jm-pick-sub .jm-pick-btn{width:20rem}
}
.jm-picks .jm-pick-pop{min-width:100%;width:max-content;max-width:min(30rem, 92vw)}
.jm-picks,.jm-picks .jm-pick{min-width:0;max-width:100%}

/* ═══════════ v179 ═══════════ */
/* fields that only apply for a value of another field (filters.py show_if) */
.cond-off{display:none !important}
/* a section list in fixed columns (layouts.LIST_COLUMNS) */
.sb .sb-cats.sb-cols{columns:auto;display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));column-gap:2.5rem}
.sb-col{min-width:0}
@media(max-width:860px){ .sb .sb-cats.sb-cols{grid-template-columns:1fr;row-gap:6px} }
/* go-up button (base.html): a square with barely rounded corners, bottom right, appears after scrolling down */
.to-top{position:fixed;right:22px;bottom:22px;z-index:900;width:46px;height:46px;display:flex;align-items:center;justify-content:center;
    border:1px solid #e3e5e8;border-bottom-color:#c6c9ce;border-radius:3px;background:#fff;color:#3d4247;cursor:pointer;
    box-shadow:0 4px 14px rgba(20,24,28,.12);opacity:0;visibility:hidden;transform:translateY(8px);
    transition:opacity .2s, transform .2s, visibility .2s, background .15s, color .15s, border-color .15s}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.to-top:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:860px){ .to-top{right:14px;bottom:14px;width:42px;height:42px} }
body.jm-lock .to-top,body.jm-cats-lock .to-top{display:none}
/* the categories panel's close button: thin cross in a barely rounded square, light grey; green on hover */
.jm-cats-x{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:3px;background:#f2f3f5;
    color:#3d4247;cursor:pointer;transition:background .15s, color .15s}
.jm-cats-x:hover{background:#eefaf4;color:var(--accent-hover)}
.jm-cats-x svg{transition:transform .2s}
.jm-cats-x:hover svg{transform:rotate(90deg)}

/* ═══════════ v180 ═══════════ */
/* the go-up button also works inside the Категории menu and the "Просмотр по категориям" panel, so it stays visible there */
body.jm-cats-lock .to-top{display:flex}
.to-top{z-index:2100}

/* ═══════════ v181 ═══════════ */
/* Категории menu (Alex): the category list and the right panel scroll SEPARATELY, so a short panel (Оборудование для кухни)
   is never left scrolled out of view when you go far down the list. Phones keep one scroll (list stacked above the panel). */
@media(min-width:769px){
    .mega-menu{overflow:hidden}
    .mega-menu-inner{height:100%;min-height:0}
    .mega-cats,.mega-panels{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
}

/* ═══════════ v182 ═══════════ */
/* table view (Alex): the first column after "Объявления" (Модель on cars) is left-aligned, title and values starting on the
   same edge; it is as wide as its longest value, so it sits as far left as it can */
.st th.st-first,.st td.st-first{text-align:left;padding-left:18px;padding-right:22px}
@media(max-width:760px){ .st th.st-first,.st td.st-first{padding-left:6px;padding-right:6px} }

/* ═══════════ v184 ═══════════ */
/* "Просмотр по категориям" next to a category page's title (Обслуживание авто, Услуги) */
.sd-cat-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sd-cat-head .jm-cats-btn{margin-bottom:2px}

/* ═══════════ v185 ═══════════ */
/* category / section lists (Alex): a bit more air between the lines; Обслуживание авто in his 3 columns */
.sb .sb-cats .sb-cat{padding-top:5px;padding-bottom:5px}
.sb .sb-cats.sb-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
@media(max-width:860px){ .sb .sb-cats.sb-cols-3{grid-template-columns:1fr} }

/* ═══════════ v187 ═══════════ */
/* Шины / Диски panel (Alex's mockup): 5 equal dropdowns in the row, the extras under "Больше фильтров" in the same columns */
.typ.kf-hpanel .kf-row{grid-template-columns:repeat(5, minmax(0, 1fr)) !important}
.typ-more,.typ-more > :first-child{grid-column:1 / -1}
.typ-more{grid-template-columns:repeat(5, minmax(0, 1fr)) !important;gap:8px}
.typ-more > :first-child{grid-column:auto !important}
@media(max-width:860px){
    .typ.kf-hpanel .kf-row,.typ-more{grid-template-columns:repeat(2, minmax(0, 1fr)) !important}
    .typ .kf-row > .cdd[data-kind=range]{grid-column:auto}
}
/* short section lists (<= 3, e.g. Няни / Сиделки): side by side with a normal gap, not spread over 4 wide columns */
.sb .sb-cats.sb-few{columns:auto;display:flex;flex-wrap:wrap;column-gap:3rem;row-gap:4px}
.sb .sb-cats.sb-few .sb-cat{justify-content:flex-start;gap:8px}

/* ═══════════ v189 ═══════════ */
/* short checkbox lists (<= 6, e.g. Знание языков): side by side with a normal gap instead of 3 wide columns */
.cfp-features-grid.few{display:flex;flex-wrap:wrap;column-gap:2rem;row-gap:8px}

/* ═══════════ v190 ═══════════ */
/* short section lists (Няни / Сиделки, .sb-few): boxes with the "Сохранить поиск" outline (white, 1px #e2e4e7, square),
   more space between them, the count sitting on the same line as the name */
.sb .sb-cats.sb-few{column-gap:14px;row-gap:10px}
.sb .sb-cats.sb-few .sb-cat{margin:0;align-items:center;gap:10px;padding:9px 16px;background:#fff;border-radius:1px;
    box-shadow:0 0 0 1px #e2e4e7;transition:background .12s, box-shadow .12s}
.sb .sb-cats.sb-few .sb-cat em{line-height:1}
.sb .sb-cats.sb-few .sb-cat:hover{background:#eefaf4;box-shadow:0 0 0 1px #bfe6d1}
.sb .sb-cats.sb-few .sb-cat.active{box-shadow:0 0 0 1px var(--brand)}

/* ═══════════ v192 ═══════════ */
/* short section lists (Няни / Сиделки): every box as wide as the widest one (inline grid of equal 1fr columns) */
.sb .sb-cats.sb-few{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;column-gap:14px;max-width:100%}
.sb .sb-cats.sb-few .sb-cat{justify-content:space-between}

/* ═══════════ v193 ═══════════ */
/* Личный кабинет (Alex, ss.com layouts in our style) */
.acc-head-link{color:var(--accent);font-weight:600;font-size:.95rem}
.acc-head-link:hover{color:var(--accent-hover)}
b.req,.pr-req b{color:#d33;font-weight:700}
.pr-req{margin:10px 0 4px;font-size:.84rem;color:#8a8f94}
/* Мои объявления: filters + table */
.ml-filters{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 0 6px}
.ml-filters select{min-width:220px;padding:9px 12px;border:1px solid #e3e5e8;border-bottom-color:#c6c9ce;border-radius:1px;font:inherit;background:#fff}
.ml-note{margin:2px 0 12px;font-size:.84rem;color:#8a8f94}
.ml-table{width:100%;border-collapse:collapse;font-size:.93rem}
.ml-table th{padding:8px 10px;text-align:left;font-size:.82rem;color:#3d4247;border-bottom:2px solid #e3e5e8;white-space:nowrap}
.ml-table td{padding:10px;border-bottom:1px solid #eceef0;vertical-align:middle}
.ml-tr:hover td{background:#f8fbf9}
.ml-tr.is-off .ml-td-img,.ml-tr.is-off .ml-td-ad,.ml-tr.is-off .ml-td-price{opacity:.55}
.ml-td-img{width:96px}
.ml-td-img img{display:block;width:84px;height:63px;object-fit:cover;background:#f2f3f5;border-radius:1px}
.ml-path{display:block;font-size:.78rem;color:#8a8f94;margin-bottom:2px}
.ml-title{font-weight:600;color:#1a1d21}
.ml-title:hover{color:var(--accent-hover)}
.ml-place{display:block;font-size:.8rem;color:#8a8f94;margin-top:2px}
.ml-td-price{font-weight:700;white-space:nowrap}
.ml-td-until{white-space:nowrap;font-size:.88rem;color:#3d4247}
.ml-td-until small{display:block;color:#8a8f94;font-size:.76rem}
.ml-td-until small.soon{color:#c47a00;font-weight:600}
.ml-td-stats{white-space:nowrap;color:#6b7075}
.ml-td-stats .ml-saves{margin-left:8px}
.ml-td-acts{text-align:right;white-space:nowrap}
.ml-td-acts form{display:inline}
.ml-act{display:inline-block;margin-left:10px;padding:0;border:0;background:none;font:inherit;font-size:.88rem;color:var(--deep);cursor:pointer;
    text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c6d3dd}
.ml-act:hover{color:var(--accent-hover);text-decoration-color:currentColor}
.ml-act-main{color:var(--accent);font-weight:700}
.ml-act-del{color:#d33;text-decoration-color:#f1b5b5}
.ml-bottom{text-align:center;padding:22px 0 6px}
@media(max-width:860px){
    .ml-table thead{display:none}
    .ml-table,.ml-table tbody{display:block}
    .ml-tr{display:grid;grid-template-columns:84px minmax(0, 1fr);column-gap:12px;padding:10px 0;border-bottom:1px solid #eceef0}
    .ml-table td{display:block;padding:2px 0;border:0}
    .ml-td-img{grid-row:span 3}
    .ml-td-acts{grid-column:1 / -1;text-align:left;padding-top:8px !important}
    .ml-act:first-child{margin-left:0}
    .ml-td-acts form:first-child .ml-act{margin-left:0}
}
/* Профиль */
.pr-form .form-group input[disabled]{background:#f6f7f8}
.pr-block{display:flex;gap:28px;align-items:flex-start;margin:10px 0 18px;flex-wrap:wrap}
.pr-label{display:block;font-weight:600;font-size:.9rem;margin-bottom:6px}
.pr-portrait{display:flex;align-items:center;justify-content:center;width:110px;height:140px;border:1px dashed #c6c9ce;background:#fafafb;
    cursor:pointer;text-align:center;font-size:.85rem;color:#6b7075;overflow:hidden;border-radius:1px}
.pr-portrait:hover{border-color:var(--brand);color:var(--accent-hover)}
.pr-portrait img{width:100%;height:100%;object-fit:cover}
.pr-portrait img[hidden]{display:none}
.pr-remove{display:block;margin-top:6px;font-size:.82rem;color:#6b7075}
.pr-ticks{display:flex;flex-direction:column;gap:10px;padding-top:24px}
.pr-company-tick{margin-top:6px}
.pr-company{padding:4px 0 10px;border-top:1px solid #eceef0;margin-bottom:10px}
.pr-company[hidden]{display:none}
.pr-danger{text-align:right;margin:-4px 2px 20px;font-size:.85rem}
.pr-danger a{color:#d33}
.pr-delete p{margin:14px 0}
.pr-delete-btns{display:flex;gap:10px;flex-wrap:wrap}
.pr-delete-btn{background:#d33;color:#fff;border-color:#d33}
.pr-delete-btn:hover{background:#b82222;border-color:#b82222}
/* seller portrait / company badge */
.ld-avatar-img{object-fit:cover;padding:0}
.ld-company{display:inline-block;margin-left:6px;padding:1px 6px;font-size:.7rem;font-weight:700;color:var(--brand);background:#eefaf4;
    border-radius:1px;vertical-align:middle}
/* Регистрация */
.rg-card{max-width:640px}
.rg-kind{margin:4px 0 16px;min-height:2.6rem}
.rg-company{padding:2px 0 4px}
.rg-company[hidden]{display:none}
.rg-rules-title{margin:16px 0 6px;font-weight:700;font-size:.95rem}
.rg-rules{max-height:220px;overflow-y:auto;padding:12px 14px;border:1px solid #e3e5e8;background:#fafafb;font-size:.84rem;line-height:1.5;color:#3d4247}
.rg-rules p{margin:0 0 8px}
.rg-rules-link{text-align:right}
.rg-agree{margin:12px 0 16px}
.ml-td-ad{min-width:0}
.ml-title{overflow-wrap:anywhere}
.ml-td-ad .ml-title{white-space:normal;overflow:visible;text-overflow:clip}

/* ═══════════ v194 ═══════════ */
/* Мои объявления: our-style dropdowns (like the filter panels), the long category list scrolls inside */
.ml-dd{position:relative;min-width:240px}
.ml-dd-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;background:#fff;
    border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;font:inherit;font-size:.92rem;color:#2b2f36;cursor:pointer;text-align:left}
.ml-dd-btn:hover,.ml-dd.open .ml-dd-btn{border-bottom-color:#2b2f36}
.ml-dd-btn .cdd-chev{width:16px;height:16px;flex:0 0 auto;transition:transform .2s}
.ml-dd.open .cdd-chev{transform:rotate(180deg)}
.ml-dd-pop{position:absolute;z-index:60;top:100%;left:0;right:0;min-width:100%;width:max-content;max-width:min(26rem, 90vw);max-height:340px;
    overflow-y:auto;background:#fff;box-shadow:3px 3px 8px rgba(0,0,0,.22),0 0 1px rgba(0,0,0,.18);scrollbar-width:thin}
.ml-dd:last-child .ml-dd-pop{left:auto;right:0}
.ml-dd-pop[hidden]{display:none}
.ml-dd-opt{display:block;padding:9px 14px;font-size:.92rem;color:#2b2f36}
.ml-dd-opt:hover{background:#eefaf4;color:var(--accent-hover)}
.ml-dd-opt.sel{font-weight:700;color:var(--brand);background:#f7f7f7}
.ml-sec{margin:20px 0 4px;font-size:1.1rem;color:#1a1d21}
.ml-sec em{font-style:normal;font-weight:400;color:#8a8f94;font-size:.9rem;margin-left:4px}
.pr-email-pw{margin-top:8px}
.pr-email-pw[hidden]{display:none}
@media(max-width:860px){ .ml-dd{min-width:0;flex:1 1 100%} }
@media(max-width:860px){ .ml-td-acts{white-space:normal;display:flex !important;flex-wrap:wrap;gap:6px 14px} .ml-td-acts .ml-act{margin-left:0} }
@media(min-width:861px){ .ml-th-ad,.ml-td-ad{width:42%} }

/* ═══ v195 (Alex): Недвижимость landing = "search first" (re_landing.html): one panel that reads like a sentence
   (Купить / Снять / Посуточно, Что ищете, Где, Цена, Комнат, Показать (N)), Смотреть на карте, then the sections, then fresh ads ═══ */
.re-page .breadcrumb{margin-bottom:6px}
.res-title{margin:2px 0 12px}
.res-box.kf-panel.cfp{margin:0 0 30px;padding:14px 16px 12px}
.res-deals{max-width:500px;height:44px;margin-bottom:14px}
.res-deals .typ-tg span{font-size:1rem}
.res-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1.25fr) minmax(0,1fr) minmax(0,.8fr) auto;gap:10px;align-items:start}
.res-f{display:flex;flex-direction:column;gap:5px;min-width:0}
.res-lbl{font-size:.82rem;color:#5d636a;line-height:1.2}
.res-where .cdd-district-box{margin-top:3px}
.res-show{align-self:start;margin-top:calc(.82rem * 1.2 + 5px);height:calc(100% - .82rem * 1.2 - 5px);max-height:44px;min-height:40px;padding:0 26px;
          font-size:1rem;font-weight:700;white-space:nowrap;border-radius:1px}
.res-type .cdd-item{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.res-type .cdd-item em{font-style:normal;color:#8a8f94;font-size:.84rem}
.res-type .cdd-val{color:#22262b;font-weight:700}
.res-type.cdd-off .cdd-btn,.res-f.cdd-off .cdd-btn{opacity:.5;cursor:not-allowed}
.res-acts{display:flex;align-items:center;gap:8px 26px;margin-top:12px;flex-wrap:wrap}
.res-map,.res-more{display:inline-flex;align-items:center;gap:6px;color:var(--brand);font-weight:700;font-size:.95rem;text-decoration:none}
.res-map:hover,.res-more:hover{color:var(--accent-hover);text-decoration:underline}
.res-reset{margin-left:auto;padding:0;border:0;background:none;color:#6b7178;font:inherit;font-size:.9rem;cursor:pointer}
.res-reset:hover{color:#22262b;text-decoration:underline}
.res-h2{font-size:1.3rem;font-weight:700;color:#3d4247;margin:0 0 10px}
.res-secs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 2.25rem;margin-bottom:34px}
.res-sec{display:flex;align-items:center;gap:12px;margin:0 -6px;padding:9px 6px;border-bottom:1px solid #eceef0;color:#22262b;
         text-decoration:none;font-size:1.08rem;line-height:1.3}
.res-sec .re-type-ico{flex:0 0 auto;width:26px;height:26px;color:#8a8f94}
.res-sec em{margin-left:auto;padding-left:8px;font-style:normal;color:#8a8f94;font-size:.92rem}
.res-sec:hover{background:#eefaf4;color:var(--accent-hover);-webkit-text-stroke:.4px}
.res-sec:hover .re-type-ico{color:var(--brand)}
.res-sec:hover em{-webkit-text-stroke:0}
.res-h2-row .res-h2{margin:0}
.res-h2-row{margin-bottom:14px}
@media(max-width:1100px){
  .res-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .res-show{grid-column:1 / -1;margin-top:4px;height:46px;max-height:none}
  .res-secs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .res-box.kf-panel.cfp{padding:12px 10px 10px}
  .res-deals{max-width:none}
  .res-secs{grid-template-columns:minmax(0,1fr)}
  .res-reset{margin-left:0}
}
.res-row .cdd-btn{height:42px;padding-top:0;padding-bottom:0}
.res-row .res-show{height:42px;max-height:none;min-height:0}
@media(max-width:1100px){ .res-row .res-show{height:46px} }

/* ═══ v200 (Alex: category titles wrapped to 2 lines): the title + its divider take the whole column (the v139 2.4rem
   shorter divider is gone), a bit less side padding, slightly tighter letters ═══ */
.home-cat-header{margin-right:0}
.home-cat-name{letter-spacing:.02em}
@media(min-width:1200px){ .home-cat-block{padding-left:10px;padding-right:10px} }

/* ═══ v201-v204 (Alex's dad's idea): papyrus scrolls (templates/partials/scroll.html + static/js/scroll.js). Used under
   every homepage category title (.sc-home, the sections inside) and on /scroll-demo (.sc-demo + the 4 variants).
   v202: faster, no fibre stripes. v203: grey like the Транспорт tiles, 4 variants. v204 (Alex's reference picture: turned
   handles = a flared, ringed collar + a ball, no bare rod): the variants differ in SHAPE: 1 classic (his picture: flared
   collar with rings + ball, torn edges), 2 spool (fat rolls, straight ringed collar + flat disc, clean-cut paper),
   3 finial (slim rolls, short collar + pointed acorn tip, frayed handmade edge), 4 block (square caps + small ball, big torn
   bites). Sizes: --rbase (roll height of a normal scroll) x --rf (variant factor) = --roll; handle parts in --roll units.
   v205 (Alex): no ribbon / cord / clasp (seal only); closed scrolls aren't perfectly straight: --tilt (whole scroll),
   --shift (top roll sideways), --r2 (bottom roll thickness factor) per scroll (sc_shape() in the partial) and a slightly
   wobbly roll outline (--cmask); --gap = a strip of paper between the closed rolls, so their handles don't touch. All of
   it straightens out while the scroll opens. ═══ */
.sc{--rbase:26px;--rf:1;--roll:calc(var(--rbase) * var(--rf));
    --r2:1;--roll2:calc(var(--roll) * var(--r2));   /* bottom roll */
    --gap:7px;--tilt:-.6deg;--shift:3px;
    --cmask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='30' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cfilter id='w' filterUnits='userSpaceOnUse' x='-20' y='0' width='340' height='30'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.018' numOctaves='1' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3.4' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='-20' y='1.6' width='340' height='26.8' fill='black' filter='url(%23w)'/%3E%3C/svg%3E");
    --hw:calc(var(--roll) * 1.08);  /* handle width (collar + neck + ball) */
    --cw:calc(var(--roll) * .5);    /* collar width */
    --ch:calc(var(--roll) * 1.06);  /* collar height (v205: <= the roll + a bit, so closed handles keep a gap) */
    --clip:polygon(0 0,100% 13%,100% 87%,0 100%);   /* collar outline, flaring towards the roll */
    --bw:calc(var(--roll) * .62);   /* ball */
    --bh:calc(var(--roll) * .62);
    --brad:50%;
    --pw:12px;                      /* how much narrower the paper is than the rolls */
    --metal:linear-gradient(180deg,#2b2d31 0%,#7c8086 18%,#dfe1e4 38%,#a5a9ae 58%,#55595f 80%,#1f2124 100%);
    --rings:repeating-linear-gradient(90deg,rgba(255,255,255,0) 0 3px,rgba(0,0,0,.38) 3px 4px,rgba(255,255,255,.3) 4px 5px);
    --edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='400' viewBox='0 0 560 400' preserveAspectRatio='none'%3E%3Cfilter id='r' filterUnits='userSpaceOnUse' x='0' y='0' width='560' height='400'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='12' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='8' y='-20' width='544' height='440' fill='black' filter='url(%23r)'/%3E%3C/svg%3E");
    --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.3 0 0 0 0 0.3 1.4 0 0 0 -0.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
    --clouds:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0.8 0 0 0 -0.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
    position:relative;display:flex;flex-direction:column;align-items:center;padding:0 var(--hw);
    filter:drop-shadow(0 5px 7px rgba(30,32,36,.2));transform:rotate(var(--tilt));transition:transform .35s ease}
.sc.open{transform:none}
.sc-v2{--cmask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='30' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cfilter id='w' filterUnits='userSpaceOnUse' x='-20' y='0' width='340' height='30'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.018' numOctaves='1' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3.4' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='-20' y='1.6' width='340' height='26.8' fill='black' filter='url(%23w)'/%3E%3C/svg%3E");--rf:1.18;--tilt:.5deg;--shift:-4px;--r2:.92;--hw:calc(var(--roll) * .62);--cw:calc(var(--roll) * .26);--ch:calc(var(--roll) * 1);--clip:inset(0 round 2px);
       --bw:calc(var(--roll) * .2);--bh:calc(var(--roll) * 1.04);--brad:3px / 45%;--pw:4px;
       --edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='400' viewBox='0 0 560 400' preserveAspectRatio='none'%3E%3Cfilter id='r' filterUnits='userSpaceOnUse' x='0' y='0' width='560' height='400'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='3' seed='13' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='4' y='-20' width='552' height='440' fill='black' filter='url(%23r)'/%3E%3C/svg%3E")}
.sc-v3{--rf:.85;--tilt:-.3deg;--shift:5px;--r2:1.08;--cmask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='30' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cfilter id='w' filterUnits='userSpaceOnUse' x='-20' y='0' width='340' height='30'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.018' numOctaves='1' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3.4' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='-20' y='1.6' width='340' height='26.8' fill='black' filter='url(%23w)'/%3E%3C/svg%3E");--hw:calc(var(--roll) * 1.2);--cw:calc(var(--roll) * .3);--ch:calc(var(--roll) * 1.08);
       --clip:polygon(0 4%,100% 22%,100% 78%,0 96%);--bw:calc(var(--roll) * .82);--bh:calc(var(--roll) * .56);
       --brad:35% 65% 65% 35% / 50%;--pw:16px;
       --edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='400' viewBox='0 0 560 400' preserveAspectRatio='none'%3E%3Cfilter id='r' filterUnits='userSpaceOnUse' x='0' y='0' width='560' height='400'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.22' numOctaves='3' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='8' y='-20' width='544' height='440' fill='black' filter='url(%23r)'/%3E%3C/svg%3E")}
.sc-v4{--tilt:.9deg;--shift:-3px;--r2:.9;--cmask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='30' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cfilter id='w' filterUnits='userSpaceOnUse' x='-20' y='0' width='340' height='30'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.018' numOctaves='1' seed='12'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3.4' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='-20' y='1.6' width='340' height='26.8' fill='black' filter='url(%23w)'/%3E%3C/svg%3E");--hw:calc(var(--roll) * .82);--cw:calc(var(--roll) * .44);--ch:calc(var(--roll) * 1.04);--clip:inset(0 round 2px);
       --bw:calc(var(--roll) * .34);--bh:calc(var(--roll) * .34);--rings:none;--pw:8px;
       --edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='400' viewBox='0 0 560 400' preserveAspectRatio='none'%3E%3Cfilter id='r' filterUnits='userSpaceOnUse' x='0' y='0' width='560' height='400'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='4' seed='29' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='70' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='36' y='-20' width='488' height='440' fill='black' filter='url(%23r)'/%3E%3C/svg%3E")}
.sc:not(.open):not(.moving):hover{transform:rotate(var(--tilt)) translateY(-2px)}

/* rolls */
.sc-roll{position:relative;z-index:2;width:100%;height:var(--roll);padding:0;border:0;background:none;cursor:pointer;
         -webkit-tap-highlight-color:transparent}
.sc-roll-top{transform:translateX(var(--shift));transition:transform .35s ease}
.sc.open .sc-roll-top{transform:none}
.sc-roll-bottom{--roll:var(--roll2)}   /* everything inside the bottom roll follows its own thickness */
.sc-roll:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:8px}
.sc-rod{display:none}   /* v204: the handles' necks are the rod now */
/* handle = neck (the element's own background) + collar (::before, next to the roll) + ball / disc / tip (::after, outside).
   Drawn for the right side; the left one is mirrored. */
.sc-knob{position:absolute;z-index:1;top:50%;width:var(--hw);height:calc(var(--roll) * 1.5);transform:translateY(-50%);
         background:var(--metal) 0 50% / 100% calc(var(--roll) * .32) no-repeat}
.sc-knob-r{right:calc(-1 * var(--hw))}
.sc-knob-l{left:calc(-1 * var(--hw));transform:translateY(-50%) scaleX(-1)}
.sc-knob::before{content:"";position:absolute;left:-1px;top:50%;width:var(--cw);height:var(--ch);transform:translateY(-50%);
                 clip-path:var(--clip);background:var(--rings),var(--metal)}
.sc-knob::after{content:"";position:absolute;right:0;top:50%;width:var(--bw);height:var(--bh);transform:translateY(-50%);
                border-radius:var(--brad);box-shadow:0 1px 2px rgba(0,0,0,.35);
                background:radial-gradient(ellipse at 40% 30%,#e9ebee 0%,#9ea2a8 32%,#4f5359 70%,#1b1c1f 100%)}
.sc-v2 .sc-knob::after{background:linear-gradient(90deg,#2a2c30,#8a8e94 40%,#d3d6d9 55%,#5a5e64 80%,#1c1d20)}
.sc-v4 .sc-knob::before{box-shadow:inset 0 0 0 1px rgba(0,0,0,.4);
                        background:linear-gradient(90deg,rgba(255,255,255,.35) 0 2px,transparent 2px calc(100% - 2px),rgba(0,0,0,.35) calc(100% - 2px)),var(--metal)}
.sc-coil{position:absolute;z-index:1;inset:0;border-radius:6px / 50%;overflow:hidden;
         -webkit-mask:var(--cmask) 0 0 / 100% 100% no-repeat;mask:var(--cmask) 0 0 / 100% 100% no-repeat;   /* wobbly outline */
         background:linear-gradient(180deg,#86888b 0%,#c3c5c8 15%,#e8e9eb 34%,#f9f9fa 47%,#eaebec 63%,#bfc1c4 85%,#808285 100%);
         box-shadow:inset 5px 0 6px -4px rgba(30,32,36,.45),inset -5px 0 6px -4px rgba(30,32,36,.45);
         transition:transform .65s cubic-bezier(.45,.05,.25,1)}
.sc-v2 .sc-coil{border-radius:3px / 50%}
.sc-coil::before{content:"";position:absolute;inset:0;mix-blend-mode:multiply;background:var(--grain),var(--clouds);
                 background-size:240px 240px,420px 420px}
.sc-coil::after{content:"";position:absolute;top:0;bottom:0;left:6%;right:6%;   /* sheen, fading out at the sides */
                background:linear-gradient(180deg,transparent 30%,rgba(255,255,255,.55) 44%,transparent 56%);
                -webkit-mask:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);mask:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent)}
.sc.moving .sc-roll-top .sc-coil::before{animation:scTurn .65s cubic-bezier(.45,.05,.25,1)}
.sc.moving .sc-roll-bottom .sc-coil::before{animation:scTurn .65s cubic-bezier(.45,.05,.25,1) reverse}
@keyframes scTurn{from{background-position:0 0,0 0}to{background-position:0 240px,0 420px}}
.sc.open .sc-coil{transform:scaleY(.82)}

/* paper (its edge = a tiling SVG mask, a different one per variant) */
.sc-paper{position:relative;z-index:1;width:calc(100% - var(--pw));height:calc((var(--roll) + var(--roll2)) / 2 + var(--gap));
          margin:calc(var(--roll) / -2) 0 calc(var(--roll2) / -2);overflow:hidden;
          transition:height .65s cubic-bezier(.45,.05,.25,1)}
.sc-paper::before{content:"";position:absolute;inset:0;
                  -webkit-mask:var(--edge) 0 0 / 100% 400px repeat-y;mask:var(--edge) 0 0 / 100% 400px repeat-y;
                  background:var(--grain),var(--clouds),
                             radial-gradient(ellipse 80% 65% at 50% 45%,#fdfdfd 0%,#f4f4f5 55%,#e7e7e9 85%,#d7d8da 100%);
                  background-size:240px 240px,420px 420px,100% 100%;
                  box-shadow:inset 14px 0 20px -8px rgba(40,42,46,.26),inset -14px 0 20px -8px rgba(40,42,46,.26)}
.sc-paper::after{content:"";position:absolute;inset:0;pointer-events:none;     /* the rolls' shadow on the paper */
                 background:linear-gradient(180deg,rgba(30,32,36,.22),transparent 22px,transparent calc(100% - 22px),rgba(30,32,36,.22))}
.sc-inner{position:relative;z-index:1;padding:calc(var(--roll) / 2 + 10px) 16px;color:#2b2f36;opacity:0;transition:opacity .2s}
.sc.open .sc-inner{opacity:1;transition:opacity .4s .2s}

/* the wax seal over the seam of the closed scroll; it pops away first */
.sc-close{position:absolute;z-index:3;left:50%;top:50%;pointer-events:none;transition:transform .15s cubic-bezier(.5,-.4,.7,1),opacity .15s}
.sc.unsealed .sc-close{opacity:0}
.sc-seal{--seal:calc(var(--roll) * 1.3);top:calc(var(--roll) + var(--gap) / 2);width:var(--seal);height:var(--seal);
         margin:calc(var(--seal) / -2) 0 0 calc(var(--seal) / -2)}
.sc-seal::before{content:"";position:absolute;inset:0;border-radius:50%;filter:url(#scSeal);
                 background:radial-gradient(circle at 38% 32%,#8e9298,#4a4e55 46%,#1d1f22 100%);box-shadow:0 2px 4px rgba(0,0,0,.4)}
.sc-seal span{position:absolute;inset:17%;border-radius:50%;display:grid;place-items:center;
              font:700 calc(var(--seal) * .46)/1 'Cormorant Garamond',Georgia,serif;color:#3a3d42;
              background:radial-gradient(circle at 60% 65%,#6a6e75,#3a3d42);
              box-shadow:inset 1px 1px 3px rgba(0,0,0,.55),inset -1px -1px 2px rgba(255,255,255,.25);
              text-shadow:-1px -1px 0 rgba(0,0,0,.45),1px 1px 0 rgba(255,255,255,.3)}
.sc.unsealed .sc-seal{transform:scale(1.3) rotate(-20deg)}
/* homepage: one scroll under each category title, its sections inside */
.home-scrolls .home-cat-header{margin-bottom:12px}
.sc-home{width:100%;margin-bottom:4px}
.sc-list{margin:0;padding:0;list-style:none;font-family:'PT Serif',Georgia,serif}   /* Cormorant's л looks like Λ */
.sc-list li{margin:0}
.sc-link{display:block;margin:0 -6px;padding:2px 6px;color:#2b2f36;font-size:1.02rem;font-weight:400;line-height:1.35;
         text-decoration:none;border-radius:2px}
@media(hover:hover){ .sc-link:hover{color:var(--accent-hover);background:rgba(255,255,255,.7)} }
.sc-link.eco{color:var(--brand);font-weight:700}
.sc-link .ph{display:inline}

/* /scroll-demo */
.sc-stage{display:flex;flex-direction:column;align-items:center;padding:46px 0 70px}
.sc-demo{--rbase:44px;width:min(640px, 100%)}
.sc-demo .sc-inner{padding:calc(var(--roll) / 2 + 30px) 56px;font-family:'PT Serif',Georgia,serif;text-align:center}
.sc-title,.sc-demo .sc-inner .sc-sign{font-family:'Cormorant Garamond','PT Serif',Georgia,serif}
.sc-title{margin:0;font-size:2.2rem;font-weight:700;letter-spacing:.02em;color:#2b2f36}
.sc-orn{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0 20px}
.sc-orn i{width:96px;height:1px;background:linear-gradient(90deg,transparent,#6b6f75)}
.sc-orn i:last-child{background:linear-gradient(270deg,transparent,#6b6f75)}
.sc-orn b{width:7px;height:7px;border:1px solid #6b6f75;transform:rotate(45deg)}
.sc-demo .sc-inner p{margin:0 0 14px;font-size:1.08rem;line-height:1.6}
.sc-demo .sc-inner .sc-sign{margin:22px 0 0;font-style:italic;font-size:1.4rem;text-align:right;color:#2b2f36}
.sc-hint{margin:22px 0 0;font-size:.92rem;color:#7c8188;letter-spacing:.03em}
.sc-variants{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 36px;width:100%;margin-top:56px;align-items:start}
.sc-variant-name{margin:0 0 10px;font-weight:700;color:#3d4247}
@media(max-width:900px){ .sc-variants{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:600px){
  .sc-demo{--rbase:38px}
  .sc-demo .sc-inner{padding-left:24px;padding-right:24px}
  .sc-title{font-size:1.8rem}
  .sc-demo .sc-inner p{font-size:1rem}
  .sc-variants{grid-template-columns:minmax(0,1fr)}
}
/* v243 (Alex): the v206 reduce-motion block is gone: the scrolls animate fully everywhere (his dad's Vivaldi) */

/* ═══ v208 (Alex's drawing): homepage categories = a strip of plain paper, its left end curled up (a thin line drawing,
   white, our grey line colour), the category name on it, a chevron on the right. A click straightens the sheet downwards
   out of the curl: the sheet's left edge starts exactly under the roll's bottom point. It's a DROPDOWN: the sheet floats
   over the page (nothing below moves), one open at a time, a click outside / Esc closes. Light: no filters / masks. ═══ */
.home-paper.home-cat-grid{row-gap:14px}
.pp{--h:2.75rem;--line:#c3c7cc;position:relative;z-index:1}
.pp.open{z-index:40}
.pp-head{position:relative;display:flex;align-items:center;gap:6px;width:100%;height:var(--h);margin:0;
         padding:0 8px 0 calc(var(--h) + 6px);border:0;background:none;font:inherit;text-align:left;cursor:pointer;
         -webkit-tap-highlight-color:transparent}
.pp-head::before{content:"";position:absolute;z-index:0;left:calc(var(--h) / 2);right:0;top:0;bottom:0;background:#fff;
                 border:1px solid var(--line);border-left:0;border-radius:0 5px 5px 0;box-shadow:0 1px 2px rgba(31,35,40,.06);
                 transition:border-color .15s,border-radius .15s}
.pp-curl{position:absolute;z-index:1;left:0;top:0;width:var(--h);height:var(--h);overflow:visible}
.pp-curl-roll{fill:#f8f9fa;stroke:var(--line);stroke-width:1.2;vector-effect:non-scaling-stroke}
.pp-curl-line{fill:none;stroke:var(--line);stroke-width:1.2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.pp-name{position:relative;z-index:1;flex:1;min-width:0;color:#22262b;font-size:1rem;font-weight:700;line-height:1.2;
         overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-chev{position:relative;z-index:1;flex:0 0 auto;color:#8a9097;transition:transform .3s ease,color .15s}
.pp-head:hover{--line:#9aa0a6}
.pp-head:hover .pp-name,.pp-head:hover .pp-chev{color:var(--accent-hover)}
.pp-head:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px}
.pp.open .pp-chev{transform:rotate(180deg)}
.pp.open .pp-head::before{border-bottom-color:#eceef0;border-radius:0 5px 0 0}

/* v210 (Alex picked Jon Kantner's "Folding Select Dropdowns", codepen.io/jkantner/pen/KKwjBmJ, MIT): the sheet folds out
   panel by panel; .pp-flap (a blank panel as tall as the strip) tumbles down over a hinge, the sheet is revealed behind it
   (clip-path). Keyframes are built in index.html's script for any number of sections. The category box gets --pp-room
   below it so a long sheet pushes the footer down instead of covering it. */
.home-paper.home-cat-grid{margin-bottom:var(--pp-room, 0px);transition:margin-bottom .4s ease}
.pp-drop{position:absolute;left:calc(var(--h) / 2);right:0;top:100%;perspective:700px;perspective-origin:50% 0}
.pp-sheet{height:0;overflow:hidden;visibility:hidden;background:#fff;border:1px solid var(--line);border-top:0;
          border-radius:0 0 5px 5px;box-shadow:0 14px 28px -14px rgba(31,35,40,.3)}
.pp.open .pp-sheet{visibility:visible}
.pp-flap{position:absolute;z-index:2;left:0;right:0;top:0;height:var(--h);visibility:hidden;transform-origin:50% 0;
         background:linear-gradient(180deg,#fff,#f2f3f5);border:1px solid var(--line);border-radius:2px;
         box-shadow:0 2px 6px rgba(31,35,40,.12);backface-visibility:visible}
.pp.folding .pp-flap{visibility:visible}
.pp-inner{padding:8px 12px 10px calc(var(--h) / 2 + 8px)}
.pp-list{margin:0;padding:0;list-style:none}
.pp-link{display:block;margin:0 -6px;padding:3px 6px;color:#22262b;font-size:1.02rem;line-height:1.35;text-decoration:none}
@media(hover:hover){ .pp-link:hover{background:#eefaf4;color:var(--accent-hover)} }
.pp-link.eco{color:var(--brand);font-weight:700}
.pp-all{display:inline-flex;align-items:center;gap:4px;margin-top:6px;color:var(--brand);font-weight:700;font-size:.95rem;text-decoration:none}
.pp-all:hover{color:var(--accent-hover)}


/* ═══ v211 (Alex: back to the scrolls, "a bit simpler"): no shadow around the whole scroll (it was also the heaviest part
   to draw), softer shading on the rolls / paper, no shadows on the knobs and seal, and no line under the category name
   on the homepage. ═══ */
.sc{filter:none}
.sc-coil{box-shadow:inset 4px 0 5px -4px rgba(30,32,36,.25),inset -4px 0 5px -4px rgba(30,32,36,.25)}
.sc-paper::before{box-shadow:inset 10px 0 14px -10px rgba(40,42,46,.14),inset -10px 0 14px -10px rgba(40,42,46,.14)}
.sc-paper::after{background:linear-gradient(180deg,rgba(30,32,36,.1),transparent 14px,transparent calc(100% - 14px),rgba(30,32,36,.1))}
.sc-knob::after{box-shadow:none}
.sc-seal::before{box-shadow:none}
.home-scrolls .home-cat-header{border-bottom:0;padding-bottom:0;margin-bottom:10px}

/* ═══ v212 (Alex): a closed scroll goes a little green under the mouse (rolls + the strip of paper; back to white once
   clicked), the whole closed scroll is clickable, sections hover mint (#eefaf4) like the rest of the site, centred category
   names above the scrolls, and only the gentle paper edges (1 torn, 2 clean): 3 and 4 lost their frayed / bitten edges. ═══ */
.sc-v3{--edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='400' viewBox='0 0 560 400' preserveAspectRatio='none'%3E%3Cfilter id='r' filterUnits='userSpaceOnUse' x='0' y='0' width='560' height='400'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='3' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='12' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='8' y='-20' width='544' height='440' fill='black' filter='url(%23r)'/%3E%3C/svg%3E")}
.sc-v4{--edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='400' viewBox='0 0 560 400' preserveAspectRatio='none'%3E%3Cfilter id='r' filterUnits='userSpaceOnUse' x='0' y='0' width='560' height='400'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='3' seed='29' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='4' y='-20' width='552' height='440' fill='black' filter='url(%23r)'/%3E%3C/svg%3E")}
.sc:not(.open){cursor:pointer}
.sc-coil{box-shadow:inset 4px 0 5px -4px rgba(30,32,36,.25),inset -4px 0 5px -4px rgba(30,32,36,.25),inset 0 0 0 60px rgba(0,173,101,0);
         transition:transform .65s cubic-bezier(.45,.05,.25,1),box-shadow .2s ease}
.sc-paper::after{box-shadow:inset 0 0 0 400px rgba(0,173,101,0);transition:box-shadow .2s ease}
@media(hover:hover){
  .sc-link:hover{color:var(--accent-hover);background:#eefaf4}
}
.home-scrolls .home-cat-header{justify-content:center;text-align:center}
.home-scrolls .home-cat-name{transform-origin:center bottom}

/* ═══ v213 (Alex: "the scrolls a bit lighter, like 40% more"): every grey of the scrolls mixed 40% towards white (rolls,
   handles, rods, ring grooves, seal, paper edge shading); shapes unchanged. ═══ */
.sc{--metal:linear-gradient(180deg,#808183 0%,#b0b3b6 18%,#ecedef 38%,#c9cbce 58%,#999b9f 80%,#797a7c 100%);
    --rings:repeating-linear-gradient(90deg,rgba(255,255,255,0) 0 3px,rgba(0,0,0,.23) 3px 4px,rgba(255,255,255,.3) 4px 5px)}
.sc-v4{--rings:none}
.sc-coil{background:linear-gradient(180deg,#b6b8b9 0%,#dbdcde 15%,#f1f2f3 34%,#fbfbfc 47%,#f2f3f4 63%,#d9dadc 85%,#b3b4b6 100%)}
.sc-knob::after{background:radial-gradient(ellipse at 40% 30%,#f2f3f5 0%,#c5c7cb 32%,#95989b 70%,#767779 100%)}
.sc-v2 .sc-knob::after{background:linear-gradient(90deg,#7f8083,#b9bbbf 40%,#e5e6e8 55%,#9c9ea2 80%,#777779)}
.sc-seal::before{background:radial-gradient(circle at 38% 32%,#bbbec1,#929599 46%,#77797a 100%)}
.sc-seal span{color:#898b8e;background:radial-gradient(circle at 60% 65%,#a6a8ac,#898b8e)}
.sc-coil{box-shadow:inset 4px 0 5px -4px rgba(30,32,36,.15),inset -4px 0 5px -4px rgba(30,32,36,.15),inset 0 0 0 60px rgba(0,173,101,0)}
.sc-paper::before{background:var(--grain),var(--clouds),radial-gradient(ellipse 80% 65% at 50% 45%,#fefefe 0%,#f8f8f9 55%,#f1f1f2 85%,#e7e8e9 100%);
                  background-size:240px 240px,420px 420px,100% 100%;
                  box-shadow:inset 10px 0 14px -10px rgba(40,42,46,.08),inset -10px 0 14px -10px rgba(40,42,46,.08)}
.sc-paper::after{background:linear-gradient(180deg,rgba(30,32,36,.06),transparent 14px,transparent calc(100% - 14px),rgba(30,32,36,.06))}

/* ═══ v214 (Alex: no mint on hover): a closed scroll just gets a bit darker under the mouse (same rolls + paper strip,
   grey instead of green; still gone once it's clicked) ═══ */
.sc-coil{box-shadow:inset 4px 0 5px -4px rgba(30,32,36,.15),inset -4px 0 5px -4px rgba(30,32,36,.15),inset 0 0 0 60px rgba(30,32,36,0)}
.sc-paper::after{box-shadow:inset 0 0 0 400px rgba(30,32,36,0)}
@media(hover:hover){
}

/* ═══ v215 (Alex): the category name turns green while the mouse is on its scroll (same green as hovering the name) ═══ */
@media(hover:hover){ .home-scrolls .home-cat-block:has(.sc:hover) .home-cat-name{color:var(--accent-hover)} }

/* ═══ v216 (Alex): name and scroll hover together: the mouse on the scroll also makes the name bigger + bolder (like
   hovering the name), and the mouse on the name also darkens its (closed) scroll ═══ */
@media(hover:hover){
  .home-scrolls .home-cat-block:has(.sc:hover) .home-cat-name{transform:scale(1.08);font-weight:700}
}

/* ═══ v217 (Alex: сургуч): the seal is brownish-red sealing wax instead of grey ═══ */
.sc-seal::before{background:radial-gradient(circle at 38% 32%,#c0634c,#8c2f20 46%,#561a10 100%)}
.sc-seal span{color:#6e2015;background:radial-gradient(circle at 60% 65%,#a5412f,#7a2617);
              box-shadow:inset 1px 1px 3px rgba(40,8,3,.55),inset -1px -1px 2px rgba(255,190,170,.28);
              text-shadow:-1px -1px 0 rgba(40,8,3,.45),1px 1px 0 rgba(255,180,160,.35)}

/* ═══ v218 (Alex): 3 scrolls per row instead of 4 (wider, so section names stay on one line), brighter rolls + handles
   (another 35% towards white on top of v213), bigger section text, and the hovered section gets bold (text-stroke, so
   the name doesn't get wider and jump to a second line). ═══ */
@media(min-width:1101px){ .home-scrolls.home-cat-grid{grid-template-columns:repeat(3, minmax(0, 1fr));column-gap:2rem} }
.sc-home .sc-inner{padding-left:12px;padding-right:8px}
.sc{--metal:linear-gradient(180deg,#acadae 0%,#ccced0 18%,#f3f3f5 38%,#dcdddf 58%,#bdbec1 80%,#a8a9aa 100%)}
.sc-coil{background:linear-gradient(180deg,#d0d1d2 0%,#e8e8ea 15%,#f6f7f7 34%,#fcfcfd 47%,#f7f7f8 63%,#e6e7e8 85%,#ceced0 100%)}
.sc-knob::after{background:radial-gradient(ellipse at 40% 30%,#f7f7f8 0%,#d9dbdd 32%,#babcbe 70%,#a6a7a8 100%)}
.sc-v2 .sc-knob::after{background:linear-gradient(90deg,#acacae,#d2d3d5 40%,#eeeff0 55%,#bfc0c3 80%,#a7a7a8)}
.sc-link{font-size:1.1rem;line-height:1.38;padding:3px 6px;margin:0 -6px}
@media(hover:hover){ .sc-link:hover{-webkit-text-stroke:.6px currentColor} }

/* ═══ v219 (Alex) ═══ */
/* homepage scrolls: 3 independent columns, so opening a scroll only moves the scrolls under it in its own column */
.home-cat-grid .hs-col{display:contents}
@media(min-width:1101px){
  .home-scrolls.home-cat-grid{display:flex;align-items:flex-start;column-gap:2rem}
  .home-scrolls .hs-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;row-gap:1.25rem}
}
/* category pages: the section list (sb-cats) = white buttons with a soft shadow all round; hover = our mint + green text */
.sb .sb-cats .sb-cat{margin:0 0 10px;padding:8px 12px;align-items:center;background:#fff;border-radius:4px;
    box-shadow:0 0 0 1px rgba(31,35,40,.05),0 1px 7px rgba(31,35,40,.11);transition:background .12s,box-shadow .12s,color .12s}
.sb .sb-cats .sb-cat:hover{background:#eefaf4;color:var(--accent-hover);box-shadow:0 0 0 1px #bfe6d1,0 1px 7px rgba(0,148,87,.14)}
.sb .sb-cats .sb-cat.active{box-shadow:0 0 0 1px var(--brand),0 1px 7px rgba(0,148,87,.14)}
.sb .sb-cats{padding-top:4px}
.sb .sb-cats.sb-cols .sb-col{padding-top:2px}
.sb .sb-cats.sb-few .sb-cat{margin:0;border-radius:4px}
@media(max-width:860px){ .sb .sb-cats .sb-cat{margin-bottom:8px;padding:7px 10px} }
/* the 4 scroll shapes differ in thickness: every closed block gets the tallest one's height, so the 3 columns stay in line */
@media(min-width:1101px){ .home-scrolls .hs-col .home-cat-block{min-height:134px} }

/* ═══ v220 (Alex): sb-cats buttons square, no outline (also not on hover / active), only the soft shadow all round ═══ */
.sb .sb-cats .sb-cat,.sb .sb-cats.sb-few .sb-cat{border-radius:0;box-shadow:0 1px 7px rgba(31,35,40,.12)}
.sb .sb-cats .sb-cat:hover,.sb .sb-cats.sb-few .sb-cat:hover{box-shadow:0 1px 7px rgba(0,148,87,.16)}
.sb .sb-cats .sb-cat.active,.sb .sb-cats.sb-few .sb-cat.active{box-shadow:0 1px 7px rgba(0,148,87,.16)}
/* v221 (Alex): the light green outline is back, on hover only (corners stay square) */
.sb .sb-cats .sb-cat:hover,.sb .sb-cats.sb-few .sb-cat:hover{box-shadow:0 0 0 1px #bfe6d1,0 1px 7px rgba(0,148,87,.16)}

/* ═══ v222 (Alex's mockup) ═══ */
/* scrolls: no handles, all the same thickness (and so the same seal), a bit bigger, whiter with a touch of ivory yellow,
   section text in our normal Roboto and a bit bigger */
.sc.sc{--hw:0px;--rf:1;--r2:1}
.sc-knob{display:none}
.sc-home{--rbase:32px}
.sc-coil{background:linear-gradient(180deg,#d6cfbc 0%,#ece6d6 15%,#f8f4ea 34%,#fffdf8 47%,#f9f5ec 63%,#e9e2d1 85%,#d2cab6 100%)}
.sc-paper::before{background:var(--grain),var(--clouds),radial-gradient(ellipse 80% 65% at 50% 45%,#fffef9 0%,#fbf8ef 55%,#f5f0e3 85%,#ece5d3 100%);
                  background-size:240px 240px,420px 420px,100% 100%}
.sc-list{font-family:inherit}
.sc-link{font-size:1.2rem;line-height:1.36}
.sc-home .sc-inner{padding-left:16px;padding-right:12px}
@media(min-width:1101px){ .home-scrolls .hs-col .home-cat-block{min-height:0} }
/* the category name gets its green line icon in front (partials/cat_icon.html) */
.home-scrolls .home-cat-header{gap:10px;align-items:center}
.home-scrolls .home-cat-header .cat-icon{flex:0 0 auto;width:2rem;height:2rem;color:var(--brand)}

/* header search: lighter, with a Google-like soft shadow (stronger on hover) */
.nav-search-input{background:#fafafa;border-color:transparent;box-shadow:0 1px 6px rgba(32,33,36,.18)}
.nav-search-input:hover{box-shadow:0 1px 6px rgba(32,33,36,.28)}
.nav-search-input:focus{background:#fff;box-shadow:0 1px 6px rgba(32,33,36,.28)}

/* ═══ v223 (Alex) ═══ */
/* scrolls paler (half the ivory tint of v222); the cloud texture tile is bigger than any roll (a 420px tile repeated
   inside a 446px roll on wide screens and drew a dark edge near the right end) */
.sc-coil{background:linear-gradient(180deg,#dcd9cf 0%,#efede6 15%,#f9f8f3 34%,#fffefc 47%,#faf9f5 63%,#ece9e1 85%,#d9d5ca 100%)}
.sc-coil::before{background-size:240px 240px,1200px 1200px}
.sc-paper::before{background:var(--grain),var(--clouds),radial-gradient(ellipse 80% 65% at 50% 45%,#fffffd 0%,#fcfbf7 55%,#f7f5ef 85%,#efece4 100%);
                  background-size:240px 240px,1200px 1200px,100% 100%}
/* the seal says PT: P top left, T bottom right */
.sc-seal span{display:block}
.sc-seal span b,.sc-seal span i{position:absolute;font:700 calc(var(--seal) * .34)/1 'Cormorant Garamond',Georgia,serif;font-style:normal}
.sc-seal span b{left:16%;top:10%}
.sc-seal span i{right:16%;bottom:8%}
/* bigger section text */
.sc-link{font-size:1.32rem;line-height:1.34}

/* ═══ v224 (Alex: "more like paper, it looks like plastic"; ties; thicker rolls) ═══
   matte: no glossy highlight, soft paper shading, visible fibres + denser grain, slightly ragged roll edges, and the
   rolled-up layers showing at both ends of each roll; rolls thicker (44px); two twine strands hang from under the seal */
.sc{--fibre:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.22' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.36 1.1 0 0 0 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");--grain2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.33 0 0 0 0 0.3 1.5 0 0 0 -0.88'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E")}
.sc-home{--rbase:44px}
.sc-coil{border-radius:calc(var(--roll) * .2) / 50%;
         background:linear-gradient(180deg,#cdc9bf 0%,#e4e1d9 16%,#f1efe9 38%,#f5f3ee 54%,#eae7e0 74%,#d7d3c9 91%,#c6c1b6 100%)}
.sc-seal{--seal:calc(var(--roll) * 1.05)}
.sc-twine{position:absolute;z-index:-1;left:12%;top:45%;width:76%;height:calc(var(--roll) * 1.25);overflow:visible;pointer-events:none}
.sc-twine path{fill:none;stroke:#8e7350;stroke-width:1.8;stroke-linecap:round;vector-effect:non-scaling-stroke}
.sc-twine path:last-child{stroke-width:1.1}

/* ═══ v225 (Alex: "reminds me of birch, not paper"; real threads) ═══
   no fibre stripes / end rings / ragged edges any more: smooth matte rolls with only a very fine grain, and the paper's
   own edge: a fine line along each roll where the outer layer of the sheet ends (with a lighter lip above it), like a
   rolled sheet. Twine = wavy twisted strands (dark base + light dashes = the twist) with frayed ends. */
.sc-coil::before{background:var(--grain),var(--clouds);background-size:240px 240px,1200px 1200px;opacity:.7}
.sc-coil::after{left:0;right:0;-webkit-mask:none;mask:none;
    background:linear-gradient(180deg,transparent 64%,rgba(255,255,255,.55) 64% 66%,rgba(110,102,88,.32) 66% 68.5%,rgba(110,102,88,.08) 68.5% 74%,transparent 74%)}
.sc-paper::before{background:var(--grain),var(--clouds),radial-gradient(ellipse 80% 65% at 50% 45%,#fffffd 0%,#fbfaf6 55%,#f5f3ed 85%,#ece9e1 100%);
                  background-size:240px 240px,1200px 1200px,100% 100%}
.sc-twine{left:6%;width:88%;height:calc(var(--roll) * 1.35)}
.sc-twine .tw{fill:none;stroke:#7d6343;stroke-width:2.6;stroke-linecap:round;vector-effect:non-scaling-stroke}
.sc-twine .tw-x{fill:none;stroke:#c9ae84;stroke-width:1.3;stroke-dasharray:1.6 2.4;stroke-linecap:round;vector-effect:non-scaling-stroke}
.sc-twine .tw-f{fill:none;stroke:#8e7350;stroke-width:.9;stroke-linecap:round;vector-effect:non-scaling-stroke}

/* ═══ v226 (Alex: remove the lines along the rolls; still "plastic"): no edge line; flatter, softer shading (paper doesn't
   have a shiny round highlight) and a blotchy uneven tone (two cloud scales + grain), like real paper ═══ */
.sc-coil::after{background:none}
.sc-coil{background:linear-gradient(180deg,#dedad1 0%,#ebe8e0 20%,#f3f1eb 45%,#f2f0ea 60%,#e9e6de 80%,#d9d5cb 100%)}
.sc-coil::before{opacity:1;background:var(--grain),var(--clouds),var(--clouds);background-size:240px 240px,1200px 1200px,460px 460px;
                 background-position:0 0,0 0,130px 70px}
.sc-paper::before{background:var(--grain),var(--clouds),var(--clouds),radial-gradient(ellipse 80% 65% at 50% 45%,#fdfcf9 0%,#f8f7f2 55%,#f3f1eb 85%,#ebe8e0 100%);
                  background-size:240px 240px,1200px 1200px,460px 460px,100% 100%;background-position:0 0,0 0,90px 40px,0 0}
/* v227 (Alex): every scroll lies the same way: no per-scroll tilt / shifted top roll (the inline sc_shape() values are overridden) */
.sc.sc{--tilt:0deg !important;--shift:0px !important}
/* v228 (Alex): no icons by the names; names centred, #1d4a6b, hover only grows (no colour change); soft shadow under the
   scrolls; more of the open sheet's mottled texture on the closed rolls */
.home-scrolls .home-cat-header .cat-icon{display:none}
.home-scrolls .home-cat-header{justify-content:center}
.home-scrolls .home-cat-name,.home-scrolls .home-cat-header:hover .home-cat-name,
.home-scrolls .home-cat-block:has(.sc:hover) .home-cat-name{color:#1d4a6b !important}
.sc{filter:drop-shadow(0 4px 6px rgba(40,42,46,.16))}
.sc-coil::before{background:var(--grain),var(--grain),var(--clouds),var(--clouds),var(--clouds);
  background-size:240px 240px,160px 160px,1200px 1200px,460px 460px,260px 260px;background-position:0 0,50px 30px,0 0,130px 70px,40px 10px}
/* v231 (Alex): hovering an OPEN scroll doesn't grow its category name (only hovering the name itself does) */
@media(hover:hover){
  .home-scrolls .home-cat-block:has(.sc.open:hover):not(:has(.home-cat-header:hover)) .home-cat-name{transform:none;font-weight:600}
}
/* v232 (Alex): big tiles get the sb-cat hover outline (1px light green, outline so their own shadow stays);
   header search shadow: the old hover strength by default, denser on hover / focus */
.kf-tile.kf-tile-big:hover{outline:1px solid #bfe6d1;outline-offset:-1px}
.nav-search-input{box-shadow:0 1px 6px rgba(32,33,36,.28)}
.nav-search-input:hover,.nav-search-input:focus{box-shadow:0 1px 8px rgba(32,33,36,.42)}
/* v235 (Alex): hover changes NO colours on the scroll; it only gets a 1px brand-green outline around its shape (4 one-pixel
   drop-shadows). Rest + hover use the same filter list, so the transition only fades the outline (no green in the shadow) */
.sc{filter:drop-shadow(1px 0 0 rgba(0,173,101,0)) drop-shadow(-1px 0 0 rgba(0,173,101,0)) drop-shadow(0 1px 0 rgba(0,173,101,0))
           drop-shadow(0 -1px 0 rgba(0,173,101,0)) drop-shadow(0 8px 14px rgba(40,42,46,.34));transition:transform .35s ease,filter .2s ease}
@media(hover:hover){
  .sc:not(.open):not(.moving):not(.unsealed):hover,
  .home-scrolls .home-cat-block:has(.home-cat-header:hover) .sc:not(.open):not(.moving):not(.unsealed){
      filter:drop-shadow(1px 0 0 #00ad65) drop-shadow(-1px 0 0 #00ad65) drop-shadow(0 1px 0 #00ad65)
             drop-shadow(0 -1px 0 #00ad65) drop-shadow(0 8px 14px rgba(40,42,46,.34))}
}
/* v236 (Alex): no outline; a green outer glow on hover instead. The glow comes FIRST in the filter chain (so the grey shadow
   after it isn't tinted green) and rest + hover share the same list, so only the glow fades in */
.sc{filter:drop-shadow(0 0 9px rgba(0,173,101,0)) drop-shadow(0 8px 14px rgba(40,42,46,.34))}
@media(hover:hover){
  .sc:not(.open):not(.moving):not(.unsealed):hover,
  .home-scrolls .home-cat-block:has(.home-cat-header:hover) .sc:not(.open):not(.moving):not(.unsealed){
      filter:drop-shadow(0 0 9px rgba(0,173,101,.6)) drop-shadow(0 8px 14px rgba(40,42,46,.34))}
}

/* ═══ v238 (Alex's mockup): realty landing "Где" = a window over the page with tick boxes in columns (several places),
   greyed placeholders (.off) until a real ad exists there; then Город / волость and Улица boxes in the search row ═══ */
.res-row{grid-template-columns:minmax(0,1.1fr) minmax(0,1.15fr) minmax(0,1.15fr) minmax(0,1fr) auto}
.res-street{width:100%;height:42px;padding:0 11px;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;
            background:#fff;font:inherit;font-size:.9rem;color:#22262b;outline:none}
.res-street:focus{border-color:var(--brand)}
#reLevel2 .cdd-pop{max-height:340px;overflow-y:auto}
#reLevel2 .cdd-pop.pl-many{width:min(560px, 80vw);columns:2;column-gap:10px}
#reLevel2 .cdd-pop.pl-many .cdd-item{break-inside:avoid}
body.pl-lock{overflow:hidden}
.pl-modal{position:fixed;inset:0;z-index:2050;display:flex;align-items:flex-start;justify-content:center;padding:4vh 16px;
          background:rgba(20,22,26,.45)}
.pl-modal[hidden]{display:none}
.pl-box{position:relative;width:min(1180px, 100%);max-height:92vh;display:flex;flex-direction:column;background:#fff;
        box-shadow:0 20px 50px rgba(0,0,0,.25);padding:44px 52px 22px}
.pl-x{position:absolute;right:18px;top:14px;padding:4px;border:0;background:none;color:#22262b;cursor:pointer}
.pl-x:hover{color:var(--accent-hover)}
.pl-search{position:relative;display:block;margin:0 40px 26px 0}
.pl-search input{width:100%;height:50px;padding:0 50px 0 20px;border:0;border-radius:8px;background:#fafafa;font:inherit;font-size:1rem;
                 box-shadow:0 1px 6px rgba(32,33,36,.28);outline:none}
.pl-search input:focus{background:#fff;box-shadow:0 1px 8px rgba(32,33,36,.42)}
.pl-search svg{position:absolute;right:18px;top:50%;transform:translateY(-50%);color:#8a8a8a}
.pl-grid{overflow-y:auto;columns:4 220px;column-gap:34px;padding:2px 2px 6px}
.pl-item{display:flex;align-items:center;gap:14px;padding:8px 0;border-bottom:1px solid #eceef0;break-inside:avoid;cursor:pointer;
         font-size:1.08rem;color:#2b2f36}
.pl-item[hidden]{display:none}
.pl-item input{position:absolute;opacity:0;pointer-events:none}
.pl-tick{flex:0 0 auto;width:26px;height:26px;border:1px solid #d3d6da;border-radius:4px;background:#fff;position:relative;transition:border-color .12s,background .12s}
.pl-item input:checked + .pl-tick{border-color:var(--brand);background:var(--brand)}
.pl-item input:checked + .pl-tick::after{content:"";position:absolute;left:8px;top:3px;width:7px;height:13px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.pl-item input:focus-visible + .pl-tick{outline:2px solid var(--brand);outline-offset:2px}
.pl-item:hover:not(.off) .pl-name{color:var(--accent-hover)}
.pl-item input:checked ~ .pl-name{color:var(--brand);font-weight:600}
.pl-item.off{cursor:default;color:#a7abb1}
.pl-item.off .pl-tick{background:#f4f5f6;border-color:#e3e5e8}
.pl-foot{display:flex;justify-content:flex-end;padding-top:16px}
.pl-foot .btn{min-width:140px}
@media(max-width:1100px){ .res-row{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:600px){
  .pl-box{padding:40px 16px 14px;max-height:94vh}
  .pl-search{margin-right:30px}
  .pl-grid{columns:1}
}

/* ═══ v240 (Alex): ONE roll per scroll (.sc-one, homepage). Closed = a single fat roll with the PT seal + twine (the sheet
   hides behind it); a click: the seal + twine fade away, the roll travels down unrolling the sheet, getting thinner, and
   is gone at the end: open = just a flat sheet, no rolls. Closing rolls it back up. Old front page: backups/v239-frontpage/ ═══ */
.sc-one{--gap:0px}
.sc-one.sc-home{--rbase:58px}
.sc-one .sc-roll-top{display:none}
.sc-one .sc-paper{margin:0 0 calc(var(--roll) * -1);height:var(--roll);
                  transition:height .75s cubic-bezier(.45,.05,.25,1),margin-bottom .75s cubic-bezier(.45,.05,.25,1)}
.sc-one.open .sc-paper{margin-bottom:0}
.sc-one .sc-roll-bottom{transition:height .75s cubic-bezier(.45,.05,.25,1),opacity .25s ease .55s}
.sc-one.open .sc-roll-bottom{height:0;opacity:0;pointer-events:none}
.sc-one .sc-roll-bottom .sc-coil{transition:transform .75s cubic-bezier(.45,.05,.25,1)}
.sc-one.open .sc-coil{transform:none}
.sc-one:not(.open) .sc-roll-bottom{transition:height .75s cubic-bezier(.45,.05,.25,1),opacity .15s ease}
.sc-one .sc-paper::after{background:none}
.sc-one .sc-inner{padding-top:16px;padding-bottom:16px}
.sc-one .sc-seal{--seal:calc(var(--roll) * .9);top:calc(var(--roll) / 2)}
.sc-one .sc-twine{top:40%;height:calc(var(--roll) * 1.05)}
/* the roll stays thick while it travels and only thins out + fades at the very end of the unroll */
.sc-one .sc-roll-bottom{transition:height .75s cubic-bezier(.8,0,.9,.4),opacity .2s ease .62s}
.sc-one:not(.open) .sc-roll-bottom{transition:height .75s cubic-bezier(.1,.6,.2,1),opacity .12s ease}
/* v241 (Alex): the roll SHRINKS steadily as the sheet comes off it, like real paper (no fade); it reaches 0 exactly when the
   sheet is fully out; closing grows it back. The open sheet shows a "roll up" cursor on its empty paper. */
.sc-one .sc-roll-bottom,.sc-one:not(.open) .sc-roll-bottom{transition:height .75s cubic-bezier(.45,.05,.25,1),opacity 0s linear 0s}
.sc-one.open .sc-roll-bottom{opacity:1}
.sc-one.open .sc-paper{cursor:n-resize}
.sc-one.open .sc-link{cursor:pointer}

/* ═══ v242 (Alex): ONE roll ON TOP (.sc-top, homepage): closed = the roll with the PT seal + twine; a click: seal + twine
   fade, the roll turns and the sheet hangs down out from under it (the roll stays on top); a click on the empty paper /
   outside rolls it back up. (v240-v241 one-roll-that-travels = .sc-one, unused now) ═══ */
.sc-top{--gap:0px}
.sc-top.sc-home{--rbase:58px}
.sc-top .sc-roll-bottom{display:none}
.sc-top .sc-paper{height:calc(var(--roll) / 2);margin:calc(var(--roll) / -2) 0 0}
.sc-top .sc-paper::after{background:linear-gradient(180deg,rgba(30,32,36,.12),transparent 18px)}
.sc-top .sc-inner{padding-top:calc(var(--roll) / 2 + 14px);padding-bottom:18px}
.sc-top .sc-seal{--seal:calc(var(--roll) * .9);top:calc(var(--roll) / 2)}
.sc-top .sc-twine{top:40%;height:calc(var(--roll) * 1.05)}
.sc-top.open .sc-coil{transform:none}
.sc-top.open .sc-paper{cursor:n-resize}
.sc-top.open .sc-link{cursor:pointer}

/* ═══ v243 (Alex) ═══
   1) texture moves UP while the sheet unrolls, DOWN while it rolls back up (.closing from scroll.js; 5 layers = v228's)
   2) smoother on slow PCs: the scroll's shadow was a drop-shadow FILTER on the whole scroll, repainted (blurred) on every
      frame of the unroll. Now the roll and the sheet carry cheap box-shadows; the filter is only used for the hover glow
   3) category names Cambria (Caladea = free, metric-compatible fallback) with a big Vivaldi first letter (Pinyon Script
      fallback); the sections inside the scrolls Cambria too. Vivaldi / Cambria are Microsoft fonts: used when installed. */
@keyframes scUp{from{background-position:0 0,50px 30px,0 0,130px 70px,40px 10px}
                to{background-position:0 -240px,50px -130px,0 -1200px,130px -390px,40px -250px}}
@keyframes scDown{from{background-position:0 0,50px 30px,0 0,130px 70px,40px 10px}
                  to{background-position:0 240px,50px 190px,0 1200px,130px 530px,40px 270px}}
.sc.moving .sc-roll-top .sc-coil::before{animation:scUp .65s cubic-bezier(.45,.05,.25,1)}
.sc.moving.closing .sc-roll-top .sc-coil::before{animation:scDown .65s cubic-bezier(.45,.05,.25,1)}
.sc,.sc:not(.open):not(.moving):not(.unsealed):hover{filter:none}
.sc .sc-roll-top{border-radius:10px / 50%;box-shadow:0 6px 12px -3px rgba(40,42,46,.3)}
.sc-top .sc-paper{box-shadow:0 8px 16px -6px rgba(40,42,46,.34)}
.sc-top .sc-paper,.sc-top .sc-roll-top{will-change:height,transform}
@media(hover:hover){
  .sc:not(.open):not(.moving):not(.unsealed):hover,
  .home-scrolls .home-cat-block:has(.home-cat-header:hover) .sc:not(.open):not(.moving):not(.unsealed){filter:drop-shadow(0 0 9px rgba(0,173,101,.6))}
}
.home-scrolls .home-cat-name{font-family:Cambria,Caladea,Georgia,serif}
.home-scrolls .home-cat-name::first-letter{font-family:Vivaldi,'Pinyon Script',cursive;font-size:1.75em;font-weight:400;line-height:1;color:inherit}
.sc-list,.sc-link{font-family:Cambria,Caladea,Georgia,serif}
.sc-top .sc-paper{height:calc(var(--roll) / 2 - 4px)}
.sc-top:not(.open):not(.moving) .sc-paper{box-shadow:none}

/* ═══ v244 (Alex) ═══
   fancy first letter = Great Vibes (free, Latin + Latvian + Cyrillic, close to Vivaldi), the same on every computer; bigger,
   with a small gap before the rest of the word. Scroll fixes: no repeating texture tiles inside the roll (only the grain +
   one 1200px cloud layer, bigger than any roll, so no tile edges = the rectangular patches), and no wobbly-edge mask on the
   top roll (its see-through edge let the sheet show as a light line). */
.home-scrolls .home-cat-name::first-letter{font-family:'Great Vibes',cursive;font-size:2.4em;font-weight:400;line-height:.8;
                                           margin-right:.14em;letter-spacing:0;text-transform:none}
.sc-top .sc-coil{-webkit-mask:none;mask:none}
.sc-top .sc-coil::before{background:var(--grain),var(--clouds);background-size:240px 240px,1200px 1200px;background-position:0 0,0 0}
.sc-top .sc-paper::before{background:var(--grain),var(--clouds),radial-gradient(ellipse 80% 65% at 50% 45%,#fffffd 0%,#fbfaf6 55%,#f5f3ed 85%,#ece9e1 100%);
                          background-size:240px 240px,1200px 1200px,100% 100%;background-position:0 0,0 0,0 0}
@keyframes scUp2{from{background-position:0 0,0 0}to{background-position:0 -240px,0 -1200px}}
@keyframes scDown2{from{background-position:0 0,0 0}to{background-position:0 240px,0 1200px}}
.sc-top.moving .sc-roll-top .sc-coil::before{animation:scUp2 .65s cubic-bezier(.45,.05,.25,1)}
.sc-top.moving.closing .sc-roll-top .sc-coil::before{animation:scDown2 .65s cubic-bezier(.45,.05,.25,1)}

/* ═══ v245 (Alex: "too clean, it's papyrus after all"; the open sheet's side shadow should be on the RIGHT) ═══
   roughness back without tile edges: the coarse grain (--grain2) + paper fibres (--fibre) + the clouds, the fibre / cloud
   layers drawn at 1200px (wider than any roll, so their tiles never show an edge); the sheet's edge shading + drop shadow
   now fall to the right instead of the left */
.sc-top .sc-coil::before{background:var(--grain2),var(--fibre),var(--clouds);background-size:240px 240px,1200px 1200px,1200px 1200px;
                          background-position:0 0,0 0,0 0;opacity:.95}
.sc-top .sc-paper::before{background:var(--grain2),var(--fibre),var(--clouds),
                            radial-gradient(ellipse 80% 65% at 50% 45%,#fffffd 0%,#fbfaf6 55%,#f5f3ed 85%,#ece9e1 100%);
                          background-size:240px 240px,1200px 1200px,1200px 1200px,100% 100%;background-position:0 0,0 0,0 0,0 0;
                          box-shadow:inset -14px 0 18px -10px rgba(40,42,46,.2)}
.sc-top .sc-paper{box-shadow:7px 8px 16px -6px rgba(40,42,46,.34)}
@keyframes scUp3{from{background-position:0 0,0 0,0 0}to{background-position:0 -240px,0 -1200px,0 -1200px}}
@keyframes scDown3{from{background-position:0 0,0 0,0 0}to{background-position:0 240px,0 1200px,0 1200px}}
.sc-top.moving .sc-roll-top .sc-coil::before{animation:scUp3 .65s cubic-bezier(.45,.05,.25,1)}
.sc-top.moving.closing .sc-roll-top .sc-coil::before{animation:scDown3 .65s cubic-bezier(.45,.05,.25,1)}
/* no fibre stripes (they read as birch again): grain + two big offset cloud layers for papyrus-like mottling */
.sc-top .sc-coil::before{background:var(--grain2),var(--clouds),var(--clouds);background-size:240px 240px,1200px 1200px,900px 900px;
                          background-position:0 0,0 0,310px 170px}
.sc-top .sc-paper::before{background:var(--grain2),var(--clouds),var(--clouds),
                            radial-gradient(ellipse 80% 65% at 50% 45%,#fffffd 0%,#fbfaf6 55%,#f5f3ed 85%,#ece9e1 100%);
                          background-size:240px 240px,1200px 1200px,900px 900px,100% 100%;background-position:0 0,0 0,310px 170px,0 0}
@keyframes scUp3{from{background-position:0 0,0 0,310px 170px}to{background-position:0 -240px,0 -1200px,310px -730px}}
@keyframes scDown3{from{background-position:0 0,0 0,310px 170px}to{background-position:0 240px,0 1200px,310px 1070px}}
/* the second cloud layer starts OUTSIDE the element (negative offset, 1500px tile), so no tile edge lands on the paper */
.sc-top .sc-coil::before{background-size:240px 240px,1200px 1200px,1500px 1500px;background-position:0 0,0 0,-310px -170px}
.sc-top .sc-paper::before{background-size:240px 240px,1200px 1200px,1500px 1500px,100% 100%;background-position:0 0,0 0,-310px -170px,0 0}
@keyframes scUp3{from{background-position:0 0,0 0,-310px -170px}to{background-position:0 -240px,0 -1200px,-310px -1670px}}
@keyframes scDown3{from{background-position:0 0,0 0,-310px -170px}to{background-position:0 240px,0 1200px,-310px 1330px}}

/* ═══ v246 (Alex): v245's right-side shadow undone; crumpled paper (--crumple: an SVG relief, folds lit from the top left,
   multiplied over the paper) + the blotches, and a white wash on the LEFT of the open sheet so the text starts on clean
   paper (the darker mottling sits to the right). Big 1000px tiles starting just outside the element = no tile edges. ═══ */
.sc{--crumple:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.012 0.018' numOctaves='4' seed='17' stitchTiles='stitch' result='n'/%3E%3CfeDiffuseLighting in='n' surfaceScale='2.2' lighting-color='%23ffffff' result='l'%3E%3CfeDistantLight azimuth='225' elevation='58'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix in='l' values='0.33 0.33 0.33 0 0.04 0.33 0.33 0.33 0 0.035 0.33 0.33 0.33 0 0.02 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E")}
.sc-top .sc-paper{box-shadow:0 8px 16px -6px rgba(40,42,46,.34)}
.sc-top .sc-paper::before{
    background:linear-gradient(90deg,rgba(255,255,253,.85) 0%,rgba(255,255,253,.55) 30%,rgba(255,255,253,0) 62%),
               var(--grain2),var(--clouds),var(--clouds),var(--crumple),
               radial-gradient(ellipse 80% 65% at 50% 45%,#fffffd 0%,#fbfaf6 55%,#f5f3ed 85%,#ece9e1 100%);
    background-size:100% 100%,240px 240px,1200px 1200px,1500px 1500px,1000px 1000px,100% 100%;
    background-position:0 0,0 0,0 0,-310px -170px,-40px -30px,0 0;
    background-blend-mode:normal,normal,normal,normal,multiply,normal;
    box-shadow:inset 10px 0 14px -10px rgba(40,42,46,.14),inset -10px 0 14px -10px rgba(40,42,46,.14)}
.sc-top .sc-coil::before{background:var(--grain2),var(--clouds),var(--clouds),var(--crumple);
    background-size:240px 240px,1200px 1200px,1500px 1500px,1000px 1000px;background-position:0 0,0 0,-310px -170px,-40px -30px;
    background-blend-mode:normal,normal,normal,multiply}
@keyframes scUp3{from{background-position:0 0,0 0,-310px -170px,-40px -30px}to{background-position:0 -240px,0 -1200px,-310px -1670px,-40px -1030px}}
@keyframes scDown3{from{background-position:0 0,0 0,-310px -170px,-40px -30px}to{background-position:0 240px,0 1200px,-310px 1330px,-40px 970px}}

/* ═══ v247 (Alex): the sheet is as wide as the roll (--pw 0); lightly torn sides back (one gentle mask for every variant);
   the sheet's shadow follows the torn shape (drop-shadow filter on the sheet instead of a box-shadow around its
   rectangle, which left a gap next to the masked paper) ═══ */
.sc-top{--pw:0px}
.sc-top .sc-paper{box-shadow:none;filter:drop-shadow(0 6px 8px rgba(40,42,46,.26))}
.sc-top .sc-paper::before{--edge2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='400' viewBox='0 0 560 400' preserveAspectRatio='none'%3E%3Cfilter id='r' filterUnits='userSpaceOnUse' x='0' y='0' width='560' height='400'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0 0 1'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='4' y='-20' width='552' height='440' fill='black' filter='url(%23r)'/%3E%3C/svg%3E");
    -webkit-mask:var(--edge2) 0 0 / 100% 400px repeat-y;mask:var(--edge2) 0 0 / 100% 400px repeat-y}

/* ═══ v248 (Alex's mockup): roll 3x thinner (58 -> 20px); the PT seal hangs on the RIGHT under the roll with the twine looped
   up over it (twine SVG flipped above the wax); the roll's texture travels half as far while turning (= slower spin) ═══ */
.sc-top.sc-home{--rbase:20px;margin-bottom:30px}
.sc-top .sc-seal{--seal:42px;left:auto;right:calc(13% - 21px);top:calc(var(--roll) * .35);margin:0;pointer-events:auto;cursor:pointer}
.sc-top .sc-twine{top:auto;bottom:62%;left:22%;width:56%;height:calc(var(--roll) + 18px);transform:scaleY(-1)}
.sc-top .sc-paper::before{background-position:0 0,0 0,0 0,-310px -170px,-40px -30px,0 0}
@keyframes scUp3{from{background-position:0 0,0 0,-310px -170px,-40px -30px}to{background-position:0 -120px,0 -600px,-310px -920px,-40px -530px}}
@keyframes scDown3{from{background-position:0 0,0 0,-310px -170px,-40px -30px}to{background-position:0 120px,0 600px,-310px 580px,-40px 470px}}

/* ═══ v249 (Alex's mockup): the PT seal hangs on the LEFT, half under the roll; twine = a loop around the roll above the
   wax (.sc-loop) + two short frayed ends hanging below it (.sc-ends); the old 2-strand twine is hidden here ═══ */
.sc-loop,.sc-ends{display:none}
.sc-top .sc-twine{display:none}
.sc-top .sc-seal{left:4%;right:auto;top:calc(var(--roll) * .55)}
.sc-top .sc-loop,.sc-top .sc-ends{display:block;position:absolute;z-index:-1;overflow:visible;pointer-events:none}
.sc-top .sc-loop{left:18%;width:64%;bottom:72%;height:calc(var(--roll) + 16px)}
.sc-top .sc-ends{left:22%;width:56%;top:84%;height:22px}
.sc-loop .tw,.sc-ends .tw{stroke-width:2.4}
.sc-loop path,.sc-ends path{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke}
.sc-loop .tw,.sc-ends .tw{stroke:#9a6b4a;stroke-width:2.2}
.sc-loop .tw-x,.sc-ends .tw-x{stroke:#d7b090;stroke-width:1;stroke-dasharray:1.6 2.4}
.sc-ends .tw-f{stroke:#9a6b4a;stroke-width:.9}
.sc-top .sc-ends{height:26px}

/* ═══ v250 (Alex): homepage = category names with a round dropdown button (no papyrus). The list is absolute under the name;
   the script slides only the blocks below it (any row layout). Names keep the v243-v244 look (Cambria + Great Vibes initial) ═══ */
.home-drop.home-cat-grid{row-gap:1.6rem;transition:margin-bottom .3s ease}
.home-drop .home-cat-block{position:relative;transition:transform .3s cubic-bezier(.3,.7,.3,1)}
.home-drop .hd-head{display:flex;align-items:center;gap:8px}
.home-drop .home-cat-header{border-bottom:0;padding:0;margin:0}
.home-drop .home-cat-name{font-family:Cambria,Caladea,Georgia,serif;color:#1d4a6b}
.home-drop .home-cat-name::first-letter{font-family:'Great Vibes',cursive;font-size:2.4em;font-weight:400;line-height:.8;margin-right:.14em;text-transform:none}
.hd-btn{flex:0 0 auto;width:24px;height:24px;display:grid;place-items:center;margin-top:6px;padding:0;border:0;border-radius:50%;
        background:#f1f2f4;color:#5d636a;cursor:pointer;box-shadow:0 1px 3px rgba(31,35,40,.15);transition:background .15s,color .15s,transform .3s}
.hd-btn:hover{background:#eefaf4;color:var(--accent-hover)}
.home-cat-block.open .hd-btn{transform:rotate(180deg);background:#eefaf4;color:var(--brand)}
.hd-list{position:absolute;left:0;right:0;top:100%;z-index:5;height:0;overflow:hidden;transition:height .3s cubic-bezier(.3,.7,.3,1)}
.hd-ul{margin:0;padding:8px 0 4px;list-style:none}
.hd-link{display:block;margin:0 -6px;padding:3px 6px;color:#22262b;font-family:Cambria,Caladea,Georgia,serif;font-size:1.12rem;line-height:1.35;text-decoration:none}
@media(hover:hover){ .hd-link:hover{background:#eefaf4;color:var(--accent-hover);-webkit-text-stroke:.4px currentColor} }
.hd-link.eco{color:var(--brand);font-weight:700}
.hd-link .ph{display:inline}
@media(min-width:1101px){ .home-drop.home-cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
.home-drop .home-cat-block{padding-left:10px;padding-right:10px}
.home-drop .hd-list{left:10px;right:10px}
.home-drop .hd-link{font-size:1.25rem}

/* ═══ v251 (Alex): names stay #1d4a6b on hover; the hover grow scales name + button together (no overlap); the open section
   list sits in a 1px deep-blue box; the grid's box grows with what's pushed down (padding-bottom from the script) ═══ */
.home-drop .home-cat-name,.home-drop .home-cat-header:hover .home-cat-name{color:#1d4a6b !important;transform:none !important}
.home-drop .hd-head{transform-origin:left center;transition:transform .18s ease}
@media(hover:hover){ .home-drop .hd-head:has(.home-cat-header:hover){transform:scale(1.06)} }
.home-drop.home-cat-grid{transition:padding-bottom .3s ease}
.home-drop .hd-ul{margin-top:8px;padding:8px 14px 10px;border:1px solid #1d4a6b;background:#fff}
/* v252 testing mode (HOME_DROP_ALL_OPEN in app.py or ?open=1): every list open in the normal flow, no buttons */
.hd-all .hd-btn{display:none}
.hd-all .hd-list{position:static;height:auto;overflow:visible}

/* ═══ v253 (Alex): the open lists have no box; the big frame around all categories gets the search bar's shadow; "Ещё N" in
   the lists = green text button that opens the rest in place ═══ */
.home-drop .hd-ul{border:0;background:none;padding:6px 0 0;margin-top:2px}
.home-drop.home-cat-grid{box-shadow:0 1px 6px rgba(32,33,36,.28);border-color:transparent}
.hd-link.home-sub-more{width:calc(100% + 12px);text-align:left;border:0;background:none;cursor:pointer;color:var(--brand);font-weight:700}
.hd-link.home-sub-more:hover{color:var(--accent-hover)}
/* v254 (Alex: re-centre): the 3 columns are as wide as their content and the free space is shared evenly around them, so
   the block of categories sits centred in the frame instead of hugging the left */
/* v255: v254 undone; the categories are nudged a little to the right inside the frame (optical centring) */
@media(min-width:1101px){ .home-drop.home-cat-grid{padding-left:calc(8px + 2.5rem)} }
/* v256 (Alex): the frame's top line higher (text stays put); open lists = 3 independent columns (round robin, like the
   v219 scrolls), so "Ещё N" only pushes down its own column */
.home-drop.home-cat-grid{margin-top:-14px;padding-top:calc(8px + 14px)}
@media(min-width:1101px){
  .home-drop.hd-all.home-cat-grid{display:flex;align-items:flex-start;column-gap:2rem}
  .home-drop.hd-all .hs-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;row-gap:1.6rem}
}
/* v257 (Alex): a user's own portrait (Профиль) in the header button and the Личный кабинет sidebar, the letter otherwise */
.nav-avatar.has-pic,.acc-avatar.has-pic{padding:0;overflow:hidden;background:#eef0f2}
.nav-avatar.has-pic img,.acc-avatar.has-pic img{width:100%;height:100%;object-fit:cover;display:block}
/* v258 fix: Мои объявления photos vanished: the global img{max-width:100%} let the table squeeze the photo column to ~0 */
.ml-td-img{min-width:96px}
.ml-td-img img{max-width:none;flex:none}

/* ═══ v259 (Alex) ═══ no gap after a fancy P / Р (its tail already reaches the next letter); the category frame sits as far
   under the carousel as the carousel sits under the header (14px); a 1px beige line on top of the header on every page;
   the header's top-bar text in Cambria (Caladea fallback, loaded in base.html) */
.home-drop .home-cat-name.tight::first-letter{margin-right:-.06em}
.hc-section + .section .home-drop.home-cat-grid{margin-top:-31px}
.site-header{border-top:1px solid #e6dcc6}
/* v260 (Alex): top-bar font back to Roboto (v259 undone); no gap at all between the fancy initial and the rest of a homepage
   name; the carousel names get the same look: Cambria with a Great Vibes initial a little bigger than the text */
.home-drop .home-cat-name::first-letter{margin-right:-.06em}
.hc-section .hc-name{font-family:Cambria,Caladea,Georgia,serif}
.hc-section .hc-name::first-letter{font-family:'Great Vibes',cursive;font-size:1.5em;font-weight:400;line-height:.8;margin-right:-.04em}
/* v261 (Alex): the carousel shows 3 categories at a time (tablet + desktop), bigger names, always on one line */
@media(min-width:701px){
  .hc{--per:3}
  .hc-section .hc-name{font-size:clamp(1.2rem, 1.6vw, 1.6rem);white-space:nowrap;overflow:visible;line-height:1.1}
  .hc-section .hc-card{gap:16px}
}
@media(min-width:701px) and (max-width:1100px){ .hc-section .hc-name{font-size:1.15rem} }
/* v262 (Alex): a little gap after every fancy initial again, except P / Р (their tail already reaches the next letter) */
.home-drop .home-cat-name::first-letter{margin-right:.05em}
.hc-section .hc-name::first-letter{margin-right:.05em}
.home-drop .home-cat-name.tight::first-letter,.hc-section .hc-name.tight::first-letter{margin-right:-.06em}
/* v263 (Alex): tiles turn barely mint on hover instead of darker grey */
.kf-tile:hover{background:#eefaf4}
/* v264: 4 columns: names smaller + one line so they fit */
@media(min-width:1101px){ .home-drop.hd-all .home-cat-name{font-size:clamp(.85rem, .95vw, 1.05rem);white-space:nowrap} .home-drop.hd-all .hd-link{font-size:1.1rem} }

/* ═══ v267 (Alex) ═══ table columns further apart; car "quick info" under the photo (mobile.de style);
   Характеристики: closer rows, bigger text, striped (white / barely mint) */
.st td.st-c,.st th.st-h{padding-left:22px;padding-right:22px}
.ld-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 28px;margin:16px 0 24px;padding:22px 24px;
          background:#fff;border:1px solid #e3e6e9;border-radius:12px;box-shadow:0 1px 4px rgba(32,33,36,.08)}
.ldq{display:flex;align-items:flex-start;gap:14px;min-width:0}
/* v270 (Alex): the quick-info line icons use the site's dark blue */
.ldq-ico{flex:0 0 auto;width:34px;height:34px;color:var(--deep);stroke-width:1.8}
.ldq-l{font-size:.92rem;line-height:1.3;color:#6b7178}
.ldq-v{font-size:1.14rem;font-weight:700;line-height:1.3;margin-top:2px;color:#22262b;overflow-wrap:anywhere}
@media(max-width:600px){ .ld-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;padding:18px 16px}
    .ldq{gap:10px} .ldq-ico{width:28px;height:28px} }
.ld-specs{column-gap:0;border-radius:6px;overflow:hidden}
.ld-specs dt,.ld-specs dd{padding:9px 14px;font-size:1.08rem;border-bottom:0}
.ld-specs dt{color:#22262b;font-weight:700}
.ld-specs dt:nth-of-type(even),.ld-specs dd:nth-of-type(even){background:#f3faf6}
/* v268 fixes (Alex): the quick-info box is as wide as the photo (and starts under it, past the thumbnails);
   Характеристики only as wide as the photo too */
.ld-quick{max-width:720px}
.ld-gallery.has-thumbs ~ .ld-quick{margin-left:170px}
.ld-specs{max-width:720px}
@media(max-width:768px){ .ld-gallery.has-thumbs ~ .ld-quick{margin-left:0} }
/* v269 (Alex): result-list preview photos back to the original 92x69 (84x63 on phones) — only the opened ad's
   side thumbnails grow. Комплектация now has its own block; the striped table stays pure car/listing info. */
.ld-feats{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.ld-feats li{padding:7px 13px;border:1px solid #e3e5e8;border-radius:8px;background:#f7f8f7;font-size:.95rem;color:#22262b}

/* ═══ v271 (Alex): Недвижимость landing tiles = Транспорт tiles, 4 per row, between the title and the search box ═══ */
.re-tiles4{grid-template-columns:repeat(4,minmax(0,1fr))}
.re-tiles4 + .re-tiles4{margin-top:12px}
.res-title + .re-tiles4{margin-top:4px}
.re-tiles4:has(+ .res-box){margin-bottom:26px}
.re-tiles4 .re-tile-ph .re-type-ico{width:84px;height:84px;stroke-width:1.2;color:inherit}
@media(max-width:860px){ .re-tiles4{grid-template-columns:repeat(2,minmax(0,1fr))} .re-tiles4 .re-tile-ph .re-type-ico{width:54px;height:54px} }
.re-page .container > .re-tiles4:last-of-type{margin-bottom:34px}

/* ═══ v273 (Alex): /post, edit and Личный кабинет text ~15% bigger, px sizes -> rem so they scale with the window like
   the rest of the site (html font-size is fluid from 861px). Scoped to .pf-page / .acc-page only. ═══ */
.pf-page .page-title,.acc-page .page-title{font-size:1.85rem}
.pf-page .form-group label,.acc-page .form-group label{font-size:.97rem}
.pf-page .form-group input,.pf-page .form-group select,.acc-page .form-group input,.acc-page .form-group select{height:2.9rem;padding:0 .85rem;font-size:1.05rem}
.pf-page .form-group select,.acc-page .form-group select{padding-right:2.4rem}
.pf-page .form-group textarea,.acc-page .form-group textarea{padding:.7rem .85rem;font-size:1.05rem}
.pf-page .form-row,.acc-page .form-row{gap:.9rem}
.pf-layout{grid-template-columns:minmax(0,50rem) 1fr;gap:1.75rem}
.pf-form{gap:1.1rem}
.pf-card{padding:1.45rem 1.6rem .7rem}
.pf-card-title{font-size:1.3rem;margin-bottom:1.05rem}
.pf-hint{font-size:.96rem}
.pf-tab{font-size:.98rem;padding:.55rem 1.15rem}
.pf-desc{font-size:1.05rem;padding:.8rem .9rem}
.pf-tips{padding:1.3rem 1.4rem}
.pf-tips h3{font-size:1.15rem}
.pf-tips li{font-size:1rem;padding-left:1.45rem}
.pf-free{font-size:.98rem}
.pf-field-hint{font-size:.92rem}
.pf-error{font-size:.98rem}
.pf-page .spec-check{font-size:1.03rem}
.pf-page .spec-check-inline{font-size:.96rem}
.pf-page .spec-features-title{font-size:.98rem}
.pf-page .ph-hint{font-size:.96rem;max-width:40rem}
.pf-page .ph-error{font-size:1rem}
.pf-page .btn-lg,.acc-page .btn-lg{font-size:1.06rem}
.pf-page .loc-search,.pf-page .loc-find{font-size:1.02rem}

.acc-layout{grid-template-columns:17rem minmax(0,1fr);gap:1.75rem}
.acc-side{padding:1rem}
.acc-avatar{width:3.1rem;height:3.1rem;font-size:1.4rem}
.acc-user-name{font-size:1.08rem}
.acc-user-since{font-size:.88rem}
.acc-nav a{font-size:1.06rem;padding:.65rem .8rem}
.acc-nav a em{font-size:.9rem}
.acc-free{font-size:.93rem}
.acc-logout{font-size:.98rem}
.acc-card{padding:.4rem 1.3rem 1.3rem}
.acc-form{padding:1.4rem 1.5rem 1.5rem}
.acc-tabs a{font-size:1.08rem}
.acc-head-link{font-size:1.05rem}
.acc-page .ml-table{font-size:1.04rem}
.acc-page .ml-table th{font-size:.93rem}
.acc-page .ml-path{font-size:.88rem}
.acc-page .ml-place{font-size:.9rem}
.acc-page .ml-td-until{font-size:.98rem}
.acc-page .ml-td-until small{font-size:.86rem}
.acc-page .ml-act{font-size:.98rem}
.acc-page .ml-note{font-size:.94rem}
.acc-page .ml-sec{font-size:1.25rem}
.acc-page .ml-sec em{font-size:1rem}
.acc-page .ml-dd{min-width:15rem}
.acc-page .ml-dd-btn{font-size:1.02rem}
.acc-page .ml-dd-opt{font-size:1.02rem}
.acc-page .ml-filters select{font-size:1.02rem}
.acc-page .ml-title{font-size:1.08rem}
.acc-page .ml-price{font-size:1.12rem}
.acc-page .ml-meta,.acc-page .ml-sub{font-size:.92rem}
.acc-page .pr-req{font-size:.94rem}
.acc-page .pr-label{font-size:1rem}
.acc-page .pr-remove{font-size:.92rem}
.acc-page .pr-danger{font-size:.95rem}
.acc-page .spec-check{font-size:1.03rem}
@media(max-width:900px){ .pf-layout{grid-template-columns:1fr} .acc-layout{grid-template-columns:minmax(0,1fr);gap:1rem} .acc-side{padding:.75rem} }
@media(max-width:860px){ .pf-card{padding:1.1rem 1rem .5rem} .acc-card{padding:.3rem .8rem .8rem} }
/* v273: bigger action links = one per line, so the table fits and the titles get room */
@media(min-width:1401px){
    .acc-page .ml-td-acts{white-space:nowrap;text-align:left}
    .acc-page .ml-td-acts .ml-act,.acc-page .ml-td-acts form{display:block;margin:3px 0}
}
.acc-layout{grid-template-columns:18.5rem minmax(0,1fr)}
@media(max-width:900px){ .acc-layout{grid-template-columns:minmax(0,1fr)} }
/* v273: between 861 and 1400px the bigger table doesn't fit next to the sidebar: fold into cards like phones */
@media(min-width:861px) and (max-width:1400px){
    .ml-table thead{display:none}
    .ml-table,.ml-table tbody{display:block}
    .ml-tr{display:grid;grid-template-columns:84px minmax(0, 1fr);column-gap:12px;padding:10px 0;border-bottom:1px solid #eceef0}
    .ml-table td{display:block;padding:2px 0;border:0}
    .ml-td-img{grid-row:span 3}
    .ml-td-acts{grid-column:1 / -1;text-align:left;padding-top:8px !important;white-space:normal}
    .ml-act:first-child{margin-left:0}
    .ml-td-acts form:first-child .ml-act{margin-left:0}
}
/* v277 (Alex): photo-like realty tiles fill the whole tile width under the name; Новостройки bigger */
/* v278: whole picture, full width, bottom-aligned (no cover crop); their tops are transparent so they start under the name */
.re-tiles4 .kf-tile:is([data-k=dzivokli],[data-k=zeme],[data-k=komercipasumi],[data-k=garazas]) .kf-tile-img{left:0;right:0;bottom:0;width:100%;max-width:none;height:auto;max-height:none;object-fit:contain;transform-origin:center bottom}
.re-tiles4 .kf-tile:hover .kf-tile-img{transform:scale(1.04);transform-origin:center bottom}
.re-tiles4 .kf-tile[data-k=jaunie-projekti] .kf-tile-img{max-height:86%;max-width:80%}
/* v278: realty tiles a bit taller from 861px so the full-width pictures fit under the name; their top edge fades out softly */
@media(min-width:861px){ .re-tiles4 .kf-tile.kf-tile-big{height:14.5rem} }
.re-tiles4 .kf-tile:is([data-k=dzivokli],[data-k=zeme],[data-k=komercipasumi],[data-k=garazas]) .kf-tile-img{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%);mask-image:linear-gradient(to bottom,transparent 0,#000 16%)}
/* v279 (Alex): Новостройки picture bigger */
.re-tiles4 .kf-tile[data-k=jaunie-projekti] .kf-tile-img{max-height:98%;max-width:92%}
@media(max-width:860px){ .re-tiles4 .kf-tile[data-k=jaunie-projekti] .kf-tile-img{max-height:80%;max-width:80%} }
/* v280 (Alex): homepage category frame = barely mint outline instead of the grey shadow */
.home-drop.home-cat-grid{box-shadow:none;border:1px solid #bfe6d1}
/* v280: Новостройки is now a wide street picture (full width like Квартиры), Коммерческая the tall tower (sits right, under the name) */
.re-tiles4 .kf-tile[data-k=jaunie-projekti] .kf-tile-img{left:0;right:0;bottom:0;width:100%;max-width:none;height:auto;max-height:none;object-fit:contain;transform-origin:center bottom;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%);mask-image:linear-gradient(to bottom,transparent 0,#000 16%)}
.re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{left:auto;right:0;bottom:0;width:auto;height:auto;max-width:72%;max-height:76%;object-fit:contain;object-position:right bottom;-webkit-mask-image:none;mask-image:none}
@media(max-width:860px){ .re-tiles4 .kf-tile[data-k=jaunie-projekti] .kf-tile-img{max-height:none;max-width:none} .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{max-height:62%;max-width:70%} }
/* v281 (Alex): Коммерческая tower bigger */
.re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{max-width:88%;max-height:96%}
@media(max-width:860px){ .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{max-width:80%;max-height:74%} }
/* v282 (Alex): the frame keeps its glow, in mint green */
.home-drop.home-cat-grid{box-shadow:0 1px 6px rgba(0,173,101,.28)}
/* v283 (Alex): Коммерческая = new wide café picture: full tile width like Квартиры (undoes the v280/v281 tower placement) */
.re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{left:0;right:0;bottom:0;width:100%;max-width:none;height:auto;max-height:none;object-fit:contain;transform-origin:center bottom;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%);mask-image:linear-gradient(to bottom,transparent 0,#000 16%)}
@media(max-width:860px){ .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{max-width:none;max-height:none} }
/* v283: the café picture starts below the name (dark wall behind the text was unreadable) */
.re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{height:calc(100% - 3.1rem);object-fit:cover;object-position:center bottom;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 12%);mask-image:linear-gradient(to bottom,transparent 0,#000 12%)}
@media(max-width:860px){ .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{height:calc(100% - 4.4rem)} }
@media(max-width:1300px){ .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{height:calc(100% - 4.4rem)} }
/* v284 (Alex): café picture like Квартиры / Гаражи: whole picture (its own see-through top corner), full width, no fade */
.re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{height:auto;object-fit:contain;-webkit-mask-image:none;mask-image:none}
@media(max-width:1300px){ .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{height:auto} }
/* v284: keep the café picture's top edge under the name (one line wide screens, two lines up to 1300px / phones) */
.re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{height:calc(100% - 3rem);object-fit:cover;object-position:center bottom}
@media(max-width:1300px){ .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{height:calc(100% - 4.3rem)} }
/* v285 (Alex): new diagonal café cut-out: whole picture, bottom-right, as big as the tile allows (its empty top-left keeps the name clear) */
.re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{left:auto;right:0;bottom:0;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:right bottom;-webkit-mask-image:none;mask-image:none}
@media(max-width:1300px){ .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{height:auto} }
@media(max-width:860px){ .re-tiles4 .kf-tile[data-k=komercipasumi] .kf-tile-img{max-height:82%} }
/* v286 (Alex): realty header keeps the search bar next to the section menus */
.re-nav{flex:0 1 auto}
.re-nav + .nav-search{flex:1;min-width:12rem;margin-left:20px}
.re-nav{flex:0 0 auto}
.re-nav .re-nav-title{display:none}   /* the page title right under says Недвижимость; the search needs the room */
@media(max-width:1150px){ .re-nav{display:none} .re-nav + .nav-search{margin-left:0} }
/* v291: post form Объём dropdown + its "own value" box under it */
.spec-pick:not([hidden]) + input:not([hidden]){margin-top:8px}

/* ═══ v292 (Alex's mockup): ONE dark header bar. Категории | white logo block | 4 category links | search icon
   (opens the box over the links) | Подать объявление | account | ♥ | LV RU EN. The old white .nav bar is gone. ═══ */
.site-header{background:transparent;border-bottom:0;top:0}
@media(max-width:860px){ .site-header{top:0} }
.hb .hb-inner{height:3.6rem;gap:0}
.hb .topbar-cats{margin-right:1rem}
.hb-logo{position:relative;z-index:1;align-self:stretch;display:flex;align-items:center;background:#fff;color:var(--deep);
         font-size:2rem;padding:0 1.5rem;text-decoration:none}
.hb-logo:hover{color:var(--deep-hover, #2a5f86)}
.hb .hb-links{flex:1;justify-content:center;margin:0 1.5rem;gap:0 1.7rem}
.hb .hb-links a{font-size:.92rem}
.hb-search{display:none}
.hb-search.open{display:flex;flex:1;align-items:center;position:relative;margin:0 1.2rem 0 1.5rem}
.hb-inner:has(.hb-search.open) .hb-links{display:none}
.hb-search .nav-search-input{width:100%;height:2.4rem;padding:0 2.8rem 0 1rem;border:0;border-radius:8px;background:#fff;
                             font:inherit;font-size:.98rem;color:var(--text);box-shadow:none;outline:none}
.hb-search .nav-search-input:focus{box-shadow:0 0 0 2px rgba(0,173,101,.55)}
.hb-search-go{position:absolute;right:.35rem;top:50%;transform:translateY(-50%);display:flex;padding:.35rem;border:0;
              background:none;color:#5b6168;cursor:pointer}
.hb-search-go:hover{color:var(--accent-hover)}
.hb-search-btn{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;
               margin-right:1.4rem;padding:0;border:0;background:none;color:#fff;cursor:pointer;transition:color var(--transition)}
.hb-search-btn:hover{color:#c9f2de}
.hb-search-btn .hb-ico-close{display:none}
.hb-search-btn.open .hb-ico-search{display:none}
.hb-search-btn.open .hb-ico-close{display:block}
.hb .hb-post{position:relative;z-index:1;display:inline-flex;align-items:center;gap:.5rem;height:2.4rem;padding:0 1.3rem;
             border-radius:6px;background:var(--brand);color:#fff;font-weight:700;font-size:.95rem;white-space:nowrap;
             border:0;-webkit-text-stroke:0;text-decoration:none;transition:background var(--transition)}
.hb .hb-post:hover{background:var(--accent-hover)}
.hb .hb-post .btn-post-plus{font-size:1.25rem;line-height:1;font-weight:400}
.hb .topbar-right{position:relative;z-index:1;gap:1.5rem;margin-left:1.6rem}
.hb .nav-avatar{width:2.2rem;height:2.2rem;font-size:.95rem;border-color:rgba(255,255,255,.55)}
.hb-login{display:flex;align-items:center;gap:.45rem;color:#fff;font-size:.92rem;font-weight:700;white-space:nowrap;text-decoration:none}
.hb-login:hover{color:#c9f2de}
/* narrower desktops: the links go first, then the "Войти" word */
@media(max-width:1250px){ .hb .hb-links{visibility:hidden} .hb .hb-links a{display:none} }
@media(max-width:1000px){ .hb-login-txt{display:none} .hb .topbar-right{gap:1.1rem} }
/* phones: icons only; the search opens as a row under the bar */
@media(max-width:860px){
    .hb .hb-inner{height:3.3rem}
    .hb .topbar-cats{margin:0 .4rem 0 -6px;padding:7px 8px}
    .hb-cats-txt,.hb .btn-post-txt,.hb-login-txt{display:none}
    .hb-logo{font-size:1.3rem;padding:0 .7rem}
    .hb .hb-links{display:flex;visibility:hidden;margin:0;flex:1}
    .hb-search.open{position:absolute;left:0;right:0;top:100%;margin:0;padding:8px var(--gut, 16px);background:#474747;z-index:5}
    .hb-inner:has(.hb-search.open) .hb-links{display:flex}
    .hb-search-btn{margin-right:.4rem;width:2.3rem}
    .hb .hb-post{width:2.3rem;height:2.3rem;padding:0;justify-content:center}
    .hb .topbar-right{margin-left:.8rem;gap:.85rem}
    .hb .lang-switcher{gap:6px}
    .hb .lang-btn{font-size:.82rem}
}
@media(max-width:440px){ .hb .topbar-fav{display:none} .hb-logo{font-size:1.15rem;padding:0 .55rem} .hb .topbar-right{gap:.7rem} }   /* ♥ = Избранное in the account menu */
/* v293 (Alex): Недвижимость tile names like the homepage: deep blue Cambria + a Great Vibes initial (P / Р sit flush) */
.re-tiles4 .kf-tile-name{font-family:Cambria,Caladea,Georgia,serif;color:#1d4a6b;font-size:1.15rem}
.re-tiles4 .kf-tile-name::first-letter{font-family:'Great Vibes',cursive;font-size:2em;font-weight:400;line-height:.8;margin-right:.05em}
.re-tiles4 .kf-tile-name.tight::first-letter{margin-right:-.06em}
/* v294 (Alex): tile names a bit smaller; the page title gets the same Cambria + Great Vibes look */
.re-tiles4 .kf-tile-name{font-size:1.05rem}
.re-page .res-title{font-family:Cambria,Caladea,Georgia,serif;color:#1d4a6b}
.re-page .res-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.9em;font-weight:400;line-height:.8;margin-right:.05em}
.re-page .res-title.tight::first-letter{margin-right:-.06em}
.re-page .res-title{margin-top:.9rem;margin-bottom:.9rem}
.re-page .res-title{color:#1f1f1f}   /* v295 (Alex): title black, tile names stay blue */
/* v297 (Alex): the Транспорт + Запчасти picture tiles get the realty look: deep blue Cambria + Great Vibes initial */
.kf-tile-name.fancy{font-family:Cambria,Caladea,Georgia,serif;color:#1d4a6b;font-size:1.05rem}
.kf-tile-name.fancy::first-letter{font-family:'Great Vibes',cursive;font-size:2em;font-weight:400;line-height:.8;margin-right:.05em}
.kf-tile-name.fancy.tight::first-letter{margin-right:-.06em}
.kf-tile-small .kf-tile-name.fancy{font-size:.98rem}
/* v300 (Alex: Квартиры sat too low on his dad's 1280x720): the realty tiles keep the SAME shape on every desktop
   (the 1500px one, 336x232), so full-width pictures and names stay in the same place at any width / zoom */
@media(min-width:861px){ .re-tiles4 .kf-tile.kf-tile-big{height:auto;aspect-ratio:336/232} }

/* ═══ v301 (Alex's mockup): Квартиры filter panel = row 1 (9 boxes) + 4 rows of 6 behind "Больше фильтров" ═══ */
.sdp .re-row1{grid-template-columns:1.25fr 1.15fr 1.25fr 1.25fr .8fr .85fr .75fr 1.05fr .85fr !important}
.sdp .re-rowx{grid-template-columns:repeat(6, minmax(0, 1fr)) !important;margin-top:8px}
.sdp .re-rowx:not(:has(> :not(.cfp-hid))){display:none}
.sdp .re-row1 .cdd-district-box[hidden]{display:block !important;opacity:.45;pointer-events:none}
.sdp-street{display:flex;min-width:0}
.sdp-street input{width:100%;min-width:0;background:#fff;border:1px solid #e7e9ec;border-bottom-color:#c6c9ce;border-radius:1px;
                  padding:10px 11px;font:inherit;font-size:.9rem;color:var(--text);outline:none}
.sdp-street input:focus{border-bottom-color:var(--brand)}
@media(max-width:1199px){ .sdp .re-row1{grid-template-columns:repeat(5, minmax(0, 1fr)) !important} .sdp .re-rowx{grid-template-columns:repeat(4, minmax(0, 1fr)) !important} }
@media(max-width:860px){ .sdp .re-row1,.sdp .re-rowx{grid-template-columns:repeat(2, minmax(0, 1fr)) !important} }
.sdp .re-row1{align-items:start}
.sdp-street input{height:38px;padding-top:0;padding-bottom:0}
.sdp .re-row1 .cdd-loc .cdd-btn{height:38px}

/* ═══ v301 (Alex): map view list wider + the table view's facts (Комн. / м² / Этаж / Серия) and €/m² ═══ */
.mv{grid-template-columns:560px 1fr}
@media(max-width:1250px){ .mv{grid-template-columns:470px 1fr} }

.mv-thumb{flex-basis:150px;height:118px}
.mv-price small{display:block;font-size:.8rem;font-weight:400;color:#8a8f94;margin-top:1px}
.mv-facts{display:flex;flex-wrap:wrap;gap:4px 16px;margin:5px 0 3px}
.mv-fact{display:flex;flex-direction:column;line-height:1.2}
.mv-fact em{font-style:normal;font-size:.74rem;color:#8a8f94}
.mv-fact b{font-size:.9rem;font-weight:600;color:#22262b}


/* v302 (Alex's mockup colours): the Квартиры panel is mint, boxes white without the grey line */
.kf-panel.cfp.sdp:has(.re-row1){background:#e8f6ee}
.sdp:has(.re-row1) .cdd-btn,.sdp:has(.re-row1) .cfp-bool,.sdp:has(.re-row1) .sdp-street input{border-color:#fff;border-bottom-color:#fff}
.sdp:has(.re-row1) .cdd.open .cdd-btn,.sdp:has(.re-row1) .cdd-btn:hover,.sdp:has(.re-row1) .cfp-bool:hover,
.sdp:has(.re-row1) .sdp-street input:focus{border-bottom-color:var(--brand)}
.sdp:has(.re-row1) .kf-save{background:#fff}

/* ═══ v303 (Alex): long lists (Вся Латвия / Марка) open as one wide multi-column sheet as wide as the filter row,
   like the car brands, and every panel dropdown row is tighter ═══ */
.kf-panel .cdd-item{padding:6px 14px;line-height:1.3}
.kf-panel .cdd-check{padding:5px 12px;line-height:1.3}
@media(min-width:861px){
    .kf-hpanel .kf-row{position:relative}
    .kf-hpanel .cdd-city,.kf-hpanel #ddBrand{position:static}
    .kf-hpanel .cdd-city .cdd-pop,.kf-hpanel #ddBrand .cdd-pop{top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;
        max-height:none;overflow:visible;columns:5 150px;column-gap:0;padding:6px 0}
    .kf-hpanel .cdd-city .cdd-item,.kf-hpanel #ddBrand .cdd-item{break-inside:avoid}
    .kf-hpanel .cdd-city .cdd-find,.kf-hpanel #ddBrand .cdd-find{column-span:all}
}
/* map view card: the date sits in the bottom right corner instead of its own line */
.mv-card{position:relative}
.mv-card .mv-date{position:absolute;right:10px;bottom:8px;font-size:.8rem;color:#9aa0a6}
.mv-card .mv-body{padding-right:4.6rem}
/* v304 (Alex): the wide Вся Латвия sheet: no search box, bigger text, striped rows (white / barely mint) like the ad list */
@media(min-width:861px){
    .kf-hpanel .cdd-city .cdd-find{display:none}
    .kf-hpanel .cdd-city .cdd-pop{padding:0;--rh:2.2rem;
        background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2))}
    .kf-hpanel .cdd-city .cdd-item{height:var(--rh);line-height:var(--rh);padding:0 16px;font-size:.98rem;background:transparent}
    .kf-hpanel .cdd-city .cdd-item:hover{background:rgba(0,173,101,.1)}
    .kf-hpanel .cdd-city .cdd-item.sel{background:rgba(0,173,101,.14)}
}

/* ═══ v305 (Alex's mockup): greener Квартиры panel, darker green 1px outlines, white "Больше фильтров", black "Сбросить",
   fancy title, the place sheet taller (reaches "Смотреть на карте") with bigger text ═══ */
.kf-panel.cfp.sdp:has(.re-row1){background:#a8e9c0}
.sdp:has(.re-row1) .cdd-btn,.sdp:has(.re-row1) .cfp-bool,.sdp:has(.re-row1) .sdp-street input{border:1px solid #3aa86d}
.sdp:has(.re-row1) .cdd.open .cdd-btn,.sdp:has(.re-row1) .cdd-btn:hover,.sdp:has(.re-row1) .cfp-bool:hover,
.sdp:has(.re-row1) .sdp-street input:focus{border-color:#1e7a4a}
.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-btn{border-color:#7cc59c}
.sdp:has(.re-row1) .cfp-more,.sdp:has(.re-row1) .cfp-more .cdd-chev{color:#fff}
.sdp:has(.re-row1) .cfp-reset{color:#1a1a1a}
.sdp:has(.re-row1) .kf-save{border:1px solid #3aa86d}
main:has(.re-row1) .sd-cat-title{font-family:Cambria,Caladea,Georgia,serif;color:#1f1f1f}
main:has(.re-row1) .sd-cat-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
@media(min-width:861px){
    .kf-hpanel .cdd-city .cdd-pop{--rh:2.83rem}
    .kf-hpanel .cdd-city .cdd-item{font-size:1.1rem}
}
/* v306 (Alex): soft backgrounds so both read clearly; Сбросить a softer dark grey */
.sdp:has(.re-row1) .cfp-more,.sdp:has(.re-row1) .cfp-reset{padding:6px 12px;border-radius:6px;transition:background .15s}
.sdp:has(.re-row1) .cfp-more{background:rgba(0,105,55,.22)}
.sdp:has(.re-row1) .cfp-more:hover{background:rgba(0,105,55,.32)}
.sdp:has(.re-row1) .cfp-reset{background:rgba(255,255,255,.4);color:#3d4247}
.sdp:has(.re-row1) .cfp-reset:hover{background:rgba(255,255,255,.65)}
.sdp:has(.re-row1) .cfp-more,.sdp:has(.re-row1) .cfp-reset{border-radius:0}   /* v307 (Alex): square */
/* v308 (Alex): Район Риги opens as the same wide striped sheet; both sheets get white space at top + bottom */
@media(min-width:861px){
    .kf-hpanel .cdd-district{position:static}
    .kf-hpanel .cdd-district .cdd-pop{top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;
        overflow:visible;columns:5 150px;column-gap:0;--rh:2.6rem}
    .kf-hpanel .cdd-district .cdd-item{break-inside:avoid;height:var(--rh);line-height:var(--rh);padding:0 16px;
        font-size:1.05rem;background:transparent}
    .kf-hpanel .cdd-district .cdd-item:hover{background:rgba(0,173,101,.1)}
    .kf-hpanel .cdd-district .cdd-item.sel{background:rgba(0,173,101,.14)}
    .kf-hpanel .cdd-district .cdd-find{display:none}
    .kf-hpanel .cdd-city .cdd-pop,.kf-hpanel .cdd-district .cdd-pop{padding:18px 0 var(--rh);
        background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) content-box, #fff}
}
/* v309 (Alex: "a shadow under it"): the two wide place sheets have no drop shadow, just a 1px green outline like the boxes */
@media(min-width:861px){
    .kf-hpanel .cdd-city .cdd-pop,.kf-hpanel .cdd-district .cdd-pop{box-shadow:none;border:1px solid #3aa86d}
}
/* v310 (Alex): the unavailable Район box = plain light grey (no see-through green); Сбросить фильтры = just text */
.sdp .re-row1 .cdd-district-box[hidden]{opacity:1}
.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-btn{background:#eceef0;border-color:#d3d6da;color:#9a9ea4}
.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-val,.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-chev{color:#9a9ea4}
.sdp:has(.re-row1) .cfp-reset,.sdp:has(.re-row1) .cfp-reset:hover{background:none;padding:0}
.sdp:has(.re-row1) .cfp-reset:hover{color:#1a1a1a}

/* v311 (Alex): Квартиры panel: reset text softer, greyed Район box lighter; map strip above the view icons */
.sdp:has(.re-row1) .cfp-reset{color:#6b7178}
.sdp:has(.re-row1) .cfp-reset:hover{color:#3d4247}
.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-btn{background:#f4f5f7;border-color:#dfe2e6;color:#b3b7bd}
.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-val,.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-chev{color:#b3b7bd}
.sd-main > .kf-mapbox{margin-bottom:16px}
/* v311: table view: the view icons sit in the table's header row, where "Объявления" was (desktop) */
@media (min-width:861px){
    .sd-main:has(.st-h-ads) > .sd-toolbar{position:relative;top:5px;z-index:1;width:max-content;margin-bottom:-38px}
    .sd-main .st-h-ads{visibility:hidden}
}

/* v312 (Alex): Квартиры panel: greyed boxes greyer with a grey outline; Cambria in the whole panel (no fancy initial) */
.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-btn,
.sdp:has(.re-row1) .cdd-off .cdd-btn{background:#f8f9fa;border:1px solid #cdd1d6;color:#b8bcc2}
.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-val,.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-chev{color:#b8bcc2}
.sdp:has(.re-row1),.sdp:has(.re-row1) button,.sdp:has(.re-row1) input,.sdp:has(.re-row1) .cdd-item{font-family:Cambria,Caladea,Georgia,serif}

/* v314 (Alex: cut off on big screens): Квартиры row 1 boxes size to their text (picked values included), spare room shared out */
@media(min-width:1460px){
    .sdp .re-row1{grid-template-columns:repeat(9, auto) !important}
    .sdp .re-row1 > *{min-width:0}
    .sdp .re-row1 .cdd-val{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(min-width:1460px){
    .sdp .re-row1 .sdp-street,.sdp .re-row1 .sdp-street input{width:100%;min-width:0}
    .sdp .re-row1 > .cdd-wrap,.sdp .re-row1 > .cdd-loc,.sdp .re-row1 .cdd-city{min-width:8.5rem}
}
@media(min-width:1200px) and (max-width:1459px){ .sdp .re-row1{grid-template-columns:repeat(5, minmax(0, 1fr)) !important} }

/* v315 (Alex's mockup): Квартиры panel sage #d8e2ca, bigger text; greyed box keeps the green outline; results in Cambria, bigger prices, mint grid hover */
.kf-panel.cfp.sdp:has(.re-row1){background:#d8e2ca}
.sdp:has(.re-row1) .cdd-district-box[hidden] .cdd-btn,.sdp:has(.re-row1) .cdd-off .cdd-btn{background:#f7f8fa;border:1px solid #3aa86d}
.sdp:has(.re-row1) .cdd-val,.sdp:has(.re-row1) .sdp-street input{font-size:1.04rem}
.sdp:has(.re-row1) .cdd-item{font-size:1.02rem}
.sdp:has(.re-row1) .cfp-more,.sdp:has(.re-row1) .cfp-reset,.sdp:has(.re-row1) .kf-save,.sdp:has(.re-row1) .kf-show{font-size:1.04rem}
.st,.st button,.sa-grid,.sa-grid button{font-family:Cambria,Caladea,Georgia,serif}
.st-price,.st-salary{font-size:1.2rem}
.st-price small{font-size:.8rem}
.sa-price{font-size:1.32rem}
.sa:hover,.sa:hover .sa-price{background:#eefaf4}
@media(min-width:1460px){ .sdp .re-row1{grid-template-columns:auto auto minmax(6rem, 9rem) repeat(6, auto) !important} }
.sa-title{padding-bottom:0;margin-bottom:6px}
.kf-panel.cfp.sdp:has(.re-row1){background:#cae1c1}
.sdp:has(.re-row1) .cdd-item{font-size:1.15rem}
/* v318 (Alex): "Больше фильтров" rows size like row 1: each of the 6 columns as wide as its widest box text, spare room shared */
@media(min-width:1460px){
    .sdp .re-rowx{grid-template-columns:repeat(6, auto) !important}
    .sdp .re-rowx > *{min-width:0}
    .sdp .re-rowx .cdd-val,.sdp .re-rowx .cfp-bool span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
.sdp:has(.re-row1) .cfp-bool{font-size:1.04rem}
/* v319 (Alex): "Больше фильтров" lines size on their own (a long label only widens its own line) */
.sdp .re-rowx .rx-line{display:contents}
@media(min-width:1200px){
    .sdp .re-rowx{display:flex !important;flex-direction:column}
    .sdp .re-rowx .rx-line{display:grid;grid-template-columns:repeat(6, auto);gap:inherit}
    .sdp .re-rowx .rx-line.rx-short{grid-template-columns:repeat(6, minmax(0, 1fr))}
    .sdp .re-rowx .rx-line > *{min-width:0}
    .sdp .re-rowx .rx-line:not(:has(> :not(.cfp-hid))){display:none}
}
/* v319: Вся Латвия + Улица were 4px shorter than the other boxes in row 1: one height for all */
.sdp .re-row1 .cdd-btn,.sdp .re-row1 .cdd-loc .cdd-btn,.sdp .re-row1 .sdp-street input{height:2.625rem;box-sizing:border-box}
/* v320 (Alex): "Больше фильтров" lines: equal boxes; a box whose pick needs more room grows to fit its text, the others in that line share what's left (no stretched gaps before the arrow) */
@media(min-width:1200px){
    .sdp .re-rowx .rx-line{display:flex;gap:6px}
    .sdp .re-rowx .rx-line > *{flex:1 1 calc((100% - 30px) / 6);min-width:max-content;box-sizing:border-box}
    .sdp .re-rowx .rx-line.rx-short > *{flex:0 0 calc((100% - 30px) / 6);min-width:0}
    .sdp .re-rowx .rx-line .cdd-val{overflow:visible}
}
/* v321 (Alex): "Больше фильтров" back to a FIXED grid (6 equal columns; long picks get "..."); the grow-on-pick boxes
   (v320) moved to row 1 instead: equal boxes, a pick that needs more room widens its box, the rest shrink evenly */
@media(min-width:1200px){
    .sdp .re-rowx{display:grid !important;grid-template-columns:repeat(6, minmax(0, 1fr)) !important;flex-direction:initial}
    .sdp .re-rowx .rx-line,.sdp .re-rowx .rx-line.rx-short{display:contents}
    .sdp .re-rowx .rx-line > *,.sdp .re-rowx .rx-line.rx-short > *{min-width:0}
    .sdp .re-rowx .cdd-val,.sdp .re-rowx .cfp-bool span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(min-width:1460px){
    .sdp .re-row1{display:flex !important;flex-wrap:nowrap !important;gap:6px}
    .sdp .re-row1 > *{flex:1 1 calc((100% - 48px) / 9);min-width:max-content;box-sizing:border-box}
    .sdp .re-row1 > .sdp-street{min-width:0}
    .sdp .re-row1 .cdd-val{overflow:visible}
}
/* v322 (Alex): Квартиры panel box text a bit smaller; a long pick in "Больше фильтров" ends in "..." at every width (the arrow stays) */
.sdp:has(.re-row1) .cdd-val,.sdp:has(.re-row1) .sdp-street input,.sdp:has(.re-row1) .cfp-bool{font-size:.97rem}
.sdp .re-rowx > *,.sdp .re-rowx .rx-line > *{min-width:0}
.sdp .re-rowx .cdd-btn{min-width:0}
.sdp .re-rowx .cdd-val{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sdp .re-rowx .cfp-bool span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sdp .re-rowx .cdd-chev{flex:0 0 auto}
.sdp .re-rowx .rx-line .cdd .cdd-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}
.sdp .re-rowx .rx-line .cdd .cdd-btn{overflow:hidden}

/* v323 (Alex: "Автоуслуги" revamp like Недвижимость): Обслуживание авто = his 6 numbered groups as cards, Квартиры panel look */
.svc-groups{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:14px;margin:4px 0 22px}
.svc-group{background:#fff;border:1px solid #cfe0c6;padding:12px 16px 10px}
.svc-head{display:flex;align-items:center;gap:10px;margin:0 0 6px;padding-bottom:9px;border-bottom:1px solid #e1ebdb;
    font-family:Cambria,Caladea,Georgia,serif;font-size:1.14rem;font-weight:700;line-height:1.25;color:#1d4a6b}
.svc-num{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;
    background:#cae1c1;color:#1d4a6b;font-size:1rem}
.svc-list{list-style:none;margin:0;padding:0}
.svc-item{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 -8px;padding:5px 8px;
    font-family:Cambria,Caladea,Georgia,serif;font-size:1.05rem;line-height:1.3;color:#22262b;text-decoration:none}
.svc-item em{font-style:normal;font-size:.85rem;color:#8a8f94}
.svc-item:hover{background:#eefaf4;color:var(--accent-hover)}
.svc-item:hover em{color:var(--accent-hover)}
@media(max-width:1100px){ .svc-groups{grid-template-columns:repeat(2, minmax(0, 1fr))} }
@media(max-width:700px){ .svc-groups{grid-template-columns:1fr} }
/* the bool box ("Выезд к клиенту") and search box as tall as the dropdowns in this row */
.sdp .svc-row1 .cfp-bool,.sdp .svc-row1 .sdp-q{height:2.625rem;box-sizing:border-box}
.sdp:has(.re-row1) .sdp-q{border:1px solid #3aa86d;background:#fff}
.sdp:has(.re-row1) .sdp-q input{font-family:Cambria,Caladea,Georgia,serif;font-size:.97rem}
@media(max-width:860px){ .st td.st-c,.st td.st-first{white-space:normal;min-width:0;max-width:100%;overflow-wrap:anywhere} }
/* v324 (Alex's mockup): Работа и бизнес = 4 boxes (jobs_boxes.html), the v323 Обслуживание авто card look; Обслуживание авто's
   group squares lost their numbers */
.jbx-page{padding-bottom:36px}
.jbx-title{margin:6px 0 16px}
.jbx-grid{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 2fr);gap:14px}
.jbx-box{background:#fff;border:1px solid #cfe0c6;padding:14px 18px 12px}
.jbx-head{margin:0 0 6px;padding-bottom:9px;border-bottom:1px solid #e1ebdb;font-family:Cambria,Caladea,Georgia,serif;
    font-size:1.22rem;font-weight:700;line-height:1.25}
.jbx-head a{display:flex;align-items:center;gap:12px;color:#1d4a6b;text-decoration:none}
.jbx-head a:hover .jbx-name{color:var(--accent-hover)}
.jbx-head em{font-style:normal;font-weight:400;font-size:.8rem;color:#8a8f94}
.jbx-sq,.svc-num{flex:0 0 auto;display:inline-block;width:1.5rem;height:1.5rem;background:#cae1c1}
.jbx-jobs .jbx-head{border-bottom:0;margin:0;padding:12px 0 14px;font-size:1.4rem}
.jbx-jobs .jbx-head a{padding:4px 8px;margin:0 -8px}
.jbx-jobs .jbx-head a:hover{background:#eefaf4}
.jbx-list{list-style:none;margin:0;padding:0}
.jbx-cols{column-count:2;column-gap:28px}
.jbx-cols li{break-inside:avoid}
.jbx-item{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 -8px;padding:5px 8px;
    font-family:Cambria,Caladea,Georgia,serif;font-size:1.08rem;line-height:1.3;color:#22262b;text-decoration:none}
.jbx-item em{font-style:normal;font-size:.85rem;color:#8a8f94}
.jbx-item:hover{background:#eefaf4;color:var(--accent-hover)}
.jbx-item:hover em{color:var(--accent-hover)}
@media(max-width:860px){ .jbx-grid{grid-template-columns:1fr} .jbx-grid > div:empty{display:none} }
@media(max-width:560px){ .jbx-cols{column-count:1} }
/* the fancy title stays on Обслуживание авто itself (no panel there any more, so main:has(.re-row1) no longer matches) */
main:has(.svc-groups) .sd-cat-title{font-family:Cambria,Caladea,Georgia,serif;color:#1f1f1f}
main:has(.svc-groups) .sd-cat-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
/* v325 (Alex): the Квартиры filter look on EVERY horizontal filter panel (side panel, car panel, tyre panel, realty box,
   jobs quick search): sage #cae1c1, white boxes with a 1px green outline, Cambria, greyed boxes light with the green outline,
   "Больше фильтров" on a soft dark-green square, plain grey "Сбросить фильтры", white "Сохранить поиск" with a green outline */
.kf-panel.cfp.kf-hpanel{background:#cae1c1}
.kf-panel.cfp.kf-hpanel,.kf-panel.cfp.kf-hpanel button,.kf-panel.cfp.kf-hpanel input,
.kf-panel.cfp.kf-hpanel .cdd-item,.kf-panel.cfp.kf-hpanel .cdd-check{font-family:Cambria,Caladea,Georgia,serif}
.kf-panel.cfp.kf-hpanel .kf-row .cdd-btn,.kf-panel.cfp.kf-hpanel .kf-row .cfp-bool,.kf-panel.cfp.kf-hpanel .sdp-street input,
.kf-panel.cfp.kf-hpanel .sdp-q,.kf-panel.cfp.kf-hpanel .typ-more .cdd-btn,.kf-panel.cfp.kf-hpanel .typ-more .cfp-bool{
    background:#fff;border:1px solid #3aa86d;border-radius:0;height:2.625rem;box-sizing:border-box}
.kf-panel.cfp.kf-hpanel .cdd.open .cdd-btn,.kf-panel.cfp.kf-hpanel .kf-row .cdd-btn:hover,.kf-panel.cfp.kf-hpanel .kf-row .cfp-bool:hover,
.kf-panel.cfp.kf-hpanel .sdp-street input:focus,.kf-panel.cfp.kf-hpanel .sdp-q:focus-within{border-color:#1e7a4a}
.kf-panel.cfp.kf-hpanel .cdd-val,.kf-panel.cfp.kf-hpanel .sdp-street input,.kf-panel.cfp.kf-hpanel .cfp-bool,
.kf-panel.cfp.kf-hpanel .sdp-q input{font-size:.97rem}
.kf-panel.cfp.kf-hpanel .cdd-item,.kf-panel.cfp.kf-hpanel .cdd-check{font-size:1.15rem}
.kf-panel.cfp.kf-hpanel .cdd-off .cdd-btn,.kf-panel.cfp.kf-hpanel .cdd-district-box[hidden] .cdd-btn{background:#f7f8fa;border:1px solid #3aa86d;color:#b8bcc2}
.kf-panel.cfp.kf-hpanel .cdd-off .cdd-val,.kf-panel.cfp.kf-hpanel .cdd-off .cdd-chev{color:#b8bcc2}
.kf-panel.cfp.kf-hpanel .cfp-more{background:rgba(0,105,55,.22);color:#fff;padding:6px 12px;border-radius:0;transition:background .15s}
.kf-panel.cfp.kf-hpanel .cfp-more .cdd-chev{color:#fff}
.kf-panel.cfp.kf-hpanel .cfp-more:hover{background:rgba(0,105,55,.32)}
.kf-panel.cfp.kf-hpanel .cfp-reset{background:none;padding:0;color:#6b7178}
.kf-panel.cfp.kf-hpanel .cfp-reset:hover{color:#3d4247}
.kf-panel.cfp.kf-hpanel .kf-save{background:#fff;border:1px solid #3aa86d}
.kf-panel.cfp.kf-hpanel .cfp-more,.kf-panel.cfp.kf-hpanel .cfp-reset,.kf-panel.cfp.kf-hpanel .kf-save,.kf-panel.cfp.kf-hpanel .kf-show,
.kf-panel.cfp.kf-hpanel .sdp-cats-btn{font-size:1.04rem}
.kf-panel.cfp.kf-hpanel .cfp-features-title{font-family:Cambria,Caladea,Georgia,serif}
/* job panel row 1 (8 boxes) + the jobs quick search on /c/darbs */
.sdp .job-row1 .sdp-q{min-width:0}
@media(min-width:1460px){ .sdp .job-row1 > .sdp-q{flex:1.6 1 0;min-width:0} }
.jbx-search{margin:0 0 16px}
.jbx-search .kf-row{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.3fr) auto;gap:6px}
.jbx-search .kf-show{height:2.625rem;padding:0 2.2rem}
@media(max-width:860px){ .jbx-search .kf-row{grid-template-columns:1fr} }
.sdp .job-row1 .cdd-district-box[hidden]{display:none !important}   /* job ads have a city, no apkaime */
@media(min-width:1460px){ .sdp .job-row1 > .sdp-q{flex:2 1 13rem;min-width:11rem} }
.kf-panel.cfp.jbx-search .cfp-grid.kf-row{display:grid !important;grid-template-columns:minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.3fr) auto !important;gap:6px;align-items:start}
.kf-panel.cfp.jbx-search{padding-bottom:10px}
@media(max-width:860px){ .kf-panel.cfp.jbx-search .cfp-grid.kf-row{grid-template-columns:1fr !important} }
.kf-panel.cfp.jbx-search .cdd-district-box{display:none !important}
.kf-panel.cfp.jbx-search .sdp-q{grid-column:auto}
.kf-panel.cfp.kf-hpanel .sdp-deal{border:1px solid #3aa86d}
@media(max-width:860px){ .sdp .job-row1 > .cdd-wrap:first-child{grid-column:1 / -1} }
@media(min-width:1460px){
    .sdp .job-row1 > .sdp-field-dd{flex:1.4 1 0;min-width:9rem}
    .sdp .job-row1 > .sdp-field-dd .cdd-val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
    .sdp .job-row1 > .sdp-q{flex:2 1 0;min-width:15rem}
}
/* job row: picks are long ("Налоговый статус: Bruto (до уплаты налогов)"), so the boxes never grow past their share, "…" instead */
@media(min-width:1460px){
    .sdp .job-row1 > *{min-width:0 !important}
    .sdp .job-row1 > .cdd-wrap:first-child{flex:1 1 0;min-width:8.5rem !important}
}
.sdp .job-row1 .cdd-btn{min-width:0;overflow:hidden}
.sdp .job-row1 .cdd-val{flex:1 1 auto;min-width:0;overflow:hidden !important;text-overflow:ellipsis;white-space:nowrap}
.sdp .job-row1 .cdd-chev{flex:0 0 auto}
@media(min-width:1460px){
    .sdp .job-row1 > *{flex:1 1 0 !important}
    .sdp .job-row1 > .sdp-q{flex:1.5 1 0 !important}
    .sdp .job-row1 > .sdp-field-dd{flex:1.25 1 0 !important}
}
/* v329 (Alex): job row = Вся Латвия, Район Риги (greyed until Rīga, like Квартиры), Улица, Должность, Сфера, Зарплата */
.sdp .job-row1 .cdd-district-box[hidden]{display:block !important}
@media(min-width:1200px) and (max-width:1459px){ .sdp .job-row1{grid-template-columns:repeat(6, minmax(0, 1fr)) !important} }
@media(min-width:1460px){
    .sdp .job-row1 > *{flex:1 1 0 !important}
    .sdp .job-row1 > .sdp-q{flex:1.5 1 0 !important}
    .sdp .job-row1 > .sdp-field-dd{flex:1.4 1 0 !important}
}
@media(max-width:860px){ .sdp .job-row1 > .cdd-wrap:first-child{grid-column:auto} }
/* the wide striped sheet (like Вся Латвия / Район Риги) for other lists: Сфера, Другие языки, Бонусы, Права и лицензии */
@media(min-width:861px){
    .kf-hpanel .cdd-wide,.kf-hpanel .re-rowx .cdd:has(input[name=other_langs]),.kf-hpanel .re-rowx .cdd:has(input[name=benefits]),
    .kf-hpanel .re-rowx .cdd:has(input[name=licence]){position:static}
    .kf-hpanel .cdd-wide .cdd-pop,.kf-hpanel .re-rowx .cdd:has(input[name=other_langs]) .cdd-pop,
    .kf-hpanel .re-rowx .cdd:has(input[name=benefits]) .cdd-pop,.kf-hpanel .re-rowx .cdd:has(input[name=licence]) .cdd-pop{
        top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;overflow:visible;columns:4 180px;column-gap:0;
        --rh:2.6rem;padding:18px 0 var(--rh);box-shadow:none;border:1px solid #3aa86d;
        background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) content-box, #fff}
    .kf-hpanel .cdd-wide .cdd-item,.kf-hpanel .re-rowx .cdd:has(input[name=other_langs]) .cdd-check,
    .kf-hpanel .re-rowx .cdd:has(input[name=benefits]) .cdd-check,.kf-hpanel .re-rowx .cdd:has(input[name=licence]) .cdd-check{
        break-inside:avoid;height:var(--rh);line-height:var(--rh);padding:0 16px;font-size:1.05rem;background:transparent;
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px;box-sizing:border-box}
    .kf-hpanel .cdd-wide .cdd-item:hover,.kf-hpanel .re-rowx .cdd-check:hover{background:rgba(0,173,101,.1)}
    .kf-hpanel .cdd-wide .cdd-item.sel{background:rgba(0,173,101,.14)}
    .kf-hpanel .cdd-wide .cdd-find{display:none}
}
.sdp .job-row1 > .sdp-q{grid-column:auto}
@media(max-width:860px){ .sdp .job-row1 > .sdp-q{grid-column:1 / -1} }

/* ═══ v330 (Alex's "mekleju darbu filtrs"): Ищу работу CV upload + download ═══ */
.spec-cv input[type=file]{display:block;font:inherit;font-size:.95rem;margin-top:4px}
.spec-cv .ph-hint{margin:6px 0 0;color:var(--text-2);font-size:.88rem}
.spec-cv-cur{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:0 0 8px}
.spec-cv-cur a{color:var(--accent-hover);font-weight:600}
.ld-cv-link{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border:1px solid #3aa86d;background:#fff;color:#1e7a4a;text-decoration:none;font-weight:600}
.ld-cv-link:hover{background:#eefaf4}
.ld-cv-link small{color:var(--text-2);font-weight:400;max-width:22rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ═══ v331 (Alex): picture tiles (Недвижимость, Транспорт, Запчасти...) hover = the filter panel's sage; job lists in Cambria ═══ */
.kf-tile:hover{background:rgba(202,225,193,.45)}
.sb-prof-head,.sb-prof,.sb-prof a,main:has(.job-row1) .sb-cats,main:has(.job-row1) .sb-cats a{font-family:Cambria,Caladea,Georgia,serif}

/* ═══ v332 (Alex): /c/darbs title = the fancy Cambria + Great Vibes initial (like Квартиры / Обслуживание авто) ═══ */
.jbx-title{font-family:Cambria,Caladea,Georgia,serif;color:#1f1f1f}
.jbx-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
.jbx-title.tight::first-letter{margin-right:-.06em}

/* ═══ v333 (Alex): .kf-title = Cambria + Great Vibes capital; place boxes first in every non-Транспорт panel ═══ */
.kf-title{font-family:Cambria,Caladea,Georgia,serif;color:#1f1f1f}
.kf-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
.kf-title.tight::first-letter{margin-right:-.06em}
.sdp .loc3 .cdd-district-box[hidden]{display:block !important}
.sdp .loc3 .cdd-district-box[hidden] .cdd{pointer-events:none}
.sdp .loc3 .sdp-street input{height:2.625rem;box-sizing:border-box;border:1px solid #3aa86d;border-radius:0;font-family:Cambria,Caladea,Georgia,serif;font-size:.97rem}
.sdp .loc3 .sdp-street input:hover,.sdp .loc3 .sdp-street input:focus{border-color:#1e7a4a;outline:0}
.sdp .loc3 .cdd-district-box[hidden] .cdd-val,.sdp .loc3 .cdd-district-box[hidden] .cdd-chev{color:#b8bcc2}

/* ═══ v334 (Alex): the brand / model / generation lists (#kfLinks, Транспорт drill pages) in Cambria ═══ */
.kf-links,.kf-links a,.kf-links span,.kf-links button{font-family:Cambria,Caladea,Georgia,serif}

/* ═══ v335 (Alex): every sd-cat-title = Cambria + Great Vibes capital; Дома tick lists open as the wide striped sheet ═══ */
.sd-cat-title{font-family:Cambria,Caladea,Georgia,serif;color:#1f1f1f}
.sd-cat-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
.sd-cat-title.tight::first-letter{margin-right:-.06em}
@media(min-width:861px){
    .kf-hpanel .loc3 .cdd:has(input[name=communications]),.kf-hpanel .loc3 .cdd:has(input[name=house_extras]),
    .kf-hpanel .loc3 .cdd:has(input[name=house_near]){position:static}
    .kf-hpanel .loc3 .cdd:has(input[name=communications]) .cdd-pop,.kf-hpanel .loc3 .cdd:has(input[name=house_extras]) .cdd-pop,
    .kf-hpanel .loc3 .cdd:has(input[name=house_near]) .cdd-pop{
        top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;overflow:visible;columns:4 180px;column-gap:0;
        --rh:2.6rem;padding:18px 0 var(--rh);box-shadow:none;border:1px solid #3aa86d;
        background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) content-box, #fff}
    .kf-hpanel .loc3 .cdd:has(input[name=communications]) .cdd-check,.kf-hpanel .loc3 .cdd:has(input[name=house_extras]) .cdd-check,
    .kf-hpanel .loc3 .cdd:has(input[name=house_near]) .cdd-check{
        break-inside:avoid;height:var(--rh);line-height:var(--rh);padding:0 16px;font-size:1.05rem;background:transparent;
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px;box-sizing:border-box}
    .kf-hpanel .loc3 .cdd-check:hover{background:rgba(0,173,101,.1)}
}
@media(max-width:860px){
    .kf-hpanel .loc3 .cdd:has(input[name=communications]),.kf-hpanel .loc3 .cdd:has(input[name=house_extras]),
    .kf-hpanel .loc3 .cdd:has(input[name=house_near]){position:static}
    .kf-hpanel .loc3 .cdd:has(input[name=communications]) .cdd-pop,.kf-hpanel .loc3 .cdd:has(input[name=house_extras]) .cdd-pop,
    .kf-hpanel .loc3 .cdd:has(input[name=house_near]) .cdd-pop{top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px}
}

/* ═══ v336 (Alex): realty sub-sections inside the filter panel (white boxes like the fields, lit = green) ═══ */
.sdp .sdp-secs{display:grid;grid-template-columns:repeat(auto-fill, minmax(15rem, 1fr));gap:6px;margin-bottom:8px}
.sdp .sdp-sec{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:2.625rem;padding:5px 12px;
    background:#fff;border:1px solid #3aa86d;border-radius:0;font:inherit;font-family:Cambria,Caladea,Georgia,serif;font-size:1rem;
    color:#22262b;text-align:left;cursor:pointer;line-height:1.25}
.sdp .sdp-sec em{font-style:normal;font-size:.85em;color:#8a9097}
.sdp .sdp-sec:hover{border-color:#1e7a4a;background:#f3faf6;color:#1e7a4a}
.sdp .sdp-sec.on{background:#e3f4ea;border-color:#1e7a4a;color:#0f6b3d;font-weight:700;box-shadow:inset 0 -2px 0 #00ad65}
@media(max-width:860px){ .sdp .sdp-secs{grid-template-columns:minmax(0, 1fr)} }

/* ═══ v337 (Alex): realty Подраздел dropdown (wide striped sheet, counts grey); "Сохранить поиск" hidden everywhere ═══ */
.kf-hpanel .sdp-sec-dd .cdd-item em{font-style:normal;font-size:.85em;color:#8a9097;margin-left:6px}
.kf-save,.js-save,#kfSave{display:none !important}
@media(min-width:861px){ .kf-hpanel .sdp-sec-dd .cdd-pop{columns:3 240px} }
@media(max-width:860px){
    .kf-hpanel .sdp-sec-dd{position:static}
    .kf-hpanel .sdp-sec-dd .cdd-pop{top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px}
    .kf-hpanel .sdp-sec-dd .cdd-item{white-space:normal}
}
@media(min-width:861px){ .kf-hpanel .sdp-sec-dd .cdd-pop{columns:2 300px} }
@media(max-width:860px){ .kf-hpanel .kf-row{position:relative} }

/* ═══ v338 (Alex): site announcement banner (orange-beige) + its admin form ═══ */
/* v340: the banner's own styles moved into base.html (random class names per page load) */
.adm-ann{max-width:760px;margin-bottom:28px}
.adm-ann-lang{display:flex;gap:10px;align-items:flex-start;margin:0 0 8px}
.adm-ann-lang span{flex:0 0 32px;padding-top:8px;font-weight:700;color:#5b3a17}
.adm-ann-lang textarea{flex:1;min-height:3.2rem;padding:8px 10px;border:1px solid #e0b57d;background:#fffaf2;font:inherit;resize:vertical}
.adm-ann-opts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin-left:42px}
.adm-ann-opts label{display:flex;align-items:center;gap:6px;cursor:pointer}
.adm-ann-state{display:inline-block;margin-left:12px;padding:3px 10px;font-size:.8rem;font-weight:600;vertical-align:middle;background:#eceef0;color:#6b7178}
.adm-ann-state.on{background:#fbe7cc;color:#a85a12}
.adm-ann-opts input[type=datetime-local]{padding:5px 8px;border:1px solid #e0b57d;background:#fffaf2;font:inherit}
.adm-ann-end{border-color:#d9822b;color:#a85a12}
.adm-ann-end:hover{background:#fbe7cc}

/* ═══ v341 (Alex): Транспорт pages without the sub tab bar; car panel without Больше фильтров / Сбросить фильтры;
   brand / model lists 5 columns, bigger, tighter; VIN / plate reveal buttons on the ad page ═══ */
.subtabs{display:none !important}
#catFilterForm .cfp-more,#catFilterForm .cfp-reset{display:none !important}
.kf-links,.kf-split .kf-links{columns:5;column-gap:28px}
.kf-link{padding:1px 0;font-size:1.6rem;line-height:1.25}
.kf-link em{font-size:.6em;margin-left:4px}
@media (max-width:1100px){.kf-links,.kf-split .kf-links{columns:3}}
@media (max-width:700px){.kf-links,.kf-split .kf-links{columns:2;column-gap:16px}.kf-link{font-size:1.25rem}}
.ld-reveal{padding:0;border:0;background:none;font:inherit;color:#1a5fb4;text-decoration:underline;cursor:pointer}
.ld-reveal:hover{color:var(--accent)}
.ld-reveal:disabled{opacity:.6;cursor:wait}
.ld-revealed{font-weight:700;letter-spacing:.03em}

/* ═══ v342 (Alex: 20% smaller) ═══ */
.kf-link{font-size:1.28rem}
@media (max-width:700px){.kf-link{font-size:1rem}}

/* ═══ v343 (Alex): map strip gone, the map icon is a "Смотреть на карте" button; result table text bigger ═══ */
.sd-view.sd-view-map{width:auto;display:inline-flex;align-items:center;gap:7px;padding:0 12px 0 8px;color:#1d4a6b;
    font-family:Cambria,Caladea,Georgia,serif;font-size:1.02rem;font-weight:600;white-space:nowrap;text-decoration:none}
.sd-view.sd-view-map:hover{color:var(--accent-hover);background:#eefaf4}
@media(max-width:560px){
    .sd-views:has(.sd-view-map){display:flex}
    .sd-views:has(.sd-view-map) .sd-view:not(.sd-view-map){display:none}
}
.st{font-size:1.08rem}
.st thead th,.st-bar{font-size:1rem}
.st td.st-c{font-size:1rem}
.st-loc{font-size:.92rem}
.st-price,.st-salary,.st td.st-price,.st td.st-salary{font-size:1.3rem}

/* ═══ v344 (Alex's mockup): Работа и бизнес tabs over the panel (Вакансии / Ищу работу / Готовый бизнес / Оборудование /
   Деловые услуги); white boxes on the filter sage, active = mint + dark green underline; Cambria + Great Vibes capital ═══ */
.bz-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:6px;margin:14px 0 8px;background:#cae1c1}
.bz-tab{display:flex;align-items:center;justify-content:center;min-height:4.1rem;padding:6px 10px;background:#fff;border:1px solid #3aa86d;
    color:#1d4a6b;text-decoration:none;text-align:center;transition:background .15s,border-color .15s}
.bz-tab:hover{background:#eefaf4;border-color:#1e7a4a}
.bz-tab.active{background:#eefaf4;border-color:#1e7a4a;box-shadow:inset 0 -3px 0 #1e7a4a}
.bz-name{font-family:Cambria,Caladea,Georgia,serif;font-weight:700;font-size:1.45rem;line-height:1.15}
.bz-name::first-letter{font-family:'Great Vibes',cursive;font-weight:400;font-size:1.6em;margin-right:.05em}
.bz-name.tight::first-letter{margin-right:-.06em}
.bz-tabs + .sb{margin-top:0}
.bz-tabs ~ .sb .kf-panel.cfp{margin-top:0}
@media (max-width:1100px){.bz-name{font-size:1.2rem}}
@media (max-width:700px){
    .bz-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px}
    .bz-tab{min-height:3.2rem}
    .bz-tab:last-child{grid-column:1 / -1}
    .bz-name{font-size:1.1rem}
}
@media (max-width:700px){.sb-cat > span{min-width:0;overflow-wrap:anywhere}}

/* ═══ v345 (Alex): job album cards (?disp=grid on job pages): salary one line, smaller; company line ═══ */
.sa-jobs .sa-price span{font-size:1.06rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sa-company{margin-top:2px}

/* ═══ v346 (Alex): job pages: while a panel dropdown is open (Сфера, the wide sheets...) the profession list under it is
   blurred + darkened, and a click on it only closes the dropdown ═══ */
.sb-prof-head,.sb-prof .jb-az-flat{transition:filter .2s ease,opacity .2s ease}
.sb:has(#sdPanel .cdd.open) .sb-prof-head,
.sb:has(#sdPanel .cdd.open) .sb-prof .jb-az-flat{filter:blur(3px) brightness(.72);pointer-events:none;user-select:none}
.sb-prof{position:relative}
.sb-prof::after{content:"";position:absolute;inset:-8px -10px;background:rgba(24,28,32,.16);opacity:0;pointer-events:none;transition:opacity .2s ease}
.sb:has(#sdPanel .cdd.open) .sb-prof::after{opacity:1}

/* ═══ v347 (Alex's mockup): Работа и бизнес tabs without the sage bar and without outlines; hover / active = mint,
   active keeps the dark green underline ═══ */
.bz-tabs{background:none;padding:0}
.bz-tab{background:#fff;border-color:transparent}
.bz-tab:hover{background:#eefaf4;border-color:transparent}
.bz-tab.active{background:#eefaf4;border-color:transparent;box-shadow:inset 0 -3px 0 #1e7a4a}
/* v348 (Alex's reference): the v344 tab bar's 6px inset back (tabs a bit narrower than the panel), bar itself transparent */
.bz-tabs{background:transparent;padding:6px}

/* ═══ v349 (Alex's mockup): job panel = a thin sage frame around the row (no sage under the actions), "Больше фильтров"
   plain text (sage on hover), no Сбросить / Показать (picks apply themselves, side_panel.html); tabs line up with the
   frame; the profession list sits higher ═══ */
.bz-tabs{padding:0;margin:14px 0 8px}
.bz-tab{min-height:3.7rem}
.kf-panel.cfp.kf-hpanel.sdp:has(.job-row1){background:transparent;padding:0;margin-bottom:6px}
.sdp:has(.job-row1) .job-row1,.sdp:has(.job-row1) .re-rowx{background:#cae1c1;padding:4px;margin:0}
.sdp:has(.job-row1) .re-rowx{border-top:0}
.sdp:has(.job-row1) .kf-actions{margin-top:4px;padding:0}
.sdp:has(.job-row1) .cfp-reset,.sdp:has(.job-row1) .kf-actions-right{display:none !important}
.kf-panel.cfp.kf-hpanel.sdp:has(.job-row1) .cfp-more{background:transparent;color:#1e7a4a;padding:6px 12px}
.kf-panel.cfp.kf-hpanel.sdp:has(.job-row1) .cfp-more .cdd-chev{color:#1e7a4a}
.kf-panel.cfp.kf-hpanel.sdp:has(.job-row1) .cfp-more:hover,
.kf-panel.cfp.kf-hpanel.sdp:has(.job-row1) .cfp-more.open{background:#a8cf9a;color:#fff}
.kf-panel.cfp.kf-hpanel.sdp:has(.job-row1) .cfp-more:hover .cdd-chev,
.kf-panel.cfp.kf-hpanel.sdp:has(.job-row1) .cfp-more.open .cdd-chev{color:#fff}
.sb-prof-head{margin-top:10px;padding-top:0;border-top:0}
/* v350 (Alex): the folded "Больше фильтров" grid still had its 4px padding = an empty sage strip under the row */
.sdp:has(.job-row1):has(.cfp-more:not(.open)) .re-rowx{padding:0;height:0;overflow:hidden}
/* v351 (Alex): profession list higher (heading right under "Больше фильтров", list closer to the heading) */
.kf-panel.cfp.kf-hpanel.sdp:has(.job-row1){margin-bottom:0}
.sb-prof-head{margin-top:-2px;margin-bottom:5px}

/* v352 (Alex): map view list (left side) in Cambria */
.mv-side, .mv-side .mv-title, .mv-list, .mv-list *{font-family:Cambria,Caladea,Georgia,serif}

/* ═══ v353 (Alex): the slim job panel (v349-v351) on every Работа и бизнес tab (.sdp-slim: Готовый бизнес, Оборудование,
   Деловые услуги too); no profession heading; no search / price there ═══ */
.kf-panel.cfp.kf-hpanel.sdp.sdp-slim{background:transparent;padding:0;margin-bottom:0}
.sdp-slim > .cfp-grid{background:#cae1c1;padding:4px;margin:0}
.sdp-slim > .re-rowx{border-top:0}
.sdp-slim:has(.cfp-more:not(.open)) > .re-rowx{padding:0;height:0;overflow:hidden}
.sdp-slim .kf-actions{margin-top:4px;padding:0}
.sdp-slim .cfp-reset,.sdp-slim .kf-actions-right{display:none !important}
.kf-panel.cfp.kf-hpanel.sdp-slim .cfp-more{background:transparent;color:#1e7a4a;padding:6px 12px}
.kf-panel.cfp.kf-hpanel.sdp-slim .cfp-more .cdd-chev{color:#1e7a4a}
.kf-panel.cfp.kf-hpanel.sdp-slim .cfp-more:hover,
.kf-panel.cfp.kf-hpanel.sdp-slim .cfp-more.open{background:#a8cf9a;color:#fff}
.kf-panel.cfp.kf-hpanel.sdp-slim .cfp-more:hover .cdd-chev,
.kf-panel.cfp.kf-hpanel.sdp-slim .cfp-more.open .cdd-chev{color:#fff}
.sb-prof{margin-top:4px}

/* ═══ v354 (Alex's mockup): Обслуживание авто = 6 group tabs (the Работа и бизнес tab look) + the slim panel ═══ */
.bz-tabs.svc-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
.svc-tabs .bz-name{font-size:1.12rem;line-height:1.2}
@media (max-width:1100px){.bz-tabs.svc-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){
    .bz-tabs.svc-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
    .svc-tabs .bz-tab:last-child{grid-column:auto}
    .svc-tabs .bz-name{font-size:1rem}
}

/* v355 (Alex): Обслуживание авто: the open tab's services listed under the panel like the professions (3 columns) */
.sb-prof.svc-under .jb-az-flat{columns:2}
@media(max-width:860px){ .sb-prof.svc-under .jb-az-flat{columns:1} }

/* ═══ v356 (Alex): Обслуживание авто: fancy capital back on the tabs; services list in 2 columns; Вид услуги opens as the
   wide striped sheet (like Сфера); an invisible "Больше фильтров" keeps the job panel's gap under the row ═══ */
.svc-tabs .bz-name{font-size:1.12rem}
.svc-tabs .bz-name::first-letter{font-size:1.6em}
.sdp-slim .cfp-more.svc-more-gap{display:inline-flex !important;visibility:hidden;pointer-events:none}   /* panel.js hides it (no extras) */
@media(min-width:861px){
    .kf-hpanel .svc-row1 .cdd:has(input[name=service_type]){position:static}
    .kf-hpanel .svc-row1 .cdd:has(input[name=service_type]) .cdd-pop{
        top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;overflow:visible;columns:2 340px;column-gap:0;
        --rh:2.6rem;padding:18px 0 var(--rh);box-shadow:none;border:1px solid #3aa86d;
        background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) content-box, #fff}
    .kf-hpanel .svc-row1 .cdd:has(input[name=service_type]) .cdd-check{
        break-inside:avoid;height:var(--rh);line-height:var(--rh);padding:0 16px;font-size:1.05rem;background:transparent;
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px;box-sizing:border-box}
    .kf-hpanel .svc-row1 .cdd:has(input[name=service_type]) .cdd-check:hover{background:rgba(0,173,101,.1)}
    .kf-hpanel .svc-row1 .cdd:has(input[name=service_type]) .cdd-check:has(input:checked){background:rgba(0,173,101,.14)}
}
@media(max-width:860px){ .kf-hpanel .svc-row1{position:relative} .kf-hpanel .svc-row1 .cdd:has(input[name=service_type]){position:static}
    .kf-hpanel .svc-row1 .cdd:has(input[name=service_type]) .cdd-pop{left:0;right:0;width:auto;min-width:0} }
@media(max-width:700px){ .svc-tabs .bz-name{font-size:.9rem;overflow-wrap:anywhere} .svc-tabs .bz-tab{padding:6px 4px} }

/* v357 (Alex): the services list = 2 columns of the old 3-column width (takes 2/3 of the row, not the whole row) */
@media(min-width:861px){ .sb-prof.svc-under .jb-az-flat{width:calc((100% - 4rem) / 3 * 2 + 2rem);column-gap:2rem} }

/* ═══ v359 (Alex): Обслуживание авто: the services list in his 2 columns (one line per name), text = the tab buttons' size;
   the ads closer to the list on tab pages; service pages: no gap under the panel (no list there) ═══ */
.sb-prof.svc-under .jb-az-flat.svc-cols{display:flex;align-items:flex-start;gap:0 6rem;columns:auto;width:auto}
.svc-cols .svc-col{display:flex;flex-direction:column}
.sb-prof.svc-under .jb-az-item{font-size:1.12rem;justify-content:flex-start;gap:.4em}
@media(min-width:1101px){ .svc-cols .jb-az-item span{white-space:nowrap} }
@media(max-width:1100px){ .sb-prof.svc-under .jb-az-flat.svc-cols{gap:0 2.5rem} .svc-cols .svc-col{flex:1 1 0;min-width:0} }
@media(max-width:860px){ .sb-prof.svc-under .jb-az-flat.svc-cols{flex-direction:column} .sb-prof.svc-under .jb-az-item{font-size:1rem} }
.sb:has(.svc-under){margin-bottom:6px}
.sdp-slim .cfp-more.svc-more-gap.svc-no-gap{display:none !important}
.sdp-slim:has(.svc-no-gap) .kf-actions{display:none}

/* v360 (Alex's mockup): tab pages: the invisible gap button is gone, the services list sits 28px under the sage frame and
   the ads ~56px under the list */
.sdp-slim:has(.svc-row1) .kf-actions{display:none}
.sb-prof.svc-under{margin-top:28px}
.sb:has(.svc-under){margin-bottom:56px}
@media(max-width:860px){ .sb-prof.svc-under{margin-top:18px} .sb:has(.svc-under){margin-bottom:32px} }

/* v361 (Alex): the Обслуживание авто services list in bold */
.svc-cols .jb-az-item span{font-weight:700}

/* ═══ v362 TEST (/test/svc-tabs): Транспортные услуги's 4 sections as big tabs; the other 3 sections' kind dropdowns open
   as the wide striped sheet like Вид услуги ═══ */
.bz-tabs.sec-tabs{grid-template-columns:repeat(var(--n,4),minmax(0,1fr));margin-bottom:6px}
.bz-tabs.sec-tabs + .bz-tabs.svc-tabs{margin-top:0}
.bz-tabs.sec-tabs .bz-tab:not(.active){border-bottom:1px solid #dfe5dc}
@media(max-width:700px){ .bz-tabs.sec-tabs{grid-template-columns:repeat(2,minmax(0,1fr))} .bz-tabs.sec-tabs .bz-tab:last-child{grid-column:auto} }
@media(min-width:861px){
    .kf-hpanel .svc-row1 .cdd:has(input:is([name=heavy_repair],[name=transport_service],[name=consult_type])){position:static}
    .kf-hpanel .svc-row1 .cdd:has(input:is([name=heavy_repair],[name=transport_service],[name=consult_type])) .cdd-pop{
        top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;overflow:visible;columns:2 340px;column-gap:0;
        --rh:2.6rem;padding:18px 0 var(--rh);box-shadow:none;border:1px solid #3aa86d;
        background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) content-box, #fff}
    .kf-hpanel .svc-row1 .cdd:has(input:is([name=heavy_repair],[name=transport_service],[name=consult_type])) .cdd-check{
        break-inside:avoid;height:var(--rh);line-height:var(--rh);padding:0 16px;font-size:1.05rem;background:transparent;
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px;box-sizing:border-box}
    .kf-hpanel .svc-row1 .cdd:has(input:is([name=heavy_repair],[name=transport_service],[name=consult_type])) .cdd-check:hover{background:rgba(0,173,101,.1)}
}

/* ═══ v363 TEST (/test/svc): Транспортные услуги ideas A (cards) / B (tiles) + the test page ═══ */
.svc-hub-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.svc-hub-cards .svc-title{color:inherit;text-decoration:none;flex:1}
.svc-hub-cards .svc-title:hover{color:var(--accent-hover)}
.svc-hub-n{font-style:normal;font-family:Cambria,Caladea,Georgia,serif;font-size:.95rem;color:#8a8f94;font-weight:400}
.svc-hub-cards .svc-item{font-family:Cambria,Caladea,Georgia,serif;font-size:1.08rem}
.svc-hub-tiles .kf-tile{position:relative}
.svc-hub-tn{position:absolute;right:14px;top:12px;font-family:Cambria,Caladea,Georgia,serif;color:#8a8f94;font-size:1rem}
.svc-hub-all{margin:14px 0 30px;font-family:Cambria,Caladea,Georgia,serif;font-size:1.1rem}
.svc-hub-all a{color:#1e7a4a;font-weight:700;text-decoration:none}
.svc-hub-all a:hover{text-decoration:underline}
@media(max-width:860px){ .svc-hub-cards{grid-template-columns:1fr} }
.svc-test-note{margin:8px 0 18px;color:#3d4247;font-size:1.05rem;max-width:60rem}
.svc-test-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-bottom:40px}
.svc-test-card{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid #cfe0c6;background:#fff;color:#22262b;text-decoration:none}
.svc-test-card b{font-family:Cambria,Caladea,Georgia,serif;font-size:1.25rem;color:#1d4a6b}
.svc-test-card span{color:#555b62;font-size:.95rem}
.svc-test-card:hover{background:#eefaf4;border-color:#3aa86d}
.svc-test-card.on{border-color:#1e7a4a;box-shadow:inset 0 -3px 0 #1e7a4a;background:#eefaf4}
.kf-tiles.svc-hub-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:860px){ .kf-tiles.svc-hub-tiles{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* ═══ v364 TEST (/test/svc): D title switcher, E service search, F side menu, G section line ═══ */
/* D */
.svc-d{position:relative;margin:2px 0 12px;display:inline-block;z-index:30}
.svc-d-btn{display:inline-flex;align-items:center;gap:10px;background:none;border:0;padding:0;cursor:pointer;color:#1f1f1f}
.svc-d-btn .sd-cat-title{margin:0}
.svc-d-btn svg{color:#1e7a4a;transition:transform .2s}
.svc-d.open .svc-d-btn svg{transform:rotate(180deg)}
.svc-d-btn:hover .sd-cat-title{color:#1e7a4a}
.svc-d-pop{position:absolute;left:0;top:100%;margin-top:6px;min-width:100%;width:max-content;max-width:min(90vw,560px);background:#fff;
    border:1px solid #3aa86d;padding:8px 0;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.svc-d-a{display:flex;justify-content:space-between;gap:24px;padding:9px 18px;font-family:Cambria,Caladea,Georgia,serif;font-size:1.15rem;
    color:#1d4a6b;text-decoration:none}
.svc-d-a em{font-style:normal;color:#8a8f94;font-size:.95rem}
.svc-d-a:hover{background:#eefaf4}
.svc-d-a.active{color:#1e7a4a;font-weight:700;background:#f3faf6}
/* E */
.svc-e{position:relative;padding:4px;margin:6px 0 18px}
.svc-e-box{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #3aa86d;padding:0 14px;height:3.4rem;color:#1e7a4a}
.svc-e-box input{flex:1;border:0;outline:0;font:inherit;font-family:Cambria,Caladea,Georgia,serif;font-size:1.25rem;background:transparent;color:#22262b;min-width:0}
.svc-e-pop{position:absolute;left:4px;right:4px;top:100%;background:#fff;border:1px solid #3aa86d;border-top:0;z-index:40;max-height:60vh;overflow:auto}
.svc-e-hit{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:10px 16px;font-family:Cambria,Caladea,Georgia,serif;
    font-size:1.12rem;color:#22262b;text-decoration:none}
.svc-e-hit:nth-child(even){background:#f8fbf6}
.svc-e-hit em{font-style:normal;color:#8a8f94;font-size:.92rem;white-space:nowrap}
.svc-e-hit.cur,.svc-e-hit:hover{background:#e3f3e8;color:#1e7a4a}
.svc-e-none{padding:12px 16px;color:#8a8f94;font-family:Cambria,Caladea,Georgia,serif}
@media(max-width:860px){ .svc-e-hit{flex-direction:column;gap:2px} .svc-e-box input{font-size:1.05rem} }
/* F */
@media(min-width:861px){
    .container.svc-f{display:grid;grid-template-columns:16.5rem minmax(0,1fr);column-gap:2rem;grid-template-rows:repeat(6,auto) 1fr}
    .container.svc-f > *{grid-column:2}
    .container.svc-f > .breadcrumb{grid-column:1 / -1}
    .container.svc-f > .svc-side{grid-column:1;grid-row:2 / -1;align-self:start;position:sticky;top:calc(var(--hdr, 60px) + 12px)}
}
.svc-side{border-right:1px solid #e1ebdb;padding-right:14px;font-family:Cambria,Caladea,Georgia,serif;margin-bottom:16px}
.svc-side-top{display:block;padding:6px 8px 10px;font-weight:700;font-size:1.2rem;color:#1f1f1f;text-decoration:none;border-bottom:2px solid #cae1c1;margin-bottom:6px}
.svc-side-top.active,.svc-side-top:hover{color:#1e7a4a}
.svc-side-h{display:flex;justify-content:space-between;gap:10px;padding:8px;font-weight:700;font-size:1.06rem;color:#1d4a6b;text-decoration:none}
.svc-side-h em,.svc-side-i em{font-style:normal;font-weight:400;color:#8a8f94;font-size:.9rem}
.svc-side-h:hover,.svc-side-i:hover{background:#eefaf4}
.svc-side-sec.open > .svc-side-h{background:#eefaf4;box-shadow:inset 3px 0 0 #1e7a4a}
.svc-side-h.active{color:#1e7a4a}
.svc-side-items{padding:2px 0 8px 10px}
.svc-side-i{display:flex;justify-content:space-between;gap:10px;padding:5px 8px;font-size:.98rem;color:#22262b;text-decoration:none;line-height:1.3}
.svc-side-i.zero{color:#a9aeb4}
.svc-side-i.active{color:#1e7a4a;font-weight:700}
@media(max-width:860px){ .svc-side{border-right:0;padding-right:0;border-bottom:1px solid #e1ebdb} }
/* G */
.svc-g{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:4px 0 12px;font-family:Cambria,Caladea,Georgia,serif;font-size:1.08rem}
.svc-g-a{color:#1d4a6b;text-decoration:none;padding:3px 2px;border-bottom:2px solid transparent}
.svc-g-a em{font-style:normal;color:#8a8f94;font-size:.88rem}
.svc-g-a:hover{color:#1e7a4a}
.svc-g-a.active{color:#1e7a4a;font-weight:700;border-bottom-color:#1e7a4a}
.svc-g-dot{color:#b3b7bd}

/* ═══ v365 (Alex): Обслуживание авто tabs: names start at the top of the tab (one-line names line up with the others' first line) */
.bz-tabs.svc-tabs .bz-tab{align-items:flex-start}

/* ═══ v366 (Alex's mockup): Транспортные услуги = fancy title, slim panel ("Вид услуги" = its 4 sections, wide sheet), all ads */

/* ═══ v367 (Alex): Обслуживание авто services list: a big round bullet before every name (text colour; green on hover) */
.svc-cols .jb-az-item::before{content:"";display:inline-block;vertical-align:.08em;width:.52em;height:.52em;border-radius:50%;background:currentColor;margin-right:.45em;text-indent:0}
.sb-prof.svc-under .svc-cols .jb-az-item{padding-left:calc(6px + .97em);text-indent:-.97em}   /* a wrapped line starts under the text, not the dot */

/* ═══ v368 (Alex's mockup): Шины и диски tabs (Шины для легковых авто, Диски, Грузовые, Сельхоз, Мото) over the tyre panel */
.bz-tabs.svc-tabs.ty-tabs{grid-template-columns:repeat(var(--n,5),minmax(0,1fr))}
@media (max-width:1100px){ .bz-tabs.svc-tabs.ty-tabs{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:700px){ .bz-tabs.svc-tabs.ty-tabs{grid-template-columns:repeat(2,minmax(0,1fr))} .ty-tabs .bz-tab:last-child{grid-column:1 / -1} }

/* ═══ v369 (Alex: the tyre tabs looked uneven, 2-line names): each tab as wide as its name, one line, the spare room shared
   evenly; only on narrow screens do they wrap back into the grid */
@media (min-width:1101px){
    .bz-tabs.svc-tabs.ty-tabs{display:flex;gap:6px}
    .ty-tabs .bz-tab{flex:1 1 auto;align-items:center;padding:6px 18px}
    .ty-tabs .bz-name{white-space:nowrap}
}

/* ═══ v370 (Alex): Обслуживание авто tabs without the fancy Great Vibes capital (the tyre tabs keep theirs) */
.svc-tabs:not(.ty-tabs) .bz-name::first-letter{font-family:inherit;font-weight:inherit;font-size:1em;margin-right:0}

/* ═══ v371 (Alex): every section list (was the white sb-cats buttons over the panel) = the Обслуживание авто bullet list
   under the filter; up to 3 equal columns, long names wrap (with the hanging indent), phones 1 column */
.sb-prof.svc-under .jb-az-flat.svc-cols.sb-bul{gap:0 3.5rem}
.svc-cols.sb-bul .svc-col{flex:1 1 0;min-width:0}
@media(min-width:1101px){ .svc-cols.sb-bul .jb-az-item span{white-space:normal} }
.svc-cols.sb-bul .jb-az-item.eco:not(.zero){color:var(--accent)}

/* ═══ v374 (Alex): the slim panel on Недвижимость too; the Тип сделки button row sits inside the sage frame ═══ */
.sdp-slim > .sdp-deal{background:#cae1c1;padding:4px 4px 0;margin:0;border:0 !important}
.sdp-slim > .sdp-deal .typ-tg{background:#fff;border:1px solid #3aa86d}
.sdp-slim > .sdp-deal .typ-tg + .typ-tg{margin-left:4px}
@media(max-width:860px){ .sdp-slim > .sdp-deal{gap:4px} .sdp-slim > .sdp-deal .typ-tg + .typ-tg{margin-left:0} }

/* ═══ v375 (Alex): the slim filter on the car pages too (#catFilterForm.car-slim: cars, car parts drills): thin sage frame
   around the boxes, green "Больше фильтров" back (v341 hid it), no Сбросить / Сохранить / Показать, picks apply themselves ═══ */
.kf-panel.cfp.kf-hpanel.car-slim{background:transparent;padding:0;box-shadow:none}
.car-slim > .cfp-grid{background:#cae1c1;padding:4px;margin:0}
.car-slim .kf-actions{margin-top:4px;padding:0}
.car-slim .cfp-reset,.car-slim .kf-actions-right{display:none !important}
#catFilterForm.car-slim .cfp-more{display:inline-flex !important}
.kf-panel.cfp.kf-hpanel.car-slim .cfp-more{background:transparent;color:#1e7a4a;padding:6px 12px}
.kf-panel.cfp.kf-hpanel.car-slim .cfp-more .cdd-chev{color:#1e7a4a}
.kf-panel.cfp.kf-hpanel.car-slim .cfp-more:hover,
.kf-panel.cfp.kf-hpanel.car-slim .cfp-more.open{background:#a8cf9a;color:#fff}
.kf-panel.cfp.kf-hpanel.car-slim .cfp-more:hover .cdd-chev,
.kf-panel.cfp.kf-hpanel.car-slim .cfp-more.open .cdd-chev{color:#fff}
/* v375: Комплектация opens as the wide striped sheet (3 columns), like the job tick lists */
@media(min-width:861px){
#catFilterForm .kf-row{position:relative}
#catFilterForm .cdd:has(input[name=feature]){position:static}
#catFilterForm .cdd:has(input[name=feature]) .cdd-pop{
    top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;overflow:visible;columns:3;column-gap:0;
    --rh:2.6rem;padding:18px 0 var(--rh);box-shadow:none;border:1px solid #3aa86d;
    background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) content-box, #fff}
#catFilterForm .cdd:has(input[name=feature]) .cdd-check{
    break-inside:avoid;height:var(--rh);line-height:var(--rh);padding:0 16px;font-size:1.05rem;background:transparent;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px;box-sizing:border-box}
#catFilterForm .cdd:has(input[name=feature]) .cdd-check:hover{background:rgba(0,173,101,.1)}
}

/* v377 (Alex's mockups): Готовый бизнес / Оборудование / Деловые услуги = the bullet list under the panel in 2 columns as
   wide as 2 of /c/pakalpojumi's 3; job field pages get their name as a title over the profession list */
@media(min-width:861px){ .sb-prof.svc-under .jb-az-flat.svc-cols.sb-bul.bul2{width:calc((100% - 7rem) / 3 * 2 + 3.5rem)} }
.jb-field-head{margin:22px 0 14px;border-bottom:0;padding-bottom:0}
@media(max-width:860px){ .jb-field-head{margin-top:14px} }

/* v378 (Alex): Готовый бизнес / Оборудование / Деловые услуги: the picked sub-section keeps the hover background */
.sb-prof.bul-biz .jb-az-item.active{background:#eefaf4;color:var(--accent-hover)}
.sb-prof.bul-biz .jb-az-item.active span{-webkit-text-stroke:.5px currentColor}

/* v380 (Alex, ss.com): "Дни работы" column = days over hours; phones (folded rows) one line "Посменно, 08-22" */
@media(max-width:860px){ .wd-br{display:none} .wd-h::before{content:", "} }

/* v381 (Alex's mockup): homepage: a soft green line under every category title, as wide as a hovered section's background
   (the column + 6px each side); picture tiles (Транспорт, Недвижимость, Запчасти, fashion) hover = his #e6fbe5 (v398; was #e0ffdf) */
.home-drop .hd-ul{position:relative}
.home-drop .hd-ul::before{content:"";position:absolute;left:-6px;right:-6px;top:0;height:2px;background:#cfe8d6}
.kf-tile:hover{background:#e6fbe5}
/* v383: the v381 carousel square hover is undone (Alex) */

/* v382 (Alex): the line under the homepage titles = the homeGrid frame's look (mint 1px + green glow), glow only downwards;
   the fancy У (Услуги) gets a gap before the rest of the name (its arm ran into "с") */
.home-drop .hd-ul::before{height:1px;background:#bfe6d1;box-shadow:0 3px 6px -1px rgba(0,173,101,.32)}
.home-drop .home-cat-name.gap::first-letter{margin-right:.05em}

/* v383 (Alex: the v382 glow was too faint to see): the line under the homepage titles = 1px mint + a 7px green fade
   painted BELOW it (gradient, so it can't spread upwards) */
.home-drop .hd-ul::before{height:8px;box-shadow:none;pointer-events:none;
  background:linear-gradient(to bottom,#a9dcc0 0,#a9dcc0 1px,rgba(0,173,101,.2) 1px,rgba(0,173,101,0) 8px)}

/* v384 (Alex): softer title line (1px mint + a short faint fade below); the У keeps the normal small gap after it, and the
   LINE has a gap where the У's tail crosses it (Услуги; measured: the loop crosses 13-31px from the line's left end) */
.home-drop .hd-ul::before{height:4px;background:linear-gradient(to bottom,#bfe6d1 0,#bfe6d1 1px,rgba(0,173,101,.12) 1px,rgba(0,173,101,0) 4px)}
/* v385: the v384 mask gap is gone (it only fit at one size); see v385 below */

/* v385 (Alex: the v384 gap only fit at one zoom): the fancy initial on the homepage names has a WHITE halo (stroke painted
   under the fill) and the name sits above the title line, so wherever a letter's tail crosses the line the line breaks
   around it, at any size / zoom / font, for every name (not only У) */
.home-drop .hd-head{position:relative;z-index:1}
.home-drop .home-cat-name::first-letter{-webkit-text-stroke:5px #fff;paint-order:stroke fill}

/* v386 (Alex): title line ~20% shorter on the right; the white halo around the fancy initial wider (9px stroke = ~4.5px each
   side), so the break in the line around the У tail is clearly visible at 100% too */
.home-drop .hd-ul::before{right:19%}
.home-drop .home-cat-name::first-letter{-webkit-text-stroke:9px #fff}

/* v387 (Alex: still no break in his browser): the halo is white TEXT-SHADOWS instead of text-stroke + paint-order
   (text-shadow works on ::first-letter in every browser); 8 directions x 3px + a soft one */
.home-drop .home-cat-name::first-letter{-webkit-text-stroke:0;paint-order:normal;
  text-shadow:3px 0 0 #fff,-3px 0 0 #fff,0 3px 0 #fff,0 -3px 0 #fff,2px 2px 0 #fff,-2px 2px 0 #fff,2px -2px 0 #fff,-2px -2px 0 #fff,0 0 4px #fff}

/* v388 (Alex): the homepage title lines moved ~10% to the right (same length) */
.home-drop .hd-ul::before{left:calc(10% - 6px);right:9%}

/* v389 (Alex): the fancy first letters on the homepage (category names + carousel) glow soft green; the green shadow comes
   first so it sits over the white halo that breaks the title line */
.home-drop .home-cat-name::first-letter{
  text-shadow:0 0 6px rgba(0,173,101,.55),3px 0 0 #fff,-3px 0 0 #fff,0 3px 0 #fff,0 -3px 0 #fff,2px 2px 0 #fff,-2px 2px 0 #fff,2px -2px 0 #fff,-2px -2px 0 #fff}
.hc-section .hc-name::first-letter{text-shadow:0 0 6px rgba(0,173,101,.55)}


/* v393 (Alex): the green glow on the fancy initials only on the hovered name (homepage names + carousel); the text colour
   stays as it is (no green names) */
.home-drop .home-cat-name::first-letter{
  text-shadow:3px 0 0 #fff,-3px 0 0 #fff,0 3px 0 #fff,0 -3px 0 #fff,2px 2px 0 #fff,-2px 2px 0 #fff,2px -2px 0 #fff,-2px -2px 0 #fff}
.home-drop .home-cat-header:hover .home-cat-name::first-letter{
  text-shadow:0 0 6px rgba(0,173,101,.55),3px 0 0 #fff,-3px 0 0 #fff,0 3px 0 #fff,0 -3px 0 #fff,2px 2px 0 #fff,-2px 2px 0 #fff,2px -2px 0 #fff,-2px -2px 0 #fff}
.hc-section .hc-name::first-letter{text-shadow:none}
.hc-section .hc-card:hover .hc-name::first-letter{text-shadow:0 0 6px rgba(0,173,101,.55)}

/* v394 (Alex): biz tabs' picked sub-section = fancy title under the bullet list, ads right under it */
.biz-sec-head{margin:30px 0 0}
.sb:has(.biz-sec-head){margin-bottom:14px}
@media(max-width:860px){ .biz-sec-head{margin-top:20px} .sb:has(.biz-sec-head){margin-bottom:10px} }

/* v395 (Alex): Часы работы in the post form = [HH]:[MM] – [HH]:[MM] dropdowns */
.tr-pick{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tr-pick select{width:auto;min-width:4.4rem;flex:0 0 auto}
.tr-pick .tr-colon{font-weight:700;color:#3d4247}
.tr-pick .tr-dash{margin:0 8px;color:#3d4247}
@media(min-width:601px){ .form-group:has(> .tr-pick){grid-column:span 2} .tr-pick{flex-wrap:nowrap} }
.tr-pick select{padding-right:1.6rem}
.tr-pick .tr-side{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
@media(max-width:600px){ .tr-pick .tr-dash{margin:0 4px} .tr-pick select{min-width:3.9rem} }

/* ═══ v396 (Alex): Личный кабинет in the new style (like /c/pakalpojumi, /c/darbs/vakances): white page, Cambria,
   Great Vibes capitals on the titles + menu, sage frames, white boxes with the green outline, square corners, mint hover ═══ */
.acc-page{background:#fff;font-family:Cambria,Caladea,Georgia,serif}
.acc-page input,.acc-page select,.acc-page textarea,.acc-page button{font-family:inherit}
.acc-page .page-title{font-family:Cambria,Caladea,Georgia,serif;color:#1f1f1f;font-weight:700}
.acc-page .page-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
/* sidebar = sage frame, menu like the Работа и бизнес tabs */
.acc-side{border:4px solid #cae1c1;border-radius:0;box-shadow:none;padding:14px}
.acc-avatar{border-radius:1px}
.acc-user{border-bottom-color:#cae1c1}
.acc-user-name{font-size:1.08rem;color:#1d4a6b}
.acc-nav{gap:3px}
.acc-nav a{border-radius:0;font-size:1.08rem;font-weight:700;color:#1d4a6b;padding:9px 12px}
.acc-nav a span::first-letter{font-family:'Great Vibes',cursive;font-size:1.45em;font-weight:400;line-height:.8;margin-right:.03em}
.acc-nav a svg{color:#6b8f7a}
.acc-nav a:hover{background:#eefaf4;color:#1e7a4a}
.acc-nav a.active{background:#eefaf4;color:#1e7a4a;box-shadow:inset 3px 0 0 #1e7a4a}
.acc-nav a.active svg,.acc-nav a.active em,.acc-nav a:hover svg{color:#1e7a4a}
.acc-free{border-top-color:#cae1c1;color:#1e7a4a}
/* cards: square, thin mint line */
.acc-card{border-radius:0;border-color:#cfe3c8;box-shadow:none}
/* Мои объявления: the two dropdowns sit in a sage strip like the filter panels */
.acc-page .ml-filters{background:#cae1c1;padding:4px;margin:16px 0 8px;gap:4px}
.acc-page .ml-dd-btn{border:1px solid #3aa86d;border-radius:0;min-height:2.625rem;padding:8px 12px}
.acc-page .ml-dd-btn:hover,.acc-page .ml-dd.open .ml-dd-btn{border-color:#1e7a4a}
.acc-page .ml-dd-pop{border-radius:0;border:1px solid #3aa86d}
.acc-page .ml-dd-opt:hover{background:#eefaf4;color:#1e7a4a}
.acc-page .ml-dd-opt.sel{background:#eefaf4;color:#1e7a4a}
.acc-page .ml-sec,.acc-page .acc-card h2,.acc-page .acc-card h3{font-family:Cambria,Caladea,Georgia,serif;color:#1d4a6b}
.acc-page .ml-table{font-size:1.02rem}
.acc-page .ml-table th{font-size:.95rem;border-bottom-color:#cae1c1}
.acc-page .ml-table td{border-bottom-color:#e6efe2}
.acc-page .ml-tr:hover td{background:#eefaf4}
.acc-page .ml-title{color:#1d4a6b}
.acc-page .ml-title:hover{color:#1e7a4a}
.acc-page .ml-td-price{font-size:1.18rem}
.acc-page .ml-td-img img{border-radius:0}
/* forms (Профиль, пароль, удалить): white boxes with the green outline */
.acc-page .acc-form input[type=text],.acc-page .acc-form input[type=email],.acc-page .acc-form input[type=tel],
.acc-page .acc-form input[type=url],.acc-page .acc-form input[type=password],.acc-page .acc-form select,.acc-page .acc-form textarea{
    border:1px solid #3aa86d;border-radius:0;background-color:#fff;box-shadow:none}
.acc-page .acc-form input:hover,.acc-page .acc-form select:hover,.acc-page .acc-form textarea:hover{border-color:#1e7a4a}
.acc-page .acc-form input:focus,.acc-page .acc-form select:focus,.acc-page .acc-form textarea:focus{border-color:#1e7a4a;box-shadow:0 0 0 2px rgba(0,173,101,.15);outline:0}
.acc-page .acc-form label{color:#1f1f1f}
.acc-page .pr-photo,.acc-page .pr-portrait{border-radius:0}
.acc-page .btn{border-radius:1px}
.acc-page .acc-head .btn-post-plus,.acc-page .acc-head .btn{border-radius:1px}
.acc-page .ss-title{color:#1d4a6b}
.acc-page .ss-row:hover{background:#eefaf4}

/* ═══ v397 (Alex): the ad page (.ld-page) + post / edit form (.pf-page) in the new style, like Личный кабинет (v396):
   Cambria, Great Vibes capitals on titles, sage frames, white boxes with the green outline, square corners, mint hover ═══ */
.ld-page,.pf-page{font-family:Cambria,Caladea,Georgia,serif}
.ld-page input,.ld-page select,.ld-page textarea,.ld-page button,
.pf-page input,.pf-page select,.pf-page textarea,.pf-page button{font-family:inherit}
.pf-page .page-title,.ld-title{font-family:Cambria,Caladea,Georgia,serif;color:#1f1f1f;font-weight:700}
.pf-page .page-title::first-letter,.ld-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
.ld-block h2,.similar-section h2,.pf-card-title,.pf-tips h3{font-family:Cambria,Caladea,Georgia,serif;color:#1d4a6b;font-weight:700}
.ld-block h2::first-letter,.similar-section h2::first-letter,.pf-card-title::first-letter,.pf-tips h3::first-letter{
    font-family:'Great Vibes',cursive;font-size:1.5em;font-weight:400;line-height:.8;margin-right:.04em}

/* ── ad page ── */
.ld-page .gallery-main,.ld-thumb,.ld-thumb img{border-radius:1px}
.ld-quick{border-radius:0;border:4px solid #cae1c1;box-shadow:none}
.ldq-ico{color:#1e7a4a}
.ld-specs{border-radius:0}
.ld-specs dt:nth-of-type(even),.ld-specs dd:nth-of-type(even){background:#eefaf4}
.ld-specs dt{color:#1f1f1f}
.ld-specs dd a{color:#1e7a4a}
.ld-feats li{border:1px solid #3aa86d;border-radius:0;background:#fff;color:#1f1f1f}
.ld-desc{font-size:1.08rem;line-height:1.6}
.ld-map{border-radius:0;border-color:#cae1c1}
.ld-kicker{color:#6b8f7a}
.ld-price{font-family:Cambria,Caladea,Georgia,serif}
.ld-btn-solid,.ld-btn-line,.ld-page .btn{border-radius:1px}
.ld-btn-line{border:1px solid #3aa86d;color:#1e7a4a}
.ld-btn-line:hover{border-color:#1e7a4a;background:#eefaf4}
.ld-seller,.ld-saved{border-radius:0;border:4px solid #cae1c1;box-shadow:none}
.ld-seller-name{color:#1d4a6b}
.ld-seller-all{color:#1e7a4a}
.ld-seller-all:hover{background:#eefaf4}
.ld-avatar{border-radius:1px}
.ld-admin{border-radius:0;border-color:#3aa86d;background:#f4faf1}
.ld-safety{border-radius:0;background:#eefaf4}
.similar-section .listing-card{border-radius:0;border-color:#cfe3c8;font-family:Cambria,Caladea,Georgia,serif}
.similar-section .listing-card:hover{border-color:#3aa86d;background:#eefaf4}
.similar-section .listing-card-img{border-radius:0}
.similar-section .listing-card-title{color:#1d4a6b}

/* ── post / edit form ── */
.pf-card{border-radius:0;border:1px solid #cfe3c8;box-shadow:none}
.pf-page input[type=text],.pf-page input[type=email],.pf-page input[type=tel],.pf-page input[type=url],
.pf-page input[type=number],.pf-page input[type=month],.pf-page input[type=password],.pf-page select,.pf-page textarea{
    border:1px solid #3aa86d;border-radius:0;background-color:#fff;box-shadow:none}
.pf-page input:hover,.pf-page select:hover,.pf-page textarea:hover{border-color:#1e7a4a}
.pf-page input:focus,.pf-page select:focus,.pf-page textarea:focus{border-color:#1e7a4a;box-shadow:0 0 0 2px rgba(0,173,101,.15);outline:0}
.pf-page select:disabled,.pf-page input:disabled{background-color:#f7f8fa;border-color:#cdd1d6;color:#b8bcc2}
.pf-page label{color:#1f1f1f}
.pf-page .ph-drop{border:2px dashed #3aa86d;background:#fbfdfa}
.pf-page .ph-drop:hover,.pf-page .ph-drop.over,.pf-page .ph-drop.drag{background:#eefaf4;border-color:#1e7a4a}
.pf-page .ph-item{border-radius:0}
.pf-tips{border-radius:0;background:#fff;border:4px solid #cae1c1}
.pf-tips li::before{border-color:#1e7a4a}
.pf-free{color:#1e7a4a}
.pf-tab{border-radius:0;border:0;color:#3d4247}
.pf-tab:hover{background:#eefaf4;color:#1e7a4a}
.pf-tab.active{background:#eefaf4;color:#1e7a4a;border:0;box-shadow:inset 0 -3px 0 #1e7a4a}
.pf-page .btn,.pf-page .loc-map{border-radius:1px}
.pf-page .btn-outline{border-color:#3aa86d;color:#1e7a4a}
.pf-page .btn-outline:hover{background:#eefaf4;border-color:#1e7a4a}
@media(max-width:600px){ .ld-quick{padding:16px 12px;gap:16px 10px} .ld-quick .ldq-v{font-size:.9rem;word-break:normal;overflow-wrap:normal} .ld-quick .ldq-l{font-size:.78rem} }

/* ═══ v398 (Alex): open panel dropdown = everything UNDER the panel blurred + darkened (half v346's dark), on every page;
   the wide striped sheets get one more row height of white space at the bottom (padding edits in their blocks);
   the profile menu (#navUserPop) in the v396 Личный кабинет style ═══ */
.sb > :has(.cdd.open) ~ :not(script):not(style),
.sb:has(.cdd.open) ~ :not(script):not(style):not(.jm-cats-panel),
#catFilterForm:has(.cdd.open) ~ :not(script):not(style){
    filter:blur(3px) brightness(.86);pointer-events:none;user-select:none}
.sb > *,.sb ~ *,#catFilterForm ~ *{transition:filter .2s ease}
.sb:has(#sdPanel .cdd.open) .sb-prof-head,
.sb:has(#sdPanel .cdd.open) .sb-prof .jb-az-flat{filter:none}   /* the whole block is blurred now, not twice */
.sb-prof::after{background:rgba(24,28,32,.08)}

.nav-user-pop{border:4px solid #cae1c1;border-radius:0;box-shadow:0 10px 26px rgba(0,0,0,.12);padding:8px;width:260px;
    font-family:Cambria,Caladea,Georgia,serif}
.nav-user-head{border-bottom:1px solid #d7ecdf;padding:8px 12px 10px}
.nav-user-name{color:#1d4a6b;font-size:1.1rem}
.nav-user-name::first-letter{font-family:'Great Vibes',cursive;font-size:1.5em;font-weight:400;line-height:.8;margin-right:.03em}
.nav-user-pop a{border-radius:0;font-size:1.04rem;font-weight:700;color:#1d4a6b;padding:8px 12px;margin-top:2px}
.nav-user-pop a span::first-letter{font-family:'Great Vibes',cursive;font-size:1.45em;font-weight:400;line-height:.8;margin-right:.03em}
.nav-user-pop a:hover{background:#eefaf4;color:#1e7a4a;box-shadow:inset 3px 0 0 #1e7a4a}
.nav-user-count{color:#6b8f7a;font-family:Cambria,Caladea,Georgia,serif}
.nav-user-pop .nav-user-out{color:#6b7178;border-top:1px solid #d7ecdf;border-radius:0;margin-top:6px;font-weight:400}
.nav-user-pop .nav-user-out:hover{color:#1e7a4a}
.nav-user-pop .nav-user-admin{color:#1e7a4a}

/* ═══ v401 (Alex): Улица = a dropdown opening the wide striped sheet, with a search box on top ═══ */
.sdp-street-dd .cdd{width:100%}
.sdp-street-dd .cdd-btn{width:100%}
.kf-panel.cfp.kf-hpanel .sdp-street-dd .cdd-pop input.st-find{display:block;width:calc(100% - 32px);height:2.5rem;margin:0 16px 12px;padding:0 12px;
    box-sizing:border-box;border:1px solid #3aa86d;border-radius:0;background:#fff;font-family:Cambria,Caladea,Georgia,serif;font-size:1.02rem;outline:0}
.kf-panel.cfp.kf-hpanel .sdp-street-dd .cdd-pop input.st-find:focus{border-color:#1e7a4a}
.kf-hpanel .cdd-street .cdd-pop{columns:auto !important;max-height:none}
.kf-hpanel .cdd-street .st-list{--rh:2.6rem;columns:5 150px;column-gap:0;max-height:calc(var(--rh) * 10);overflow-y:auto;overscroll-behavior:contain;
    background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) local, #fff}
.kf-hpanel .cdd-street .st-list .cdd-item{break-inside:avoid;height:var(--rh);line-height:1.2;padding:0 16px;font-size:1.05rem;background:transparent;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px;box-sizing:border-box;cursor:pointer}
.kf-hpanel .cdd-street .st-list .cdd-item em{font-style:normal;font-size:.82rem;color:#8a9097;overflow:hidden;text-overflow:ellipsis}
.kf-hpanel .cdd-street .st-list .cdd-item:hover{background:rgba(0,173,101,.1)}
.kf-hpanel .cdd-street .st-list .cdd-item.sel{background:rgba(0,173,101,.14)}
.kf-hpanel .cdd-street .st-list .st-free{color:#1e7a4a;font-weight:700}
.kf-hpanel .cdd-street .st-hint{column-span:all;padding:10px 16px;color:#6b7178;font-size:1rem;background:#fff}
@media(max-width:860px){
    .kf-hpanel .cdd-street{position:static}
    .kf-hpanel .cdd-street .cdd-pop{left:0;right:0;width:auto;min-width:0;padding:12px 0}
    .kf-hpanel .cdd-street .st-list{columns:1;max-height:calc(var(--rh) * 8)}
}
.kf-hpanel .cdd-street .cdd-pop{background:#fff !important}

/* ═══ v402 (Alex): map view keeps the list on the left / map on the right down to 601px (browser zoom made the window
   "narrow" and the list jumped under the map); only phones stack them ═══ */
@media(min-width:601px) and (max-width:900px){
    .mv{grid-template-columns:minmax(260px, 44%) 1fr;grid-template-rows:none;height:calc(100vh - var(--hdr)) !important}
    .mv-mapwrap{order:0;height:auto}
    .mv-side{border-right:1px solid #eceef0}
    .mv-list{overflow-y:auto}
    .mv-thumb{flex-basis:96px;height:84px}
    .mv-card .mv-body{padding-right:0}
    .mv-card .mv-date{position:static;margin-top:2px}
}
/* phones: one column again (the v301 "470px 1fr" rule for <=1250px had beaten the old <=900px one, so the list sat
   to the RIGHT of the map, off the screen) */
@media(max-width:600px){ .mv{grid-template-columns:minmax(0, 1fr)} }

/* ═══ v404 (Alex's mom's lists): grouped business lists. Filter = one wide sheet (search box from panel.js on top, the
   groups as headed blocks in columns, a group whose entries are all filtered out hides); post form = the same groups,
   tick 1-3 ═══ */
@media(min-width:861px){
    .kf-hpanel .cdd-groups{position:static}
    .kf-hpanel .cdd-groups .cdd-pop{top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;overflow:visible;
        padding:16px 0 18px;box-shadow:none;border:1px solid #3aa86d;background:#fff}
}
.kf-panel.cfp.kf-hpanel .cdd-groups .cdd-pop input.cdd-find{display:block;width:calc(100% - 32px);height:2.5rem;margin:0 16px 12px;padding:0 12px;
    box-sizing:border-box;border:1px solid #3aa86d;border-radius:0;background:#fff;font-family:Cambria,Caladea,Georgia,serif;font-size:1.02rem;outline:0}
.kf-panel.cfp.kf-hpanel .cdd-groups .cdd-pop input.cdd-find:focus{border-color:#1e7a4a}
.cg-cols{columns:4 230px;column-gap:0}
.cg-group{break-inside:avoid;padding:0 0 12px}
.cg-head{font-family:Cambria,Caladea,Georgia,serif;font-weight:700;color:#1d4a6b;font-size:1rem;line-height:1.25;padding:4px 16px 5px}
.kf-panel .cg-group .cdd-check{display:flex;align-items:flex-start;gap:8px;padding:5px 16px;white-space:normal;line-height:1.28;font-size:.98rem}
.kf-panel .cg-group .cdd-check input{margin-top:2px;flex:0 0 auto}
.kf-panel .cg-group .cdd-check:hover{background:rgba(0,173,101,.1)}
.cg-group:not(:has(.cdd-check:not([hidden]))){display:none}
@media(max-width:860px){
    .kf-hpanel .cdd-groups{position:static}
    .kf-hpanel .cdd-groups .cdd-pop{left:0;right:0;width:auto;min-width:0;max-height:70vh;overflow-y:auto;padding:12px 0}
    .cg-cols{columns:1}
}
.spec-groups .sg-cols{columns:3 240px;column-gap:28px;margin-top:6px}
.sg-group{break-inside:avoid;margin-bottom:14px}
.sg-head{font-weight:700;color:#1d4a6b;margin-bottom:4px;line-height:1.25}
.spec-groups .cfp-feat{display:flex;align-items:flex-start;gap:8px;line-height:1.3;padding:3px 0}
.spec-groups .cfp-feat input{margin-top:3px;flex:0 0 auto}
.spec-groups .cfp-feat.off{opacity:.45}
.spec-groups-hint{font-weight:400;color:#6b7178;font-size:.88em}
.kf-panel .cg-group .cdd-check[hidden]{display:none}

/* ═══ v406 (Alex's mockup): search boxes in dropdowns. Улица: the box sits in the sheet's top-left corner, ~2 columns
   wide, thin green-grey outline, magnifier on the right; the streets are a column-first grid that flows around it
   (columns 1-2 start one row lower, 3-5 at the top). Every other dropdown search box gets the same box + magnifier. ═══ */
.kf-hpanel .cdd-street .st-box{position:relative}
.kf-hpanel .cdd-street .st-list{display:grid;grid-template-columns:repeat(5, minmax(0, 1fr));grid-auto-flow:column;
    grid-template-rows:repeat(var(--rows, 2), var(--rh));columns:auto;
    background:linear-gradient(#fff, #fff) 0 0 / 100% calc(var(--rh) * 2) no-repeat local,
        repeating-linear-gradient(to bottom, #f3faf6 0 var(--rh), #fff var(--rh) calc(var(--rh) * 2)) 0 calc(var(--rh) * 2) local, #fff}
.kf-hpanel .cdd-street .st-list .st-sp{grid-row:1;grid-column:1 / span 2}
.kf-hpanel .cdd-street .st-list .cdd-item.sel{font-weight:700;background:rgba(0,173,101,.16)}
.kf-hpanel .cdd-street .st-hint{grid-row:1;grid-column:3 / -1;align-self:center;padding:0 16px;background:transparent}
.kf-hpanel .cdd-street .st-box::before{content:'';position:absolute;left:0;top:0;width:40%;height:var(--rh, 2.6rem);background:#fff;z-index:1;pointer-events:none}
.kf-panel.cfp.kf-hpanel .sdp-street-dd .cdd-pop input.st-find{position:absolute;z-index:2;top:calc((2.6rem - 2.25rem) / 2);left:16px;
    width:calc(40% - 88px);min-width:200px;height:2.25rem;margin:0;padding:0 42px 0 12px;border:1px solid #b5d9c2;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555a60' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M15.6 15.6L21.5 21.5'/%3E%3C/svg%3E") no-repeat right 10px center / 22px 22px}
.kf-panel.cfp.kf-hpanel .sdp-street-dd .cdd-pop input.st-find:focus{border-color:#3aa86d}
.kf-panel.cfp.kf-hpanel .sdp-street-dd .cdd-pop input.st-find::placeholder{color:#8a9097}
.kf-hpanel .cdd-street input.st-find::-webkit-search-cancel-button{display:none}
@media(max-width:860px){
    .kf-hpanel .cdd-street .st-list{grid-template-columns:minmax(0, 1fr);grid-auto-flow:row;grid-template-rows:none;grid-auto-rows:var(--rh)}
    .kf-hpanel .cdd-street .st-list .st-sp{grid-column:1}
    .kf-hpanel .cdd-street .st-hint{grid-row:auto;grid-column:1;padding:10px 16px}
    .kf-hpanel .cdd-street .st-box::before{width:100%}
    .kf-panel.cfp.kf-hpanel .sdp-street-dd .cdd-pop input.st-find{width:calc(100% - 32px);min-width:0}
}
/* the other search boxes (long tick lists, place lists): same outline + magnifier */
.kf-panel .cdd-pop input.cdd-find,.cdd-pop input.cdd-find{height:2.25rem;padding:0 40px 0 12px;border:1px solid #b5d9c2;border-radius:0;
    font-family:Cambria,Caladea,Georgia,serif;font-size:1rem;box-sizing:border-box;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555a60' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M15.6 15.6L21.5 21.5'/%3E%3C/svg%3E") no-repeat right 9px center / 20px 20px}
.cdd-pop input.cdd-find:focus{border-color:#3aa86d}
.cdd-pop input.cdd-find::placeholder{color:#8a9097}
.cdd-pop input.cdd-find::-webkit-search-cancel-button{display:none}
/* v407 (Alex): the Улица search box 9px higher, centred between the sheet's top edge and the Любая row */
.kf-panel.cfp.kf-hpanel .sdp-street-dd .cdd-pop input.st-find{top:calc((2.6rem - 2.25rem) / 2 - 9px)}

/* ═══ v408 (Alex): mom's business lists under her numbered group headings (page list, Подраздел sheet, Категории menu) ═══ */
.bg-num{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:1.35rem;height:1.35rem;padding:0 3px;
    margin-right:.5rem;background:#cae1c1;color:#1d4a6b;font-family:Cambria,Caladea,Georgia,serif;font-size:.85rem;font-weight:700;box-sizing:border-box}
.sb-prof.bul-grp .bg-cols{columns:3 260px;column-gap:3rem}
.sb-prof.bul-grp .bg-group{break-inside:avoid;margin:0 0 18px}
.sb-prof.bul-grp .bg-head{display:flex;align-items:center;margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid #e1ebdb;
    font-family:Cambria,Caladea,Georgia,serif;font-size:1.08rem;font-weight:700;color:#1d4a6b;line-height:1.25}
.sb-prof.bul-grp .jb-az-flat.svc-cols.sb-bul{display:block;width:auto}
.sb-prof.bul-grp .svc-col{display:flex;flex-direction:column}
@media(max-width:860px){ .sb-prof.bul-grp .bg-cols{columns:1} }
/* Подраздел sheet: the headings are rows of their own, not clickable */
.kf-hpanel .cdd-pop .cdd-gh{display:flex;align-items:center;break-inside:avoid;break-after:avoid;height:var(--rh, 2.6rem);padding:0 16px;
    font-family:Cambria,Caladea,Georgia,serif;font-weight:700;font-size:1rem;color:#1d4a6b;white-space:nowrap;overflow:hidden;
    text-overflow:ellipsis;box-sizing:border-box;cursor:default}
/* Категории menu (Работа и бизнес panel) */
.mega-cols .mega-gh{display:flex;align-items:center;margin:12px 0 4px;font-size:.86rem;font-weight:700;color:#1d4a6b;line-height:1.3}
.mega-cols .mega-gh .bg-num{min-width:1.15rem;height:1.15rem;font-size:.75rem;margin-right:.4rem}
.mega-cols .mega-head + .mega-gh{margin-top:4px}

/* ═══ v409 (Alex): Запчасти: mom's part list ("Деталь") opens as the wide striped sheet (no search box), 5 columns ═══ */
@media(min-width:861px){
    .kf-hpanel .cdd:has(input[name=part]){position:static}
    .kf-hpanel .cdd:has(input[name=part]) .cdd-pop{top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;
        overflow:visible;columns:5 170px;column-gap:0;--rh:2.4rem;padding:18px 0 var(--rh);box-shadow:none;border:1px solid #3aa86d;
        background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) content-box, #fff}
    .kf-hpanel .cdd:has(input[name=part]) .cdd-check{break-inside:avoid;height:var(--rh);padding:0 14px;font-size:.98rem;background:transparent;
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px;box-sizing:border-box}
    .kf-hpanel .cdd:has(input[name=part]) .cdd-check:hover{background:rgba(0,173,101,.1)}
    .kf-hpanel .cdd:has(input[name=part]) .cdd-find{display:none}
}
@media(max-width:860px){
    .kf-hpanel .cdd:has(input[name=part]){position:static}
    .kf-hpanel .cdd:has(input[name=part]) .cdd-pop{left:0;right:0;width:auto;min-width:0;max-height:60vh;overflow-y:auto}
    .kf-hpanel .cdd:has(input[name=part]) .cdd-find{display:none}
}

/* ═══ v410 (Alex): Запчасти "Деталь" sheet: mom's group headings (click = tick the whole group) + search box on top ═══ */
.kf-hpanel .cdd-parts .cdd-check[hidden],.kf-hpanel .cdd-parts .pt-head[hidden]{display:none !important}
.kf-hpanel .cdd-parts .pt-head{display:flex;align-items:center;width:100%;height:var(--rh, 2.4rem);padding:0 14px;border:0;background:transparent;
    font-family:Cambria,Caladea,Georgia,serif;font-size:1rem;font-weight:700;color:#1d4a6b;text-align:left;cursor:pointer;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;break-inside:avoid;break-after:avoid;box-sizing:border-box}
.kf-hpanel .cdd-parts .pt-head:hover{background:rgba(0,173,101,.1);color:var(--accent-hover)}
.kf-hpanel .cdd-parts .cdd-pop input.cdd-find{display:block !important;column-span:all;width:calc(40% - 88px);min-width:240px;margin:0 14px 12px}
@media(max-width:860px){
    .kf-hpanel .cdd-parts .cdd-pop input.cdd-find{width:calc(100% - 28px);min-width:0;position:sticky;top:0;z-index:1}
}
@media(min-width:861px){ .kf-hpanel .cdd-parts .cdd-pop input.cdd-find{height:2.25rem;margin:0 14px calc(var(--rh) - 2.25rem)} }

/* ═══ v411 (Alex): post form "Деталь" = mom's list as one wide sheet (groups flow across 5 columns, search box on top) ═══ */
.pt-pick .spec-features-title{display:flex;align-items:baseline;gap:0;flex-wrap:wrap}
.pt-pick .pt-cur{color:#1e7a4a;font-weight:700}
.pt-pick .pt-clear{margin-left:10px;border:0;background:none;padding:0;color:#6b7178;font:inherit;font-size:.9em;text-decoration:underline;cursor:pointer}
.pt-pick .pt-clear:hover{color:var(--accent-hover)}
.pt-sheet{border:1px solid #3aa86d;background:#fff;max-height:32rem;overflow-y:auto;overscroll-behavior:contain;padding:0 0 12px}
.pt-sheet .pt-find{position:sticky;top:0;z-index:1;display:block;width:calc(40% - 28px);min-width:240px;height:2.25rem;margin:0 0 6px;
    padding:0 36px 0 12px;border:0;border-bottom:1px solid #b5d9c2;border-right:1px solid #b5d9c2;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233aa86d' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center/18px;
    font-family:Cambria,Caladea,Georgia,serif;font-size:1rem;box-sizing:border-box;outline:none}
.pt-sheet .pt-find:focus{border-color:#1e7a4a}
.pt-cols{columns:5 11rem;column-gap:0;padding:0 4px}
.pt-gh{font-family:Cambria,Caladea,Georgia,serif;font-weight:700;color:#1d4a6b;font-size:1rem;padding:10px 10px 4px;break-after:avoid;break-inside:avoid}
.pt-opt{display:flex;align-items:center;gap:7px;padding:4px 10px;font-family:Cambria,Caladea,Georgia,serif;font-size:.98rem;line-height:1.25;
    color:#22262b;cursor:pointer;break-inside:avoid}
.pt-opt input{accent-color:#00ad65;margin:0;flex:0 0 auto}
.pt-opt:hover{background:#eefaf4;color:#1e7a4a}
.pt-opt:has(input:checked){background:#e2f5ea;color:#1e7a4a;font-weight:700}
.pt-gh[hidden],.pt-opt[hidden]{display:none}
@media(max-width:860px){ .pt-sheet{max-height:60vh} .pt-sheet .pt-find{width:100%;min-width:0;border-right:0} .pt-cols{columns:2 9rem} }

/* ═══ v411 (Alex): car-parts drill groups (e.g. /c/transports/rezerves-dalas/vieglo-auto-dalas/gaz/21) in the new style ═══ */
.drill-groups{gap:26px}
.drill-group-title{font-family:Cambria,Caladea,Georgia,serif;font-size:1.4rem;font-weight:700;color:#1d4a6b;border-bottom:1px solid #a9dcc0;
    padding-bottom:4px;margin-bottom:10px}
.drill-group-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
.drill-group-items{column-gap:32px}
.drill-item{font-family:Cambria,Caladea,Georgia,serif;font-size:1.15rem;line-height:1.35;color:#22262b;padding:3px 6px;margin:0 -6px}
.drill-item:hover{background:#eefaf4;color:#1e7a4a}

/* ═══ v412 (Alex: "make it horizontal"): the post form part sheet reads LEFT TO RIGHT: each group = full-width heading,
   its parts in a 4-column grid row by row; the search box sits in a full-width white bar (parts no longer scroll beside it) ═══ */
.pt-cols{columns:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 4px}
.pt-gh{grid-column:1/-1;padding:12px 10px 4px;margin-top:4px;border-bottom:1px solid #d6eedf;font-size:1.05rem}
.pt-gh:first-child{margin-top:0}
.pt-sheet{padding-top:0}
.pt-sheet .pt-find{width:100%;min-width:0;border-right:0;margin:0;box-shadow:0 6px 6px -6px rgba(0,0,0,.12)}
@media(max-width:860px){ .pt-cols{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* ═══ v413 (Alex): car-parts drill group headings a bit bigger, plain first letter (no Great Vibes) ═══ */
.drill-group-title{font-size:1.6rem}
.drill-group-title::first-letter{font-family:inherit;font-size:1em;font-weight:inherit;line-height:inherit;margin-right:0}

/* ═══════════ v414 (Alex): bigger text everywhere, most on 1280px TVs ═══════════
   Root size from 861px: 1280px = 17px (was 15.25, +11%), 1500px+ = 17px (was 16, +6%); wider screens still get the base.html zoom on top.
   Plus the result table text and the panel box values a bit more. */
@media(min-width:861px){
    html{font-size:clamp(15px, calc(9.9px + .6vw), 17px)}
}
.st-title{font-size:1.14rem}
.st-loc{font-size:1rem}
.kf-panel.cfp.kf-hpanel .cdd-val,.kf-panel.cfp.kf-hpanel .cdd-btn{font-size:1.02rem}

/* v415 (Alex): front page titles (category names + carousel names) in Cambria italic; the Great Vibes initial stays upright */
.home-drop .home-cat-name,.hc-section .hc-name{font-style:italic}
.home-drop .home-cat-name::first-letter,.hc-section .hc-name::first-letter{font-style:normal}

/* v417 (Alex): Лес tile (forest picture) = full tile width under the name, top fades in, like Земля */
.re-tiles4 .kf-tile[data-k=mezs] .kf-tile-img{left:0;right:0;bottom:0;width:100%;max-width:none;height:auto;max-height:none;object-fit:contain;transform-origin:center bottom;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%);mask-image:linear-gradient(to bottom,transparent 0,#000 16%)}

/* v418 (Alex): homepage category names (the list, not the carousel) get the sections' mint hover square, 6px past the text
   each side (negative margin, so nothing moves); the fancy initial's halo turns mint with it so no white blobs show */
.home-drop .home-cat-header{margin:-2px -6px;padding:2px 6px;transition:background-color .15s ease}
@media(hover:hover){
  .home-drop .home-cat-header:hover{background:#eefaf4}
  .home-drop .home-cat-header:hover .home-cat-name::first-letter{
    text-shadow:0 0 6px rgba(0,173,101,.55),3px 0 0 #eefaf4,-3px 0 0 #eefaf4,0 3px 0 #eefaf4,0 -3px 0 #eefaf4,2px 2px 0 #eefaf4,-2px 2px 0 #eefaf4,2px -2px 0 #eefaf4,-2px -2px 0 #eefaf4}
}

/* v419 (Alex): the mint hover square on the homepage names is taller on top, so the tall fancy capital sits inside it */
.home-drop .home-cat-header{margin:-14px -6px -2px;padding:14px 6px 2px}

/* v420 (Alex): the mint hover square on the homepage names runs the full column width like the sections' (column + 6px each side) */
.home-drop .hd-head{width:100%}
.home-drop .home-cat-header{flex:1 1 auto;min-width:0}

/* v421 (Alex: "fully up, almost to the corners"): the name's mint hover square reaches up to ~5px under the block above
   (the first row: ~5px under the frame's top edge); negative margin, so nothing moves */
@media(min-width:1101px){
  .home-drop .home-cat-header{margin-top:calc(-14px - 2rem);padding-top:calc(14px + 2rem)}
  .home-drop .hs-col > :first-child .home-cat-header{margin-top:calc(-14px - 1.05rem);padding-top:calc(14px + 1.05rem)}
}

/* v424 (Alex): a hovered homepage name (the list, not the carousel) gets the job tabs' 3px dark green line along the bottom of
   its mint square (inset shadow, nothing moves) */
@media(hover:hover){ .home-drop .home-cat-header{transition:background-color .15s ease,box-shadow .15s ease}
  .home-drop .home-cat-header:hover{box-shadow:inset 0 -3px 0 #1e7a4a} }

/* v425 (Alex): the hover's green line sits ON the thin mint title line (the square reaches 2px further down, negative margin so
   nothing moves; the first section starts 6px under the line, so the square never touches it) */
.home-drop .home-cat-header{padding-bottom:4px;margin-bottom:-4px}

/* v426 (Alex): the thin mint title line hides while its name is hovered (the green hover line replaces it, any zoom / browser);
   fashion Женщинам / Мужчинам / Детям switch = the job tabs (bz-tabs) look */
@media(hover:hover){
    .home-drop .home-cat-block:has(.home-cat-header:hover) .hd-ul::before{opacity:0}
}
.bz-tabs.fs-tabs{grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 16px}
@media (max-width:700px){ .bz-tabs.fs-tabs{grid-template-columns:repeat(3,minmax(0,1fr))} .fs-tabs .bz-tab:last-child{grid-column:auto} .fs-tabs .bz-name{font-size:1rem} }

/* v433 (Alex): fashion title = Cambria + Great Vibes capital; switch: bigger text but the SAME size (line-height kept at the old
   .92rem x 1.6), a 3px grey outline drawn with `outline` (no layout change), picked one = 1px green ring (inset shadow, no size change) */
.sd-fh-title{font-family:Cambria,Caladea,Georgia,serif;color:#1f1f1f}
.sd-fh-title::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8;margin-right:.05em}
.sd-fh-title.tight::first-letter{margin-right:-.06em}
.sd-switch-btn{font-size:1.1rem;line-height:1.472rem}
@media (max-width:700px){ .sd-switch-btn{font-size:.98rem;line-height:1.344rem} }

/* v437 (Alex): fashion switch: no bold, no outlines; the picked one glows green; the white selection is a pill
   (.sd-switch-pill, made by the script in browse_side.html) that SLIDES to the clicked button before the page changes */
.sd-switch-btn.active{box-shadow:0 0 0 1px rgba(0,173,101,.18),0 0 12px rgba(0,173,101,.38)}
.sd-switch.js-pill{position:relative}
.sd-switch.js-pill .sd-switch-btn{position:relative;z-index:1;background:transparent;box-shadow:none}
.sd-switch-pill{position:absolute;top:4px;bottom:4px;left:0;width:0;border-radius:999px;background:#fff;
    box-shadow:0 0 0 1px rgba(0,173,101,.18),0 0 12px rgba(0,173,101,.38);
    transition:transform .42s cubic-bezier(.65,0,.35,1),width .42s cubic-bezier(.65,0,.35,1)}
.sd-switch-pill.no-anim{transition:none}
@media (prefers-reduced-motion:reduce){ .sd-switch-pill{transition-duration:.2s} }

/* v438: the sliding pill is sized / moved in % (zoom-proof): 1/n of the track, translateX(--i * 100%) */
.sd-switch-pill{left:4px;width:calc((100% - 8px) / var(--n,3)) !important;transform:translateX(calc(var(--i,0) * 100%)) !important;
    transition:transform .38s cubic-bezier(.65,0,.35,1);will-change:transform}
.sd-switch.js-pill .sd-switch-btn{transition:color .25s}
.sd-switch.js-pill .sd-switch-btn.active{color:#1f1f1f}

/* v439 (Alex): fashion switch text in Cambria (tile names got .fancy in browse_side.html: Cambria + Great Vibes capital) */
.sd-switch-btn{font-family:Cambria,Caladea,Georgia,serif}
@media (max-width:700px){
    .sd-switch ~ .kf-tiles .kf-tile-name.fancy{font-size:.86rem;hyphens:manual;-webkit-hyphens:manual;overflow-wrap:normal}
    .sd-switch ~ .kf-tiles .kf-tile-name.fancy::first-letter{font-size:1.75em}
}

/* v440 (Alex): fashion tile names on one line (the script shrinks a long one until it fits) */
.kf-tile-name.one-line{white-space:nowrap;overflow:hidden;padding-right:12px}


/* v442 (Alex): v441 inner glow undone (back to the v437 outer green glow); every picture tile = #edfdf3 (the homepage has no
   .kf-tile), hover stays #e6fbe5; switch text bigger, same pill height (line-height kept at 1.472rem) */
.sd-switch-btn{font-size:1.24rem;line-height:1.472rem}
@media (max-width:700px){ .sd-switch-btn{font-size:1.06rem;line-height:1.344rem} }

/* v443 (Alex): v442 tile background undone (grey #f4f4f5 again); the HOVER is #edfdf3 instead (every picture tile; homepage has none) */
.kf-tile:hover{background:#edfdf3}

/* v444 (Alex): small picture tiles get the same 1px mint hover outline as the big ones (v232) */
.kf-tile.kf-tile-small:hover{outline:1px solid #bfe6d1;outline-offset:-1px}

/* ═══════════ v447 (Alex): Работа и бизнес tabs, the active mint tab slides (script after nav.bz-tabs in browse_side.html) ═══════════ */
.bz-tabs.js-pill{position:relative}
.bz-tabs.js-pill .bz-tab{position:relative;z-index:1;background:transparent;box-shadow:none;transition:background .2s}
.bz-tabs.js-pill .bz-tab:hover{background:rgba(238,250,244,.7)}
.bz-tabs.js-pill .bz-tab.active,.bz-tabs.js-pill .bz-tab.active:hover{background:transparent;box-shadow:none}
.bz-pill{position:absolute;z-index:0;background:#eefaf4;box-shadow:inset 0 -3px 0 #1e7a4a;pointer-events:none;
    transition:left .38s cubic-bezier(.65,0,.35,1),top .38s cubic-bezier(.65,0,.35,1),width .38s cubic-bezier(.65,0,.35,1),height .38s cubic-bezier(.65,0,.35,1)}
.bz-pill.no-anim{transition:none}

/* ═══════════ v448 (Alex's mockup): rounded filter panels. The sage frame is rounded as ONE shape: its top corners on the
   first sage block (Тип сделки row when there is one), its bottom corners on the last VISIBLE one (the "Больше фильтров"
   grid while it is open, else row 1). White boxes + buttons get small round corners. ═══════════ */
.kf-panel.cfp.kf-hpanel{--pr:10px;border-radius:var(--pr)}
.kf-panel.cfp.kf-hpanel > .cfp-grid,.kf-panel.cfp.kf-hpanel > .sdp-deal{border-radius:var(--pr)}
.kf-panel.cfp.kf-hpanel > .sdp-deal{border-bottom-left-radius:0;border-bottom-right-radius:0}
.kf-panel.cfp.kf-hpanel > .sdp-deal + .cfp-grid{border-top-left-radius:0;border-top-right-radius:0}
.kf-panel.cfp.kf-hpanel > .re-rowx{border-top-left-radius:0;border-top-right-radius:0}
.kf-panel.cfp.kf-hpanel:has(.cfp-more.open) > .cfp-grid:has(+ .re-rowx){border-bottom-left-radius:0;border-bottom-right-radius:0}
.kf-panel.cfp.kf-hpanel > .cfp-grid,.kf-panel.cfp.kf-hpanel > .sdp-deal{transition:border-radius .12s}
.kf-panel.cfp.kf-hpanel .kf-row .cdd-btn,.kf-panel.cfp.kf-hpanel .kf-row .cfp-bool,.kf-panel.cfp.kf-hpanel .sdp-street input,
.kf-panel.cfp.kf-hpanel .sdp-q,.kf-panel.cfp.kf-hpanel .typ-more .cdd-btn,.kf-panel.cfp.kf-hpanel .typ-more .cfp-bool,
.kf-panel.cfp.kf-hpanel .sdp-deal .typ-tg{border-radius:6px}
.kf-panel.cfp.kf-hpanel .cfp-more,.kf-panel.cfp.kf-hpanel .kf-show,.kf-panel.cfp.kf-hpanel .kf-save{border-radius:6px}

/* v449 (Alex): Работа и бизнес tab slide starts quicker (less slow start, still eases into place) */
.bz-pill{transition-timing-function:cubic-bezier(.3,.2,.25,1)}

/* ═══════════ v450 (Alex) ═══════════ */
/* filter boxes a bit shorter: a nudge on big screens, more on 1280-ish screens (his dad's TV); phones unchanged */
@media (min-width:861px){
.kf-panel.cfp.kf-hpanel{--fbh:2.45rem}
@media (max-width:1500px){ .kf-panel.cfp.kf-hpanel{--fbh:2.25rem} }
.kf-panel.cfp.kf-hpanel .kf-row .cdd-btn,.kf-panel.cfp.kf-hpanel .kf-row .cfp-bool,.kf-panel.cfp.kf-hpanel .sdp-street input,
.kf-panel.cfp.kf-hpanel .sdp-q,.kf-panel.cfp.kf-hpanel .typ-more .cdd-btn,.kf-panel.cfp.kf-hpanel .typ-more .cfp-bool,
.sdp .re-row1 .cdd-btn,.sdp .re-row1 .cdd-loc .cdd-btn,.sdp .re-row1 .sdp-street input,.sdp .svc-row1 .cfp-bool,.sdp .svc-row1 .sdp-q,
.sdp .loc3 .sdp-street input{height:var(--fbh) !important;min-height:0 !important}
}
/* Работа и бизнес tab capital 1.4em (was 1.6em) */
.bz-tabs:not(.svc-tabs) .bz-name::first-letter{font-size:1.4em}
/* tab slide: a short soft start, then full speed right into place (no slowing down at the end) */
.bz-pill{transition-timing-function:cubic-bezier(.35,0,.65,.65)}

/* v451 (Alex): tab slide at one steady pace, faster (.28s next tab, +.11s per tab further) */
.bz-pill{transition-timing-function:linear}

/* v453 (Alex): the slide is a transform animation (WAAPI, script), so the pill itself has no transition; origin top-left for the FLIP scale */
.bz-pill{transition:none;transform-origin:0 0;will-change:transform}

/* v454 (Alex): homepage name hover line 2px (was 3px), as thick as the title line it replaces */
@media (hover:hover) and (pointer:fine){ .home-drop .home-cat-header:hover{box-shadow:inset 0 -2px 0 #1e7a4a} }

/* v455 (Alex): Категории menu sub-sections black instead of grey (hover stays green) */
.mega-subsub{color:#000}
.mega-subsub:hover{color:var(--accent-hover)}

/* v456 (Alex): Работа и бизнес tab line 2px (was 3px); blank filler box(es) at the empty end of a panel's first row
   (same look as the boxes, nothing inside) */
.bz-pill{box-shadow:inset 0 -2px 0 #1e7a4a}
.bz-tab.active{box-shadow:inset 0 -2px 0 #1e7a4a}
.bz-tabs.js-pill .bz-tab.active,.bz-tabs.js-pill .bz-tab.active:hover{box-shadow:none}
.kf-panel.cfp.kf-hpanel .sdp-fill{background:#fff;border:1px solid #3aa86d;border-radius:6px;min-height:var(--fbh,2.625rem);box-sizing:border-box;pointer-events:none}
/* v456: Раздел sheet = 2 columns (mom's group titles are long), counts grey like Подраздел */
@media(min-width:861px){ .kf-hpanel .sdp-grp-dd .cdd-pop{columns:2 300px} }
.kf-hpanel .sdp-grp-dd .cdd-item em{font-style:normal;font-size:.85em;color:#8a9097;margin-left:6px}
@media(max-width:860px){
    .kf-hpanel .sdp-grp-dd{position:static}
    .kf-hpanel .sdp-grp-dd .cdd-pop{top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px}
    .kf-hpanel .sdp-grp-dd .cdd-item{white-space:normal}
}

/* v457 (Alex): Работа и бизнес tab names sit a bit lower, closer to the green line (tab height unchanged) */
.bz-tabs:not(.svc-tabs):not(.sec-tabs) .bz-name{position:relative;top:.3rem}

/* v459 (Alex): Недвижимость picture tiles = pale blue #effafe + soft shadow; hover = our pale green (#edfdf3) */
.re-tiles4 .kf-tile{background:#effafe;box-shadow:0 2px 8px rgba(29,74,107,.14);transition:background-color .18s,box-shadow .18s}
.re-tiles4 .kf-tile:hover{background:#edfdf3;box-shadow:0 3px 12px rgba(0,173,101,.22)}

/* v462 (Alex): picture tiles on Недвижимость + the Транспорт landing = pale blue + a clearer resting shadow, pale green on hover */
.re-tiles4 .kf-tile, .kf-tiles-blue .kf-tile{background:#effafe;box-shadow:0 1px 3px rgba(29,74,107,.12),0 4px 12px rgba(29,74,107,.18);transition:background-color .18s,box-shadow .18s}
.re-tiles4 .kf-tile:hover, .kf-tiles-blue .kf-tile:hover{background:#edfdf3;box-shadow:0 1px 3px rgba(0,173,101,.14),0 5px 14px rgba(0,173,101,.24)}
/* v462: map view list cards = subtle shadow, photo as tall as the card (no empty space under it), wider list */
.mv-list{padding-top:8px}
.mv-list .mv-card{align-items:stretch;background:#fff;box-shadow:0 1px 3px rgba(31,35,40,.08),0 3px 10px rgba(31,35,40,.08)}
.mv-list .mv-card:hover{box-shadow:inset 0 0 0 1px #9a9ea4,0 3px 12px rgba(31,35,40,.12)}
.mv-list .mv-card.active{background:#fff7e6;box-shadow:inset 0 0 0 1px #f2c46d,0 3px 12px rgba(31,35,40,.12)}
.mv-list .mv-thumb{flex:0 0 210px;height:auto;min-height:140px;align-self:stretch}
@media(min-width:1251px){ .mv{grid-template-columns:640px 1fr} }
@media(max-width:1250px) and (min-width:901px){ .mv{grid-template-columns:540px 1fr} .mv-list .mv-thumb{flex-basis:180px} }
@media(max-width:900px){ .mv-list .mv-thumb{flex-basis:120px;min-height:100px} }
/* v462: a section with no ads (jb-az-item.zero) has no link: default cursor, grey hover instead of green */
.jb-az-item.zero{cursor:default}
.jb-az-item.zero:hover, .sb-prof .jb-az-item.zero:hover{background:#f1f2f4;color:#8a9097}
.jb-az-item.zero:hover span{-webkit-text-stroke:0}

/* v463 (Alex's screenshot): filter panel frame grey #d1d3d7 instead of sage, rows closer (4px apart, was 8px) */
.kf-panel.cfp.kf-hpanel > .cfp-grid,.kf-panel.cfp.kf-hpanel > .sdp-deal,.kf-panel.cfp.kf-hpanel.typ{background:#d1d3d7}
.kf-panel.cfp.kf-hpanel > .cfp-grid{row-gap:4px}
.kf-panel.cfp.kf-hpanel > .re-rowx{padding-top:0}

/* v464 (Alex): picture tile shadow even on all 4 sides (no downward offset), as strong as the old bottom edge */
.re-tiles4 .kf-tile, .kf-tiles-blue .kf-tile{box-shadow:0 0 4px rgba(29,74,107,.14),0 0 14px 2px rgba(29,74,107,.16)}
.re-tiles4 .kf-tile:hover, .kf-tiles-blue .kf-tile:hover{box-shadow:0 0 4px rgba(0,173,101,.16),0 0 16px 2px rgba(0,173,101,.22)}

/* v465 (Alex): 404 page = the cat video on the left, 404 + text + search on the right (stacked on phones) */
.nf-page.nf-cat{max-width:860px;display:flex;align-items:center;justify-content:center;gap:56px;text-align:left;padding:40px 0}
.nf-vid{position:relative;flex:0 0 auto;width:280px;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:#eceef0;box-shadow:0 0 4px rgba(29,74,107,.14),0 0 14px 2px rgba(29,74,107,.16)}
.nf-vid video{width:100%;height:100%;object-fit:cover;display:block}
.nf-snd{position:absolute;right:10px;bottom:10px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.85);color:#1d4a6b;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}
.nf-snd:hover{background:#fff;color:var(--accent-hover)}
.nf-snd .nf-w{display:none}
.nf-snd.on .nf-w{display:inline}
.nf-snd.on .nf-x{display:none}
.nf-text{flex:1 1 auto;min-width:0;max-width:440px}
.nf-cat .nf-search{margin:22px 0 14px}
@media(max-width:700px){
  .nf-page.nf-cat{flex-direction:column;gap:22px;text-align:center;padding:24px 0}
  .nf-vid{width:min(220px,62vw)}
}
/* v465: Недвижимость "Услуги" tile picture sits a bit in from the right edge and grows to the left on hover (the keys got cut off) */
.re-tiles4 .kf-tile[data-k=pakalpojumi] .kf-tile-img{left:auto;right:7%;width:86%;object-position:right bottom}
.re-tiles4 .kf-tile[data-k=pakalpojumi]:hover .kf-tile-img{transform-origin:right bottom}


/* v467 (Alex): 404 page bigger: wider block, bigger video, 404 / title / text / search / link all larger */
.nf-page.nf-cat{max-width:1120px;gap:72px}
.nf-vid{width:340px}
.nf-text{max-width:600px}
.nf-cat .nf-code{font-size:9.5rem}
.nf-cat h1{font-size:2.3rem;margin:14px 0 10px}
.nf-cat p{font-size:1.3rem}
.nf-cat .nf-search{margin:30px 0 20px;gap:10px}
.nf-cat .nf-search input{height:58px;font-size:1.15rem;padding:0 20px}
.nf-cat .nf-search .btn{height:58px;font-size:1.1rem;padding:0 28px}
.nf-cat .nf-home{font-size:1.2rem}
@media(max-width:1000px) and (min-width:701px){ .nf-page.nf-cat{gap:40px} .nf-vid{width:270px} .nf-cat .nf-code{font-size:7rem} }
@media(max-width:700px){
  .nf-vid{width:min(240px,64vw)}
  .nf-cat .nf-code{font-size:6rem}
  .nf-cat h1{font-size:1.6rem}
  .nf-cat p{font-size:1.05rem}
  .nf-cat .nf-search input,.nf-cat .nf-search .btn{height:50px;font-size:1rem}
}

/* v468 (Alex): v466's solid #a8cf9a undone; hovered + picked rows in the wide sheets = their old light green with
   #a8cf9a at 50% laid on top */
@media(min-width:861px){
    .kf-hpanel :is(.cdd-city,.cdd-district,.cdd-wide,.cdd-street) .cdd-item:hover,
    .kf-hpanel :is(.cdd-city,.cdd-district,.cdd-wide,.cdd-street) .cdd-item.sel,
    .kf-hpanel :is(.cdd-wide,.re-rowx .cdd,.svc-row1 .cdd) .cdd-check:hover,
    .kf-hpanel :is(.cdd-wide,.re-rowx .cdd,.svc-row1 .cdd) .cdd-check:has(input:checked){
        background-image:linear-gradient(rgba(168,207,154,.5),rgba(168,207,154,.5))}
}
/* v468: no blur / darkening under an open panel dropdown any more (v346 + v398 undone); the open sheet casts a clear shadow instead */
.sb > :has(.cdd.open) ~ :not(script):not(style),
.sb:has(.cdd.open) ~ :not(script):not(style):not(.jm-cats-panel),
#catFilterForm:has(.cdd.open) ~ :not(script):not(style),
.sb:has(#sdPanel .cdd.open) .sb-prof-head,
.sb:has(#sdPanel .cdd.open) .sb-prof .jb-az-flat{filter:none;pointer-events:auto;user-select:auto}
.sb:has(#sdPanel .cdd.open) .sb-prof::after{opacity:0}
.kf-hpanel .cdd.open > .cdd-pop{box-shadow:0 10px 28px rgba(20,30,40,.22),0 2px 6px rgba(20,30,40,.12) !important}

/* v469 (Alex): wide-sheet HOVER a tad darker than the picked row (picked keeps v468's 50% layer; hover = 75%, also on a picked row) */
@media(min-width:861px){
    .kf-hpanel :is(.cdd-city,.cdd-district,.cdd-wide,.cdd-street) .cdd-item:hover,
    .kf-hpanel :is(.cdd-wide,.re-rowx .cdd,.svc-row1 .cdd) .cdd-check:hover{
        background-image:linear-gradient(rgba(168,207,154,.75),rgba(168,207,154,.75))}
}

/* v470 (Alex: buggy hover): the Услуги tile picture keeps its bottom-right transform-origin at rest too; v465 only set it on
   :hover, so on mouse-out the origin snapped to the centre mid-animation and the picture jumped */
.re-tiles4 .kf-tile[data-k=pakalpojumi] .kf-tile-img,
.re-tiles4 .kf-tile[data-k=pakalpojumi]:hover .kf-tile-img{transform-origin:right bottom}

/* v475 (Alex): picture tiles on Недвижимость + the Транспорт landing = white instead of pale blue (shadow + green hover unchanged) */
.re-tiles4 .kf-tile, .kf-tiles-blue .kf-tile{background:#fff}
.re-tiles4 .kf-tile:hover, .kf-tiles-blue .kf-tile:hover{background:#edfdf3}

/* v476 (Alex): Запчасти part tiles = the white + shadow look (kf-tiles-blue); a bit of room so the shadow doesn't touch the title */
.sd-part-tiles{margin-bottom:18px}

/* v479 (Alex's "доп об.txt"): Комплектация has 70 options now: the car panel's sheet in 4 columns, a bit smaller text */
@media(min-width:861px){
#catFilterForm .cdd:has(input[name=feature]) .cdd-pop{columns:4}
#catFilterForm .cdd:has(input[name=feature]) .cdd-check{font-size:.98rem;padding:0 12px}
}
/* v479: long names (Проекция на лобовое стекло (Head-Up Display)...) wrap onto 2 lines inside their row instead of "…" */
@media(min-width:861px){
#catFilterForm .cdd:has(input[name=feature]) .cdd-check{white-space:normal;line-height:1.12;text-overflow:clip}
}

/* v480 (Alex's "ДОПОБ.txt"): Комплектация in 5 groups: each group = a block with a heading (one row high, so the stripes stay in
   line), blocks flow through the 4 columns and never split */
@media(min-width:861px){
#catFilterForm .cdd:has(input[name=feature]) .cdd-pop.cdd-fgroups{columns:4}
.cdd-fgroups .fg-block{break-inside:avoid}
#catFilterForm .cdd-fgroups .fg-block{display:block}
}
.cdd-fgroups .fg-head{height:var(--rh, 2.4rem);display:flex;align-items:center;padding:0 12px;font-family:Cambria,Caladea,Georgia,serif;
    font-weight:700;color:#1d4a6b;font-size:1rem;line-height:1.1;white-space:normal}
.cdd-fgroups .fg-head::first-letter{font-family:'Great Vibes',cursive;font-size:1.5em;font-weight:400}
.spec-fg-head{margin:14px 0 6px;font-family:Cambria,Caladea,Georgia,serif;font-weight:700;color:#1d4a6b;font-size:1.05rem}
.spec-fg-head:first-of-type{margin-top:4px}
/* v480b: the groups may continue in the next column (66 rows over 4 columns = even columns); a heading never sits alone at a column end */
@media(min-width:861px){
.cdd-fgroups .fg-block{break-inside:auto}
.cdd-fgroups .fg-head{break-after:avoid;break-inside:avoid}
}
.cdd-fgroups .fg-head::first-letter{font-family:inherit;font-size:1em;font-weight:inherit}

/* v481 (Alex): Комплектация reads HORIZONTALLY: every group = a full-width heading row, then its options 4 per row, left to
   right (every row is one --rh high, so the sheet's stripes stay in line); hover = the RE wide sheets (v469); v482: a ticked row has no background, only the tick */
@media(min-width:861px){
#catFilterForm .cdd:has(input[name=feature]) .cdd-pop.cdd-fgroups{columns:auto}
#catFilterForm .cdd-fgroups .fg-block{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#catFilterForm .cdd-fgroups .fg-head{grid-column:1 / -1;background:#fff;box-shadow:inset 0 -1px 0 #cfe8d6;font-size:1.05rem;padding:0 16px}
#catFilterForm .cdd:has(input[name=feature]) .cdd-check{background-color:transparent}
#catFilterForm .cdd:has(input[name=feature]) .cdd-check:hover{background-color:rgba(0,173,101,.1);
    background-image:linear-gradient(rgba(168,207,154,.75),rgba(168,207,154,.75))}
#catFilterForm .cdd:has(input[name=feature]) .cdd-check:has(input:checked):not(:hover){background-image:none}
}

/* ═══ v485 TEST (Alex: mockup first; /test/car-v2 sets a cookie, /test/car-v2/off removes it): ss.com-like car page.
   Panel row Марка, Модель, Цена, Год, Объём (от / до dropdowns), Двигатель, Коробка, Кузов, Пробег; brand / model list
   compact (ss.com width), counts green "(N)" almost full size, entries without ads greyed. Font NOT changed. ═══ */
#catFilterForm.cv2 .cv2-eng .cdd-pop-range select{flex:1 1 0;min-width:0;height:2.3rem;padding:0 6px;border:1px solid #3aa86d;
    border-radius:6px;background:#fff;font:inherit;font-size:1rem;color:#1f1f1f}
.kf-links.cv2-links{max-width:64rem;columns:4;column-gap:2.5rem}
.kf-links.cv2-links .kf-link{font-size:1.12rem;line-height:1.3;padding:2px 0;color:#1a1d21}
.kf-links.cv2-links .kf-link em{font-size:.9em;color:#1f8a4c;margin-left:4px}
.kf-links.cv2-links .kf-link.zero{color:#a6abb1}
.kf-links.cv2-links .kf-link.zero em{display:none}
.kf-links.cv2-links .kf-link:hover{color:var(--accent)}
@media (max-width:1100px){.kf-links.cv2-links{columns:3}}
@media (max-width:700px){.kf-links.cv2-links{columns:2;column-gap:16px}.kf-links.cv2-links .kf-link{font-size:1rem}}
/* v485 TEST b (Alex: "we're wasting a lot of space"): Комплектация sheet like ss.com: the groups side by side as columns
   (heading on top, the big first group in 2 columns), short rows, no stripes, long names wrap */
@media(min-width:861px){
#catFilterForm.cv2 .cdd:has(input[name=feature]) .cdd-pop.cdd-fgroups{display:none;background:#fff;padding:14px 16px 18px;gap:0 22px;align-items:flex-start}
#catFilterForm.cv2 .cdd.open:has(input[name=feature]) .cdd-pop.cdd-fgroups{display:flex}
#catFilterForm.cv2 .cdd-fgroups .fg-block{display:block;flex:1 1 0;min-width:0}
#catFilterForm.cv2 .cdd-fgroups .fg-block:first-child{flex:2 1 0;columns:2;column-gap:22px}
#catFilterForm.cv2 .cdd-fgroups .fg-head{column-span:all;height:auto;padding:4px 6px 6px;margin-bottom:4px;background:#f1f3f4;
    box-shadow:none;font-size:1rem}
#catFilterForm.cv2 .cdd:has(input[name=feature]) .cdd-check{display:flex;align-items:flex-start;gap:6px;height:auto;min-height:0;
    padding:3px 6px;font-size:.95rem;line-height:1.25;break-inside:avoid}
#catFilterForm.cv2 .cdd:has(input[name=feature]) .cdd-check input{margin-top:.18em;flex:none}
}

/* v488 (Alex's mockup): Компьютеры panel = 6 equal boxes per row (row 1 parts, "Больше фильтров" place / deal / state / seller / price) */
@media(min-width:1101px){ .sdp .cfp-grid.pc-row{grid-template-columns:repeat(6, minmax(0, 1fr))} }
@media(min-width:861px) and (max-width:1100px){ .sdp .cfp-grid.pc-row{grid-template-columns:repeat(3, minmax(0, 1fr))} }
.sdp .loc3.pc-row .cdd-district-box.cfp-hid,.sdp .loc3.pc-row .cfp-hid{display:none !important}
/* v491: blank filler at the end of a short Компьютерная техника row (only where the row has 6 columns) */
.sdp .pc-row .pc-fill{display:none}
@media(min-width:1101px){ .sdp .pc-row .pc-fill{display:block} }
/* v491: Компьютерная техника 6-box rows: a touch smaller text + padding on 861-1499px, so "Оперативная память" fits at 1280 */
@media(min-width:861px) and (max-width:1499px){
    .sdp .pc-row .cdd-btn{padding-left:8px;padding-right:6px}
    .kf-panel.cfp.kf-hpanel .pc-row .cdd-val,.kf-panel.cfp.kf-hpanel .pc-row .cdd-btn{font-size:.92rem}
}
@media(max-width:860px){
    .sdp .pc-row .cdd-btn{padding-left:8px;padding-right:6px}
    .kf-panel.cfp.kf-hpanel .pc-row .cdd-val,.kf-panel.cfp.kf-hpanel .pc-row .cdd-btn{font-size:.86rem}
}
.kf-panel.cfp.kf-hpanel .pc-row .pc-fill{background:#fff;border:1px solid #3aa86d;border-radius:6px;min-height:var(--fbh,2.625rem);box-sizing:border-box;pointer-events:none}
@media(max-width:1100px){ .kf-panel.cfp.kf-hpanel .pc-row .pc-fill{display:none} }

/* ═══ v493 (Alex mockup): Обслуживание авто group tabs = separate rounded cards with the tiles' soft all-round shadow;
   the active one mint, its dark green line sits under the card (gap), not on its bottom edge. Tyre tabs unchanged. ═══ */
.bz-tabs.svc-tabs:not(.ty-tabs){gap:12px;padding:4px 2px 0;margin-bottom:26px}
.bz-tabs.svc-tabs:not(.ty-tabs) .bz-tab{border-radius:8px;box-shadow:0 0 4px rgba(29,74,107,.14),0 0 14px 2px rgba(29,74,107,.13) !important}
.bz-tabs.svc-tabs:not(.ty-tabs) .bz-tab:hover{background:rgba(238,250,244,.7)}
.bz-tabs.svc-tabs:not(.ty-tabs) .bz-tab.active,.bz-tabs.svc-tabs:not(.ty-tabs) .bz-tab.active:hover{background:transparent}
.bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill{border-radius:8px;box-shadow:none}
.bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill::after{content:"";position:absolute;left:0;right:0;bottom:-14px;height:2px;background:#1e7a4a}
.bz-tabs.svc-tabs:not(.ty-tabs):not(.js-pill) .bz-tab.active{background:#eefaf4}
@media (max-width:700px){ .bz-tabs.svc-tabs:not(.ty-tabs){gap:8px;margin-bottom:20px} .bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill::after{bottom:-10px} }
/* v493: tabs wrap into 2+ rows below 1101px, so there the line sits on the card's own bottom edge (no gap into the next row) */
@media (max-width:1100px){
    .bz-tabs.svc-tabs:not(.ty-tabs){margin-bottom:14px}
    .bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill::after{display:none}
    .bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill{box-shadow:inset 0 -2px 0 #1e7a4a}
}

/* ═══ v494 (Alex: compare with his mockup): Обслуживание авто tab cards bigger (taller, closer together); under the active
   card a mint band runs down to the dark green line ("green stuff above the dark green"). Wide screens only (one row). ═══ */
@media (min-width:1101px){
    .bz-tabs.svc-tabs:not(.ty-tabs){gap:8px;margin-bottom:28px}
    .bz-tabs.svc-tabs:not(.ty-tabs) .bz-tab{min-height:5.6rem;padding:12px 10px}
    .bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill::after{bottom:-18px;height:14px;background:#eefaf4;box-shadow:inset 0 -2px 0 #1e7a4a;border-radius:0}
}
@media (min-width:1101px){ .bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill::after{background:linear-gradient(#e6f6ec,#cfeedc)} }

/* v495 (Alex): the band under the active card = the card's own mint (no darker gradient), with a clear 6px white gap above it */
@media (min-width:1101px){
    .bz-tabs.svc-tabs:not(.ty-tabs){margin-bottom:30px}
    .bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill::after{background:#eefaf4;bottom:-20px;height:14px}
}

/* v496 (Alex): the mint band above the dark green line thinner (14px -> 8px incl. the line), white gap unchanged */
@media (min-width:1101px){
    .bz-tabs.svc-tabs:not(.ty-tabs){margin-bottom:24px}
    .bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill::after{bottom:-14px;height:8px}
}

/* v497 (Alex): more white space under the tab line; tab names centred in their cards (v365 had top-aligned them) */
.bz-tabs.svc-tabs:not(.ty-tabs) .bz-tab{align-items:center}
@media (min-width:1101px){ .bz-tabs.svc-tabs:not(.ty-tabs){margin-bottom:36px} }

/* v498 (Alex: he meant the gap ABOVE the line): filter back where it was in v496 (margin 24px), the band + line moved down
   instead: white gap card -> band 10px (was 6), line ends 18px under the card */
@media (min-width:1101px){
    .bz-tabs.svc-tabs:not(.ty-tabs){margin-bottom:24px}
    .bz-tabs.svc-tabs:not(.ty-tabs) .bz-pill::after{bottom:-18px}
}

/* v499 (Alex): a tab name may hold a line break (Колесный сервис / Кондиционеры) */
.bz-tabs.svc-tabs .bz-name{white-space:pre-line}

/* ═══ v501 (Alex: Шины и диски in "our full style"): the tyre tabs = the Обслуживание авто cards (v493-v498: rounded, soft
   all-round shadow, mint active card, white gap, thin mint band + dark green line under it); the tyre panel = the slim frame
   (no Показать / Сбросить, picks apply themselves; car-slim rules + .ty-slim). ═══ */
.bz-tabs.ty-tabs{gap:12px;padding:4px 2px 0;margin-bottom:24px}
.bz-tabs.ty-tabs .bz-tab{border-radius:8px;align-items:center;box-shadow:0 0 4px rgba(29,74,107,.14),0 0 14px 2px rgba(29,74,107,.13) !important}
.bz-tabs.ty-tabs .bz-tab:hover{background:rgba(238,250,244,.7)}
.bz-tabs.ty-tabs .bz-tab.active,.bz-tabs.ty-tabs .bz-tab.active:hover{background:transparent}
.bz-tabs.ty-tabs:not(.js-pill) .bz-tab.active{background:#eefaf4}
.bz-tabs.ty-tabs .bz-pill{border-radius:8px;box-shadow:none}
.bz-tabs.ty-tabs .bz-pill::after{content:"";position:absolute;left:0;right:0;bottom:-18px;height:8px;background:#eefaf4;box-shadow:inset 0 -2px 0 #1e7a4a}
@media (min-width:1101px){ .bz-tabs.svc-tabs.ty-tabs{gap:8px} .bz-tabs.ty-tabs .bz-tab{min-height:5.6rem;padding:12px 10px} }
@media (max-width:1100px){
    .bz-tabs.ty-tabs{margin-bottom:14px}
    .bz-tabs.ty-tabs .bz-pill::after{display:none}
    .bz-tabs.ty-tabs .bz-pill{box-shadow:inset 0 -2px 0 #1e7a4a}
}
@media (max-width:700px){ .bz-tabs.ty-tabs{gap:8px} }
.kf-panel.cfp.kf-hpanel.typ.ty-slim{background:transparent;padding:0;box-shadow:none;border:0}
.typ.ty-slim > .cfp-grid{background:#d1d3d7;padding:4px;margin:0}
.typ.ty-slim .kf-actions{margin-top:4px;padding:0;border:0;background:transparent}
.typ.ty-slim .cfp-more{display:inline-flex !important}

/* ═══ v502 (Alex): Работа и бизнес tabs (.biz-tabs) = the new switcher look (v493-v501 cards: rounded, soft shadow, mint
   active card, white gap, thin mint band + dark green line under it, names centred); Great Vibes capital kept ═══ */
.bz-tabs.biz-tabs{gap:12px;padding:4px 2px 0;margin-bottom:24px;background:none}
.bz-tabs.biz-tabs .bz-tab{border-radius:8px;align-items:center;border:0;box-shadow:0 0 4px rgba(29,74,107,.14),0 0 14px 2px rgba(29,74,107,.13) !important}
.bz-tabs.biz-tabs .bz-name{top:0 !important}
.bz-tabs.biz-tabs .bz-tab:hover{background:rgba(238,250,244,.7)}
.bz-tabs.biz-tabs .bz-tab.active,.bz-tabs.biz-tabs .bz-tab.active:hover{background:transparent}
.bz-tabs.biz-tabs:not(.js-pill) .bz-tab.active{background:#eefaf4}
.bz-tabs.biz-tabs .bz-pill{border-radius:8px;box-shadow:none}
.bz-tabs.biz-tabs .bz-pill::after{content:"";position:absolute;left:0;right:0;bottom:-18px;height:8px;background:#eefaf4;box-shadow:inset 0 -2px 0 #1e7a4a}
@media (min-width:1101px){ .bz-tabs.biz-tabs{gap:8px} .bz-tabs.biz-tabs .bz-tab{min-height:5.6rem;padding:12px 10px} }
@media (max-width:1100px){
    .bz-tabs.biz-tabs{margin-bottom:14px}
    .bz-tabs.biz-tabs .bz-pill::after{display:none}
    .bz-tabs.biz-tabs .bz-pill{box-shadow:inset 0 -2px 0 #1e7a4a}
}
@media (max-width:700px){ .bz-tabs.biz-tabs{gap:8px} }

/* v503 (Alex): bullet lists under the panel: the gap between two entries = the gap between the lines of a wrapped entry
   (was line-height 1.38 + 3px padding top / bottom, so entries sat 6px further apart than their own lines) */
.svc-cols .jb-az-item,.sb-bul .jb-az-item{padding-top:0;padding-bottom:0;line-height:1.6}

/* v505 (Alex): Шины / Диски "Больше фильтров" location like everywhere: green "Вся Латвия" + Район Риги greyed until Rīga */
.typ-more .cdd-district-box[hidden]{display:block !important}
.typ-more .cdd-district-box[hidden] .cdd{pointer-events:none}
.typ-more .cdd-district-box[hidden] .cdd-btn{background:#f7f8fa !important}
.typ-more .cdd-district-box[hidden] .cdd-val,.typ-more .cdd-district-box[hidden] .cdd-chev{color:#b8bcc2}

/* ═══ v506 (Alex): Категории menu lists = the bullet lists under the panels: a round dot before every entry (text colour,
   green on hover), wrapped lines start under the text, and even spacing (no item padding, line-height 1.6: the gap between
   two entries = the gap between the lines of one, like v503) ═══ */
.mega-subsub,.mega-cols .mega-link{position:relative;padding-top:0 !important;padding-bottom:0 !important;line-height:1.6 !important;
    padding-left:calc(.97em + 6px) !important;text-indent:-.97em}
.mega-subsub::before,.mega-cols .mega-link::before{content:"";display:inline-block;vertical-align:.08em;width:.52em;height:.52em;
    border-radius:50%;background:currentColor;margin-right:.45em;text-indent:0}

/* ═══ v509 TEST (/test/labels): ss.com-style field names above the filter boxes (html.lab-top, cookie lab_top) ═══ */
.lab-top .kf-hpanel .lab-t{display:block;font-family:Cambria,Caladea,Georgia,serif;font-size:.86rem;line-height:1.2;color:#3d4247;
    margin:0 0 3px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;pointer-events:none;text-align:left}
.lab-top .kf-hpanel .lab-t.lab-empty{visibility:hidden}
.lab-top .kf-hpanel .cfp-bool{flex-wrap:wrap;align-content:flex-end}
.lab-top .kf-hpanel .cfp-bool > .lab-t{flex:0 0 100%}
.lab-top .kf-hpanel .cdd-val.ph{color:#3d4247}
.lab-top .kf-hpanel .sdp-fill,.lab-top .kf-hpanel .pc-fill{margin-top:calc(.86rem * 1.2 + 3px)}

/* v510 (Alex): labels-above test: names white (on the grey frame), hung above their box; fixes: the search box had its
   name inline inside the box, check boxes / filler boxes didn't line up */
.lab-top .kf-hpanel .lab-host{position:relative;margin-top:calc(.86rem * 1.2 + 3px) !important}
.lab-top .kf-hpanel .lab-t{position:absolute;left:2px;right:0;bottom:100%;margin:0 0 3px;color:#fff;
    text-shadow:0 1px 2px rgba(0,0,0,.35);font-weight:700}
.lab-top .kf-hpanel .cfp-bool{flex-wrap:nowrap;align-content:normal}
.lab-top .kf-hpanel .cfp-bool > .lab-t{flex:none}
.lab-top .kf-hpanel .kf-row,.lab-top .kf-hpanel .typ-more,.lab-top .kf-hpanel .re-rowx{align-items:end}
.lab-top .kf-hpanel .lab-t{text-shadow:0 1px 2px rgba(0,0,0,.55),0 0 1px rgba(0,0,0,.4)}

/* v511 (Alex): labels-above test fixes. v510 made every box position:relative, which shrank the wide sheets (places, Улица...)
   to the box width: dropdown boxes keep their label IN the flow again (v509 way, no position change); only the search box and
   check boxes (which are boxes themselves, no sheets) hang it above. Names: white + 1px black outline + soft shadow. */
.lab-top .kf-hpanel .cdd > .lab-t{position:static;display:block;margin:0 0 3px 2px}
.lab-top .kf-hpanel .lab-t{-webkit-text-stroke:2px #000;paint-order:stroke fill;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.lab-top .kf-hpanel .lab-t{font-size:.95rem;letter-spacing:.01em}
.lab-top .kf-hpanel .lab-host,.lab-top .kf-hpanel .sdp-fill,.lab-top .kf-hpanel .pc-fill{margin-top:calc(.95rem * 1.2 + 3px) !important}

/* v513 (Alex): labels-above test = BLACK names with a thin white outline (1px stroke, half of it outside), no dark shadow;
   the frame gets a little more room on top so the first row's names aren't cut by its edge */
.lab-top .kf-hpanel .lab-t{color:#1f2328;-webkit-text-stroke:1px #fff;paint-order:stroke fill;text-shadow:none;line-height:1.3;overflow:visible}
.lab-top .kf-hpanel > .cfp-grid,.lab-top .kf-hpanel .typ > .cfp-grid{padding-top:6px}
.lab-top .kf-hpanel .lab-t{-webkit-text-stroke:2.4px #fff}   /* v514 (Alex): outline more visible (~1.2px outside) */

/* ═══ v515 (Alex): Категории menu entries: a wrapped entry's 2nd line starts under the BULLET (no hanging indent) ═══ */
.mega-subsub,.mega-cols .mega-link{padding-left:6px !important;text-indent:0}

/* ═══ v516 (Alex): Категории menu: no "Смотреть все объявления →"; the panel title itself is the link (black, green on hover) ═══ */
.mega-panel-head .mega-head-link{color:var(--text);text-decoration:none;transition:color .15s}
.mega-panel-head .mega-head-link:hover,.mega-panel-head .mega-head-link:focus-visible{color:var(--accent-hover)}

/* ═══ v517 (Alex): Шины и диски tab cards equal width (the first a bit wider), from 1101px; long names wrap inside the card ═══ */
@media (min-width:1101px){
    .bz-tabs.svc-tabs.ty-tabs .bz-tab{flex:1 1 0;min-width:0}
    .bz-tabs.svc-tabs.ty-tabs .bz-tab:first-of-type{flex-grow:1.15}
    .ty-tabs .bz-name{white-space:normal;text-align:center}
}

/* ═══ v518 (Alex): the tyre tab is just "Шины" now, so all 5 tyre cards are exactly equal (v517's wider first one undone) ═══ */
@media (min-width:1101px){ .bz-tabs.svc-tabs.ty-tabs .bz-tab:first-of-type{flex-grow:1} }

/* ═══ v519 (Alex): every Недвижимость section = the Квартиры panel (side_panel.html re_all branch, row 1 .re-gen); the green
   place box gets a little more room in the 9-in-a-row mode (its arrow touched "Вся Латвия") ═══ */
@media(min-width:1460px){ .sdp .re-row1 > .cdd-wrap:first-child{min-width:9.8rem} }

/* v522 (Alex): sub-bullets under a middle-page entry (Гаражи / Автостоянки types) */
.sb-bul .bul-kids{display:flex;flex-direction:column;margin:0 0 .5rem 1.6rem}
.sb-prof .sb-bul .bul-kids .jb-az-item{font-weight:400 !important;font-size:.94em}
.sb-bul .bul-kids .jb-az-item::before{width:.36em;height:.36em}
.sb-prof .sb-bul .bul-kids .jb-az-item span{font-weight:400}

/* v524 (Alex): Транспортные услуги panels get "Больше фильтров" (extras + Цена + фото) */
.sdp-slim:has(.svc-rowx) .kf-actions{display:flex}

/* v525: long column values (e.g. Автохимия "Тип") wrap instead of pushing the results table off the page */
@media(min-width:761px){ .st td.st-c{white-space:normal;max-width:13rem} .st td.st-price{white-space:nowrap} }

/* v527 (Alex's mockup): Гаражи / Автостоянки "Больше фильтров": a blank box ends a short line; Автостоянки = one line of 7 */
.sdp .re-rowx .rx-fill{display:none}
@media(min-width:1200px){
    .sdp .re-rowx .rx-fill:not(.cfp-hid){display:block}
}
@media(min-width:1460px){ .sdp .re-rowx.rx-7{grid-template-columns:repeat(7, minmax(0, 1fr)) !important} }

/* v527 (Alex's mockup): hand-laid Категории menu panel (Женский гардероб): fixed columns, loose sections = bold bullets
   under the last column */
.mega-panel-grid.mega-fixed{columns:auto;display:grid;grid-template-columns:repeat(var(--mcols), minmax(0, 1fr));column-gap:28px;align-items:start}
.mega-fixed .mega-fcol{min-width:0}
.mega-fixed .mega-col{display:block}
.mega-fixed .mega-loose{display:flex;flex-direction:column;margin-top:2.2rem}
.mega-fixed .mega-loose-link{font-weight:700;font-size:.98rem;color:var(--text)}
@media(max-width:1024px){ .mega-panel-grid.mega-fixed{grid-template-columns:repeat(2, minmax(0, 1fr))} }
@media(max-width:480px){ .mega-panel-grid.mega-fixed{grid-template-columns:1fr} }

/* ═══ v533 (Alex): every panel list over 15 options (makers, Для марки авто, Тип...) = the wide striped sheet across the
   filter row, 5 columns, the search box on top (exactly one row high, so the stripes stay in line); phones: row-wide, scrolls ═══ */
@media(min-width:861px){
    .kf-hpanel .cdd-long{position:static}
    .kf-hpanel .cdd-long .cdd-pop{top:auto;left:0;right:0;width:auto;min-width:0;margin-top:4px;max-height:none;overflow:visible;
        columns:5 170px;column-gap:0;--rh:2.4rem;padding:18px 0 var(--rh);border:1px solid #3aa86d;
        background:repeating-linear-gradient(to bottom, #fff 0 var(--rh), #f3faf6 var(--rh) calc(var(--rh) * 2)) content-box, #fff}
    .kf-hpanel .cdd-long .cdd-check{break-inside:avoid;height:var(--rh);padding:0 14px;font-size:.98rem;background-color:transparent;
        white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px;box-sizing:border-box}
    .kf-hpanel .cdd-long .cdd-check[hidden]{display:none}
    .kf-hpanel .cdd-long .cdd-pop input.cdd-find{display:block;column-span:all;width:calc(40% - 88px);min-width:240px;
        height:2.25rem;margin:0 14px calc(var(--rh) - 2.25rem)}
    .kf-hpanel .cdd-long .cdd-check:has(input:checked){background-image:linear-gradient(rgba(168,207,154,.5),rgba(168,207,154,.5))}
    .kf-hpanel .cdd-long .cdd-check:hover{background-image:linear-gradient(rgba(168,207,154,.75),rgba(168,207,154,.75))}
}
@media(max-width:860px){
    .kf-hpanel .kf-row{position:relative}
    .kf-hpanel .cdd-long{position:static}
    .kf-hpanel .cdd-long .cdd-pop{left:0;right:0;width:auto;min-width:0;max-height:60vh;overflow-y:auto}
    .kf-hpanel .cdd-long .cdd-pop input.cdd-find{position:sticky;top:0;z-index:1;width:calc(100% - 24px);margin:6px 12px}
}

/* ═══ v538 fix: a long one-word spec value in a grid card (Радиоуправляемые, Солнцезащитные) pushed phone pages past the screen ═══ */
.sa-specs div{min-width:0}
.sa-specs dd{min-width:0;overflow-wrap:anywhere}

/* ═══════════ v542 (Alex's mockup): Ремонт и стройка = 5 tab cards (the Обслуживание авто / tyre cards) ═══════════ */
.bz-tabs.svc-tabs.cat-tabs{grid-template-columns:repeat(var(--n,5),minmax(0,1fr))}
@media (max-width:1100px){ .bz-tabs.svc-tabs.cat-tabs{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:700px){ .bz-tabs.svc-tabs.cat-tabs{grid-template-columns:repeat(2,minmax(0,1fr))} .cat-tabs .bz-tab:last-child{grid-column:1 / -1} }
.cat-tabs .bz-name::first-letter{font-family:inherit;font-weight:inherit;font-size:1em;margin-right:0}

/* v545 (Alex's mockup): Строительные материалы entries = bold name + grey detail, 2 columns, building order */
.cat-ents .svc-cols .svc-col{flex:1 1 0;min-width:0}
.cat-ents .svc-cols .jb-az-item span{white-space:normal;font-weight:400}
.cat-ents .jb-az-item b{font-weight:700}
.cat-ents .jb-az-item i{font-style:normal;color:#6b7178;font-size:.94em}
.cat-ents .jb-az-item.zero b{color:inherit}
.cat-ents .jb-az-item{margin-bottom:.2em}
/* v545: Сфера twice as wide on the Строительные материалы tab (long entry names); phones: own full line */
@media (min-width:861px){
    .sdp .re-row1.cat-ent-row{display:grid !important;grid-template-columns:1fr 1fr 1fr 2fr !important}
    .sdp .re-row1.cat-ent-row > *{min-width:0 !important}
    .sdp .re-row1.cat-ent-row .sdp-fill{display:none}
}
@media (max-width:860px){ .sdp .re-row1.cat-ent-row .sdp-sec-dd{grid-column:1 / -1} .sdp .re-row1.cat-ent-row > .sdp-street-dd{grid-column:1 / -1} .sdp .re-row1.cat-ent-row .sdp-fill{display:none} }

/* ═══ v547 (Alex): Стройка и ремонт tab cards: green filling #edfdf3 (pill, band under it, hover) ═══ */
.bz-tabs.cat-tabs .bz-pill,
.bz-tabs.cat-tabs:not(.js-pill) .bz-tab.active{background:#edfdf3}
.bz-tabs.cat-tabs.js-pill .bz-tab:hover{background:rgba(237,253,243,.7)}
.bz-tabs.cat-tabs .bz-tab:not(.active):hover{background:#edfdf3}
.bz-tabs.svc-tabs.cat-tabs .bz-pill::after{background-color:#edfdf3}
@media (min-width:1101px){ .bz-tabs.svc-tabs.cat-tabs .bz-pill::after{background:#edfdf3} }

/* ═══ v550 (Alex): card tab switchers (Стройка и ремонт .cat-tabs, Обслуживание авто .svc-tabs, Шины .ty-tabs, Работа и
   бизнес .biz-tabs): no green fill any more. Hover = 2px dark green (#1e7a4a) outline, active = 1px outline; the band +
   line under the active card stay. ═══ */
.bz-tabs.svc-tabs .bz-tab,.bz-tabs.biz-tabs .bz-tab{transition:outline-color .12s}
.bz-tabs.svc-tabs .bz-tab:hover,.bz-tabs.biz-tabs .bz-tab:hover,
.bz-tabs.svc-tabs .bz-tab:not(.active):hover,.bz-tabs.biz-tabs .bz-tab:not(.active):hover,
.bz-tabs.svc-tabs.js-pill .bz-tab:hover,.bz-tabs.biz-tabs.js-pill .bz-tab:hover{background:transparent;outline:2px solid #1e7a4a;outline-offset:-2px}
.bz-tabs.svc-tabs .bz-tab.active,.bz-tabs.biz-tabs .bz-tab.active,
.bz-tabs.svc-tabs:not(.js-pill) .bz-tab.active,.bz-tabs.biz-tabs:not(.js-pill) .bz-tab.active{background:transparent}
.bz-tabs.svc-tabs:not(.js-pill) .bz-tab.active,.bz-tabs.biz-tabs:not(.js-pill) .bz-tab.active,
.bz-tabs.svc-tabs .bz-tab.active:hover,.bz-tabs.biz-tabs .bz-tab.active:hover{outline:1px solid #1e7a4a;outline-offset:-1px}
.bz-tabs.svc-tabs .bz-pill,.bz-tabs.biz-tabs .bz-pill,.bz-tabs.cat-tabs .bz-pill{background:transparent;outline:1px solid #1e7a4a;outline-offset:-1px}
/* v551 (Alex): the active card gets its fill back (1px outline stays; hover still outline only) */
.bz-tabs.svc-tabs .bz-pill,.bz-tabs.biz-tabs .bz-pill,
.bz-tabs.svc-tabs:not(.js-pill) .bz-tab.active,.bz-tabs.biz-tabs:not(.js-pill) .bz-tab.active{background:#eefaf4}
.bz-tabs.cat-tabs .bz-pill,.bz-tabs.cat-tabs:not(.js-pill) .bz-tab.active{background:#edfdf3}
/* v552 (Alex): the active card's outline 2px too (was 1px) */
.bz-tabs.svc-tabs .bz-pill,.bz-tabs.biz-tabs .bz-pill,.bz-tabs.cat-tabs .bz-pill,
.bz-tabs.svc-tabs:not(.js-pill) .bz-tab.active,.bz-tabs.biz-tabs:not(.js-pill) .bz-tab.active,
.bz-tabs.svc-tabs .bz-tab.active:hover,.bz-tabs.biz-tabs .bz-tab.active:hover{outline:2px solid #1e7a4a;outline-offset:-2px}

/* ═══ v553 (Alex's dad's mockups): middle pages whose bullets have sub-bullets = a grid read row by row (Песок и щебень:
   Песок | Щебень | Чернозём, Доломит, Торф / Грунт | Гравий); 2 or 4 cells = 2 columns. ═══ */
.ent-grid .ent-cells{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));column-gap:3rem;row-gap:1.6rem;align-items:start}
.ent-grid .ent-cell{display:flex;flex-direction:column;min-width:0}
.ent-grid .ent-cell > .jb-az-item{font-size:1.12em}
@media (max-width:860px){ .ent-grid .ent-cells{grid-template-columns:1fr;row-gap:1rem} }
.sb-prof.svc-under .jb-az-flat.svc-cols.sb-bul.ent-cells{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:1.6rem 3rem;width:100%}
.sb-prof .sb-bul.ent-cells .ent-cell > .jb-az-item{font-weight:700}
@media (max-width:860px){ .sb-prof.svc-under .jb-az-flat.svc-cols.sb-bul.ent-cells{grid-template-columns:1fr;row-gap:1rem} }
/* v553 (Alex's dad: "44" should sit under "Размер обуви"): the first table column is centred like the others; only the
   car Модель column keeps v182's left edge (long names) */
@media (min-width:761px){ .st th.st-first:not(.st-model),.st td.st-first:not(.st-model){text-align:center;padding-left:10px;padding-right:10px} }

/* ═══ v555 (Alex mockups): Стройка и ремонт tab pages: no divider under the title, a thin grey line under the tabs
   (the active card's green line sits on it); the list follows right under, no filter ═══ */
.sd-cat-head.ct-head{border-bottom:0;padding-bottom:0;margin-bottom:10px}
.bz-tabs.cat-tabs{position:relative}
@media (min-width:1101px){
    .bz-tabs.cat-tabs::before{content:"";position:absolute;left:0;right:0;bottom:-18px;height:2px;background:#e3e5e8;pointer-events:none}
    .bz-tabs.cat-tabs .bz-pill{z-index:1}
    .bz-tabs.cat-tabs{margin-bottom:18px}
}
@media (max-width:1100px){
    .bz-tabs.cat-tabs{padding-bottom:12px;border-bottom:2px solid #e3e5e8}
}
main:has(.cat-tabs) .sb-prof.svc-under{margin-top:42px}
@media (max-width:1100px){ main:has(.cat-tabs) .sb-prof.svc-under{margin-top:16px} }

/* ═══ v556 (Alex): card tab switchers: the picked card = 1px #1e7a4a outline; hover = no outline, only a darker shadow ═══ */
.bz-tabs.svc-tabs .bz-tab,.bz-tabs.biz-tabs .bz-tab{transition:box-shadow .15s}
.bz-tabs.svc-tabs .bz-tab:hover,.bz-tabs.biz-tabs .bz-tab:hover{outline:0 !important}
.bz-tabs.svc-tabs .bz-tab:not(.active):hover,.bz-tabs.biz-tabs .bz-tab:not(.active):hover{box-shadow:0 0 5px rgba(29,74,107,.3),0 0 18px 3px rgba(29,74,107,.28) !important}
.bz-tabs.svc-tabs .bz-pill,.bz-tabs.biz-tabs .bz-pill,.bz-tabs.cat-tabs .bz-pill{outline:1px solid #1e7a4a;outline-offset:-1px}
.bz-tabs.svc-tabs:not(.js-pill) .bz-tab.active,.bz-tabs.biz-tabs:not(.js-pill) .bz-tab.active{outline:1px solid #1e7a4a !important;outline-offset:-1px}
/* v556: Инструмент и оборудование tab = one column per section */
.sb-prof.svc-under.ct-cols .jb-az-flat.svc-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem 2.4rem;width:100%}
.ct-cols .ct-col-head{display:block;margin:0 0 .5rem;padding-bottom:.35rem;border-bottom:1px solid #bfe6d1;font-family:Cambria,Caladea,Georgia,serif;font-size:1.3rem;font-weight:700;color:#1d4a6b}
.ct-cols .ct-col-head:hover{color:var(--accent-hover)}
@media (max-width:860px){ .sb-prof.svc-under.ct-cols .jb-az-flat.svc-cols{grid-template-columns:1fr} }
/* v560: several groups in one column */
.ct-cols .jb-az-item + .ct-col-head{margin-top:1.9rem}
/* v561: short table values ("300-500 мм") stay on one line */
@media (min-width:761px){ .st td.st-c.st-one{white-space:nowrap} }

/* ═══ v563 (Alex): v562 undone; the front page titles = normal weight + a thin outline in their own colour, bigger than the sections (1.1rem);
   long ones wrap ═══ */
.home-drop.hd-all .home-cat-name,.home-drop.hd-all .home-cat-header:hover .home-cat-name{font-weight:400;-webkit-text-stroke:.55px currentColor}
.home-drop.hd-all .home-cat-name::first-letter{-webkit-text-stroke:.55px currentColor}
.home-drop.hd-all .home-cat-name{font-size:1.28rem}
@media (min-width:1101px){ .home-drop.hd-all .home-cat-name{font-size:1.2rem;letter-spacing:0;white-space:normal;max-width:100%} }
.home-drop.hd-all .home-cat-name::first-letter{font-size:1.75em}

/* ═══ v566 (Alex): tab columns = a real grid: the headings of a row sit on one line ═══ */
.sb-prof.svc-under.ct-cols .jb-az-flat.svc-cols{row-gap:0}
.ct-cols .ct-grp{display:grid;grid-row:span 2;grid-template-rows:subgrid;align-content:start;min-width:0}
.ct-cols .ct-grp .ct-col-head{align-self:end}
.ct-cols .ct-grp .svc-col{padding-bottom:1.9rem}
@media (max-width:860px){ .ct-cols .ct-grp:empty,.ct-cols .ct-grp:not(:has(a)){display:none} }
/* v566: pages whose bullets have sub-bullets: bigger text */
.sb-prof.svc-under .sb-bul.ent-cells .ent-cell > .jb-az-item{font-size:1.4rem}
.sb-prof.svc-under .sb-bul.ent-cells .bul-kids .jb-az-item{font-size:1.2rem}
@media (max-width:860px){ .sb-prof.svc-under .sb-bul.ent-cells .ent-cell > .jb-az-item{font-size:1.25rem} .sb-prof.svc-under .sb-bul.ent-cells .bul-kids .jb-az-item{font-size:1.12rem} }
@media (min-width:861px) and (max-width:1480px){ .ct-cols .ct-col-head{font-size:clamp(.9rem,1.42vw,1.3rem)} }

/* ═══ v568 (Alex): card tab switchers: every card that isn't picked has a 1px #c1ced6 frame, a bit darker on hover ═══ */
.bz-tabs.svc-tabs .bz-tab,.bz-tabs.biz-tabs .bz-tab{transition:box-shadow .15s,outline-color .15s}
.bz-tabs.svc-tabs .bz-tab:not(.active),.bz-tabs.biz-tabs .bz-tab:not(.active){outline:1px solid #c1ced6 !important;outline-offset:-1px !important}
.bz-tabs.svc-tabs .bz-tab:not(.active):hover,.bz-tabs.biz-tabs .bz-tab:not(.active):hover{outline:1px solid #9fb2be !important}

/* ═══ v570 / v571 (Alex): Стройка и ремонт columns: bigger headings that take no more height than before (the lists stay where
   they were); the extra room is only below each group ═══ */
.ct-cols .ct-col-head{--hf:1.42rem;--was:1.3rem;font-size:var(--hf);line-height:calc(var(--was) * 1.6)}
.ct-cols .ct-grp .svc-col{padding-bottom:3.2rem}
@media (min-width:861px) and (max-width:1480px){ .ct-cols .ct-col-head{--hf:clamp(.85rem,1.55vw,1.42rem);--was:clamp(.9rem,1.42vw,1.3rem)} }
@media (max-width:860px){ .ct-cols .ct-col-head{--hf:1.3rem} }

/* ═══ v572 (Alex): front page titles: real bold instead of the v563 outline, always on ONE line: a long one may run into the gap
   next to its column, and index.html's fit script makes only those that still don't fit a little smaller ═══ */
.home-drop.hd-all .home-cat-name,.home-drop.hd-all .home-cat-header:hover .home-cat-name{font-weight:700;-webkit-text-stroke:0}
.home-drop.hd-all .home-cat-name::first-letter{font-weight:400;-webkit-text-stroke:.55px currentColor}
.home-drop.hd-all .home-cat-name{white-space:nowrap;max-width:none}
.home-drop.hd-all .home-cat-header{min-width:max-content}
@media (min-width:1101px) and (max-width:1480px){ .home-drop.hd-all .home-cat-name{font-size:1.1rem} }
.home-drop.hd-all .hd-head.no-grow{transform:none !important}

/* ═══ v574 (Alex): the new post form: category picker, price row, smart description, steps, preview ═══ */
.pf-rest{display:flex;flex-direction:column;gap:1.1rem}
.pf-rest[hidden],.pf-steps[hidden],.pv[hidden]{display:none}
.pf-card[data-step]{scroll-margin-top:calc(var(--hdr,60px) + 14px)}
.pf-link{border:0;background:none;padding:2px 0;color:#1e7a4a;font-size:1.02rem;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.pf-more{margin:.2rem 0 .9rem}
.pf-page .folded [data-x]{display:none !important}
.pf-page .invalid{border-color:#d93636 !important;box-shadow:0 0 0 3px rgba(217,54,54,.12) !important}
.pf-error-big{padding:.8rem 1rem;border:1px solid #f0b9b9;background:#fff5f5;font-size:1.05rem;margin:0}

.pc-path,.pc-picked{font-size:1.15rem;font-weight:700;color:#1f1f1f;margin-bottom:1rem}
.pc-picked{display:flex;gap:1rem;align-items:baseline;flex-wrap:wrap}
.pc-picked[hidden],.pc-hits[hidden],.pc-list[hidden],.pc-crumb[hidden],.pc-tiles[hidden]{display:none}
.pf-page input.pc-find{width:100%;height:3.3rem;padding:0 1rem;font-size:1.15rem;border:1px solid #3aa86d;outline-offset:0}
.pc-hits{border:1px solid #cfe3c8;border-top:0;margin-bottom:1rem}
.pc-hits button{display:flex;flex-wrap:wrap;gap:0 .7rem;align-items:baseline;width:100%;padding:.6rem 1rem;border:0;background:#fff;text-align:left;cursor:pointer;font-size:1.1rem;color:#1f1f1f}
.pc-hits button + button{border-top:1px solid #eef3ec}
.pc-hits span{color:#6b7178;font-size:.95rem}
.pc-hits p{padding:.7rem 1rem;color:#6b7178}
.pc-hits button:hover,.pc-hits button:focus-visible,.pc-list button:hover,.pc-list button:focus-visible{background:#eefaf4;color:#1e7a4a;outline:0}
.pc-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.6rem,1fr));gap:.6rem;margin:1rem 0}
.pc-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.4rem;padding:.7rem .4rem;border:1px solid #dfe8db;background:#fff;cursor:pointer;
    font-size:1rem;line-height:1.2;color:#1d4a6b;font-weight:700;transition:border-color .15s,background-color .15s}
.pc-tile img{width:4rem;height:4rem;object-fit:contain}
.pc-tile:hover,.pc-tile:focus-visible{border-color:#3aa86d;background:#eefaf4;outline:0}
.pc-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .4rem;margin:1rem 0 .4rem}
.pc-crumb button{border:0;background:none;padding:.3rem .2rem;font-size:1.1rem;font-weight:700;color:#1d4a6b;cursor:pointer}
.pc-crumb button:first-child{width:2.4rem;height:2.4rem;border:1px solid #cfe3c8;margin-right:.4rem}
.pc-crumb button:hover{color:#1e7a4a}
.pc-crumb i{color:#a0a6ad;font-style:normal}
.pc-list{columns:2;column-gap:1.5rem;margin-bottom:1rem}
.pc-list button{display:block;width:100%;break-inside:avoid;padding:.45rem .6rem;border:0;background:none;text-align:left;font-size:1.1rem;color:#1f1f1f;cursor:pointer}
.pc-list em{font-style:normal;color:#8a9097}

.pr-row{display:flex;flex-wrap:wrap;gap:.8rem;margin-bottom:1rem}
.pr-box{position:relative;flex:0 1 13rem}
.pf-page .pr-box input{width:100%;height:2.9rem;padding:0 2.4rem 0 .9rem;font-size:1.25rem;font-weight:700}
.pr-box span{position:absolute;right:.9rem;top:50%;transform:translateY(-50%);font-size:1.2rem;color:#6b7178}
.pr-types{display:flex;flex:1 1 24rem;border:1px solid #3aa86d;background:#fff}
.pr-types .typ-tg{flex:1 1 auto}
.pr-types .typ-tg span{min-height:2.75rem;padding:0 .7rem;font-size:1.02rem}

.sm-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin:.3rem 0 1rem}
.sm-btn{display:inline-flex;align-items:center;gap:.5rem;font-size:1.05rem}
.sm-row > span{flex:1 1 16rem;color:#6b7178;font-size:.98rem}

.pf-steps ol{list-style:none;counter-reset:s}
.pf-steps li{padding:0;counter-increment:s}
.pf-steps li::before{display:none}
.pf-steps li a{display:flex;align-items:center;gap:.7rem;padding:.45rem 0;color:#1d4a6b;font-size:1.08rem;font-weight:700}
.pf-steps li a::before{content:counter(s);flex:0 0 1.75rem;height:1.75rem;display:flex;align-items:center;justify-content:center;border:1px solid #cae1c1;color:#6b7178;font-size:.95rem}
.pf-steps li.done a::before{content:"✓";background:#1e7a4a;border-color:#1e7a4a;color:#fff}
.pf-steps li a:hover{color:#1e7a4a}
@media (max-width:900px){ .pf-steps{display:none} }

body.pv-open{overflow:hidden}
.pv{position:fixed;inset:0;z-index:3000;background:#fff;overflow-y:auto}
.pv-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:.7rem;padding:.7rem max(1rem,calc((100% - 74rem) / 2));background:#cae1c1}
.pv-bar strong{flex:1;font-size:1.25rem;color:#1d4a6b}
.pv-body{max-width:76rem;margin:0 auto;padding:1.2rem 1rem 4rem}
.pv-path{color:#6b7178;margin-bottom:.8rem}
.pv-cols{display:grid;grid-template-columns:minmax(0,1fr) 20rem;gap:2rem;align-items:start}
.pv-big{display:block;width:100%;height:min(56vh,30rem);object-fit:contain;background:#f4f4f5}
.pv-thumbs{display:flex;gap:.5rem;margin-top:.5rem;overflow-x:auto}
.pv-thumbs button{flex:0 0 5.5rem;height:4.2rem;padding:0;border:1px solid #dfe8db;background:none;cursor:pointer}
.pv-thumbs img{width:100%;height:100%;object-fit:cover}
.pv-side{border:4px solid #cae1c1;padding:1.2rem}
.pv-place,.pv-who{margin-top:.8rem;color:#3d4247;line-height:1.5}
@media (max-width:760px){
    .pv-cols{grid-template-columns:minmax(0,1fr)} .pv-side{order:-1}
    .pv-bar .btn{padding:0 .8rem} .pv-bar strong{font-size:1.05rem}
    .pc-tiles{grid-template-columns:repeat(3,minmax(0,1fr))} .pc-tile{font-size:.88rem} .pc-tile img{width:3rem;height:3rem}
    .pc-list{columns:1} .pr-types{flex-wrap:wrap} .pr-types .typ-tg{flex:1 1 45%} .pf-actions{flex-wrap:wrap} .pf-actions .btn{flex:1 1 100%}
}
.pf-layout:has(> .pf-steps[hidden]){grid-template-columns:minmax(0,1fr)}
.pf-page [data-loc-picker] .pf-hint{margin-top:.3rem}

/* ═══ v575: company import ═══ */
.imp-card{padding:1.3rem 1.4rem;margin-bottom:1.1rem;font-size:1.08rem;line-height:1.5}
.imp-card p{margin-bottom:.9rem}
.imp-go{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin:.9rem 0}
.acc-page input.pc-find{width:100%;border:1px solid #3aa86d;font-family:inherit;height:3rem;padding:0 1rem;font-size:1.08rem}
.imp-table{width:100%;border-collapse:collapse;font-size:1.03rem}
.imp-table th{text-align:left;padding:.5rem .6rem;border-bottom:2px solid #cae1c1;color:#1d4a6b}
.imp-table td{padding:.5rem .6rem;border-bottom:1px solid #e6eee3;vertical-align:top;overflow-wrap:anywhere}
.imp-table small{display:block;color:#6b7178}
.imp-table code{white-space:nowrap}
.imp-table summary{cursor:pointer}
.imp-new b,.imp-update b{color:#1e7a4a}
.imp-error b{color:#c03030}
.imp-table td:nth-child(2){min-width:9rem;overflow-wrap:normal}

/* ═══ v576 (Alex): Личный кабинет without frames in frames: who you are, tabs, the page in full width ═══ */

.cab-ava{flex:0 0 4.2rem;height:4.2rem;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#1e7a4a;color:#fff;font-size:1.8rem;font-weight:700}
.cab-ava img{width:100%;height:100%;object-fit:cover}

.cab-seg em{font-style:normal;font-weight:400;color:#6b7178}
.cab-bar{display:flex;gap:.6rem;align-items:stretch;margin-bottom:.6rem}
.cab-seg{display:flex;gap:.3rem}
.cab-seg a{display:flex;align-items:center;gap:.4rem;padding:0 1rem;min-height:2.75rem;border-radius:6px;font-size:1.05rem;color:#1f1f1f;white-space:nowrap}
.cab-seg a:hover{background:#f1f5f2}
.cab-seg a.on{background:#eefaf4;color:#1e7a4a;font-weight:700}
.acc-page .cab-bar select,.acc-page .cab-bar input{min-height:2.75rem;padding:0 .9rem;border:1px solid #3aa86d;border-radius:6px;background-color:#fff;font-size:1.03rem;min-width:0}
.acc-page .cab-bar select{margin-left:auto;flex:0 1 17rem}
.acc-page .cab-bar input{flex:0 1 19rem}
.acc-page .cab-bar nav + input[type=hidden] + input{margin-left:auto}

.cab-acts{display:flex;gap:.4rem;justify-content:flex-end}
.cab-acts a,.cab-acts button{display:inline-flex;align-items:center;min-height:2.5rem;padding:0 .85rem;border:1px solid #c1ced6;border-radius:6px;background:#fff;color:#1f1f1f;font-size:1rem;cursor:pointer;white-space:nowrap}
.cab-acts a:hover,.cab-acts button:hover{border-color:#1e7a4a;background:#eefaf4}
.cab-acts button.main{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:700}
.cab-acts button.main:hover{background:var(--accent-hover)}
.cab-acts button.del{color:#c03030}
.cab-acts button.del:hover{border-color:#c03030;background:#fdf3f3}

.cab-empty{padding:3.5rem 1rem;text-align:center}
.cab-empty h3{font-size:1.4rem;color:#1d4a6b}
.cab-empty p{margin:.4rem 0 1.2rem;color:#6b7178}
.cab .btn,.cab .acc-card,.acc-page.cab .acc-form input,.acc-page.cab .acc-form select{border-radius:6px !important}
.cab .acc-card{border:0;padding:0}
.cab-h{font-size:1.45rem;color:#1d4a6b}
/* profile: name of the group on the left, its fields on the right */
.cab-form{max-width:66rem}
.cab-form > section{display:grid;grid-template-columns:14rem minmax(0,1fr);gap:2rem;padding:1.7rem 0;border-bottom:1px solid #e3e9e5}
.cab-form > section:first-child{padding-top:.3rem}
.cab-form h2{font-size:1.3rem;line-height:1.3;color:#1d4a6b}
.cab-more summary{cursor:pointer;color:#1e7a4a;font-size:1.05rem}
.cab-more[open] summary{margin-bottom:1rem}
.cab-seen{display:flex;gap:2rem;align-items:flex-start}
.cab-form .pr-ticks{padding-top:1.9rem}
.cab-form .pr-company{margin-top:1.1rem}
.cab-save{padding:1.5rem 0 1.5rem 16rem;border-bottom:1px solid #e3e9e5}
.cab-account > section{border:0;padding-top:1.7rem !important}
.cab-account section > div{display:flex;flex-wrap:wrap;gap:.6rem 2rem;font-size:1.08rem}
.cab-account a{color:#1e7a4a}
.cab-account a:hover{text-decoration:underline}
.cab-account a.del{color:#c03030}
@media (max-width:1250px){

    .cab-acts{grid-column:2 / -1;justify-content:flex-start;margin-top:-.6rem}
}
@media (max-width:860px){

    .cab-bar{flex-wrap:wrap} .cab-seg{flex:1 1 100%} .cab-seg a{flex:1 1 auto;justify-content:center;padding:0 .4rem}
    .acc-page .cab-bar select,.acc-page .cab-bar input{flex:1 1 100%;margin:0 !important}
    .cab-form > section{grid-template-columns:minmax(0,1fr);gap:.9rem} .cab-save{padding-left:0} .cab-save .btn{width:100%}
}
@media (max-width:600px){

    .cab-acts{grid-column:1 / -1;margin:.3rem 0 0;flex-wrap:wrap} .cab-acts form,.cab-acts > a{flex:1 1 auto} .cab-acts a,.cab-acts button{width:100%;justify-content:center}
    .cab-seen{flex-direction:column;gap:.6rem} .cab-form .pr-ticks{padding-top:0}
    .cab-ava{flex-basis:3.4rem;height:3.4rem} 
}

/* ═══ v576 (Alex): admin panel: menu on the left, one thing per page ═══ */
.ap{display:grid;grid-template-columns:15rem minmax(0,1fr);gap:2.4rem;padding-top:1.6rem;padding-bottom:3rem;align-items:start;min-height:70vh}
.ap-side{position:sticky;top:calc(var(--hdr,62px) + 1.2rem)}

.ap-side nav{display:flex;flex-direction:column;gap:2px}
.ap-side a{display:flex;justify-content:space-between;align-items:center;gap:.6rem;min-height:2.8rem;padding:.4rem .9rem;border-radius:6px;font-size:1.05rem;color:#1f2328;line-height:1.25}
.ap-side a:hover{background:#f1f3f2}
.ap-side a.on{background:#e3f5ec;color:#14603a;font-weight:700}
.ap em{font-style:normal}
.ap-side em,.ap-todo em{min-width:1.6rem;padding:.1rem .45rem;border-radius:99px;background:#c8500a;color:#fff;font-size:.85rem;font-weight:700;text-align:center}
.ap h1{font-size:1.7rem;margin-bottom:1rem;line-height:1.25;overflow-wrap:anywhere}
.ap h1 em,.ap h2 em{font-weight:400;color:#6b7178}
.ap h2{font-size:1.2rem;margin:1.9rem 0 .7rem}
.ap-h{display:flex;justify-content:space-between;align-items:baseline}
.ap-h > a,.ap-note a,.ap-back a{color:#14603a;text-decoration:underline;text-underline-offset:3px}
.ap-note{margin:.2rem 0 1rem;color:#5d646b;max-width:46rem;line-height:1.5}
.ap-back{margin-bottom:.5rem}
.ap-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin-bottom:.9rem}
.ap-stats a{padding:1rem 1.1rem;border:1px solid #dfe3e6;border-radius:8px}
.ap-stats a:hover{border-color:#1e7a4a}
.ap-stats b{display:block;font-size:2rem;line-height:1.15}
.ap-stats span{color:#5d646b}
.ap-box{border:1px solid #dfe3e6;border-radius:8px}
.ap-todo a{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1.1rem}
.ap-todo a + a{border-top:1px solid #eceef0}
.ap-todo a:hover{background:#f6f9f7}
.ap-todo small{color:#6b7178}
.ap-none{padding:1.2rem 1.1rem !important;color:#6b7178}
.ap-find{display:flex;gap:.6rem;margin-bottom:.8rem}
.ap-find input{flex:1;min-width:0;min-height:2.9rem;padding:0 1rem;border:1px solid #b9c1c7;border-radius:6px;font:inherit;font-size:1.05rem}
.ap-filters{display:flex;flex-wrap:wrap;gap:.6rem 2rem;margin-bottom:.6rem}
.ap-seg{display:flex;flex-wrap:wrap;gap:.2rem}
.ap-seg a{padding:.45rem .8rem;border-radius:6px}
.ap-seg a:hover{background:#f1f3f2}
.ap-seg a.on{background:#e3f5ec;color:#14603a;font-weight:700}
.ap-scroll{overflow-x:auto}
.ap-table{width:100%;border-collapse:collapse}
.ap-table th{padding:.6rem;text-align:left;font-size:.92rem;color:#5d646b;border-bottom:1px solid #dfe3e6}
.ap-table td{padding:.65rem .6rem;border-bottom:1px solid #eceef0;vertical-align:middle}
.ap-table tbody tr:hover td{background:#f6f9f7}
.ap-tick{width:2rem} .ap-tick input,.ap-bulk input,.ap-opts input[type=checkbox]{width:1.15rem;height:1.15rem;accent-color:#1e7a4a}
.ap-img{width:4.6rem} .ap-img img{display:block;width:4rem;max-width:none;height:3rem;object-fit:cover;border-radius:4px;background:#f4f4f5}
.ap-what > a{font-weight:700;overflow-wrap:anywhere}
.ap-what a:hover,.ap-rt:hover{color:#14603a;text-decoration:underline}
.ap-what small,.ap-report small{display:block;color:#6b7178;margin-top:.15rem;font-size:.9rem}
.ap-price{white-space:nowrap;font-weight:700}
.ap tr.off .ap-img img{opacity:.5}
.ap-chip{display:inline-block;margin:0 .3rem 0 0;padding:.12rem .55rem;border-radius:99px;background:#eceef0;color:#50575e;font-size:.86rem;font-weight:400;vertical-align:middle;white-space:nowrap}
.ap-what .ap-chip{margin-left:.35rem;margin-right:0}
.ap-chip.ok{background:#e3f5ec;color:#14603a} .ap-chip.bad{background:#fbe5e5;color:#a32323} .ap-chip.warn{background:#fdeed8;color:#8a4a08}
.ap-acts{white-space:nowrap;text-align:right}
.ap-acts form{display:inline}
.ap-acts a,.ap-acts button,.ap-bulk button{display:inline-block;padding:.4rem .7rem;border:1px solid transparent;border-radius:6px;background:none;font:inherit;font-size:.97rem;color:#14603a;cursor:pointer}
.ap-acts a:hover,.ap-acts button:hover{background:#fff;border-color:#1e7a4a}
.ap-acts .del,.ap-bulk .del{color:#b52a2a} .ap-acts .del:hover{border-color:#b52a2a}
.ap-bulk{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;padding:.7rem .6rem;background:#fff;border-top:1px solid #dfe3e6}
.ap-bulk label{display:flex;align-items:center;gap:.5rem;cursor:pointer}
.ap-bulk span{margin-left:auto;color:#5d646b}
.ap-bulk button{border-color:#c5ccd1} .ap-bulk button:disabled{opacity:.45;cursor:default}
.ap-btns{display:flex;flex-wrap:wrap;gap:.6rem}
.ap .btn{border-radius:6px} .ap-danger{color:#b52a2a !important}
.ap-info{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1rem 1.6rem;padding:1.1rem 1.2rem;margin-top:1.2rem}
.ap-info dt{color:#6b7178;font-size:.92rem} .ap-info dd{margin:0;overflow-wrap:anywhere}
.ap-report{display:grid;grid-template-columns:6.5rem minmax(0,1fr) auto;gap:1.1rem;padding:1rem;margin-bottom:.8rem;align-items:start}
.ap-report img{width:6.5rem;height:4.9rem;object-fit:cover;border-radius:6px}
.ap-report ul{list-style:none;margin:.6rem 0 0;padding:0} .ap-report li{margin-top:.35rem;overflow-wrap:anywhere} .ap-report li small{display:inline}
.ap-rt{font-weight:700;font-size:1.08rem} .ap-report .ap-btns{flex-direction:column}
.ap-form{max-width:50rem;padding:1.2rem}
.ap-lang{display:flex;gap:1rem;margin-bottom:.8rem} .ap-lang span{flex:0 0 1.8rem;padding-top:.6rem;font-weight:700}
.ap-lang textarea{flex:1;min-width:0;padding:.6rem .8rem;border:1px solid #b9c1c7;border-radius:6px;font:inherit;resize:vertical}
.ap-opts{display:flex;flex-wrap:wrap;gap:.8rem 1.6rem;margin:.4rem 0 1.2rem 2.8rem} .ap-opts label{display:flex;align-items:center;gap:.5rem}
.ap-opts input[type=datetime-local]{padding:.4rem .6rem;border:1px solid #b9c1c7;border-radius:6px;font:inherit}
.ap-form .ap-btns{margin-left:2.8rem}
@media (max-width:1000px){
    .ap{grid-template-columns:minmax(0,1fr);gap:1.2rem;padding-top:1rem}
    .ap-side{position:static} 
    .ap-side nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem} .ap-side a{border:1px solid #dfe3e6;font-size:.95rem;padding:.4rem .7rem}
}
@media (max-width:700px){
    .ap-side nav,.ap-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ap-ads,.ap-ads tbody{display:block} .ap-ads tr{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem;padding:.8rem 0;border-bottom:1px solid #eceef0}
    .ap-ads td{padding:0;border:0} .ap-ads td.ap-tick,.ap-ads td.ap-img{width:auto} .ap-ads .ap-what{flex:1 1 55%} .ap-ads .ap-acts{flex:1 1 100%;text-align:left}
    .ap-users th:nth-child(n+3):nth-child(-n+4),.ap-users td:nth-child(n+3):nth-child(-n+4){display:none}
    .ap-report{grid-template-columns:5rem minmax(0,1fr)} .ap-report img{width:5rem;height:3.8rem} .ap-report .ap-btns{grid-column:1 / -1;flex-direction:row}
    .ap-opts,.ap-form .ap-btns{margin-left:0}
}

/* v576: "Пожаловаться" on the ad page */
.ld-report{margin-top:1rem;font-size:1rem}
.ld-report summary{cursor:pointer;color:#6b7178;text-decoration:underline;text-underline-offset:3px}
.ld-report form{display:grid;gap:.6rem;margin-top:.8rem}
.ld-report label{display:flex;gap:.5rem;align-items:baseline;cursor:pointer}
.ld-report textarea,.ld-report input[type=email]{width:100%;padding:.6rem .8rem;border:1px solid #3aa86d;font:inherit}
.cab .acc-form{padding:0;border:0;box-shadow:none}
.acc-page .cab-bar select{appearance:none;padding-right:2.3rem;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center/1.1rem}
.ap-btns .btn{min-height:2.7rem;display:inline-flex;align-items:center;font-size:1rem}
.ld-admin-btns{flex-wrap:wrap}
.ld-admin-btns > *{min-width:0}
.ld-admin-btns .btn{width:100%;min-width:0;white-space:normal;padding-left:.5rem;padding-right:.5rem}
@media (max-width:600px){
    .cab-acts > a{width:auto}
    .imp-table,.imp-table tbody{display:block} .imp-table thead{display:none} .imp-table tr{display:block;padding:.7rem 0;border-bottom:1px solid #e6eee3} .imp-table td{display:block;padding:.1rem 0;border:0}
    .imp-table code{white-space:normal}
}

/* ═══ v577 (Alex): post / edit form: boxes with their name inside (like the filter panels), ticks as buttons in groups, soft cards ═══ */
.pf-page .pf-layout{grid-template-columns:minmax(0,1fr) 16rem;gap:2rem}
.pf-page .pf-card{border:0;border-radius:10px;padding:1.6rem 1.8rem 1.5rem;box-shadow:0 0 4px rgba(29,74,107,.12),0 0 16px 2px rgba(29,74,107,.1)}
.pf-page .pf-steps{border:0;border-radius:10px;padding:1.2rem 1.3rem;box-shadow:0 0 4px rgba(29,74,107,.12),0 0 16px 2px rgba(29,74,107,.1)}
.pf-page .pf-steps li a::before{border-radius:50%}
.pf-page .spec-grid,.pf-page .pf-card .form-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(13.5rem,1fr));gap:.7rem;margin-bottom:.7rem}
.pf-page .pf-card .form-group{position:relative;margin:0;min-width:0}
.pf-page .pf-card .form-group[hidden]{display:none}
.pf-page .form-group > input,.pf-page .form-group > select,.pf-page .loc-search input,.pf-page .pr-box input,.pf-page .pr-types,.pf-page .pf-desc,.pf-page input.pc-find,.pf-page .btn{border-radius:6px !important}
.pf-page .form-group > input:not([type=file]),.pf-page .form-group > select{width:100%;height:3.5rem;padding:1.2rem 2.2rem .2rem .9rem;border:1px solid #b5cfc0;background-color:#fff;font-size:1.08rem;color:#1f1f1f}
.pf-page .form-group > input:not([type=file]){padding-right:.9rem}
.pf-page .form-group > input:hover,.pf-page .form-group > select:hover{border-color:#3aa86d}
.pf-page .form-group > input:focus,.pf-page .form-group > select:focus{border-color:#1e7a4a}
.pf-page .form-group > input[type=number]{appearance:textfield;-moz-appearance:textfield}
.pf-page .form-group > input[type=number]::-webkit-inner-spin-button{display:none}
/* the name: big while the box is empty, small above the value once it has one */
.pf-page .form-group:has(> input:not([type=file]),> select) > label{position:absolute;z-index:1;left:.95rem;right:2.1rem;top:.42rem;margin:0;font-size:.84rem;line-height:1.2;font-weight:400;color:#5f6f66;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:top .12s,font-size .12s}
.pf-page .form-group:has(> input:placeholder-shown:not(:focus)) > label,
.pf-page .form-group:has(> select:not([hidden]) option[value=""]:checked) > label{top:1.05rem;font-size:1.08rem;color:#1f1f1f}
.pf-page .form-group > input:placeholder-shown:not(:focus)::placeholder{color:transparent}
.pf-page .form-group > select:has(option[value=""]:checked){color:transparent}
.pf-page .form-group > select option,.pf-page .form-group > select optgroup{color:#1f1f1f}
.pf-page .form-group > select:disabled{background-color:#f5f7f6;border-color:#dde4e0}
.pf-page .form-group:has(> select:disabled) > label{color:#9aa39e !important}
.pf-page .spec-pick:not([hidden]) + input:not([hidden]){padding-top:.2rem !important;height:2.8rem !important}
.pf-page .form-group:has(.tr-pick){grid-column:span 2}
.pf-page .form-group:has(.tr-pick) > label{font-weight:400;color:#5f6f66}
/* ticks = buttons */
.pf-page .sf-ticks,.pf-page .spec-features{margin:1.3rem 0 0}
.pf-page .spec-features-title{margin-bottom:.6rem;font-size:1.08rem;font-weight:700;color:#1d4a6b}
.pf-page .spec-fg-head{margin:1rem 0 .5rem;font-size:1rem;font-weight:400;color:#5f6f66;border:0;padding:0}
.pf-page .sf-chips,.pf-page .spec-features:not(.spec-groups) .cfp-features-grid{display:flex;flex-wrap:wrap;gap:.5rem}
.pf-page .sf-chip,.pf-page .spec-features:not(.spec-groups) .cfp-feat{position:relative;display:inline-flex;align-items:center;min-height:2.6rem;padding:.35rem 1rem;border:1px solid #b5cfc0;border-radius:6px;background:#fff;
    font-size:1.04rem;font-weight:400;line-height:1.2;color:#1f1f1f;cursor:pointer;user-select:none}
.pf-page .sf-chip input,.pf-page .spec-features:not(.spec-groups) .cfp-feat input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pf-page .sf-chip:hover,.pf-page .spec-features:not(.spec-groups) .cfp-feat:hover{border-color:#1e7a4a}
.pf-page .sf-chip:has(:checked),.pf-page .spec-features:not(.spec-groups) .cfp-feat:has(:checked){background:#1e7a4a;border-color:#1e7a4a;color:#fff}
.pf-page .sf-chip:has(:focus-visible),.pf-page .spec-features:not(.spec-groups) .cfp-feat:has(:focus-visible){outline:2px solid #1e7a4a;outline-offset:2px}
.pf-page .sf-chip.cond-off,.pf-page .folded .all-x{display:none}
.pf-page .pf-more{margin:1.2rem 0 0}
.pf-page .loc-search,.pf-page .pf-card .form-group:has(.loc-search) > label{font-size:1rem}
.pf-page .loc-search input,.pf-page .loc-search .btn{height:3rem}
.pf-page .loc-map{border-radius:6px}
.pf-page .pr-row{margin-bottom:0}
.pf-page .pf-field-hint{margin:.4rem 0 1rem}
@media (max-width:900px){ .pf-page .pf-layout{grid-template-columns:minmax(0,1fr)} }
@media (max-width:600px){
    .pf-page .pf-card{padding:1.2rem 1rem}
    .pf-page .spec-grid,.pf-page .pf-card .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
    .pf-page [data-step=place] .form-row{grid-template-columns:minmax(0,1fr)}
    .pf-page .form-group > input:not([type=file]),.pf-page .form-group > select{padding-left:.7rem} .pf-page .form-group:has(> input,> select) > label{left:.75rem}
}

/* ═══ v577: the looks Alex compares (partials/looks.html) ═══ */

.cb-wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));gap:1.4rem;margin-top:1.2rem}
.cb-card{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 0 4px rgba(29,74,107,.14),0 0 14px 2px rgba(29,74,107,.12);transition:box-shadow .15s}
.cb-card:hover{box-shadow:0 0 5px rgba(29,74,107,.25),0 0 18px 3px rgba(29,74,107,.22)}
.cb-img{position:relative;display:block;background:#f4f4f5}
.cb-img img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.cb-img b{position:absolute;left:.7rem;bottom:.7rem;padding:.25rem .7rem;border-radius:6px;background:#fff;color:#1f1f1f;font-size:1.15rem}
.cb-name{margin:.8rem 1rem .2rem;font-size:1.15rem;font-weight:700;line-height:1.3;color:#1d4a6b;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cb-name:hover{color:#1e7a4a}
.cb-card p{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 .8rem;margin:0 1rem .8rem;color:#5f6f66;font-size:.98rem}
.cb-card.off .cb-img img{opacity:.45} .cb-card.off p{color:#b3540c}
.cb-card .cab-acts{margin:auto 0 0;gap:0;border-top:1px solid #e3e9e5;flex-wrap:nowrap}
.cb-card .cab-acts form,.cb-card .cab-acts > a{flex:1 1 auto}
.cb-card .cab-acts a,.cb-card .cab-acts button{width:100%;justify-content:center;min-height:2.8rem;padding:0 .3rem;border:0;border-radius:0;font-size:.98rem}
.cb-card .cab-acts > * + *{border-left:1px solid #e3e9e5}

.cb-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}
.cb-tile{display:flex;flex-direction:column;min-height:16rem;padding:1.2rem 1.3rem;border-radius:6px;background:#fff;color:#1d4a6b;overflow:hidden;box-shadow:0 0 4px rgba(29,74,107,.14),0 0 14px 2px rgba(29,74,107,.16);transition:background-color .15s,box-shadow .15s}
.cb-tile:hover{background:#edfdf3;box-shadow:0 0 4px rgba(0,120,70,.2),0 0 14px 2px rgba(0,120,70,.22)}
.cb-tn{font-size:1.3rem;font-weight:700;line-height:1.3} .cb-tn::first-letter{font-family:'Great Vibes',cursive;font-size:1.9em;font-weight:400;line-height:.8}
.cb-tn em{font-style:normal;font-weight:400;color:#6b7178}
.cb-tile svg{width:6.5rem;height:6.5rem;margin:auto 0 0 auto;color:#8fb8a1}
.cb-pics{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin-top:auto}
.cb-pics img{width:100%;height:8.5rem;object-fit:cover;border-radius:5px;background:#f4f4f5}
.cb-pics.n1{grid-template-columns:9rem;justify-content:end} .cb-pics.n2{grid-template-columns:repeat(2,1fr)} .cb-pics.n3{grid-template-columns:repeat(3,1fr)}
/* look 2: my page */
.cb-cover{height:13rem;background:center 60%/cover}
.cb-me{display:flex;align-items:flex-end;gap:1.4rem;margin:-3.6rem 0 1.2rem;position:relative}
.cb-me .cab-ava{flex-basis:9rem;height:9rem;border:5px solid #fff;font-size:3.6rem}
.cb-me h1{font-size:2.1rem;line-height:1.2;color:#1f1f1f;overflow-wrap:anywhere} .cb-me p{color:#5f6f66;font-size:1.05rem} .cb-me p a{color:#1e7a4a;text-decoration:underline;text-underline-offset:3px}
.cb-tabs{display:flex;gap:2.2rem;border-bottom:1px solid #d7dfda;margin-bottom:1.3rem;overflow-x:auto;scrollbar-width:none}
.cb-tabs a{padding:.8rem 0;font-size:1.2rem;font-weight:700;color:#1d4a6b;white-space:nowrap;border-bottom:3px solid transparent}
.cb-tabs a:hover{color:#1e7a4a} .cb-tabs a.on{color:#1e7a4a;border-color:#1e7a4a} .cb-tabs em{font-style:normal;font-weight:400;color:#6b7178}

.cab .ap-bulk button{border-radius:6px;color:#14603a}
/* profile in the new looks = the post form's cards */
.cab .cab-form.pf-page{max-width:none;display:grid;gap:1.2rem;background:none;padding:0}
.cab .cab-form.pf-page > section{display:block;border:0;padding:1.4rem 1.7rem 1.5rem !important}
.cab .cab-form h2{margin-bottom:1rem} .cab .cab-form h2::first-letter{font-family:'Great Vibes',cursive;font-size:1.6em;font-weight:400;line-height:.8}
.cab .cab-save{padding:0 0 1.2rem;border:0} .cab .cab-seen{display:flex} .cab .pr-email-pw{position:relative}
.cab-pw.pf-page{max-width:46rem;background:none;padding:0}
.cab-pw .form-group{position:relative;margin-bottom:.8rem}

.ap-pane{position:sticky;top:calc(var(--hdr,62px) + 1rem);max-height:calc(100vh - var(--hdr,62px) - 2rem);overflow-y:auto;padding:1.4rem 1.5rem;border:1px solid #dfe3e6;border-radius:10px;background:#fff}
.ap-pane .ap-back{display:none} .ap-pane h1{font-size:1.45rem}
.apw .ap:has(.ap-pane) .ap-main :is(.ap-acts,.ap-users td:nth-child(3),.ap-users th:nth-child(3),.ap-users td:nth-child(4),.ap-users th:nth-child(4)){display:none}
.apw .ap-main .ap-table tr{cursor:pointer} .apw tr.sel td{background:#e3f5ec !important}
.ap-shots{display:flex;gap:.6rem;overflow-x:auto;margin:1.1rem 0} .ap-shots img{height:13rem;max-width:none;border-radius:6px;background:#eee}
.ap-desc{white-space:pre-line;line-height:1.5;max-width:46rem}
.apw{background:#eef0f2;display:flow-root;position:relative} 
.apw .ap{max-width:none;padding:0 2rem 3rem 0;grid-template-columns:15.5rem minmax(0,1fr);gap:2rem} .apw > .container:first-child{max-width:none;padding-left:2rem}
.apw .ap-side{align-self:stretch;position:absolute;left:0;top:0;bottom:0;width:15.5rem;background:#33383d;padding:1.2rem .8rem} .apw .ap-main{grid-column:2;padding-top:.6rem}
.apw .ap-side nav{position:sticky;top:calc(var(--hdr,62px) + 1.2rem)} .apw .ap-side a{color:#dfe3e6;justify-content:flex-start} .apw .ap-side em{margin-left:auto}
.ap-side svg{flex:0 0 1.4rem;width:1.4rem;height:1.4rem} .ap-side a{justify-content:flex-start} .ap-side em{margin-left:auto}
.apw .ap-side a:hover{background:#454b51} .apw .ap-side a.on{background:#00a35f;color:#fff}
.apw :is(.ap-stats a,.ap-box,.ap-scroll,.ap-find input){background:#fff;border:0;border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.1)} .apw .ap-scroll{padding:.3rem .8rem} .apw .ap-bulk{margin-top:.8rem;border:0;border-radius:10px}
@media (max-width:1000px){
    .apw .ap{grid-template-columns:minmax(0,1fr)} .ap-pane{display:none}
    .apw .ap{padding:0 1rem 2rem} .apw .ap-side{position:static;width:auto;border-radius:10px;padding:.6rem} .apw .ap-side a{border:0} .apw .ap-main{grid-column:1}  .apw > .container:first-child{padding-left:1rem}
    .cb-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
    .cb-tiles{gap:.7rem} .cb-tile{min-height:10rem;padding:.9rem} .cb-tn{font-size:1.1rem} .cb-tile svg{width:4rem;height:4rem} .cb-pics{grid-template-columns:repeat(2,1fr) !important} .cb-pics img{height:4.4rem} .cb-pics img:nth-child(n+3){display:none} .cb-pics.n1{grid-template-columns:5rem !important}

    .cb-cover{height:8rem} .cb-me .cab-ava{flex-basis:6rem;height:6rem} .cb-me{gap:.9rem;margin-top:-2rem} .cb-me h1{font-size:1.4rem;padding-top:2.2rem} .cb-tabs{gap:1.3rem} .cb-tabs a{font-size:1.05rem}

}
.cb-card .cab-acts > *{flex:1 1 0 !important}
.cab .cab-form.pf-page{max-width:64rem} .cab .cab-form.pf-page .form-row{grid-template-columns:repeat(2,minmax(0,1fr))} .cab .cab-form .form-group{margin-bottom:.7rem} .cab .cab-form .form-row .form-group{margin-bottom:0}
.ap-pane .ap-acts{display:none}
@media (max-width:600px){ .cab .cab-form.pf-page .form-row{grid-template-columns:minmax(0,1fr)} }
.pf-page .form-group:has(> input:not([type=file])):not(:has(> select)) > label{right:.6rem}
.pf-page .spec-grid .form-group:has(.tr-pick){order:1}
.pf-page .tr-pick select{border:1px solid #b5cfc0;border-radius:6px}
.pf-page .form-group > select{text-overflow:ellipsis}
@media (max-width:600px){
    .pf-page .form-group:has(> input:placeholder-shown:not(:focus)) > label,.pf-page .form-group:has(> select:not([hidden]) option[value=""]:checked) > label{top:1.12rem;font-size:1rem}
    .pf-page .form-group > input:not([type=file]),.pf-page .form-group > select{font-size:1rem;padding-right:1.7rem;background-position:right .6rem center} .pf-page .form-group:has(> select) > label{right:1.6rem}

}

/* ═══ v578 (Alex picked): admin = dark menu + the list with details next to it ═══ */
.apw .ap-back{margin-top:.3rem}
.ap-pane{display:none;border:0;box-shadow:0 1px 3px rgba(0,0,0,.1)}
@media (min-width:1180px){
    .apw .ap:has(.ap-pane){grid-template-columns:15.5rem minmax(0,1fr) minmax(0,1.05fr);gap:1.4rem} .ap-pane{display:block}
}
@media (min-width:701px) and (max-width:1179px){ .apw .ap:has(.ap-pane) .ap-main :is(.ap-acts,.ap-users td:nth-child(3),.ap-users th:nth-child(3),.ap-users td:nth-child(4),.ap-users th:nth-child(4)){display:revert} }
.cab-me{padding-top:0}
.cb-title{margin-bottom:1.4rem}
.apw .ap-main{padding-top:1.3rem} .apw .ap{min-height:calc(100vh - var(--hdr,62px))} .apw .ap-back{margin-top:0}
main:has(.apw) + footer{margin-top:0}
.ap-pane .ap-ads td:nth-child(4){display:none}
.cb-tile{min-height:13rem} .cb-pics img{height:6.8rem} .cb-pics.n1{grid-template-columns:6.8rem}
@media (max-width:1400px){ .ap-pane .ap-ads td:nth-child(3){display:none} }
@media (max-width:1000px){ .apw .ap{min-height:0} .apw .ap-side{margin-top:1rem} }
@media (max-width:600px){ .cb-tile{min-height:10rem} .cb-pics img{height:4.4rem} .ap-users{width:100%} }
@media (min-width:1180px) and (max-width:1450px){ .apw .ap:has(.ap-pane) .ap-ads td:nth-child(5):has(.ap-chip.ok){visibility:hidden;width:0;padding:0} .apw .ap:has(.ap-pane) .ap-ads td:nth-child(5) .ap-chip.ok{display:none} }

/* v580: the cabinet look picker (partials/looks.html) */
.lk{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;margin:0 0 1rem;padding:.35rem .7rem;background:#fff6df;border-radius:6px;font-family:Roboto,sans-serif;font-size:.97rem}
.lk span{margin-right:.3rem;color:#6b5a2c}
.lk a{padding:.3rem .8rem;border-radius:5px;color:#4a3d17}
.lk a:hover{background:#fbe9b9} .lk a.on{background:#4a3d17;color:#fff}
.cab-me .lk{margin:.6rem 0}
