@font-face {
  font-family: "Golos Text";
  src: url("assets/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("assets/golos-text-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Serif";
  src: url("assets/pt-serif-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Serif";
  src: url("assets/pt-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --page: #f5f8f6;
  --paper: #fff;
  --ink: #122e2d;
  --muted: #4d625e;
  --line: #dce6e1;
  --teal: #126e70;
  --deep: #083f3e;
  --lime: #d9eb81;
  --mint: #e6f4ef;
  --lilac: #f1eaf4;
  --purple: #64366c;
  --font: "Century Gothic", "Golos Text", system-ui, sans-serif;
  --display: "PT Serif", Georgia, serif;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 1rem/1.55 var(--font);
}

a, button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
p, h1, h2, h3 { margin: 0; }

.container {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: var(--gutter);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--paper);
  transform: translateY(calc(-100% - 25px));
}
.skip-link:focus { transform: none; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner, .identity {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 80px;
  justify-content: space-between;
  gap: 20px;
}

.identity { gap: 20px; }

.brand {
  display: block;
  flex: 0 1 auto;
}

.brand img {
  display: block;
  width: clamp(145px, 17vw, 220px);
  height: auto;
}

.identity-label {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.3;
}

.source-link, .footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--teal);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}

.source-link {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background-color .18s ease, border-color .18s ease;
}
.source-link:hover { background: var(--mint); border-color: #b7d3cc; }

.hero {
  display: flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  min-height: 356px;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 24px;
  background: var(--deep);
  color: #fff;
}

.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 53%;
  pointer-events: none;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 13px -35px -24px -23px;
  border: 1px solid #90c4b4;
  border-top-left-radius: 60% 96%;
  opacity: .35;
}

.hero-arch {
  position: absolute;
  inset: 30px 0 0;
  overflow: hidden;
  border-top-left-radius: 60% 96%;
  background: #3b8986;
}

.hero-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #083f3e6b, transparent 45%),
    linear-gradient(0deg, #083f3e8c, transparent 46%);
}

.hero-arch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 80%;
  mix-blend-mode: luminosity;
  opacity: .85;
}

.hero-content {
  width: min(58%, 660px);
  padding: 36px clamp(28px, 5vw, 68px) 40px;
}

.hero h1 {
  font: 400 clamp(2.75rem, 5.4vw, 4.5rem)/.99 var(--display);
  letter-spacing: -.052em;
}

.hero p {
  max-width: 420px;
  margin-top: 17px;
  color: #dcebe7;
  font-size: clamp(.95rem, 1.4vw, 1.07rem);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  margin-top: 22px;
  padding: 9px 15px;
  border-radius: 9px;
  background: var(--lime);
  color: #153938;
  font-size: .91rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease;
}

.hero-link:focus-visible { outline-color: var(--lime); }
.hero-link:hover { background: #e8f5ae; }

.documents {
  margin-block: clamp(36px, 4.6vw, 60px) 58px;
  scroll-margin-top: 22px;
}

.section-header { margin-bottom: 20px; }
.section-header h2 {
  font: 400 clamp(2.05rem, 3.45vw, 3.2rem)/1.1 var(--display);
  letter-spacing: -.045em;
}
.section-header p { margin-top: 6px; color: var(--muted); }

.catalog-filters {
  padding: clamp(15px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
}

.law-filter {
  min-width: 0;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}

.law-filter legend, .filter-field label {
  margin-bottom: 6px;
  padding: 0;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 660;
}

.law-options {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #e9f0ed;
}

.law-options label {
  position: relative;
  display: block;
  cursor: pointer;
}

.law-options input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  opacity: 0;
}

.law-options span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 6px 18px;
  color: #284c48;
  font-size: .91rem;
  font-weight: 640;
  line-height: 1.3;
  text-align: center;
  transition: background-color .18s ease, color .18s ease;
}

.law-options label:hover span { background: var(--paper); }
.law-options input:checked + span { background: var(--deep); color: #fff; }
.law-options input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }

.filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .47fr);
  gap: 12px 16px;
}

.filter-field {
  display: grid;
  min-width: 0;
}

.search-box {
  position: relative;
  color: var(--teal);
}

.search-box > .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}

