:root {
  --accent: #3f9142;
  --accent-dark: #2f7233;
  --navy: #20402a;
  --navy-2: #2b5236;
  --bg: #eef1f2;
  --paper: #ffffff;
  --ink: #2c2c2c;
  --ink-soft: #5c6870;
  --line: #e2e5e7;
  --footer: #33383d;
  --warn-bg: #fdf3e7;
  --warn-border: #e0a94b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

body {
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- top accent line ---------- */
.topline {
  height: 6px;
  background: var(--accent);
}

/* ---------- header ---------- */
header.site-header {
  background: var(--paper);
  padding: 22px 0;
}

header.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.brand-addr {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 3px;
}

.brand-contact {
  text-align: right;
}

.brand-contact .phone {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

.brand-contact .email {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- nav ---------- */
nav.site-nav {
  background: var(--navy);
}

nav.site-nav .wrap {
  display: flex;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: #dce6ec;
  font-size: 13.5px;
  font-weight: 700;
  padding: 13px 14px;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

nav.site-nav a:hover {
  background: var(--navy-2);
  text-decoration: none;
}

nav.site-nav a.active {
  background: var(--accent);
  color: #fff;
}

/* ---------- hero ---------- */
.hero{
  height:460px;
  overflow:hidden;
  position:relative;
}

.hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:220px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,40,26,0.75) 100%);
  pointer-events:none;
}

.features{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
  background:transparent;
  box-shadow:none;
  margin-top:-160px;
  position:relative;
  z-index:2;
}

.feature{
  padding:24px 20px 22px;
  text-align:center;
  background:rgba(255,255,255,0.96);
  border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,0.18);
  border-right:none;
  transition:transform 0.15s;
}

.feature:hover{
  transform:translateY(-4px);
}

.feature:last-child {
  border-right: none;
}

.feature-img {
  height: 110px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature h3 {
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 8px;
}

.feature p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  min-height: 64px;
}

.feature .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 2px;
}

.feature .btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

@media (max-width:860px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:nth-child(2) {
    border-right: none;
  }
}

@media (max-width:520px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- generic page shell ---------- */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 34px 0;
  border-top: var(--accent-dark);
  border-style: solid;
  border-width: 5px 0 0 0;
}

.page-head h1 {
  margin: 0;
  font-size: 26px;
}

.page-head p {
  margin: 8px 0 0;
  color: #c7d6cb;
  font-size: 13.5px;
}

.main-area {
  background: var(--paper);
  padding: 40px 0 56px;
}

/* ---------- news grid (big squares) ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.news-card {
  border: 3px solid var(--line);
  color: inherit;
  text-decoration:none;
}

.news-card:hover{ text-decoration:none; }

.news-photo{
  height:160px;
  overflow:hidden;
  background:var(--accent-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
}

.news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .body {
  padding: 14px 16px;
}

.news-photo span{
  color:#fff;
  font-weight:600;
  font-size:20px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  line-height:1.3;
}

.news-card .date {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.news-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--navy);
}

.news-card p {
  margin: 0;
  font-size: 13px;
  color: #3d4750;
}

/* ---------- sidebar / two-col layout ---------- */
.cols {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

@media (max-width:820px) {
  .cols {
    grid-template-columns: 1fr;
  }
}

.side h4 {
  font-size: 15px;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.side ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.side li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.side li a {
  color: var(--ink);
}

.side li a:hover {
  color: var(--accent);
}

.main h2 {
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 16px;
}

.main p {
  margin: 0 0 14px;
  color: #3d4750;
  font-size: 14.5px;
}

.main ul.plain {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #3d4750;
  font-size: 14.5px;
}

.main ul.plain li {
  margin-bottom: 4px;
}

/* ---------- disclosure sections ---------- */
.disc-section {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.disc-section:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.disc-section h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 16px;
}

/* ---------- tables ---------- */
table.infotable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:13.5px;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
}
table.infotable th, table.infotable td{
  padding:11px 14px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}
table.infotable tr:last-child td{border-bottom:none;}

table.infotable th{
  background:#eaf5ea;
  color:var(--navy);
  font-weight:700;
  width:34%;
  border-right:1px solid #d7e8d7;
  position:relative;
}
table.infotable th::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:var(--accent);
}

