:root {
  --bg: #f3f0e8;
  --surface: #ffffff;
  --surface-muted: #e8e3d8;
  --text: #262622;
  --muted: #5f5d55;
  --accent: #3d5f47;
  --accent-dark: #2c4634;
  --border: #d7d1c4;
  --radius: 10px;
  --shadow: 0 8px 24px rgb(38 38 34 / 6%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: 3px solid #9bb7a2;
  outline-offset: 3px;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

main {
  padding-block: 36px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: stretch;
  padding-block: 18px 36px;
}

.hero-text {
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.22;
}

h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
}

.lead {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button-secondary:hover {
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.weather-card {
  align-self: start;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-value {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
}

.weather-desc {
  margin: 8px 0 20px;
  color: var(--muted);
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.weather-details div {
  min-width: 0;
}

.weather-details dt {
  color: var(--muted);
  font-size: 12px;
}

.weather-details dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.section {
  padding-block: 34px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading a {
  font-size: 14px;
  white-space: nowrap;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.news-date {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.news-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

caption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

th,
td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody th {
  font-weight: 600;
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.announcement-list {
  display: grid;
  gap: 14px;
}

.announcement {
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.announcement-date {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announcement h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.announcement p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contacts-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.contacts-grid p {
  margin: 0 0 8px;
  color: var(--muted);
}

.site-footer {
  padding-block: 28px;
  background: var(--accent-dark);
  color: #e9eee8;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.site-footer p {
  margin: 0 0 6px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  color: #e9eee8;
  font-size: 14px;
}

@media (max-width: 820px) {
  .header-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 14px;
  }

  nav {
    gap: 6px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

  .news-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
