:root {
  --ink: #13253a;
  --ink-soft: #3d5168;
  --sea: #0d5c63;
  --sea-deep: #084449;
  --foam: #eef6f5;
  --sand: #f3efe6;
  --line: rgba(19, 37, 58, 0.12);
  --accent: #c45c26;
  --ok: #1f7a4d;
  --warn: #9a6b12;
  --danger: #a33b3b;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 40px rgba(8, 40, 55, 0.08);
  --radius: 18px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #f7f4ee;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-deep); }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(13, 92, 99, 0.18), transparent 60%),
    radial-gradient(700px 360px at 90% 8%, rgba(196, 92, 38, 0.12), transparent 55%),
    linear-gradient(180deg, #f8f5ef 0%, #eef4f3 45%, #f7f4ee 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.cabinet-notice {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.25rem;
  padding: 0.7rem 1rem;
  border: 2px solid #d32f2f;
  border-radius: 10px;
  background: #fff5f5;
  color: #8b1a1a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}
.brand {
  display: flex;
  align-items: center;
  color: inherit;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: min(340px, 52vw);
  object-fit: contain;
}
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.header-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sea-deep);
  text-decoration: none;
  white-space: nowrap;
}
.contact-link .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.header-contacts .contact-link:hover,
.site-footer .contact-link:hover { color: var(--accent); }
.site-footer .contact-link {
  color: var(--sea);
  text-decoration: none;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a.is-active,
.main-nav a:hover {
  color: var(--sea-deep);
  border-bottom-color: var(--sea);
}

.site-main { padding-bottom: 4rem; }

.home-banner {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 56vh, 620px);
  overflow: hidden;
  color: #fff;
  background: #0a1c28;
}
.home-banner-track {
  position: absolute;
  inset: 0;
}
.home-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6s ease;
  z-index: 0;
}
.home-banner-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.home-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.home-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 30, 42, 0.78) 0%, rgba(8, 30, 42, 0.35) 48%, rgba(8, 30, 42, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 30, 42, 0.15) 0%, rgba(8, 30, 42, 0.55) 100%);
  pointer-events: none;
}
.home-banner-content {
  position: relative;
  z-index: 3;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 0 3.2rem;
  animation: rise 0.7s ease both;
}
.home-banner-content h1 {
  margin: 0 0 0.8rem;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  max-width: 12ch;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.home-banner-content p {
  margin: 0 0 1.4rem;
  max-width: 42ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.92);
}
.home-banner-controls {
  position: absolute;
  right: max(1rem, calc((100% - 1120px) / 2));
  bottom: 1.4rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.home-banner-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(8, 30, 42, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.home-banner-arrow:hover { background: rgba(8, 30, 42, 0.55); }
.home-banner-dots { display: flex; gap: 0.4rem; }
.home-banner-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
}
.home-banner-dots button.is-active { background: #fff; transform: scale(1.15); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a94c1d; color: #fff; }
.btn-secondary { background: #fff; color: var(--sea-deep); border: 1px solid var(--line); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }

.section { padding: 1.5rem 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
}
.section-lead {
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.settlement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.settlement-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: inherit;
}
.settlement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.settlement-card.is-featured {
  border-color: rgba(13, 92, 99, 0.35);
  background: linear-gradient(180deg, #ffffff, var(--foam));
}
.settlement-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--sea);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.settlement-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.settlement-card-rich {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.settlement-card-rich:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(8, 40, 55, 0.12);
}
.settlement-card-rich.is-featured {
  border-color: rgba(13, 92, 99, 0.35);
}
.settlement-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9e4ea;
}
.settlement-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.settlement-card-rich:hover .settlement-card-media img {
  transform: scale(1.04);
}
.settlement-card-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  background: rgba(8, 40, 55, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}
.settlement-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.05rem 1.1rem;
  flex: 1;
}
.settlement-card-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.25;
}
.settlement-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.settlement-card-body h3 a:hover { color: var(--sea-deep); }
.settlement-card-body > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
}
.settlement-doc-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.settlement-doc-type {
  background: var(--foam);
  border: 1px solid rgba(13, 92, 99, 0.12);
  border-radius: 10px;
  padding: 0.45rem 0.4rem;
  text-align: center;
}
.settlement-doc-type span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}
.settlement-doc-type strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--sea-deep);
}
.settlement-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.2rem;
}
.settlement-total {
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.settlement-total strong {
  color: var(--ink);
  font-weight: 800;
}

.settings-panel { padding: 1.4rem; }
.settings-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: start;
}
.settings-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8eef2;
  aspect-ratio: 16 / 10;
}
.settings-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.field-hint {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}
.settings-form .field textarea { min-height: 160px; }

