/* ==========================================================================
   demo-v4 theme stylesheet — ROMASHKA-TEMPLATE-V4-PORT.
   Authored in the variant (the approved v4 mockup pack is PNG-only — no
   stylesheet bytes to vendor; this file interprets the 36 approved
   visuals of the pack in the svoezem-site repo's git-ignored
   .mockup-romashka-v4-ref/). The mockup
   imagery itself is vendored as presentation crops (assets/img/*, provenance
   in README.md). Product seams (head contract, CMS bindings, /cabinet/,
   switcher pill) are styled, never restructured, by this file.
   Fonts: registered in Layout.astro — Inter (body), PT Serif under
   «Georgia»/«Times New Roman» (display), DejaVu glyph-fallback under every
   family for ₽/←/→/✓/● (the CI-pixel lesson from the v2 port).
   ========================================================================== */

:root {
  --bg: #f6f4ea;
  --paper: #fdfcf7;
  --card: #ffffff;
  --ink: #1b3325;
  --body: #3c4f42;
  --muted: #6d7a6e;
  --green: #2f6b40;
  --green-deep: #275b38;
  --green-ink: #1e4d33;
  --tint: #eef3e2;
  --tint-2: #e7eedb;
  --line: #e6e6d9;
  --amber-bg: #f6ecd4;
  --amber-ink: #8a6a1f;
  --blue-bg: #e3edf8;
  --blue-ink: #2b5d8a;
  --red: #b3261e;
  --red-bg: #fdeeee;
  --shadow: 0 10px 28px rgba(34, 64, 43, 0.08);
  --shadow-soft: 0 4px 14px rgba(34, 64, 43, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 700; margin: 0; }
p { margin: 0 0 10px; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.page-wrap { padding: 26px 0 10px; }
.section { margin: 0 0 34px; }
.section.tight { margin-bottom: 22px; }

/* ---- header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #eceadf;
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 64px; display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.brand img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.brand-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}
.brand-title small { font-size: 13px; font-weight: 400; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 24px; flex: none; }
.nav a {
  position: relative;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.nav a:hover { color: var(--green); }
.nav a.active { color: var(--green-deep); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-deep);
}
.header-actions { margin-left: auto; flex: none; display: flex; align-items: center; gap: 12px; }
.cabinet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.cabinet:hover { background: #1f4c2e; }
.cabinet svg { width: 16px; height: 16px; }
.menu-btn { display: none; }

/* ---- hero bands ---- */
.hero-inner, .hero-home {
  position: relative;
  overflow: hidden;
  background: #e9e7da;
}
.hero-home { min-height: 430px; }
.hero-inner { min-height: 315px; }
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Contrast for semantic HTML over independently clean artwork. */
  background: linear-gradient(90deg,
    rgba(250, 249, 240, 0.985) 0%,
    rgba(250, 249, 240, 0.97) 46%,
    rgba(250, 249, 240, 0.9) 58%,
    rgba(250, 249, 240, 0.42) 74%,
    rgba(250, 249, 240, 0.06) 92%,
    rgba(250, 249, 240, 0) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 46px 0 42px;
}
.hero-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #55665a;
  margin: 0 0 10px;
}
.hero-title {
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 640px;
}
.hero-text { margin: 14px 0 0; font-size: 16.5px; color: var(--body); max-width: 460px; }
.hero-stat-grid { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.hero-stat { display: flex; align-items: center; gap: 10px; }
.hero-stat svg { width: 26px; height: 26px; color: var(--green-deep); }
.hero-stat strong { display: block; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--ink); }
.hero-stat span { font-size: 12.5px; color: var(--muted); }

/* visually hidden (the mockups show no breadcrumb links; the trail stays
   for assistive tech + JSON-LD parity) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---- buttons / pills ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1.5px solid var(--green-ink);
  background: transparent;
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--tint); }
.btn.primary { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn.primary:hover { background: #1f4c2e; }
.btn svg { width: 16px; height: 16px; }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d8ddcc;
  background: #fff;
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 700;
}
.pill-link:hover { background: var(--tint); }
.pill-link svg { width: 15px; height: 15px; }
.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green-ink);
  flex: none;
}
.round-btn svg { width: 17px; height: 17px; }
.round-btn:hover { background: #dce7c9; }

/* ---- section headings ---- */
.section-title { font-size: 27px; line-height: 1.15; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.heading-row .section-title { margin: 0; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
}
.kicker svg { width: 20px; height: 20px; }
.subtle { color: var(--muted); font-size: 13.5px; }

/* ---- panels ---- */
.panel {
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

/* ---- home: quick strip ---- */
.home-quick-offset { margin-top: -58px; position: relative; z-index: 2; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.quick-card { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); }
.quick-card:hover { background: var(--tint); }
.quick-card .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--green-deep);
  flex: none;
}
.quick-card .ic svg { width: 21px; height: 21px; }
.quick-card h3 { font-family: var(--sans); font-size: 13.5px; font-weight: 700; margin: 0 0 3px; }
.quick-card p { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.quick-card small { font-weight: 400; font-size: 12px; color: var(--muted); }

/* ---- home: nav tiles ---- */
.photo-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.photo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  border: 1px solid #eae7d8;
  min-height: 148px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.photo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.photo-tile.t-news { background: #edf2e0; }
.photo-tile.t-docs { background: #f4ecda; }
.photo-tile.t-meetings { background: #e8efe3; }
.photo-tile.t-about { background: #f0ecd9; }
.photo-tile.t-contacts { background: #e9efe9; }
.photo-tile .tile-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--green-deep);
  margin-bottom: 10px;
}
.photo-tile .tile-ic svg { width: 21px; height: 21px; }
.photo-tile strong { font-family: var(--serif); font-size: 17.5px; color: var(--ink); }
.photo-tile span { font-size: 12.5px; color: #5d6b5e; margin-top: 3px; max-width: 150px; }
/* SV-79 D2: the arrow sits in its own flex slot at the foot row's right
   edge — the mock's label geometry (the round at the label's corner,
   never over the description). The former absolute left/bottom pin put
   the 34px circle ON the wrapped description text (the registered D2
   overlap on all five nav tiles). */
.photo-tile .tile-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 3px;
  max-width: none;
}
.photo-tile .tile-foot .tile-sub { margin-top: 0; }
.photo-tile .round-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.85);
}

/* ---- news cards / rows ---- */
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card-item {
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card-item .thumb { aspect-ratio: 16 / 9.6; overflow: hidden; background: var(--tint); }
.news-card-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-item .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-item h3 { font-size: 18px; line-height: 1.28; }
.news-card-item h3 a:hover { color: var(--green); }
.news-card-item p { margin: 0; font-size: 13.5px; color: var(--muted); }

.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.news-meta svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--blue-bg);
  color: var(--blue-ink);
}
.tag.maintenance { background: var(--amber-bg); color: var(--amber-ink); }
.tag.meeting { background: #e2eede; color: #2c5e3b; }

.news-rows { display: flex; flex-direction: column; gap: 12px; }
.news-row {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}
.news-row .thumb { width: 280px; height: 150px; border-radius: 10px; overflow: hidden; background: var(--tint); }
.news-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row h3 { font-size: 18.5px; line-height: 1.25; margin: 6px 0 6px; }
.news-row h3 a:hover { color: var(--green); }
.news-row p { margin: 0; font-size: 13.5px; color: var(--muted); }
.news-row .readmore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-ink);
  white-space: nowrap;
  padding-right: 8px;
}
.news-row .readmore svg { width: 15px; height: 15px; }

/* ---- map band ---- */
.map-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e2e2d2;
  box-shadow: var(--shadow-soft);
  background: #dfe5d2;
}
.map-band img { width: 100%; height: 470px; object-fit: cover; }
.map-band.natural img { height: auto; }
.map-band .map-cta {
  position: absolute;
  right: 22px;
  bottom: 20px;
}
.map-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }

