/* ИзиИмот — design system */
:root {
  --navy-900: #071330;
  --navy-800: #0b1d45;
  --navy-700: #13295e;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #e4e8f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --green: #0e9f6e;
  --green-600: #0b8a5f;
  --green-50: #e8f8f1;
  --mint: #34d399;
  --coral: #ff6b4a;
  --coral-600: #f0532f;
  --amber: #f59e0b;
  --red: #e11d48;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --shadow-lg: 0 30px 60px -20px rgba(7, 19, 48, .45);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { overflow-wrap: anywhere; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: .95rem; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 107, 74, .8); }
.btn-primary:hover { background: var(--coral-600); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 159, 110, .7); }
.btn-green:hover { background: var(--green-600); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c9d1e0; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-link { background: none; border: 0; color: var(--green); padding: 0; font-weight: 700; cursor: pointer; }
.btn-sm { padding: .5em .9em; font-size: .85rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: var(--red); border-color: #f5c2cf; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(228, 232, 240, .8);
}
.site-header.on-hero { background: transparent; border-color: transparent; position: absolute; left: 0; right: 0; color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mint), var(--green)); color: #fff; box-shadow: 0 6px 16px -6px rgba(14, 159, 110, .8);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo em { font-style: normal; color: var(--green); }
.on-hero .logo em { color: var(--mint); }
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: .95rem; }
.nav-links a { opacity: .85; position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--green); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-icon { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.nav-icon:hover { background: rgba(15, 23, 42, .06); }
.on-hero .nav-icon:hover { background: rgba(255, 255, 255, .12); }
.fav-count { position: absolute; top: 4px; right: 2px; background: var(--coral); color: #fff; font-size: .65rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.fav-count:empty, .fav-count[data-n="0"] { display: none; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; color: var(--ink); min-width: 220px;
  border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px; }
.dropdown a, .dropdown button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; text-align: left; font-weight: 600; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); }

/* ---------- Flash ---------- */
.flashes { position: fixed; top: 84px; right: 20px; z-index: 80; display: grid; gap: 10px; max-width: 380px; }
.flash { background: #fff; border-left: 4px solid var(--green); padding: 14px 16px; border-radius: 10px; box-shadow: var(--shadow);
  animation: slideIn .35s ease; font-weight: 600; display: flex; gap: 10px; }
