@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/fonts/golos-text-latin-400-normal.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; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/fonts/golos-text-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/fonts/golos-text-latin-600-normal.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; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/fonts/golos-text-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --paper: #f5f7f7;
  --surface: #ffffff;
  --ink: #1c2b36;
  --muted: #56656f;
  --line: #d3dce1;
  --water: #1d5d8f;
  --water-dark: #134466;
  --water-tint: #e6eff6;
  --drum: #20262b;
  --drum-red: #b8322a;
  --ok: #2f7a4b;
  --ok-tint: #e5f2ea;
  --warn: #8a5a00;
  --warn-tint: #fff3d4;
  --error: #b3261e;
  --error-tint: #fbe9e7;
  --radius: 6px;
  --measure: 40rem;
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--water); text-underline-offset: 0.15em; }
a:hover { color: var(--water-dark); }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.2; font-weight: 600; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); letter-spacing: -0.015em; }
h2 { font-size: 1.45rem; margin-top: 2em; }
h3 { font-size: 1.12rem; margin-top: 2em; }
p, ul, ol, table { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li + li { margin-top: 0.3em; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding-inline: 1.25rem; }
.prose { max-width: var(--measure); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }

/* Draft markers for content still to be confirmed */
.draft-banner { background: var(--warn-tint); color: var(--warn); font-size: 0.9rem; padding: 0.5rem 0; }
mark.todo { background: var(--warn-tint); color: inherit; padding: 0 0.2em; border-bottom: 2px dotted var(--warn); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-block: 1rem; }
.brand { text-decoration: none; color: var(--ink); margin-right: auto; }
.brand strong { display: block; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-size: 0.92rem; }
.phone { font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.lang { display: flex; gap: 0.25rem; }
.lang a { padding: 0.2rem 0.5rem; border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.lang a[aria-current] { background: var(--water-tint); color: var(--water-dark); font-weight: 600; }

.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.site-nav li + li { margin: 0; }
.site-nav a { display: block; padding: 0.75rem 0; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current] { border-bottom-color: var(--water); font-weight: 600; }
.site-nav .nav-readings { color: var(--water); font-weight: 600; }

/* Page sections */
.page { padding-block: 2.5rem 4rem; }
.hero { padding-block: 3rem 1rem; }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.door { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.door p { margin: 0; color: var(--muted); }
.door .button { align-self: flex-start; margin-top: auto; }
.door-resident { border-top: 4px solid var(--water); }

.services { columns: 2 18rem; column-gap: 3rem; padding: 0; list-style: none; }
.services li { break-inside: avoid; padding: 0.6rem 0; border-top: 1px solid var(--line); margin: 0; }
.services strong { display: block; }
.services span { color: var(--muted); font-size: 0.95rem; }

.price-table { width: 100%; max-width: var(--measure); border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.price-table thead th { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.table-scroll { overflow-x: auto; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; max-width: 28rem; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.25rem; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; padding-block: 1.25rem; }

/* Buttons and forms */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: 0.75rem 1.25rem; min-height: 2.9rem;
  border-radius: var(--radius); border: 1px solid var(--water);
  background: var(--water); color: #fff; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--water-dark); border-color: var(--water-dark); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button.secondary { background: var(--surface); color: var(--water); }
.button.secondary:hover { background: var(--water-tint); color: var(--water-dark); }
.button.small { padding: 0.4rem 0.75rem; min-height: 2.2rem; font-size: 0.92rem; }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--water); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }

label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.hint { display: block; color: var(--muted); font-size: 0.92rem; font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  width: 100%; padding: 0.6rem 0.75rem; min-height: 2.9rem;
  border: 1px solid #a9b6bd; border-radius: var(--radius);
}
textarea { min-height: 5rem; resize: vertical; }
input[aria-invalid=true] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field { margin-bottom: 1.1rem; }
.fields-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1rem; }

.notice { border-radius: var(--radius); padding: 0.85rem 1rem; margin: 0 0 1.25rem; }
.notice p:last-child { margin: 0; }
.notice.ok { background: var(--ok-tint); color: #1d4f30; }
.notice.warn { background: var(--warn-tint); color: #5c3c00; }
.notice.error { background: var(--error-tint); color: #7d1a14; }
.notice.info { background: var(--water-tint); color: var(--water-dark); }

/* Readings app */
.readings > * { max-width: 44rem; }
.code-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; max-width: 28rem; }
.code-box input { font-size: 1.5rem; letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

.apartment-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 1.25rem; }
.apartment-bar h1 { margin: 0; font-size: 1.6rem; }
.apartment-bar .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-left: auto; font-size: 0.95rem; }
.apartment-bar .actions select { width: auto; max-width: 100%; min-height: 2.4rem; padding: 0.3rem 0.5rem; }
.apartment-bar .actions .link-button { white-space: nowrap; }

.meter {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--water);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem;
}
.meter[data-type=hot_water] { border-left-color: var(--drum-red); }
.meter[data-type^=el] { border-left-color: #c9a227; }
.meter[data-type=gas] { border-left-color: #6b7f2a; }
.meter[data-type=heat] { border-left-color: #9a4f8c; }
.meter-head { display: flex; flex-wrap: wrap; gap: 0 0.75rem; align-items: baseline; margin-bottom: 0.75rem; }
.meter-head h3 { margin: 0; }
.meter-head .serial { color: var(--muted); font-size: 0.9rem; }
.meter-entry { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 0.75rem 1.25rem; align-items: center; }
.meter-entry input { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.meter-facts { color: var(--muted); font-size: 0.95rem; margin: 0.75rem 0 0; }
.meter-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-msg { margin: 0.75rem 0 0; }

/* The counter drums: black for whole units, red for decimals, like a real water meter. */
.drums { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: #d9dee1; border-radius: 4px; font-variant-numeric: tabular-nums; }
.drums span {
  display: inline-block; width: 1.45em; padding: 0.2em 0; text-align: center;
  font-size: 1.25rem; font-weight: 600; line-height: 1.2;
  color: #fff; background: linear-gradient(#3a434a, var(--drum) 30%, var(--drum) 70%, #3a434a);
  border-radius: 2px;
}
.drums span.dec { background: linear-gradient(#d4554c, var(--drum-red) 30%, var(--drum-red) 70%, #d4554c); }
.drums span.empty { color: #6d7880; }
.drums .unit { background: none; color: var(--muted); width: auto; padding: 0 0.3em; font-weight: 400; font-size: 1rem; }

.history { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.history th, .history td { padding: 0.45rem 0.75rem 0.45rem 0; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.history th:first-child, .history td:first-child { text-align: left; }
.history thead th { color: var(--muted); font-weight: 400; }

@media (max-width: 34rem) {
  .meter-entry { grid-template-columns: 1fr; }
  .drums span { width: 1.3em; font-size: 1.1rem; }
  .apartment-bar .actions { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .drums span { transition: background-color 0.15s; }
}
@media print {
  .site-header, .site-nav, .site-footer, .draft-banner { display: none; }
}
.door h2 { margin: 0; }
.after-card { margin-top: 1.5rem; }
.door .drums { align-self: flex-start; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Experience facts on the home page */
.experience { padding-block: 1rem 0.5rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 0; margin: 0 0 1.25rem; }
.facts div { flex: 1 1 11rem; padding: 0.25rem 1.5rem 0.25rem 1rem; border-left: 3px solid var(--water); }
.facts dt { font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--water-dark); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.facts dd { margin: 0.4rem 0 0; color: var(--muted); max-width: 14rem; }
/* Text-only pages: keep the page frame wide (left-aligned like the others), limit the line length inside. */
.wrap.prose { max-width: 64rem; }
.wrap.prose > * { max-width: var(--measure); }
main > section:last-child { padding-bottom: 4rem; }
.drums.overflow { outline: 2px solid var(--error); outline-offset: 1px; }
.req { color: var(--error); font-weight: 600; }