.site-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #f4f8fb 0%, #e7eef5 100%);
  color: var(--ink);
  padding: 2.5rem 0 1.2rem;
  border-top: 1px solid var(--line);
}
.footer-title {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}
.footer-col p {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}
.footer-col strong { font-weight: 700; }
.site-footer a { color: var(--sea); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--sea-deep); }
.site-footer .btn-ghost {
  margin-top: 0.5rem;
  color: var(--sea-deep);
  border-color: rgba(13, 92, 99, 0.3);
  text-decoration: none;
  background: #fff;
}
.site-footer .btn-ghost:hover { background: var(--foam); color: var(--sea-deep); }
.footer-phone { margin-top: 1rem !important; font-weight: 600; }
.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.footer-dev {
  color: var(--sea-deep);
  font-weight: 700;
  text-decoration: none;
}
.footer-dev:hover { color: var(--accent); text-decoration: underline; }

/* Cabinet */
.cabinet-wrap { padding: 2rem 0 1rem; }
.cabinet-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.cabinet-top h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.35rem;
}
.muted { color: var(--ink-soft); margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }
.stat-card .label {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.stat-card .value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sea-deep);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th,
.doc-table td {
  text-align: left;
  padding: 0.85rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.doc-title {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
}
.doc-excerpt {
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--foam);
  color: var(--sea-deep);
  white-space: nowrap;
}
.badge-head { background: #fff1e8; color: #9a4a1c; }
.badge-admin { background: #eef2ff; color: #33457a; }

.search-form { display: grid; gap: 1rem; }
.search-form-row {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr auto;
  gap: 0.75rem;
  align-items: end;
}
.cabinet-wrap .search-form-row {
  grid-template-columns: 1.4fr 0.9fr 0.9fr auto;
}
.field-grow { min-width: 0; }
.search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
}
.search-actions .btn {
  height: 46px;
  min-width: 110px;
}
.field label,
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.field input::placeholder,
.field textarea::placeholder { color: #8a97a8; }
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] {
  padding: 0.55rem 0.75rem;
  background: #fafbfc;
}
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--sea-deep);
  border-bottom: 2px solid var(--sea-deep);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b8c3d0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.14);
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #b8c3d0;
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check-box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
  opacity: 0;
}
.check:hover {
  border-color: rgba(13, 92, 99, 0.35);
  background: #f7fbfb;
}
.check:has(input:checked) {
  border-color: var(--sea);
  background: var(--foam);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1);
}
.check:has(input:checked) .check-box {
  background: var(--sea);
  border-color: var(--sea);
}
.check:has(input:checked) .check-box::after { opacity: 1; }
.check:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.22);
}

.login-card {
  width: min(420px, 100%);
  margin: 3rem auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.login-card h1 {
  font-family: var(--font-serif);
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}
.form-stack { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.alert {
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.alert-ok { background: #e8f7ef; color: var(--ok); }
.alert-error { background: #fdecec; color: var(--danger); }
.alert-info { background: var(--foam); color: var(--sea-deep); }

.video-block {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.2rem;
  align-items: center;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d5c63, #13253a);
  box-shadow: var(--shadow);
}
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.video-placeholder .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin: 0 auto 0.8rem;
  border: 1px solid rgba(255,255,255,0.35);
}
.video-notes li { margin-bottom: 0.45rem; color: var(--ink-soft); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.form-grid .full { grid-column: 1 / -1; }

.empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Settlement public page */
.settlement-banner {
  position: relative;
  min-height: clamp(340px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #0a1c28;
}
.settlement-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}
.settlement-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 28, 40, 0.25) 0%, rgba(10, 28, 40, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 40, 55, 0.55), rgba(8, 40, 55, 0.15) 55%, rgba(8, 40, 55, 0.35));
  pointer-events: none;
}
.settlement-banner-inner {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 2rem;
  animation: rise 0.7s ease both;
}
.settlement-banner-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.settlement-banner h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  max-width: 16ch;
  text-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.settlement-banner-lead {
  margin: 0 0 1.4rem;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  max-width: 42ch;
}
.settlement-banner-cabinet {
  display: inline-block;
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.settlement-banner-cabinet:hover { color: #fff; }

.settlement-page { padding-top: 1.5rem; }
.settlement-search .search-form-row {
  grid-template-columns: 1.8fr 0.8fr auto;
}
.type-block { margin-bottom: 1.25rem; }
.year-block { margin-top: 1.1rem; }
.year-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--sea-deep);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.doc-list { display: grid; gap: 0.75rem; }
.doc-item {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.doc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.doc-item-title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 700;
}
.doc-published {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .video-block,
  .footer-grid,
  .settlement-grid,
  .settlement-cards,
  .stats,
  .form-grid,
  .settings-grid,
  .search-form-row,
  .cabinet-wrap .search-form-row,
  .settlement-search .search-form-row {
    grid-template-columns: 1fr;
  }
  .search-actions { width: 100%; }
  .search-actions .btn { flex: 1; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-right { align-items: flex-start; width: 100%; }
  .header-contacts { justify-content: flex-start; }
  .main-nav { justify-content: flex-start; }
  .brand-logo { height: 52px; max-width: min(280px, 80vw); }
  .cabinet-top { flex-direction: column; }
  .doc-table { display: block; overflow-x: auto; }
  .settlement-banner { min-height: 300px; }
  .home-banner { min-height: 420px; }
  .home-banner-controls { right: 1rem; left: 1rem; justify-content: flex-end; }
}