.flash.error { border-color: var(--red); }
.flash.warning { border-color: var(--amber); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 150px 0 120px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(52, 211, 153, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 107, 74, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d3b4f 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; opacity: .9; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: .85rem; margin-bottom: 22px; }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--navy-900); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin-bottom: 20px; }
.hero h1 .hl { background: linear-gradient(90deg, var(--mint), #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .strike { position: relative; white-space: nowrap; }
.hero h1 .strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em; background: var(--coral); border-radius: 4px; transform: rotate(-4deg); }
.hero-lead { font-size: 1.2rem; color: rgba(255, 255, 255, .8); max-width: 560px; margin: 0 0 34px; }

.search-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 10px; box-shadow: var(--shadow-lg); max-width: 760px; }
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 12px; }
.search-tab { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--muted); }
.search-tab.active { background: var(--navy-800); color: #fff; }
.search-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 6px; background: var(--bg); padding: 6px; border-radius: 16px; }
.sf { background: #fff; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; min-width: 0; }
.sf label { font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sf input, .sf select { border: 0; outline: 0; background: transparent; font-weight: 700; padding: 2px 0; width: 100%; }
.search-fields .btn { border-radius: 12px; padding: 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--mint); }

.hero-visual { position: relative; height: 470px; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.float-card.main { width: 320px; right: 10px; top: 0; transform: rotate(2deg); animation: bob 6s ease-in-out infinite; }
.float-card.main .ph { height: 190px; background: linear-gradient(135deg, #8ec5fc, #e0c3fc); position: relative; }
.float-card.main .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card .body { padding: 16px 18px; }
.float-card .price { font-family: var(--display); font-size: 1.35rem; }
.float-card.badge-card { left: 0; top: 300px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; animation: bob 7s ease-in-out -2s infinite; }
.float-card.save-card { right: 40px; bottom: 0; padding: 16px 20px; animation: bob 8s ease-in-out -4s infinite; }
.save-card strong { font-family: var(--display); font-size: 1.6rem; color: var(--green); display: block; }
.circle-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.circle-ic.red { background: #ffe9e4; color: var(--coral); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
.float-card.main { --r: 2deg; }

/* ---------- Stats strip ---------- */
.stats-strip { margin-top: -54px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 26px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 1.9rem; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }
.stat.green strong { color: var(--green); }
.stat.coral strong { color: var(--coral); }

/* ---------- Sections ---------- */
section.block { padding: 90px 0; }
section.block.alt { background: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head h1, .section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 1.05rem; }
.kicker { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; display: block; margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--bg); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 18px; top: 8px;
  font-family: var(--display); font-size: 4.2rem; color: rgba(15, 23, 42, .05); font-weight: 800; }
.step .circle-ic { margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

.cities { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; gap: 16px; }
.city-tile { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.city-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.city-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.city-tile img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .7s ease; }
.city-tile:hover img.bg { transform: scale(1.06); }
.city-tile::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(7, 19, 48, 0) 35%, rgba(7, 19, 48, .78) 100%); }
.city-tile h3, .city-tile span { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.city-tile > * { position: relative; z-index: 1; }
.city-tile h3 { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.city-tile:nth-child(1) h3 { font-size: 2.2rem; }
.city-tile span { font-weight: 700; opacity: .9; }

/* ---------- Listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e6ebf5, #f3f5fa); overflow: hidden; }
.card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #b4bdd0; }
.card-media .noimg svg { width: 56px; height: 56px; }
.badges { position: absolute; left: 12px; right: 60px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.badge-owner { background: var(--green); color: #fff; }
.badge-new { background: var(--coral); color: #fff; }
.badge-src { background: rgba(7, 19, 48, .7); color: #fff; backdrop-filter: blur(6px); }
.badge-rent { background: var(--navy-800); color: #fff; }
.photo-count { position: absolute; right: 12px; bottom: 12px; background: rgba(7, 19, 48, .7); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; display: flex; gap: 5px; align-items: center; z-index: 2; }
.fav-btn { position: absolute; right: 12px; top: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .15s; color: var(--ink); }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.on { color: var(--coral); }
.fav-btn.on .icon { fill: var(--coral); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.card-price small { font-family: var(--font); font-size: .8rem; color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.card-title { overflow-wrap: anywhere; font-weight: 700; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-loc { color: var(--muted); font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.card-meta { display: flex; gap: 14px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .86rem; font-weight: 700; color: #334155; }
.card-meta span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Savings calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.calc-left { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 48px; }
.calc-left h2 { font-size: 2rem; }
.calc-left p { color: rgba(255, 255, 255, .75); }
.calc-right { background: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.range-row { display: flex; justify-content: space-between; font-weight: 700; }
input[type=range] { width: 100%; accent-color: var(--green); height: 6px; }
.calc-result { background: var(--green-50); border-radius: 18px; padding: 22px; text-align: center; }
.calc-result strong { display: block; font-family: var(--display); font-size: 2.6rem; color: var(--green); letter-spacing: -.02em; }
.calc-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: .85rem; }
.pill.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- Detector section ---------- */
.detector { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.phrase-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.phrase { padding: 9px 15px; border-radius: 12px; font-weight: 700; font-size: .92rem; }
.phrase.good { background: var(--green-50); color: var(--green-600); }
.phrase.bad { background: #ffeceb; color: #c2410c; text-decoration: line-through; text-decoration-thickness: 2px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green), #0c7c58); color: #fff; border-radius: 28px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-band h2 { font-size: 2rem; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .85; font-size: 1.1rem; }
.cta-band .btn { position: relative; z-index: 1; background: #fff; color: var(--green-600); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 14px; padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 70px 0 30px; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; font-size: .85rem; flex-wrap: wrap; }

/* ---------- Listings page ---------- */
.page-head { padding-top: 34px; padding-bottom: 10px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.deal-switch { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.deal-switch a { padding: 8px 20px; border-radius: 999px; font-weight: 800; color: var(--muted); }
.deal-switch a.active { background: var(--navy-800); color: #fff; }
.results-layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.filters { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.filters h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.fgroup { padding: 16px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; padding-top: 6px; }
.fgroup > label, .fgroup > .flabel { display: block; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.fgroup > label.checkbox { display: flex; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: 0; }
.input, .filters input[type=text], .filters input[type=number], .filters select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus, .filters input:focus, .filters select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(14, 159, 110, .12); }
.range2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check input { display: none; }
.chip-check span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 700; cursor: pointer; background: #fff; transition: all .15s; }
.chip-check input:checked + span { background: var(--green-50); border-color: var(--green); color: var(--green-600); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; cursor: pointer; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: #fff; font-weight: 700; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.active-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px 5px 12px; font-size: .85rem; font-weight: 700; }
.active-chip a { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; background: #fff; font-weight: 800; box-shadow: var(--shadow-sm); }
.pagination .current { background: var(--navy-800); color: #fff; }
.pagination .gap { background: none; box-shadow: none; }
.empty { background: #fff; border-radius: var(--radius); padding: 60px 30px; text-align: center; box-shadow: var(--shadow-sm); }
.empty .circle-ic { margin: 0 auto 16px; width: 64px; height: 64px; }
.filters-toggle { display: none; }

/* ---------- Listing detail ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 22px 0 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: 22px; overflow: hidden; position: relative; }
.gallery a { position: relative; overflow: hidden; background: #e6ebf5; }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.gallery.n1 a:first-child { grid-row: 1; }
.gallery a { min-height: 0; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n2 a:nth-child(2) { grid-row: span 2; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery .more { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.gallery-empty { height: 300px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, #e6ebf5, #f3f5fa); color: #9aa5bd; }
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; margin-top: 30px; align-items: start; }
.detail-title { display: flex; justify-content: space-between; gap: 12px 20px; align-items: flex-start; flex-wrap: wrap; }
.detail-title > div { flex: 1 1 260px; min-width: 0; }
.detail-title h1 { font-family: var(--font); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 8px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-badges .badge { box-shadow: none; border: 1px solid var(--line); }
.detail-badges .badge-owner { border-color: var(--green); }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.keyfact { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.keyfact .icon { color: var(--green); width: 22px; height: 22px; margin-bottom: 6px; }
.keyfact strong { display: block; font-size: 1.1rem; }
.keyfact span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.panel { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.panel h2 { font-family: var(--font); font-weight: 800; font-size: 1.2rem; }
.description { white-space: pre-line; color: #283246; }
.description.clamped { max-height: 260px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); }
.params { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.params div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.params dt { color: var(--muted); }
.params dd { margin: 0; font-weight: 700; text-align: right; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chips span { background: var(--bg); padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.feature-chips .icon { color: var(--green); }
.contact-box { position: sticky; top: 92px; }
.price-box { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.price-box .price { font-family: var(--display); font-size: 2.1rem; letter-spacing: -.02em; font-weight: 700; }
.price-box .ppm { color: var(--muted); font-weight: 700; }
.owner-strip { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--green-50); margin: 18px 0; }
.owner-strip strong { display: block; }
.contact-actions { display: grid; gap: 10px; }
.phone-reveal[data-revealed] { background: var(--navy-800); }
.msg-box > summary { list-style: none; }
.msg-box > summary::-webkit-details-marker { display: none; }
.msg-form { display: grid; gap: 8px; margin-top: 10px; }
.msg-form input, .msg-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
.msg-form input:focus, .msg-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(14, 159, 110, .12); }
.msg-form p { margin: 0; text-align: center; }
.inbox { display: grid; gap: 14px; }
.inquiry { margin: 0; }
.inquiry.unread { border-left: 4px solid var(--coral); }
.inquiry-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.saved-note { margin-top: 14px; padding: 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: .9rem; font-weight: 600; display: flex; gap: 10px; }
.why-owner ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.why-owner li { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .92rem; }
.why-owner .w { font-weight: 800; }
.why-owner .w.pos { color: var(--green); }
.why-owner .w.neg { color: var(--red); }
.score-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 10px 0 16px; }
.score-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--green)); border-radius: 6px; }
.bench { margin-top: 10px; }
.bench-bar { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #34d399, #fbbf24, #f87171); margin: 26px 0 8px; }
.bench-bar .marker { position: absolute; top: -9px; width: 4px; height: 30px; background: var(--ink); border-radius: 2px; transform: translateX(-2px); }
.bench-bar .marker::after { content: attr(data-label); position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.bench-legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; }
#map { height: 280px; border-radius: 14px; z-index: 0; }
.report-form { display: grid; gap: 10px; }
.report-form select, .report-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.source-note { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(7, 19, 48, .94); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 0; color: #fff; cursor: pointer; font-size: 1.6rem; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-close { top: 30px; right: 24px; transform: none; }
.lb-count { position: absolute; bottom: 24px; color: #fff; font-weight: 700; }

/* ---------- Forms (post / auth) ---------- */
.form-page { max-width: 880px; margin: 0 auto; padding: 40px 20px; }
.form-card { background: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.form-card h2 { font-family: var(--font); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.form-card h2 .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(14, 159, 110, .12); }
.field textarea { min-height: 180px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .err, .err { color: var(--red); font-size: .85rem; font-weight: 700; margin-top: 4px; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--red); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg input { display: none; }
.seg label span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); font-weight: 800; cursor: pointer; transition: all .15s; }
.seg input:checked + span { border-color: var(--green); background: var(--green-50); color: var(--green-600); box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.dropzone { border: 2px dashed #c9d1e0; border-radius: 16px; padding: 30px; text-align: center; cursor: pointer; transition: all .15s; background: var(--bg); }
.dropzone:hover, .dropzone.drag { border-color: var(--green); background: var(--green-50); }
.dropzone input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb label { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .95); border-radius: 8px; padding: 2px 6px; font-size: .75rem; font-weight: 800; cursor: pointer; display: flex; gap: 4px; align-items: center; }
.declaration { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: var(--green-50); border: 1px solid #bdebd7; align-items: flex-start; cursor: pointer; }
.declaration input { width: 20px; height: 20px; accent-color: var(--green); margin-top: 2px; flex: none; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--green); margin-top: 2px; flex: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.live-check { margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; font-weight: 700; display: none; }
.live-check.warn { display: block; background: #fff7ed; color: #9a3412; }
.live-check.ok { display: block; background: var(--green-50); color: var(--green-600); }

.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--navy-900), #0d3b4f); color: #fff; padding: 70px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { font-size: 2.2rem; }
.auth-side p { color: rgba(255, 255, 255, .75); font-size: 1.1rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 50px 20px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 1.9rem; }
.auth-box form { display: grid; gap: 16px; margin-top: 22px; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); margin-top: 22px; }
.btn-google:hover { border-color: #c9d1e0; box-shadow: var(--shadow); }
.or-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .85rem; font-weight: 700; margin: 22px 0 -6px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-id { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); margin-top: 18px; }
.google-id img, .google-id .avatar { width: 44px; height: 44px; border-radius: 50%; }
.alert { padding: 14px 16px; border-radius: 12px; background: #ffeceb; color: #b91c1c; font-weight: 700; }

/* ---------- Tables (my listings / admin) ---------- */
.table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .thumbcell { width: 92px; }
.tbl .thumbcell img, .tbl .thumbcell .ph { width: 92px; height: 68px; object-fit: cover; border-radius: 10px; background: var(--bg); }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.status.active { background: var(--green-50); color: var(--green-600); }
.status.pending { background: #fff7ed; color: #c2410c; }
.status.hidden, .status.expired, .status.blocked, .status.deleted { background: #eef1f6; color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions form { display: inline; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-nav a { padding: 8px 16px; border-radius: 999px; background: #fff; font-weight: 700; box-shadow: var(--shadow-sm); font-size: .9rem; }
.admin-nav a.active { background: var(--navy-800); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.kpi strong { font-family: var(--display); font-size: 1.8rem; display: block; }
.kpi span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.sig { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin: 2px 2px 0 0; }
.sig.pos { background: var(--green-50); color: var(--green-600); }
.sig.neg { background: #ffeceb; color: #b91c1c; }
.score { font-family: var(--display); font-weight: 700; }
.score.pos { color: var(--green); } .score.neg { color: var(--red); }

/* ---------- Content pages ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 70px 0 60px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255, 255, 255, .78); font-size: 1.15rem; max-width: 680px; }
.prose { max-width: 800px; margin: 0 auto; padding: 50px 20px; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: #334155; }
.error-page { text-align: center; padding: 120px 20px; }
.error-page .big { font-family: var(--display); font-size: 7rem; color: var(--green); line-height: 1; }

/* ---------- Reveal-on-scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } * { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-box { position: static; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; color: var(--ink); flex-direction: column; padding: 16px 20px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-right .btn-primary span { display: none; }
  .nav { gap: 12px; }
  .nav-right { gap: 2px; }
  .nav-right .btn-primary { padding: 0; width: 40px; height: 40px; }
  .nav-icon { width: 38px; height: 38px; }
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: 1 / -1; padding: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps, .detector, .calc, .footer-grid, .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .cities { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .city-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .city-tile:nth-child(1) { grid-column: span 2; }
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 90; border-radius: 0; max-height: none; transform: translateX(-100%); transition: transform .25s; }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; }
  .gallery a:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery a:nth-child(n+4) { display: none; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .params { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .calc-left, .calc-right { padding: 32px 26px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .grid.cols-4 { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 100px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  section.block { padding: 64px 0; }
}
