/* ГЛАВНАЯ: квадратные эскизы, края обрезаются без искажения фото. */
.home-sketch-carousel .cards.sketch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.home-sketch-carousel .cards.sketch .card img{display:block;width:100%;height:auto;aspect-ratio:1 / 1;object-fit:cover;object-position:center;}
.home-sketch-carousel .cards.sketch .card[hidden]{display:none!important;}
.home-sketch-carousel:not([data-ready]) .card:nth-child(n+5){display:none;}
.sketch-pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:26px;}
.sketch-pagination[hidden]{display:none;}
.sketch-pagination button{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border:1px solid #17473866;border-radius:50%;background:#f0f8f6;color:#174738;font:500 13px Inter,sans-serif;cursor:pointer;}
.sketch-pagination button[aria-current="page"]{background:#174738;color:#f0f8f6;border-color:#174738;}
.sketch-pagination button:focus-visible{outline:3px solid #85f2d0;outline-offset:3px;}
.sketch-page-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media(max-width:760px){.home-sketch-carousel .cards.sketch{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.home-sketch-carousel:not([data-ready]) .card:nth-child(n+3){display:none;}}
/* ФИКСИРОВАННАЯ СЕТКА: каждый слайд занимает ровно ширину окна, даже неполный. */
.sketch-viewport{width:100%;overflow:hidden;}
.sketch-track{display:flex;width:100%;align-items:stretch;}
.sketch-track.is-animated{transition:transform 500ms cubic-bezier(.22,.61,.36,1);}
.home-sketch-carousel .sketch-slide.cards.sketch{flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;margin:0;align-content:start;}
.home-sketch-carousel .sketch-slide .card{min-width:0;width:100%;}
.home-sketch-carousel .sketch-slide .card>a{display:block;width:100%;}
.home-sketch-carousel .sketch-slide .card img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;}
.home-sketch-carousel .sketch-slide .caption{min-height:78px;box-sizing:border-box;align-items:flex-start;}
.sketch-pagination{gap:4px;}
.sketch-pagination button{min-width:32px;width:32px;height:32px;padding:0;border:0;background:transparent;border-radius:50%;}
.sketch-pagination button:before{content:'';width:8px;height:8px;border-radius:50%;background:#9cbbad;transition:background .2s,transform .2s;}
.sketch-pagination button[aria-current="page"]{background:transparent;}
.sketch-pagination button[aria-current="page"]:before{background:#174738;transform:scale(1.4);}
@media(prefers-reduced-motion:reduce){.sketch-track.is-animated{transition:none;}}