/* ---- home bottom: board + about ---- */
.bottom-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 16px; align-items: stretch; }
.chairman { display: flex; gap: 18px; }
.chairman-photo { width: 148px; height: 168px; border-radius: 16px; overflow: hidden; flex: none; background: var(--tint); }
.chairman-photo img { width: 100%; height: 100%; object-fit: cover; }
.chairman h3 { font-size: 20px; margin-bottom: 2px; }
.chairman .role { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.chairman p { font-size: 13.5px; color: var(--body); }
.btn-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--tint);
}
.stat svg { width: 22px; height: 22px; color: var(--green-deep); flex: none; }
.stat strong { display: block; font-family: var(--serif); font-size: 23px; line-height: 1.05; color: var(--ink); }
.stat span { font-size: 12px; color: var(--muted); }
.about-copy { font-size: 13.5px; color: var(--body); margin: 14px 0; }

/* ---- search bar ---- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid #e3e2d3;
  border-radius: 999px;
  padding: 4px 18px;
  height: 48px;
  margin-bottom: 18px;
}
.searchbar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.searchbar input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---- pagination ---- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; }
.pagination .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-ink);
  background: var(--card);
  border: 1px solid #e3e2d3;
}
.pagination .page.active { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.pagination .page[aria-hidden] { opacity: 0.45; }

/* ---- documents hub ---- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  overflow: hidden;
}
.doc-card.full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
.doc-card h3 { font-size: 18.5px; }
.doc-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.doc-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--green-deep);
  flex: none;
}
.doc-ic svg { width: 22px; height: 22px; }
.doc-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green-ink);
  font-size: 12.5px;
  font-weight: 700;
}
.doc-count svg { width: 15px; height: 15px; }
.doc-card .doc-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
}
.doc-card.full .doc-arrow { position: static; margin-left: auto; }
.doc-card .doc-body { padding-right: 40px; }

/* compact arrow chip (Search results' row affordance) */
.mini-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green-ink);
  flex: none;
}
.mini-arrow svg { width: 16px; height: 16px; }

