.cars-section { --car-ink:#112b47; --car-blue:#1760a8; background:#f3f6fa; color:var(--car-ink); padding:clamp(36px,5vw,72px) 0; font:16px/1.55 "Segoe UI",Arial,sans-serif; }
.cars-section *, .car-gallery * { box-sizing:border-box; }
.cars-container { width:min(1240px,calc(100% - 64px)); margin:0 auto; }
.cars-section .cars-heading { font:500 clamp(28px,3.7vw,50px)/1.2 "Arial Black",Arial,sans-serif; color:#04045e; text-align:center; margin:0 0 36px; padding:0; overflow-wrap:anywhere; }
.cars-section-home { background:#04045e; }
.cars-section-home .cars-heading,.cars-section-home .cars-empty { color:#fff; }
.cars-section-home .cars-catalog-link a { background:#fff; color:#04045e; }
.cars-section-home .cars-catalog-link a:hover { background:#e9efff; }
.cars-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; align-items:stretch; }
.cars-carousel .car-card[hidden],.cars-carousel-controls[hidden],.cars-carousel-controls button[hidden] { display:none!important; }
.cars-carousel-controls { display:flex; justify-content:center; align-items:center; gap:14px; margin:-12px 0 24px; color:#fff; }
.cars-carousel-controls button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 48px; width:48px; height:48px; padding:0; color:#fff; background:#ffffff12; border:1px solid #ffffff8c; border-radius:50%; cursor:pointer; }
.cars-carousel-controls button:hover { background:#ffffff26; border-color:#fff; }
.cars-carousel-controls button:focus-visible,.cars-carousel .cars-grid:focus-visible { outline:3px solid #fff; outline-offset:4px; }
.cars-carousel-count { min-width:72px; text-align:center; font-size:15px; font-variant-numeric:tabular-nums; }
.cars-rotation { margin-right:4px; }
.cars-rotation .cars-play-icon,.cars-rotation[data-paused="true"] .cars-pause-icon { display:none; }
.cars-rotation[data-paused="true"] .cars-play-icon { display:block; }
.cars-carousel-ready .cars-grid { touch-action:pan-y pinch-zoom; }
.car-card { display:flex; flex-direction:column; min-width:0; border:1px solid #dce4ee; border-radius:20px; background:#fff; overflow:hidden; box-shadow:0 7px 18px #17375708; scroll-margin-top:100px; }
.car-photo-button { display:block; flex-shrink:0; position:relative; padding:0; border:0; width:100%; cursor:zoom-in; background:#e8edf2; color:#fff; }
.car-photo-button picture { display:block; }
.car-photo-button img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
.car-photo-badge { position:absolute; bottom:14px; right:14px; display:flex; gap:8px; align-items:center; padding:7px 11px; border-radius:9px; background:#112b47df; font:600 14px/1.4 "Segoe UI",Arial,sans-serif; }
.car-photo-empty { display:flex; flex-shrink:0; flex-direction:column; align-items:center; justify-content:center; gap:14px; aspect-ratio:3/2; color:#61758b; background:#e8edf2; padding:20px; text-align:center; }
.car-card-body { display:flex; flex-direction:column; flex:1; padding:clamp(18px,2.3vw,28px); }
.car-card-title { margin:0 0 8px; font:600 clamp(22px,2vw,28px)/1.25 "Segoe UI",Arial,sans-serif; overflow-wrap:anywhere; }
.car-card-title a { color:#112b47; text-decoration:none; }
.car-card-title a:hover { color:#1760a8; }
.car-year { display:inline-block; color:#5e7084; font-size:.8em; margin-left:.5em; }
.car-trim { margin:0 0 16px; color:#53677d; overflow-wrap:anywhere; }
.car-price { color:#112b47; font-size:clamp(27px,2.6vw,36px); font-weight:700; line-height:1.2; margin:18px 0 24px; overflow-wrap:anywhere; }
.car-specs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; padding:20px 0; margin:0; border-top:1px solid #e2e9f1; border-bottom:1px solid #e2e9f1; }
.car-specs div { min-width:0; }
.car-specs dt { font-size:13px; color:#637387; font-weight:400; margin-bottom:3px; }
.car-specs dd { margin:0; font-weight:600; color:#203b55; overflow-wrap:anywhere; }
.car-description { margin:22px 0; color:#3d5267; line-height:1.65; overflow-wrap:anywhere; }
.car-description p { margin:0 0 14px; }
.car-description p:last-child { margin-bottom:0; }
.car-contacts { margin-top:auto; padding-top:24px; text-align:center; }
.car-messengers { display:flex; gap:12px; flex-wrap:wrap; }
.car-contact { display:inline-flex; flex:1 1 130px; min-width:0; min-height:48px; justify-content:center; align-items:center; gap:10px; padding:11px 14px; color:#153d67; background:#f5f8fc; border:1px solid #dce6f2; border-radius:10px; font-weight:600; text-decoration:none; }
.car-contact:hover { background:#e9f1fb; border-color:#9ebbdc; color:#123657; text-decoration:none; }
.car-contact img { width:24px; height:24px; flex:0 0 24px; }
.car-phone { display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; min-height:44px; margin-top:8px; color:#314d68; font-size:16px; text-decoration:none; }
.cars-catalog-link { display:flex; justify-content:center; margin-top:32px; }
.cars-catalog-link a { display:inline-flex; align-items:center; gap:22px; padding:13px 28px; min-height:48px; border-radius:10px; background:#112b47; color:#fff; font-size:18px; text-decoration:none; }
.cars-catalog-link a:hover { background:#1760a8; }
.cars-pagination { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:20px; margin:32px 0 0; }
.cars-pagination a { padding:12px 16px; min-height:44px; border:1px solid #cbd9e8; border-radius:9px; background:#fff; color:#153d67; }
.cars-empty { grid-column:1/-1; text-align:center; padding:36px 10px; }
.cars-section a:focus-visible,.cars-section button:focus-visible { outline:3px solid #2381cc; outline-offset:4px; }
.car-photo-button:focus-visible { outline-offset:-5px!important; }
.car-gallery { position:fixed; inset:0; width:100vw; max-width:none; height:100vh; height:100dvh; max-height:none; margin:0; border:0; padding:0; background:#080d15f7; color:#fff; overflow:hidden; z-index:2000; font:15px/1.4 "Segoe UI",Arial,sans-serif; }
.car-gallery[open] { display:flex; flex-direction:column; }
.car-gallery:not([open]) { display:none; }
.car-gallery::backdrop { background:#080d15; }
.car-gallery-bar { display:flex; gap:16px; align-items:center; justify-content:space-between; flex-shrink:0; padding:max(10px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); }
.car-gallery-bar h2 { font:600 clamp(15px,2vw,21px)/1.4 "Segoe UI",Arial,sans-serif; margin:0; color:#fff; overflow-wrap:anywhere; }
.car-gallery button { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; padding:0; border:1px solid #627185; background:#202d3f; color:#fff; border-radius:50%; font:28px/1 Arial,sans-serif; cursor:pointer; }
.car-gallery button:hover { background:#364a65; }
.car-gallery button:disabled { opacity:.4; cursor:default; }
.car-gallery button:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.car-gallery-stage { position:relative; flex:1; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action:none; }
.car-gallery-image { display:block; width:100%; height:100%; object-fit:contain; user-select:none; transform-origin:center; }
.car-gallery-image:not([src]) { display:none; }
.car-gallery-message { position:absolute; max-width:90%; text-align:center; padding:12px; margin:0; background:#0e1728df; border-radius:8px; pointer-events:none; }
.car-gallery-message[hidden] { display:none; }
.car-gallery-controls { display:flex; gap:20px; justify-content:center; align-items:center; padding:12px 16px 0; flex-shrink:0; }
.gallery-count { min-width:65px; text-align:center; }
.car-gallery-hint { text-align:center; color:#b9c5d5; margin:10px 12px max(12px,env(safe-area-inset-bottom)); font-size:12px; flex-shrink:0; }
@media (max-width:849px) { .cars-grid { grid-template-columns:minmax(0,1fr); gap:24px; } .cars-container { width:calc(100% - 40px); } }
@media (max-width:389px) { .cars-container { width:calc(100% - 24px); } .car-messengers { gap:8px; } .car-contact { flex-basis:105px; } .car-gallery-controls { gap:12px; } }
@media (max-height:500px) and (orientation:landscape) { .car-gallery-bar { padding-top:max(4px,env(safe-area-inset-top)); padding-bottom:4px; } .car-gallery button { height:44px;width:44px; } .car-gallery-hint { display:none; } .car-gallery-controls { padding:4px 8px max(4px,env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion:reduce) { .cars-section *, .car-gallery * { scroll-behavior:auto!important; transition:none!important; } }