table.infotable td{
  background:var(--paper);
  color:#1a2b1e;
  font-weight:500;
}
table.infotable tr:nth-child(even) td{background:#f7faf7;}
table.infotable tr:nth-child(even) th{background:#e2f0e2;}

table.infotable tr{transition:background 0.15s;}
table.infotable tr:hover td{
  background:var(--accent);
  color:#fff;
}
table.infotable tr:hover th{
  background:var(--accent-dark);
  color:#fff;
}
table.infotable tr:hover th::before{
  background:#fff;
}

/* ---------- house cards ---------- */
.house-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.house-card {
  border: 1px solid var(--line);
}

.house-photo {
  height: 120px;
  overflow: hidden;
  background: #eef1f2;
}

.house-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-card .body {
  padding: 12px 14px;
}

.house-card .addr {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
}

.house-card .meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- doc list ---------- */
ul.doclist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
}

ul.doclist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  flex-wrap: wrap;
}

ul.doclist li:last-child {
  border-bottom: none;
}

.btn-sm {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

.btn-sm:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

/* ---------- grouped-by-house lists (протоколы / ОДПУ) ---------- */
.grouped-list .group {
  margin-bottom: 22px;
  border: 1px solid var(--line);
}

.grouped-list .group h4 {
  margin: 0;
  padding: 12px 16px;
  background: #f4f7f8;
  color: var(--navy);
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}

.grouped-list .group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.grouped-list .group li {
  border-bottom: 1px solid var(--line);
}

.grouped-list .group li:last-child {
  border-bottom: none;
}

.grouped-list .group li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--ink);
}

.grouped-list .group li a:hover {
  color: var(--accent);
  background: #fafbfc;
  text-decoration: none;
}

.grouped-list .group li a .arrow {
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- gallery (small squares) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gallery-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: #eef1f2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32, 64, 42, 0.82);
  color: #fff;
  font-size: 10.5px;
  padding: 5px 7px;
  opacity: 0;
  transition: opacity .2s;
}

.gallery-item:hover .cap {
  opacity: 1;
}

/* ---------- gis banner ---------- */
.gis-banner {
  border: 1px solid var(--accent);
  background: #eef7ee;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.gis-banner strong {
  color: var(--navy);
}

/* ---------- warn box (памятка) ---------- */
.warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--warn-border);
  padding: 12px 16px;
  font-size: 13.5px;
  margin: 14px 0;
}

.warn strong {
  color: #8a5a12;
}

.memo-block {
  margin-bottom: 30px;
}

.memo-block h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 10px;
}

.memo-block ul,
.memo-block ol {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 13.5px;
  color: #3d4750;
}

.memo-block ul li,
.memo-block ol li {
  margin-bottom: 4px;
}

.memo-block p {
  font-size: 13.5px;
  color: #3d4750;
  margin: 0 0 10px;
}

.memo-toc {
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin-bottom: 30px;
  font-size: 13.5px;
}

.memo-toc h4 {
  margin: 0 0 8px;
  color: var(--navy);
}

.memo-toc a {
  display: block;
  padding: 3px 0;
}

.contacts-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width:820px) {
  .contacts-cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- forms ---------- */
form.oldform {
  max-width: 520px;
}

form.oldform label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 12px 0 4px;
}

form.oldform input,
form.oldform textarea {
  width: 100%;
  border: 1px solid #c7cfd3;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13.5px;
}

form.oldform textarea {
  min-height: 90px;
  resize: vertical;
}

form.oldform button {
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  cursor: pointer;
  border-radius: 2px;
}

form.oldform button:hover {
  background: var(--accent-dark);
}

/* ---------- partners strip ---------- */
.partners {
  background: #e3e7e9;
  padding: 26px 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width:700px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: auto;
}

.partner .mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.partner .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- footer ---------- */

div#site-footer {
  margin-top: auto;
}

footer.site-footer {
  background: var(--footer);
  color: #c6cbce;
  padding: 26px 0;
  font-size: 13px;
  margin-top: auto;
}

footer.site-footer .flinks {
  margin-bottom: 14px;
}

footer.site-footer .flinks a {
  color: #c6cbce;
  margin-right: 14px;
}

footer.site-footer .flinks a:hover {
  color: #fff;
}

footer.site-footer .fmeta {
  color: #9aa0a3;
  font-size: 12px;
  line-height: 1.7;
}

footer.site-footer .fmeta a {
  color: #aeb4b7;
}

/* ---------- loading / empty states ---------- */
.loading,
.empty-state {
  padding: 20px;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-align: center;
  border: 1px dashed var(--line);
}