/* ============================================================
   Сайт «Ключ» — аренда недвижимости в Красноярске
   Палитра: olive/cream/ink. Шрифты: Manrope + Onest.
   Включает: публичный дизайн (герой, каталог, объект) и ЛК/админ-формы.
   ============================================================ */
:root {
    --ink:#202923;
    --ink2:#354137;
    --olive:#82916c;
    --olive2:#dce4d1;
    --cream:#f5f5f0;
    --white:#fff;
    --gray:#92988e;
    --border:#e7e9e1;
    --orange:#d98c5b;
    --green:#16a34a;
    --red:#dc2626;
}

* { box-sizing:border-box; }
html,body { margin:0; padding:0; }
body {
    background:var(--cream);
    color:var(--ink);
    font-family:'Onest',sans-serif;
    line-height:1.55;
}
a { text-decoration:none; color:inherit; }
button,input,select,textarea { font-family:inherit; }
img { max-width:100%; display:block; }
.container { max-width:1320px; }
.muted { color:var(--gray); }
.mono { font-family:ui-monospace,Consolas,monospace; letter-spacing:.3px; }

/* ---------- Top line ---------- */
.top-line { background:var(--ink); color:#c9d0c4; padding:10px 0; font-size:10px; letter-spacing:.5px; }
.top-line a { color:white; }

/* ---------- Header / brand ---------- */
.header {
    background:rgba(245,245,240,.97);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:100;
    backdrop-filter:blur(12px);
}
.header-inner { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:25px; }
.brand { display:flex; align-items:center; gap:11px; font-family:'Manrope',sans-serif; font-weight:800; font-size:23px; letter-spacing:-1.4px; color:var(--ink); }
.brand:hover { text-decoration:none; color:var(--ink); }
.brand-icon { width:39px; height:39px; display:grid; place-items:center; background:var(--olive); color:white; border-radius:12px 3px 12px 3px; }
.brand-icon svg { width:23px; height:23px; }
.brand small { display:block; font-family:'Onest',sans-serif; font-size:8px; font-weight:600; letter-spacing:1.5px; color:var(--gray); margin-top:-3px; }

.nav-menu { display:flex; align-items:center; gap:30px; }
.nav-menu a { font-size:11px; font-weight:600; color:#60695e; }
.nav-menu a:hover { color:var(--olive); }

.sv-header-actions { margin-left:auto; display:flex; align-items:center; gap:18px; }
.log-out { font-weight:700; font-size:13px; color:var(--ink); }
.log-out:hover { color:var(--olive); }

/* ---------- Buttons ---------- */
.btn-primary-custom {
    display:inline-flex; justify-content:center; align-items:center; gap:10px;
    background:var(--ink); color:white; border:1px solid var(--ink);
    padding:14px 22px; font-size:10px; font-weight:700; letter-spacing:.5px;
    border-radius:5px; transition:.25s; cursor:pointer;
}
.btn-primary-custom:hover { background:var(--olive); border-color:var(--olive); color:white; text-decoration:none; }
.btn-outline-custom {
    display:inline-flex; align-items:center; justify-content:center;
    padding:13px 21px; border:1px solid #d9ded2; border-radius:5px;
    font-size:10px; font-weight:700; transition:.2s;
}
.btn-outline-custom:hover { background:var(--ink); color:white; border-color:var(--ink); text-decoration:none; }

.eyebrow { display:flex; align-items:center; gap:10px; color:var(--olive); text-transform:uppercase; letter-spacing:2px; font-size:9px; font-weight:800; }
.eyebrow:before { content:""; height:1px; width:25px; background:var(--olive); }
.section-title { font-family:'Manrope',sans-serif; font-size:clamp(30px,4vw,47px); font-weight:700; letter-spacing:-2px; line-height:1.15; }

/* ---------- Hero ---------- */
.hero { padding:24px 0 0; }
.hero-main { position:relative; min-height:570px; overflow:hidden; border-radius:8px; background:#49554a; display:flex; align-items:center; }
.hero-main > img { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; object-position:center; }
.hero-main:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(22,32,26,.91),rgba(22,32,26,.58) 47%,rgba(22,32,26,.05)); }
.hero-content { position:relative; z-index:2; color:white; padding:65px 7%; max-width:720px; }
.hero-city { display:inline-flex; align-items:center; gap:9px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.2); padding:9px 13px; border-radius:30px; color:#e2e8dc; font-size:10px; margin-bottom:27px; }
.hero-city span { width:7px; height:7px; border-radius:50%; background:#c7d79e; }
.hero h1 { font-family:'Manrope',sans-serif; font-size:clamp(43px,6vw,76px); line-height:1.05; font-weight:700; letter-spacing:-3.8px; margin:0 0 22px; }
.hero h1 em { color:#c1d0a9; font-style:normal; }
.hero-description { color:#d1d8ce; font-size:13px; line-height:1.9; max-width:420px; margin-bottom:32px; }
.hero-meta { position:absolute; right:30px; bottom:28px; z-index:2; color:white; font-size:9px; letter-spacing:2px; writing-mode:vertical-rl; }

/* ---------- Search ---------- */
.search-wrap { position:relative; z-index:5; margin-top:-35px; }
.search-box { background:white; padding:23px; border-radius:7px; box-shadow:0 18px 50px rgba(32,41,35,.1); display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr auto; gap:15px; align-items:end; }
.field label { display:block; font-size:9px; color:#91988d; font-weight:800; letter-spacing:1px; text-transform:uppercase; margin-bottom:9px; }
.field input,.field select { width:100%; background:transparent; border:0; border-bottom:1px solid var(--border); outline:0; border-radius:0; padding:9px 0 11px; font-size:12px; color:var(--ink); }
.field input:focus,.field select:focus { border-color:var(--olive); }
.search-button { white-space:nowrap; height:43px; }

/* ---------- Quick info ---------- */
.quick-info { padding:57px 0 65px; }
.info-item { display:flex; align-items:center; gap:13px; }
.info-icon { width:43px; height:43px; border:1px solid #dfe4d7; border-radius:5px; display:grid; place-items:center; color:var(--olive); flex-shrink:0; }
.info-icon svg { width:21px; height:21px; }
.info-item strong { display:block; font-size:11px; font-weight:700; }
.info-item span { display:block; font-size:9px; color:var(--gray); margin-top:4px; }

/* ---------- Section head ---------- */
.section-head { display:flex; align-items:end; justify-content:space-between; gap:25px; margin-bottom:35px; }
.section-subtitle { color:var(--gray); font-size:12px; line-height:1.8; max-width:370px; }

/* ---------- Catalog ---------- */
.catalog { background:#fff; padding:85px 0 95px; }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.filter-btn { background:white; border:1px solid var(--border); border-radius:4px; padding:10px 17px; font-size:10px; font-weight:700; color:#747c70; transition:.2s; cursor:pointer; }
.filter-btn.active,.filter-btn:hover { background:var(--ink); border-color:var(--ink); color:white; }

.listing { height:100%; background:white; border:1px solid #ebede6; border-radius:6px; overflow:hidden; transition:.3s; }
.listing:hover { transform:translateY(-5px); box-shadow:0 15px 35px rgba(32,41,35,.09); }
.listing-photo { height:245px; position:relative; overflow:hidden; background:#e8e9e2; }
.listing-photo img { width:100%; height:100%; object-fit:cover; transition:.5s; }
.listing:hover .listing-photo img { transform:scale(1.045); }
.listing-badge { position:absolute; left:14px; top:14px; background:white; padding:8px 11px; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.6px; border-radius:3px; }
.like-btn { position:absolute; right:14px; top:13px; width:36px; height:36px; display:grid; place-items:center; background:white; border:0; border-radius:50%; color:#586052; cursor:pointer; }
.like-btn svg { width:18px; height:18px; }
.like-btn.active { color:#cb735e; }
.like-btn.active svg { fill:#cb735e; }
.listing-body { padding:19px; }
.listing-district { font-size:9px; color:var(--olive); font-weight:800; text-transform:uppercase; letter-spacing:.7px; margin-bottom:9px; }
.listing-title { font-family:'Manrope',sans-serif; font-size:17px; font-weight:700; letter-spacing:-.5px; margin-bottom:8px; }
.listing-address { color:var(--gray); font-size:10px; margin-bottom:16px; }
.listing-details { display:flex; gap:14px; flex-wrap:wrap; padding:13px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.listing-details span { color:#747c70; font-size:9px; }
.listing-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:16px; }
.listing-price { font-family:'Manrope',sans-serif; font-size:21px; font-weight:800; letter-spacing:-1px; }
.listing-price small { display:block; font-family:'Onest',sans-serif; font-size:9px; font-weight:400; color:var(--gray); letter-spacing:0; }
.listing-link { width:38px; height:38px; display:grid; place-items:center; background:var(--cream); font-size:17px; border-radius:4px; }
.listing:hover .listing-link { background:var(--olive); color:white; }
.no-results { display:none; text-align:center; padding:40px 20px; font-size:13px; color:var(--gray); }

/* ---------- Districts ---------- */
.districts { padding:90px 0; }
.district-grid { display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; grid-template-rows:210px 210px; gap:12px; }
.district-card { position:relative; overflow:hidden; background:#687264; border-radius:5px; color:white; }
.district-card:first-child { grid-row:span 2; }
.district-card img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; transition:.5s; }
.district-card:hover img { transform:scale(1.06); }
.district-card:after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(20,29,22,.85),transparent 75%); }
.district-text { position:absolute; z-index:2; left:19px; bottom:18px; }
.district-text h3 { font-family:'Manrope',sans-serif; font-size:20px; font-weight:700; margin-bottom:5px; }
.district-text span { color:#e0e5dc; font-size:9px; }

/* ---------- Local banner ---------- */
.local-banner { background:var(--ink); color:white; padding:85px 0; }
.local-photo { height:440px; width:100%; object-fit:cover; border-radius:5px; }
.local-banner .section-title { color:white; }
.local-banner .section-subtitle { color:#aeb8ac; }
.local-stat { padding:20px 0; border-bottom:1px solid rgba(255,255,255,.14); }
.local-stat strong { display:block; font-family:'Manrope',sans-serif; font-size:27px; color:#c7d3ae; }
.local-stat span { color:#aeb8ac; font-size:10px; }

/* ---------- Steps ---------- */
.steps { padding:95px 0; }
.step { padding:25px 18px 25px 0; border-top:1px solid #dfe2d8; height:100%; }
.step-num { font-family:'Manrope',sans-serif; font-size:37px; font-weight:700; color:#a3af8e; margin-bottom:23px; }
.step h3 { font-family:'Manrope',sans-serif; font-size:16px; font-weight:700; margin-bottom:11px; }
.step p { font-size:11px; line-height:1.8; color:var(--gray); }

/* ---------- Owners ---------- */
.owners { background:#e3e8dc; padding:75px 0; }
.owners-grid { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:55px; }
.owners-image { width:100%; height:400px; object-fit:cover; border-radius:5px; }
.owners-list { list-style:none; padding:0; margin:25px 0; }
.owners-list li { font-size:11px; padding:12px 0; border-bottom:1px solid #cfd7c8; }
.owners-list li:before { content:"↗"; color:var(--olive); margin-right:12px; }

/* ---------- CTA ---------- */
.bottom-cta { padding:85px 0; }
.cta-box { background:#d9e1cd; border-radius:6px; padding:55px; display:flex; align-items:center; justify-content:space-between; gap:25px; }
.cta-box h2 { font-family:'Manrope',sans-serif; font-size:clamp(28px,4vw,43px); font-weight:700; letter-spacing:-1.8px; margin-bottom:9px; }
.cta-box p { font-size:11px; color:#727c69; margin:0; }

/* ---------- Footer ---------- */
.footer { background:#202923; color:white; padding:65px 0 23px; }
.footer .brand { color:white; }
.footer-description { color:#a1aa9e; font-size:11px; line-height:1.9; max-width:300px; margin-top:18px; }
.footer h6 { font-size:10px; text-transform:uppercase; letter-spacing:1.5px; margin-bottom:20px; }
.footer-links a { display:block; color:#aab3a6; font-size:10px; margin:13px 0; }
.footer-links a:hover { color:#c9d9b3; text-decoration:none; }
.footer-bottom { margin-top:45px; padding-top:22px; border-top:1px solid rgba(255,255,255,.12); color:#879186; font-size:9px; }

/* ---------- Property page ---------- */
.property-wrap { padding:35px 20px 70px; }
.prop-title { font-family:'Manrope',sans-serif; font-size:clamp(26px,3vw,40px); font-weight:700; letter-spacing:-1.5px; margin:0 0 4px; }
.prop-address { color:var(--gray); font-size:11px; margin-bottom:20px; }
.prop-gallery { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.prop-gallery img { width:100%; height:240px; object-fit:cover; border-radius:6px; }
.prop-gallery img.is-main { grid-column:span 2; height:390px; }
.chip { display:inline-flex; align-items:center; gap:4px; background:#f0f2ec; border:1px solid var(--border); padding:8px 13px; border-radius:4px; font-size:10px; color:#5c665b; }
.chip b { font-size:12px; }
.prop-section { padding:26px 0; border-bottom:1px solid var(--border); }
.prop-section h2 { font-family:'Manrope',sans-serif; font-size:18px; font-weight:700; margin-bottom:14px; }
.prop-section p { font-size:12px; line-height:1.85; color:#4a5448; }
.prop-map { border:1px dashed var(--border); border-radius:6px; padding:30px; text-align:center; color:var(--gray); font-size:11px; background:#fafaf7; }

.prop-side { position:sticky; top:90px; }
.prop-price { background:#fff; border:1px solid var(--border); border-radius:6px; padding:22px; text-align:center; margin-bottom:18px; }
.prop-price small { display:block; color:var(--gray); font-size:10px; text-transform:uppercase; letter-spacing:.6px; }
.prop-price strong { font-family:'Manrope',sans-serif; font-size:32px; font-weight:800; letter-spacing:-1px; }

.contact-box { background:#fff; border:1px solid var(--border); border-radius:6px; padding:22px; }
.contact-box--locked { border:2px solid var(--orange); }
.contact-box--open { border:2px solid var(--green); }
.badge-locked { background:#f9e8dc; color:#9a5a33; padding:4px 10px; border-radius:30px; font-size:10px; font-weight:800; }
.contact-ok { background:#e3f1e4; color:#1f6b32; padding:9px 12px; border-radius:5px; font-weight:700; font-size:11px; margin-bottom:14px; }
.contact-owner { text-align:center; margin:14px 0; }
.contact-owner strong { display:block; font-size:17px; margin-bottom:6px; }
.contact-phone { font-size:21px; font-weight:800; color:var(--green); }
.contact-note { background:#f4f5f1; border-radius:6px; padding:12px; font-size:11px; margin-bottom:12px; }

/* Pay window */
.pay-window { border-top:1px dashed var(--border); padding-top:16px; margin-top:6px; }
.pay-title { font-family:'Manrope',sans-serif; font-weight:800; font-size:15px; margin-bottom:6px; }
.pay-amount { font-size:30px; font-weight:800; color:var(--olive); margin-bottom:14px; }
.pay-requisites { background:#f4f5f1; border:1px solid var(--border); border-radius:6px; padding:13px; margin-bottom:14px; }
.pay-req { display:flex; justify-content:space-between; padding:5px 0; font-size:11px; border-bottom:1px dashed var(--border); }
.pay-req:last-child { border-bottom:none; }
.pay-req span { color:var(--gray); }
.pay-req b { font-weight:700; }
.pay-qr { display:flex; justify-content:center; margin:14px 0; }
.pay-qr img { width:190px; height:190px; border-radius:8px; border:1px solid var(--border); }
.pay-qr-note { font-size:11px; color:var(--gray); margin-bottom:12px; }
.pay-confirm { margin:0 0 10px; }
.pay-hint { font-size:10px; color:var(--gray); margin-top:10px; }

.flash { padding:13px 16px; border-radius:6px; margin-bottom:18px; font-weight:600; font-size:12px; background:#e3f1e4; color:#1f6b32; }
.flash--err { background:#f9e8dc; color:#9a5a33; }

/* ---------- LK / auth / forms ---------- */
.sv-wrap { min-height:100vh; display:flex; flex-direction:column; }
.sv-main { flex:1; max-width:1100px; margin:0 auto; padding:30px 20px 60px; width:100%; }
.sv-main--narrow { max-width:560px; }
.cab-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; flex-wrap:wrap; }
.cab-head h1 { font-family:'Manrope',sans-serif; font-weight:700; letter-spacing:-1px; margin:0; }

.auth-box { background:#fff; border:1px solid var(--border); border-radius:8px; padding:36px; box-shadow:0 18px 50px rgba(32,41,35,.08); }
.auth-box h1 { font-family:'Manrope',sans-serif; font-weight:700; letter-spacing:-1px; margin:12px 0 18px; }
.auth-tabs { display:flex; gap:6px; background:#f2f3ef; padding:5px; border-radius:6px; margin-bottom:22px; }
.auth-tab { flex:1; text-align:center; padding:10px; border-radius:5px; font-weight:700; font-size:11px; color:var(--gray); }
.auth-tab.is-active { background:#fff; color:var(--ink); box-shadow:0 1px 4px rgba(0,0,0,.07); }
.auth-error { background:#f9e8dc; color:#9a5a33; padding:11px 14px; border-radius:6px; margin-bottom:16px; font-weight:600; font-size:12px; }
.auth-hint { color:var(--gray); font-size:11px; margin-top:16px; text-align:center; }

.sv-frow label { display:block; font-weight:700; font-size:11px; color:#565f54; margin-bottom:6px; }
.sv-frow input,.sv-frow select,.sv-frow textarea { width:100%; padding:11px 14px; border:1px solid var(--border); border-radius:5px; font-size:13px; background:#fff; color:var(--ink); }
.sv-frow input:focus,.sv-frow select:focus,.sv-frow textarea:focus { outline:0; border-color:var(--olive); }
.sv-frow textarea { resize:vertical; }
.sv-frow--2,.sv-frow--3 { display:grid; gap:12px; }
.sv-frow--2 { grid-template-columns:1fr 1fr; }
.sv-frow--3 { grid-template-columns:repeat(3,1fr); }
.sv-frow { margin-bottom:14px; }

.listing-form { background:#fff; border:1px solid var(--border); border-radius:8px; padding:28px; }
.lf-grid { display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.lf-actions { display:flex; gap:12px; align-items:center; margin-top:14px; }
.edit-photos { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.edit-photos img { width:74px; height:56px; object-fit:cover; border-radius:5px; }

.ordergrid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.order-card { background:#fff; border:1px solid var(--border); border-radius:8px; padding:18px; }
.order-card__head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.order-card__date { font-size:11px; color:var(--gray); }
.order-card__img { width:60px; height:48px; object-fit:cover; border-radius:5px; margin-bottom:8px; }
.order-card__service { font-family:'Manrope',sans-serif; font-weight:700; font-size:15px; margin-bottom:4px; }
.order-card__meta { font-size:12px; color:var(--gray); margin-bottom:8px; }
.order-card__comment { background:#f4f5f1; border-radius:5px; padding:10px; font-size:12px; margin-bottom:8px; color:var(--gray); }
.status { display:inline-block; padding:4px 10px; border-radius:30px; font-size:10px; font-weight:700; }
.st-active { background:#e3f1e4; color:#1f6b32; }
.st-moder { background:#fdf0dd; color:#9a6a2a; }
.st-reject { background:#f9e8dc; color:#9a5a33; }
.order-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.order-actions select { padding:8px; border:1px solid var(--border); border-radius:5px; font-size:12px; }
.btn { display:inline-block; padding:9px 14px; border-radius:5px; border:1px solid var(--border); background:#fff; font-weight:700; font-size:11px; cursor:pointer; color:var(--ink); }
.btn:hover { text-decoration:none; }
.btn-outline { border-color:var(--olive); color:var(--olive); }
.btn-outline:hover { background:#f2f4ee; }
.btn-danger { border-color:var(--orange); color:#b05a2c; }
.btn-danger:hover { background:#f9e8dc; }
.btn-sm { padding:6px 10px; font-size:10px; }
.aempty { background:#fff; border:1px dashed var(--border); border-radius:8px; padding:40px; text-align:center; color:var(--gray); font-size:12px; }

/* ---------- Responsive ---------- */
@media (max-width:991px) {
    .nav-menu { gap:15px; }
    .search-box { grid-template-columns:repeat(2,1fr); }
    .search-button { width:100%; }
    .district-grid { grid-template-columns:repeat(2,1fr); grid-template-rows:240px 200px 200px; }
    .district-card:first-child { grid-row:auto; grid-column:span 2; }
}
@media (max-width:767px) {
    .header-inner { min-height:67px; }
    .nav-menu { display:none; position:absolute; top:67px; left:0; right:0; padding:15px 25px; background:var(--cream); border-bottom:1px solid var(--border); flex-direction:column; align-items:stretch; gap:0; }
    .nav-menu.show { display:flex; }
    .nav-menu a { padding:12px 0; }
    .mobile-toggle { border:0; background:transparent; font-size:24px; }
    .header-action { display:none; }

    .hero { padding-top:12px; }
    .hero-main { min-height:550px; }
    .hero-main:after { background:linear-gradient(0deg,rgba(20,30,23,.94),rgba(20,30,23,.1)); }
    .hero-content { padding:40px 24px; }
    .hero h1 { font-size:49px; letter-spacing:-2.5px; }
    .hero-meta { display:none; }

    .search-wrap { margin-top:-20px; }
    .search-box { padding:20px; gap:14px; }
    .quick-info { padding:43px 0; }
    .info-item { padding:8px 0; }

    .catalog,.districts,.steps { padding:70px 0; }
    .section-head { align-items:flex-start; flex-direction:column; }
    .listing-photo { height:220px; }

    .district-grid { grid-template-columns:1fr 1fr; grid-template-rows:220px 170px 170px; gap:9px; }
    .district-card:first-child { grid-column:span 2; }
    .district-text h3 { font-size:17px; }

    .local-banner { padding:65px 0; }
    .local-photo { height:300px; }
    .owners { padding:55px 0; }
    .owners-grid { grid-template-columns:1fr; gap:25px; }
    .owners-image { height:290px; }

    .cta-box { padding:35px 25px; flex-direction:column; align-items:flex-start; }
    .footer { padding-top:50px; }
    .lf-grid { grid-template-columns:1fr; }
    .ordergrid { grid-template-columns:1fr; }
    .prop-gallery { grid-template-columns:1fr; }
    .prop-gallery img.is-main { grid-column:auto; height:auto; }
    .prop-side { position:static; }
}
@media (max-width:420px) {
    .hero h1 { font-size:42px; }
    .search-box { grid-template-columns:1fr; }
    .filter-btn { padding:9px 12px; font-size:9px; }
    .district-grid { grid-template-rows:200px 150px 150px; }
}