.filter-field input, .filter-field select {
  width: 100%;
  min-height: 47px;
  padding: 8px 12px;
  border: 1px solid #cbdad4;
  border-radius: 8px;
  background-color: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.35 var(--font);
}

.filter-field select {
  cursor: pointer;
}

.filter-field input { padding-left: 43px; }
.filter-field input::placeholder { color: var(--muted); }
.filter-field input:focus-visible, .filter-field select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.catalog-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 52px;
  color: var(--muted);
  font-size: .86rem;
}

.text-action {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font: 650 .88rem/1.3 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-action:hover { color: var(--deep); }

.catalog-status {
  padding: 24px;
  border: 1px dashed #bfd4ca;
  border-radius: 15px;
  background: #f9fbfa;
  color: var(--muted);
}
.catalog-status button { margin-top: 3px; }

.catalog-results {
  display: grid;
  gap: 14px;
}

.category-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.group-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px clamp(12px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  background: #edf5f0;
}

.group-header h3 {
  font-size: clamp(1rem, 1.7vw, 1.19rem);
  font-weight: 650;
  letter-spacing: -.013em;
  line-height: 1.25;
}

.group-count {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.2;
  text-align: right;
}

.group-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #dceee6;
  color: var(--teal);
}

.file-list { margin: 0; padding: 0; list-style: none; }
.file-list li + li { border-top: 1px solid var(--line); }

.file-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 69px;
  padding: 11px clamp(12px, 2vw, 22px);
  text-decoration: none;
  transition: background-color .18s ease;
}

.file-row:hover { background: #f6fbf9; }
.file-row:focus-visible { outline-offset: -3px; border-radius: 6px; }

.file-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--teal);
}

.file-text {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.file-title {
  font-size: .96rem;
  font-weight: 620;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.file-description, .file-meta {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.file-description { font-size: .85rem; line-height: 1.45; }
.file-meta { font-size: .76rem; line-height: 1.35; }

.file-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  font-size: .8rem;
  font-weight: 650;
  transition: background-color .18s ease, border-color .18s ease;
}

.file-download .icon { width: 17px; height: 17px; }
.file-row:hover .file-download { background: var(--mint); border-color: #b3d5ce; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px 24px;
  padding-block: 25px 31px;
}
.footer-name { font-size: .9rem; font-weight: 650; }
.photo-credit { margin-top: 6px; color: var(--muted); font-size: .72rem; }
.photo-credit a { text-underline-offset: 2px; }
.footer-contact { flex-shrink: 0; }
.footer-contact:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 890px) {
  .hero-content { width: 61%; }
  .hero-art { width: 45%; }
}

@media (max-width: 650px) {
  .header-inner { min-height: 68px; gap: 9px; }
  .identity { gap: 6px; flex-direction: column; align-items: start; }
  .identity-label { border: 0; padding-left: 0; font-size: .72rem; }
  .brand img { width: clamp(125px, 36vw, 137px); }
  .source-link { padding: 6px 8px; font-size: .75rem; gap: 5px; }
  .source-link .icon { width: 16px; height: 16px; }
  .admin-entry { flex-shrink: 1; line-height: 1.2; }

  .hero {
    display: block;
    min-height: 0;
    margin-top: 18px;
    border-radius: 17px;
    padding-bottom: 113px;
  }

  .hero-content { width: 100%; padding: 26px 22px 8px; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.7rem); line-height: 1.02; }
  .hero p { margin-top: 13px; }
  .hero-link { min-height: 44px; margin-top: 15px; }
  .hero-art { inset: auto 0 0 auto; width: 83%; height: 115px; }
  .hero-art::before { inset: 0 -16px -20px -15px; }
  .hero-arch { inset: 9px 0 0; }
  .hero-arch img { object-position: 68% 75%; }

  .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .law-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .law-options span { padding-inline: 5px; }

  .file-row { gap: 9px; }
  .file-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .file-download { width: 35px; min-height: 35px; padding: 0; }
  .file-download > span { display: none; }
  .documents { margin-bottom: 38px; }
  .footer-inner { flex-direction: column-reverse; padding-block: 19px 22px; }
}

@media (max-width: 410px) {
  .law-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-header { gap: 8px; }
  .group-count { max-width: 67px; }
  .group-icon { width: 28px; height: 28px; }
  .group-icon .icon { width: 17px; height: 17px; }
  .file-title { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