/* document file rows (category pages) */
.doc-rows { display: flex; flex-direction: column; gap: 12px; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 14px 18px;
}
.doc-row .file-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fbe9e7;
  color: #c0392b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex: none;
}
.doc-row h3 { font-size: 17px; margin-bottom: 3px; }
.doc-row .meta { font-size: 12.5px; color: var(--muted); }
.doc-row .meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.doc-row .doc-arrow { margin-left: auto; }

/* pill category nav */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fbfaf2;
  border: 1px solid #e0e0d0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.chip-link:hover { background: var(--tint); }
.chip-link.active { background: var(--green-deep); border-color: var(--green-deep); color: #fff; font-weight: 700; }

/* ---- notice bands ---- */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--tint);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--body);
}
.notice svg { width: 20px; height: 20px; color: var(--green-deep); flex: none; margin-top: 1px; }
.notice a { font-weight: 700; text-decoration: underline; }
.notice-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---- meetings ---- */
.info-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info-tab {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}
.info-tab > svg { width: 26px; height: 26px; color: var(--green-deep); flex: none; margin-top: 2px; }
.info-tab strong { display: block; font-family: var(--serif); font-size: 16.5px; color: var(--ink); margin-bottom: 3px; }
.info-tab span { font-size: 13px; color: var(--muted); }
.info-tab a { font-weight: 600; }
.meeting-next {
  display: grid;
  grid-template-columns: auto 1fr 460px;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}
