:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #667085;
  --line: #e4e0d8;
  --accent: #0e7c66;
  --accent-dark: #0a5f4e;
  --accent-soft: #e3f2ee;
  --amber: #a16207;
  --orange: #c2410c;
  --red: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 36, 48, .06), 0 8px 24px rgba(27, 36, 48, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.02em; }
h2 { font-size: 1.3rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .25rem; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.page { padding-top: 24px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.inline { display: inline; }

/* Header and footer */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px 6px 6px 0; background: var(--accent); display: inline-block; }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--accent-dark); }
.foot { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; }
.foot-in { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.langs { display: flex; gap: 12px; align-items: flex-start; }

/* Buttons and small parts */
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn-accent, .nav a.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover, .nav a.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-big { padding: 13px 22px; font-size: 1.05rem; margin-top: 12px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); cursor: pointer; text-decoration: underline; }
.link.is-current { font-weight: 700; text-decoration: none; color: var(--ink); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef1f4; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill-accent { background: var(--accent-soft); color: var(--accent-dark); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; }
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); border: 1px solid #bfe3cc; margin-bottom: 8px; }
.flash-error { background: #fdecea; border-color: #f3c2bd; }
.err { color: var(--red); font-size: .9rem; margin: 4px 0 10px; }
.err ul { margin: 0; padding: 0; list-style: none; }
.ok { color: var(--accent-dark); font-weight: 600; }

/* Home */
.hero { background: linear-gradient(180deg, #e7f4ec 0%, var(--bg) 100%); padding: 56px 0 40px; }
.hero-small { padding-top: 40px; }
.hero-in { max-width: 760px; }
.lead { font-size: 1.15rem; color: #3a4652; max-width: 620px; }
.search { position: relative; margin-top: 24px; }
.search-input {
  width: 100%; padding: 16px 18px; font: inherit; font-size: 1.1rem; border-radius: 12px;
  border: 2px solid var(--ink); background: #fff; outline: none;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-hint { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.search.htmx-request .search-input { background-image: linear-gradient(90deg, transparent, var(--accent-soft), transparent); background-size: 200% 100%; animation: sweep 1s linear infinite; }
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.suggest { list-style: none; margin: 6px 0 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.suggest form { margin: 0; }
.suggest-item {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; width: 100%; text-align: left; padding: 10px 12px;
  border: 0; background: none; border-radius: 8px; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
}
.suggest-item:hover, .suggest-item:focus { background: #f1f4f6; }
.suggest-main { font-weight: 650; }
.suggest-sub { color: var(--muted); font-size: .9rem; }
.suggest-add { color: var(--accent-dark); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.suggest-empty { padding: 10px 12px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 8px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 10px; }
.step p { color: #3a4652; margin: 0; }
.totals { display: flex; gap: 40px; padding-top: 32px; flex-wrap: wrap; }
.totals strong { display: block; font-size: 1.8rem; line-height: 1.1; }
.totals span { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.card-link:hover { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.chip:hover { border-color: var(--accent); }

/* Scores */
.score { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 750; align-self: flex-start; }
.score-big { min-width: 76px; height: 56px; font-size: 1.7rem; border-radius: 12px; }
.score-empty { background: #cfd5db; }

/* Building page */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:not(:last-child)::after { content: "/"; margin-left: 8px; color: #b3bcc5; }
.b-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.b-head h1 { margin-bottom: .15em; }
.b-score { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.b-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.scales { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scales li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 2.2em; gap: 10px; align-items: center; font-size: .95rem; }
.meter { height: 8px; border-radius: 999px; background: #e6eaee; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.facts { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.4rem; }
.facts span { color: var(--muted); font-size: .9rem; }
.noise-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.noise-score { display: grid; place-items: center; grid-auto-flow: column; align-items: baseline; min-width: 92px; padding: 10px 12px; border-radius: 12px; color: #fff; font-size: 1.9rem; font-weight: 750; line-height: 1; }
.noise-score small { font-size: .8rem; font-weight: 600; opacity: .85; }
.noise-low { background: var(--accent); }
.noise-moderate { background: var(--amber); }
.noise-high { background: var(--orange); }
.noise-very_high { background: var(--red); }
.noise-level { display: block; }
.factors { list-style: none; margin: 0 0 12px; padding: 0; }
.factors li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.factors b { color: var(--muted); white-space: nowrap; }
.loading::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

.review { margin-bottom: 12px; }
.review-head { display: flex; gap: 12px; align-items: flex-start; }
.review-head strong { display: block; }
.mini-scales { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 20px; font-size: .9rem; }
.mini-scales li { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 2px 0; }
.review-foot { display: flex; gap: 16px; align-items: center; margin-top: 12px; font-size: .9rem; }
.locked { text-align: center; background: repeating-linear-gradient(135deg, #fff, #fff 12px, #f6f8f9 12px, #f6f8f9 24px); border-style: dashed; }
.qa { margin-bottom: 10px; }
.qa .q { font-weight: 650; }
.qa .a { padding-left: 12px; border-left: 3px solid var(--accent-soft); }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.row-form input { flex: 1 1 240px; }
.map { height: 340px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #e9edf0; }
.map-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: #3a4652; }

/* Lists */
.list { display: grid; gap: 6px; }
.list-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.list-row:hover { border-color: var(--accent); }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 20px; }

/* Forms */
.form { display: grid; gap: 12px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form label.check input { margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #d5dae0; border-radius: 10px; background: #fff; width: 100%; color: var(--ink);
}
input, select, textarea { font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
legend small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields-street { grid-template-columns: 2fr 1fr; }
.pills { display: flex; gap: 8px; }
.pills label { display: block; position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: grid; place-items: center; width: 48px; height: 44px; border: 1px solid #d5dae0; border-radius: 10px; background: #fff; font-weight: 700; }
.pills-wide span { width: auto; padding: 0 22px; }
.pills input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pills input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.note { margin: 16px 0; background: #f4faf6; }
.note ul { margin: 8px 0; padding-left: 20px; }
.prose h2 { margin-top: 1.6rem; }
.prose ul { padding-left: 20px; }

@media (max-width: 560px) {
  .nav { gap: 12px; font-size: .95rem; }
  .b-score { align-items: flex-start; }
  .scales li { grid-template-columns: 1fr 1fr 2.2em; }
  .fields-2, .fields-street { grid-template-columns: 1fr; }
  .pills span { width: 44px; }
  .pills-wide { flex-wrap: wrap; }
  .pills-wide span { width: auto; white-space: nowrap; }
}

/* Email confirmation bar, draft notice, legal pages */
.flash-warning { background: #fff6e0; border-color: #f0d9a0; }
.confirm-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.confirm-bar .link { font-weight: 600; white-space: nowrap; }
.legal mark { background: #fff0c2; padding: 0 4px; border-radius: 4px; }
.legal code { font-size: .9em; background: #f1f3f2; padding: 1px 5px; border-radius: 4px; }
.legal li { margin-bottom: .5rem; }
.legal .flash { margin-bottom: 24px; }

/* Donor batch: rents, features, agencies, replies, account, lists, tools */
.about { max-width: 760px; color: #3a4652; margin: -8px 0 20px; }
.grid-gap { margin-top: 16px; }
/* Cards that belong together share one column of the grid: rents and what owners paid. */
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.h2-next { margin-top: 1.4rem !important; }
.btn-on { background: var(--accent-soft); border-color: #bfe3cc; color: var(--accent-dark); }
.tags { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: #f1f4f6; font-size: .95rem; }
.review-title { margin: 14px 0 0; font-size: 1.1rem; }
.review-where { display: block; }
.reply { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--accent); background: #f3f9f5; border-radius: 0 10px 10px 0; }
.reply h4 { margin-top: 0; }
.reply p { margin-bottom: 0; }
.review-foot { flex-wrap: wrap; }
.owner-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; background: #f4faf6; }
.owner-box p { margin: 4px 0 0; }
.tabs { margin: 4px 0 16px; }
.chip-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.list-row strong .muted { font-weight: 400; }
.list-row-static:hover { border-color: var(--line); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.form h2 small { font-size: .85rem; font-weight: 400; }
input[type=number] { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #d5dae0; border-radius: 10px; background: #fff; width: 100%; color: var(--ink); }
.quote { margin: 16px 0; background: #f6f8f9; }
.quote h4:first-child { margin-top: 0; }
.result { margin: 20px 0; }
.facts-top { border-top: 0; padding-top: 0; margin-top: 8px; margin-bottom: 14px; }
@media (max-width: 560px) {
  .list-row { grid-template-columns: 48px 1fr; }
  .list-row > :nth-child(3) { grid-column: 2; }
}
.b-facts { margin: 0 0 8px; font-weight: 600; }
.b-facts .small { font-weight: 400; margin-left: 8px; }
.nearby-title { margin: 18px 0 4px; }
.nearby { margin-bottom: 0; }
.nearby li:last-child { border-bottom: 0; }
.shots { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.shots img { display: block; width: 150px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.shots-edit label.check { flex-direction: column; gap: 4px; align-items: flex-start; }
input[type=file] { font: inherit; }

/* The hidden attribute must win over display rules of labels and grids (review form: tenant or owner part). */
[hidden] { display: none !important; }
.more-scales { margin: 18px 0; }
.more-scales summary { cursor: pointer; font-weight: 700; padding: 10px 0; }

/* ============================================================================================================
   Skin, second version of 12.11.2026: calm and trustworthy. A clear fresh green, the Manrope typeface served
   from our own server (no third party sees the visitor), soft large cards, a lot of air.
   The rules above are the skeleton; this block is the skin. To change the mood, start with the tokens.
   ============================================================================================================ */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-cyrillic.c9c062d8bef3.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin-ext.ea827930fb29.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin.b222d83cc274.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4f7f5;
  --card: #ffffff;
  --ink: #1c2530;
  --muted: #66727f;
  --line: #e4eae6;
  --accent: #21a038;
  --accent-dark: #17832b;
  --accent-deep: #0f6a22;
  --accent-soft: #e9f6ec;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(28, 37, 48, .04), 0 8px 28px rgba(28, 37, 48, .06);
}
body { font: 500 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; color: var(--ink); }
h1 { font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; margin-top: 2.6rem; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-weight: 700; }
strong, b { font-weight: 700; }
a { color: var(--accent-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.small { font-size: .9rem; }
.wrap { max-width: 1120px; padding: 0 24px; }
.narrow { max-width: 740px; }
.page { padding-top: 32px; padding-bottom: 72px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-in { min-height: 72px; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(140deg, #2bb24a, #1a9431) ; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 8.5l7.5 6.6V24h-5.2v-5.2h-4.6V24H8.5v-8.9z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav { gap: 26px; }
.nav a, .nav .link { font-weight: 600; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav .link:hover { color: var(--accent-dark); }

/* Buttons */
.btn { padding: 12px 22px; border-radius: 14px; border: 1px solid transparent; background: #edf1ee; font-weight: 700; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: #e1e8e3; border-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-accent, .nav a.btn-accent { background: linear-gradient(180deg, #24a83b, #1c9632); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(33, 160, 56, .28); }
.btn-accent:hover, .nav a.btn-accent:hover { background: linear-gradient(180deg, #1f9a35, #17832b); border-color: transparent; color: #fff; }
.btn-big { padding: 16px 32px; font-size: 1.08rem; border-radius: 16px; }
.btn-on { background: var(--accent-soft); color: var(--accent-dark); }
.pill { background: #edf1ee; padding: 4px 12px; font-weight: 700; }
.pill-accent { background: var(--accent-soft); color: var(--accent-dark); }

/* Cards */
.card { border: 0; padding: 28px; }
.card-link { transition: box-shadow .18s, transform .18s; }
.card-link:hover { box-shadow: 0 14px 36px rgba(28, 37, 48, .12); transform: translateY(-2px); }
.flash { border-radius: 14px; border-color: #c5e6cc; }

/* The green band with the search */
.hero {
  color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(190, 240, 120, .55), transparent 60%),
    radial-gradient(700px 380px at 105% 110%, rgba(20, 190, 170, .35), transparent 60%),
    linear-gradient(120deg, #17902e 0%, #21a038 45%, #33b24a 100%);
}
.hero-small { padding: 56px 0 60px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.3rem); max-width: 760px; }
.hero .lead { color: rgba(255, 255, 255, .95); font-size: 1.2rem; max-width: 640px; }
.hero .search { margin-top: 32px; max-width: 860px; }
.hero .search-input { border: 0; border-radius: 18px; padding: 21px 24px; font-size: 1.15rem; font-weight: 500; box-shadow: 0 16px 40px rgba(8, 70, 25, .28); }
.hero .search-input:focus { box-shadow: 0 0 0 5px rgba(255, 255, 255, .4), 0 16px 40px rgba(8, 70, 25, .28); }
.hero .search-hint { color: rgba(255, 255, 255, .88); }
.hero .suggest { color: var(--ink); }
.search-input { border: 1px solid #d7dfda; border-radius: 16px; background: #fff; }
.suggest { border-radius: 16px; border: 0; box-shadow: 0 16px 40px rgba(28, 37, 48, .16); }
.suggest-item { border-radius: 10px; }
.suggest-item:hover, .suggest-item:focus { background: var(--accent-soft); }
/* Three short promises under the search: the first thing a careful visitor looks for. */
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 9px; color: #fff; }
.trust li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.2 11.4l3.1 3.1 6.5-6.9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Home blocks */
.steps { gap: 20px; margin-top: -44px; position: relative; }
.step { border: 0; padding: 28px; box-shadow: var(--shadow); border-radius: var(--radius); }
.step-n { width: 40px; height: 40px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.step p { color: #4a5663; }
.totals { width: calc(100% - 48px); max-width: 1072px; gap: 0; margin-top: 32px; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.totals > div { flex: 1 1 140px; padding: 26px 32px; border-right: 1px solid var(--line); }
.totals > div:last-child { border-right: 0; }
.totals strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent-dark); }
.chips { gap: 10px; }
.chip { padding: 10px 18px; background: var(--card); border: 1px solid var(--line); font-weight: 600; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chip-on, .chip-on:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-on .muted { color: rgba(255, 255, 255, .85); }

/* Scores and meters */
.score { border-radius: 10px; font-weight: 800; background: var(--accent); }
.score-big { border-radius: 16px; min-width: 84px; height: 62px; font-size: 1.9rem; box-shadow: 0 6px 18px rgba(33, 160, 56, .3); }
.score-empty { background: #cdd6d0; }
.meter { height: 10px; background: #e7ece9; }
.noise-low { background: var(--accent); }

/* Lists and pages */
.list { gap: 8px; }
.list-row { border: 0; border-radius: 14px; padding: 14px 18px; box-shadow: 0 1px 2px rgba(28, 37, 48, .05); transition: box-shadow .15s; }
.list-row:hover { box-shadow: 0 8px 22px rgba(28, 37, 48, .1); }
.crumbs a:hover { color: var(--accent-dark); }
.about { color: #4a5663; max-width: 800px; }
.b-facts { font-weight: 700; }
.faq details { border: 0; border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 2px rgba(28, 37, 48, .05); }
.faq summary { font-weight: 700; }
.reply { border-left-color: var(--accent); background: #f1f9f3; }
.locked { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #f6f9f7 12px, #f6f9f7 24px); }
.note, .owner-box { background: var(--accent-soft); box-shadow: none; }
.tags li { background: #edf1ee; font-weight: 600; }
.map { border: 0; box-shadow: var(--shadow); }

/* Forms: quiet fields that turn white and green when you are in them */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  background: #f4f7f5; border: 1px solid #dfe6e1; border-radius: 14px; padding: 13px 16px; font-weight: 500;
}
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-input, .hero .search-input { background: #fff; }
.form label { font-weight: 700; }
.pills span { border-color: #d7dfda; border-radius: 14px; background: #fff; transition: background .12s, border-color .12s; }
.pills label:hover span { border-color: var(--accent); }
.pills input:checked + span { background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 12px rgba(33, 160, 56, .3); }
.form h2 { padding-top: 24px; border-top: 1px solid var(--line); }

/* Footer: light and quiet */
.foot { background: #fff; border-top: 1px solid var(--line); margin-top: 72px; }
.foot-in { padding-top: 44px; padding-bottom: 44px; }
.foot strong { font-size: 1.15rem; font-weight: 800; }
.foot .muted { max-width: 340px; }
.foot a, .foot .link { color: #4a5663; text-decoration: none; font-weight: 500; }
.foot a:hover, .foot .link:hover { color: var(--accent-dark); }
.foot .link.is-current { color: var(--ink); font-weight: 800; }

/* The green button of the header says it shorter on a phone, so that the row fits in every language. */
.cta-short { display: none; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 72px; }
  .hero .lead { font-size: 1.05rem; }
  .hero .search-input { padding: 17px 18px; font-size: 1.05rem; }
  .trust { flex-direction: column; gap: 8px; margin-top: 20px; }
  .card, .step { padding: 20px; }
  .steps { margin-top: -36px; }
  .btn-big { width: 100%; text-align: center; }
  /* One row: the name, "log in" and the green button. The catalogue and "how it works" are in the footer. */
  .top-in { min-height: 60px; flex-wrap: nowrap; gap: 8px; }
  .nav { flex-wrap: nowrap; gap: 14px; font-size: .95rem; }
  .nav > a:not(.btn-accent):nth-child(-n+2) { display: none; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav a.btn-accent { padding: 9px 16px; font-size: .92rem; white-space: nowrap; border-radius: 12px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .totals { width: calc(100% - 32px); display: grid; grid-template-columns: repeat(3, 1fr); }
  .totals > div { padding: 16px 12px; }
  .totals strong { font-size: 1.4rem; }
}

/* The city on the green band: our own drawing (ops/make_hero.py), houses in volume with review cards floating
   over the roofs. It stands on the right; the words and the search keep to the left and never run over it. */
.hero { overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: max(0px, calc(50% - 620px)); bottom: -6px; width: min(50%, 640px); aspect-ratio: 800 / 880;
  background: url("../img/hero-city.953c96fd1e29.svg") center bottom / contain no-repeat; pointer-events: none;
  filter: drop-shadow(0 30px 40px rgba(6, 60, 20, .28));
}
.hero-small::after { display: none; }
.hero-in { position: relative; z-index: 1; }
.hero .search, .trust, .hero h1, .hero .lead { max-width: 560px; }
.hero { padding-bottom: 150px; min-height: 700px; }
.hero-small { min-height: 0; padding-bottom: 60px; }
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero::after { position: relative; display: block; right: auto; bottom: auto; width: min(100%, 460px); margin: 8px auto -40px; }
  .hero { padding-bottom: 60px; }
  .hero .search, .trust, .hero h1, .hero .lead { max-width: none; }
}


/* ---- Inner pages brought up to the home page (12.11.2026) ---------------------------------------------- */
/* The footer stays at the bottom of the window on short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Pages with one column of text or one form sit on a white sheet. */
.wrap.page.narrow { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 40px 48px 48px; margin-top: 36px; margin-bottom: 64px; }
.wrap.page.narrow .card { box-shadow: none; border: 1px solid var(--line); }
.wrap.page.narrow .faq details, .faq details { box-shadow: none; border: 1px solid var(--line); }
.wrap.page.narrow h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }

/* The head of a building page: one white card with the address, the facts as tiles, the score and the actions. */
.b-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 32px 36px 28px; margin-bottom: 20px; }
.b-card .b-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.b-card .b-actions { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.b-facts { margin: 14px 0 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.fact-tiles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.fact-tiles li { background: #f1f5f2; border-radius: 12px; padding: 8px 14px; font-weight: 700; }
.b-energy { font-weight: 600; }
.energy-mark { flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.2 3L6 13.4h4.6L9.9 21l7.4-10.6h-4.7z' fill='%2321a038'/%3E%3C/svg%3E") center / 18px no-repeat; }
.about { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; max-width: none; margin: 0 0 20px; border-left: 4px solid var(--accent); }
.about h2 { margin: 0 0 8px; font-size: 1.15rem; }
.about p { margin: 0; color: #4a5663; }

/* Lists: an address without reviews shows a small house and what the registers know, not a dash and a zero. */
.score-empty { color: transparent; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 8.5l7.5 6.6V24h-5.2v-5.2h-4.6V24H8.5v-8.9z' fill='%2321a038'/%3E%3C/svg%3E") center / 22px no-repeat; }
.city-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: -4px 0 18px; color: var(--muted); }
.city-stats b { color: var(--ink); font-size: 1.25rem; font-weight: 800; margin-right: 4px; }
.list-row .muted { text-align: right; }

/* Footer in groups */
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto; gap: 32px; }
.foot-h { font-size: .82rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .wrap.page.narrow { padding: 24px 18px 30px; margin: 16px 12px 40px; border-radius: 20px; }
  .b-card { padding: 22px 18px 20px; border-radius: 20px; }
  .about { padding: 18px 20px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot-in > div:first-child, .foot-in > .langs { grid-column: 1 / -1; }
  .list-row .muted { text-align: left; }
}
/* A select with a long option must not push the form wider than its sheet. */
.form { grid-template-columns: minmax(0, 1fr); }
.form > *, .fields-2 > * { min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }

/* City page: search inside the city and the map of its buildings */
.city-search { margin: 18px 0 16px; max-width: 720px; }
.city-search .search-results { position: absolute; left: 0; right: 0; z-index: 20; }
.city-map { height: 420px; margin: 0 0 6px; }
.map-note { margin: 0 0 18px; min-height: 1.3em; }
.maplibregl-popup-content { font-family: var(--font, "Manrope", system-ui, sans-serif); font-size: .95rem; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(28, 37, 48, .18); }
.maplibregl-popup-content a { color: var(--accent-dark); font-weight: 650; }
@media (max-width: 640px) { .city-map { height: 320px; } }

/* Street page: figures as tiles and two bar charts */
.stat-tiles { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat-tiles li { background: #f1f5f2; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-tiles b { font-size: 1.55rem; font-weight: 800; line-height: 1.15; color: var(--ink); }
.stat-tiles span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.bars { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 108px 1fr 48px; gap: 12px; align-items: center; }
.bar-label { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.bars-grades li { grid-template-columns: 40px 1fr 48px; }
.bar-track { background: #eef1f3; border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--accent); }
.bar-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.grade { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; color: #fff; font-weight: 800; }
.stat-tiles b.grade { width: max-content; min-width: 44px; height: 40px; font-size: 1.4rem; color: #fff; }
.grade-a { background: #00963f; } .grade-b { background: #4cae3a; } .grade-c { background: #a5c21c; }
.grade-d { background: #d9b600; } .grade-e { background: #f0a100; } .grade-f { background: #e8691c; } .grade-g { background: #d9241d; }
.sources { margin: 10px 0 0; }
.list-row-plain { grid-template-columns: 1fr auto; }
.chip-more { color: var(--accent-dark); border-color: var(--accent); }
.suggest-street .suggest-main::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
@media (max-width: 640px) {
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .bars li { grid-template-columns: 92px 1fr 40px; gap: 8px; }
  .bar-label { font-size: .88rem; }
  .bars-grades li { grid-template-columns: 36px 1fr 40px; }
  .list-row-plain { grid-template-columns: 1fr; }
  .list-row-plain > :nth-child(2) { grid-column: 1; }
}

/* Countries and cities as cards */
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 20px; }
.place-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--card); border-radius: 18px; padding: 20px 22px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 37, 48, .05); transition: box-shadow .15s, transform .15s; }
.place-card:hover { box-shadow: 0 10px 26px rgba(28, 37, 48, .12); transform: translateY(-1px); }
.place-card strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.add-note { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; background: var(--accent-soft); border-radius: 18px; padding: 20px 24px; margin: 28px 0 0; }
.add-note p { margin: 0; max-width: 640px; font-weight: 600; }
.wrap.page > .search { margin: 16px 0 22px; max-width: 720px; }
@media (max-width: 640px) {
  .crumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .crumbs::-webkit-scrollbar { display: none; }
  .place-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .place-card { padding: 16px; }
  .place-card strong { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .place-card:hover { transform: none; } }
@media (max-width: 640px) { .wrap.page > h1:first-child { margin-top: 12px; } }
.few-note { max-width: 190px; text-align: right; font-size: .8rem; line-height: 1.3; color: #8a6d1a; background: #fdf5dc; border-radius: 10px; padding: 6px 10px; }
@media (max-width: 640px) { .few-note { text-align: left; max-width: none; } }

/* Address without a map: the house number is asked right in the suggestion */
.suggest-fold > summary { list-style: none; }
.suggest-fold > summary::-webkit-details-marker { display: none; }
.suggest-fold > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 700; }
.suggest-fold[open] > summary::after { content: ""; }
.number-box { display: flex; gap: 8px; margin: 0; padding: 2px 12px 12px; }
.number-box input { flex: 1; min-width: 0; max-width: 240px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.number-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.number-box .btn { padding: 10px 18px; }
.fold { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 14px 0; background: #fff; }
.fold > summary { cursor: pointer; font-weight: 700; }
.fold > summary small { font-weight: 400; margin-left: 6px; }
.fold[open] > summary { margin-bottom: 12px; }

/* Review form: essentials first, the rest folded, and a bar that says what is left */
.form-promise { margin: 6px 0 0; font-weight: 600; color: var(--accent-dark); }
.review-form .fold { margin: 0; }
.review-form .fold > summary small { display: inline-block; }
.review-form .fold[open] { display: grid; gap: 12px; }
.review-form .fold[open] > summary { margin-bottom: 0; }
.review-form [data-need] { border-radius: 12px; transition: box-shadow .2s, background .2s; }
.review-form [data-need].is-missing { background: #fff6f5; box-shadow: 0 0 0 8px #fff6f5, 0 0 0 10px #f3b4ae; }
.review-form [data-need="text"], .review-form [data-need="stay"] { display: grid; gap: 12px; }
.form-bar { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px -48px -48px; padding: 14px 48px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); border-radius: 0 0 24px 24px; backdrop-filter: blur(6px); }
.form-bar .btn-big { margin-top: 0; width: auto; }
.form-left { font-weight: 700; color: #8a6d1a; }
.form-left.is-done { color: var(--accent-dark); }
@media (max-width: 640px) {
  .form-bar { margin: 8px -18px -30px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); border-radius: 0 0 20px 20px; }
  .form-bar .btn-big { padding: 13px 20px; white-space: nowrap; }
  .form-left { font-size: .92rem; }
}

/* Review form in steps */
.steps-head { display: grid; gap: 8px; margin: 4px 0 6px; font-weight: 700; color: var(--muted); font-size: .95rem; }
.step-track { height: 6px; border-radius: 999px; background: #e9eef0; overflow: hidden; }
.step-track i { display: block; height: 100%; width: 33%; border-radius: 999px; background: var(--accent); transition: width .25s; }
.review-form .form-step { display: grid; gap: 12px; }
.review-form .form-step[hidden] { display: none; }
.review-form.stepped .form-step > h2:first-child { margin-top: 6px; padding-top: 0; border-top: 0; }
.review-form.stepped h2 { margin-top: 18px; padding-top: 18px; }
.top-floor { margin: -4px 0 4px; font-size: .92rem; color: var(--muted); }
.top-floor[hidden] { display: none; }
.form-bar #step-back { margin-right: auto; }
.form-bar #step-back[hidden], .form-bar #step-next[hidden], .form-bar #step-send[hidden] { display: none; }
.form-bar .form-left { margin-right: auto; }
.form-bar #step-back + .form-left { margin-right: 0; margin-left: auto; text-align: right; }
@media (max-width: 640px) {
  /* Two rows on a phone: what is left on top, the buttons under it. */
  .form-bar { flex-wrap: wrap; gap: 8px 10px; }
  .form-bar .form-left, .form-bar #step-back + .form-left { order: -1; flex-basis: 100%; margin: 0; text-align: center; }
  .form-bar .form-left:empty { display: none; }
  .form-bar #step-back { margin-right: 0; }
  .form-bar #step-next, .form-bar #step-send { flex: 1; }
}

/* Catalogue: covered cities as large cards, and the ways to any other building */
.first-h2 { margin-top: 8px; }
.place-grid-big { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.place-card-big { padding: 26px 28px; gap: 8px; }
.place-card-big:hover { transform: none; }
.place-card-big .place-name { color: var(--ink); text-decoration: none; }
.place-card-big strong { font-size: 1.6rem; }
.place-figures { color: var(--muted); margin-top: 4px; }
.place-figures b { color: var(--ink); font-weight: 800; }
.place-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.way-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.way { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: 18px; padding: 20px 22px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 37, 48, .05); transition: box-shadow .15s; }
.way:hover { box-shadow: 0 10px 26px rgba(28, 37, 48, .12); }
.way strong { font-size: 1.1rem; font-weight: 800; }
.way span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
@media (max-width: 640px) {
  .place-grid-big { grid-template-columns: 1fr; }
  .place-card-big { padding: 20px; }
}

/* Sharing a building and inviting neighbours; the building next to its street */
.about-street { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--line); }
.about-street a { white-space: nowrap; font-weight: 650; color: var(--accent-dark); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-line { margin: -6px 0 22px; }
.btn-small { padding: 7px 14px; font-size: .9rem; border-radius: 10px; }
.invite { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; background: var(--accent-soft); border-radius: 18px; padding: 20px 24px; margin: 0 0 22px; }
.invite p { margin: 4px 0 0; max-width: 560px; color: #3a4652; }
.invite strong { font-size: 1.1rem; }

/* City map by building age and energy class */
.map-lead { max-width: 760px; }
.map-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.map-modes .chip { cursor: pointer; font: inherit; font-weight: 600; }
.age-map-box { position: relative; }
.age-map { height: min(72vh, 680px); min-height: 420px; }
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(255, 255, 255, .95); border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(28, 37, 48, .16); font-size: .88rem; }
.map-legend[hidden] { display: none; }
.map-legend ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.map-legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.map-legend i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.era-1 { background: #7a0177; } .era-2 { background: #c51b8a; } .era-3 { background: #f768a1; }
.era-4 { background: #fdae6b; } .era-5 { background: #41b6c4; } .era-6 { background: #225ea8; }
.era-none { background: #c9ced3; }
.bar-fill.era-1, .bar-fill.era-2, .bar-fill.era-3, .bar-fill.era-4, .bar-fill.era-5, .bar-fill.era-6 { min-width: 2px; }
.map-teaser { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: var(--card); border-radius: 18px; padding: 16px 22px; margin: 0 0 18px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(28, 37, 48, .05); border-left: 4px solid #c51b8a; transition: box-shadow .15s; }
.map-teaser:hover { box-shadow: 0 10px 26px rgba(28, 37, 48, .12); }
.map-teaser > span:first-child { display: grid; gap: 2px; }
@media (max-width: 640px) {
  .age-map { height: 66vh; min-height: 380px; }
  .map-legend { left: 8px; bottom: 8px; padding: 9px 11px; font-size: .8rem; }
  .map-legend ul { grid-template-columns: 1fr 1fr; gap: 3px 12px; }
}

/* The way round the suggestions is always in sight: any address can be typed in by hand */
.search-manual { white-space: nowrap; font-weight: 650; color: var(--accent-dark); }
.hero .search-manual { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* "Can't say" next to the five numbers of a scale */
.scale-input .pills { flex-wrap: wrap; }
.pills .pill-na span { width: auto; padding: 0 14px; font-weight: 600; color: var(--muted); }
.pills .pill-na input:checked + span { background: #5f6b7a; border-color: #5f6b7a; color: #fff; box-shadow: none; }

/* An example of a review on the how-it-works page: marked as an example, tied to no address */
.sample { position: relative; border: 2px dashed #cfd8d3; border-radius: 16px; padding: 22px 22px 16px; margin: 18px 0 24px; background: #fbfcfb; }
.sample-tag { position: absolute; top: -12px; left: 18px; background: #5f6b7a; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.sample-head { display: flex; gap: 12px; align-items: center; margin: 8px 0 10px; }
.sample-head > div { display: grid; }
.sample h4 { margin: 12px 0 2px; }
.sample p { margin: 0; }

/* A reviewed address: the map sits in the head of the card, the facts of the registers in a table */
.b-card-active { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 32px; padding: 0; overflow: hidden; }
.b-card-active .b-main { padding: 32px 0 28px 36px; grid-column: 1; grid-row: 1; }
.b-card-active .b-map { grid-column: 2; grid-row: 1; min-height: 300px; }
.b-card-active .b-map .map { height: 100%; min-height: 300px; border-radius: 0; box-shadow: none; }
.passport dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 28px; margin: 0 0 6px; }
.passport dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.passport dt { color: var(--muted); }
.passport dd { margin: 0; font-weight: 700; text-align: right; }
.passport { margin-bottom: 20px; }
.passport p { margin: 10px 0 0; }
@media (max-width: 860px) {
  .b-card-active { display: block; }
  .b-card-active .b-main { padding: 22px 18px 20px; }
  .b-card-active .b-map, .b-card-active .b-map .map { min-height: 200px; height: 200px; }
}
.b-card-active .b-head { flex-direction: column; gap: 14px; }
.b-card-active .b-score { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.b-card-active .few-note { text-align: left; max-width: 260px; }

/* Map or street view in the head of a reviewed building */
.b-map { position: relative; }
.view-tabs { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; gap: 6px; }
.view-tabs .chip { cursor: pointer; font: inherit; font-weight: 700; font-size: .88rem; padding: 7px 14px; box-shadow: 0 2px 8px rgba(28, 37, 48, .18); }
.street-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.street-frame[hidden] { display: none; }
.b-map.is-street .view-tabs { top: auto; bottom: 30px; }

/* The sticker of a review whose author proved the address with a paper */
.proof-badge { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 12px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #21a038; color: #fff; font-weight: 800; font-size: .92rem; box-shadow: 0 4px 12px rgba(33, 160, 56, .3); cursor: help; }
.proof-badge span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #21a038; font-size: .85rem; }

/* A translated review: marked as a translation, the author's own words one click away */
.tr-note { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 8px; background: #eef1f3; color: var(--muted); font-size: .85rem; font-weight: 600; }
.tr-original { margin: 12px 0 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.tr-original summary { cursor: pointer; color: var(--accent-dark); font-weight: 650; font-size: .92rem; }
.tr-original div { margin-top: 8px; color: #4a5663; }
.langs a.link { text-decoration: none; }
.b-map.is-street #map { visibility: hidden; }
.street-frame { z-index: 4; }
.view-tabs { z-index: 5; }
@media (max-width: 860px) {
  .b-card-active .b-map, .b-card-active .b-map .map { min-height: 260px; height: 260px; }
}

/* The page where a review starts: what can be reviewed and how */
.steps-list { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 10px; max-width: 760px; }
.steps-list li::marker { font-weight: 800; color: var(--accent-dark); }
div.way { cursor: default; }

/* One review on its own page, and a review the link pointed at on the page of the building */
.review:target { box-shadow: 0 0 0 3px var(--accent); }
.review-page-head { margin: 4px 0 16px; }
.review-page-head h1 { margin: 2px 0 4px; }
.eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); }
.review-next { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 18px; }
.review-next p { margin: 4px 0 0; }
.review-next-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-review { font: inherit; }

/* Likes and the buttons of social networks */
.ico { width: 18px; height: 18px; flex: none; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line, #dfe5e2); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .92rem; cursor: pointer; line-height: 1.2; }
.like-btn .ico { fill: none; }
.like-btn b { font-weight: 700; min-width: 0; }
.like-btn b:empty { display: none; }
.like-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.like-btn.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.like-btn.is-on .ico { fill: currentColor; }
.like-heart.is-on { background: #fdecef; border-color: #e0475b; color: #c22a3f; }
.btn.like-btn { border-radius: 12px; padding: 10px 16px; font-size: 1rem; }
.like-own { cursor: default; opacity: .75; }
.like-own:hover { border-color: var(--line, #dfe5e2); color: inherit; }
.review-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.share-menu { position: relative; display: inline-block; }
.share-menu > summary { list-style: none; }
.share-menu > summary::-webkit-details-marker { display: none; }
.share-pop { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); padding: 8px; background: var(--card, #fff); border: 1px solid var(--line, #dfe5e2); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.social { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; color: #fff; cursor: pointer; text-decoration: none; transition: transform .12s ease, filter .12s ease; }
.soc:hover { transform: translateY(-1px); filter: brightness(1.08); }
.soc .ico { width: 20px; height: 20px; }
.social-small .soc { width: 36px; height: 36px; }
.social-small .soc .ico { width: 18px; height: 18px; }
.soc-wa { background: #25d366; }
.soc-tg { background: #229ed9; }
.soc-fb { background: #1877f2; }
.soc-x { background: #111; }
.soc-vk { background: #0077ff; }
.soc-copy { background: var(--accent-soft); color: var(--accent-dark); }
.soc-copy.is-done, .soc-copy:focus-visible { outline: 2px solid var(--accent); }
.soc-copy { position: relative; }
.copy-note { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #1d2421; color: #fff; font-size: .8rem; padding: 4px 8px; border-radius: 6px; pointer-events: none; }
.social-login { display: grid; gap: 10px; max-width: 420px; margin: 8px 0 4px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line); color: #1f2321; }
.social-btn .ico { width: 20px; height: 20px; }
.social-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-facebook .ico { fill: #fff; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b726f); font-size: .9rem; margin: 6px 0 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.social-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.social-quick .social-btn { display: inline-flex; }
.share-pop .social { flex-wrap: nowrap; }

/* Home: the newest reviews with a line of what the resident wrote (15.11.2026). */
.recent-card { gap: 10px; }
.recent-top { display: flex; gap: 12px; align-items: flex-start; }
.recent-top > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.recent-text { color: var(--ink); line-height: 1.45; }
/* A review: the words first, the ratings by point folded under them. */
.scales-more { margin: 12px 0 4px; }
.scales-more summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 600; }
.scales-more[open] summary { margin-bottom: 4px; }
/* Neighbours: a ready message for the building chat and a poster for the entrance. */
.neighbours { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: -6px 0 22px; }
.neighbours .share-menu { position: relative; }
.neighbours .btn { min-height: 40px; padding: 8px 16px; }
/* Filters of a city on a phone: one row that scrolls sideways instead of a screen of buttons. */
@media (max-width: 640px) {
  .chips.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 2px 16px 6px 0; -webkit-overflow-scrolling: touch; }
  .chips.tabs::-webkit-scrollbar { display: none; }
  .chips.tabs > * { flex: 0 0 auto; }
}
/* Comparison of buildings. */
.cmp-btn.is-on { background: var(--accent-soft); color: var(--accent); }
.cmp-bar { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(20, 32, 43, .25); }
.cmp-bar[hidden] { display: none; }
.cmp-scroll { overflow-x: auto; margin: 16px -16px 12px; padding: 0 16px; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 100%; background: var(--card); border-radius: 18px; overflow: hidden; font-size: .95rem; }
.cmp th, .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { min-width: 160px; }
.cmp thead th a:first-child { display: block; font-weight: 800; color: var(--ink); text-decoration: none; }
.cmp thead th .muted { display: block; }
.cmp tbody th { font-weight: 600; color: var(--muted); min-width: 150px; position: sticky; left: 0; background: var(--card); }
.cmp td.is-best { color: var(--accent); font-weight: 800; }
.cmp-del { display: inline-block; margin-top: 6px; color: var(--muted); }
/* The chat of a building, under its card. */
.chat-card { margin: 0 0 22px; }
.chat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.chat-head h2 { margin: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
.chat:has(.chat-empty) { margin: 8px 0; }
.chat-msg { background: #f3f5f6; border-radius: 14px; padding: 10px 14px; max-width: 88%; }
.chat-msg.is-mine { align-self: flex-end; background: var(--accent-soft); }
.chat-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.chat-meta b { color: var(--ink); }
.chat-local { color: var(--accent); font-weight: 700; }
.chat-flag { margin-left: auto; font-size: .78rem; color: var(--muted); }
.chat-text { line-height: 1.5; overflow-wrap: anywhere; }
.chat-empty { margin: 0; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.chat-form textarea { flex: 1 1 220px; min-height: 48px; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); font: inherit; resize: vertical; }
.chat-form .error { flex-basis: 100%; margin: 0; }
.chat-rules { margin: 8px 0 0; }
.chat-join { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; color: var(--muted); }
.chat-join-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* The management company named by residents, in the card of the building. */
.b-manager { margin: 8px 0 0; font-weight: 600; }
.b-manager a { color: var(--ink); }
.score-sm { font-size: .8rem; padding: 2px 7px; min-width: 0; vertical-align: 1px; }
/* How many neighbours rated the building, next to the link for the building chat. */
.neighbours-box { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--card); border-radius: 18px; padding: 16px 20px; margin: 0 0 22px; }
.neighbours-count { display: flex; flex-direction: column; gap: 4px; min-width: 220px; flex: 1 1 260px; }
.neighbours-box .neighbours { margin: 0; }
.n-bar { display: block; height: 8px; border-radius: 99px; background: #e8ecee; overflow: hidden; max-width: 320px; }
.n-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.n-mine { color: var(--accent); font-weight: 700; }
.neighbours .btn, .neighbours summary.btn { display: inline-flex; align-items: center; gap: 8px; }

/* First screen, 15.11.2026: the search has a button, the screen names reviews and invites to write one. */
.search-input { padding-right: 112px; }
.search-go { position: absolute; top: 7px; right: 7px; height: calc(var(--search-h, 56px) - 14px); padding: 0 20px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; color: #fff; background: linear-gradient(180deg, #24a83b, #1c9632); cursor: pointer; }
.search-go:hover { background: linear-gradient(180deg, #1f9a35, #17832b); }
.hero .search-go { background: #0f5f22; }
.hero .search-go:hover { background: #0b4a1a; }
.hero-eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: .95rem; }
.hero-write { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; color: #fff; font-weight: 600; }
.hero-write-btn { background: #fff; color: #17782b; border-color: #fff; font-weight: 700; }
.hero-write-btn:hover { background: #eef8f0; color: #0f5f22; border-color: #eef8f0; }
@media (max-width: 560px) {
  .search-input { padding-right: 92px; }
  .search-go { padding: 0 14px; }
}

/* A poor score must not look like a good one: red below 2.5, amber below 3.5. */
.score.score-low { background: #d64545; }
.score.score-mid { background: #e0962a; }
.score-big.score-low { box-shadow: 0 6px 18px rgba(214, 69, 69, .3); }
.score-big.score-mid { box-shadow: 0 6px 18px rgba(224, 150, 42, .3); }
.meter i.score-low { background: #d64545; }
.meter i.score-mid { background: #e0962a; }
/* The empty chat of a building is one line. */
.chat-quiet { padding-top: 18px; padding-bottom: 18px; }
.chat-quiet-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; }
.grid-2.grid-1 { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  /* The picture is a decoration: on a phone it must not take a whole screen before the steps. */
  .hero::after { width: min(64%, 250px); margin: 4px auto -34px; }
  .b-actions .btn-accent { flex: 1 1 100%; text-align: center; justify-content: center; }
  .b-actions .btn:not(.btn-accent) { padding: 8px 12px; font-size: .93rem; }
}

/* In a review the words "Good" and "Bad" are labels: green and red, not grey small print. */
.review h4.rv-good, .review h4.rv-bad { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 700; margin: 14px 0 2px; }
.review h4.rv-good { color: #17782b; }
.review h4.rv-bad { color: #c03a3a; }
@media (max-width: 640px) {
  /* A scale is one row on a phone: five numbers and "Don't know", the hint on its own line. */
  .scale-input .pills:not(.pills-wide) { flex-wrap: nowrap; gap: 6px; }
  .scale-input .pills:not(.pills-wide) label { flex: 1 1 0; min-width: 0; }
  .scale-input .pills:not(.pills-wide) span { width: 100%; }
  .scale-input .pills:not(.pills-wide) .pill-na { flex: 0 0 auto; }
  .scale-input .pills:not(.pills-wide) .pill-na span { padding: 0 10px; font-size: .88rem; white-space: nowrap; }
  .scale-input legend small { display: block; margin: 2px 0 0; }
}

/* The words of the resident are the main thing on the page: larger than the rest of the text. */
.review > p:not([class]) { font-size: 1.12rem; line-height: 1.6; margin: 2px 0 0; }
.review .review-title { font-size: 1.25rem; }
.review .tr-note { margin: 12px 0 0; }

/* The account tells the author what the reviews did: how many times they were read and found helpful. */
.impact { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 10px; }
.impact > div { flex: 1 1 200px; padding: 16px 20px; border-radius: 16px; background: var(--accent-soft); }
.impact strong { display: block; font-size: 2rem; line-height: 1.1; font-weight: 800; color: var(--accent-dark); }
.impact span { color: #3a4652; }
.impact-line { flex-basis: 100%; }

/* Asked once, right after a review is sent. */
.ask-previous { border: 2px solid var(--accent); margin-bottom: 16px; }
.ask-previous h2 { margin-top: 0; }
.ask-previous .search { margin-top: 10px; }

/* Every published review passed the check before publication; the filled green badge stays for a document. */
.checked-badge { background: #eaf6ec; color: #1b7a2d; box-shadow: none; font-weight: 700; padding: 5px 12px 5px 6px; font-size: .86rem; }
.checked-badge span { background: #21a038; color: #fff; width: 20px; height: 20px; }
.checked-mini { color: #1b7a2d; font-weight: 700; }

/* Photos of the review: a visible button next to the text, not a field inside a folded block. */
.photo-pick { border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px 10px; margin: 4px 0 0; }
.photo-pick legend { font-weight: 700; padding: 0 6px; }
.photo-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 16px; border: 2px solid #21a038; border-radius: 12px; color: #1b7a2d; font-weight: 700; background: #fff; }
.photo-btn:hover { background: #eaf6ec; }
#photo-preview img { width: 96px; height: 72px; }
.review-form .photo-pick label.photo-btn { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; width: auto; }

/* Photos of a review stand above its text: one photo large, several in a row of equal tiles. */
.shots-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 16px; max-width: 900px; }
.shots-top img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
.shots-top.shots-one { display: block; max-width: 640px; }
@media (max-width: 600px) { .shots-top { grid-template-columns: 1fr 1fr; } }

/* The removal of this review is demanded: seen by everyone while the demand is looked into. */
.dispute-badge { background: #fff1dc; color: #7a4300; box-shadow: none; font-weight: 800; }
.dispute-badge span { background: #d97b00; color: #fff; }
.ask-photo .photo-btn { text-decoration: none; }

/* The picture with letters on the forms for complaints, and the field people never see. */
.captcha { margin: 18px 0; }
.captcha img { display: block; border-radius: 10px; border: 1px solid #d9e2da; margin-bottom: 8px; max-width: 100%; height: auto; }
.captcha input[name="captcha"] { max-width: 240px; letter-spacing: .2em; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* "How the score is calculated": a quiet line under the score that opens on a tap. */
.how-score { font-size: .88rem; color: var(--muted, #6b7785); max-width: 340px; }
.how-score summary { cursor: pointer; text-decoration: underline dotted; }
.how-score p { margin: 6px 0 0; line-height: 1.45; }

/* The place of a building among the reviewed ones of its city, under the score. */
.city-rank { font-size: .9rem; font-weight: 700; color: #1b7a2d; text-decoration: none; }
.city-rank:hover { text-decoration: underline; }
.checked-badge a { color: inherit; text-decoration: none; }
.checked-badge a:hover { text-decoration: underline; }

/* Home page: the map of reviewed buildings. */
.world-map { height: 380px; }
@media (max-width: 600px) { .world-map { height: 300px; } }

/* The open page of numbers about demands to remove reviews. */
.numbers { width: 100%; border-collapse: collapse; margin: 12px 0 24px; }
.numbers th, .numbers td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.numbers td { text-align: right; font-weight: 800; white-space: nowrap; }
