@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--blue:#315bfa;--blue-soft:#edf1ff;--ink:#20232b;--muted:#747985;--line:#e6e8ed;--canvas:#f7f8fa;--surface:#fff;--green:#17744b;--radius:24px;--space:8px;font-family:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--blue);outline-offset:4px}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:34px;padding:0 4vw;background:white}.logo{font-size:30px;font-weight:800;letter-spacing:-1.5px;display:flex;align-items:center;gap:8px}.logo>span:first-child{display:grid;place-items:center;width:36px;height:36px;background:var(--blue);color:white;border-radius:11px;font-style:italic;font-size:30px}.logo-dot{color:var(--blue);margin-left:-8px}aside{padding-top:12px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;color:var(--muted);line-height:1.8}h1{font-size:38px;line-height:1.18;letter-spacing:-1.7px;margin:18px 0 34px}nav{display:grid;gap:8px}.nav-item{border:0;background:transparent;display:flex;align-items:center;gap:14px;text-align:left;border-radius:12px;padding:16px;font-weight:700;font-size:14px}.nav-item>span{font-size:23px;line-height:1}.nav-item b{margin-left:auto;font-size:12px;font-weight:500}.nav-item.active{color:var(--blue);background:var(--blue-soft)}.eyebrow{font-size:10px}h2{font-size:26px;letter-spacing:-1px;margin:8px 0 0}.feed{height:min(640px,calc(100dvh - 270px));min-height:470px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;border-radius:var(--radius)}.car{scroll-snap-align:start;scroll-snap-stop:always;height:100%;background:white;border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);margin-bottom:16px}.visual{position:relative;background:#dfe3e8;flex:1;min-height:180px;overflow:hidden}.visual img{height:100%;width:100%;object-fit:cover;display:block}.visual:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0002,transparent 35%,#0004);pointer-events:none}.photo-label{position:absolute;right:20px;bottom:14px;z-index:2;color:white;font-size:11px}.car-body{padding:23px 26px 24px}.title-row{display:flex;justify-content:space-between;align-items:flex-start}.car h3{font-size:28px;letter-spacing:-1px;margin:0 0 4px}.sub{font-size:13px;color:var(--muted);margin:0}.price-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:18px;border-top:1px solid var(--line)}.price{font-weight:800;font-size:24px;letter-spacing:-.7px}.primary{background:var(--blue);color:white;border:0;border-radius:12px;padding:15px 21px;font-weight:750;font-size:14px}.primary:hover{background:#2549df}dialog{border:0;border-radius:24px;width:min(520px,calc(100% - 32px));padding:32px;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#141b2d70;backdrop-filter:blur(6px)}.close{float:right;border:0;background:#f1f2f5;border-radius:50%;width:32px;height:32px;font-size:23px}dialog h2{margin:20px 0}dialog p{color:var(--muted);line-height:1.7;font-size:14px}.cost-line{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.cost-line.total{font-weight:800;font-size:18px}.empty{text-align:center;background:white;padding:80px 25px;border-radius:24px;height:100%}.empty p{color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);background:var(--ink);color:white;padding:13px 22px;border-radius:12px;font-size:14px;transition:transform .2s;z-index:10}#toast.show{transform:translateX(-50%) translateY(0)}@media(min-width:1500px){.layout{grid-template-columns:260px minmax(0,800px) 150px}}@media(max-width:1150px){.layout{grid-template-columns:200px minmax(0,1fr);gap:28px}.right-rail{display:none}h1{font-size:32px}}@media(max-width:760px){header{height:65px;padding:0 20px;gap:14px}.logo{font-size:26px}.market,.avatar{display:none}.ds-link{font-size:12px}.layout{display:block;padding:20px 14px}aside{padding:0}aside h1,.section-label,.side-note,.demo{display:none}nav{display:flex;margin-bottom:24px;gap:8px}.nav-item{padding:11px 14px}.nav-item b{margin-left:14px}.feed-head h2{font-size:23px}.eyebrow{font-size:9px}.chips{margin:18px 0 14px}.chip{padding:10px 13px;font-size:12px}.feed{height:calc(100dvh - 257px);min-height:490px}.car-body{padding:19px}.car h3{font-size:25px}.specs li{padding:0 11px;font-size:10px}.specs b{font-size:12px}.price{font-size:21px}.primary{padding:14px;font-size:12px}.feed-footer{display:none}.badges{left:14px;top:14px}.badge{font-size:10px}.visual{min-height:210px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Shared interaction tokens and mobile feed composition. */
:root{--muted:#626977;--touch-target:44px;--radius-control:12px;--radius-card:24px;--text-meta:13px;--text-control:14px}
.close{width:var(--touch-target);height:var(--touch-target)}
.car-body{flex-shrink:0}
.visual img{object-fit:contain}
.visual{background:#e9ecf1}
.visual:after{background:linear-gradient(180deg,#0002,transparent 25%,transparent 80%,#0003)}
@media(max-width:760px){
 .feed-page{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 .feed-page header{height:56px;min-height:56px;padding:0 16px;gap:12px}
 .feed-page .logo{font-size:25px}
 .feed-page .logo>span:first-child{width:30px;height:30px;font-size:25px;border-radius:9px}
 .feed-page .ds-link{min-height:44px;display:flex;align-items:center}
 .feed-page .layout{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 12px max(8px,env(safe-area-inset-bottom));gap:0;width:100%}
 .feed-page aside{flex-shrink:0}
 .feed-page nav{height:52px;gap:8px;margin:0;align-items:center}
 .feed-page .nav-item{height:44px;min-width:0;justify-content:center;flex:1;border-radius:12px;padding:8px 12px;font-size:14px}
 .feed-page .nav-item>span{font-size:21px}
 .feed-page .nav-item b{margin-left:0;min-width:20px}
 .feed-page main{min-height:0;flex:1;display:flex;flex-direction:column}
 .feed-page .feed-head{height:28px;flex-shrink:0;padding:0 4px}
 .feed-page .feed-head .eyebrow{display:none}
 .feed-page .feed-head h2{font-size:14px;letter-spacing:0;margin:0;font-weight:600;color:var(--muted)}
 .feed-page .feed-count{font-size:12px;white-space:nowrap}
 .feed-page .chips{flex-shrink:0;margin:8px 0 12px;gap:6px;min-height:44px}
 .feed-page .chip{padding:9px 14px;font-size:14px;min-height:44px}
 .feed-page .feed{flex:1;min-height:0;height:auto;border-radius:20px;overscroll-behavior-y:contain;scroll-padding:0}
 .feed-page .car{height:100%;min-height:0;border-radius:20px;display:flex;flex-direction:column}
 .feed-page .visual{flex:1;min-height:100px;touch-action:pan-y}
 .feed-page .visual img{object-fit:contain}
 .feed-page .badges{top:12px;left:12px;gap:6px;max-width:calc(100% - 24px)}
 .feed-page .badge{font-size:12px;padding:6px 9px}
 .feed-page .photo-label{font-size:12px;right:12px;bottom:10px;background:#20232bc9;padding:3px 7px;border-radius:5px}
 .feed-page .car-body{padding:16px;flex-shrink:0}
 .feed-page .car h3{font-size:26px;line-height:1.2;letter-spacing:-.7px;margin-bottom:5px}
 .feed-page .sub{font-size:13px;line-height:1.4}
 .feed-page .specs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:16px 0}
 .feed-page .specs li{padding:0 8px;font-size:13px;min-width:0}
 .feed-page .specs li:first-child{padding-left:0}
 .feed-page .specs li:last-child{padding-right:0}
 .feed-page .specs b{font-size:14px;white-space:nowrap;letter-spacing:-.3px;margin-bottom:4px}
 .feed-page .specs span{font-size:12px;white-space:nowrap}
 .feed-page .specs li:first-child span{font-size:0}
 .feed-page .specs li:first-child span:after{content:'Год';font-size:12px}
 .feed-page .price-row{padding-top:14px;align-items:center;gap:8px}
 .feed-page .price{font-size:24px;line-height:1.3;white-space:nowrap}
 .feed-page .price-note{font-size:12px;line-height:1.5;max-width:175px}
 .feed-page .primary{font-size:14px;min-height:48px;padding:12px 16px;flex-shrink:0}
 .feed-page .empty{padding:32px 20px;overflow:auto}
 .feed-page dialog{width:100%;max-width:100%;max-height:85dvh;margin:auto 0 0;border-radius:24px 24px 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom));overflow:auto}
 .feed-page dialog:before{content:'';display:block;width:36px;height:4px;background:#d1d5dd;border-radius:4px;margin:-12px auto 16px}
 .feed-page dialog h2{font-size:26px}
 .feed-page .cost-line{gap:16px;line-height:1.5}
 .feed-page .cost-line b,.feed-page .cost-line.total span:last-child{white-space:nowrap}
 .feed-page #toast{bottom:max(16px,env(safe-area-inset-bottom));max-width:calc(100% - 32px);width:max-content;text-align:center}
}
@media(max-width:360px){
 .feed-page .car-body{padding:12px}
 .feed-page .specs li{padding:0 5px}
 .feed-page .specs b{font-size:13px}
 .feed-page .price{font-size:21px}
 .feed-page .primary{padding:12px;font-size:13px}
}
/* Short screens and zoom: retain access to all content instead of clipping. */
@media(max-width:760px) and (max-height:700px){
 .feed-page .car-body{padding:12px 14px}
 .feed-page .specs{margin:10px 0}
 .feed-page .price-row{padding-top:10px}
 .feed-page .car h3{font-size:23px}
 .feed-page .visual{min-height:72px}
}
@media(max-width:760px) and (max-height:560px){
 .feed-page{height:auto;min-height:100dvh;overflow:auto}
 .feed-page .feed{height:520px;flex:none}
 .feed-page .visual{min-height:160px}
}
[hidden]{display:none!important}
.filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 14px}
.filter-fields label{font-size:13px;color:var(--muted);display:grid;gap:8px}
.filter-fields select{width:100%;min-width:0;min-height:48px;border:1px solid #d7dbe3;border-radius:10px;background:#f7f8fa;color:var(--ink);font:inherit;font-size:14px;padding:10px}
.filter-fields select:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.filter-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px}
.filter-actions>button:first-child{border:0;background:transparent;color:var(--muted);min-height:44px;font-size:14px}
.visual{background:#172029;isolation:isolate}
.visual img{position:relative;z-index:1;object-fit:contain;padding:30px 0;cursor:zoom-in}
.visual:before{content:'';position:absolute;inset:-30px;background-image:var(--car-image);background-size:cover;background-position:center;filter:blur(35px);opacity:.22;z-index:0}
.visual:after{z-index:1;background:linear-gradient(180deg,#11192260,transparent 24%,transparent 78%,#11192270)}
.photo-label{z-index:3;pointer-events:none}
.visual .photo-label{left:16px;right:auto;bottom:20px;font-size:12px;background:transparent;padding:0}
.car{box-shadow:0 12px 36px #18233808}
.car h3{font-weight:800;letter-spacing:-1.2px}
#photo-dialog{padding:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;background:#111820;color:white;margin:0}
#photo-dialog .close{position:absolute;top:16px;right:16px;z-index:3;background:#ffffff20;color:white}
#photo-dialog img{width:100%;height:100%;object-fit:contain;padding:72px 12px}
#photo-caption{position:absolute;left:24px;bottom:24px;font-size:16px}
@media(max-width:760px){
 .feed-page .filter-bar{height:48px;min-height:48px;margin:4px 0 10px;padding:0;border-bottom:0;gap:0}
 .feed-page .filter-bar button{font-size:14px;padding:8px 12px;flex:1}
 .feed-page .filter-bar #clear-filters{font-size:0;flex:0;padding:8px;min-width:32px}
 .feed-page .filter-bar #clear-filters:after{content:'×';font-size:20px}
 .feed-page .visual img{padding:42px 0}
 .feed-page .visual{min-height:100px}
 .feed-page .car{border:0;background:#fff;box-shadow:none}
 .feed-page .car-body{padding:16px 18px}
 .feed-page .car h3{font-size:28px;letter-spacing:-1px}
 .feed-page .badge{font-size:11px;letter-spacing:.1px}
 .feed-page .specs{margin:14px 0}
 .feed-page .price{font-size:25px}
 .feed-page .primary{border-radius:14px;padding:12px 18px}
 .feed-page #photo-dialog{border-radius:0;max-height:100dvh;padding:0;height:100dvh}
 .feed-page #photo-dialog:before{display:none}
 .feed-page #photo-dialog img{padding:64px 0}
}
@media(max-width:360px){.feed-page .filter-bar button{padding:8px;font-size:13px}.feed-page .car-body{padding:12px}.feed-page .price{font-size:22px}.feed-page .primary{padding:12px}.filter-fields{grid-template-columns:1fr}}
@media(max-width:760px) and (max-height:700px){.feed-page .car-body{padding:12px 14px}.feed-page .car h3{font-size:24px}.feed-page .specs{margin:10px 0}.feed-page .visual{min-height:90px}.feed-page .visual img{padding:30px 0}}
@media(max-width:760px){.feed-page .filter-bar #clear-filters{display:none}.feed-page .filter-bar button{min-width:0}.feed-page .specs li:first-child span{font-size:12px}.feed-page .specs li:first-child span:after{content:none}}
@media(max-width:360px){.feed-page .specs li{padding:0 4px}.feed-page .specs b{font-size:12px;letter-spacing:-.4px}.feed-page .specs span{font-size:11px}}
/* Mobile: two rows, with the photograph starting at 108 px. */
@media(max-width:760px){
 .feed-page header{position:absolute;top:0;left:0;width:52px;height:52px;min-height:52px;border:0;background:transparent;padding:0 12px;z-index:2}
 .feed-page header .logo{font-size:0;gap:0;width:30px;min-height:44px}
 .feed-page header .logo>span:first-child{font-size:25px}
 .feed-page header .logo-dot,.feed-page header .ds-link{display:none}
 .feed-page .layout{padding-top:0}
 .feed-page nav{padding-left:44px;height:52px;margin:0;gap:12px}
 .feed-page .nav-item{flex:initial;border-radius:0;background:transparent;height:44px;padding:8px 0;gap:6px;color:var(--muted);font-size:14px}
 .feed-page .nav-item.active{color:var(--ink);box-shadow:inset 0 -2px var(--blue)}
 .feed-page .nav-item>span{display:none}
 .feed-page .nav-item b{font-size:11px;color:var(--muted);min-width:12px}
 .feed-page .feed-head{display:none}
 .feed-page .filter-bar{margin:4px 0 8px;height:44px;min-height:44px;gap:6px}
 .feed-page .filter-bar button{background:#eceef2;border-radius:10px;padding:8px 10px;justify-content:space-between;flex:1;min-height:44px}
 .feed-page .filter-bar #filters-trigger{background:transparent;justify-content:center;flex:0 0 auto;gap:6px}
 .feed-page .filter-bar #filters-trigger svg{width:16px}
 .feed-page .filter-bar #clear-filters{display:none}
}
/* Visual catalog picker */
#filters-dialog{width:680px;max-width:calc(100vw - 32px);padding:0;border-radius:28px;max-height:92dvh;overflow:hidden}
#filters-dialog[open]{display:flex;flex-direction:column}
.picker-heading{padding:26px 28px 18px;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-shrink:0}
.picker-heading .eyebrow{font-size:10px;letter-spacing:1.4px}.picker-heading h2{font-size:28px;margin:6px 0 0;letter-spacing:-1px}.picker-heading .close{float:none;flex-shrink:0}
#filter-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.picker-scroll{padding:0 28px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.picker-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:22px}
.picker-tabs button{border:0;background:none;min-height:44px;color:var(--muted);font-size:12px;display:flex;align-items:center;gap:8px;border-bottom:2px solid transparent;padding:0 0 12px}
.picker-tabs button span{font-size:15px;font-weight:700}.picker-tabs button[aria-pressed=true]{color:var(--blue);border-color:var(--blue)}
.brand-search{display:flex;align-items:center;gap:10px;background:#f1f3f6;border-radius:12px;padding:0 14px;color:var(--muted);margin-bottom:22px}
.brand-search input{border:0;background:transparent;min-width:0;flex:1;height:48px;outline:none;font:inherit;font-size:14px}.brand-search:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.picker-section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;gap:12px}.picker-section-title h3{font-size:16px;margin:0;letter-spacing:-.3px}.picker-section-title button{border:0;background:none;color:var(--blue);font-size:13px;min-height:44px}
.brand-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.brand-tile{position:relative;display:flex;align-items:center;flex-direction:column;gap:6px;min-height:148px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:23px 12px 16px;transition:background .15s,border-color .15s}
.brand-tile img{width:78px;height:40px;object-fit:contain;margin-bottom:12px}.brand-tile strong{font-size:14px}.brand-tile>span{font-size:12px;color:var(--muted)}.brand-tile i{position:absolute;right:10px;top:8px;color:var(--muted);font-style:normal;font-size:13px}.brand-tile:hover{background:#f7f8fa;border-color:#bbc9ff}.brand-tile.chosen{background:var(--blue-soft);border-color:var(--blue)}
.model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.model-tile{text-align:left;padding:0;overflow:hidden;border-radius:18px;border:1px solid var(--line);background:white;transition:border-color .15s,box-shadow .15s}.model-tile.chosen{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue);background:#f8faff}.model-photo{position:relative;background:#eef0f4;height:158px;display:flex;align-items:center}.model-photo img{width:100%;height:100%;object-fit:contain}.model-check{position:absolute;right:10px;top:10px;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;background:#fff;color:#566074;box-shadow:0 2px 8px #0001}.chosen .model-check{background:var(--blue);color:white}.model-info{padding:15px;display:flex;flex-direction:column;gap:6px}.model-info strong{font-size:19px;letter-spacing:-.6px}.model-info>span{font-size:12px;color:var(--muted)}.model-info b{font-size:16px;margin-top:10px;letter-spacing:-.4px}.model-info small{font-size:11px;color:var(--muted)}
#filters-dialog .picker-note{font-size:12px;line-height:1.6;margin:16px 0 20px;color:var(--muted)}
#technical-filters{border-top:1px solid var(--line);padding-top:4px}#technical-filters summary{cursor:pointer;min-height:62px;padding:16px 0;font-size:14px;font-weight:700}#technical-filters summary span{font-size:12px;color:var(--muted);font-weight:400;display:block;padding-top:5px}#technical-filters .filter-fields{padding-bottom:12px}
.picker-footer{border-top:1px solid var(--line);background:white;padding:16px 28px 22px;flex-shrink:0;box-shadow:0 -8px 20px #1a254003}.picker-footer .filter-actions{margin:0}.picker-footer .primary{min-height:48px;min-width:180px}.picker-footer #selected-preview{display:flex;align-items:center;gap:12px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}#selected-preview img{width:64px;height:42px;object-fit:contain;background:#edf0f5;border-radius:8px}#selected-preview div{display:flex;flex-direction:column;gap:4px}#selected-preview strong{font-size:14px}#selected-preview span{font-size:12px;color:var(--muted)}#selected-preview .selection-check{margin-left:auto;color:var(--blue);font-size:18px}
@media(max-width:760px){
 .feed-page #filters-dialog{width:100%;max-width:100%;height:90dvh;max-height:90dvh;border-radius:24px 24px 0 0;padding:0;margin:auto 0 0}
 .feed-page #filters-dialog:before{display:none}
 .picker-heading{padding:22px 20px 14px}.picker-heading .eyebrow{font-size:9px}.feed-page .picker-heading h2{font-size:25px;margin:6px 0 0}.picker-scroll{padding:0 20px 16px}.picker-tabs{margin-bottom:16px}
 .brand-grid{gap:8px}.brand-tile{padding:20px 6px 14px;min-height:134px}.brand-tile img{width:64px;height:32px}.brand-tile strong{font-size:13px}.model-grid{gap:10px}.model-photo{height:115px}.model-info{padding:12px}.model-info strong{font-size:17px}.model-info b{font-size:14px;white-space:nowrap}.model-info small{font-size:10px}.model-check{width:24px;height:24px;right:7px;top:7px}.picker-footer{padding:14px 20px max(16px,env(safe-area-inset-bottom))}.picker-footer .primary{flex:1;min-width:0}.picker-footer .filter-actions{gap:24px}#filter-form{flex:1}.picker-scroll{flex:1}
}
@media(max-width:360px){.picker-heading,.picker-scroll{padding-left:16px;padding-right:16px}.brand-tile img{width:56px}.brand-tile strong{font-size:12px}.model-info{padding:10px}.model-info strong{font-size:15px}.model-info b{font-size:12px}.model-photo{height:100px}.picker-heading .eyebrow{font-size:8px}}

/* Most makes in the live catalogue have no bundled logo file; the tile falls
   back to the make's initial so the grid stays even. */
.brand-initial{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;
  background:var(--surface-2,#1b1b1f);color:var(--text,#fff);font-weight:700;font-size:20px;
  line-height:1;text-transform:uppercase}

/* Photo strip inside the detail dialog */
.detail-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin:12px 0}
.detail-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}
#detail-content details{margin:8px 0 16px}
#detail-content summary{cursor:pointer;padding:8px 0;font-weight:600}