.meeting-next .big-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--tint);
  color: var(--green-deep);
}
.meeting-next .big-icon svg { width: 30px; height: 30px; }
.meeting-next h2 { font-size: 27px; margin-bottom: 8px; }
.meeting-next p { font-size: 14px; color: var(--body); max-width: 420px; }
.meeting-next .meeting-photo { width: 100%; height: 230px; object-fit: cover; border-radius: var(--radius-sm); }
.archive { display: flex; flex-direction: column; gap: 12px; }
.archive-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 16px 20px;
}
.archive-date { text-align: center; background: var(--tint); border-radius: 12px; padding: 10px 6px; }
.archive-date strong { display: block; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--ink); }
.archive-date span { font-size: 12px; color: var(--muted); }
.archive-row h3 { font-size: 18px; margin-bottom: 3px; }
.archive-row p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---- about ---- */
.about-lead {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.about-lead img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius-sm); }
.about-lead h2 { font-size: 26px; margin-bottom: 10px; }
.about-lead .prose { font-size: 14px; }
.about-lead .prose p { margin: 0 0 10px; }
.facts-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-card {
  position: relative;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.photo-card .thumb { position: relative; height: 170px; background: var(--tint); }
.photo-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-card .thumb .chip {
  position: absolute;
  left: 14px;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  border: 3px solid #fff;
  z-index: 1;
}
.photo-card .thumb .chip svg { width: 20px; height: 20px; }
.photo-card .body { padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.photo-card h3 { font-size: 18px; }
.photo-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.photo-card .more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-ink);
}
.photo-card .more svg { width: 15px; height: 15px; }

