:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --paper: #f4f6f2;
  --surface: #ffffff;
  --line: #d9e0d2;
  --green: #235b3c;
  --green-soft: #e5f0e9;
  --blue: #1b5e90;
  --yellow: #f4c542;
  --red: #b44535;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  overflow-wrap: anywhere;
}

body.has-lightbox {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-strip,
.masthead,
.main-nav,
.page-shell,
.site-footer {
  margin: 0 auto;
  max-width: 1180px;
}

.top-strip {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px 18px;
  justify-content: space-between;
  padding: 10px 24px 0;
}

.masthead {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 420px);
  padding: 18px 24px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border: 3px solid var(--yellow);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  letter-spacing: 0;
  width: 48px;
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

.site-search {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-search input,
.inline-search input {
  background: #fff;
  border: 1px solid #c8d2c0;
  border-radius: 6px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.site-search button,
.inline-search button,
.button {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.site-search button,
.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary,
.inline-search button {
  background: var(--green-soft);
  color: var(--green);
}

.main-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 24px 14px;
}

.main-nav a {
  border-radius: 6px;
  color: #2b3446;
  flex: 0 0 auto;
  font-weight: 750;
  padding: 10px 12px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green);
  color: #fff;
}

.page-shell {
  align-items: start;
  display: grid;
  flex: 1 0 auto;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  padding: 28px 24px 44px;
  width: 100%;
}

.content-column {
  min-width: 0;
  width: 100%;
}

.home-hero,
.section-block,
.article-page,
.list-page,
.media-page,
.catalog-page,
.employees-page,
.editor-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .06);
}

.accent-panel {
  background: var(--ink);
  color: #fff;
}

.accent-panel p {
  color: #cbd5e1;
}

.panel-kicker,
.section-label {
  color: var(--red);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.compact-news-list {
  display: grid;
  gap: 12px;
}

.compact-news-list a {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  text-decoration: none;
}

.compact-news-list a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.compact-news-list time,
.news-card time,
.article-date,
.archive-list time,
.lead-story time {
  color: var(--muted);
  font-size: 13px;
}

.compact-news-list span {
  font-weight: 750;
  line-height: 1.35;
}

.home-hero {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 52%, #e8f0e5 52%, #f7fbf5 100%);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  margin-bottom: 20px;
  min-height: 390px;
  padding: 28px;
}

.hero-text {
  align-self: center;
}

.hero-text h1 {
  font-size: clamp(42px, 7vw, 74px);
  line-height: .95;
  margin: 0;
}

.hero-text p {
  color: #3f4a5d;
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
}

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

.lead-story {
  align-self: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
  overflow: hidden;
}

.lead-story img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.lead-story > div {
  padding: 18px;
}

.lead-story h2 {
  font-size: 26px;
  line-height: 1.15;
  margin: 6px 0 8px;
}

.lead-story a {
  text-decoration: none;
}

.lead-story p,
.news-card p,
.archive-list p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.section-block,
.article-page,
.list-page,
.media-page,
.catalog-page,
.employees-page {
  margin-bottom: 20px;
  padding: 24px;
  width: 100%;
}

.intro-text {
  margin-bottom: 20px;
}

.promo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 20px;
}

.promo-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  height: 220px;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  text-decoration: none;
}

.promo-card img {
  border-radius: 6px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.section-heading,
.page-title-row {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2,
.page-title-row h1,
.article-page h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  margin: 0;
}

.section-heading a {
  color: var(--green);
  font-weight: 800;
}

.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

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

.news-list .news-card {
  grid-template-columns: 190px minmax(0, 1fr);
}

.news-list .news-card.no-media {
  grid-template-columns: 1fr;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.news-card-media {
  background: var(--green-soft);
  min-height: 150px;
  text-decoration: none;
}

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

.news-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.news-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.news-card h3 a {
  text-decoration: none;
}

.category-grid,
.media-grid,
.employee-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.category-grid a {
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  display: flex;
  min-height: 92px;
  padding: 16px;
  text-decoration: none;
}

.category-grid span {
  font-size: 20px;
  font-weight: 850;
  line-height: 1.15;
}

.category-grid small {
  color: var(--muted);
}

.editor-note {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 22px;
}

.editor-note img,
.employee-card img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.editor-note h2 {
  font-size: 26px;
  margin: 0 0 8px;
}

.breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

.article-page {
  padding: 30px;
}

.article-page h1 {
  margin-bottom: 14px;
}

.article-cover {
  margin: 20px 0;
}

.article-cover img {
  border-radius: 8px;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.article-cover figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.rich-text {
  color: #263247;
  font-size: 17px;
  line-height: 1.72;
}

.rich-text h1,
.rich-text h2,
.rich-text h3 {
  color: var(--ink);
  line-height: 1.15;
}

.rich-text p {
  margin: 0 0 1em;
}

.rich-text img {
  border-radius: 8px;
  height: auto;
  margin: 18px 0;
  max-width: 100%;
}

.rich-text table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.rich-text td,
.rich-text th {
  border: 1px solid var(--line);
  padding: 8px;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.file-list h2 {
  font-size: 24px;
  margin: 0;
}

.file-list a {
  align-items: center;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
  text-decoration: none;
}

.file-list span {
  font-weight: 800;
}

.file-list small {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 24px;
}

.gallery-grid img,
.media-tile img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-grid a,
.media-tile[data-lightbox] {
  cursor: zoom-in;
}

.image-lightbox {
  align-items: center;
  background: rgba(15, 23, 42, .88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 1000;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox:not([hidden]) {
  display: flex;
}

.image-lightbox img {
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  max-height: min(88vh, 980px);
  max-width: min(92vw, 1280px);
  object-fit: contain;
}

.image-lightbox-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 22px;
  top: 22px;
  width: 44px;
}

.inline-search {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 280px) auto;
}

.empty-state {
  background: #f8faf6;
  border: 1px dashed #c8d2c0;
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 18px;
}

.media-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
  text-decoration: none;
}

.media-tile.no-media {
  align-content: start;
}

.media-tile strong,
.media-tile span {
  font-weight: 800;
  line-height: 1.3;
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-list article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.archive-list h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 4px 0;
}

.employee-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.employee-card h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.employee-card p {
  color: var(--muted);
  margin: 0;
}

.avatar-fallback {
  align-items: center;
  aspect-ratio: 1;
  background: var(--green-soft);
  border-radius: 8px;
  color: var(--green);
  display: flex;
  font-size: 48px;
  font-weight: 900;
  justify-content: center;
}

.contact-panel a {
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex: 0 0 auto;
  gap: 24px;
  justify-content: space-between;
  padding: 24px;
  width: 100%;
}

.footer-legal {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.footer-legal strong {
  color: var(--ink);
}

.site-footer p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.age-badge {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

@media (max-width: 980px) {
  .masthead,
  .page-shell,
  .home-hero {
    grid-template-columns: 1fr;
  }

  .news-list .news-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-strip,
  .masthead,
  .main-nav,
  .page-shell,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand strong {
    font-size: 22px;
  }

  .site-search,
  .inline-search,
  .archive-list article,
  .editor-note {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .page-title-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-page,
  .section-block,
  .list-page,
  .media-page,
  .catalog-page,
  .employees-page,
  .home-hero {
    padding: 18px;
  }
}
