:root{--ink:#18342b;--green:#174c3b;--cream:#f4f1e8;--paper:#fff;--lime:#dcec8c;--muted:#718078;--line:#d8e0da}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.45 Inter,Arial,sans-serif}
button,input,select{font:inherit}
.wrap{width:min(1440px,calc(100% - 40px));margin:auto}
header{position:relative;min-height:390px;padding:22px 0 58px;background:linear-gradient(90deg,rgba(6,35,26,.94) 0%,rgba(6,35,26,.74) 38%,rgba(6,35,26,.18) 72%,rgba(6,35,26,.1) 100%),linear-gradient(180deg,rgba(5,26,20,.48),transparent 42%,rgba(5,26,20,.22)),url('../media/catalog/catalog-hero-v1.webp') center 48%/cover no-repeat;color:#fff}
nav{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:20px;text-decoration:none}
.brand img{width:29px;height:36px}
nav>div{display:flex;gap:26px}
nav>div a{color:#c7d5cf;text-decoration:none}
.catalog-head{padding-top:76px}
.catalog-head p,.results-head p{margin:0 0 8px;color:#95aa9f;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.catalog-head h1{margin:0;font-size:clamp(48px,6vw,78px);line-height:1;letter-spacing:-.05em}
.catalog-head span{display:block;max-width:560px;margin-top:18px;color:#d7e2dd;font-size:17px;text-shadow:0 1px 12px #062219}
.catalog-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:30px;align-items:start;padding-block:42px 90px}
aside{position:sticky;top:15px;max-height:calc(100vh - 30px);overflow-y:auto;padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff;scrollbar-width:thin}
.sidebar__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;font-size:20px}
.sidebar__head button{display:none;border:0;background:none;font-size:28px}
form{display:grid;gap:16px}
form label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}
form input,form select{width:100%;height:44px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#fafbf9;color:var(--ink)}
fieldset{margin:0;padding:0;border:0}
legend{margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:700}
fieldset>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
form button{height:46px;border:0;border-radius:23px;font-weight:800;cursor:pointer}
.filter-actions{position:sticky;z-index:3;bottom:-22px;display:grid;grid-template-columns:1.35fr .65fr;gap:8px;margin:5px -22px -22px;padding:14px 22px 20px;border-top:1px solid var(--line);background:#fff;box-shadow:0 -12px 24px #fff}
.apply{background:var(--green);color:#fff}
.reset{background:#edf1ed;color:var(--ink)}
#mobile-filter{display:none}
.results-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}
.results-head h2{margin:0;font-size:38px;letter-spacing:-.04em}
#active-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}
#active-filters:empty{display:none}
.filter-chip{padding:7px 10px;border:1px solid #b9c8c0;border-radius:20px;background:#edf2ef;color:var(--green);font-size:12px;cursor:pointer}
#catalog-notice{padding:30px;border:1px dashed #9aaa9f;border-radius:16px;text-align:center}
#catalog-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#catalog-cards[aria-busy=true]:empty{min-height:350px;border-radius:20px;background:linear-gradient(100deg,#e1e3dc 30%,#f3f2ed 50%,#e1e3dc 70%);background-size:400%;animation:load 1.4s infinite}
.plot-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 25px #18342b0c}
.plot-card__visual{position:relative;display:flex;justify-content:space-between;min-height:210px;padding:15px;background:#dce5d9 center/cover no-repeat}
.plot-card__visual.visual-link{cursor:pointer}
.plot-card__visual.visual-link:focus-visible{outline:3px solid var(--lime);outline-offset:-3px}
.plot-card__visual.contain{background-color:#fff;background-size:contain;background-repeat:no-repeat}
.plot-card__status,.plot-card__number{height:max-content;padding:6px 9px;border-radius:20px;background:#fff;color:var(--green);font-size:11px;font-weight:800}
.plot-card__number{background:var(--green);color:#fff}
.plot-card__visual>button{position:absolute;top:50%;width:36px;height:36px;border:0;border-radius:50%;background:#ffffffe8;font-size:25px;transform:translateY(-50%);cursor:pointer}
.gallery-prev{left:10px}
.gallery-next{right:10px}
.gallery-count{position:absolute;right:12px;bottom:10px;padding:4px 8px;border-radius:15px;background:#102f26ce;color:#fff}
.plot-card__body{padding:18px}
.plot-card__place{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}
.plot-card__place a{color:var(--green);font-weight:800;text-decoration:none}
.plot-card h3{margin:7px 0 15px;font-size:24px}
.plot-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:13px 0;border-block:1px solid var(--line)}
.plot-card dt{color:var(--muted);font-size:10px}
.plot-card dd{margin:2px 0 0;font-weight:800}
.price button{padding:0;border:0;border-bottom:1px dashed var(--green);background:none;color:var(--green);font-weight:800;cursor:pointer}
.address{min-height:42px;color:var(--muted);font-size:12px}
.plot-card__actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.plot-card__actions a{display:flex;justify-content:space-between;padding:11px;border-radius:10px;background:var(--green);color:#fff;font-weight:800;text-decoration:none}
.plot-card__actions .plan,.plot-card__actions .tour{border:1px solid var(--green);background:#fff;color:var(--green)}
.plot-card__actions .tour{grid-column:1/-1}
.plot-card__actions [hidden]{display:none}
#catalog-more{display:block;min-width:240px;height:54px;margin:28px auto 0;border:0;border-radius:27px;background:var(--green);color:#fff;font-weight:800;cursor:pointer}
#catalog-more[hidden]{display:none}
dialog{width:min(500px,calc(100% - 24px));padding:32px;border:0;border-radius:20px;color:var(--ink)}
dialog::backdrop{background:#061912c7}
dialog>p{color:var(--green);font-size:11px;text-transform:uppercase}
dialog h2{margin:0 0 8px;font-size:36px}
.modal-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:50%;font-size:24px}
dialog form{margin-top:20px}
dialog form label:has(input[type=checkbox]){display:flex;align-items:center;grid-template-columns:auto 1fr}
dialog input[type=checkbox]{width:18px;height:18px}
dialog form button{background:var(--green);color:#fff}
footer{padding:30px 0;background:#0d3025;color:#fff}
footer .wrap{display:flex;justify-content:space-between}
footer .wrap{align-items:center;gap:28px}footer a{color:#c8d8d1;text-decoration:none}footer a:hover{color:#ddec8f}.footer-contacts,footer nav{display:flex;flex-wrap:wrap;gap:8px 20px}.footer-contacts a{color:#fff;font-weight:750}footer nav{font-size:12px}
@keyframes load{to{background-position:-400%}
}
@media(max-width:1180px){#catalog-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){.wrap{width:min(100% - 24px,1440px)}
header{min-height:355px;background-position:62% center}
.catalog-head{padding-top:62px}
nav>div{display:none}
.catalog-layout{display:block;padding-top:20px}
#mobile-filter{display:flex;justify-content:space-between;width:100%;height:48px;margin-bottom:20px;padding:0 18px;border:0;border-radius:24px;background:var(--green);color:#fff;font-weight:800;align-items:center}
aside{position:fixed;z-index:30;inset:0 0 0 auto;width:min(360px,100%);max-height:none;overflow:auto;border-radius:0;transform:translateX(105%);transition:transform .25s}
aside.open{transform:none}
.sidebar__head button{display:block}
#catalog-cards{grid-template-columns:1fr}
.results-head h2{font-size:32px}
.plot-card__visual{min-height:240px}
}
