:root {
  --green: #009341;
  --green-dark: #06753a;
  --green-deep: #054d26;
  --ink: #173024;
  --muted: #5d6f64;
  --line: #d7e6dc;
  --paper: #f3f7f4;
  --gold: #f3d36b;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(5, 61, 28, 0.08);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 147, 65, 0.08), transparent 220px),
    var(--paper);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-dark);
}

a:hover {
  color: var(--green-deep);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--green-deep);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  background: var(--green-deep);
  color: #e7f6ec;
}

.topbar-inner,
.infobar-inner,
.nav-inner,
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 0;
  padding: 8px 0;
  font-size: 12.5px;
}

.topbar a {
  color: #e7f6ec;
  text-decoration: none;
  padding: 2px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar a:last-child {
  border-right: 0;
}

.topbar a:hover,
.topbar a:focus-visible {
  color: var(--gold);
}

.brand-bar {
  background: var(--green);
  display: flex;
  justify-content: center;
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.05);
}

.brand-bar img {
  display: block;
  width: min(920px, 100%);
  height: auto;
}

.infobar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.infobar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 0;
}

.social {
  display: flex;
  gap: 8px;
}

.social a,
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.social a svg,
.footer-social a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.soc-fb { background: #3b5998; }
.soc-tw { background: #55acee; }
.soc-gg {
  background: #dd4b39;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1;
}
.soc-in { background: #0077b5; }

.social a:hover,
.footer-social a:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.phones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.phones a,
.welcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.phones svg,
.welcome svg {
  width: 16px;
  height: 16px;
  fill: var(--green);
}

.welcome {
  margin-left: auto;
}

.main-nav {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 8px;
}

.nav-title {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px 0;
  margin-right: auto;
}

.nav-title span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--gold);
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 16px 12px;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.16);
  color: var(--gold);
}

.page {
  padding: 28px 0 48px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.panel,
.widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 8px 22px 22px;
}

.panel h1,
.widget h2 {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}

.panel h1 {
  margin: 18px 0 12px;
  font-size: 32px;
  color: var(--green-deep);
}

.lead {
  margin-top: 0;
  color: var(--muted);
}

.notice {
  background: #f4fbf6;
  border: 1px solid #cfe6d6;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 16px 18px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-deep);
  font-size: 18px;
}

.widget {
  padding: 16px 16px 8px;
  margin-bottom: 16px;
}

.widget h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
  font-size: 18px;
  color: var(--green-deep);
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.widget li {
  border-bottom: 1px solid #eef4f0;
}

.widget li:last-child {
  border-bottom: 0;
}

.widget a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
}

.widget a:hover {
  text-decoration: underline;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c9dbd0;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.search-form input:focus {
  outline: 2px solid rgba(0, 147, 65, 0.35);
  border-color: var(--green);
}

.search-form button {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  width: 42px;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--green-dark);
}

.search-form svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.site-footer {
  background: var(--green-deep);
  color: #e5f5ea;
  padding: 36px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--gold);
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0 0 8px;
}

.site-footer a {
  color: #e5f5ea;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.legal {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 13px;
  color: #d5ebdd;
}

@media (max-width: 900px) {
  .layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .nav-burger {
    display: flex;
  }

  .nav-inner {
    position: static;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--green-dark);
    flex-direction: column;
    padding: 6px 0 10px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .welcome {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    justify-content: flex-start;
  }

  .topbar a {
    border-right: 0;
    padding: 4px 8px 4px 0;
  }

  .panel h1 {
    font-size: 26px;
  }

  .wrap,
  .topbar-inner,
  .infobar-inner,
  .nav-inner {
    width: min(var(--max), calc(100% - 24px));
  }
}