.person-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person-card {
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.person-card .portrait { width: 100%; height: 210px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 14px; }
.person-card h3 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
.person-card .role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.person-card p { font-size: 13.5px; color: var(--body); }
.person-card .line-icon { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 8px; color: var(--ink); }
.person-card .line-icon svg { width: 16px; height: 16px; color: var(--green-deep); flex: none; }

.commission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.commission-card {
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.commission-card .head { display: flex; gap: 12px; align-items: center; }
.commission-card h3 { font-size: 17.5px; }
.commission-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.commission-card .thumb { height: 130px; border-radius: var(--radius-sm); object-fit: cover; margin-top: auto; }

.reception {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #eeeadd;
  box-shadow: var(--shadow-soft);
  background: var(--card);
}
.reception .photo { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.reception .body { padding: 26px; }
.reception h2 { font-size: 24px; margin-bottom: 10px; }
.reception p { font-size: 14px; }

.band-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.band-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.band-card .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--green-deep);
  flex: none;
}
.band-card .ic svg { width: 22px; height: 22px; }
.band-card h3 { font-size: 18px; margin-bottom: 6px; }
.band-card p { margin: 0; font-size: 13.5px; color: var(--body); }

/* emergency */
.emergency-card {
  background: var(--red-bg);
  border: 1px solid #f3d4d2;
  border-radius: var(--radius);
  padding: 24px;
}
.emergency-card h3 { display: flex; align-items: center; gap: 9px; color: var(--red); font-size: 19px; margin-bottom: 6px; }
.emergency-card h3 svg { width: 21px; height: 21px; }
.big112 { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--red); font-weight: 700; }
.emergency-card p { font-size: 13.5px; color: #6b4340; }
.emergency-card .btn { border-color: var(--red); color: var(--red); background: transparent; }
.emergency-card .btn:hover { background: #f9dedd; }
.sos-band { background: #fdf3f0; border: 1px solid #f3d8d2; }
.sos-band .ic { background: #f9dedd; color: var(--red); }
.sos-band .big-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--red); line-height: 1; }

/* infrastructure */
.infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.infra-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.infra-card .head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.infra-card .head h3 { font-size: 18.5px; }
.infra-card .head .fact { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.infra-card p { font-size: 13.5px; color: var(--body); }
.infra-card .photo { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius-sm); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card {
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.work-card .head { display: flex; gap: 11px; align-items: center; }
.work-card h3 { font-size: 16px; line-height: 1.3; }
.work-card .photo { height: 130px; object-fit: cover; border-radius: var(--radius-sm); }
.progress { height: 8px; border-radius: 999px; background: #e7e6d6; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.work-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.work-status svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* fees */
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fee-card {
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.fee-card .head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.fee-card h3 { font-size: 17px; }
.fee-card .amount { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1.05; margin-bottom: 8px; }
.fee-card .term { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.fee-card .term svg { width: 16px; height: 16px; color: var(--green-deep); flex: none; }
.fees-split { display: grid; grid-template-columns: 1fr 420px; gap: 16px; align-items: stretch; }
.fees-split.rev { grid-template-columns: 420px 1fr; }
.fees-split .panel { margin: 0; }
.fees-split .photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--radius); }
.requisites { font-size: 14px; }
.requisites .line { display: grid; grid-template-columns: 190px 1fr; gap: 10px; padding: 4px 0; }
.requisites .line b { color: var(--ink); }
.doc-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-mini {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.doc-mini h3 { font-size: 16px; margin-bottom: 4px; }
.doc-mini p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.doc-mini .more { font-size: 13px; font-weight: 700; color: var(--green-ink); display: inline-flex; gap: 6px; align-items: center; }
.doc-mini .more svg { width: 14px; height: 14px; }

/* useful / FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-row {
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 12px 16px;
}
.faq-row .thumb { width: 200px; height: 110px; border-radius: 10px; object-fit: cover; background: var(--tint); }
.faq-row .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 15px;
}
.faq-row summary { list-style: none; cursor: pointer; }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row .chev { color: var(--green-deep); transition: transform 0.15s ease; }
.faq-row .chev svg { width: 20px; height: 20px; }
.faq-row[open] .chev { transform: rotate(180deg); }
.sos-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--red-bg);
  border: 1px solid #f3d4d2;
  border-radius: var(--radius);
  padding: 20px 26px;
}
.sos-strip .phone-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f9dedd;
  color: var(--red);
}
.sos-strip .phone-ic svg { width: 28px; height: 28px; }
.sos-strip .num { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--red); line-height: 1; }
.sos-strip .lbl { font-size: 13px; color: #6b4340; }
.sos-icons { display: flex; gap: 26px; }
.sos-icons .si { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; max-width: 92px; }
.sos-icons svg { width: 26px; height: 26px; }

/* contacts */
.contact-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  background: var(--card);
  border: 1px solid #eeeadd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}
.contact-card .portrait { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-sm); background: var(--tint); }
.contact-card h2 { font-size: 28px; margin-bottom: 4px; }
.contact-card .role { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.contact-card .bio { font-size: 14px; max-width: 560px; }
.contact-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.contact-tile {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: #fbfaf2;
  border: 1px solid #efeddd;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.contact-tile svg { width: 19px; height: 19px; color: var(--green-deep); flex: none; margin-top: 2px; }
.contact-tile .lbl { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.contact-tile .val { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.contact-two { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; align-items: stretch; }
.house-card { display: grid; grid-template-columns: 1fr 340px; gap: 20px; background: var(--card); border: 1px solid #eeeadd; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 24px; }
.house-card .photo { width: 100%; height: 100%; min-height: 230px; object-fit: cover; border-radius: var(--radius-sm); }
.house-card h3 { display: flex; gap: 10px; align-items: center; font-size: 21px; margin-bottom: 12px; }
.house-card h3 svg { width: 22px; height: 22px; color: var(--green-deep); }
.house-card .addr { display: flex; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.house-card .addr svg { width: 17px; height: 17px; color: var(--green-deep); flex: none; margin-top: 2px; }
.house-card p { font-size: 13.5px; color: var(--muted); }

.form-layout { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.form .field { margin-bottom: 14px; }
.form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form input[type="email"], .form select, .form textarea {
  width: 100%;
  border: 1px solid #e0dfd0;
  border-radius: 12px;
  background: #fff;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); }
.form textarea { min-height: 130px; resize: vertical; }
.form .counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.form .check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.form .check input { margin-top: 2px; }
.form-side img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
.opinion {
  display: flex;
  gap: 13px;
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--body);
}
.opinion svg { width: 20px; height: 20px; color: var(--green-deep); flex: none; margin-top: 2px; }
.opinion b { color: var(--ink); }

/* ---- footer ---- */
.footer-illustration { display: block; width: 100%; height: 74px; object-fit: cover; margin-top: 30px; }
.footer { background: #fff; border-top: 1px solid #edebdf; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
}
.footer-brand { display: flex; gap: 11px; align-items: center; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.footer-brand span { font-size: 12px; color: var(--muted); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.footer-nav a:hover { color: var(--green); }
.footer-right { text-align: right; font-size: 12.5px; color: var(--muted); }
.footer-right .mail { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer-right .mail svg { width: 15px; height: 15px; color: var(--green-deep); }

/* ---- theme switcher pill (variant-owned, platform seam) ---- */
.theme-switch {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.94);
  border: 1px solid #dfe5da;
  box-shadow: 0 8px 22px rgba(46, 70, 48, 0.14);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  color: #4e5c53;
}
.theme-switch a { color: var(--green-ink); padding: 2px 4px; border-radius: 6px; }
.theme-switch a:hover { background: var(--tint); }
.theme-switch-active { color: #fff; background: var(--green-deep); padding: 3px 8px; border-radius: 999px; }
.theme-switch-sep { color: #c4cdc2; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .contact-tiles { grid-template-columns: repeat(2, 1fr); }
  .photo-nav { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .news-cards { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .info-tabs { grid-template-columns: repeat(2, 1fr); }
  .meeting-next { grid-template-columns: auto 1fr; }
  .meeting-next .meeting-photo { display: none; }
  .bottom-grid { grid-template-columns: 1fr; }
  .photo-grid, .person-grid, .commission-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .fee-grid { grid-template-columns: repeat(2, 1fr); }
  .about-lead { grid-template-columns: 1fr; }
  .about-lead img { height: 220px; }
  .facts-4 { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: 1fr; }
  .fees-split, .fees-split.rev { grid-template-columns: 1fr; }
  .fees-split .photo { min-height: 200px; }
  .doc-mini-grid { grid-template-columns: 1fr; }
  .contact-two { grid-template-columns: 1fr; }
  .house-card { grid-template-columns: 1fr; }
  .house-card .photo { min-height: 200px; }
  .form-layout { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 220px 1fr; }
  .reception { grid-template-columns: 1fr; }
  .reception .photo { min-height: 200px; }
  .band-2 { grid-template-columns: 1fr; }
  .sos-strip { grid-template-columns: auto 1fr; }
  .sos-icons { grid-column: 1 / -1; justify-content: flex-start; }
  .faq-row { grid-template-columns: 150px 44px 1fr 32px; }
  .faq-row .thumb { width: 150px; height: 92px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .hero-home { min-height: 480px; }
  .hero-inner { min-height: 380px; }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(250, 249, 240, 0.99) 0%,
      rgba(250, 249, 240, 0.97) 52%,
      rgba(250, 249, 240, 0.72) 72%,
      rgba(250, 249, 240, 0.12) 96%);
  }
  .hero-content { padding: 30px 0 34px; }
  .hero-title { font-size: 31px; }
  .hero-stat-grid { gap: 18px; margin-top: 20px; }
  .home-quick-offset { margin-top: 16px; }
  .quick-grid { grid-template-columns: 1fr; padding: 10px; }
  .photo-nav { grid-template-columns: 1fr 1fr; }
  .news-cards { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; gap: 10px; }
  .news-row .thumb { width: 100%; height: 170px; }
  .news-row .readmore { padding-right: 0; }
  .map-band img { height: 280px; }
  .map-band .map-cta { right: 14px; bottom: 14px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card.full { flex-wrap: wrap; }
  .info-tabs { grid-template-columns: 1fr; }
  .meeting-next { grid-template-columns: 1fr; }
  .photo-grid, .person-grid, .commission-grid, .works-grid { grid-template-columns: 1fr; }
  .facts-4 { grid-template-columns: repeat(2, 1fr); }
  .fee-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .portrait { height: 240px; }
  .contact-tiles { grid-template-columns: 1fr; }
  .chairman { flex-direction: column; }
  .faq-row { grid-template-columns: 44px 1fr 28px; }
  .faq-row .thumb { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .footer-brand { justify-content: center; }
  .footer-right { text-align: center; }
  .infra-card { grid-template-columns: 1fr; }
  .infra-card .photo { order: -1; }
  .sos-strip { grid-template-columns: 1fr; text-align: center; }
  .sos-strip .sos-icons { justify-content: center; }
  .archive-row { grid-template-columns: 72px 1fr; }
  .archive-row .doc-arrow-cell { grid-column: 2; }
}

/* SVOEZEM-V4-RESPONSIVE-ART: content-sized header and accessible disclosure. */
[hidden] { display: none !important; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--green); outline-offset: 3px;
}
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.menu-btn { align-items: center; justify-content: center; width: 44px; height: 44px;
  flex: none; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-drawer { padding: 8px max(14px, calc((100% - 1180px) / 2)) 14px;
  border-top: 1px solid var(--line); max-height: min(55dvh, 360px); overflow-y: auto; }
.mobile-drawer a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px;
  border-radius: 10px; font-weight: 700; color: var(--ink); }
.mobile-drawer a:hover { background: var(--tint); }
.header--compact .nav { display: none; }
.header--compact .menu-btn { display: inline-flex; }
.header--compact .brand { flex-basis: 0; }
.theme-switch { position: relative; right: auto; bottom: auto; width: fit-content;
  max-width: calc(100% - 28px); margin: 16px auto; flex-wrap: wrap; }
.theme-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.theme-switch-active { min-width: 44px; text-align: center; }
.btn { height: auto; min-height: 44px; max-width: 100%; padding-block: 9px; }
.hero-content, .footer-brand > div, .footer-right, .news-row > div { min-width: 0; }
.footer-brand img { flex: none; }
.footer-right .mail { max-width: 100%; overflow-wrap: anywhere; }
.footer-right .mail svg { flex: none; }
.requisites .line > *, .info-tabs > *, .quick-grid > *, .band-card > *, .contact-tile > div { min-width: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }
@media (max-width: 1080px) {
  .header .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 16px; }
  .brand { flex-basis: 0; }
}
@media (max-width: 600px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .brand { width: 100%; }
  .brand-title { font-size: 18px; }
  .header-actions { margin-left: 0; width: 100%; justify-content: space-between; }
  .cabinet { white-space: normal; max-width: calc(100% - 56px); }
  .requisites .line { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero-stat-grid { gap: 16px; }
  .hero-stat { min-width: 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* R1: bounded decorative media; semantic content can grow independently. */
.hero-media { object-position: center; }
.house-card .photo.v4-art, .reception .photo.v4-art { width: 100%; max-width: 560px; height: auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; justify-self: center; }
.form-side .v4-art { max-width: 420px; height: 300px; margin-inline: auto; }
.about-lead .v4-art { max-width: 720px; justify-self: center; }
.map-band:has(.v4-art) { max-width: 700px; margin-inline: auto; }
.news-card-item .thumb:has(.v4-art) { aspect-ratio: 2 / 1; }
.detail-cover.v4-art { max-width: 720px; max-height: none; aspect-ratio: 2 / 1; height: auto; margin-inline: auto; }
@media (max-width: 720px) { .hero-media.v4-art { top: auto; bottom: 0; height: 280px; object-position: 70% center; } }

.fees-split .photo.v4-art { height: auto; min-height: 0; aspect-ratio: 2 / 1; max-width: 720px; justify-self: center; }
